Michael Telatynski
e136afe2eb
Conform to new typescript eslint rules
12 months ago
J. Ryan Stinnett
491b179971
Auto-fix lint errors
1 year ago
Šimon Brandner
c745991a9a
Remove duplicate supportsMultiLanguageSpellCheck()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
1 year ago
Michael Telatynski
e15d1c1501
Update src/vector/platform/WebPlatform.ts
1 year ago
Ibragim/Parviz Bekliev
92a5787528
Migrating from Node's deprecated `url` API to browser's `URL`
...
Related to https://github.com/vector-im/element-web/pull/16292
Signed-off-by: Bekliev Parviz <nightkon95@gmail.com>
1 year ago
J. Ryan Stinnett
0bbcda09af
Move into constructor
1 year ago
J. Ryan Stinnett
e077d9ca5f
Move service worker into platform
1 year ago
Alexandru M Stan
35d1c0d980
webplatform: Fix notification closing
...
After a notification arrives, when the user focuses on element, the
notification never goes away (unless directly interacted with), this was a bug.
displayNotification was never returning the notification handle, which means
that matrix-react-sdk later on had no way to .close it.
Closes #16026
Signed-off-by: Alexandru M Stan <alex@hypertriangle.com>
2 years ago
Šimon Brandner
6844c8f92e
Hide spell-check settings if not using Electron
2 years ago
Michael Telatynski
1edbe36547
Revert "Tidy up Service Worker, only run Workbox in production"
...
This reverts commit c47532fe
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
87c42934ea
Revert "Disable workbox when running in webpack dev server, not in dev mode"
...
This reverts commit 11e676ce
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
daa755017e
Revert "consolidate"
...
This reverts commit aa2f3918
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
aa2f3918cc
consolidate
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
11e676cee0
Disable workbox when running in webpack dev server, not in dev mode
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
c47532fe2a
Tidy up Service Worker, only run Workbox in production
...
Moves ServiceWorker load into Platform so its not done by Electron
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
J. Ryan Stinnett
715a4f8dac
Restore device name
2 years ago
J. Ryan Stinnett
0fa2941188
Use a safe but sane device name
2 years ago
J. Ryan Stinnett
ffab08bd60
Update various brand instances in code
2 years ago
Bruno Windels
6da70bdfbd
create unique device names
2 years ago
Bruno Windels
8e3d1407c0
dont leak domain for now
2 years ago
Michael Telatynski
66272fc226
Allow deferring of Update Toast until the next morning
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
1fd74f22c8
Give contextual feedback for manual update check instead of banner
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
3ad3c3ca0a
Fix super in arrow funcs
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
48a618264a
Replace New Version Bar with a Toast
...
discards the `new_version` dispatch
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
706972eff2
tidy
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
6ec613c2c2
Convert various things to Typescript
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Travis Ralston
a21d6e651f
Move dispatcher references in support of TypeScript conversion
...
See https://github.com/matrix-org/matrix-react-sdk/pull/4593
2 years ago
J. Ryan Stinnett
1ad54a4dae
Tweak default device name to be more compact
...
Fixes https://github.com/vector-im/riot-web/issues/13458
2 years ago
J. Ryan Stinnett
ab40d5b732
Update copyright header
2 years ago
J. Ryan Stinnett
dec5ea1637
Tweak default device name on macOS
...
This tweak's the OS name in the default device name for macOS devices to match
Apple's current branding.
Fixes https://github.com/vector-im/riot-web/issues/13459
2 years ago
Michael Telatynski
9d5e3d6d9a
Fix dispatcher import to be extension agnostic
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
078d6a0d98
remove dependency on `url`
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Matt N
b8ca1f920e
Don't immediately remove notifications from notification trays
...
Let the notifications go into browser/OS notification trays so users can click on them from there if they miss the initial notification. Modern Chrome uses OS notifications so the user is in control of the the notification with the OS. This also aligns with the Electron platform version.
Signed-off-by: Matthew Noorenberghe <github@matthew.noorenberghe.com>
2 years ago
Travis Ralston
17e332bb48
Import from src/ for the react-sdk and js-sdk
...
We compile directly for accuracy of sourcemaps.
3 years ago
Michael Telatynski
10e1d9093e
transform-async-to-promises: get rid of bluebird
3 years ago
Travis Ralston
c5461b4509
Don't try and render null avatars in desktop notifications
...
as much fun as http://localhost:8080/null is to see
3 years ago
David Baker
19f1489c92
Run the Desktop app in a sandbox
...
* Turn off node integration in the electron renderer process
* Enable the chromium sandbox to put the renderer into its own process
* Expose just the ipc module with a preload script
* Introduce a little IPC call wrapper so we can call into the
renderer process and await on the result.
* Use this in a bunch of places we previously used direct calls
to electron modules.
* Convert other uses of node, eg. use of process to derive the
platform (just look at the user agent)
* Strip out the desktopCapturer integration which doesn't appear
to have ever worked (probably best to just wait until
getDisplayMedia() is available in chrome at this point:
https://github.com/vector-im/riot-web/issues/4880 ).
4 years ago
David Baker
1dfaf70562
Revert "Revert "Run lint on travis builds and use modern node versions""
4 years ago
David Baker
f701e2601a
Revert "Run lint on travis builds and use modern node versions"
4 years ago
Aaron Raimist
6abd1de8b8
eslint --fix on src/
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
4 years ago
Aaron Raimist
d035efb14e
Fix lint warnings and turn warnings back on ( #7409 )
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
4 years ago
Aaron Raimist
401c85ad5b
Fix Promise.defer warnings in WebPlatform.js ( #7409 )
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
4 years ago
Matthew Hodgson
aa54032500
force refresh when updating the app
4 years ago
Richard van der Hoff
d5b550f89a
replace q method calls with bluebird ones
...
```
find src test -name '*.js' |
xargs perl -i -pe 's/q\.(all|defer|reject|delay|try|isFulfilled)\(/Promise.$1(/'
```
5 years ago
Richard van der Hoff
b29b4a959b
q(...) -> Promise.resolve
...
```
find src test -name '*.js' | xargs perl -i -pe 's/\b[qQ]\(/Promise.resolve(/'
```
5 years ago
Richard van der Hoff
10decf95f6
replace imports of `q` with bluebird
...
update `package.json`
```
find src test -name '*.js' |
xargs perl -i -pe 'if (/require\(.[qQ].\)/) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
find src test -name '*.js' |
xargs perl -i -pe 'if (/import [qQ] /) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
```
5 years ago
Michael Telatynski
a520f0bfed
move all logic, make bar more generic
...
pass through actual errors
and tidy
needs testing
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
5 years ago
Kegsay
4cec4f066d
Fix #4191 : add defaults to avoid throwing ( #4195 )
5 years ago
Michael Telatynski
b95ad701af
match ENUM style to others in project
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
(cherry picked from commit a871815)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
5 years ago
Michael Telatynski
efc68c078e
basic manual update stuff + update check bar
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
5 years ago