Commit graph

12789 commits

Author SHA1 Message Date
jenkins-bot a234120771 Merge "Check for 'veaction' when clicking section edit links" 2017-02-09 18:33:55 +00:00
Bartosz Dziewoński 5200f2ef34 ve.ui.MWSaveDialog: Show a hint to use Ctrl+Enter to submit when pressing Enter
Or Cmd+Enter for Mac.

Depends on VisualEditor core changes:
* I93f50e325f993d82a821bf02f5e7f56fe1b9de62
* Id0a357b038fc5730f61bcf3ba730838dcda9b00e

Bug: T153241
Change-Id: I6b0a5e2c4e4ec72016463c8ba6576d33d59be8e5
2017-02-09 16:47:41 +00:00
James D. Forrester 3302ba9203 Update VE core submodule to master (c1884680a)
New changes:
778dd0709 Destroy unicorns properly when cursoring to another branch node
2877cbbbc dm.Document: Make tree validation stricter
342a71e05 Update OOjs UI to v0.19.1
d2df4b6d4 Explain that Escape/Ctrl+Enter can be used to cancel/confirm a dialog
d978507f0 Move platform handling from CommandHelpDialog to CommandHelpRegistry
4dbceb403 Honorably discharge ve.dm.DocumentSynchronizer
0eb0e4214 Localisation updates from https://translatewiki.net.

Bug: T157019
Change-Id: I5066b1d2c60e116bc3b80b9a8242a72db243d8cf
2017-02-09 08:46:29 -08:00
Translation updater bot c201ae6172 Localisation updates from https://translatewiki.net.
Change-Id: Ia95042d9cd6c81e99c49848e0d17e33347bbc9c8
2017-02-08 22:47:18 +01:00
Ed Sanders 6bd650d50a Check for 'veaction' when clicking section edit links
Such as in the 'add topic' link.

Bug: T157104
Change-Id: Ide2d4cf8c23a5d0db24456d15b4312f7c0a5f922
2017-02-08 17:48:04 +00:00
Translation updater bot 02aa33cfbd Localisation updates from https://translatewiki.net.
Change-Id: I74eab9790e644bb90f354ae5d6a9f3cbb7ca2d6b
2017-02-07 23:07:39 +01:00
jenkins-bot 6e585c457c Merge "Move wikitext signature command to correct file" 2017-02-07 20:47:57 +00:00
Ed Sanders 8ab21d2ef5 Move wikitext signature command to correct file
So that signature availability is checked.

Bug: T157286
Change-Id: If1e585ce02e0bc9f5aa93129d315f83f183f5952
2017-02-07 20:21:32 +00:00
Ed Sanders f2cf73eaaf Define default HTML types for extension nodes
Use span/div for inline/block nodes respectively.

Bug: T157389
Change-Id: I4c501a6af88a490eec83af26adaa515a2b1d18d1
2017-02-07 20:12:39 +00:00
jenkins-bot 7cd3e1958a Merge "ArticleTarget: try to refresh editToken if getWikitextFragment fails" 2017-02-07 19:37:28 +00:00
James D. Forrester d5e245f6ff Update VE core submodule to master (121100d74)
New changes:
a4906cce4 VisualDiff: Implement linear diff timeout for edge cases
f4ab8c5e0 Remove explicit toolbar indicator definitions
37cb4fdca Update diff_match_patch
505205ec0 Localisation updates from https://translatewiki.net.
bc8491fc1 Fix definition of HTML whitespace in converter

Bug: T156599
Bug: T157406
Change-Id: Ie89e8da437c368bc0d1213cc19e169e1045c582c
2017-02-07 10:28:14 -08:00
David Lynch 8a7d44224c ArticleTarget: try to refresh editToken if getWikitextFragment fails
Refactor saveFail's badtoken handling out so it can be reused by
getWikitextFragment.

Bug: T156991
Change-Id: I686cddb5be4484211fa69640044db1bc34eacefc
2017-02-07 11:20:59 -06:00
jenkins-bot 158807f86c Merge "Remove explicit toolbar indicator definitions" 2017-02-06 17:11:59 +00:00
jenkins-bot ae14c98237 Merge "Update VE core submodule to master (f60ce1a)" 2017-02-06 10:42:43 +00:00
Translation updater bot 19569f4b02 Localisation updates from https://translatewiki.net.
Change-Id: If656029a98191aad2523fe743ac42b1a26920190
2017-02-05 22:57:31 +01:00
Ed Sanders 7a058a4de8 Remove explicit toolbar indicator definitions
These are now computed upstream based on position of toolbar.

The menu tool now needs its indicator explicitly hidden.

