Commit graph

14381 commits

Author SHA1 Message Date
jenkins-bot 3d6d56697c Merge "Use Tool.$link.focus() for highlighting now OOUI styles :focus" 2018-05-03 15:11:01 +00:00
jenkins-bot 228ab9ce66 Merge "MWBlockImage: Make zoom link unclickable" 2018-05-02 16:12:01 +00:00
jenkins-bot b02c44e59c Merge "Rebaser: Add more aliases for special page" 2018-05-02 16:07:10 +00:00
Ed Sanders 1a4158f6d2 Use Tool.$link.focus() for highlighting now OOUI styles :focus
Change-Id: Ia5b4c68cb49e3954aae7de9a8907f1fb9f205e2c
2018-05-02 12:52:17 +01:00
Ed Sanders 6da4529811 Rebaser: Add more aliases for special page
Copied from i18n messages.

Change-Id: I1118fca8e409fb26fbacbffaf31f784f8ee6fd05
2018-05-02 12:02:11 +01:00
Ed Sanders e49b5628d8 MWBlockImage: Make zoom link unclickable
As it sticks out beyond the focus shield we
need to disable it manually.

Change-Id: I92baf24e6bb9294e46821311805ca0bb77f892a6
2018-05-02 11:57:33 +01:00
Translation updater bot dfbfac6ba2 Localisation updates from https://translatewiki.net.
Change-Id: Ia88bac78c9933d161cd5718e8ff1729aa5a692e1
2018-05-01 22:12:38 +02:00
Ed Sanders c059082a8f Rebase: Use i18n for subpage title
Change-Id: Ibea75035cc1af0c1c215f6038435ca9657c44984
2018-05-01 10:29:51 +01:00
jenkins-bot f9cac9f0ce Merge "ve.init.mw.DiffPage.init: Do not duplicate diff table header" 2018-04-30 21:26:55 +00:00
jenkins-bot 42fbb98374 Merge "VisualEditorDataModule: Remove origin restriction" 2018-04-30 20:36:32 +00:00
L10n-bot 71da308b11 Merge "Localisation updates from https://translatewiki.net." 2018-04-30 20:25:51 +00:00
Translation updater bot 00b84f415d Localisation updates from https://translatewiki.net.
Change-Id: I85275cf2e181c1488535b0a5843055a55ce7bf24
2018-04-30 22:22:41 +02:00
Ed Sanders 3dd3073bd2 Update VE core submodule to master (a8e0eef6d)
New changes:
a8e0eef6d Simplify usage of dummy target

Local changes:
Simplify usage of dummy target, ceating an MWDummyTarget, extending
DummyTarget instead of mw.ArticleTarget.

Depends-On: I01a6860387087db8149c73793e9bd4294d33aea8
Change-Id: I227486159fe416c219e2c37a1d054201084fe285
2018-04-30 13:05:02 -07:00
Bartosz Dziewoński 4efc2f876d VisualEditorDataModule: Remove origin restriction
"ORIGIN_USER_SITEWIDE" indicates "sitewide module generated from
user-editable files, like MediaWiki:Common.js". In this case the
JavaScript generated by this module is not directly editably by wiki
users. It includes localisation messages editable by users, but that
is considered safe because we correctly escape them when including
them in the JavaScript code.

Without this change, VisualEditor would no longer load in safe mode
(T185303) because this module would be missing.

Bug: T185303
Change-Id: I6d097ccbf1dc2462843219adcf96bf8313e30289
2018-04-30 21:58:18 +02:00
Bartosz Dziewoński 6d4a7f932e ve.init.mw.DiffPage.init: Do not duplicate diff table header
The duplicate header, especially the duplicate elements with identical
IDs, were difficult to handle for other scripts.

Now instead of hiding the entire wikitext diff, we only hide the
"content" rows but keep the header, and adjust our attributes on the
header back-and-forth when switching diff modes.

Bug: T192755
Change-Id: I3a6bb4730fefd81f533b786ec3b20241c4cb8d13
2018-04-30 19:23:16 +02:00
Ed Sanders 1bd430c9d1 Convert most uses of isForClipboard to doesModeNeedRendering
Depends-On: I0f1b90056e9d1a4fa0e188700604709297593924
Change-Id: I6fa1cde51ffc859b57ab557e3ddf8a76d92bf94f
2018-04-30 16:10:27 +00:00
James D. Forrester f4fdcf6be0 Update VE core submodule to master (099902ddb)
New changes:
d30ef0e92 [BREAKING CHANGE] Replace isForClipboard with tri-state clipboard mode
397279cf3 Use comment HTML helper in all tests
4613d34c0 Use CE rendering when showing comments in preview mode (e.g. visual diff)
b1ded0d27 Copy attribute values when building transactions
6d0be15f5 Localisation updates from https://translatewiki.net.
41b612148 Fully disable the surface before teardown
8cc1237f6 ve.ce.Surface: Control-drag should keep the dragged text in original location
099902ddb Use clipboard API if paste context wasn't all cleaned up

