Commit graph

10137 commits

Author SHA1 Message Date
Translation updater bot 0147a742a6 Localisation updates from https://translatewiki.net.
Change-Id: I6c0d9372ed09007fdbe2c5701674f1d91f65a51a
2015-06-15 22:55:50 +02:00
Timo Tijhof e1ce49509c mw.ViewPageTarget: Ensure canonial view url is restored
When loading VE by clicking Edit on a view url, this naturally
works (we temporarily append our query, and remove it when ready).

When loading VE from a permalink (e.g. Open in new tab) or any
other source linked from HTML pages, then we're not in control
over adding the query (it's already there); we're only in control
over restoring the view url afterwards.

Bug: T102363
Change-Id: I4912ff1c6b28ac987517760ffed481a4cd3bd1ca
2015-06-15 13:28:35 +01:00
Translation updater bot 3c5ae91490 Localisation updates from https://translatewiki.net.
Change-Id: Ica2a4117a9328605fb6d83cea6cc8b2c7153278b
2015-06-14 21:17:31 +02:00
jenkins-bot e4fdfd4951 Merge "build: Configure jsonlint" 2015-06-14 01:26:45 +00:00
Translation updater bot 170d3be0bd Localisation updates from https://translatewiki.net.
Change-Id: Icc975a78a632c1310f7901bfd613aab13ba0f794
2015-06-13 22:34:12 +02:00
Kunal Mehta f41310ab4c build: Configure jsonlint
Change-Id: I25a0010aa023bc3b70f24e9f30ffef3be88f965f
2015-06-13 01:14:38 -07:00
Translation updater bot f540b0d662 Localisation updates from https://translatewiki.net.
Change-Id: Ib18381d17a0b3ceca5935ddb65bbfa3ebeb798a7
2015-06-12 21:56:41 +02:00
Kunal Mehta c0ae346320 Add missing callback to set namespaces
Change-Id: I19e7f35ea9e219a31a7e7017faa7bc1571a4d7a0
2015-06-11 15:46:13 -07:00
Kunal Mehta 3302f2e32f Sync extension.json with VisualEditor.php
Change-Id: I129f6bc9e742b3cf8611b5b6f3e07d4651e0aec9
2015-06-11 15:38:36 -07:00
Translation updater bot 8572638ab7 Localisation updates from https://translatewiki.net.
Change-Id: I0e8f0afb392b4976038166548b44868510a8b3e8
2015-06-11 21:17:00 +02:00
jenkins-bot 08e78969c3 Merge "MWMediaResourceProvider: Use exist instead of bool check on API values" 2015-06-11 16:36:01 +00:00
Mark A. Hershberger 7d5e5ec9a9 MWMediaResourceProvider: Use exist instead of bool check on API values
In the MediaWiki API, booleans exist or don't exist (with an empty string),
you can't check "if (bool)..." since that will always be false.  The API has
a newer formatversion=2 that fixes this but we're not using that yet.

Also update the defaultSource placeholder to match the API response. If one
would only update defaultSource without the 'if'-fix, one can reproduce T66822
on a local wiki (JSON-P request instead of JSON).

Bug: T66822
Change-Id: I5a8ab1136325c33c62982c0869fa14ca2fb26034
2015-06-11 17:29:36 +01:00
Alex Monk 9f17ac1518 Remove .jsduck/generate.sh symlink to removed file
Was removed in Ie8ddb165

Change-Id: Icc6a3dcf7f4204271578f6d67e7c5c02a17b9383
2015-06-11 16:33:28 +01:00
Glaisher 8a134783bd Improve readability of license text in save dialog
Previously, it failed in WCAG contrast ratio tests. To make
it pass, font size has been slightly increased and color
has been darkened.
Increased the line height to match increased font size

Bug: T100017
Change-Id: I073ca96c64d5e3af3c01936d34e9e83e9384b4b5
2015-06-10 14:41:16 -07:00
C. Scott Ananian 85b86fb45d Stop using deprecated aliases for OO.ui.mixin.*
These classes were renamed in OOUI v0.11.4.

Change-Id: Ie932eb3bf5e65866ae4ba3bf2317facb1e740d3b
2015-06-10 20:25:04 +00:00
James D. Forrester df79ed8c4b Update VE core submodule to master (5befc34)
New changes:
3368c4c Remove some assumptions about the state of the context
79918af Move contexts to subfolder
820eaec Tests for some drag/drop functionality
e5f0e3e Convert CE surface tests to use a mock UI surface
c81dbcf Localisation updates from https://translatewiki.net.
7561ff3 Create a mock UI surface that only contains a model for model-only action tests
ad60333 Convert test timings on APIResultsQueue from seconds to milliseconds
b52d7df Table cursoring tests
3f8e821 Localisation updates from https://translatewiki.net.
9c737df Update OOjs UI to v0.11.4
5befc34 Stop using deprecated aliases for OO.ui.mixin.*

Change-Id: Ida6d4ba724686d8189975c55a18c4a6c2cfe4875
2015-06-10 12:44:55 -07:00
Translation updater bot be03474ba3 Localisation updates from https://translatewiki.net.
Change-Id: I6fcb4a1d32a509cdb51f9c017dd679ba8b01b470
2015-06-09 22:52:52 +02:00
Andrew Green 598e1fd1c1 Update VisualEditorDataModule::getDependencies method signature
This change is for compatibility with Iee61e5b527 in MediaWiki.

This patch increases the minor minor version number due to said requirement.

Change-Id: I0ac775ca286e64825e31a9213b94648e41a5bc30
2015-06-09 02:24:20 +01:00
Translation updater bot 5b03e7fcab Localisation updates from https://translatewiki.net.
Change-Id: If1c40bd7541bddf975babe26e01addca07a5e649
2015-06-08 22:02:13 +02:00
jenkins-bot 27ea306b0f Merge "Omit extension attributes with an undefined value" 2015-06-08 19:42:36 +00:00
Timo Tijhof 2e050ff498 VisualEditorDataModule: Use definition summary instead of time tracking
The current approach matched historical RL conventions, but was quite
fragile. It used memcached to track hashes of all (or most?) factors
that influence the generated script.

Now that RL uses version hashes instead of timestamp, just hash the
script directly. Currently ResourceLoader falls back to hashing
the generated timestamp. Let's bypass this.

As a bonus, this also gets rid of the getMessages() hack which was
causing all messages to load twice and the module to be almost
twice a big as it could be.

It loaded messages once as part of getScript, via ve.init.platform.addMessages.
And a second time via getMessages() for which mw.loader calls mw.messages.set.

Bug: T94074
Change-Id: Ib8e688bf3a9c151cbb18016e10230c3a4bab46b8
2015-06-08 18:27:27 +00:00
James D. Forrester 91187d5a8d Update VE core submodule to master (f821c6e)
New changes:
1518f13 Fixing the behaviour of resizable images so that redlinked images, inline and block, can be represented properly
a325247 Insertions: heed cursor position relative to annotations
b43b746 FindAndReplaceDialog tests
afc3e08 At empty matches, don't assume lastIndex is unchanged
44593ae Localisation updates from https://translatewiki.net.
ee41fca Localisation updates from https://translatewiki.net.
042645b Localisation updates from https://translatewiki.net.
f821c6e Fix 'open' button on link inspector

Change-Id: Ia09d7fe754c3e0bca6b441ad2ea88644e275ea6b
2015-06-08 08:28:52 -07:00
Ed Sanders 160a673e7c Omit extension attributes with an undefined value
Change-Id: I0abad51eb392644159d1845ef3a35986dc5cb79b
2015-06-08 16:03:47 +01:00
jenkins-bot b24a4529c5 Merge "Empty all inputs on link inspector teardown" 2015-06-08 14:37:26 +00:00
Translation updater bot 9c57bdbf30 Localisation updates from https://translatewiki.net.
Change-Id: Id15a54207ef791722c00360b22a2610039ace4a6
2015-06-07 22:33:41 +02:00
Translation updater bot f1a9d02101 Localisation updates from https://translatewiki.net.
Change-Id: I320c9034aaf046f0d5147b352c7e88dd3fcfe011
2015-06-06 22:25:41 +02:00
Bartosz Dziewoński abbb62fe8e ve.ui.MWTitleInputWidget: Restore 've-ui-mwTitleInputWidget' CSS class
've-ui-mwTitleInputWidget-menu', too. Removed in
b3d2e9013f, but we actually
use these classes in styles and in browser tests.

Bug: T101600
Change-Id: I40dae9c68bbcba2f980c307fe0dfa0956b4eb78a
2015-06-06 13:17:32 +02:00
Kunal Mehta 852ac522d7 build: Updating development dependencies
* grunt-banana-checker: 0.2.1 → 0.2.2

Change-Id: I4bbf9709c48f22550ec8e36af11b737ebf6b92c2
2015-06-06 00:11:02 +00:00
Translation updater bot 01a082a0c2 Localisation updates from https://translatewiki.net.
Change-Id: I94a4851b9b46a1748cdbc6e9a442c9f919588c22
2015-06-05 21:16:43 +02:00
Ed Sanders 5ac580e18b Empty all inputs on link inspector teardown
The parent class only nullifies the active input, but for completeness
we should nullify both.

Change-Id: I3017ef0ca61753fefde1c23b43178d46c6308e9f
2015-06-05 16:17:29 +01:00
jenkins-bot 236e02aed6 Merge "Account for MWTitleInputWidget having been moved into MW core" 2015-06-04 23:11:01 +00:00
jenkins-bot d6982bc880 Merge "Fix tabbing to info/delete buttons in template dialogs" 2015-06-04 22:30:27 +00:00
jenkins-bot 351c54d1ab Merge "Make sure reference result menu can wrap" 2015-06-04 22:30:00 +00:00
Ed Sanders 325c9cb521 Move cursor to end when changing link mode
Allows you to keep typing after 'http://' in Firefox

Bug: T98895
Change-Id: I785863e9a3bd3c0d548bee13ae2810eccc739a8f
2015-06-04 18:23:34 +01:00
jenkins-bot dcb0ac9b3a Merge "build: Provide a grunt fix task to auto-fix jscs failures" 2015-06-04 01:08:21 +00:00
James D. Forrester 2d6c87c97b Update VE core submodule to master (795550c)
New changes:
e3eea5d Allow right click copy on focusable nodes
ec74440 Remove registry test hacks now that MW is fixed
ed4b38d Localisation updates from https://translatewiki.net.
712bcbd Add tests for methods converting click targets to table selections
5d318e0 demo: Show 'Back to editor' button in read mode correctly
b30dcf6 demo: Tweak toolbar positioning in read mode
ae50c8d demo: Avoid exception when switching modes if surface is destroyed
9e2dac0 Localisation updates from https://translatewiki.net.
4c33460 Test for DSVFileTransferHandler
a1860c6 Prune old unused property
45e69c7 Rename variables to clarify state snapshot timing
e65f921 Localisation updates from https://translatewiki.net.
1440dc0 build: Update to full jscs preset
795550c build: Provide a `grunt fix` task to auto-fix jscs failures

Change-Id: I212fd233412cf2c48d125d2a870cd6868c427c80
2015-06-03 17:01:47 -07:00
James D. Forrester bbfa0773a2 build: Provide a grunt fix task to auto-fix jscs failures
Change-Id: I29c978a23966adcdcbb3e5b1a95effab1ee2d38b
2015-06-03 16:44:30 -07:00
Translation updater bot c488e96a8f Localisation updates from https://translatewiki.net.
Change-Id: Ia4b997efbb3b62b0a87a82c69a4cfec6d5d2fcdc
2015-06-03 22:13:39 +02:00
Kunal Mehta 08af973d32 Set manifest_version in extension.json
Bug: T100745
Change-Id: Iaafce861ca6e0a06b8a2b7175bfb7f1bbde0fe6a
2015-06-02 17:01:09 -07:00
Kunal Mehta e7db08720f Update mediawiki/codesniffer to 0.2.0
Change-Id: I6555302e2c8ec800ed2fda1b09f173f336227c88
2015-06-02 17:00:09 -07:00
jenkins-bot d8bff91749 Merge "Add in required calls to updateActions" 2015-06-02 22:23:47 +00:00
jenkins-bot 83f8688fdd Merge "Unregister core image types" 2015-06-02 21:59:34 +00:00
jenkins-bot 84f74ea5cc Merge "Move test registry hacks into QUnit setup/teardown hooks" 2015-06-02 21:59:24 +00:00
Ed Sanders d3718edb4d Add in required calls to updateActions
Change-Id: I8c584d7bd48c957b5b07ff1bf6b52748165c18dc
2015-06-02 22:57:12 +01:00
jenkins-bot 8bee18d802 Merge "Always preserve input when switch between internal/external links" 2015-06-02 21:08:00 +00:00
Ed Sanders e8149e2588 Always preserve input when switch between internal/external links
Although an internal link is unlikely to be a valid external link, this
prevents an annoying experience when the user switches to external and
then back to internal while exploring features.

Change-Id: I178cf3f641db683f5dd0a49c246c204ded89760c
2015-06-02 22:03:08 +01:00
Translation updater bot 3fb4496588 Localisation updates from https://translatewiki.net.
Change-Id: Ib0b07589fa273b28f2ce173843390c87b5089e24
2015-06-02 21:50:08 +02:00
Ed Sanders 425e581613 Unregister core image types
Once MW images are registered, we should remove core image support so
we don't accidentally match to them (e.g. an MW inline image with an
unsupported extra RDFa type).

Change-Id: I1c8567346c371fe338f95b232c9ac53e009c5a46
2015-06-02 14:36:14 +01:00
Ed Sanders b7f92605b2 Move test registry hacks into QUnit setup/teardown hooks
Change-Id: I7b56bc7a9a69f64073ab97bdb1911d17b328b8b8
2015-06-02 14:36:10 +01:00
jenkins-bot ee9da3101e Merge "ve.dm.MWTemplateSpecModel: Account for data.maps being undefined" 2015-06-02 01:50:26 +00:00