Commit graph

150 commits

Author SHA1 Message Date
Jesús Martínez Novo 37c6d7d217 Check also the dismissed cookie on client-side
If geolocation is done at client-side, it was displaying the warning without
checking the dismissed cookie. Now the main module will remove it if the cookie
exists, and the geolocation service won't display it again.

The idea of doing geolocation at client side rather than server side is to
allow more pages cached at varnish/squid, but it still required to let the
dismissed cookie break the cache. With this change, the dismissed cookie can
be blocked at the varnish/squid level, all pages will contain the cookie
warning notice, but it will be left hidden by the client-side script instead
of displaying it.

In addition, the click handler for .mw-cookiewarning-dismiss has been put
inside a DOMready handler to prevent this code fire before the element becomes
available.

Bug: T183657
Change-Id: I5f7505dbd650867155485d17fff58fb92800581b
2018-04-12 22:46:16 +02:00
Translation updater bot a75bbc4c46 Localisation updates from https://translatewiki.net.
Change-Id: I9c9d6f5193b558c733199a2035b0f13e5abdbe93
2018-04-09 23:16:52 +02:00
Fomafix eb27449d70 Fix phpcs exclude rules
Change-Id: Ia39e6189d666af7d6fe1ccd14e8e7cae277a4428
2018-03-30 22:59:10 +02:00
Fomafix 1416dc5465 Switch from jshint/jscs to eslint
Change-Id: I278905a67c42d268bb4a891c9df34b0fdbf4307d
2018-03-29 22:03:15 +02:00
jenkins-bot bafd88d0f5 Merge "Use saveOption from module 'mediawiki.api.options'" 2018-03-29 17:19:44 +00:00
jenkins-bot 3046bb8600 Merge "Add missing dependencies on modules" 2018-03-29 17:16:51 +00:00
libraryupgrader ae3d70b5a9 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: I1d87621329f7721ad8c9dbff4b84a10fcbef92a2
2018-03-29 01:27:40 +00:00
Fomafix fc3d0012c7 Use saveOption from module 'mediawiki.api.options'
The module 'mediawiki.api.options' is present since MediaWiki 1.25.

Change-Id: I986afad78f8054596e0efe89aa9e663c6c123f03
2018-03-22 22:12:34 +01:00
Fomafix 5af96e1d18 Add missing dependencies on modules
* Module 'ext.CookieWarning' depends on module 'mediawiki.user' because
  ext.CookieWarning.js uses mw.user.isAnon.
* Module 'ext.CookieWarning.geolocation' depends on module
  'jquery.cookie' because cookiePolicy.js uses $.cookie.

Change-Id: Idd5cba6c997a8ad835f7244cf971a7839102b995
2018-03-22 20:24:37 +01:00
Translation updater bot e57c24ed6d Localisation updates from https://translatewiki.net.
Change-Id: Ic88278a15fcb86f217884da67145045453a9f735
2018-03-11 22:30:44 +01:00
libraryupgrader 5381ad535d build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: I1716fd610b80250252a7a498576077ae87d758d5
2018-03-09 07:13:47 +00:00
Translation updater bot f44a9653fb Localisation updates from https://translatewiki.net.
Change-Id: Ifc3e6e699b85b5c2b2433b5a7637829a34e7accb
2018-03-07 22:47:27 +01:00
Translation updater bot 67b94a7f9b Localisation updates from https://translatewiki.net.
Change-Id: I8e18affec2c0b10f4863bda1e798883a6a061937
2018-03-06 22:18:33 +01:00
Translation updater bot cf386f6179 Localisation updates from https://translatewiki.net.
Change-Id: Id5487c356b3c9228a732891508bdf4f015b34619
2018-03-05 22:24:31 +01:00
libraryupgrader a64dab024e build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I97921513469c0a955a5ef3adca8b110b05a2553d
2018-02-25 07:38:48 +00:00
libraryupgrader 5e8d0aa815 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I59b64a8de9608040dbc119dab0fe0b30d9a8015a
2018-02-17 20:15:49 +00:00
libraryupgrader 883358b705 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: I6b4b8acae6c643d4a163eecdc13ef1625b60ccde
2018-02-15 09:37:25 +00:00
Tulsi Bhagat 1c870a1fa5 Removed deprecated position statements from resource loader module
Bug: T184257
Change-Id: Ia60490b099cd7661051d0add20b91a766a1c7488
2018-02-13 10:54:12 +00:00
Translation updater bot 59a0142885 Localisation updates from https://translatewiki.net.
Change-Id: I4300df90e5d3e7ecc60c7fbd02f9a70a8cd5c664
2018-02-11 10:42:05 +01:00
Translation updater bot 32ae7de394 Localisation updates from https://translatewiki.net.
Change-Id: Icaa36abc446bc4d3bc0dabf161c2e7e9bb989339
2018-01-30 22:16:35 +01:00
jenkins-bot abb106e9f7 Merge "Add @covers tag" 2018-01-24 00:44:38 +00:00
Kunal Mehta 3675acc182 Add @covers tag
Change-Id: Ie424a310f6a30c820cb692fa2ddcb25087868837
2018-01-23 16:24:33 -08:00
Translation updater bot 9c5e20da52 Localisation updates from https://translatewiki.net.
Change-Id: I489e3024fc5522106e93fcbf293ff2a3d159f05d
2018-01-20 14:42:36 +01:00
Umherirrender 547c1562c1 Improve some parameter docs
Change-Id: I8ee2396e6a804ab69965383a9ee6b30787c1f9af
2018-01-11 21:09:29 +01:00
Translation updater bot a59d75ae69 Localisation updates from https://translatewiki.net.
Change-Id: Ieafb45c4612ff02d51243bf67f7c9e9af1b7e18e
2018-01-05 09:21:50 +01:00
libraryupgrader ea6fb46f13 build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
The following sniffs are failing and were disabled:
* Generic.Files.OneObjectStructurePerFile.MultipleFound

