Commit graph

13438 commits

Author SHA1 Message Date
James D. Forrester f9fc275877 Update VE core submodule to master (154f192b3)
New changes:
86913b32a build: Upgrade QUnit to 2.x
af71dc077 tests: Simplify Platform test beforeEach/afterEach logic
951fd9293 build: Upgrade grunt-eslint from 19.0.0 to 20.0.0
e3bb4aa55 Unset surface active node if destroyed
ca5fddf9b tests: Move QUnit fiddles to VE-core-only file

Bug: T170585
Change-Id: I741bc01734922e9df15fbab870000ffaa173110e
2017-07-18 12:31:26 -07:00
jenkins-bot 8baf524006 Merge "Visual diffs: Use new wgDiffOldId/wgDiffNewId" 2017-07-18 15:40:28 +00:00
Bartosz Dziewoński 6123b452da Visual diffs: Use new wgDiffOldId/wgDiffNewId
This also removes an undeclared dependency on mediawiki.Uri.

Bug: T169574
Depends-On: Ic4abaae6e9c74509f7a114a697cdbb78dd1b89b6
Change-Id: I76803da5f1a52171a1af8de1f3e31ea127a2da78
2017-07-18 15:16:03 +00:00
Ed Sanders 835a775a49 build: Upgrade grunt-eslint from 19.0.0 to 20.0.0
Mostly indent and regex fixes.

Change-Id: Iaf9d02363c78cb71deec5c4cab53a05b67f60600
2017-07-18 12:55:33 +01:00
jenkins-bot 1a2de9c8ad Merge "DesktopArticleTarget.init: more explicit no-welcome-on-protected-pages" 2017-07-17 22:48:21 +00:00
David Lynch c7486ae19b DesktopArticleTarget.init: more explicit no-welcome-on-protected-pages
Bug: T138715
Change-Id: I1d1efe7fb3286bbf85ea2a17356dcad1d3346517
2017-07-17 17:17:07 -05:00
L10n-bot 3cd82770e8 Merge "Localisation updates from https://translatewiki.net." 2017-07-17 21:11:56 +00:00
Translation updater bot e91837d952 Localisation updates from https://translatewiki.net.
Change-Id: I63740a790669e5562776d363c06a31270592f79b
2017-07-17 23:11:47 +02:00
Ed Sanders 1efd8c5a61 Add mw-parser-output class to CE document
Bug: T164790
Change-Id: I14ee60dc3e68aad02a740af06f5749e6b5e3329c
2017-07-17 18:04:52 +01:00
jenkins-bot 1333373c3e Merge "Drop local 'template' icon, use 'puzzle' from upstream" 2017-07-17 15:09:28 +00:00
jenkins-bot 0549c55ca3 Merge "Fix wikitext preview in IE and Edge" 2017-07-17 14:29:43 +00:00
James D. Forrester 6b2909a9e5 Update VE core submodule to master (31ed22557)
New changes:
9ba233409 VisualDiff: Use <del> and <ins> on whole paragraphs
8d9068029 Update OOjs UI to v0.22.3
9a0582038 Use white-space:pre-wrap for text changes
d12bb03d7 Avoid deprecated QUnit.asyncTest() in ve.init.sa.Platform.test
a0a86ff48 tests: Avoid deprecated QUnit.push()
91e20c05c Localisation updates from https://translatewiki.net.

Bug: T170114
Bug: T170136
Bug: T170585
Change-Id: I50c45fc9826a21810ebd4f4fed5f7b0acb341d13
2017-07-16 13:49:54 -07:00
Translation updater bot c820c04ee1 Localisation updates from https://translatewiki.net.
Change-Id: Ie47d9a6c3f50275338c980822a90edba6853dd8e
2017-07-14 22:57:02 +02:00
Bartosz Dziewoński 0e00b2c109 Fix wikitext preview in IE and Edge
In Internet Explorer and Edge, NodeList objects do not have the
'forEach' method. However, Array's 'forEach' can be applied to them,
as we do elsewhere in the code.

https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach

Bug: T170466
Change-Id: Icb19995e140607d45c47fb6ae8d60ac80b664d02
2017-07-14 15:30:27 +02:00
Translation updater bot 815f9e4acc Localisation updates from https://translatewiki.net.
Change-Id: If9dc517ccbb54150ca209d62bae06df165182429
2017-07-13 23:01:37 +02:00
jenkins-bot 1b6cc864b3 Merge "DesktopArticleTarget.init: only show welcome dialog if page editable" 2017-07-13 18:11:46 +00:00
David Lynch 0e8ef6c307 ce.MWTransclusionNode: make sure model exists before getting its document
Bug: T168932
Change-Id: Idf18839b1f1fae6eb29621f1950d2b52c99e3433
2017-07-13 11:33:38 -05:00
David Lynch a2f8597712 DesktopArticleTarget.init: only show welcome dialog if page editable
"Welcome to wikipedia, anyone can edit, we welcome all improvements. Start
editing!" is a bit out of place when what you'll see after clicking "start
editing" is "you can't edit this page".

