Commit graph

201 commits

Author SHA1 Message Date
Ostrzyciel edd0a7d949 Move the warning outside sitenotice, tidy up code
There's a lot of things going on here, so a quick summary:
* Moved the warning outside sitenotice to avoid reflows and all
  kinds of other issues, including those with dismissable notices.
* Placed the warning on the bottom of the page, on all skins, for
  consistency and to avoid obstructing vital UI elements such as
  site name, user tools, search box.
* Changed the UI to use OOUI for, again, consistency and to avoid
  reinventing the wheel with button styling.
* Removed the cookie emoji as it was only taking up valuable space
  on mobile and making designing a sensible layout much harder.
* Merged the mobile and desktop RL modules into a single, responsive
  one. The warning will work correctly for any skin and screen width.
* The integration tests are truly horrible, I tried to at least
  make them work. They deserve a proper rewrite, but that should be
  done after the extension switches to the new hook system.

I will post screenshots of this in action in the first of the linked
tasks.

Bug: T271047
Bug: T173335
Change-Id: I6e2a3d7aeccc0d4df1b3238e52c67e72099d27d8
2021-02-01 11:23:53 +01:00
libraryupgrader 1f5075224e build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1

Change-Id: I14d178b2b709c52e9ddd2ec0a3faa04d0cd77bd8
2021-01-29 08:09:27 +00:00
Translation updater bot 7027bd19ca Localisation updates from https://translatewiki.net.
Change-Id: I4535dbd01f4a6fc60b2698248ddc3b7a1c3d4a6d
2021-01-28 08:35:37 +01:00
Florian Schmidt 7ad4b888d0 Remove freegeoip.net as default geo ip service
The service was shutdown in 2018 and is not reachable anymore. Having a
default value in the extension to a service that doesn't exist anymore
seems awkward.

Bug: T201752
Change-Id: I998926f17a462909773f7121771deaa4b4b1c2c7
2021-01-05 19:56:21 +01:00
Translation updater bot f8960e0b82 Localisation updates from https://translatewiki.net.
Change-Id: I6891edb893ef61d27a78621ffb77e9aa79376650
2020-12-14 08:41:21 +01:00
libraryupgrader bec5e5218d build: Updating ini to 1.3.8
* https://npmjs.com/advisories/1589

Change-Id: I1b34a0dfeb24d2a8b32cdd0511c15f5755c58c4f
2020-12-13 00:50:58 +00:00
Translation updater bot 1aaaf9cccb Localisation updates from https://translatewiki.net.
Change-Id: I745e8b77de5487978e2dd9664711eb9f82fa9a7d
2020-12-08 08:20:58 +01:00
Translation updater bot 3584d892af Localisation updates from https://translatewiki.net.
Change-Id: I6ad90167830d954dd8f7a7fd14ce2540400f6b60
2020-12-07 08:44:08 +01:00
libraryupgrader dc0dbd823c build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
Change-Id: I03e6f9bb4684afc5f42be4c25f2a9a29e979ea33
2020-12-06 05:07:48 +00:00
Paladox 0dc0e795a1 Replace deprecated hook
Bug: T254302
Change-Id: I140af90b5f175974eb20873f2c1c6449be5a6669
2020-11-22 15:48:59 +00:00
libraryupgrader ffdc375793 build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3

Change-Id: I2b54969813fb05709c116750511e86fefe940afa
2020-11-22 00:49:54 +00:00
libraryupgrader 2a68ccabdd build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
Change-Id: I2c68f5d29ba5d2135c830314124efca114102640
2020-11-03 16:06:58 +00:00
libraryupgrader d01963f06e build: Updating mediawiki/mediawiki-codesniffer to 32.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate

Additional changes:
* Dropped .php5 and .inc files from .phpcs.xml (T200956).
* Added the `wikimedia/mediawiki` profile in .eslintrc.json (T262222).

Change-Id: Ibaf2ade250d030974492a05c839ad2adf9765572
2020-10-29 09:50:58 +00:00
Translation updater bot b55c007807 Localisation updates from https://translatewiki.net.
Change-Id: I57ac3fd8e9766087098a663647706b4a4d4ec24b
2020-10-21 08:26:44 +02:00
Translation updater bot 6ad6a81db6 Localisation updates from https://translatewiki.net.
Change-Id: I84eb43ccd4f775802233ae2313537b58d45f1107
2020-10-02 08:24:04 +02:00
Translation updater bot e56eefac31 Localisation updates from https://translatewiki.net.
Change-Id: Iaa76bca0eb9a60a491184cf79cc3ea74ddeff8c4
2020-09-21 08:29:13 +02:00
Translation updater bot 7de67ef4bd Localisation updates from https://translatewiki.net.
Change-Id: I1c37385f3a1176aa071a450eb34c221c389392c8
2020-09-14 09:13:48 +02:00
Umherirrender 377298b26f build: Use existing eslint also for json linting
Bug: T220036
Change-Id: I4adc34e96d61cd18013bfc9eeee1a836f0509782
2020-09-12 13:42:25 +02:00
libraryupgrader 4facda0544 build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
* grunt: 1.2.1 → 1.3.0

