Commit graph

1400 commits

Author SHA1 Message Date
Ed Sanders 43f56c81a8 Fix MWReferenceGroupInputWidget and uses
Now it is an actual input widget, remove references
to .input property.

Bug: T150491
Change-Id: I826a2cb5ecf98d0e35ccab804f2aa90bbff7ada2
2016-11-10 23:23:58 +00:00
James D. Forrester c9c10d2998 MWReferenceGroupInput: It's ComboBoxInputWidget, not ComboBoxWidget
Change-Id: I7d16ab96363f13fc12df0ef17d5e7dcec6321bd9
2016-11-09 11:29:52 -08:00
jenkins-bot 5654987b74 Merge "Re-use internalList when building index" 2016-11-07 16:28:45 +00:00
Translation updater bot 2c33f274ee Localisation updates from https://translatewiki.net.
Change-Id: Ic3b7b5b81ef23712d9a559b10d648c29063899d5
2016-11-05 22:52:42 +01:00
Ed Sanders 753d87b072 Re-use internalList when building index
Calling #getItemNode on the un-initalised internalList caused
a tree rebuild of the sub-document.

On a page with 200 references this cuts the time it takes to
render the re-use list from ~2000ms to ~1000ms.

Bug: T134975
Change-Id: I696a965e88338e1bec2a14f61dab158c56728f2e
2016-11-05 18:05:59 +00:00
David Lynch 36c2f42226 Give cite dialog a keyboard shortcut: meta-shift-k
Very similar to the link shortcut, on logic that they're similar actions.

