Commit graph

2324 commits

Author SHA1 Message Date
Thalia 8361c80307 Disable TemplateData dialog 'apply' action until changes are made
Change-Id: I890de938654ea598d3f7af2ea7f69e11188bbab4
2020-03-30 23:39:26 +01:00
jenkins-bot ff01b2ba75 Merge "Fix borders for alias pills in TemplateData editor" 2020-03-30 14:41:01 +00:00
adham-khatean 1bf9e95bb6 Fix borders for alias pills in TemplateData editor
fixing the problem of top and bottom borders for the alias pills in the
TemplateData editor are cut off, by setting the padding of the
class "tdg-templateDataParamWidget-param-aliases" to 1px

Bug: T248486
Change-Id: Ic66cda0be840fb3be966c2efa89062b7b9f117a3
2020-03-30 15:53:08 +02:00
Translation updater bot 947f97bed1 Localisation updates from https://translatewiki.net.
Change-Id: Icde08966b810ef6de1be1c343b9c41d63ca2a782
2020-03-30 09:15:16 +02:00
DannyS712 720aff85b1 PHP coding conventions: reorder doxygen tags
See https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Doxygen_tags

Change-Id: Ied27b09fd717fd469170dc842091732195b4046d
2020-03-26 15:48:33 +00:00
libraryupgrader 735e99935f build: Updating npm dependencies
* mkdirp: 0.5.1 → 0.5.3
  * https://npmjs.com/advisories/1179
* eslint: 6.7.2 → 6.8.0
  * https://npmjs.com/advisories/1179

Change-Id: Ie4620d24509ff0be326b3b8d2773738e89b9703c
2020-03-21 07:16:09 +00:00
libraryupgrader 5831948faa build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: Iaf16e4562eeae41c20f2fd0ba4f71f52d86f6bb2
2020-03-19 13:18:04 +00:00
Timo Tijhof 53f4783ffd Organise resource files in directories after their module bundles
* I've moved the one remaining file in resources/ to modules/.
  The repo had both resources/ and modules/.

* Class files are named after their class.

* Files with init logic on a page are named init.js.

* Files that only export re-usable classes for another module,
  are named index.js.

Bug: T193826
Depends-On: If661c68bea069e99cfff35711efdde7805a12851
Change-Id: Ic8975d7ba349ba50f9039545d2eb8d912ccdce26
2020-03-15 15:21:39 +00:00
Timo Tijhof 2034c95f17 build: Remove redundant arrays around "Hooks" in extension.json
Change-Id: I4111beae5504565af7c12278ce6696ab3ab3d960
2020-03-12 18:04:02 +00:00
Translation updater bot 31e213d549 Localisation updates from https://translatewiki.net.
Change-Id: I283a4afc298b348374f65ac95eed8f5623368639
2020-03-09 08:57:58 +01:00
libraryupgrader 4b925df85a build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I0ab727dff067a98093045fc6f7567194085f7998
2020-03-08 13:57:10 +00:00
Translation updater bot 64d7b9cdfa Localisation updates from https://translatewiki.net.
Change-Id: I762ef0d9524bc084eaac46a22057ed6eb50d9973
2020-03-06 08:18:43 +01:00
Translation updater bot 8187b08413 Localisation updates from https://translatewiki.net.
Change-Id: Id6cc68ebd4533b5154119310736acaa710eea44f
2020-03-05 08:39:54 +01:00
Translation updater bot b37632f7c8 Localisation updates from https://translatewiki.net.
Change-Id: I7780486088577e8497fcf2cf7ec3feb829047b32
2020-02-21 09:39:29 +01:00
libraryupgrader 0d706ec81d build: Updating npm dependencies
* grunt-stylelint: 0.13.0 → 0.14.0
* stylelint-config-wikimedia: 0.8.0 → 0.9.0