Change-Id: Id5dabadfac06af8a16d153f13ec8a338b94d64be
2020-09-05 12:19:29 +00:00
libraryupgrader 4ea76bbf41 build: Updating grunt to 1.2.1
Change-Id: Ifdc7dbba62fdd61920f5287fcacba790239bec52
2020-07-18 04:25:00 +00:00
Translation updater bot 660feb132c Localisation updates from https://translatewiki.net.
Change-Id: I66be4e45d34bbb07aa8bd7db49e43940ee091a8b
2020-07-17 08:28:29 +02:00
libraryupgrader cf6a41b897 build: Updating npm dependencies
* eslint-config-wikimedia: 0.15.3 → 0.16.2
* grunt-eslint: 22.0.0 → 23.0.0

Change-Id: Ia98433743dbbbecebab1caea68d3b47161c28ccd
2020-07-16 20:57:12 +00:00
libraryupgrader 73683b52a4 build: Updating lodash to 4.17.19
* https://npmjs.com/advisories/1523
* CVE-2019-10744

Change-Id: Ibe2076c97cb9bda1f7e5e694c4681c75c5113340
2020-07-13 12:55:30 -07:00
Kunal Mehta 2729a661c3 Unbreak tests
Use an anonymous class to implement QuickTemplate instead of relying on a
specific implementation that no longer exists.

Change-Id: Ifbd47e6fa3aff8c1969e8510edbfd16507025ed2
2020-07-13 12:54:21 -07:00
Nikerabbit ab49b3b403 Revert "Localisation updates from https://translatewiki.net."
This reverts commit b76215c65b.

Reason for revert: Broken export

Change-Id: I5a534f67057acbf67e781a3d06e9cd1043717338
2020-07-13 11:40:24 +00:00
Translation updater bot b76215c65b Localisation updates from https://translatewiki.net.
Change-Id: I8a48759e9f0fcac3983b8fd1645c85adb5a1fd6b
2020-07-13 08:41:42 +02:00
Umherirrender 1412b7c5ba Fix type on @param doc
Change-Id: I9caf576cd3c18b2af8313581d85608becfdacdf7
2020-07-12 01:39:52 +02:00
libraryupgrader 88578c57e8 build: Updating mediawiki/minus-x to 1.1.0
Change-Id: Ie65e0200bd0b0980bb9a954181637214dd419f00
2020-06-08 08:08:35 +00:00
libraryupgrader 831fa0f0f3 build: Updating composer dependencies
* php-parallel-lint/php-console-highlighter: 0.4.0 → 0.5.0
* php-parallel-lint/php-parallel-lint: 1.0.0 → 1.2.0

Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".

Change-Id: Ia30b89773ddb5263b2d1dd682db9326b7472e0dc
2020-05-31 02:17:17 +00:00
libraryupgrader 097ddf35ce build: Updating mediawiki/mediawiki-codesniffer to 31.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.NoParamType

The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag

Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".

Change-Id: Ia29758a25f3aee903130481495071fcdf6e5033d
2020-05-29 11:57:16 +00:00
libraryupgrader 88fcd9f22a build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3
* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1

Change-Id: Ieafd5f4228fd416aecda7ccc9456e7cb7fa50a80
2020-04-22 07:51:31 +00:00
libraryupgrader 1881f08a1e build: Updating grunt-banana-checker to 0.9.0
Change-Id: Icadf434809614a7b4f8ae31c7ce22d8578f1754d
2020-04-19 02:52:35 +00:00
Translation updater bot 34f99672b7 Localisation updates from https://translatewiki.net.
Change-Id: I46df8f0ac278787e1363ac8f9081b658befea357
2020-04-15 08:23:33 +02:00
Translation updater bot e65d8686ac Localisation updates from https://translatewiki.net.
Change-Id: Ice48277337b770a7bce7423922363909bf094b2b
2020-04-07 08:38:41 +02:00
libraryupgrader 002c8ef4fd build: Updating postcss-sass to 0.4.4
* https://npmjs.com/advisories/1179

