Commit graph

8078 commits

Author SHA1 Message Date
jenkins-bot 30bccf6ce3 Merge "Only build reference search index when it's been changed" 2014-08-21 01:56:06 +00:00
jenkins-bot df85006b03 Merge "Refactoring ImageModel constructor" 2014-08-21 01:54:46 +00:00
James D. Forrester 67f304a414 Update VE core submodule to master (c4ce5ee)
New changes:
c4ce5ee Update OOjs UI to v0.1.0-pre (466a8762ac)

Update changes:
* Remove manager arugment from window constructors
* Use this.$content instead of this.frame.$content
* Use this.getDir() instead of this.frame.getDir()
* this.loading is now a promise, not a boolean

Change-Id: Ia83449a60078dd24ea4f976221c0859e5a121279
2014-08-20 18:42:52 -07:00
James D. Forrester 5148a0836a Rename "reference list" to "references list" internally
That's what we call them in human-speak, and it makes sense to have them align.

Bug: 49923
Change-Id: I8dcfba249fb9ea13c2b4052e98a4d253c302b1ba
2014-08-20 18:26:54 -07:00
Moriel Schottlender 88a0790aab Refactoring ImageModel constructor
This change creates the scalable object that's attached to the image
model through its constructor. Also adds a 'resourceName' variable
to store attributes.resource, which is mostly used for API calls.

Change-Id: I713c59d1cec5f87387a87c98a59e75b3d5c1050e
2014-08-20 18:13:12 -07:00
James D. Forrester 54f609324f Update VE core submodule to master (59a25cb)
New changes:
5e35cc0 ve.Filibuster: Scrupulous state logging
82961d0 Re-sync bin/update-oojs.sh with equivalent script in MediaWiki core
2b540a7 Don't blank .static in ve.dm.Document
cfbb0e6 Update OOjs to v1.0.12
59a25cb Update OOjs UI to v0.1.0-pre (944c47c5fe)

Change-Id: I4713b73a7897c54da30db32db0ac66e8bcc1b208
2014-08-20 17:42:52 -07:00
James D. Forrester 97c0894379 Label 'insert' buttons with just "Insert" instead of varying by content
Depends on VE-core change I23b0772a

Change-Id: Ia8fb88d3501ffa2c26add4419da5463a926f45d1
2014-08-20 14:23:57 -07:00
Roan Kattouw c4b7d2ca95 Update VE core submodule to master (c6085d9)
New changes:
449ecfa Fix check for left/right annotations
41d85fd Label 'insert' buttons with just "Insert" instead of varying by content

Local changes:
* Add new message to VisualEditor.php

Change-Id: I61fe1bc0fd4d7ac1736f1b182b54a631bcad10ed
2014-08-20 14:11:46 -07:00
jenkins-bot f7d621e498 Merge "Update VE core submodule to master (d515ce6)" 2014-08-20 21:08:37 +00:00
jenkins-bot 50bedc69d3 Merge "Bring MWTransclusion example data out of the stone age" 2014-08-20 21:08:22 +00:00
James D. Forrester d1ef4fd01c Update VE core submodule to master (d515ce6)
New changes:
c600eb4 Ignore whitespace when generating paste context
3b1b740 Add an event to updating current values in scalable
5140616 Add description to title attribute of focusable highlight
6df8830 Default dimensions to null, not empty objects
d515ce6 Update OOjs UI to v0.1.0-pre (51f513f9d3)

Change-Id: Ie2446b4a767cb56de392f8f0315d0289fe6da570
2014-08-20 13:55:39 -07:00
Roan Kattouw c43dc5e362 Bring MWTransclusion example data out of the stone age
The example data still used the old format for data-mw that predates
support for multi-template transclusions in Parsoid. The old format
has now been retired, and any attempt to interpret it will cause
JS errors.

Also removed data-parsoid from most of these examples while I was
at it.

Change-Id: I2b7816b7edc580cec0ed29fb166458351a0c6ed3
2014-08-20 13:54:46 -07:00
Translation updater bot 1febff3e78 Merge "Localisation updates from https://translatewiki.net." 2014-08-20 20:37:05 +00:00
Translation updater bot 6494ebf44a Localisation updates from https://translatewiki.net.
Change-Id: I7e6597efaf081d4c1b5ca6089f04a379d110ae02
2014-08-20 22:35:04 +02:00
Sam Smith 33ef289190 Reinstate the ve-ui-toolbar-saveButton class
The class provided a minimal coupling to the firsteditve guided tour,
which used it to attach a guider to the "Save page" button.

The class was removed in I30dc7020121f0dd6907b61ef674a7cb14eb00652.

Bug: 69784
Change-Id: I81fdc4f2fa41c86a6481cf478c154b5d6c99d41d
2014-08-20 17:39:40 +01:00
James D. Forrester 53dd7de095 Drop references to magnify-clip-{ltr,rtl}.png file
This is now embedded via CSS in MediaWiki core's Linker as of 1.24wmf18.

