Commit graph

150 commits

Author SHA1 Message Date
Translation updater bot 58654cf11a Localisation updates from https://translatewiki.net.
Change-Id: I9ce74f458c6b279d7a3d1022f6f687a194488534
2019-09-10 09:36:42 +02:00
Translation updater bot 71bcc9c340 Localisation updates from https://translatewiki.net.
Change-Id: Ie47d173788133f9cdcf034dc3ed6a6c5a52bc6db
2019-08-12 09:06:17 +02:00
libraryupgrader c8fc6e7268 build: Updating npm dependencies
* set-value: 2.0.0 → 2.0.1
  * https://npmjs.com/advisories/1012
  * CVE-2019-10747
* union-value: 1.0.0 → 1.0.1
  * https://npmjs.com/advisories/1012
  * CVE-2019-10747
* mixin-deep: 1.3.1 → 1.3.2
  * https://npmjs.com/advisories/1013
  * CVE-2019-10746
* lodash: 4.17.11 → 4.17.15
  * https://npmjs.com/advisories/1065
  * CVE-2019-10744

Additional changes:
* Enable eslint caching.
* Enable eslint's reportUnusedDisableDirectives.

Change-Id: I482262ac0eee54fefab8d5f9523a711d9c5e154d
2019-08-01 23:21:14 +00:00
Translation updater bot d2889e7cfb Localisation updates from https://translatewiki.net.
Change-Id: Ib1a1658a16479dc27007c684aa305e2c4f477a19
2019-07-29 09:14:16 +02:00
Translation updater bot 38fb5dc477 Localisation updates from https://translatewiki.net.
Change-Id: I7438b09bd59c946ad77bb1adf98bc86849046017
2019-07-22 22:40:41 +02:00
libraryupgrader 257b7eb190 build: Updating mediawiki/mediawiki-codesniffer to 26.0.0
Change-Id: I14e560c8721383d2425ecea3c3266c0e06f2e8fc
2019-07-14 10:26:40 +00:00
libraryupgrader 1287a6eaad build: Updating npm dependencies for security issues
* Updated grunt to 1.0.4, addressing:
  * https://npmjs.com/advisories/788
  * https://npmjs.com/advisories/813

Committed package-lock.json (T179229) too.

Change-Id: Ia6c32e7cfeaf69f0cdbc1cc47e53eee487df5818
2019-06-08 03:40:48 +00:00
Ananth subray fd7394435f Empty PHP entry points where JSON entry points exist
Bug: T140007
Change-Id: I16e5cf01cd33322a73bdc9ad5fc3802799d720bf
2019-06-02 17:38:50 +00:00
Translation updater bot 10af3fedcb Localisation updates from https://translatewiki.net.
Change-Id: I2c3944417ef3f8716fd488394e1ce17ba9cca9df
2019-05-12 22:33:19 +02:00
Translation updater bot ff4312e634 Localisation updates from https://translatewiki.net.
Change-Id: I0dd47abdaed73aca2715684d3912cceb1cce5e51
2019-04-29 22:15:40 +02:00
libraryupgrader 38081062f3 build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: Iaba2b62e6552e11e4e7b5c19fc6d8f04b1c62d1a
2019-02-06 12:32:46 +00:00
Kunal Mehta 4c52bdcfdf 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: I154827ec97a7d379a42e3fbb04d562b1a844975c
2018-12-17 18:54:41 -08:00
Translation updater bot a9330a9591 Localisation updates from https://translatewiki.net.
Change-Id: I129a1d160c1414c9d5bd0753dd577c2b3f471a41
2018-12-14 22:21:44 +01:00
Umherirrender 05b2a68a46 Use json extension for .stylelintrc
Bug: T173516
Change-Id: Ia77dcac0fe03b7db3771d09a01084044a52e7a68
2018-12-07 20:58:20 +01:00
takidelfin e0d100ca60 Replaced CSSLint with StyleLint
Removed old csslint package and added grunt-stylelint and stylelint
config for Wikimedia. Fixed the violations caused by this change.