Change-Id: Ic6b65ea995be8ed0972af82d08165171e7ed5359
2020-04-05 15:28:44 +00:00
libraryupgrader a364a158a1 build: Updating mkdirp to 0.5.3
* https://npmjs.com/advisories/1179

Change-Id: I5123a3aaaea00d8fac097afdfc6233cb67d19f8d
2020-03-20 21:53:35 +00:00
libraryupgrader d6fbac5523 build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: I25545e5f33105d7bbd9afdad6c2070dd5f6e7bf0
2020-03-18 05:43:15 +00:00
ankit 95f25aa2ed Bump MW version, remove deprecated IP class, update .gitignore
Bug: T247155
Change-Id: Idef39fd39dd8a9f3483ea30e4a01422923c16e05
2020-03-14 14:34:41 +05:30
libraryupgrader fe0e56c5c0 build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I755802876dd51fe335fe30ccbb92a591e0b88fe8
2020-03-08 00:13:39 +00:00
libraryupgrader 01b0937ae2 build: Updating npm dependencies
* grunt-stylelint: 0.13.0 → 0.14.0
* stylelint-config-wikimedia: 0.8.0 → 0.9.0

Change-Id: I74f1e169e26c86fd1b5b3e5a0035047cc9e6deeb
2020-02-20 20:46:31 +00:00
libraryupgrader e35eef9026 build: Updating mediawiki/minus-x to 1.0.0
Change-Id: I19fe43e049ee9e6aef38b792ea196b1e50ba075e
2020-01-29 02:59:52 +00:00
libraryupgrader fbdd6661d3 build: Updating jakub-onderka/php-console-highlighter to 0.4.0
Change-Id: I784586a6c4f8fcbc890768132fe53e20928f3e8b
2020-01-28 08:12:27 +00:00
Translation updater bot 3062b30678 Localisation updates from https://translatewiki.net.
Change-Id: I092cc82baa0ea91442bdbb3009d0cd7176634a0e
2020-01-28 08:25:06 +01:00
libraryupgrader a25bb81f73 build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag

Change-Id: I2bf1056772f560b6f4ead4d1794c6f7c50eec59d
2020-01-14 04:37:44 +00:00
libraryupgrader 4f092b042c build: Updating npm dependencies
* eslint-config-wikimedia: 0.5.0 → 0.15.0
  The following rules are failing and were disabled:
  * no-prototype-builtins

* grunt-eslint: 20.1.0 → 22.0.0
* grunt-stylelint: 0.10.1 → 0.13.0
* stylelint-config-wikimedia: 0.4.3 → 0.8.0
  The following rules are failing and were disabled:
  * rule-empty-line-before

Additional changes:
* Remove direct "stylelint" dependency in favor of "grunt-stylelint".
* Also sorted "composer fix" command to run phpcbf last.
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I5218ef05353b85925bff7fdd4d5eeae0a71ccac2
2020-01-10 13:51:34 +00:00
libraryupgrader 6407ae6590 build: Updating dependencies
composer:
* mediawiki/minus-x: 0.3.1 → 0.3.2

npm:
* grunt-banana-checker: 0.4.0 → 0.8.1

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Iddcd9c7c05c5310cde88df64eaea9f625ffa7b3f
2019-12-16 03:43:04 +00:00
Translation updater bot 2e24becdd3 Localisation updates from https://translatewiki.net.
Change-Id: I8485a44ddefd549e809da2f66bedc47253150a61
2019-12-02 09:20:41 +01:00
Florian Schmidt 6634e8c829 Enable GeoLocation service being replaced by other providers
Making GeoLocation an interface makes it easier to replace the underlying implementation
from the current Http backed method.

Change-Id: I2beb97772fd74ab08b2214c08d82dbc1ebfcdcd2
2019-11-21 17:31:23 +01:00
jenkins-bot 1a0e198b80 Merge "Fix tests to be compatible with master again" 2019-11-19 08:34:14 +00:00
Paladox 6ecc3fd4fc Fix tests to be compatible with master again
Also fix tests relying on MessageCache. MessageCache is enabled in setup,
however, as setMwGlobals is resetting services, it gets disabled again.
Instead of setting the configuration to enable the use of database
messages, let's enable the message cache after the last reset of services.

Change-Id: Iff670def50ab15054099f7a1ca3adc119bd877ce
2019-11-19 00:40:51 +01:00