Michael Telatynski
211f480027
Abstract electron download path behind an opaque ID ( #20271 )
2021-12-21 15:34:57 +00:00
James Salter
9e1f393224
Ensure group audio-only calls don't switch on the webcam on join ( #20234 )
...
Pass isAudioOnly flag to jitsi SDK
2021-12-17 19:54:57 +11:00
Germain
23b21c940c
Open thread on native notification click ( #20176 )
2021-12-15 08:34:54 +00: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
Kerry
b155d19934
add aria-hidden and alt for preload svg images ( #20113 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2021-12-09 14:23:03 +01:00
James Salter
b0abbfacd4
Fix Docker build versioning ( #20077 )
...
* Centralise version scripts and fix Docker version
* Refactor generation of a git-hash-based version into get-version-from-git
* Refactor normalization of versions (stripping leading v) into normalize-version.sh
* Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
* Refactor docker-write-version.sh into docker-package.sh, which both writes the
version file and invokes yarn build passing VERSION
* Normalize the version received from the server
2021-12-07 15:11:01 +11:00
James Salter
60788da1a3
Normalize the local app version ( #20061 )
...
We need to strip the leading v from the local app version in pollForUpdate to ensure it compares correctly the version from the /version request indicating what the latest available version is. Previously, we only stripped the leading in getAppVersion which is used in some other places but not to decide whether an update is available.
2021-12-06 23:12:29 +11:00
Matthew Hodgson
9b780e0e60
Simple static location sharing ( #19754 )
...
Adds static location share a la [MSC3488](https://github.com/matrix-org/matrix-doc/pull/3488 ) behind a labs flag, supporting legacy `m.location` `msgtype` too. Powered by https://github.com/matrix-org/matrix-react-sdk/pull/7135 . Adds maplibre as a dependency.
To make this work, you have to add a valid `map_style_url` to your config.json.
2021-12-06 10:11:06 +00:00
Michael Telatynski
883d8cecaa
Improve platform types ( #20027 )
2021-12-03 11:03:01 +00:00
James Salter
194aeac19e
Get version from build VERSION variable ( #19857 )
...
* Fetch version from VERSION set during build
* When polling for new versions, compare to VERSION set during build
* Strip leading v from version, matching package.sh
2021-11-23 18:42:24 +11:00
David Baker
75eab660c2
Remove highlightjs CSS ( #19483 )
...
This was completely unnecessary: react-sdk includes appropriate CSS
for highlight.js in its themes. This was actually causing some of
those values to be overridden with silly ones that made text invisible
on the dark theme.
Fixes https://github.com/vector-im/element-web/issues/19476
2021-10-22 18:28:27 +01: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
515a8d2097
Fix wrong type call for window.location.reload
2021-10-19 10:14:31 +02:00
Dariusz Niemczyk
0a87baf99d
Remove accidentally persisted log-level data
...
This commit gets rid of log-level data in localStorage which in some
extreme cases could fill up the entire localStorage making the app
unusable
Followup to https://github.com/matrix-org/matrix-js-sdk/pull/1880
2021-09-16 14:51:32 +02:00
Michael Telatynski
1aa2efd2ce
Merge pull request #18490 from vector-im/t3chguy/fix/18088
2021-09-16 10:16:23 +01:00
Michael Telatynski
5a561b674f
Fix space keyboard shortcuts conflicting with native zoom shortcuts
2021-09-14 16:02:15 +01:00
Michael Telatynski
1d5d7751f7
Merge branch 'develop' of github.com:vector-im/element-web into t3chguy/fix/18088
2021-09-08 15:29:11 +01:00
Dariusz Niemczyk
231ff3a73d
Fix CI having invalid node_env
2021-08-23 12:35:43 +02:00
Paulo Pinto
23aabcc56c
Fix typo
2021-08-18 17:44:20 +01:00
Paulo Pinto
e96059337e
Fix typo
2021-08-18 17:09:21 +01:00
Paulo Pinto
45cbfbf5d8
Standardise spelling of hot-reload
...
This is the form used elsewhere.
2021-08-18 17:08:22 +01:00
Paulo Pinto
74bc3c1dab
Improve phrasing
2021-08-18 16:59:57 +01:00
Michael Telatynski
55338701ea
Delabs Spaces, keeping it as a default-on preference for the time being
2021-08-11 14:52:43 +01:00
Travis Ralston
d4fc3ed354
Properly handle react-sdk's recorder worklet
...
Fixes https://github.com/vector-im/element-web/issues/18393
2021-08-04 15:08:52 -06:00
Dariusz Niemczyk
cc1a1e751b
Add some additional HMR cleanup for dev
2021-08-03 18:37:48 +02:00
Dariusz Niemczyk
b677edbc58
Make CSS Hot-reload work in a hacky way
2021-08-02 14:38:25 +02:00
Dariusz Niemczyk
4b12b711ee
Add data-mx-theme to theme css for hot-reload
2021-08-02 14:38:25 +02:00
Michael Telatynski
1cffed2336
Dismiss electron download toast when clicking Open
2021-07-27 15:04:55 +01:00
Michael Telatynski
e136afe2eb
Conform to new typescript eslint rules
2021-07-19 22:47:32 +01: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
c7a935777d
Fix the jitsi qs parsing, as the `?` after `#` here is optional, unlike in EW
2021-07-16 19:37:48 +01:00
Michael Telatynski
75e4d16462
use js-sdk decodeParams utility
2021-07-16 13:10:58 +01:00
Michael Telatynski
b03b4582c0
Merge branch 'develop' of github.com:vector-im/element-web into t3chguy/querystring
...
Conflicts:
package.json
src/@types/global.d.ts
src/vector/app.tsx
src/vector/jitsi/index.ts
src/vector/platform/WebPlatform.ts
yarn.lock
2021-07-16 12:45:37 +01:00
Michael Telatynski
43695fbc58
Merge branch 'develop' into fix/space-shortcut-local/17776
2021-07-15 13:53:06 +01:00
Michael Telatynski
8289d6937f
Merge pull request #18006 from vector-im/t3chguy/spacesperf
2021-07-15 10:18:18 +01:00
Michael Telatynski
2877ef8fcf
Fix skinning
2021-07-15 08:29:18 +01:00
Michael Telatynski
f65231268d
Cache value of feature_spaces* flags as they cause page refresh so are immutable
2021-07-15 08:26:50 +01:00
Germain
bd4c6b8c6c
Merge pull request #17980 from psrpinto/fix/naming
...
Standardise casing of identity server
2021-07-15 08:07:10 +01:00
Michael Telatynski
80bc659b11
Merge branch 'develop' of github.com:vector-im/element-web into t3chguy/ts/c3
...
Conflicts:
src/vector/indexeddb-worker.ts
2021-07-14 17:50:40 +01:00
Paulo Pinto
0b6789c290
Standardise casing of identity server
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-07-13 16:19:56 +01:00
Michael Telatynski
54ebd0cca1
Fix types to match Typescripted IndexedDB store
2021-07-12 18:47:40 +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
Michael Telatynski
2983215dee
Improve and consolidate typing
2021-07-10 15:43:48 +01:00
Michael Telatynski
629630a086
Update Modernizr and stop it from polluting classes on the html tag
2021-07-09 11:49:07 +01:00
Šimon Brandner
2760a36f47
Convert a few files to TS
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-06 21:41:02 +02:00
J. Ryan Stinnett
491b179971
Auto-fix lint errors
2021-06-30 13:28:31 +01:00
Michael Telatynski
4bc53aaed1
Merge pull request #17647 from vector-im/t3chguy/fix/17282
...
Remove spurious overflow: auto on #matrixchat element
2021-06-29 22:23:49 +01:00
Germain Souquet
33d05678b4
Enhance security by disallowing CSP object-src rule
2021-06-28 16:47:33 +01:00
Šimon Brandner
f8da8254ce
Better handling space shortcuts
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-06-28 15:17:26 +02:00
Šimon Brandner
76d9f26a16
Fix space shortcuts on non-English layouts
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-06-25 16:04:12 +02:00
Michael Telatynski
e2a109667a
Merge branch 'develop' of github.com:vector-im/element-web into t3chguy/ts/5.1
...
Conflicts:
src/vector/platform/ElectronPlatform.tsx
2021-06-23 14:54:06 +01:00
Michael Telatynski
1805a28d51
Merge pull request #17457 from vector-im/t3chguy/fix/17128-1
2021-06-22 14:21:46 +01:00
Michael Telatynski
f461c900cf
Improve typing of Event Index Manager / Seshat
2021-06-19 15:37:06 +01:00
Michael Telatynski
9e4eebed26
Change spaces shortcut to have 1 = space 1, 0 = home
2021-06-18 08:24:36 +01:00
Michael Telatynski
d5ac6d8c7e
Remove spurious overflow: auto on #matrixchat element
2021-06-14 22:07:41 +01:00
Michael Telatynski
a70803a36e
Add Modernizr test for Promise.allSettled given js-sdk and react-sdk depend on it
2021-05-25 16:12:54 +01:00
Michael Telatynski
f7ea7b948a
Wire space switch shortcut via dispatcher to prevent app load explosion due to skinning
2021-05-24 18:23:04 +01:00
Michael Telatynski
aa1145960a
Spaces keyboard shortcuts first cut
2021-05-24 18:08:31 +01:00
Hubert Chathi
53eb0e0f26
Bump libolm dependency, and update package name.
2021-05-21 16:10:48 -04:00
Germain Souquet
dc4cc02682
Change lang type to allow for multiple locales
2021-04-26 13:54:17 +01:00
Germain Souquet
f5c2d51f1e
Implement IPC call to Electron to set language
2021-04-23 17:14:40 +01:00
Travis Ralston
69b4296fa7
Merge branch 'develop' into travis/voice/event_type
2021-04-22 14:37:23 -06:00
Germain Souquet
8abc7cd87c
Only inject Inter fonts to HtmlWebpackPlugin
2021-04-22 14:31:06 +01:00
Germain Souquet
417835fcca
Preload Inter font to avoid FOIT on slow connections
2021-04-22 12:09:50 +01:00
Germain Souquet
708f6a26b1
Upgrade html-webpack-plugin to v4.5.2
2021-04-22 10:22:52 +01:00
Travis Ralston
9c3627dca9
Register RecorderWorklet from react-sdk
2021-04-19 21:51:25 -06:00
Germain
72f987a42b
Rename blackboxing to new option ignore list
2021-04-15 10:57:54 +01:00
Travis Ralston
1952cf6563
Add missing closing tag in guide
2021-04-08 18:43:15 -06: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
Germain Souquet
1d79f97a7a
Add user settings for warn before exit
2021-03-25 14:15:34 +00:00
Travis Ralston
a76c4ae943
Disable rageshake persistence if no logs would be submitted
...
This also delays the persistence until later in the app startup - this is fine for the reasons listed on the partner PR: https://github.com/matrix-org/matrix-react-sdk/pull/5767
Fixes https://github.com/vector-im/element-web/issues/16694
2021-03-16 14:22:06 -06:00
David Baker
b910fcd38a
Add option for audio live streaming
...
Starts jitsi streaming to a specially configured URL so that the
jitsi server can start an audio-only stream, in combination with an
API to manage audio streams by room ID.
2021-03-04 18:00:55 +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
4961037dbe
Remove setting languages on startup
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-18 19:16:33 +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
Travis Ralston
c67951f254
Jitsi widget: Read room name from query parameters
...
This is an aesthetic change to the Jitsi widget and has no bearing on the widget's functionality.
Paired with https://github.com/matrix-org/matrix-react-sdk/pull/5649
2021-02-15 08:54:56 -07:00
Michael Telatynski
438eef0acd
Update src/vector/app.tsx
2021-02-11 16:27:55 +00: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
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
J. Ryan Stinnett
27a92a5c89
Add RegExp dotAll feature test
...
As mentioned in
https://github.com/vector-im/element-web/issues/16020#issuecomment-774384598 ,
we're depending on the `dotAll` / `s` regex feature. This adds a test so
browsers without this see an error screen.
2021-02-08 16:44:59 +00:00
Michael Telatynski
d5a824d6dd
Merge pull request #16292 from vector-im/t3chguy/sso_fixes
...
Use history replaceState instead of redirect for SSO flow
2021-01-29 13:29:02 +00:00
J. Ryan Stinnett
0f3623393f
Fix typing errors after upgrades
2021-01-27 14:35:02 +00: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
Travis Ralston
5cb323feed
Supply server_name for optional federation-capable Jitsi auth
...
See https://github.com/matrix-org/prosody-mod-auth-matrix-user-verification/pull/3
2021-01-19 10:23:23 -07: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
87e67d8168
Skip the service worker for Electron
...
At the moment, there's no point in installing the empty service worker on
Electron.
Fixes https://github.com/vector-im/element-web/issues/16008
2021-01-15 11:05:27 +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