Ed Sanders
ac476eb4cf
Initialize tab state to avoid flicker
...
Also set 'defaultMode' before calling parent constructor.
Bug: T234403
Change-Id: I08320bd539419ddf7ba22a5dc316177d751bcb8d
2020-05-22 18:25:04 +00:00
jenkins-bot
16cf49e7e4
Merge "ReplyWidget: Avoid buttons shifting when switching to source"
2020-05-22 11:05:32 +00:00
Translation updater bot
98b6d9c0ca
Localisation updates from https://translatewiki.net .
...
Change-Id: I02b26487d7c9250f2946e3af31f79fb533ffa7f1
2020-05-22 08:34:56 +02:00
Bartosz Dziewoński
fbd6338331
ReplyWidget: Avoid buttons shifting when switching to source
...
When the preview loads, the "Reply" / "Cancel" buttons shift downwards,
which looks ugly. Try to wait for the preview before showing the source
editor interface.
Bug: T234403
Change-Id: I70989fb9fbcac17e1a0672eda8d34bf26003bb96
2020-05-21 23:43:51 +02:00
jenkins-bot
54db24f1f5
Merge "Don't allow users to switch to a mode they are already in"
2020-05-21 18:21:42 +00:00
Ed Sanders
2d9a760d4e
ReplyWidget: Use interface dir for UI
...
* Reset to content dir for preview.
* <textarea> gets dir from the `.sitedir-* textarea` rule.
* VE already sets the content dir in the editor.
Bug: T253255
Change-Id: I76df093490e86a730ccd5610c43c9b3fc7e07a54
2020-05-21 18:28:03 +01:00
Ed Sanders
ade5f7cb6c
Visual: Use createModelFromDom when setting document
...
Ensures that MW target sets the correct dir and lang on the document.
We should consider upstreaming this.
Bug: T253258
Change-Id: Ibc9ae7b4b105055291c941ce932f499bd6e13657
2020-05-21 18:26:59 +01:00
Ed Sanders
406aed0577
Don't allow users to switch to a mode they are already in
...
Change-Id: I082108c81ab871b64df76b6f9ba5cf4314ce6458
2020-05-21 18:26:08 +01:00
jenkins-bot
d0dd4cf036
Merge "Add autosave support to visual mode"
2020-05-21 17:06:39 +00:00
jenkins-bot
838dcdccad
Merge "Avoid deprecated User::getOption()"
2020-05-21 16:21:36 +00:00
jenkins-bot
c53cecac10
Merge "Create a user preference to store visual/source mode"
2020-05-21 16:21:34 +00:00
Bartosz Dziewoński
5675eea4d0
Avoid deprecated User::getOption()
...
Change-Id: Iad32c3e63116c54c47cd3aa2aaf142c5dd5404c5
2020-05-21 13:12:49 +00:00
Ed Sanders
9fbafef652
Add autosave support to visual mode
...
Bug: T240257
Change-Id: I87f8b68a5afee8d03c81cb283c9bee68ef9d4a5d
2020-05-20 22:16:20 +01:00
Ed Sanders
5feb69612f
Create a user preference to store visual/source mode
...
Bug: T250523
Depends-On: I5b3b47feeeca2085fcd283d55d7e9ceafa73be70
Change-Id: I18f5d38f9d694b12e5f983be7b3b165f135a890d
2020-05-20 22:16:19 +01:00
Ed Sanders
66d3c95f23
Prefix '@' to username auto-complete output
...
Bug: T252460
Change-Id: I932ccddcacbe15efe9ea08d6a6d028cd84d8815c
2020-05-20 12:28:31 +01:00
Bartosz Dziewoński
c64bb6b5b7
Add the test for getAuthors() in JS too
...
Change-Id: Id7dabc535b6bb688602c0d55fc3696f662cb10c7
2020-05-19 21:13:52 +02:00
Bartosz Dziewoński
515af82061
Reduce duplication between PHP parser and data gen for JS parser
...
Also, make the handling of TranslateNumerals and digitsRegexp the same
between PHP and JS.
Change-Id: I1d81343d0b59ab3ecd59ba1c2ad99a729d983ac4
2020-05-19 20:54:44 +02:00
Translation updater bot
d35facc83f
Localisation updates from https://translatewiki.net .
...
Change-Id: Ica9abfed48cc3bd37c7f000fa098857dbdf8a708
2020-05-19 08:24:16 +02:00
jenkins-bot
2ee6cd6a03
Merge "Add test case for unwrapParsoidSections()"
2020-05-18 23:39:12 +00:00
jenkins-bot
f5ac86528b
Merge "Show real error message when an exception is thrown"
2020-05-18 23:08:34 +00:00
jenkins-bot
366aca2ccd
Merge "Stop printing console warnings"
2020-05-18 22:52:30 +00:00
Bartosz Dziewoński
219339551c
Stop printing console warnings
...
It was useful when I was debugging those parts of the code, but now
it's usually annoying.
The warnings can still sometimes be useful for understanding how the
tool parses some discussion, though. To keep that functionality, add
displaying warnings for each comment in the debug mode.
Change-Id: I2d218a8a394f179bcc0990ff988a0567c275ccf2
2020-05-18 23:37:37 +02:00
Bartosz Dziewoński
e12aea2f77
Add test case for unwrapParsoidSections()
...
Covers the bug fixed in I9133d4365a71d6db1fa58b69ae3b970166d15c1e.
Depends-On: I9133d4365a71d6db1fa58b69ae3b970166d15c1e
Bug: T252238
Change-Id: I92831696864e04384eb514ab69f14563cceafc19
2020-05-18 21:36:48 +00:00
Ed Sanders
607440498e
Spell check pass
...
Change-Id: Ia20da358297126bd52a968bd77c960f81fe82b8f
2020-05-18 21:24:14 +00:00
Ed Sanders
c5d1029b25
Move /cases and /data up to /tests
...
Theses are no longer QUnit specific.
Change-Id: I5f3cca1ff686922e0cdaaedb80858f37df04799a
2020-05-18 21:47:17 +01:00
Bartosz Dziewoński
c848d8a90e
Parser tweaks
...
Follow-up to Ic1438d516e223db462cb227f6668e856672f538c.
Minor corrections and comment improvements in PHP parser,
and "backporting" some changes to JS parser that I like.
Change-Id: I5e54121914ec6b323e556dd133bcb71b3aefbb61
2020-05-18 19:53:26 +00:00
Ed Sanders
b1427163af
Parser.php: Add tests for getTranscludedFrom
...
Requires an implementation of unwrapParsoidSections
Change-Id: I96c929b1117ba652dbd5af6a1ee37a5f9e87ed1e
2020-05-18 19:53:01 +00:00
Ed Sanders
d1e58841af
Rename removeListItem to removeAddedListItem and remove in PHP
...
This method shouldn't be required on the server. Leave comments
relating to it in addListItem so JS & PHP can be kept in sync.
Change-Id: I849fac660faf6e750272c20776f96b9250f96b1b
2020-05-18 19:25:08 +00:00
jenkins-bot
2b7cca1380
Merge "ReplyWidget: Move all events bind to setup"
2020-05-18 19:19:47 +00:00
jenkins-bot
0496e6b7e6
Merge "PHP: More missing typehints"
2020-05-18 17:54:16 +00:00
jenkins-bot
a41eadfc51
Merge "Modifier: Pass document to createWikitext"
2020-05-18 17:54:15 +00:00
Translation updater bot
ec80ef0b30
Localisation updates from https://translatewiki.net .
...
Change-Id: Ib1bf85a37b90965a0eacdb0f1cab3c698f7a99fa
2020-05-18 08:29:52 +02:00
jenkins-bot
54ea65b27e
Merge "Give username completion a min width of 10em"
2020-05-18 02:51:33 +00:00
jenkins-bot
55640a8a0d
Merge "Show no remote users when input is empty"
2020-05-18 02:51:32 +00:00
Ed Sanders
d56b512f2e
ReplyWidget: Move all events bind to setup
...
Bug: T252439
Change-Id: I3c76e6364b63679fcbe40d256d9ba0c3eaba1578
2020-05-17 21:12:23 +01:00
Ed Sanders
bc437fc43f
PHP: More missing typehints
...
Change-Id: I483c9e70b65dcd685436b4099bcfc4925c65b002
2020-05-16 16:46:25 +01:00
Ed Sanders
5e996fdfdd
Modifier: Pass document to createWikitext
...
Change-Id: I1793e1d690835af746a4e25a50e2e0a474811e8e
2020-05-15 22:47:54 +01:00
jenkins-bot
9cc665a8bc
Merge "Add missing use MWException"
2020-05-15 21:46:21 +00:00
jenkins-bot
a6fcb965ea
Merge "Fix return type of callable"
2020-05-15 21:46:20 +00:00
jenkins-bot
db29a29306
Merge "Don't call non static functions statically"
2020-05-15 21:46:20 +00:00
jenkins-bot
973fc05f9a
Merge "Add leading \ to covers"
2020-05-15 21:46:19 +00:00
Reedy
234988155e
Add leading \ to covers
...
Change-Id: I1ed4cd28bf630c6aae238e548410d1293a8b71f1
2020-05-15 22:08:25 +01:00
Reedy
ac6cd26ca0
Don't call non static functions statically
...
Change-Id: I2db66a8da3ab325f2bbabb37afd276d4a62077e9
2020-05-15 22:02:57 +01:00
Reedy
70c5a1e435
Fix return type of callable
...
Change-Id: I7e594a9f9f6f9d4737fd880e449c43b9b2cf24fb
2020-05-15 22:01:21 +01:00
Reedy
c3a7ba1d13
Add missing use MWException
...
Change-Id: I4d00106718c0f7e32060d23aaa2bc8c74a4d6d1f
2020-05-15 22:00:30 +01:00
Reedy
08a6a83f9d
Replace stObject with stdClass
...
Change-Id: Id380c34cf0ca85a0a9a0d044474aa228b620c78f
2020-05-15 21:57:28 +01:00
jenkins-bot
21a892d5e7
Merge "Follow-up b78fb3f4
: Make sure we're using a MW User"
2020-05-15 20:38:42 +00:00
James D. Forrester
d775f30791
Follow-up b78fb3f4
: Make sure we're using a MW User
...
Change-Id: Iafd4d3b17a873c0702a64e063a1d0d7e19cf572b
2020-05-15 13:18:06 -07:00
Ed Sanders
e6e0b1ead9
PHP: Add missing typehints
...
Change-Id: I5639f8cbdae9aaa9cfa06136e19cc94f9fad10ea
2020-05-15 22:04:47 +02:00
Ed Sanders
b78fb3f4c1
Move all PHP to the MediaWiki\Extension\DiscussionTools namespace
...
Change-Id: I654ebb3e646a6d8d62f7bd14d48805e39f836d7e
2020-05-15 21:57:13 +02:00