Germain Souquet
1d79f97a7a
Add user settings for warn before exit
2021-03-25 14:15:34 +00:00
J. Ryan Stinnett
4f0fccfe96
Merge pull request #15851 from SimonBrandner/feature-multi-language-spell-check
...
Add multi language spell check
2021-03-02 14:38:29 +00:00
Šimon Brandner
86d7652d93
Merge branch 'feature-multi-language-spell-check' of https://github.com/SimonBrandner/element-web into feature-multi-language-spell-check
2021-03-02 14:58:58 +01:00
Šimon Brandner
c745991a9a
Remove duplicate supportsMultiLanguageSpellCheck()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-02 14:58:40 +01:00
Šimon Brandner
0f7a42258c
Add a comment
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-03-02 14:53:04 +01:00
Šimon Brandner
8cf2ab436d
Use getSpellCheckLanguages() instead of a setting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-18 20:12:51 +01:00
Šimon Brandner
5f15ee4ea5
Mark macOS as false
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-18 19:05:40 +01:00
Šimon Brandner
9953bc3b22
Merge branch 'develop' into feature-multi-language-spell-check
2021-02-18 18:16:37 +01:00
Michael Telatynski
e15d1c1501
Update src/vector/platform/WebPlatform.ts
2021-02-11 16:27:30 +00:00
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>
2021-02-11 18:59:59 +03:00
J. Ryan Stinnett
0bbcda09af
Move into constructor
2021-01-15 12:35:42 +00:00
J. Ryan Stinnett
e077d9ca5f
Move service worker into platform
2021-01-15 12:25:21 +00:00
J. Ryan Stinnett
58eca1aa7d
Use isolated IPC API
...
This adjusts to match changes on the desktop side where we now use Electron's
context isolation feature to expose only the IPC channels and methods we
actually expect to use.
2021-01-13 15:39:18 +00:00
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>
2020-12-24 02:01:40 -08:00
Šimon Brandner
24cc106d90
Merge branch 'develop' into feature-multi-language-spell-check
2020-12-03 12:04:46 +01:00
Šimon Brandner
6844c8f92e
Hide spell-check settings if not using Electron
2020-12-02 20:15:00 +01:00
Michael Telatynski
a63bd875bc
Merge pull request #15771 from vector-im/t3chguy/socials
...
Extend Platform to support idpId for SSO flows
2020-12-02 15:48:56 +00:00
Šimon Brandner
1c9d25986a
Cleanup
2020-12-01 20:19:14 +01:00
Šimon Brandner
a8a422105b
Added getAvailableSpellCheckLanguages() method
2020-11-29 20:52:19 +01:00
J. Ryan Stinnett
f1e89bf833
Replace various instances of Riot with Element
2020-11-25 17:01:19 +00:00
J. Ryan Stinnett
d05c022d4f
Rebrand some GitHub links
2020-11-25 14:16:55 +00:00
Michael Telatynski
1e1a14c9a9
Extend Platform to support idpId for SSO flows
2020-11-19 11:07:44 +00:00
Damir Jelić
0507cd2d90
electron-platform: Use camel case for the user/device id.
2020-10-13 17:04:40 +02:00
Damir Jelić
5350c5e551
electron-platform: Pass the user/devce id pair when initializing the event index.
2020-10-13 16:36:38 +02:00
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>
2020-10-01 14:04:32 +01:00
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>
2020-10-01 14:04:21 +01:00
Michael Telatynski
daa755017e
Revert "consolidate"
...
This reverts commit aa2f3918
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-01 14:04:11 +01:00
Michael Telatynski
aa2f3918cc
consolidate
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-30 17:36:57 +01:00
Michael Telatynski
11e676cee0
Disable workbox when running in webpack dev server, not in dev mode
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-30 17:35:12 +01:00
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>
2020-09-24 13:01:34 +01:00
Michael Telatynski
ae8595690d
delint
2020-08-29 01:14:51 +01:00
Michael Telatynski
e371f01bb5
Try to close notification on all platforms which support it, not just electron
2020-08-12 12:16:29 +01:00
Travis Ralston
b2d4432ba9
Fix SSO session ID paramater
2020-07-16 08:11:04 -06:00
Travis Ralston
1b60743910
Use the right protocol for SSO URLs
2020-07-15 17:05:17 -06:00
J. Ryan Stinnett
b720c8a138
Merge remote-tracking branch 'origin/develop' into element
2020-07-15 10:35:45 +01:00
Michael Telatynski
18aab5f655
Remove redundant enum
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-15 09:46:39 +01:00
J. Ryan Stinnett
715a4f8dac
Restore device name
2020-07-15 09:38:55 +01:00
J. Ryan Stinnett
0fa2941188
Use a safe but sane device name
2020-07-14 21:54:44 +01:00
J. Ryan Stinnett
ffab08bd60
Update various brand instances in code
2020-07-13 17:32:17 +01:00
J. Ryan Stinnett
5b31589b3a
Use brand name from config in all strings
2020-07-13 14:12:44 +01:00
Bruno Windels
ac4770597d
Update develop
2020-07-06 09:27:29 +02:00
Bruno Windels
6da70bdfbd
create unique device names
2020-06-30 17:29:31 +02:00
Bruno Windels
8e3d1407c0
dont leak domain for now
2020-06-30 17:06:10 +02:00
Michael Telatynski
87527d7b16
Show expiring toast on completed downloads
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-29 11:41:18 +01:00
Damir Jelić
cfee2a43fb
Merge branch 'poljar/eventindex-user-version' into develop
2020-06-19 09:53:43 +02:00
Damir Jelić
55c1f01f4c
ElectronPlatform: Add support to set and get the index user version.
2020-06-17 17:18:44 +02:00
Damir Jelić
a968389c85
ElectronPlatform: Implement the isRoomIndexed method.
2020-06-08 16:41:55 +02:00
Michael Telatynski
34dab73150
Fix riot-desktop manual update check getting stuck on Downloading...
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-07 13:19:29 +01:00
Hubert Chathi
d86fd9e753
Merge pull request #13846 from vector-im/uhoreg/keytar
...
make IPC calls to get pickle key
2020-06-03 16:54:40 -04:00
Michael Telatynski
801946782b
Merge pull request #13889 from vector-im/t3chguy/sso-query
...
Fix login loop where the sso flow returns to `#/login`
2020-06-03 20:28:04 +01:00
Michael Telatynski
41738c322a
Add PWA Platform with PWA-specific badge controls
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-02 16:58:05 +01:00
Michael Telatynski
d18b0f87d4
Fix login loop where the sso flow returns to `#/login`
...
due to fragmentAfterLogin going back to `#/login`
and https://github.com/vector-im/riot-web/issues/11643
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-02 16:26:08 +01:00
Michael Telatynski
66272fc226
Allow deferring of Update Toast until the next morning
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-29 19:59:48 +01:00
Michael Telatynski
1fd74f22c8
Give contextual feedback for manual update check instead of banner
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-29 18:24:45 +01:00
Hubert Chathi
fb62f6dfb4
make IPC calls to get pickle key
2020-05-28 14:44:38 -04:00
Michael Telatynski
c17bcda1ba
Merge branches 'develop' and 't3chguy/toasts3_2' of github.com:vector-im/riot-web into t3chguy/toasts3_2
2020-05-27 09:58:08 +01:00
Michael Telatynski
3ad3c3ca0a
Fix super in arrow funcs
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-26 10:04:49 +01:00
Michael Telatynski
48a618264a
Replace New Version Bar with a Toast
...
discards the `new_version` dispatch
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-22 23:08:46 +01:00
Michael Telatynski
d7ee8e13cc
make ts happy
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-21 18:25:52 +01:00
Michael Telatynski
cb0e3bba38
mark VectorBasePlatform as an abstract class
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-21 18:07:01 +01:00
Michael Telatynski
706972eff2
tidy
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-20 20:01:51 +01:00
Michael Telatynski
6ec613c2c2
Convert various things to Typescript
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-20 19:56:54 +01:00
Travis Ralston
6d99c08e59
Merge pull request #13666 from vector-im/travis/dispatcher-types
...
Move dispatcher references in support of TypeScript conversion
2020-05-18 23:22:35 -06:00
Michael Telatynski
5feadbc18e
Merge branch 'develop' of github.com:vector-im/riot-web into t3chguy/favico
2020-05-14 21:20:04 +01:00
Michael Telatynski
4532ddbb2d
Add support for badge override opts
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-14 21:19:54 +01:00
Travis Ralston
a21d6e651f
Move dispatcher references in support of TypeScript conversion
...
See https://github.com/matrix-org/matrix-react-sdk/pull/4593
2020-05-13 21:15:30 -06:00
Michael Telatynski
6348b17e23
Pass screenAfterLogin through SSO in the callback url
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-13 06:24:05 +01:00
Michael Telatynski
911bd2e469
Replace favico.js dependency with simplified variant grown from it
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-13 05:19:08 +01:00
J. Ryan Stinnett
1ad54a4dae
Tweak default device name to be more compact
...
Fixes https://github.com/vector-im/riot-web/issues/13458
2020-04-30 16:50:01 +01:00
J. Ryan Stinnett
ab40d5b732
Update copyright header
2020-04-30 16:02:37 +01:00
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
2020-04-30 15:58:53 +01:00
Michael Telatynski
9d5e3d6d9a
Fix dispatcher import to be extension agnostic
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-21 10:03:59 +01:00
Michael Telatynski
a77ed6e844
Merge branch 'develop' into t3chguy/poc_riot_desktop_sso_multi_profile
2020-04-14 17:03:00 +01:00
Michael Telatynski
2346829055
Add riot-desktop shortcuts for forward/back matching browsers&slack
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-11 18:58:00 +01:00
Michael Telatynski
15bb819c8a
Instead of encrypting, pass the HS an opaque token which we locally resolve in a map to our profile data
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-09 21:17:37 +01:00
Michael Telatynski
6fdeca93b6
Make the riot-desktop callback args more generic and encrypt the args
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-09 16:21:52 +01:00
Michael Telatynski
8ca9e4ccb1
Fix Electron SSO handling to support multiple profiles
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-04 00:22:15 +01:00
Michael Telatynski
c1da3bf537
Fix Electron mac-specific shortcut being registered on Web too.
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-03 13:01:28 +01:00
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>
2020-03-24 17:27:14 -07:00
Michael Telatynski
3d266cb237
Register Mac electron specific Cmd+, shortcut to User Settings
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-03-19 23:42:10 +00:00
Damir Jelić
20a89d67cb
ElectronPlatform: Add support to remove events from the event index.
2020-03-12 11:51:34 +01:00
Michael Telatynski
09ed0e781a
Update copy for SSO modal
2020-03-02 20:04:31 +00:00
Michael Telatynski
178c61dbf7
fix typo
2020-03-02 15:01:06 +00:00
Michael Telatynski
c197661be0
riot-desktop open SSO in browser so user doesn't have to auth twice
2020-03-02 14:59:55 +00:00
Michael Telatynski
af0b57bcda
make BasePlatform::setLanguage sync, handle promises internally
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-25 10:57:41 +00:00
Michael Telatynski
5117efaf98
Notify electron of language changes
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-24 17:14:23 +00:00
Michael Telatynski
5cc0cef06c
Use Persistent Storage where possible
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-20 00:38:09 +00:00
Damir Jelić
7aff020d4d
Merge branch 'poljar/seshat-ui' into develop
2020-01-24 14:40:54 +01:00
Damir Jelić
e1e3bba290
ElectronPlatform: Replace the indexSize method with the getStats method.
2020-01-21 13:35:29 +01:00
Damir Jelić
e556bb242f
ElectronPlatform: Add the indexSize method.
2020-01-21 13:35:29 +01:00
Damir Jelić
a2e256b4c9
ElectronPlatform: Add the ability to load file events from the event index.
2020-01-17 10:11:57 +01:00
Travis Ralston
17e332bb48
Import from src/ for the react-sdk and js-sdk
...
We compile directly for accuracy of sourcemaps.
2019-12-23 20:02:11 -07:00
David Baker
89d622b8b2
Remove the code that calls the origin migrator
...
This will have done its job now, everyone's had long enough to
install a newer version of Riot and migrate to the new origin.
Laves the code on the backend that handles it for the time being,
as per comment.
2019-12-09 11:57:43 +00:00
Damir Jelić
222fea969d
Merge branch 'poljar/seshat-pr' into develop
2019-11-26 18:47:58 +01:00
Michael Telatynski
eac6c46d28
Merge branches 'develop' and 't3chguy/remove_bluebird' of https://github.com/vector-im/riot-web into t3chguy/remove_bluebird
2019-11-22 14:00:02 +00:00
Damir Jelić
137bedb3f9
ElectronPlatform: Update the path for the BaseEventIndexManager class.
2019-11-19 13:34:00 +01:00
Damir Jelić
73b302f432
ElectronPlatform: Fix some type annotations.
2019-11-19 13:34:00 +01:00
Damir Jelić
4a25252626
ElectronPlatform: Rename the SeshatIndexerManager.
2019-11-19 13:34:00 +01:00
Damir Jelić
dd2c210cfb
electron-main: Rework the event index initialization and deletion.
2019-11-14 16:14:48 +01:00
Damir Jelić
7147af8f80
ElectronPlatform: Don't scope the event index per user.
2019-11-14 14:14:59 +01:00