Change-Id: Id2280f70553e1e45f3a42af45684c5808797925c
2017-02-04 10:25:37 +00:00
jenkins-bot 05f8155499 Merge "Use var/let in screenshot.js" 2017-02-03 23:29:10 +00:00
jenkins-bot 188c907e15 Merge "Mark all node files as ES6" 2017-02-03 23:28:47 +00:00
Ed Sanders 15c986d128 Use var/let in screenshot.js
Change-Id: I70082dd6e4df38616e5c33c2b71f0aaae22bac63
2017-02-03 22:57:47 +00:00
Ed Sanders 2a5f29897f Mark all node files as ES6
Change-Id: I85d1ea2bf26647d04891574d1cc5a9828a5d4bbb
2017-02-03 22:26:55 +00:00
Translation updater bot bb029d2ebc Localisation updates from https://translatewiki.net.
Change-Id: Ibe93c0e21b2c4adb1796c0d07f9f0843e834be4e
2017-02-03 23:06:06 +01:00
James D. Forrester c10ba0885f Update VE core submodule to master (f60ce1a)
New changes:
a2e9331 Use forked version of DiffMatchPatch with abstract string methods
6aa2023 TransactionProcessor: Fix bug where annotation events could be emitted on the wrong nodes
b8b67d2 DocumentSynchronizer: Simplify pushRebuild() API
ed84b86 Add TransactionProcessor tests for wrapping, unwrapping and rewrapping
88764aa Remove presynchronize, use precommit instead
d704cbf tests: Fix offset numbering in getBranchNodeFromOffset test case
5eabbb2 VisualDiff: Add performance shortcuts to compareElements
2492fd0 Add comment for VisualDiff test store merge hack

Change-Id: Ica7185201e095a3a5da32a75c95bc2b90806568c
2017-02-03 09:11:12 -08:00
Ed Sanders 8a64006aa4 Introduce grunt-image to minify screenshots
Makes the task a bit slower (~50%) but image filesizes
are reduced by 75% on average.

Change-Id: I90b7a4b7b4a1e4d3452d4e791fef55cdfc780f94
2017-02-03 15:19:12 +00:00
James D. Forrester e3ff727cf8 Update VE core submodule to master (495524f)
New changes:
07ad6e3 Always convert newlines to paragraph breaks in source mode
582c99d Follow-up 1074babe: remove never-used parameter to synchronize()
0c4b9c0 Check correctly whether the cursor crossed a preunicorn

Bug: T156498
Bug: T157019
Change-Id: I4b644b70242fd1fe3397d9c86aad37af26dddd66
2017-02-02 09:58:33 -08:00
jenkins-bot c0a4f5d607 Merge "Update VE core submodule to master (96ed6a4)" 2017-02-02 10:33:39 +00:00
jenkins-bot 61d449c9d2 Merge "ve.ui.MWSaveDialog: Prettify the 'messages' shown" 2017-02-01 23:50:58 +00:00
jenkins-bot 5015af4a32 Merge "ve.init.mw.ArticleTarget: Don't try to clear non-existent message" 2017-02-01 23:48:30 +00:00
jenkins-bot fbe31de0d3 Merge "ve.ui.MWSaveDialog: Remove unused $saveActions div" 2017-02-01 23:48:10 +00:00
James D. Forrester d58d40492d Update VE core submodule to master (96ed6a4)
New changes:
0b2bb48 ve.dm.TableMatrix: Emit event when table structure changes
819825f ve.dm.TableNode: Emit event when any cell's attributes change
0a8de00 VisualDiff: Annotation tests
19aaa68 Fix documentation in ve.Range, and remove test for wrong input
e18e5b8 tests: Test node replacement in ve.ui.DiffElement.js
7e7df4f Localisation updates from https://translatewiki.net.
f4f545f ElementLinearData#sanitize: Use a proper stack to find last open element
cac05d0 Fix width of labels in language inspector
96ed6a4 Update OOjs UI to v0.19.0

Bug: T156735
Change-Id: I46900fb06d43a9384ec6034438ddc0ff068f136e
2017-02-01 15:40:16 -08:00
Translation updater bot 8390b1f3fb Localisation updates from https://translatewiki.net.
Change-Id: I1d46d45a3dda6243a24cddbdb0dd679f8628fee9
2017-01-31 22:58:54 +01:00
Bartosz Dziewoński e8d99c5536 ve.ui.MWSaveDialog: Prettify the 'messages' shown
This is currently used to display a warning about missing edit summary
and to display a CAPTCHA field. They now appear in a separated area at
the bottom of the dialog, which slides into view when a message is
added.

Change-Id: I7541284a92d5fd2fa8f469d479e059098c59c0ac
2017-01-31 17:37:00 +00:00
Bartosz Dziewoński 6f367ea0ec ve.init.mw.ArticleTarget: Don't try to clear non-existent message
This is just dead code. We never call `.showMessage( 'captcha', ... )`
(the CAPTCHA is shown in the 'api-save-error' message).

Change-Id: I48f51e89d5b366384d184e2ed505be9e7b8f3401
2017-01-31 14:40:32 +01:00
Bartosz Dziewoński a0cb3029cb ve.ui.MWSaveDialog: Remove unused $saveActions div
Change-Id: I47da48b29d3bddd598946de655cf1e8b086daf45
2017-01-31 13:43:47 +01:00
Translation updater bot 2e690797c0 Localisation updates from https://translatewiki.net.
Change-Id: Idc95868d10a1fd04899fcbec7a280b55743a874d
2017-01-30 22:52:00 +01:00
jenkins-bot 7b46d105b1 Merge "Advanced Settings: improve displaytitle field" 2017-01-30 19:40:13 +00:00
David Lynch 00fb8c8e58 Advanced Settings: improve displaytitle field
* Remove the checkbox; an empty field, or a value exactly equal to the page
  title means no displaytitle.
