Commit Graph

18252 Commits (77e7e46464450468a459d20efa3c122b40d9297c)

Author SHA1 Message Date
Travis Ralston 26eb617bec
Merge pull request #3384 from matrix-org/travis/fix-pl
Fix member power levels in room settings
2019-09-05 07:16:52 -06:00
J. Ryan Stinnett 0929a9cc72 Add new agreed URLs to account data instead of overwriting
This changes terms account data storage to always add, rather than setting only
the current set of displayed URLs.

Fixes https://github.com/vector-im/riot-web/issues/10755
2019-09-05 13:38:32 +01:00
Bruno Windels 4ef9fa53ac better i18n 2019-09-05 11:10:13 +02:00
Bruno Windels e3d70f3999 ensure selection is not lost upon clicking format bar in chrome 2019-09-05 11:01:44 +02:00
Travis Ralston d6adf0fd6d Add responsible error handling because we're responsible people 2019-09-04 11:24:31 -06:00
Bruno Windels af535986d2 fix css lint 2019-09-04 16:40:34 +02:00
Bruno Windels 2ea556e0b4 support update callback setting selection instead of caret 2019-09-04 16:40:34 +02:00
Bruno Windels 037ac29c57 be more forgiving with offset that don't have atNodeEnd=true
if index is not found, it means the last position should be returned
if there is any.

