Commit graph

187 commits

Author SHA1 Message Date
James D. Forrester 73d502fa68 build: Update eslint-config-wikimedia from 0.8.1 to 0.11.0
Change-Id: Iaf6ec8659228b430aafcc0953f035d29b64f1eaf
2019-04-12 21:58:46 +00:00
James D. Forrester 169e618357 tests: Remove newlines from tests to make pass(?!)
Change-Id: Ib7f4252e4b399edcd5845aa31c60df494a8d8c3e
2019-04-12 14:58:20 -07:00
Translation updater bot c76fd84441 Localisation updates from https://translatewiki.net.
Change-Id: I3ccab496e921a172bc4bd301634bf45b52cc2abd
2019-03-23 10:23:46 +01:00
Translation updater bot 614a07e2e4 Localisation updates from https://translatewiki.net.
Change-Id: Ic301179080b25bb275242fa99b757b19b5cc90ec
2019-03-12 22:29:32 +01:00
Umherirrender a2187ec403 Use php null coalesce operator ??
Change-Id: I6d3b2a1bf1510d37bdd36c1b59be3fe54fd8e43a
2019-03-11 22:04:27 +01:00
Translation updater bot 836765e115 Localisation updates from https://translatewiki.net.
Change-Id: I951d9a27a083e5398e1e9749683fb62aa88b5ce8
2019-03-05 22:42:59 +01:00
Translation updater bot b82837c08d Localisation updates from https://translatewiki.net.
Change-Id: I57d31ecf451496f6559a7379e012ec383dddda9d
2019-03-04 22:16:21 +01:00
Reedy 5108673852 Remove cssjanus dependancy
MW core has required it for quite a few versions, an extension doesn't
need to have its own requirement

Change-Id: Ibe2672de40306d20a4d08bb53b90ce42843e3e09
2019-02-11 04:11:29 +00:00
Translation updater bot 9e9bacac0f Localisation updates from https://translatewiki.net.
Change-Id: I43a024fd2d365822f695440c4a40c54474eeeb49
2019-02-10 22:19:00 +01:00
libraryupgrader 738785c148 build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: I30549f3fe0352ff411a6ce0207198f295d29f975
2019-02-07 05:14:31 +00:00
Translation updater bot 02160df4e4 Localisation updates from https://translatewiki.net.
Change-Id: I5c2d6fcdee67ec1b4ba0efd3df3ecc0be1b47ddf
2019-01-28 22:27:20 +01:00
Translation updater bot 2d7fed5d01 Localisation updates from https://translatewiki.net.
Change-Id: I1128357e589e0237b5ee4c740948253802c39688
2019-01-17 09:12:59 +01:00
jenkins-bot 99705da7b4 Merge "Allow extensions to register additional namespaces in extension.json" 2019-01-14 22:12:28 +00:00
Translation updater bot b283c420a1 Localisation updates from https://translatewiki.net.
Change-Id: Ie0d76b355cab57c02f664d53103c27e78468a542
2019-01-13 22:13:47 +01:00
MGChecker f121c39613 Allow extensions to register additional namespaces in extension.json
Extensions can register additional namespaces by setting the
"TemplateStylesNamespaces" attribte in their extension.json. This change is
analogous to Ia5d34cb78fa6af.

There isn't really a simpler way to do this here, as the config setting uses
namespaces as keys, while the attribute is using them as values. Furthermore,
keys with falsey values are ignored in the config setting, and attributes can't
use the same setting architecture, as array_merge_recursive doesn't maintain
numeric keys.