Bug: T148302
Change-Id: I540a9fb5c61f796bebd8558557936898d5f9b8a0
2016-11-03 11:34:49 -05:00
Ed Sanders 4c0e837dad Use stricter test for originalDomElementsIndex
Change-Id: I43a0f639fa50fb2bbe9f935dd141d595571d8e24
2016-11-02 12:51:10 +00:00
Ed Sanders a42c656c53 build: Replace jscs+jshint with eslint
Change-Id: Ibcfab289a6dd4dcac853aa2e5338516994067cd5
2016-11-02 12:50:48 +00:00
Ed Sanders f4240f13f9 Use 'super' to call parent methods
Change-Id: Iba051a1e84b2ea805d0b3795933587c735ec0d88
2016-11-02 12:43:14 +00:00
Translation updater bot d548b8fbda Localisation updates from https://translatewiki.net.
Change-Id: Ib7eaa8d5219c9b498e6dd27e626d89508a495d6a
2016-10-20 23:45:45 +02:00
Translation updater bot 14ba2c05e2 Localisation updates from https://translatewiki.net.
Change-Id: Iafcd62f1cdd89c754274fa0f63f6c4e165f146c2
2016-10-19 23:23:52 +02:00
Translation updater bot 3ac0219e4d Localisation updates from https://translatewiki.net.
Change-Id: Ic21b0e2c92a7fe54f9ef4eab93d1d092abdbff6d
2016-10-18 22:33:11 +02:00
Translation updater bot dda2f7b145 Localisation updates from https://translatewiki.net.
Change-Id: I001657856abb9638b55f5848a11bf3df357a6d69
2016-10-16 22:39:20 +02:00
Translation updater bot 8cb1144177 Localisation updates from https://translatewiki.net.
Change-Id: Ifd1091cff7f4a6ad9bae32314536e21a009bdbc2
2016-10-15 22:58:41 +02:00
Translation updater bot ced303370e Localisation updates from https://translatewiki.net.
Change-Id: I7e246f5a17f71a1d054db9c91bf5e67b5e740f57
2016-10-10 22:25:51 +02:00
Translation updater bot dbc98ab1f1 Localisation updates from https://translatewiki.net.
Change-Id: I1ef8d968104aaf3e6b70cd4698b60e4ff2cfcba1
2016-10-02 10:35:47 +02:00
Translation updater bot c11d591f5d Localisation updates from https://translatewiki.net.
Change-Id: I74cb5f446d8e164215912cef092e02f221b2e130
2016-09-27 22:34:49 +02:00
Translation updater bot 31d7324c5b Localisation updates from https://translatewiki.net.
Change-Id: Ib5a1c4df6c5b509fbf06b8f26807fcc70820742c
2016-09-24 22:39:23 +02:00
Translation updater bot 593497b54c Localisation updates from https://translatewiki.net.
Change-Id: Ie630ebc299812057c2ed160fc60e590fc71ed253
2016-09-23 22:32:05 +02:00
Translation updater bot f16390b461 Localisation updates from https://translatewiki.net.
Change-Id: I22969a9d0d2d55efd72729f53458978390b06814
2016-09-13 22:48:20 +02:00
Translation updater bot 77a231d093 Localisation updates from https://translatewiki.net.
Change-Id: I0fe83045bce551e49deaf964b29c7db395734a08
2016-09-07 22:40:48 +02:00
Translation updater bot 60f15932b5 Localisation updates from https://translatewiki.net.
Change-Id: I01ffe8703feab6bd62b9a6df173865633cd8de5c
2016-09-01 23:22:55 +02:00
Translation updater bot d7e953f33d Localisation updates from https://translatewiki.net.
Change-Id: I530ca1d7d622d629c5f077a76f82600a0d97a7c4
2016-08-27 23:22:42 +02:00
Ed Sanders fc4788d51b Move originalDomElements to IV store and use new hash
Depends-On: I8a71c1a40ec35108d0a9a388da6f75632f8dc53c
Depends-On: I0fbb6324eede94558426178cbdad6b5daf0f8318
Change-Id: I32c9b5f984fcf96e3354841ecfcd444149e8f159
2016-08-24 18:14:47 +00:00
Translation updater bot 8944130bbe Localisation updates from https://translatewiki.net.
Change-Id: I8435a8ab48459e22a649a12a266d2d4ba5f9b419
2016-08-16 22:40:38 +02:00
Translation updater bot eadf04da50 Localisation updates from https://translatewiki.net.
Change-Id: Id79b07ebc475ee873f631adbb8c2f2f5ce8a9c68
2016-08-12 23:09:32 +02:00
Translation updater bot e7c423750f Localisation updates from https://translatewiki.net.
Change-Id: I11edddc5dd5a435a4507145cf4d2343175e51d7a
2016-08-11 23:51:17 +02:00
Translation updater bot 1e2ccae422 Localisation updates from https://translatewiki.net.
Change-Id: I1be4555f5b36aad1d22571be7004a71c7b158f95
2016-08-09 22:28:56 +02:00
David Chan fc70622405 Hide text without confusing Chromium's cursoring
Bug: T123608
Change-Id: I8c16277d877111180fd0f1cd39175fc85e3e0579
2016-08-04 15:47:48 -07:00
Translation updater bot bc80e8cd1a Localisation updates from https://translatewiki.net.
Change-Id: I31fb70c0b978b29f345cdf8e1394ba8e6212c1e1
2016-07-31 22:21:42 +02:00
Translation updater bot d7fac2c8fc Localisation updates from https://translatewiki.net.
Change-Id: I4916181c910ed9ee444f496888c6be7e574d5b09
2016-07-30 22:23:16 +02:00
Translation updater bot 247f1c8aed Localisation updates from https://translatewiki.net.
Change-Id: I37a084270866c9fb7297cb4d581026178cb785df
2016-07-21 22:53:45 +02:00
Translation updater bot 6ea51d1f5d Localisation updates from https://translatewiki.net.
Change-Id: I679ed6b69045f7bf0b6893208e80c99f3b93d46b
2016-07-17 22:27:19 +02:00
Translation updater bot 568beaf64b Localisation updates from https://translatewiki.net.
Change-Id: I06b574c44e60050b68f797e1984b1b489f7e02b5
2016-07-16 22:55:17 +02:00
Translation updater bot 1c48e08746 Merge "Localisation updates from https://translatewiki.net." 2016-07-12 20:54:14 +00:00
jenkins-bot 11295fe6a9 Merge "Use 'demote' only to move cite tools to insert group" 2016-07-12 20:51:59 +00:00
Translation updater bot aa42845677 Localisation updates from https://translatewiki.net.
Change-Id: I314f5a1bd95c1468215b1d399459d91494b21509
2016-07-12 22:47:00 +02:00
Ed Sanders 5f4b86a9be Use 'demote' only to move cite tools to insert group
Leave include as '*' as changing it to an array currently breaks
the wildcard functionality.

Also rewrite the hack slightly so it only modifies the list,
rather than overwriting it.