Bug: T138715
Change-Id: I9f655a5f12d4e45644bd01631c2d3131375d8e8f
2017-07-12 10:29:54 -05:00
Translation updater bot 48a215b9b3 Localisation updates from https://translatewiki.net.
Change-Id: Ida79312d18b2b56b8d75345fde654c59437dca7b
2017-07-11 23:09:03 +02:00
James D. Forrester 19c95f93a9 Update VE core submodule to master (c9b0d1a23)
New changes:
56e7afa47 Follow-up I93bb2b5dcc: Insert newline if fragment ends in '/paragraph'
70b378298 Workaround for Flow bottom toolbars conflicting with inspectors
c9b0d1a23 Workaround for nested toolbars hack being terrible

Bug: T169076
Bug: T169617
Change-Id: I69dd105d26edcbec8136fbafd337462478ab3349
2017-07-10 15:25:24 -07:00
jenkins-bot 02af298f74 Merge "Update VE core submodule to master (b76c9699b)" 2017-07-10 16:03:21 +00:00
James D. Forrester 6b116701f0 Update VE core submodule to master (b76c9699b)
New changes:
cc1214901 Fix word wrapping CSS in source mode
fed88cc3a Localisation updates from https://translatewiki.net.
d648467a5 DiffElement: hide strikethrough on hover
0428407a0 getSourceText: Fix edge case

Bug: T159271
Bug: T169851
Bug: T170133
Change-Id: I942e3cf4251d6435cadceae92680e8d471966efa
2017-07-10 08:32:44 -07:00
Ed Sanders 0917d27e61 Fix wikitext table insertion
Since Ic8b11d8052 #insertContent puts multiline strings on separate
lines, so to get this to behave correctly, pass in linear data instead.

Bug: T170160
Change-Id: Ie121fce1af46c6834945f4de30bcd9924ee96fd1
2017-07-10 16:16:11 +01:00
Translation updater bot ec3677e001 Localisation updates from https://translatewiki.net.
Change-Id: If34229d9423fb41b99ae7e6d578d247a924d669e
2017-07-08 22:49:24 +02:00
James D. Forrester ace9bb6348 Update VE core submodule to master (5d7b23762)
New changes:
34999f2ce Move linear model -> source text conversion to ElementLinearData
a2ab4fa95 build: Bump grunt clean and stylelint to latest
dab49847a Fix infinite loop in ve.BranchNode#getNodeFromOffset
b4319e29d LanguageInputWidget: optionally suppress directionality input

Change-Id: I800085eb3a5f7332eab356b62a34bfc603a29839
2017-07-07 16:15:27 -07:00
jenkins-bot cc08633012 Merge "build: Bump a couple of devDependencies to latest" 2017-07-06 21:07:41 +00:00
jenkins-bot 1ca4f1453d Merge "Update VE core submodule to master (1934b77e7)" 2017-07-06 21:07:39 +00:00
jenkins-bot 2e62ebe05b Merge "build: Exclude /vendor from stylelint to avoid errors" 2017-07-06 21:07:38 +00:00
Translation updater bot b67d8d5da9 Localisation updates from https://translatewiki.net.
Change-Id: Iab72a6b6f3236203dce7ea6bf8ec3c1b7bd96acb
2017-07-06 23:04:57 +02:00
James D. Forrester f7e5ebb845 build: Bump a couple of devDependencies to latest
grunt-banana-checker   0.5.0  →   0.6.0
 grunt-stylelint        0.7.0  →   0.8.0

Added stylelint peerdependency directly.

Change-Id: Ib5da82ae60f4f49e572459c8e53f9125ad422ee8
2017-07-06 13:40:38 -07:00
James D. Forrester 37088376d4 Update VE core submodule to master (1934b77e7)
New changes:
2ffadb015 ui.FormatAction: fixup selection for empty conversions
eb1c82b57 Minimal demo: update deprecated TextInputWidget
e9951799c Localisation updates from https://translatewiki.net.
7e80419bb ve.fixBase: Fix protocol-relative base href for Chrome
6b0fa8b40 Localisation updates from https://translatewiki.net.
a4a0be2da ve.ui.TableLineContext: restore the z-index hack

Bug: T151594
Bug: T167936
Bug: T169389
Change-Id: If9c8208f4c549800488acc799c677875bd233283
2017-07-06 13:40:38 -07:00
James D. Forrester 3a19558d6e build: Exclude /vendor from stylelint to avoid errors
Change-Id: I0505925ada34d951fd8d0cc810b47ebeccadf6bb
2017-07-06 13:40:38 -07:00
James D. Forrester 528942c2e1 Drop local 'template' icon, use 'puzzle' from upstream
Now that our template icon has been upstreamed thereto.

