Commit graph

1391 commits

Author SHA1 Message Date
Translation updater bot 3ce417774a Localisation updates from https://translatewiki.net.
Change-Id: I9622380b6a233d3caa6012289f8841c7e858bd50
2019-01-06 22:30:27 +01:00
Umherirrender 9ac1604d19 Improve param doc
Change-Id: Idc0780dae2748d6353ae7e1731f183307489626a
2019-01-03 00:21:18 +01:00
Timo Tijhof d71bdf2f08 Specification: Fix "properties" typo in § 3.2.8
Change-Id: I07d12cc759224474bf631ae5ab50d5819fe60756
2019-01-01 16:59:07 -08:00
Translation updater bot 079d17f313 Localisation updates from https://translatewiki.net.
Change-Id: I33a52a386a636cb85c1ee5054b531bc3481baff6
2019-01-01 22:21:50 +01:00
Timo Tijhof 498c66f451 tests: Add coverage for TemplateDataBlob::getHtml
Change-Id: I04caf657ac72f90d1dc0797f293d5a4f61cfdf08
2018-12-29 20:43:02 +00:00
Translation updater bot 545ee5f3d9 Localisation updates from https://translatewiki.net.
Change-Id: I1f8ff79e3fc168081232378f33b79c055efe6a77
2018-12-20 22:41:50 +01:00
Translation updater bot fca2e21096 Localisation updates from https://translatewiki.net.
Change-Id: Iec7111e5653d0b9a53ae3972e2b61be2aa569d13
2018-12-19 22:22:52 +01:00
Translation updater bot 885dcf79b7 Localisation updates from https://translatewiki.net.
Change-Id: I1501e951ce866be7135d76d6fcc69bc8da23df6b
2018-12-18 22:48:33 +01:00
Kunal Mehta f21a1a0017 build: Set "root": true, in .eslintrc.json
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.

Bug: T206485
Change-Id: I7f51224c618c89e57e472fdeca52dceed4c05263
2018-12-17 18:58:37 -08:00
Translation updater bot 2d0468ec6b Localisation updates from https://translatewiki.net.
Change-Id: I94f7af716dab97e4e3cda41eee5adcc5b8aa9b2d
2018-12-14 22:22:23 +01:00
Translation updater bot 9b10fa593d Localisation updates from https://translatewiki.net.
Change-Id: I4fd7ac9b3e0c49778d8a4f49afbf21c4e7d061cb
2018-12-11 22:40:01 +01:00
jenkins-bot 4221945fc9 Merge "Ignore bang magic word in table syntax when guessing parameters" 2018-12-10 23:55:08 +00:00
Translation updater bot 2cb82489ca Localisation updates from https://translatewiki.net.
Change-Id: I8215a2a701d00a37dff1a907f801012015c5ce6a
2018-12-05 22:30:31 +01:00
jenkins-bot 8e05faa41f Merge "Move all apihelp translatable messages to separate files" 2018-12-05 11:02:13 +00:00
Translation updater bot d75728b6a5 Localisation updates from https://translatewiki.net.
Change-Id: I16725fe198967bd73bcf00357b686055842d874d
2018-12-03 22:35:32 +01:00
zoranzoki21 ac59e27411 Move all apihelp translatable messages to separate files
Bug: T189982
Change-Id: I0614e26ad8205209f3efd5c480248740eee92aed
2018-12-03 20:41:20 +00:00
Translation updater bot f9795889f0 Localisation updates from https://translatewiki.net.
Change-Id: I7a80517bccc55e4bd87af9d53b858bc2a9f96d14
2018-11-30 22:50:06 +01:00
jenkins-bot d7145f1180 Merge "Update eslint-config-wikimedia to 0.9.0" 2018-11-30 21:28:32 +00:00
jenkins-bot 2b3b57b21d Merge "Use ve.deactivationComplete hook instead of ve.deactivate" 2018-11-30 20:27:28 +00:00
Translation updater bot 21653eb0d8 Localisation updates from https://translatewiki.net.
Change-Id: I5dccd4e28119c956e6c6629303279e928ee860fd
2018-11-29 22:27:43 +01:00
Ed Sanders 47c3c69baa Update eslint-config-wikimedia to 0.9.0
Also bump stylelint (no fixes required)