Change-Id: I48ef23697f84411c541c35688bcf69a192928f95
2020-02-21 03:11:50 +00:00
jenkins-bot c896e54977 Merge "build: Updating composer dependencies" 2020-02-11 18:14:58 +00:00
Translation updater bot b0f2fab539 Localisation updates from https://translatewiki.net.
Change-Id: I25367cc3af80be4f3a1a5a469a3b8c15786a9d07
2020-02-11 08:19:46 +01:00
Translation updater bot fe1a9971e7 Localisation updates from https://translatewiki.net.
Change-Id: Ia00c2d9a74725858ef3ccf993bfe6ba745a61079
2020-02-10 08:35:50 +01:00
Translation updater bot 3b768766a7 Localisation updates from https://translatewiki.net.
Change-Id: I8a8e552fd3781d9b052ae73fcddac721c0cee0a0
2020-02-07 09:58:01 +01:00
Translation updater bot 0c835cfc5c Localisation updates from https://translatewiki.net.
Change-Id: Ifc1512384cb839ae2c71baa426d6e043b7e227d3
2020-02-05 08:19:42 +01:00
Translation updater bot 0e857bccb6 Localisation updates from https://translatewiki.net.
Change-Id: I93d34b6969d7d0bdb4952fe3a802317606be016e
2020-02-03 08:28:22 +01:00
libraryupgrader e3fb9734b1 build: Updating composer dependencies
* jakub-onderka/php-console-highlighter: 0.3.2 → 0.4.0
* mediawiki/minus-x: 0.3.2 → 1.0.0
* mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.1

Change-Id: Ifdb5afed1ec5114d9e25ebbd81259d77cdc33e13
2020-01-30 12:25:48 +00:00
Timo Tijhof 6f362c6d8a Minor clean up in new ParsoidFetchTemplateData hook
Follows-up 956367fb90.

* Fix typo.
* Remove <del>footgun</del><ins>dangerous return value</ins>
  from this unabortable hook.
* Document the weird PageProps workaround.
  This should be fixed in core.

Change-Id: I6b22e9c2112039e5703e6a62252f1909b15c8887
2020-01-28 19:14:12 +00:00
Translation updater bot d56c5f41c5 Localisation updates from https://translatewiki.net.
Change-Id: I8b2bea132f69e31955e3d5cffb6bf7fe7ee49758
2020-01-28 08:26:33 +01:00
Translation updater bot fd7fd9495b Localisation updates from https://translatewiki.net.
Change-Id: Iaa56c127cfb984752bb0966f5bb3f283a0ed140c
2020-01-23 08:35:38 +01:00
Translation updater bot 390e867562 Localisation updates from https://translatewiki.net.
Change-Id: Ia16020bd63be7c383d96dd6a80a316976e3cc504
2020-01-20 08:50:42 +01:00
Translation updater bot 9333a7bca0 Localisation updates from https://translatewiki.net.
Change-Id: I8512b4a9f4aa5edecf884e3f57f44c03723446dc
2020-01-16 09:29:58 +01:00
libraryupgrader 9a41a95389 build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: I8846de470461b4887dbc1e33653c8cdec8839366
2020-01-14 12:46:52 +00:00
Translation updater bot efd1eba87b Localisation updates from https://translatewiki.net.
Change-Id: Ic50c409174429d5120618eb62ebdc99ed6c2e06f
2020-01-13 09:12:03 +01:00
Translation updater bot 90ee90c3f0 Localisation updates from https://translatewiki.net.
Change-Id: I28710c9496f84549b872c26a01143ac684361364
2020-01-06 08:50:46 +01:00
Bartosz Dziewoński 2a137a2377 Ensure cancel confirmation dialog is visible on top of main dialog
Bug: T241819
Change-Id: I7764ad13acd52779e4f4ae853c05c795a80dc870
2020-01-03 12:57:30 +01:00
Translation updater bot e6d183456e Localisation updates from https://translatewiki.net.
Change-Id: Iee5bb0dcb245e31bb2afcafe29951c66df8af7ca
2020-01-02 08:59:55 +01:00
Translation updater bot 8b1df4c598 Localisation updates from https://translatewiki.net.
Change-Id: I989bc39bd8979c5634ac838a630e68d44e26c39b
2019-12-29 20:42:06 +01:00
jenkins-bot f60b457884 Merge "build: Updating mediawiki/mediawiki-phan-config to 0.9.0" 2019-12-29 13:59:32 +00:00
libraryupgrader 1c8f1b14e8 build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I96c348782dc892efb80e2fffa898f595fa76c43a
2019-12-28 17:21:07 +00:00
Translation updater bot 08c388a3a9 Localisation updates from https://translatewiki.net.
Change-Id: I8a7411a8c6acd30f58c66f61d36fee21b111674f
2019-12-26 16:21:54 +01:00
Translation updater bot 6afbde1736 Localisation updates from https://translatewiki.net.
Change-Id: I55d9ca8056f7935d0390790b3c7584cf7cd132a9
2019-12-22 17:41:44 +01:00
libraryupgrader 5be054470a build: Updating mediawiki/minus-x to 0.3.2
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Ice82cae5492a8a1d0c1d32e31fd36a1126c3f726
2019-12-20 04:56:01 +00:00
jenkins-bot 3da1262c95 Merge "build: Update linters" 2019-12-18 12:04:09 +00:00
Ed Sanders 2db15c75a1 build: Update linters
Change-Id: Ie5cd0d355017eb802d0b302a69248886409fcbf9
2019-12-18 11:43:42 +00:00
Translation updater bot 7b1d0605de Localisation updates from https://translatewiki.net.
Change-Id: I5ccb211abfdd02bf703a9c00c86a659256cb62b5
2019-12-16 12:15:28 +01:00
Translation updater bot b219a159b1 Localisation updates from https://translatewiki.net.
Change-Id: I0207810ba9b2635d8bdef492742529305b3619a0
2019-12-06 09:34:43 +01:00
jenkins-bot ce1cf9a962 Merge "templateDataGenerator: Fix off-by-one error when inserting new tag" 2019-12-02 16:39:30 +00:00
Translation updater bot bedb2bd182 Localisation updates from https://translatewiki.net.
Change-Id: Ie6c6c663e6983079a856f7b26677bf795265a966
2019-12-02 09:23:53 +01:00
Bartosz Dziewoński 2b8e39a278 templateDataGenerator: Fix off-by-one error when inserting new tag
There should not be a `- 1` here. It was kept in the refactoring in
34924e0a0b, but it should have been removed.