Bug: T200914
Depends-On: I9e62a02ed2044c847e9ab2dcdfab094001f88986
Change-Id: I2fa9b822ee39bcc5f95a293c8c4aad4d53ede30a
2019-01-12 11:40:58 -08:00
Translation updater bot c3b4da5cd1 Localisation updates from https://translatewiki.net.
Change-Id: If0eb09909666c2f8f4d0c36757f33037f024918b
2019-01-09 22:18:58 +01:00
Translation updater bot 04fbe5e60c Localisation updates from https://translatewiki.net.
Change-Id: I99397389dfa8b1fccca6a34390d529b0b403d46b
2019-01-08 22:30:12 +01:00
jenkins-bot cc9b178414 Merge "Add "wrapper" attribute to <templatestyles/>" 2019-01-06 22:31:14 +00:00
Translation updater bot 64078391b9 Localisation updates from https://translatewiki.net.
Change-Id: Iee85f645626b6a5e148bfc5c1c8df21161af71c4
2018-12-18 22:48:33 +01:00
Translation updater bot b564ed4ab2 Localisation updates from https://translatewiki.net.
Change-Id: I074cb49e50670eae8741c59b3f3e86713ab2dd5c
2018-12-03 22:35:33 +01:00
libraryupgrader c15c693fe0 build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: Idbebb7c7acdbd8abeed7b19f3c99a028c9bff3ab
2018-11-16 14:38:33 +00:00
jenkins-bot 96c16731a6 Merge "build: Update devDependencies" 2018-11-05 19:10:32 +00:00
Translation updater bot d0e3624422 Localisation updates from https://translatewiki.net.
Change-Id: I336e7e58f2efd573a11944f9dc5d38cd49bdd07a
2018-11-04 22:42:43 +01:00
Ed Sanders e2be4d8771 build: Update devDependencies
eslint-config-wikimedia   0.5.0  →   0.8.1
 grunt-eslint             20.0.0  →  21.0.0

Change-Id: If0c71e22aaeb9db6c1fc4cbfb19934ab829febee
2018-11-03 12:37:28 +00:00
Brad Jorsch f7bf5a4e23 Add "wrapper" attribute to <templatestyles/>
The wrapper attribute may contain an extra CSS simple selector to
include when prefixing. For example, including a template as
<templatestyles src="..." wrapper="div.my-template"/> would transform

 .foo .bar { color:red; }

into

 .mw-parser-output div.my-template .foo .bar{color:red}

This can allow particular templates to opt in to the "styles are scoped
to the template itself" model that was desired by some when
TemplateStyles was being designed; the driving use case in the linked
task is doing so for the benefit of side-by-side comparisons of the
current and sandboxed versions of a template.

Bug: T200441
Change-Id: If49d4c5be31feca95abd21452238fd10ab1916b1
2018-10-17 14:17:59 -04:00
jenkins-bot c3410aeaf8 Merge "Upgrade extension.json to version 2 and add merge strategy for $wgTemplateStylesNamespaces" 2018-10-16 16:10:28 +00:00
Brad Jorsch 7e1afddc3d Upgrade extension.json to version 2 and add merge strategy for $wgTemplateStylesNamespaces
Bug: T207186
Change-Id: Iea8dda238e74a0a2a2649c5e341bc0b97a4ff107
2018-10-16 11:25:52 -04:00
jenkins-bot 38a989e3dc Merge "build: Updating npm dependencies for security issues" 2018-10-12 03:49:08 +00:00
Translation updater bot 3283f8d26e Localisation updates from https://translatewiki.net.
Change-Id: Ic95b4fa042c896fa5cb77001752af811948ac742
2018-10-11 22:37:30 +02:00
libraryupgrader 0d2290c08e build: Updating npm dependencies for security issues
* Updated grunt to 1.0.3, addressing:
  * https://npmjs.com/advisories/577
  * CVE-2018-3721

Change-Id: If63afb1c665d0e1876fdd18af0c42598d3092bbd
2018-10-11 11:16:08 +00:00
Kunal Mehta da954dd045 Don't use stashMwGlobals()
Being deprecated in I23d77398e4.