Change-Id: Ib095740611de3f84f1aad229939b92d788b537c2
2014-08-19 17:18:18 -07:00
jenkins-bot 90110f53b1 Merge "Provide mw-redirect and mw-disambig classes for links on the surface" 2014-08-19 18:00:07 +00:00
Translation updater bot 80e30a8c08 Localisation updates from https://translatewiki.net.
Change-Id: I8dcc75acd85076ad5d973349686b5afc59642992
2014-08-18 22:44:38 +02:00
jenkins-bot 14f02ac15f Merge "[BrowserTest] create new test for Cite tool" 2014-08-18 17:20:20 +00:00
Cmcmahon 0f5289294d [BrowserTest] create new test for Cite tool
Change-Id: Ibc06377fa28bef53a5f8ca734026a4485888e0ad
2014-08-18 10:17:17 -07:00
Translation updater bot de151009a8 Localisation updates from https://translatewiki.net.
Change-Id: If617da0a00174f27beb90dad0e5c4441d4142c95
2014-08-17 23:12:36 +02:00
addshore ef1c12e445 Fix @returns >> @return phpdoc
Change-Id: Ibff7dfb5e870a35e5e932658490de1923f9233ad
2014-08-17 20:43:56 +01:00
James D. Forrester 54be1ee6e5 Update VE core submodule to master (f7fa420)
New changes:
9371f89 Add local image to demo
be862da Add VE logo to repo and use in image demo and for branding demo page
a2c53ab Factor out wordbreak detection code and run it for simple insertions too

Change-Id: I1be861a69a1cd6eb1e163ac15b18b6d92973ed60
2014-08-16 17:03:49 +01:00
Roan Kattouw fbd7923741 Make MWMediaDialog not crash on API errors
resp.query won't be set if resp.error is set instead.

Also rename alignButons to alignButtons.

Change-Id: Ie69fe1ddae393ee02b44e9288a35e0dd47d17e4e
2014-08-16 00:30:16 -07:00
jenkins-bot 14e4a915d7 Merge "Use Config instead of globals" 2014-08-15 22:55:02 +00:00
Kunal Mehta 5575bed67c Use Config instead of globals
Change-Id: Iecf6358fcd15fe578b3e0dcdfa6022e0a1a763c8
2014-08-15 15:50:26 -07:00
Roan Kattouw 924e3c026d Update VE core submodule to master (03975f8)
New changes:
a28e085 Restore QUnit web UI
8e2477c [BREAKING CHANGE] Move modules to src and tests and i18n, UnicodeJS to lib
26adfaf Fix path prefix for tests/index.html so it actually runs
d87dab5 Work around getSystemPlatform() race condition
6682ebc Make getParsedMessage() test actually test getParsedMessage()

Local changes:
* Update paths from lib/ve/modules/ve to lib/ve/src or lib/ve/tests
* Update paths from lib/ve/modules/unicodejs to lib/ve/lib/unicodesjs
* Rename unicodejs.wordbreak module to unicodejs
* Update code for getSystemPlatform() and isInternetExplorer()
  being made static

Change-Id: I7bb3bb74addfd3fbb64795c5ac3ff791b8874a4f
2014-08-15 14:42:08 -07:00
Ed Sanders 03231e5a1c Fix teardown of live extension nodes
* Separate teardown into (insertOrUpdate|remove)Node
* Override insertOrUpdate completely to avoid generating
  extra transactions. Surface#applyStaging creates all the
  transactions we need.
* Override remove to popStaging before calling parent.
* Fix isEmpty check to use getInnerValue (ignoring whitepsace)

Change-Id: I903302af178d6f923de00aff9c58e5330d682813
2014-08-15 17:40:25 +01:00
Translation updater bot 9fcece72d1 Localisation updates from https://translatewiki.net.
Change-Id: I10b1d8a872bd9071314f19f9420ceee8107a0a15
2014-08-14 23:41:24 +02:00
Bartosz Dziewoński 066283dde7 Provide mw-redirect and mw-disambig classes for links on the surface
To mimic PHP parser, or, in the case of mw-disambig, what I would want
the PHP parser to be.

Change-Id: I70dc426a3b87daef27816d6d86130c39f30ba0f4
2014-08-14 16:56:07 +00:00
James D. Forrester 9b27df0de9 Update VE core submodule to master (ce51e22)
New changes:
2075a46 Embed CSS images in dist
9e15b04 Localisation updates from https://translatewiki.net.
ce51e22 Make sure image attribute is cleared if set to null