Also simplify the entire expression to just `matches.index`, which is
equivalent and easier to understand. We already use `matches.index` above.

Bug: T239445
Change-Id: I9cbeaabd50fb595c0ff622b86ce3870285e5b7c8
2019-11-28 21:39:32 +01:00
Subramanya Sastry 956367fb90 Implement ParsoidFetchTemplateData hook for Parsoid/PHP
* This hook supports functionality that Parsoid/JS used the MW API for.

  Parsoid's html2wt code requests templatedata for titles one
  at a time currently and so this hook also supports lookups one
  title at a time.

  This initial implementation is good enough for initial Parsoid/PHP
  deployment.

* As part of later performance optimization, we should figure out if
  we want to fetch templatedata for all templates in batch mode and
  work out the details (selser doesn't touch all templates, for one).

  The hook does accept an array of titles, but it looks them up
  serially in a simple for-loop.

  Separately, we need to resolve if this is better architected as
  a lookup service vs. a hook as it is now (see discussion on gerrit).

* Tested locally on my local wiki.

Bug: T238954
Change-Id: I01fb6a9f334ca37a703be497524180f87fb8bbf7
2019-11-25 11:09:13 -06:00
Translation updater bot 06adf70c0c Localisation updates from https://translatewiki.net.
Change-Id: I92b4c328900793dddddd0ead0a4033276f304ca3
2019-11-20 09:38:38 +01:00
Translation updater bot 722df8939b Localisation updates from https://translatewiki.net.
Change-Id: Ied2ceb305d1ef59a7c0411485f0fcdd553f35e19
2019-11-11 15:33:31 +01:00
Translation updater bot 795e195944 Localisation updates from https://translatewiki.net.
Change-Id: Ida5d1dbc64c57ec73090c41860b26f727ee34275
2019-11-08 09:48:39 +01:00
Umherirrender 5b461fe29c build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: Ifb8164db659742c4747343b047c28eed8b230532
2019-11-05 16:58:58 +01:00