Change-Id: I9315111c86599472887c616658ac25ba7979d340
2018-10-07 22:02:48 -07:00
Translation updater bot e8676a2bdd Localisation updates from https://translatewiki.net.
Change-Id: I08dd176576ee0bfb2b75c4c2a7a4472866e593df
2018-10-03 18:53:52 +02:00
Translation updater bot d403871c10 Localisation updates from https://translatewiki.net.
Change-Id: Ica3de34f53b45e5bb4bb8694f7adce1766051bfa
2018-09-26 13:46:19 +02:00
Translation updater bot 517bf8d5b9 Localisation updates from https://translatewiki.net.
Change-Id: Iad220b26f86ec4017c644c8f52af7ccb794b8aba
2018-09-08 10:40:06 +02:00
libraryupgrader c7e759afc1 build: Updating mediawiki/phan-taint-check-plugin to 1.5.0
Change-Id: Iefd16b6f04eafda6a1a15e6dafea59b3af8fa85f
2018-09-08 06:09:47 +00:00
Translation updater bot 1db9f9a2e3 Localisation updates from https://translatewiki.net.
Change-Id: I564a2a65e69649078bad6f3710ccf580bb07f966
2018-09-03 22:15:37 +02:00
libraryupgrader 8fc7762e14 build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Change-Id: Ib65124f53a023499f349a9ccbc764cbb26965fca
2018-09-03 19:54:14 +00:00
libraryupgrader e79c22bec5 build: Updating mediawiki/phan-taint-check-plugin to 1.4.0
And updating CoC link to use Special:MyLanguage (T202047).

Change-Id: I3ea35a3373332c56fb7c7eb7b6d8b93054445867
2018-09-01 14:41:18 +00:00
jenkins-bot cbad0f06ba Merge "Hoist selectors for html and body element" 2018-08-27 13:04:53 +00:00
Translation updater bot 2f68d9337d Localisation updates from https://translatewiki.net.
Change-Id: I26589d3fb4f725aaae4156720a8a57ef85e7374d
2018-08-26 22:32:55 +02:00
Gergő Tisza 17756c44b2
Hoist selectors for html and body element
Bug: T197617
Depends-On: Iac00198495cf08dec034f45100937df0f6cb1590
Change-Id: I5dd85d12eb77c70c1632974561c4cad8636fad1d
2018-08-24 22:16:17 +02:00
Translation updater bot 45f43303cf Localisation updates from https://translatewiki.net.
Change-Id: I7a1cf25c1c937ee53a84726516da998e802f2b4e
2018-08-21 23:38:54 +02:00
jenkins-bot 19933c59e3 Merge "Add phan-taint-check-plugin" 2018-08-20 02:58:17 +00:00
Umherirrender d9b730de44 Add phan-taint-check-plugin
Change-Id: Id410e41889bc6e4920c15c56d507c2f59601ec88
2018-08-19 19:14:00 -07:00
Translation updater bot 53e1a6b361 Localisation updates from https://translatewiki.net.
Change-Id: I0d6f42b3e038f69b4aca28e1b67d1a3b4a8253fa
2018-08-16 22:28:54 +02:00
Translation updater bot 5745d8c85d Localisation updates from https://translatewiki.net.
Change-Id: I8f51f677bf8c4b9acdc5a1bd979a5dc40405ccb2
2018-08-15 22:18:50 +02:00
jenkins-bot 56de6c706c Merge "Avoid variable reuse under same name" 2018-08-12 22:21:18 +00:00
Translation updater bot f261a6b22e Localisation updates from https://translatewiki.net.
Change-Id: Ia8701d41a75b8f237e6568647560415efe5769a4
2018-08-12 22:17:59 +02:00
Translation updater bot 576f794b41 Localisation updates from https://translatewiki.net.
Change-Id: I38812ae94861c39799999efe16fd0f470a89e63a
2018-08-11 22:18:29 +02:00
Umherirrender c2083e7455 Avoid variable reuse under same name
It makes the code easier to read when using different variable names

Change-Id: Ia65e8b7ebdc0692e8dac29c605c13092cef9b0ad
2018-08-11 00:16:25 +02:00