Change-Id: I8edefe662d5d3c88abef242fdaf4d45644a130b1
2014-08-14 12:48:10 +01:00
jenkins-bot 3d475420cb Merge "Update VE core submodule to master (8e56dd5)" 2014-08-14 11:34:49 +00:00
jenkins-bot afd32fb267 Merge ""Fix" hack in ve.test.utils to prevent immediate surface setup" 2014-08-14 11:34:35 +00:00
Translation updater bot 1434b450fe Localisation updates from https://translatewiki.net.
Change-Id: I2eb25beb67927d74d8fcd7da60d0ea31a74ec152
2014-08-13 23:07:48 +02:00
jenkins-bot e3e53bb5b6 Merge "Fix use of visualeditor-mweditmodesource-title instead of …-tool" 2014-08-13 19:46:16 +00:00
jenkins-bot 15efa202a2 Merge "Update token handling for MediaWiki API change" 2014-08-13 19:45:34 +00:00
Roan Kattouw 7eee4604f7 Update VE core submodule to master (8e56dd5)
New changes:
36705e9 Replace setModulesPath with addMessagePath

Change-Id: I7b95d1f10bf2d131343613bc5e6bc334d3ad40d0
2014-08-13 12:37:53 -07:00
Roan Kattouw e72f804565 "Fix" hack in ve.test.utils to prevent immediate surface setup
This used to work because loading i18n files took time. However,
we now don't register any message paths with the platform, so
platform initialization is now synchronous, which breaks the hack.

Instead, explicitly assign an unresolved deferred to the platform's
initialization promise, and resolve it after the mw.Target has been
constructed.

*barf*

Change-Id: I287cb86ce8c4c534fd723532f34463359a8ccc7c
2014-08-13 12:37:31 -07:00
jenkins-bot cda1ee5402 Merge "Remove unused modules URL" 2014-08-13 17:13:08 +00:00
jenkins-bot b6800003c4 Merge "Remove unused globals, add some type-hinting" 2014-08-13 16:43:55 +00:00
jenkins-bot 81360d0be3 Merge "Don't use RequestContext::getMain() if a context is available" 2014-08-13 16:35:58 +00:00
jenkins-bot 9b2383589f Merge "Rename MWLinkInspector → MWLinkAnnotationInspector to match file name" 2014-08-13 16:29:53 +00:00
Eloquence 3fb6e72263 Change label in dialog: "Change image" -> "Choose a different image"
The media dialog has an "Apply changes" primary action and a "Change image"
secondary action. These two labels are confusingly similar. "Choose a
different image" is a long label, but even on mobile a longer label
should fit nicely in this context, and this seems to me to avoid the
issue of ambiguity.

Change-Id: Id8be8b4cf70f7eee689b72d88b0aeac20c2eca93
2014-08-13 16:20:58 +00:00
Bartosz Dziewoński ede9dfcbb1 Rename MWLinkInspector → MWLinkAnnotationInspector to match file name
There is a MWLinkNodeInspector too, renaming the class instead of the
file to avoid name confusion.

Change-Id: Idaa26503ecd9b0fd0903937bb209397672138054
2014-08-13 16:20:15 +00:00
Brad Jorsch 6dd98b5f3b Update token handling for MediaWiki API change
MediaWiki change I2793a3f2 changes API handling in a way that needs
updates to extensions for proper operation:
* needsToken() now returns a string
* Most custom token types are being replaced with a 'csrf' token (the
  former 'edit' token); any others need a new hook.
* All tokens must use a static salt. Compat with web UI using non-static
  tokens is supported and also serves to handle the now-deprecated token
  fetching.
* Documentation in getParamDescription() should return a string (not
  array) for 'token', as the signal to core that it should be replaced
  with a standardized message.

When compatibility with earlier versions of MediaWiki is no longer
maintained, the entry for 'token' from getAllowedParams() and
getParamDescription() may be removed, as may getTokenSalt(). This patch
leaves them in place.

Note this is intended to be compatible with earlier versions of
MediaWiki, and so should be safe to merge before the core change.

Change-Id: Ia6e512aae366996de4e73a8d7f4f03fcddd77286
2014-08-13 16:19:42 +00:00
James D. Forrester af3ab5997d Fix use of visualeditor-mweditmodesource-title instead of …-tool
Bug: 69203
Change-Id: Ib3d84f7ddffa3a9d0c21393d92a29ebf8bf1eef5
2014-08-13 16:19:31 +00:00
jenkins-bot 0edc2a09c2 Merge "[BrowserTest] Language screenshot job should run specific scenarios" 2014-08-13 15:08:28 +00:00
jenkins-bot 41bb9bb2d3 Merge "Remove messages defined in core" 2014-08-13 14:46:50 +00:00
Vikas S Yaligar 438f0a0fcc [BrowserTest] Language screenshot job should run specific scenarios
Change-Id: Ia8ab136018b434b4d53db06f8c91af95e3ef8474
2014-08-13 14:15:03 +00:00
Vikas S Yaligar d39f014058 [BrowserTest] Added browser tests for formula, reference list and save button
Change-Id: I96a7dfd09336ae919775f7d0234dd9c11ce93268
2014-08-13 13:39:10 +00:00