Travis Ralston
22bc98c8bc
Merge branch 'develop' into noscript
2020-02-28 13:34:39 -07:00
Michael Telatynski
7c84e406ac
Modernizr remove t3st/es6/contains
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-26 12:16:35 +00:00
Michael Telatynski
37e17133bc
Switch out any eval-using Modernizr rules
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-26 10:24:10 +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
Karol Kosek
b571ff766c
index.html: Place noscript on top of the page
...
Before this change, you had to scroll down to see the noscript element.
This change places the noscript element on top of the page making sure
that a user will see this message when site is loaded without JavaScript.
Signed-off-by: Karol Kosek <krkk@krkk.ct8.pl>
2020-02-22 21:14:01 +01: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
Michael Telatynski
7664eb27c4
Move bulk to react-sdk and reference it from riot-web land
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-13 16:58:28 +00:00
Michael Telatynski
b7ed7a1dd7
Update comments and such
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-13 16:53:45 +00:00
Michael Telatynski
d39d89de83
revert modernizr change
2020-02-07 22:08:57 +00:00
Michael Telatynski
98773df76e
Get rid of dependence on usercontent.riot.im
2020-02-07 22:07:30 +00:00
Michael Telatynski
95f749ccd9
Remove modernizr rules for features on which we only soft depend
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-06 18:01:53 +00:00
Michael Telatynski
eb62972aed
Merge pull request #12258 from vector-im/t3chguy/csp
...
Embed CSP meta tag and stop using script-src unsafe-inline
2020-02-06 12:15:17 +00:00
Michael Telatynski
3a5a904afb
Update src/vector/index.html
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2020-02-06 11:54:05 +00:00
Michael Telatynski
7d68c2c465
re-add child-src as the common ancestor of worker-src and frame-src for backwards compat and split onto multiple lines for readability
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-06 11:52:21 +00:00
Michael Telatynski
074a3cfaaf
fix font-src of CSP
2020-02-06 10:17:38 +00:00
Michael Telatynski
2b5e028cbe
add comment
2020-02-05 16:37:19 +00:00
Michael Telatynski
ec20e1ece2
Embed CSP meta tag and stop using script-src unsafe-inline
2020-02-05 16:35:23 +00:00
Michael Telatynski
7d49078f22
Change them to Modernizr tests and add more rules
2020-02-05 14:05:46 +00:00
Michael Telatynski
032efafe2e
Rejig things around to catch Promises not being a thing at all
2020-02-04 13:35:05 +00:00
Michael Telatynski
087bcf0ae6
fix declaration order
2020-02-04 11:11:06 +00:00
Michael Telatynski
cdc1202bbe
Add custom browser checks outside of Modernizr
2020-02-04 11:08:52 +00:00
Michael Telatynski
bceca49cdc
Update vendored modernizr
2020-02-04 11:00:47 +00:00
Damir Jelić
7aff020d4d
Merge branch 'poljar/seshat-ui' into develop
2020-01-24 14:40:54 +01:00
Damir Jelić
c0558f3527
Merge branch 'poljar/seshat-filepanel' into develop
2020-01-24 14:38:20 +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
Travis Ralston
99e1ff9477
Load as little as possible in index.js for the skinner
...
Imports are optimized to be concurrent/async by webpack, which means that when the old index.js referenced the Lifecycle from the react-sdk it caused the app to explode. This is because in another branch the Lifecycle references a class member of a skinnable component, leading to the skinner complaining that the skin hasn't been loaded.
To work around this, we've shoved all the app stuff to a new app.js file, leaving just the skinning and some early bootstrap work in the index.js
2020-01-20 19:52:11 -07:00
Travis Ralston
cdd25ea45f
Fix rageshake post-sourcemaps
2020-01-17 18:27:37 -07: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
f73d2bae1f
Merge branch 'develop' into travis/sourcemaps
2020-01-13 11:22:47 -07:00
Dale Harvey
a41484cb35
Add stub service worker so users can install on desktop with Chrome
...
Signed-off-by: Dale Harvey <dale@arandomurl.com>
2020-01-10 19:08:56 +00:00
Travis Ralston
ec66069e96
Update build scripts for new process
...
We have to convert *something* to TypeScript so it doesn't complain that there's nothing to compile, so this converts the easiest utility library.
Many of the scripts are copied from the react-sdk.
2020-01-08 16:09:42 -07: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
David Baker
c063cec4d7
remove draft CSS reference
2019-12-06 13:44:51 +00:00
Aaron Raimist
3397165036
Remove mention of vector.im as default identity server on mobile guide
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-11-27 19:26:22 -06: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
David Baker
8b2ca56283
Merge pull request #11445 from vector-im/dbkr/dedup_theming_code
...
De-dup theming code
2019-11-21 09:44:22 +00:00
David Baker
135d5f4cc7
Merge pull request #11442 from vector-im/dbkr/system_dark_mode
...
Use new theme API in react-sdk
2019-11-20 16:32:32 +00:00
David Baker
e34c46c893
Dedup theming code
...
Following on from https://github.com/matrix-org/matrix-react-sdk/pull/3637
this removes the code dealing with themes in vector/index.js and uses the
code from react-sdk. The two did almost exactly the same thing but in
subtley different ways.
This code can be incredibly subtle though, so doing this a separate
PR.
2019-11-20 15:42:15 +00:00
David Baker
7294bec1c8
Use new theme API in react-sdk
...
A thesis presented in two parts. This part has the absolute minimum
logic changes to the themeing code in vector/index.js because I know
how subtle and fragile this code is. However, it also looks like it's
completely duplicated from react-sdk, so in the next part I'm going
to remove that logic and make it use the logic in react-sdk, then we
can see what breaks.
Requires https://github.com/matrix-org/matrix-react-sdk/pull/3637
2019-11-20 13:43:08 +00:00
Bruno Windels
0c9f0e52bd
preload warning triangle
2019-11-20 12:42:31 +01: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
Travis Ralston
6cf4fc1026
Trigger a theme change on startup, not just a tint change
...
Fixes https://github.com/vector-im/riot-web/issues/11370
2019-11-13 14:00:22 -07:00