Michael Telatynski
f5b8bccb65
Conform more of the codebase with `noImplicitAny` and `strictNullChecks` ( #25174
...
* Conform more of the codebase with `noImplicitAny` and `strictNullChecks`
* Fix tests
* Update src/vector/app.tsx
2023-04-25 09:36:17 +01:00
Janne Mareike Koschinski
89054a50ac
Replace newTranslatableError with UserFriendlyError ( #25002 )
...
* Apply user-friendly-error changes to element-web as well
* Update i18n library
2023-03-31 12:41:15 +02:00
Michael Weimann
7921a6cbf8
Apply prettier formatting
2022-12-09 13:28:29 +01:00
Michael Weimann
cbf5c43ae7
Update to eslint-plugin-matrix-org 0.8 ( #23825 )
...
* Update to eslint-plugin-matrix-org 0.8
* Exclude some eslint rules for specs
* Fix eslint tests path
2022-11-23 16:24:36 +00:00
Michael Telatynski
2ef6abbfb8
Move from `browser-request` to `fetch` ( #23427 )
2022-10-12 18:59:10 +01:00
Travis Ralston
0bcb1d18ce
Step 10.1: Ensure the js-sdk browser bundle gets pulled
...
We no longer have implicit imports which would have called this path, so manually call it. We have to disable lint as it doesn't like us doing this, but we only end up with a single entry point.
2022-03-28 13:02:50 -06:00
Travis Ralston
585c777878
Step 3.2: Stop using `getComponent`
2022-03-28 13:02:50 -06:00
Travis Ralston
1384783a77
Update SdkConfig usage to use new translation layer + update config.md docs ( #21429 )
...
* Update SdkConfig usage to use new translation layer
* Appease the linter
* WIP refactor of config documentation
* Finish re-writing config.md
* Update surrounding documentation
* Apply suggestions from code review
Co-authored-by: Germain <germains@element.io>
* Textual updates
Co-authored-by: Germain <germains@element.io>
2022-03-18 10:12:44 -06:00
James Salter
adad5e16c2
Fix page reloading on initial update ( #21410 )
...
Remove the hash event listener before reloading the page, as the reload was being swallowed by our router.
Along the way, refactor out routing logic form app.tsx to avoid causing a circular import.
2022-03-16 12:20:06 +00:00
Michael Telatynski
240c3be014
Mandate use of js-sdk/src/matrix import over js-sdk/src ( #21257 )
2022-03-01 19:26:22 +00:00
Travis Ralston
7078373fbb
Support a config option to change the default device name ( #20790 )
2022-01-28 08:52:43 -07:00
Aaron R
df84c48d73
Fix imports to work with new lint rules ( #19532 )
...
* Add eslint-plugin-import
Signed-off-by: Aaron Raimist <aaron@raim.ist>
* Autofix + move comments manually
Signed-off-by: Aaron Raimist <aaron@raim.ist>
* Manual fix
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 15:57:46 -07:00
Travis Ralston
004e8edcb2
Deprecate `sso_immediate_redirect` and add welcome-page only option ( #19437 )
...
* Deprecate `sso_immediate_redirect` and add welcome-page only option
The old `sso_immediate_redirect` option is kept in code for backwards compatibility, but is replaced by `sso_redirect_options.immediate`, where a new `on_welcome_page` option is also introduced to only target entry points to the app.
The path matching is a bit brittle, but still ideal in the sense of not showing UI while the app realizes it needs to redirect.
The new welcome page-only option is fully intended to avoid breaking permalinks and such while still redirecting when needed. In future, other options might be added here to further tune the experience.
* Add note about guests
2021-10-21 08:35:05 -06:00
Dariusz Niemczyk
e6993ca964
Expose logger instance for development purposes
...
Related https://github.com/vector-im/element-web/issues/18425
2021-10-19 10:14:31 +02:00
Dariusz Niemczyk
85a81af1da
Replace console.warn with logger.warn
...
Related https://github.com/vector-im/element-web/issues/18425
2021-10-19 10:14:31 +02:00
Dariusz Niemczyk
dc9f77a509
Replace console.log with logger.log
...
Related https://github.com/vector-im/element-web/issues/18425
2021-10-19 10:14:31 +02:00
Dariusz Niemczyk
db01bfc0fd
Replace console.error with logger.error
...
Related https://github.com/vector-im/element-web/issues/18425
2021-10-19 10:14:31 +02:00
Dariusz Niemczyk
231ff3a73d
Fix CI having invalid node_env
2021-08-23 12:35:43 +02:00
Michael Telatynski
331678b913
fix edge case around event permalinks
2021-07-19 09:48:50 +01:00
Michael Telatynski
b23aad28ca
Fix browser history getting stuck looping back to the same room
...
E.g if you click a link to room/#foo:bar?via=baz we'll redirect to room/#foo:bar and now hitting back takes you back to the ?via=baz and means you have to hit back twice without this change
2021-07-19 09:40:08 +01:00
Michael Telatynski
66ada58101
Use webpack worker-loader to load the IndexedDB worker instead of homegrown hack
2021-07-12 18:43:21 +01:00
J. Ryan Stinnett
491b179971
Auto-fix lint errors
2021-06-30 13:28:31 +01:00
Travis Ralston
5642fc4026
Doc the return
2021-04-06 19:43:24 -06:00
Travis Ralston
97a43d058d
Support a config option to skip login/welcome and go to SSO
...
For deployments which want this sort of functionality for their users. Ideal for self-hosted deployments.
2021-04-06 19:39:26 -06:00
Michael Telatynski
438eef0acd
Update src/vector/app.tsx
2021-02-11 16:27:55 +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
Ibragim/Parviz Bekliev
3e57378631
fix / sso: after complete login via token make sure to delete only loginToken query-param from the window.location api.
...
Related to https://github.com/vector-im/element-web/pull/16292
Signed-off-by: Bekliev Parviz <nightkon95@gmail.com>
2021-02-09 16:40:52 +03:00
Michael Telatynski
d47948fb7b
Improve SSO auth flow
...
Use replaceState instead of a redirect to strip the loginToken
Put user into the same post-auth flows of E2ESetup
Skip UIA prompt in this post-auth flow, happy path is a server grace period
2021-01-27 12:50:14 +00:00
Hubert Chathi
e0e29996e0
Update to new API from matrix-react-sdk#5483 ( #15942 )
2020-12-15 12:57:17 -05:00
David Baker
4eb5bb2bae
Merge pull request #15274 from vector-im/dbkr/remove_conferencehandler
...
Remove conference handler
2020-09-25 15:52:25 +01:00
David Baker
c988988a70
This is unused now
2020-09-24 16:44:05 +01:00
David Baker
b31bf6cfca
Remove conference handler
2020-09-24 16:19:00 +01:00
Michael Telatynski
ac447fd318
Fix onNewScreen to use replace when going from roomId->roomAlias to prevent locking the user in place
2020-09-09 16:52:48 +01:00
J. Ryan Stinnett
acb22f4fe5
Replace references to riot.im
2020-07-13 17:02:20 +01:00
Michael Telatynski
eac86b6053
Be more explicit about type when calling platform startUpdater
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-02 23:16:03 +01:00
Michael Telatynski
e5a232b0d8
make typescript happy
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-22 13:41:29 +01:00
Michael Telatynski
d486782dd4
convert app.js to app.tsx
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-22 13:29:12 +01:00