Bug: T139727
Change-Id: I041bad6346a4f39e967dca8cc610100463be0ded
2016-07-11 18:32:00 +00:00
Translation updater bot 7b4527e697 Localisation updates from https://translatewiki.net.
Change-Id: I085f44f19e2ad96cc747ba07dd471f91088d5185
2016-07-10 22:18:39 +02:00
Translation updater bot 81e2b44237 Localisation updates from https://translatewiki.net.
Change-Id: Ia776dda01b67496ef1ef31c63e3574bea7776f30
2016-07-09 22:52:23 +02:00
Translation updater bot 85b34579cf Localisation updates from https://translatewiki.net.
Change-Id: I2720f561d8fa97100a11f7d07ea820bf8d66c3e5
2016-07-08 23:07:34 +02:00
Translation updater bot aff280552e Localisation updates from https://translatewiki.net.
Change-Id: I032c82f5bb9468d9cfd07074a1f2bd121feeb3a1
2016-07-04 22:29:41 +02:00
Translation updater bot 9a4909b8ea Localisation updates from https://translatewiki.net.
Change-Id: I112e2138ed46f5aa40e7ba353d5ff6f981634a02
2016-07-03 22:37:46 +02:00
Translation updater bot 70fbdb91b7 Localisation updates from https://translatewiki.net.
Change-Id: I44ae01373c956ef091d21ea85b4b2fb0381e5229
2016-07-02 22:50:32 +02:00
Translation updater bot 72f10b4149 Localisation updates from https://translatewiki.net.
Change-Id: I29befc53eb910fd306d93806f80f88e84260d0f2
2016-07-01 23:17:54 +02:00
Ed Sanders 1505000fe5 Use target widget factory method
Change-Id: I107afbb4f7e8ae97bdb27f3b5f7acd357dada414
2016-06-29 17:14:43 +01:00
Alex Monk 724d890541 Make it possible to send VE cite toolbar items to the 'insert' (other) group
To be merged with Ifd688ae6

Bug: T133727
Change-Id: Ic87f996f2a95ffe89999384c48f11745f251db0e
2016-06-29 13:36:14 +01:00
Alex Monk e284811889 Follow-up I454380c3: Update/fix some things I missed
Per Krinkle's comment

Change-Id: I527a694116939d0303a06556eb479201852e227d
2016-06-28 23:01:20 +01:00
Translation updater bot 804899c53c Localisation updates from https://translatewiki.net.
Change-Id: I32760ce0bf6a2b766baccf92d6612f219dc2361d
2016-06-27 23:02:27 +02:00
Translation updater bot 78afade8ec Localisation updates from https://translatewiki.net.
Change-Id: I69e2265e4fdfd1a611ec8039cdaa79b5c5620984
2016-06-26 14:13:42 +02:00
Translation updater bot 81210678cf Localisation updates from https://translatewiki.net.
Change-Id: I764d701484ce8202e1bead2a739e203f0a34e06e
2016-06-25 14:50:15 +02:00
Alex Monk 24f2d64edd Make visualeditor-cite-tool-definition.json always exist, rename to cite-tool-definition.json
Bug: T138573
Change-Id: I454380c392feea55483d00d4b7eec45bce04ff53
2016-06-25 00:37:20 +01:00
Ed Sanders 58ecfc64b1 Trim search queries in VE's reference search widget
Bug: T138278
Change-Id: I044fa6b8b5049e5520f0e1b4993eebab8498bd55
2016-06-21 13:17:53 +01:00
Translation updater bot 6c0d29d928 Localisation updates from https://translatewiki.net.
Change-Id: I5fa8c2d223fb7f9b7bfa68ec1074848ba30dac45
2016-06-19 22:41:47 +02:00
Translation updater bot 2b6c4343d8 Localisation updates from https://translatewiki.net.
Change-Id: I655437410b4148a4d6e73813b2702bc3da12bbc8
2016-06-10 22:13:47 +02:00
Translation updater bot e58e6a5b6c Localisation updates from https://translatewiki.net.
Change-Id: I54d0f2137406c0d5fc40b5f1f3ae1fb7b4606e72
2016-05-31 22:41:08 +02:00
jenkins-bot 12854f5625 Merge "Use commandRegistry from current surface, not target" 2016-05-30 21:57:52 +00:00
Ed Sanders 96922a2aa0 Use commandRegistry from current surface, not target
This shouldn't make a difference for any current implementations
but in the future different surfaces my have different commands.

