J. Ryan Stinnett
b846ac5800
Rework ServerTypeSelector
to only emit changes after initial setup
...
`ServerTypeSelector` would call its `onChange` prop both at construction
(because it computed the default selected type and consumers might want to know)
as well as on actual user change. This ended up complicating consumer code, as
they want to differentiate between initial state and changes made by the user.
To simplify things, `ServerTypeSelector` now exports a function to compute the
server type from HS URL, which can be useful for setting its initially selected
type. The consumer now provides that type via a prop, and `onChange` is now only
called for actual user changes, simplifying the logic in `Registration` which
uses `ServerTypeSelector`.
In addition, some usages of `customHsUrl` vs. `defaultHsUrl` in `Registration`
are simplified to be `customHsUrl` only (since it already includes a fallback to
the default URL in `MatrixChat`).
2019-02-20 11:23:51 +00:00
J. Ryan Stinnett
9292a46db0
Update comment about Modular server type selection
...
Modular now sets `disable_custom_urls`, so the server type selector is not shown
for Modular-hosted Riot.
2019-02-20 10:24:03 +00:00
Bruno Windels
44bedb2084
fix unit tests without breaking the build
2019-02-20 09:36:18 +01:00
Bruno Windels
338eafab2b
Merge pull request #2664 from tebatalla/patch-1
...
Fix off by one error for username colors
2019-02-20 08:42:28 +01:00
Andrew Chronister
250341ec4d
Miscellaneous style issues
2019-02-19 21:46:17 -08:00
Andrew Chronister
12c1e82f11
s/var/let
2019-02-19 21:45:16 -08:00
Travis Ralston
8008f66d4b
Merge pull request #2665 from aaronraimist/dark-unsent-message-color
...
Set event-sending-color in dark theme
2019-02-19 19:17:58 -07:00
Aaron Raimist
c16791814e
Set event-sending-color in dark theme
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-02-19 19:58:11 -06:00
Travis Ralston
64103b7af4
More micro optimizations to make the hot paths faster
2019-02-19 15:15:39 -07:00
Travis Ralston
561d1f37ec
Stick a couple micro optimizations into the setRoomCategory hot path
2019-02-19 14:56:56 -07:00
Travis Ralston
7b732ceb43
Merge branch 'develop' into travis/better-room-sorting
2019-02-19 14:35:14 -07:00
Tomas Batalla
b90e33b81b
Fix off by one error for username colors
...
The hash result would only have a range of 0..7, but the css of color variants is 1..8
2019-02-19 10:52:59 -08:00
J. Ryan Stinnett
6b46057283
Merge pull request #2663 from jryans/enable-captcha-desktop
...
Allow captchas on Riot desktop builds
2019-02-19 18:20:15 +00:00
J. Ryan Stinnett
cba3897944
Merge pull request #2661 from jryans/captcha-stuck
...
Show link to login even during UI auth
2019-02-19 18:17:51 +00:00
J. Ryan Stinnett
edf10dbdde
Merge pull request #2659 from jryans/dark-theme-more-2
...
Dark theme follow ups round 2
2019-02-19 17:51:29 +00:00
J. Ryan Stinnett
d8c5163f49
Merge pull request #2662 from jryans/light-theme-name
...
Rename default theme to light theme
2019-02-19 15:03:55 +00:00
Jiri Grönroos
69d0b5a2e0
Translated using Weblate (Finnish)
...
Currently translated at 77.6% (1198 of 1543 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/fi/
2019-02-19 13:59:24 +00:00
J. Ryan Stinnett
1cde4abe6a
Improve text layout above captcha
2019-02-19 13:59:15 +00:00
J. Ryan Stinnett
3c156218da
Allow captchas on Riot desktop builds
2019-02-19 13:57:31 +00:00
J. Ryan Stinnett
198dee9abd
Rename default theme to light theme
2019-02-19 13:27:35 +00:00
J. Ryan Stinnett
4c83d898bd
Show link to login even during UI auth
...
This gives users an escape hatch in case something goes wrong with the UI auth
step, and they'd like to go somewhere else in the auth process.
2019-02-19 13:13:21 +00:00
J. Ryan Stinnett
e7a84b33e8
Merge pull request #2653 from matrix-org/benp/prevent-accidental-username-clicking
...
make mx_SenderProfile inline-block, reduces clickable area around usernames
2019-02-19 12:26:27 +00:00
J. Ryan Stinnett
b7cb16242b
Tweak light theme color values
2019-02-19 11:49:49 +00:00
Krombel
a38481175d
Translated using Weblate (German)
...
Currently translated at 100.0% (1543 of 1543 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/de/
2019-02-19 10:06:33 +00:00
Travis Ralston
424de00109
Merge pull request #2648 from matrix-org/travis/fix-room-settings
...
Add a bit of safety around reading events for room settings
2019-02-18 21:34:45 -07:00
Andrew Chronister
32f96788f1
Add to en_US i18n
2019-02-18 15:46:54 -08:00
chr
788e40f076
Add /shrug command
...
Certain popular web-based chat systems support a `/shrug` command which
appends the ¯\\_(ツ)_/¯ text emoticon (kaomoji) to a message. I've often
found myself wishing Riot had something similar, so I decided to add it
myself. (If Riot ever gets a user-extensible /-command system, this will
probably no longer be necessary. But since it doesn't have that, here I
am). Doesn't support markdown / rich text messages because I didn't want
to dig that far into Riot/the SDKs for my first PR; if someone else
would like to add that, by all means.
Signed-off-by: Andrew Chronister <chr@chronal.net>
2019-02-18 15:38:24 -08:00
J. Ryan Stinnett
5fb990eb5f
Convert Markdown button to SVG mask
...
This makes it easier to theme via CSS, which helps with the dark theme.
2019-02-18 18:26:52 +00:00
Kévin C
5de4952d11
Translated using Weblate (French)
...
Currently translated at 100.0% (1543 of 1543 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/fr/
2019-02-18 16:29:28 +00:00
Bruno Windels
6bf8269bcd
riot-web is a subdirectory when running the tests
2019-02-18 17:26:09 +01:00
J. Ryan Stinnett
09ed795c79
Allow theming member info minimise button
2019-02-18 16:02:10 +00:00
Bruno Windels
f51d25c394
declare LANGUAGES_FILE as global in eslint config
2019-02-18 16:36:11 +01:00
Bruno Windels
33858c8aff
move this path to webpack config file
...
otherwise react-sdk wouldn't be able to build anymore
without riot-web in a specific location
2019-02-18 16:26:04 +01:00
Bruno Windels
f240efb36d
get cache-busted url for languages.json through file-loader requiring it
2019-02-18 16:13:24 +01:00
J. Ryan Stinnett
19977b052f
Add new var for dark panel bg color
2019-02-18 13:50:17 +00:00
J. Ryan Stinnett
fdd88b60a6
Lift panel input styling up to common
2019-02-18 13:43:18 +00:00
J. Ryan Stinnett
98a3ecbcb5
Tweak placeholder styles to also affect member search
2019-02-18 13:34:25 +00:00
J. Ryan Stinnett
96f1538420
Remove bad syntax for input placeholder styles
2019-02-18 12:20:47 +00:00
J. Ryan Stinnett
3475b6faed
Remove light styles that duplicate common
2019-02-18 12:19:46 +00:00
J. Ryan Stinnett
e16f29b1e0
Use darker color of photo lightboxes for dialogs on dark theme
2019-02-18 12:14:55 +00:00
J. Ryan Stinnett
52bd1edd72
Tweak room and group pill color for dark theme
2019-02-18 11:41:23 +00:00
J. Ryan Stinnett
402992cee4
Adjust add room button for dark theme
2019-02-18 11:34:25 +00:00
J. Ryan Stinnett
c490606f15
Revert back to previous base color on dark theme
2019-02-18 11:34:25 +00:00
J. Ryan Stinnett
fa3662257d
Tweak widget bar color for dark theme
2019-02-18 11:34:25 +00:00
J. Ryan Stinnett
07f49e8ddb
Merge pull request #2654 from aaronraimist/dark-bg-color-update
...
Update dark theme bg-color to show hover effect on messages
2019-02-18 11:11:29 +00:00
Tiffany Thuy Kim Nguyen
2424efda5d
Translated using Weblate (Spanish)
...
Currently translated at 89.4% (1380 of 1543 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/es/
2019-02-18 07:03:05 +00:00
hectorfdezlopez
b46f660d06
Translated using Weblate (Spanish)
...
Currently translated at 89.4% (1380 of 1543 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/es/
2019-02-18 01:26:36 +00:00
Osoitz
1465714bf4
Translated using Weblate (Basque)
...
Currently translated at 100.0% (1543 of 1543 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/eu/
2019-02-17 13:20:41 +00:00
Samu Voutilainen
0daa69f0f8
Translated using Weblate (Finnish)
...
Currently translated at 67.8% (1047 of 1543 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/fi/
2019-02-17 11:53:50 +00:00
Aaron Raimist
9318c4ec78
Update dark theme bg-color to show hover effect on messages
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-02-16 12:55:35 -06:00