Bug: T206506
Change-Id: Ieb1f087de859f5321c4f1fe65c0e3bf7b655ca15
2018-11-25 23:53:51 +00:00
libraryupgrader 25d5cccbd3 build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: I0d5b51ea16149801ff4551253e777bf1a7a9e648
2018-11-14 10:52:56 +00:00
Translation updater bot 69c810119c Localisation updates from https://translatewiki.net.
Change-Id: Id5b6f7b6633dcff20b10bc5c27efac5d854fcedd
2018-11-07 22:22:03 +01:00
Translation updater bot 214f5cbb8f Localisation updates from https://translatewiki.net.
Change-Id: Ib5957cff5604246cd1cd9772b5b0c2d3bf494b96
2018-10-14 22:25:17 +02:00
libraryupgrader 376f6670f7 build: Updating npm dependencies for security issues
* Updated grunt to 1.0.3, addressing:
  * https://npmjs.com/advisories/577
  * CVE-2018-3721

Change-Id: I0411c6cd8da7b7c45cc980b0d19822da407fef0e
2018-10-13 18:06:45 +00:00
Translation updater bot 0bdac7f33c Localisation updates from https://translatewiki.net.
Change-Id: I63e7db9829d25b61e862c88a6aff1b3f68f6b523
2018-09-22 10:03:23 +02:00
libraryupgrader 4e32240a94 build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
And updating CoC link to use Special:MyLanguage (T202047).

Change-Id: Id26150dd4807a752acb6e60a3281812cdfe59636
2018-09-03 00:33:49 +00:00
jenkins-bot 7ad7213628 Merge "Use mw.config instead of window.mw.config in JavaScript" 2018-08-27 20:43:42 +00:00
Translation updater bot 2242d32da7 Localisation updates from https://translatewiki.net.
Change-Id: Ibadf9b64e349b72a9187d457a52d1b25cdadc180
2018-08-27 22:16:34 +02:00
Fomafix 1982eb268b Use mw.config instead of window.mw.config in JavaScript
Change-Id: I4ecc5d842cccc3905ee4794106bc63de707c9fbb
2018-08-27 21:10:03 +02:00
jenkins-bot 9e236f52e8 Merge "Start showing warning for deprecated PHP entry point" 2018-08-27 18:18:30 +00:00
Kunal Mehta fc561f35cc Don't double escape $moreLink
Html::element() automatically escapes all attribute values.

Spotted by the phan-taint-check-plugin.

Change-Id: Iad90d48ccba5b7008f5869c7c9f2b280400df749
2018-08-25 00:59:19 -07:00
Fomafix bd03779c92 Start showing warning for deprecated PHP entry point
Change-Id: Idb9ab6f88dfa2daa9020a4ebfc2bf061ce600ec7
2018-08-24 18:06:38 +00:00
Zoranzoki21 cfa56cdcb3 Fix 'Retrun' typo
Bug: T201491
Change-Id: I54ae64595d6ef393c60f112695d6d866b653c780
2018-08-14 09:40:40 +00:00
Fomafix 42fca811c6 Use \u{00A0} instead of   or  
Directly use the UTF-8 encoding of the 'NO-BREAK SPACE' (U+00A0) instead of
the HTML/XML entitiy  .

Also use \u{1F36A} instead of 🍪 for Unicode Character 'COOKIE'
(U+1F36A).

Bug: T154300
Change-Id: I13536589a4c183215785fe3352f4fc081571451b
2018-08-10 20:58:11 +02:00
Fomafix fe6ac7c3af Increase required MediaWiki version to 1.32+
The change 4649d2110f requires 1.32+
because it depends on I0afdc8ab50bc1354bb5099bf39923c07eab0b665 from
core included in 1.32.

Change-Id: Ia2582b6598024dd229df615df50b7d1a9eb9116b
2018-08-10 20:20:22 +02:00
jenkins-bot ecc32058f3 Merge "Link to the extension doku page on Special:Version" 2018-08-07 16:43:58 +00:00
Florian Schmidt 1a2dd83c15 Use wgUseMediaWikiUIEverywhere true in tests
This seems to be the default for Jenkins CI.

Bug: T201359
Change-Id: Ie436c601a95957b3c3fc2bfcce6d12bdef69e76a
2018-08-06 22:22:32 +02:00
Florian Schmidt e3479eafd8 Link to the extension doku page on Special:Version
Bug: T201076
Change-Id: I7c62708b010dd468410aa2970b9ccc0b288c042e
2018-08-02 20:56:24 +02:00
Translation updater bot beac8ee4bb Localisation updates from https://translatewiki.net.
Change-Id: Ib0a8c05ec0d2e474fb7767479aae013a581deaa1
2018-07-31 22:32:59 +02:00
libraryupgrader 0388e02627 build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
Change-Id: If74f0e6aaba7f71c30ad8c68be03850d6a2f9180
2018-07-27 05:03:39 +00:00
Florian Schmidt 7afcc5bfd7 Show cookiewarning banner if IP could not be located
If any error occured during locating the IP address, the extension should
assume, that the user is in a configured region and show the cookie warning,
if not already dismissed.