Change-Id: I383a4a76cda142107da2f8aa1c6a90c4307e3b97
2016-05-30 22:36:45 +01:00
Ed Sanders 7d9693d090 Use cloneWithData
Change-Id: Ibab88f333cd39aabc73a579e1b05fc9b830b6d86
2016-05-30 22:34:15 +01:00
Translation updater bot bce71fd9ee Localisation updates from https://translatewiki.net.
Change-Id: I90c5b178ed61e3974f4b8cc7af30044a6e298675
2016-05-29 22:26:26 +02:00
Translation updater bot caa6e2ea3e Localisation updates from https://translatewiki.net.
Change-Id: I075bc3bf362521439a7aa30121731d803f4544dd
2016-05-24 23:05:05 +02:00
jenkins-bot c9a0e1a9fe Merge "Fix documentation" 2016-05-24 14:38:45 +00:00
Ed Sanders 1ceef164c5 Fix documentation
Change-Id: I56bb846bd91a0d39b21a9783df99b5f72c5e65f7
2016-05-24 13:49:22 +01:00
Translation updater bot bb9b537f5d Localisation updates from https://translatewiki.net.
Change-Id: I0482aa24aac0edfddf1f423b550889abb521417e
2016-05-23 22:22:48 +02:00
Translation updater bot d2064977cc Localisation updates from https://translatewiki.net.
Change-Id: I3e8a3573993a72d562cfd1d29dee4cabb754d4a2
2016-05-22 22:22:33 +02:00
Ed Sanders bac8dd6be7 Add stylelint and make required style fixes
Change-Id: I8a9def8056a72c3da0c066413e94311a1d839f5b
2016-05-17 18:21:30 +01:00
jenkins-bot a8465a7973 Merge "Explicitly insert transclusion as inline" 2016-05-16 08:19:19 +00:00
Ed Sanders 24939dd424 Explicitly insert transclusion as inline
This keeps the insertTransclusionNode method in synchronous mode.

Logically depends on Ibc2fc66e68 but should be merged before it.

Change-Id: Iec17ea65d38fec7ca7ffcf81032c7346635218d9
2016-05-15 12:16:51 +01:00
Translation updater bot 59b452e147 Localisation updates from https://translatewiki.net.
Change-Id: Id9d053df8ef9ba67b05afe4ee4e6f594e373edca
2016-05-10 22:26:10 +02:00
Translation updater bot 5003d3cac5 Localisation updates from https://translatewiki.net.
Change-Id: I853ca7c0217bda664e98861ade3e9850ae9605db
2016-05-08 22:41:47 +02:00
Ed Sanders 06376669d9 ve.dm.MWReferenceNode: Override static cloneElement instead of getter
The getter isn't always used, but the static method is.

Change-Id: I9b3df7f4e8056cdb554c3ed9a27c39148b2b3237
2016-05-04 13:39:38 +00:00
Translation updater bot 3d86dbeed3 Localisation updates from https://translatewiki.net.
Change-Id: I003e6f2afdc6cadb0aed5a668e99d74e4e3e767e
2016-05-03 22:23:53 +02:00
David Lynch b92a32e08c Dialog: When reusing a reference, avoid popping up the group menu
The group picker menu will open momentarily when the input is changed, unless
it's disabled when the change happens. This was mostly visible when selecting
a reference from the "use an existing reference dialog", as a flash of the
menu in the top-left of the screen.

Bug: T125862
Change-Id: Ib6d3715f7d123545ba688bfbe850fe3c26ccb6e1
2016-04-26 11:08:14 -05:00
Translation updater bot d97135f8a8 Localisation updates from https://translatewiki.net.
Change-Id: I9c17a5b1519401999e0398b442af2f0dddefdd42
2016-04-13 22:17:44 +02:00
Ed Sanders 14d8e12188 Fix wikitext conversion of pasted '<ref>'s
Regex error meant only ref tags with attributes were detected.

Bug: T128805
Change-Id: Ide1153f5f5cc3fe8b0a25309d5e2ddabd796cbe6
2016-04-12 12:16:21 +01:00
Translation updater bot 633ff0140b Localisation updates from https://translatewiki.net.
Change-Id: I316d59b091b0c1758d8d86d6c7a8655ce5d2ac37
2016-04-07 22:59:04 +02:00
Ed Sanders 8a278dbb82 Remove icon properties from windows
Windows stopped supporting icons a while ago.