Change-Id: Ia6bd3a8c0392eafb939f9ff05827e1320f56b706
2018-11-29 14:19:33 +00:00
Ed Sanders e0cab02231 Use ve.deactivationComplete hook instead of ve.deactivate
We want to deprecate the latter.

Change-Id: Id1ae1049738220a86adb36cb3961592e3d8ca27c
2018-11-29 14:01:32 +00:00
James D. Forrester 64367bfebe eslint: Drop 'dot-notation' rule
Bug: T210552
Change-Id: I61010c115d5660ca76832e5380e12466b5b537f1
2018-11-28 11:14:08 -08:00
Sam Wilson 75e54ae999 Ignore bang magic word in table syntax when guessing parameters
Three-braces-and-a-bang can be a table starting construct in templates.

This also fixes an overlooked bug in which the test wasn't checking
array element key names.

Bug: T157029
Change-Id: I69ed4fc9fe3bb126b7b39abea0f58ad56adf3885
2018-11-27 11:46:23 +08:00
Ed Sanders 822d0cd345 Rename module editPage→editTemplatePage, create minimal new editPage module
VisualEditorPluginModules loads whenever VE loads, so create a minimal
loader page to check if we are in the template namespace before loading
the rest of the TemplateData init code.

Bug: T208765
Change-Id: Id127eb4a2472a6ce9da7672f9237b182cf6be2eb
2018-11-24 00:14:03 +00:00
libraryupgrader a71ecb3953 build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: Icbaa6edc54535c79390a11da27054cb6c91a8b42
2018-11-16 14:38:18 +00:00
jenkins-bot db3d73bc84 Merge "eslint: Introduce wikimedia/qunit ruleset" 2018-11-15 23:57:55 +00:00
jenkins-bot 7b7b1bacbd Merge "build: Update devDependencies" 2018-11-15 23:51:42 +00:00
jenkins-bot 201efff49a Merge "Separate parameter aliases in the description table with spaces" 2018-11-15 23:51:41 +00:00
Ed Sanders 9a8c807f51 eslint: Introduce wikimedia/qunit ruleset
Change-Id: I3972918c00e69d325c5cb2055d4996a8c07b1034
2018-11-15 23:21:32 +00:00
Ed Sanders 0736e6d572 build: Update devDependencies
eslint-config-wikimedia      0.5.0  →   0.8.1
 grunt-eslint                20.1.0  →  21.0.0
 grunt-stylelint              0.9.0  →  0.10.1
 stylelint                    8.2.0  →   9.2.0
 stylelint-config-wikimedia   0.4.2  →   0.4.3

Change-Id: I21d7b4e1418f2f9bf22d380b1302158c56ab4886
2018-11-15 23:14:32 +00:00
Bartosz Dziewoński 1421878eee Separate parameter aliases in the description table with spaces
This allows them to wrap over multiple lines if necessary, greatly
improving the result for templates with ridiculous number of aliases,
like <https://en.wikipedia.org/wiki/Template:Cite_book/TemplateData>.

Change-Id: I5826ac31b83e81f89f85e87f9098570b3759ccfb
2018-11-15 23:08:18 +00:00
Translation updater bot d9174e7052 Localisation updates from https://translatewiki.net.
Change-Id: Ifb58d24d967a12f3921641bb6bc42f7ae09aa343
2018-11-15 23:00:28 +01:00
Ed Sanders 34924e0a0b Remove VETarget, use textSelection API
The textSelection API works with VE wikitext mode , so we
can use the same code for both editors.