Bug: T200077
Change-Id: Ib7f0dd0a135071924281a576ab24887d5e226435
2018-07-20 14:22:47 +02:00
Florian Schmidt 90d2e58096 Move classes into CookieWarning namespace
This should make the code a bit more structured and easier to navigate
through. It also removes some lines from extension.json as the autoload
classes list is replaced by an autoload namespaces property.

This also changes the minimum requirement of MediaWiki to 1.31 for this
extension to work.

Change-Id: I249ccc3035297c99202a5f83fcc8d3fda68b682c
2018-07-19 12:57:52 +02:00
jenkins-bot c0a1ba6bfb Merge "Don't use deprecated mediawiki.api.options" 2018-07-18 15:13:20 +00:00
James D. Forrester 4649d2110f Don't use deprecated mediawiki.api.options
It was merged into `mediawiki.api`.

Bug: T196802
Change-Id: I517ddf5ce8d57dfb56569c6d295755abf2138f35
2018-07-18 14:05:09 +00:00
Florian Schmidt 6f519c9618 Add caching functionality for IP lookup
Instead of always looking up a single IP address, even for multiple
requests, cache the result of the first lookup. IP addresses usually
doesn't move that fast, caching the result should therefore be
reasonably ok.

Change-Id: Ice78ec08ff886e77c542a75086610498eaa6c6b4
2018-07-18 16:03:29 +02:00
Florian Schmidt fed15fd7a5 Refactor Hooks code and move it to separate services
This cleans up the hook file a lot and movesthe logic to seperate services
provided by MediaWikiServices. This also removes some setters and passed-
around variables and stuff. Also fixes the unit tests by not querying
external services anymore.

Change-Id: I0c3c0b7f2f5bd68aaad624e8e2dcad9bdcf97770
2018-07-18 12:59:17 +02:00
Translation updater bot e15826e547 Localisation updates from https://translatewiki.net.
Change-Id: Ibe0847532e2810c526f4ca32eff640f097879926
2018-06-27 22:18:40 +02:00
Translation updater bot 54b9ddf19c Localisation updates from https://translatewiki.net.
Change-Id: Ie7750595dcc103590c0c2e6ca1a4c3c7f717ace7
2018-05-30 22:24:33 +02:00
libraryupgrader b48762eb71 build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: I17c64469f77cceff89fb72fe438c65357bb5b4fe
2018-05-26 01:47:22 +00:00
jdlrobson 60929abb69 Drop Minerva LESS dependency
* Instead of repeating CSS already in Minerva instead use an element
"banner-container" already in use by CentralNotice (given this is also a banner)
This removes the need for positioning styles at Minerva is delegated to handle that.
* Rewrite existing rules using mediawiki ui variables to make clearer line-height
relates to iconography

Bug: T140807
Change-Id: I1bd3fb164bbb7866e5d32367c66afae5c1933bcb
2018-05-19 11:51:16 +02:00
Translation updater bot 6e628532e4 Localisation updates from https://translatewiki.net.
Change-Id: I66a014a4a0505136e88b24f180bfd434739d3ad6
2018-05-18 22:48:19 +02:00
jenkins-bot 9156444279 Merge "Check also the dismissed cookie on client-side" 2018-05-12 12:39:41 +00:00
Translation updater bot 78b2639c6b Localisation updates from https://translatewiki.net.
Change-Id: Ic35f09809e34fd2a755ce588b5d3158712a3fcda
2018-05-05 22:14:37 +02:00
Translation updater bot ea2b6358af Localisation updates from https://translatewiki.net.
Change-Id: I4cc2637697ed6c363dd76f7e58de026e63ba8c1e
2018-04-30 22:22:04 +02:00
libraryupgrader 0183e6d9d9 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: Ie52704548a7bd2843e7623aad7f64c5d4f3facb0
2018-04-14 00:05:38 +00:00