We still return -1 for empty documents, as index should always point
to a valid part if positive.
2019-09-04 16:40:34 +02:00
Bruno Windels 42c37d8293 fixup: improve quote and code block newline handling 2019-09-04 16:40:34 +02:00
Bruno Windels e0668e8517 improve algorithm to reduce selection to text node + charactar offset
this follows the documentation of {focus|anchor}{Offset|Node} better
and was causing problems for creating ranges from the document selection
when doing ctrl+A in firefox as the anchorNode/Offset was expressed
as childNodes from the editor root.
2019-09-04 16:40:34 +02:00
Bruno Windels 4691108a16 only increase offset if caret hasn't been found yet
also rename caret away as this isn't used for the caret solely anymore
2019-09-04 16:40:34 +02:00
Bruno Windels 7a01d1407f make _replaceRange internal only 2019-09-04 16:40:34 +02:00
Bruno Windels 4c04bc19c9 fixup: remove now unused import 2019-09-04 16:40:34 +02:00
Bruno Windels 6e694c113a add support for inline/block code formatting 2019-09-04 16:40:34 +02:00
Bruno Windels b35a3531bb move quote formatting out of react component 2019-09-04 16:40:34 +02:00
Bruno Windels b72d1a78ec move inline formatting code out of react component 2019-09-04 16:40:34 +02:00
Bruno Windels 47d8d86bbe whitespace (in model) 2019-09-04 16:40:23 +02:00
Bruno Windels 7f501b2aef first impl of quote formatting 2019-09-04 16:40:13 +02:00
Bruno Windels d4c7992f5a first impl of inline formatting 2019-09-04 16:39:56 +02:00
Bruno Windels e7db660820 fixup: css, we have 5 buttons 2019-09-04 16:39:07 +02:00
Bruno Windels c15dfc3c05 make Range start and end public 2019-09-04 16:38:42 +02:00
Bruno Windels 7dc39baaf3 implement bold support in format bar 2019-09-04 16:35:03 +02:00
Bruno Windels 77b14beb1f add getter for intersecting parts of range, and total length
we'll need this when replacing selection, to preserve
newlines, etc ... in the selected range (e.g. we can't just
use range.text).
2019-09-04 16:35:03 +02:00
Bruno Windels 48f1bf1816 sort positions in Range constructor, so start always comes before end 2019-09-04 16:35:03 +02:00
Bruno Windels 65ddfc0a50 show format bar when text is selected 2019-09-04 16:35:03 +02:00
Weblate c8aaffffb6 Merge branch 'origin/develop' into Weblate. 2019-09-03 16:04:27 +00:00
Bruno Windels 4575aaa9f6
Merge pull request #3382 from matrix-org/bwindels/escape-command-slash
New composer: allow escaping the first slash to not write a command
2019-09-03 16:04:23 +00:00
Weblate e1817ab8e3 Merge branch 'origin/develop' into Weblate. 2019-09-03 16:04:11 +00:00
Bruno Windels 9a409a7acc
Merge pull request #3381 from matrix-org/bwindels/plain-command
/plain command to bypass markdown conversion
2019-09-03 16:04:07 +00:00
Weblate 84c8b291e9 Merge branch 'origin/develop' into Weblate. 2019-09-03 15:58:19 +00:00
송태섭 0d544d00ed Translated using Weblate (Korean)
Currently translated at 100.0% (1762 of 1762 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/ko/
2019-09-03 15:58:19 +00:00
random ae809e0757 Translated using Weblate (Italian)
Currently translated at 100.0% (1762 of 1762 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/it/
2019-09-03 15:58:19 +00:00
J. Ryan Stinnett 3cb06c01b7
Merge pull request #3385 from matrix-org/jryans/email-invite-text
Improve email invite preview messaging
2019-09-03 16:58:14 +01:00
J. Ryan Stinnett 261bdab156 Fix indent 2019-09-03 16:55:17 +01:00
J. Ryan Stinnett 67299842e3 Use more specific messaging for email invite preview
This changes email invite previews to check more specific cases about whether
the email has been added to your account, you have an IS, the email is bound,
etc.

In addition, it always allows you to join if you want to.

Fixes https://github.com/vector-im/riot-web/issues/10669
2019-09-03 15:41:53 +01:00
Travis Ralston 2e3e2ec420 Fix member power levels in room settings
Fixes https://github.com/vector-im/riot-web/issues/10736

We didn't have an onChange property on the PowerSelector component
2019-09-03 08:36:24 -06:00
Bruno Windels 0d02ab59d6 allow starting a range with both positions known already
we'll need this to start a range for the selection
2019-09-03 16:00:50 +02:00
Bruno Windels eb87301855 allow getting the DocumentOffset for any node+offset, not just focusNode
we need this to get both offsets of the selection boundaries

getSelectionOffsetAndText offers the extra flexibility,
getCaretOffsetAndText keeps the old api for focusNode/focusOffset

Also did some renaming here now that it's not just for the caret anymore
2019-09-03 15:58:50 +02:00
Bruno Windels 648ae37ff4 make DocumentOffset compatible with what is returned from dom/getCaret
so we can return a DocumentOffset from there without breakage
2019-09-03 15:58:05 +02:00
Weblate 945679b09b Merge branch 'origin/develop' into Weblate. 2019-09-03 08:36:53 +00:00
송태섭 f5e231480a Translated using Weblate (Korean)
Currently translated at 100.0% (1762 of 1762 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/ko/
2019-09-03 08:36:53 +00:00
Szimszon f0da49b5bb Translated using Weblate (Hungarian)
Currently translated at 100.0% (1762 of 1762 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/hu/
2019-09-03 08:36:53 +00:00
jadiof 50eae5c1f4 Translated using Weblate (German)
Currently translated at 87.6% (1544 of 1762 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/de/
2019-09-03 08:36:52 +00:00
Kévin C a38cb37558 Translated using Weblate (French)
Currently translated at 100.0% (1762 of 1762 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/fr/
2019-09-03 08:36:52 +00:00
Jeff Huang 6ac4be6ee1 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (1762 of 1762 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/zh_Hant/
2019-09-03 08:36:52 +00:00
Bruno Windels 917700a1fc
Merge pull request #3383 from matrix-org/revert-3378-bwindels/cider-md-legend
Revert "New composer: show markdown legend on focus"
2019-09-03 08:36:48 +00:00
Bruno Windels 1063da0ed1
Revert "New composer: show markdown legend on focus" 2019-09-03 08:27:45 +00:00
Weblate 4c6de3290f Merge branch 'origin/develop' into Weblate. 2019-09-02 17:25:21 +00:00
Travis Ralston 71e13842b8
Merge pull request #3368 from matrix-org/travis/disable-msisdn
Disable MSISDN registration if the homeserver doesn't support it
2019-09-02 11:25:17 -06:00
Weblate acd0805a8b Merge branch 'origin/develop' into Weblate. 2019-09-02 17:08:49 +00:00