Bug: T170134
Bug: T192605
Bug: T193062
Bug: T193103
Bug: T193110
Change-Id: I3cf0a6e221766b6a52f3f3cb93279639abbeda7d
2018-04-30 09:08:18 -07:00
jenkins-bot ffac6b14dd Merge "Check link 'host' in onEditSectionLinkClick" 2018-04-30 15:17:45 +00:00
jenkins-bot f4f78d3384 Merge "Follow-up Iea7ad832: Fix context in MWPopupTool" 2018-04-30 15:06:06 +00:00
Ed Sanders f8cebb8f51 Follow-up Ib7e769e: Fix typos in static method calls
Also move desktop-only methods to DesktopArticleTarget.

Bug: T193217
Change-Id: Icc2bb6602a62057da9f841793d8fe06d9814230e
2018-04-30 11:05:43 +01:00
Ed Sanders ad170023e6 Check link 'host' in onEditSectionLinkClick
Bug: T193323
Change-Id: Id67798e5689af9d528bf29bb1b42047adaedaabd
2018-04-30 10:57:45 +01:00
Ed Sanders 8fdc1f7085 Follow-up Iea7ad832: Fix context in MWPopupTool
Bug: T193043
Change-Id: I2b035a50543093988a291ea8c8958a3a7cc9e7ba
2018-04-29 21:45:10 +01:00
Translation updater bot 4c3cdc5bf7 Localisation updates from https://translatewiki.net.
Change-Id: Idec898cf95b97417a67c26eb20542c07f0db1af7
2018-04-29 22:31:23 +02:00
jenkins-bot c2bc4ee44e Merge "Set surface's $overlayContainer in DesktopArticleTarget" 2018-04-29 13:13:20 +00:00
jenkins-bot 8149cc5b43 Merge "Update VE core submodule to master (e673ad6de)" 2018-04-29 13:13:17 +00:00
Translation updater bot c06466f1ae Localisation updates from https://translatewiki.net.
Change-Id: Ife02ea0e41d6c7f68c1ac1334a6769cdc36e1c0e
2018-04-28 22:33:02 +02:00
Ed Sanders cddf206f5b Set surface's $overlayContainer in DesktopArticleTarget
Logically depends on Ia96b1a89dd9582303b80be85b3971cf3341cad24.

Bug: T166217
Change-Id: Icc54f87bac46d39e8c49010ed052e1db66827f06
2018-04-27 21:55:12 +00:00
James D. Forrester 3fb49c5957 Update VE core submodule to master (e673ad6de)
New changes:
cb74329aa [BREAKING CHANGE] Remove ve.Range#clone and ve.dm.Selection#clone
8fe148fa2 Allow surfaces to change context popup's container
a7f4e9759 ce.Surface: Don't attempt to activate a disabled surface
b39f1535f Pass toolbarConfig.$overlay property to 'actions' toolbar as well

Bug: T122910
Bug: T166217
Bug: T192671
Change-Id: Ife4a23be3bf46284edd1b62e7abb7c5ad925870d
2018-04-27 14:46:49 -07:00
jenkins-bot ead7168a42 Merge "Get rid of mwdiffing module" 2018-04-27 21:39:13 +00:00
L10n-bot 74e338ee61 Merge "Localisation updates from https://translatewiki.net." 2018-04-27 20:28:03 +00:00
Translation updater bot abc757c8a1 Localisation updates from https://translatewiki.net.
Change-Id: I78d5ac19facfa8301c82b79510272103a8f60f30
2018-04-27 22:26:25 +02:00
Ed Sanders 4346e339f6 Get rid of mwdiffing module
No longer needed now visual diffs are out of beta.

Change-Id: I75cc7a6f3ecd3c5a547685aa4db586abfa482f2d
2018-04-27 21:09:07 +01:00
Ed Sanders 95258a9969 Visual diff: Describe redirect changes
Change-Id: Id31e8399556dab9b47bc1d21c62cb82af3a0e7bb
2018-04-27 21:07:41 +01:00
Translation updater bot 39360917c6 Localisation updates from https://translatewiki.net.
Change-Id: I7b2845d6972c79e3c570083ea5dae3556f77c7a8
2018-04-26 22:17:00 +02:00
James D. Forrester e1ebdfe66d Update VE core submodule to master (174890b5e)
New changes:
1d2569556 [DEPRECATING CHANGE] Deprecate ve.Range#clone and ve.dm.Selection#clone

