Commit graph

14709 commits

Author SHA1 Message Date
petarpetkovic 50d556e8d2 Make link annotations more flexible
* When ve.ui.MWLinkAnnotationInspector is being initialized,
internal and external annotation inspectors are hardcoded to
new ve.ui.MWInternalLinkAnnotationWidget and
new ve.ui.MWExternalLinkAnnotationWidget. Make this creation
more flexible by creating these inspectors through a method,
which inheriting classes can override.
* In ve.ui.MWLinkAnnotationInspector.getAnnotationFromFragment,
factor out the creation of link annotations, so overriding
classes have the ability to provide different internal and
external annotations.
* In newFromTitle, static method of MWInternalLinkAnnotation,
creation of `element` isn't flexible for reusability with
slight changes to attributes passed to the constructor. By
factoring out the creation of attributes, inheriting classes
can reuse the existing structure and alter the attributes if
needed.

Bug: T195064
Change-Id: I2037464a7be77783837e9810691c8e372c8197c6
2018-07-26 15:12:19 +02:00
Kunal Mehta 53f8f32895 Don't use PAGE_IMAGES_INSTALLED
Bug: T200381
Change-Id: I0b9725fa4b3c4ce4fbb1004cfd3570ba39865fc1
2018-07-25 16:19:09 -07:00
Translation updater bot 484a89a30c Localisation updates from https://translatewiki.net.
Change-Id: Iae37afab9f41e32b4f50d2d980c618dafe2e4720
2018-07-25 22:18:31 +02:00
Translation updater bot 9671fbb30b Localisation updates from https://translatewiki.net.
Change-Id: I6330b0d1221c099f88440c6284d6b50acdc18c99
2018-07-24 22:10:14 +02:00
Translation updater bot a7fc1b8869 Localisation updates from https://translatewiki.net.
Change-Id: I24fc96b4b3efa4405fb35d67c56d9d2b1bd9a008
2018-07-22 22:09:25 +02:00
Translation updater bot 055252ad73 Localisation updates from https://translatewiki.net.
Change-Id: Ice5a642601e8f59aef074ee1afcdc50d3fed86cd
2018-07-21 22:12:10 +02:00
Ed Sanders 0f06ad2d76 Add missing debugbar message
Change-Id: Id95bf914601c75eba120e2c0fa14a869ed26c960
2018-07-21 14:13:53 +02:00
Translation updater bot ee7a0f2799 Localisation updates from https://translatewiki.net.
Change-Id: Id526f64432922ed8ee0a00cb5d5ef21112275247
2018-07-19 22:31:13 +02:00
jenkins-bot 33be736e13 Merge "ve.ui.MWTemplateDialog: Prevent focus changes in the setup process" 2018-07-19 17:43:11 +00:00
Ed Sanders ff10c01687 Update VE core submodule to master (d2a120e66)
New changes:
35eaf8209 Move annotation nail functionality to a mixin
d2a120e66 Rebaser: Create a multi-user flag on the surface model