Change-Id: I2651a8e1e6b22515701d35a4684d1ed7bd858658
2016-03-29 12:33:13 +01:00
Translation updater bot d4b435a27c Localisation updates from https://translatewiki.net.
Change-Id: Ibdc895e80c8b3e10d14475fb38d3092958aefc84
2016-03-27 21:09:45 +02:00
Translation updater bot f650afdda7 Localisation updates from https://translatewiki.net.
Change-Id: I9b24cc13259899c82a94b236f5f5d658bbccb891
2016-03-21 23:29:50 +01:00
Translation updater bot 8115f4c885 Localisation updates from https://translatewiki.net.
Change-Id: I8fe2c9cc9c8a22d4e32a894ce0ba251e001d785f
2016-03-13 22:51:09 +01:00
Translation updater bot b6c6da787a Localisation updates from https://translatewiki.net.
Change-Id: I7c0b6b68ff695a2a1a37eaca4ae3505ac3d46927
2016-03-12 21:09:12 +01:00
jenkins-bot 04cc521550 Merge "Auto-convert pasted ref tags" 2016-03-07 16:32:16 +00:00
Translation updater bot 89801aa60a Localisation updates from https://translatewiki.net.
Change-Id: Ie6a31f48a3fd25c472526d78e954293ffc5e077f
2016-03-06 22:12:00 +01:00
Ed Sanders 5d92de7b7a Auto-convert pasted ref tags
Bug: T128805
Depends-On: I7a38db45d25e86ff3f3f6199aa04425ec98f7cc4
Change-Id: I44fb2b8913fb9bef7d984f86b3579e82b29d0cf0
2016-03-05 16:57:10 +00:00
jenkins-bot 8552cf24d2 Merge "VE: Lookup the correct command for the node" 2016-03-02 23:44:58 +00:00
Ed Sanders 666beded00 VE: Lookup the correct command for the node
Bug: T128198
Change-Id: I564b0b3e8cf6906d108ee876cff03196065bd164
2016-03-02 18:23:11 +00:00
Translation updater bot 88f4cdfbd6 Localisation updates from https://translatewiki.net.
Change-Id: I81e913c86af124c474041a43389195509d1949c3
2016-02-28 21:56:01 +01:00
Translation updater bot 19074bcf0d Localisation updates from https://translatewiki.net.
Change-Id: I9e873009b41afaeddba937c3b739a465fc8da2c2
2016-02-27 21:54:29 +01:00
Translation updater bot c3c10ab9c9 Localisation updates from https://translatewiki.net.
Change-Id: I05ceb4aa6217f3f9345b69eb4daa1ce14d6f7053
2016-02-22 21:38:12 +01:00
Translation updater bot a729388d98 Localisation updates from https://translatewiki.net.
Change-Id: If038f276f7246339b4e85c108e677d74aac8f73b
2016-02-19 22:06:01 +01:00
Translation updater bot e8775d456b Localisation updates from https://translatewiki.net.
Change-Id: I276aa229677a7a11f87887005999696816b1bc17
2016-02-13 23:00:01 +01:00
Translation updater bot 3002dc168b Localisation updates from https://translatewiki.net.
Change-Id: Ib1479d7480034b40f87bbf617effda82d01f2b5d
2016-02-12 22:07:27 +01:00
Translation updater bot 2832914298 Localisation updates from https://translatewiki.net.
Change-Id: I81d3303bc6edafa83d2f7f57058c3f93a3788be2
2016-02-10 21:08:46 +01:00
Ed Sanders eb58f79f8d VE: Fix i18n names broken during migration
Bug: T126373
Change-Id: I682bdaa71bc9a8675c79bae0b2f54955de207945
2016-02-10 00:44:54 +00:00
Translation updater bot c859818a70 Localisation updates from https://translatewiki.net.
Change-Id: I73ebc11c27e1383d26cfa639c0af4a3b5ea78f3e
2016-02-08 22:11:25 +01:00
Translation updater bot 150f87b498 Localisation updates from https://translatewiki.net.
Change-Id: If0384d482faa450737c68bb7b368b36327703542
2016-02-07 22:14:02 +01:00
James D. Forrester f7d5029426 i18n: Grab last few i18n updates from VE after the move
Change-Id: Ib71727e9c93b426dca8eb15e1bca9f745e3ef205
2016-02-05 14:04:29 -08:00
Ed Sanders 8b0e9c728c VisualEditor: Bring in unit tests from VE
Change-Id: I7da5f25f61d0c7f2331ab927c35d8f6a975041b8
2016-02-05 13:41:43 -08:00
Ed Sanders f641f44628 VE: Fix toolbar hack
Change-Id: I2cad81a89ae0c55d4209bfef3a1db239381996ca
2016-02-04 23:06:06 +00:00
Ed Sanders 18f616b9b8 VisualEditor: Move code for Cite into this repo
This code has been developed over three years now in the repo of MediaWiki's
integration of VisualEditor. It has grown and developed significantly during
that time, but now is pretty stable. A number of hacks inside the MediaWiki-
VisualEditor code base have been used to prevent this code from being loaded
on wikis where the Cite extension is not deployed, but this state of affairs
is and always was meant to be temporary.

This code is under the MIT licence which is a tad messy, but not impossible.
It's clearly labelled as such. The list of authors has been updated to take
into account the influx of new functionality.

Bug: T41621
Bug: T104928
Change-Id: I39936ed83d5a60471a0a75da753f498e80aef234
2016-02-04 08:41:54 -08:00