Bug: T192671
Change-Id: Ic70e6d63728ed0b6b957d93308c81164a06c7d8c
2018-04-26 08:56:48 -07:00
jenkins-bot 6a14e6384a Merge "Update custom styles for format menu after OOUI changes" 2018-04-26 15:41:45 +00:00
jenkins-bot 641b98c600 Merge "Update VE core submodule to master (87bc18f58)" 2018-04-26 15:35:54 +00:00
jenkins-bot ecbe9a2ee3 Merge "build: Follow-up 99d3320573: Drop babel-polyfill, never used" 2018-04-26 15:35:53 +00:00
jenkins-bot c11e6c57b0 Merge "build: Bump some devDependencies to latest" 2018-04-26 15:35:52 +00:00
James D. Forrester d904697208 Update VE core submodule to master (87bc18f58)
New changes:
38c403bba NodeInspector: Fix behaviour of getMode
ccf1ed957 Use current selection for selectionBefore in empty staging stack
5077edb1e build: Switch QUnit package from deprecated 'qunitjs' to 'qunit'
b39388db7 Update OOUI to v0.26.5
614ec16f2 Linear/TableKeyDownHandlers: account for table captions
5f101208e Update custom styles for format menu after OOUI changes
28c1296d0 Localisation updates from https://translatewiki.net.

Bug: T191878
Bug: T192163
Bug: T193098
Change-Id: I370494253290345961e1454b32385624cc4f36db
2018-04-26 08:23:22 -07:00
Bartosz Dziewoński e1635fdc52 Update custom styles for format menu after OOUI changes
Bug: T193098
Change-Id: I00d28f16b03a31ecda1dc57050945e98e8eb37e8
2018-04-26 01:48:28 +02:00
Translation updater bot 77dfb16d96 Localisation updates from https://translatewiki.net.
Change-Id: I570df3a8eba0da0e7c8dc4036e5bda11d77e5683
2018-04-25 22:39:00 +02:00
James D. Forrester c07d4815e3 build: Follow-up 99d3320573: Drop babel-polyfill, never used
Change-Id: I3eccd0c345b2c528bbb9458d404a3e0c91ae88f5
2018-04-25 12:59:50 -07:00
James D. Forrester 3e8f2edc83 build: Bump some devDependencies to latest
grunt                        1.0.1  →          1.0.2
 grunt-contrib-watch          1.0.0  →          1.0.1
 grunt-image                  4.1.0  →          4.2.0
 grunt-stylelint              0.9.0  →         0.10.0
 stylelint                    8.2.0  →          9.2.0
 stylelint-config-wikimedia   0.4.2  →          0.4.3

Leaving babel-polyfill, grunt-mocha-test, jimp, mocha and selenium-webdriver
alone for now.

Change-Id: Ibea983670108a56ddbf748e140831147e31da329
2018-04-25 12:35:07 -07:00
Translation updater bot 056050c1be Localisation updates from https://translatewiki.net.
Change-Id: If2f8091487ff1f7e91f7ee2cebf3c0eac5bb8003
2018-04-24 22:22:58 +02:00
jenkins-bot fd082e577b Merge "ve.init.mw.DesktopArticleTarget: Setup toolbar before section title input" 2018-04-24 16:24:42 +00:00
Bartosz Dziewoński e3378e6d77 ve.init.mw.DesktopArticleTarget: Setup toolbar before section title input
When we set up the new section title input and possibly set its value
(preloading from URL query, or from autosave), the "Save" button on
the toolbar must already exist, because we try to enable it.

Bug: T192901
Change-Id: I3bba86a8c8a9b81014d425db256ff49f06bdaea6
2018-04-24 18:11:42 +02:00
David Lynch 44469f0f06 MWWikitextSurface onCopy: set text/x-wiki content if available
Equivalent to some existing copy-code in inspectors which handle raw wikitext.
Lets us shortcut content-sniffing with html/text content onPaste.

Change-Id: I27ded82a9675abdb3ee98ee29390e7079d11cf05
2018-04-23 16:04:49 -05:00
jenkins-bot c0364bc6a6 Merge "Teardown target before reloading article" 2018-04-23 21:00:43 +00:00
jenkins-bot ec8be1bfa1 Merge "Add a plain text paste transfer handler for source mode" 2018-04-23 21:00:41 +00:00