Bug: T111041
Change-Id: If101018de284dcc1be086d92427de0d88adb0e02
2017-07-06 09:52:56 -07:00
jenkins-bot eb94174561 Merge "ve.ui.MWWikitextSwitchConfirmDialog: Remove broken "evil hack"" 2017-07-06 14:53:34 +00:00
Translation updater bot db2921281e Localisation updates from https://translatewiki.net.
Change-Id: I964c0d70f0ad7e953de2ba7d4a77613d81c55785
2017-07-05 22:47:29 +02:00
Bartosz Dziewoński 4c3c8b3d1e ve.ui.MWWikitextSwitchConfirmDialog: Remove broken "evil hack"
The promise #getTeardownProcess is trying to resolve/reject no longer
exists, causing exceptions. The code has been unnecessary for a while,
as we do all the work in #getActionProcess. (In the case that we do
switch, the teardown code isn't even called, since we navigate away.)

Cancelling the switch to wikitext works correctly after removing this
code.

Bug: T169588
Change-Id: I1b9b12edf12a0b91f06c13aa53024efb80868387
2017-07-04 21:49:15 +02:00
jenkins-bot 16f5bc609e Merge "TextInputWidgets: update for deprecated multiline behavior" 2017-07-03 21:21:20 +00:00
David Lynch cfe1d6c0c9 TextInputWidgets: update for deprecated multiline behavior
Remove config option `multiline` and change to MultilineTextInputWidget as
appropriate.

Bug: T169272
Change-Id: I45565f01de76a88d64d7b0691d1e7279354f375d
2017-07-03 22:09:58 +01:00
Translation updater bot af7c3a71c9 Localisation updates from https://translatewiki.net.
Change-Id: I4f1851f6c388dec8ab6be4510607c8f1e8784a33
2017-07-03 22:52:23 +02:00
Ed Sanders dd54c9c95d Return truthy object when image info not found
A missing image should return some data to say the
image is missing, not just reject the promise.

Bug: T169337
Change-Id: Ib41a64a783c1baca88f428417c98e7fb913d14a1
2017-07-03 18:01:33 +00:00
Ed Sanders 915e818356 Clear all gallery state on teardown
Change-Id: I90662d02bd2d9768bdcf27e532ed8b8792f764c3
2017-07-03 17:48:06 +00:00
David Lynch 12f681a19d Update VE core submodule to master (65ea4cf36)
New changes:
7b9f264b6 Localisation updates from https://translatewiki.net.
52e9cc349 Update OOjs UI to v0.22.2
65ea4cf36 ui.WhitespacePreservingTextInputWidget: inherit from MultilineTextInputWidget

Bug: T169272
Change-Id: I37987fec09a340a14eedd3535fcb48bea265823c
2017-07-03 17:12:12 +00:00
jenkins-bot 73a0574452 Merge "Normalize to template namespace when comparing" 2017-07-03 16:50:44 +00:00
Ed Sanders b3d44c1ccd Normalize to template namespace when comparing
Bug: T169307
Change-Id: Ic3524819fb026713b27b193e4a03338fffd97229
2017-07-03 16:41:08 +00:00
jenkins-bot baf1908b99 Merge "DesktopArticleTarget: Regenerate title in all non-view page scenarios" 2017-07-03 16:25:51 +00:00
Translation updater bot 9986166cfb Localisation updates from https://translatewiki.net.
Change-Id: Ia03ad93b311249dc73b38b69ea085ecfbf75985d
2017-07-02 22:54:36 +02:00
Ed Sanders af25311201 DesktopArticleTarget: Regenerate title in all non-view page scenarios
Bug: T168236
Change-Id: I15f2aeb42b98855512970e2f07396fd7a7c97354
2017-07-01 17:27:07 +00:00
Kunal Mehta 32a4f3a88b build: Updating mediawiki/mediawiki-codesniffer to 0.10.0
Change-Id: I55e26c6763b09be16751491d43a4d5a927abc0b0
2017-07-01 08:49:44 +00:00
Translation updater bot 90841ca36c Localisation updates from https://translatewiki.net.
Change-Id: I87974d7d4cbd1f83e913953849d7583d5aa60fc0
2017-06-30 23:43:26 +02:00
Umherirrender 766c140536 Run stylelint for less file
File was added with I151fc9bab3d3032f50c8d11be6b54e45a06fcc34

Change-Id: I5ef55e47a39e7ec3ea7c6066a048b1c4747b25ad
2017-06-29 19:30:37 +00:00