The following sniffs now pass and were enabled:
* MediaWiki.Files.OneClassPerFile.MultipleFound

Change-Id: I117b86a89a7d5a85f0d20bc7daa261ca438ca6e9
2017-12-29 23:44:14 +00:00
Translation updater bot 0882607b7b Localisation updates from https://translatewiki.net.
Change-Id: I0778615c5cd1f7089ab24096bba1fae0e14209ac
2017-12-18 23:06:20 +01:00
libraryupgrader d0f032b4ad build: Updating mediawiki/minus-x to 0.2.1
Change-Id: Ib29e7f2f2c63e8e1fa8a332defa34beb3cee9eb6
2017-12-10 02:32:42 +00:00
Umherirrender d973bb7a7b build: Always exclude vendor and node_modules
Change-Id: Icc4f36c64da5836957289f4985f131b1dc09b1b3
2017-11-10 20:23:27 +01:00
Kunal Mehta 8a382bd27b build: Adding MinusX
Change-Id: I7aebc2e4f2cad48ac3f4f3d9931d64d6b5d7826d
2017-11-02 18:36:05 -07:00
Translation updater bot 1acb485a75 Localisation updates from https://translatewiki.net.
Change-Id: Ia6d76900001691ab4376a02fa30f3a4150968ce7
2017-11-02 22:45:59 +01:00
libraryupgrader cc041d4bc1 build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I3fc2670685a31955360c5b49da191fad209e68a5
2017-10-21 04:20:16 +00:00
libraryupgrader da679a35bb build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: If56e26b5eada87f0fb1fe9c4fc000ead216e6d62
2017-09-24 05:22:36 +00:00
Translation updater bot d09fb60b42 Localisation updates from https://translatewiki.net.
Change-Id: I6c0d5238cd225320cf623cb70a71febdab9b734d
2017-09-08 23:56:57 +02:00
libraryupgrader 668eb0adc6 build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
The following sniffs are failing and were disabled:
* MediaWiki.Files.ClassMatchesFilename.NotMatch
* MediaWiki.Files.OneClassPerFile.MultipleFound

Change-Id: Ia7bf0b960f7a0317e74b56123993fbf7e52d4fbb
2017-09-01 04:48:04 +00:00
Translation updater bot 143b593000 Localisation updates from https://translatewiki.net.
Change-Id: I7e06c8fbf96d1066904b2ef0a10c8f72f1509259
2017-08-28 12:12:28 +02:00
Umherirrender ad1130f4c8 Remove dot at end from extension description
Consistency tweak for extension active on translatewiki.net
Description on Special:Version does not end with a dot

Change-Id: I821f083847bc16f28fc1786dc7ba8233310e3241
2017-08-24 19:19:32 +02:00
Kunal Mehta a1c234ef22 build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: Ida23a3b1e8c193425af1d8f1566a94c2248a4180
2017-08-10 23:18:37 -04:00
Translation updater bot 48d5735a3e Localisation updates from https://translatewiki.net.
Change-Id: Ic795c134f34a6acc8f16123a3b2eaeaedf06782f
2017-08-03 22:47:18 +02:00
Umherirrender 0bcd56cba6 Merge "build: Updating mediawiki/mediawiki-codesniffer to 0.10.1" 2017-08-03 11:22:42 +00:00
Antoine Musso 68e0479f15 build: bump grunt and drop grunt-cli
grunt 1.x now includes a CLI command, hence grunt-cli is no more needed.

Change-Id: I94f0c66236b5f0f12220741276c7fe24a89c65e0
2017-08-01 11:01:19 +02:00
James D. Forrester 4f603ac8d2 build: Bump mediawiki-codesniffer to 0.10.1
Change-Id: Ia9b79a81d7e7d2b47467c743745bb13f611af17f
2017-07-31 18:13:35 -07:00
Kunal Mehta 865da72225 build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
Change-Id: Ibdf7502e02b972691499fbb7c65e64bc894ff1a7
2017-07-23 00:17:27 -07:00
Kunal Mehta f03e4bdd49 build: Updating mediawiki/mediawiki-codesniffer to 0.10.0
Change-Id: I95c330cc2ed52869075ec0c3577962b23cbec028
2017-07-01 00:57:30 -07:00
Kunal Mehta 4242d63304 build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch

Change-Id: Ibe364df6dc58c2bfb04fc6ac267e1a9fa89bc2f9
2017-06-19 19:40:07 -07:00
Amir Sarabadani ee62984248 Add CODE_OF_CONDUCT.md
Bug: T165540
Change-Id: I48e642f5b57733db703cb96ba86105db082d1a2c
2017-06-07 13:13:02 +04:30
Antoine Musso bbf2296ee1 build: add jakub-onderka/php-console-highlighter
Highlight PHP code when parallel-lint fails

Change-Id: Ie7582baa805457a0445a119bfd5fb859f693e51f
2017-05-05 21:40:01 +02:00
Translation updater bot 18e8e1c371 Localisation updates from https://translatewiki.net.
Change-Id: I779a9bf791dc74bf83341aa633608c70befdb715
2017-05-04 22:44:48 +02:00
Umherirrender 100da38e8f Add fix phpcbf command to composer.json
This allows to use the phpcbf easily

Change-Id: I159e3d6c0cb4d767d86036754e4943e59591d410
2017-04-29 13:09:14 +02:00
Translation updater bot b228828a3e Localisation updates from https://translatewiki.net.
Change-Id: Iea1b1fb8e466fb92900839aa3e2739d351cbbfdd
2017-04-27 22:34:50 +02:00