Change-Id: I9032733b14d115bad8dcadefc50e791cf30eed7d
2018-11-14 14:53:42 +00:00
Translation updater bot d30c1be1f2 Localisation updates from https://translatewiki.net.
Change-Id: I7f3821e8da04e396c19cf4bdcc04d115108cae05
2018-11-12 22:12:56 +01:00
Translation updater bot bb3a30f02c Localisation updates from https://translatewiki.net.
Change-Id: I732a074f22b0db11dfbf43978684fe668f9781f8
2018-11-11 22:33:54 +01:00
Translation updater bot 2cd9625494 Localisation updates from https://translatewiki.net.
Change-Id: I974bb4bdb583d2d34bcb39374e995741ba1a1b96
2018-11-10 22:28:28 +01:00
Translation updater bot 57b6fb03fa Localisation updates from https://translatewiki.net.
Change-Id: I57cd5fa289aae5b39da3e7aae4be477796cf4725
2018-11-04 22:42:43 +01:00
Translation updater bot 91cf82c038 Localisation updates from https://translatewiki.net.
Change-Id: I9d5bc27234327af4863e81bf4bf9d728ecefa61f
2018-11-03 11:03:27 +01:00
Bjornskjald 096d558272
Add stripping leading and trailing spaces from the "format" field
Bug: T177973
Change-Id: I5fc30479485da59b5ea097f97a2dfb7ec149918f
2018-11-01 22:55:40 +01:00
Translation updater bot 8d95685c11 Localisation updates from https://translatewiki.net.
Change-Id: I11ae21d24aa0b1c7275b8fde64ba349bdd771591
2018-11-01 22:23:29 +01:00
jenkins-bot 593d23fd36 Merge "Don't store templatedata pageprop on doc-subpage" 2018-10-31 15:21:49 +00:00
Umherirrender bce29bdc6e Start showing warning for deprecated PHP entry point
Change-Id: I43d7febac9ae620d739dd494a87aba2a7010801c
2018-10-26 22:00:05 +02:00
Translation updater bot 66c5185896 Localisation updates from https://translatewiki.net.
Change-Id: I32967ebfaa1cb8c89e04383707163cbf8a3eb012
2018-10-23 22:09:06 +02:00
Translation updater bot af1bb1bffd Localisation updates from https://translatewiki.net.
Change-Id: I38a79e7ff46b15bbebdeb32c60ccbab61c21c323
2018-10-18 22:34:31 +02:00
Timo Tijhof 73aed63e0a ApiTemplateData: Address non-array count() warning on PHP 7.2
The $data value here comes from TemplateDataBlob which is always
an instance of stdClass. It has no items that make sense to count,
and the object was already being used as $data->params a few lines
higher, which means this count operation would always yield "1",
by proxy of count() effectively seeing the non-array as an array
containing the one non-array item.

Bug: T202087
Change-Id: If725aa8b4229613bf60290eb78654a42497056c8
2018-10-14 03:54:24 +01:00
Timo Tijhof 777ddee3aa ApiTemplateData: Use strict check for $langCode
This is assigned as boolean false or any string value.
The previous code used in implicit boolean cast to differentiate,
but the check is insufficient given that "" and "0" would also
cast to false. It is not the responsibility of this code to filter
those out.

Change-Id: I2cc707432b93703b29c49ac17d737f34119fc400
2018-10-14 03:52:55 +01:00
Timo Tijhof 29162276eb ApiTemplateData: Remove needless count() call
These variables always hold arrays, and to assert an array being
non-empty, boolean evaluation is reliable and suffices.

Change-Id: I5173f9d38ff52807a8025897115823d093052ecf
2018-10-14 03:51:38 +01:00
Umherirrender 8d0a3ea30c Update namespace for MediaWiki\Revision\RevisionRecord
Follow-Up: I16bea8927566a3c73c07e4f4afb3537e05aa04a5
Change-Id: Iae4f59a54a0fb65058ef43f51c5c819646935ac7
2018-10-11 19:56:27 +02:00
libraryupgrader b27e61ec3b build: Updating npm dependencies for security issues
* Updated grunt-contrib-watch to 1.1.0, addressing:
  * https://npmjs.com/advisories/534
  * CVE-2017-16137
  * https://npmjs.com/advisories/577
  * CVE-2018-3721
* Updated grunt to 1.0.3, addressing:
  * https://npmjs.com/advisories/577
  * CVE-2018-3721

Change-Id: Ic7cc2041d63519835b3c569989a7c7c43738fb08
2018-10-11 11:15:00 +00:00