Change-Id: Iffad3c90a9b8ac08f646721bfdbc0503cea2890b
2018-07-19 13:22:25 +01:00
jenkins-bot d18e9e964f Merge "Add missing rebaser messages" 2018-07-19 10:32:02 +00:00
Ed Sanders 8a6f592884 Add missing rebaser messages
Change-Id: I3f969abfc5899350854bf105ef1b16d35ccdc062
2018-07-19 11:02:05 +01:00
Bartosz Dziewoński 668ce071fa ve.ui.MWTemplateDialog: Prevent focus changes in the setup process
This is similar to the hack in ve.ui.MWMetaDialog, except uglier :(
We already explicitly focus the right field in the ready process.

I am not really sure why the focus change causes the issue, but
preventing it definitely fixes it. It would make sense if we changed
the value of the field after focussing it (as setValue() restores the
validity flag cleared by onFocus()), but we don't seem to do it.

Bug: T199838
Change-Id: Ia602551ee0b0885cefbd4cb2fc00d569ff42da67
2018-07-19 01:43:31 +02:00
Translation updater bot efd85144d4 Localisation updates from https://translatewiki.net.
Change-Id: Ic4679590c3a84b925a024e255317192407764d57
2018-07-18 22:12:45 +02:00
Santhosh Thottingal 2eb493bfcf
ve.dm.MWInlineImageNode: Fix undefined data-mw in toDomElements output
Bug: T198941
Change-Id: I52c670dcc1a4dfe03c954b053d344c22e7b48a8d
2018-07-18 16:46:07 +05:30
jenkins-bot db8c585f11 Merge "Apply edit surface jQuery.makeCollapsible overrides to visual diffs too" 2018-07-18 06:36:55 +00:00
jenkins-bot 7856c52f48 Merge "ve.ui.MWMediaDialog: Fix confusion between #getSetupProcess and #getReadyProcess" 2018-07-18 04:51:49 +00:00
Bartosz Dziewoński fc91623b94 ve.ui.MWMediaDialog: Fix confusion between #getSetupProcess and #getReadyProcess
Follow-up to 13675e4a81.

Bug: T185944
Bug: T199841
Change-Id: I2bf08bc0a3684dbfdb9574ea6df0352e8d9d8fd7
2018-07-18 06:30:46 +02:00
jenkins-bot 595a36c9b0 Merge "Update VE core submodule to master (8d0ab0587)" 2018-07-18 01:14:03 +00:00
James D. Forrester f08eb6028a Update VE core submodule to master (8d0ab0587)
New changes:
cd6932096 Fix rebaser dependecies
bdcbf8f81 Rebaser: make the server synchronous again
52e6873b1 Cleanup rebaser
31ef4c5ec Handle authentication and reconnection
22d6feea3 Squash Changes to use fewer transactions
4d93f0819 Fix confusion between #getSetupProcess and #getReadyProcess
8d0ab0587 Localisation updates from https://translatewiki.net.

Bug: T185745
Bug: T185944
Bug: T188026
Change-Id: Ie33d3dd4746c9c91fe676f140f416af72ac218b0
2018-07-18 02:54:07 +02:00
Translation updater bot 01879333d2 Localisation updates from https://translatewiki.net.
Change-Id: I604a757421a65f84885c1cae68bafe8c59150465
2018-07-17 22:14:13 +02:00
jenkins-bot ffaab335ce Merge "Move some styles from mw.ArticleTarget to mw.Target" 2018-07-16 23:16:56 +00:00
jenkins-bot 9dc7d55975 Merge "Fix confusion between #getSetupProcess and #getReadyProcess" 2018-07-16 23:16:53 +00:00
jenkins-bot b3fc4d1b20 Merge "Fix import button events" 2018-07-16 22:40:01 +00:00
Translation updater bot e33a7a8637 Localisation updates from https://translatewiki.net.
Change-Id: Id1d0e053c762b586782fa8d1e08aa806026d6286
2018-07-16 22:20:33 +02:00
Ed Sanders fbb8837a88 Fix import button events
Change-Id: Iecb6e663cdf2cc53f6053a21707aff1ff2911181
2018-07-16 19:46:14 +00:00
Translation updater bot cb6d98b1f4 Localisation updates from https://translatewiki.net.
Change-Id: I95d07cbd76e94b859698f978a9465692df91d383
2018-07-15 22:11:06 +02:00
Translation updater bot 9bb8981565 Localisation updates from https://translatewiki.net.
Change-Id: I308ec90cde165d8dde96701996ecbd5e711c9088
2018-07-14 22:20:48 +02:00
Translation updater bot a10be230c3 Localisation updates from https://translatewiki.net.
Change-Id: I5af2ff6952a1b538bbfbdd1fa61a16580ba34143
2018-07-13 22:31:27 +02:00
Translation updater bot 0fcb567ebc Localisation updates from https://translatewiki.net.
Change-Id: I5e1e1c9aeb9d174ba69024366c207e63ec041f4c
2018-07-12 22:38:59 +02:00
Bartosz Dziewoński 13675e4a81 Fix confusion between #getSetupProcess and #getReadyProcess
The #getReadyProcess method should be used pretty much only to focus
a field inside the dialog after it is opened. It runs after the window
opening animation finishes, so if you add stuff to the window here,
that will be visibly delayed.

The #getSetupProcess method should be used pretty much for everything
else that depends on the opening `data`. It runs before the window
opening animation, so if you add stuff to the window here, it will be
visible while animating it.

Bug: T185944
Change-Id: I71ea5b6e1e1947c1cf8fd749100e854953a8ef3c
2018-07-11 23:47:55 +02:00
L10n-bot 03d2cc72d4 Merge "Localisation updates from https://translatewiki.net." 2018-07-11 20:41:15 +00:00
Translation updater bot 8f8641f1a5 Localisation updates from https://translatewiki.net.
Change-Id: I5b7561a7f38048c77a2f458d1721a930c28a22f0
2018-07-11 22:39:55 +02:00
James D. Forrester 3d07d7f019 Update VE core submodule to master (6398ee9c4)
New changes:
6398ee9c4 Update OOUI to v0.27.5

Change-Id: I4060189877b08148aa93f1bde2574f30798ca66d
2018-07-11 11:51:47 -07:00
James D. Forrester 3160429959 Follow-up dfe27be: Add missing i18n keys to manifest
I thought I'd done this. I didn't.

Bug: T198064
Change-Id: I1c78ce957f26e8c297d97d6f78b3451600b4657c
2018-07-10 15:55:56 -07:00
Translation updater bot 992b0b16d5 Localisation updates from https://translatewiki.net.
Change-Id: I921ca1926a5bfb08bfb6c11debda963e24a6a413
2018-07-10 22:16:31 +02:00
jenkins-bot 74957f35b1 Merge "init.mw.ArticleTarget: make sure renderCategories preserves order" 2018-07-10 20:03:39 +00:00
James D. Forrester 27f56a57f9 Update VE core submodule to master (58eb2cb97)
New changes:
634908a57 build: Upgrade to eslint 5.x
08a5f34cd Register dummy triggers for clipboard actions
f15f7832b Add getNameByTrigger to TriggerRegistry

Change-Id: Ia943df83aca831a72cf0e984fb4c982d1d4dfdf4
2018-07-10 10:54:24 -07:00
David Lynch 9d8d4255cc init.mw.ArticleTarget: make sure renderCategories preserves order
The linkCache fetch can push the categories out of order unless everything is
already in cache. As such, remember the initial order and enforce it after the
promises have resolved.

Bug: T197759
Change-Id: I9ea8d5e642f62c96475d0713f2c79258abb33b19
2018-07-10 12:30:30 -05:00
jenkins-bot 55428c849e Merge "Fix doc in GalleryDialog and add todo" 2018-07-09 22:34:35 +00:00
jenkins-bot fd48ac89a1 Merge "build: Bump devDependencies related to the screenshots task" 2018-07-09 21:31:36 +00:00
Ed Sanders f80b029444 Fix doc in GalleryDialog and add todo
Change-Id: I4e1ad8ec3d7a1c85a600bf1dafc449054c115203
2018-07-09 22:03:52 +01:00
Translation updater bot ca7071775e Localisation updates from https://translatewiki.net.
Change-Id: Ic86dc77fb778ea0d5bdd104cfbd0fefd98304ec7
2018-07-09 22:11:27 +02:00
James D. Forrester 6e71e1c0c3 build: Bump devDependencies related to the screenshots task
This fixes a bunch of warnings from `npm audit`.

Change-Id: I31321f2f19421944787279923e010f8093789d5e
2018-07-09 10:50:40 -07:00
jenkins-bot 1d17c089d5 Merge "init.mw.ArticleTarget: sort categories correctly in renderCategories" 2018-07-09 17:50:09 +00:00
jenkins-bot 47db68cf1c Merge "build: Enable and make pass no-prototype-builtins" 2018-07-09 17:09:34 +00:00
jenkins-bot a10b0b2492 Merge "build: Bump linters for eslint 5 and make pass" 2018-07-09 17:07:25 +00:00
David Lynch 71e42d50fe init.mw.ArticleTarget: sort categories correctly in renderCategories
I.e. don't sort them, because they're provided in source order and that's all
we need.

Bug: T197759
Change-Id: I3b9508ff49233ccfbeba1d111a6df9f29f0fc318
2018-07-09 09:25:41 -05:00
Translation updater bot 9bb4ebda5c Localisation updates from https://translatewiki.net.
Change-Id: If53e521615b01b40e64baa85e9fbf82d62db9e36
2018-07-07 22:52:45 +02:00
Translation updater bot d9a8ab77de Localisation updates from https://translatewiki.net.
Change-Id: Ifd4b4904fee3dcc1c1eee2add0f01d58b51349fd
2018-07-06 22:39:23 +02:00