* Automatically fill the field with the current page title
* The field was mispositioned

Bug: T155818
Bug: T156665
Change-Id: I46db6b14616c9a021e757284972537cac00546a1
2017-01-30 19:29:25 +00:00
WMDE-Fisch a0af0b0529 Disable VisualEditor in the TwoColConflict extension
As for the Translate extension this will read a global set by the
TwoColConflict extension to disable the VisualEditor and its hooks
on the modified edit conflict page there.

Bug: T156251
Change-Id: I164d1546c9d98d8715650e13c63a01d06c76315d
2017-01-30 14:06:59 +01:00
James D. Forrester 521a15a07d Update VE core submodule to master (d8b833e)
New changes:
5d5ca73 Follow-up Id00817d05: Correct mistaken handling of forced replacements
5649654 tests: Get coverage of ve.Range.js to 100%
a65b1ce ve.utils.js: Add some more 'Support:' comments
db28d44 Revert "Pass text as string to insertDocument when detected as plain text"

Change-Id: I6f3f15b59be131586df697847304f5235958a58d
2017-01-30 10:31:33 +00:00
Ed Sanders 1d7f929a91 Update VE core submodule to master (139bdf7)
New changes:
d79138b Overwrite selected content when pasting via DataTransferItem
3c4737f Ensure clipboard is never empty text
3b1339e Create dummy platform and target for tests
4d63c8e Pass text as string to insertDocument when detected as plain text

Local change:
Remove VE standalone module

Flow used to use it, but not anymore. Going forward no one should
be using it in MW.

Bug: T154020
Bug: T156302
Bug: T156498
Depends-On: I078c244ef524669da477a43f9b37c847252e5ad7
Change-Id: Ifc4be16269f819890f2dcdddbbdebf9694ad2868
2017-01-29 18:50:47 +00:00
Translation updater bot 662789bb13 Localisation updates from https://translatewiki.net.
Change-Id: Ib90e3f4f0482f1642fe8dde53dd0f601d3e942cc
2017-01-28 22:56:32 +01:00
James D. Forrester 6de2bb21d9 Update VE core submodule to master (e5dffec)
New changes:
e3027e1 RebaseServer: use a separate class for document state
c76dce2 Detect node type/attribute changes in the visual diff
e98547f VisualDiff: Remove redundant length check
5d8c85d Add test for non-semantic whitespace diff
c352e8f Add i18n for 'No changes' message
e3669dd VisualDiff: Add node insertion/removal tests
d4a8973 VisualDiff: Add paragraph moving tests
fba5d0c VisualDiff: Add table column tests
af891bf Localisation updates from https://translatewiki.net.
7fb299b Follow-up c352e8f: Don't use i18n key clashing with archaïc usage
b63bf47 Fix annotation of nodes in document insertion
dea4c82 Handle home/end/pageup/pagedown keys when on focusable nodes

Bug: T151404
Bug: T151589
Bug: T156376
Bug: T156463
Change-Id: I99c3590279b94e4a5219cb990b52f928b85a91f4
2017-01-27 17:56:37 +01:00
jenkins-bot 46d839a127 Merge "Add .idea to .gitignore" 2017-01-27 16:34:49 +00:00
Translation updater bot 0383c3c61b Localisation updates from https://translatewiki.net.
Change-Id: I19e481d7151511014ac3fabd241cdf01932a937e
2017-01-27 15:00:35 +01:00
WMDE-Fisch dc1ef61334 Add .idea to .gitignore
Change-Id: Id5b1717610caba765d270e0ba2e5b33766558827
2017-01-27 13:16:58 +01:00
jenkins-bot 44e87ade70 Merge "Add missing return in doc block" 2017-01-27 10:29:25 +00:00
WMDE-Fisch 5852080e74 Add missing return in doc block
Change-Id: Ia1f23c19c3ae26fce45d7ebdaafe91012b1684f1
2017-01-27 11:11:40 +01:00
jenkins-bot 19c0dd3aa4 Merge "MWSaveDialog: only focus summary if we're on the save panel" 2017-01-27 07:25:31 +00:00
David Lynch 60866eade2 Override ui.CommentInspector so that copying from it sets text/x-wiki
Bug: T154837
Change-Id: I3413c955aa23d34683e1a028a581b1ea34d55d49
2017-01-27 01:13:41 -06:00
David Lynch b976f2cf38 MWSaveDialog: only focus summary if we're on the save panel
Firefox throws exceptions when trying to focus hidden inputs. Using the
"preview" keyboard shortcut entirely bypasses the save panel, but the ready
process assumes it'll always be opened first.

Bug: T153958
Change-Id: Ifb3861116565e77c30b3874fe47889298c3ace6d
2017-01-27 00:51:33 -06:00
jenkins-bot fb48db7227 Merge "Ignore section edit links when no action present" 2017-01-26 14:13:24 +00:00