Commit graph

1634 commits

Author SHA1 Message Date
C. Scott Ananian e3c95c281f Improve directionality settings for TemplateDataBlob rendering
The <templatedata> extension tag wants to render itself into HTML
before an OutputPage has been set up.  Unfortunately, this meant that
we needed to hack in a call to OutputPage::setupOOUI() with default
theme and directionality, regardless of whether those were correct.

Slightly improve matters by using the directionality of the user
language object, but this codepath really needs to be rethought.

Follow up to Ie3f37b8b972dc6e89e3cd334672954d3632c1b20; see also
the discussion in T101666.

Change-Id: I6ae99ea6bd8b6ee21b8ed8b06dc4e9e324050ab7
2020-04-09 11:45:24 -07:00
Translation updater bot bb7339733f Localisation updates from https://translatewiki.net.
Change-Id: Iaff788506e8ef53e3405b43b748636b799aea2c0
2020-04-09 08:40:01 +02:00
C. Scott Ananian 4dcda73ef7 Remove deprecated Parser::enableOOUI(), take 2
This adds a missing call to OutputPage::setupOOUI(), to fix a code path
where `<templatedata>` is expanded via API call (eg, during Parsoid
rendering) and an OOUI theme has not been set up.  This hacky workaround
is pretty bogus, since the output will not have the proper user skin
or directionality, but it avoids a crash (and duplicates the previous
behavior, without using the deprecated method).

Change-Id: Ie3f37b8b972dc6e89e3cd334672954d3632c1b20
2020-04-08 16:10:33 -04:00
C. Scott Ananian 3f270b9ad7 Don't use deprecated Parser::enableOOUI() hook
Follow up to I71be19c1d735fef5b781c68ef7ba47cafc37595d.

Bug: T236809
Change-Id: Ib75f530506bfc9692137b0538f66eb5b511637f0
2020-04-08 13:47:08 -04:00
Translation updater bot 5dff3b5ba8 Localisation updates from https://translatewiki.net.
Change-Id: I747cb4a1397178495eb0c465b1331bdfc9eb5d8c
2020-04-08 09:05:16 +02:00
Translation updater bot 9cb59e33f8 Localisation updates from https://translatewiki.net.
Change-Id: Ia855e39b795440bf6e22a75fb78a518f674639ad
2020-04-07 08:50:47 +02:00
Translation updater bot 362edd338a Localisation updates from https://translatewiki.net.
Change-Id: I326d69985190c88e3ad6c4ec4b7eb6fcbc50ec5c
2020-04-06 09:02:52 +02:00
libraryupgrader ad3f44a9e0 build: Updating postcss-sass to 0.4.4
* https://npmjs.com/advisories/1179

Change-Id: If5c2fbbe1b1feb0699e3b8d7ed9ebd5ffea7ee8a
2020-04-05 10:11:09 +00:00
jenkins-bot 218621483b Merge "Disable TemplateData dialog 'apply' action until changes are made" 2020-03-31 13:43:08 +00:00
Translation updater bot 74b3d2c4b8 Localisation updates from https://translatewiki.net.
Change-Id: I000a4e1edb4ecc7f5873409e0c1811c0a7020f57
2020-03-31 08:29:22 +02:00
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