Commit graph

692 commits

Author SHA1 Message Date
vidhi-mody e4f2b070c1 Selenium: Update to WebdriverIO v5
Update NPM packages: webdriverio, wdio-mediawiki.
Update ESlint configuration.

Replace NPM packages:
- wdio-mocha-framework with @wdio/mocha-framework.
- wdio-spec-reporter with @wdio/spec-reporter.

New NPM packages: @wdio/cli, @wdio/local-runner, @wdio/sync.

Replace:
- `browser.element` with `$`.
- `chromeOptions` with `'goog:chromeOptions'`.
- `password` with `mwPwd`.
- `username` with `mwUser`.
- `isVisible()` with `isDisplayed()`.

Bug: T250685
Change-Id: Ic8b49974c05f88a2010c118198b49ee10c175c68
2020-05-27 23:05:51 +05:30
Translation updater bot 90187e4e62 Localisation updates from https://translatewiki.net.
Change-Id: Ia414e1836b2a3757a8e7d5a7a3c0a7ab065d8833
2020-05-13 08:43:23 +02:00
James D. Forrester bf6ca72845 extension.json: Simplify hook calls as we only ever use one
Change-Id: Ie835cac5df0697829dcf6f1796d9c4331512a8fc
2020-05-11 19:55:03 +00:00
James D. Forrester ac94e7efad Use QUnitTestModule instead of deprecated ResourceLoaderTestModules
Bug: T232875
Change-Id: I5612a9be65f4d4adf4912645856540dbb04d2b34
2020-05-11 19:53:57 +00:00
Reedy 934316691c Add COPYING
Bug: T234086
Change-Id: Ic3833b56745a51db2395867d8602a18d91f60137
2020-05-01 17:48:42 +01:00
libraryupgrader afc946ec53 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: I28ffb62778358450b7518db4035bc22d6440ccb8
2020-04-24 20:36:36 +00:00
libraryupgrader 8f2ca71895 build: Updating grunt-banana-checker to 0.9.0
Change-Id: If701c5f54293631f9a851fd202ef5689e8d2117d
2020-04-20 06:50:08 +00:00
Translation updater bot 4daec6c3cd Localisation updates from https://translatewiki.net.
Change-Id: Ic9e95a8cfb523ecf61243ef1e48b5b9b47f5bee1
2020-04-10 09:51:46 +02:00
Translation updater bot 743b319fa1 Localisation updates from https://translatewiki.net.
Change-Id: I97d8a30ddfd2de98278145dd0074213771e4a8ef
2020-04-07 08:48:23 +02:00
libraryupgrader 9639c53e6b build: Updating postcss-sass to 0.4.4
* https://npmjs.com/advisories/1179

Change-Id: I34fc3c029ae61f25de2b27e3586672e8db75d3c0
2020-04-05 09:12:41 +00:00
Translation updater bot f459be857e Localisation updates from https://translatewiki.net.
Change-Id: I9b6575db0dc919fa976408ad1c648067ebb5a92d
2020-03-30 09:14:57 +02:00
libraryupgrader 20501d39c7 build: Updating mkdirp to 0.5.3
* https://npmjs.com/advisories/1179

Change-Id: I0834d6a941301cc149e30529be78219181441d87
2020-03-21 21:34:08 +00:00
Umherirrender 49e0b821d5 Merge "build: Updating minimist to 1.2.5" 2020-03-21 20:13:57 +00:00
James D. Forrester 56416d08e9 Don't try to register "" as a style path, that breaks ResourceLoader
Bug: T248090
Change-Id: Ic1475003f9f00c3593736be1421c93b8b7f5c30f
2020-03-19 15:24:20 +00:00
libraryupgrader 4dcb784214 build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: I2871d645bf28f041b902e0553339713f8747aa42
2020-03-19 08:36:43 +00:00
Translation updater bot 0465e9a64a Localisation updates from https://translatewiki.net.
Change-Id: I65d66853a3570a8fe8af93cd78d57bf0ed12c444
2020-03-10 08:15:36 +01:00
libraryupgrader 990d555ad9 build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I13864868d5648d605374e2e66235e8831dd959f4
2020-03-08 11:43:33 +00:00
Umherirrender 1fa6409ebe Improve param docs
Change-Id: I8debd7a907b8be61f9e6595e461d40fbd1352f63
2020-02-29 22:38:00 +01:00
Translation updater bot 6e1f6c0643 Localisation updates from https://translatewiki.net.
Change-Id: I6987fdc1691e08db5e90f8c86f5ac4e0e321af55
2020-02-27 08:37:31 +01:00
Translation updater bot 8894c3b86d Localisation updates from https://translatewiki.net.
Change-Id: I44493de7611140b2b43e4d6c26d1f4d4a683b3d0
2020-02-24 09:03:44 +01:00
libraryupgrader d0bad44456 build: Updating npm dependencies
* grunt-stylelint: 0.13.0 → 0.14.0
* stylelint-config-wikimedia: 0.8.0 → 0.9.0

Change-Id: I52b724d6d5b1c8ae803f2935d12f465af07c5309
2020-02-21 01:47:50 +00:00
Translation updater bot 3114d7a87b Localisation updates from https://translatewiki.net.
Change-Id: Idbe6279cbac346e981648864b70802a187d3d521
2020-02-10 08:35:24 +01:00
libraryupgrader 786af8fa7d 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: I96f6b9e99fb993915859a316508e92e90dfde801
2020-01-30 03:03:18 +00:00
Translation updater bot 9fc7f79d7f Localisation updates from https://translatewiki.net.
Change-Id: Idec93cdea797bfc189e369e7d255ac756872a837
2020-01-21 08:16:57 +01:00
libraryupgrader dfb3995a90 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 28.0.0 → 29.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.Commenting.FunctionComment.MissingParamTag

npm:
* eslint-config-wikimedia: 0.11.0 → 0.15.0
  The following rules are failing and were disabled:
  * no-jquery/no-parse-html-literal

* grunt-eslint: 21.0.0 → 22.0.0
* grunt-stylelint: 0.10.1 → 0.13.0
* stylelint-config-wikimedia: 0.6.0 → 0.8.0

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: Iab538420d73bbbebfd05cf815ab06773f16da8da
2020-01-15 06:11:54 +00:00
Ammar Abdulhamid 6abae72d5e Update extension.json to manifest version 2
Bug: T241892
Change-Id: I9c7156df3220389e7fbf94375e9fdb753458f16e
2020-01-04 19:35:20 +01:00
Translation updater bot f87a281bf9 Localisation updates from https://translatewiki.net.
Change-Id: I32b6c3c01162cd2ca69a7018a9ea1b452fcdc564
2020-01-02 08:59:43 +01:00
jenkins-bot 43e93993cd Merge "Add Korean localisation" 2019-12-29 21:41:52 +00:00
libraryupgrader 01ea40f006 build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I07e956e5fcd4a5f1897570dbe9eee010dc0962f4
2019-12-22 01:13:30 +00:00
libraryupgrader 9d8e96fb19 build: Updating grunt-banana-checker to 0.8.1
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I8b1838ee78fe78f96f6cbb3d0a1584f035aa66c6
2019-12-18 04:05:21 +00:00
lens0021 88c28bc881
Add Korean localisation
Change-Id: I587a4e8bdf7cb7c85aa3a77d422136bb2f29172a
2019-12-11 20:51:26 +09:00
Translation updater bot 2e75bad2bc Localisation updates from https://translatewiki.net.
Change-Id: I14c55c7f09c3464102682aa492ae4fc70bcdc70e
2019-12-02 09:23:20 +01:00
Max Semenik bc24e8a71d Stop passing objects by reference
Bug: T193950
Change-Id: I36dc8a0f887bf11275f9cf3611651ca1091cd9f7
2019-11-14 22:17:56 -08:00
Umherirrender ae1862edba build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: Ic01a5c1b168daff1d778a4db11bf554f585336e5
2019-11-04 19:03:07 +01:00
Translation updater bot 3e330afcbc Localisation updates from https://translatewiki.net.
Change-Id: Ib8bd704a9b9ab0e08dbdb697bf7dd6fb67808c54
2019-10-25 09:19:22 +02:00
jdlrobson c9ec8dfadf Use mw.util.debounce
jquery.throttle-debounce is deprecated.

Bug: T213426
Change-Id: Ieffe20f44003e7dbb992e88c7927a14629da2db4
2019-10-24 18:49:38 +00:00
James D. Forrester 508223b06e build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I44da6771b7642b73e0410882d6661463d04f831c
2019-10-11 11:26:08 -07:00
Translation updater bot edff37fc98 Localisation updates from https://translatewiki.net.
Change-Id: I9a09891fd8413afd248e9a3f96b74d5171427e61
2019-09-13 10:20:43 +02:00
Translation updater bot 96e3ebda01 Localisation updates from https://translatewiki.net.
Change-Id: If27301a76e8e730991f3151ea2e625ca82cdb61e
2019-09-04 10:15:03 +02:00
Translation updater bot 74f5630cfe Localisation updates from https://translatewiki.net.
Change-Id: I313dc9bcdeb7b21b931968ebc163bbc63c66af95
2019-08-30 10:04:55 +02:00
Translation updater bot 212035bde6 Localisation updates from https://translatewiki.net.
Change-Id: I32323367a2b006f2c6940d30cb19523a2204fd02
2019-08-28 10:53:44 +02:00
Jesús Martínez Novo be3385e6d5 Support other ways to get the description of the page
Currently, the extension queries the prop=description api to fetch the
description, but this api is only available if Wikibaseclient is installed.

Let's support other sources to fetch the page description from, too, or
disable it (by default) to sabe 85 bytes from each response by avoiding the
warning returned from the api when prop=description is not recognized.

A new configuration setting has been added: RelatedArticlesDescriptionSource.
It defaults to false (no description is fetched), but can be set to one of
those string values:

- wikidata: What's being used right now on WMF wikis
- textextracts: Extension:TextExtracts provides the prop=extracts api.
- pagedescription: Extension:Description2 provides a description page property, that can be queried by prop=pageprops&ppprop=description

Bug: T230947
Change-Id: I34410334ba9d6db1f686c7efb5722e2a51957145
2019-08-23 20:24:37 +02:00
libraryupgrader 95a2d7a7ba build: Updating eslint-utils to 1.4.2
* https://npmjs.com/advisories/1118

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Id48dd396a5b07efdd6486b4f69fe5f0fb9190885
2019-08-23 03:33:15 +00:00
jenkins-bot b8ded2df23 Merge "Fix background-size on thumbnails" 2019-08-07 19:05:43 +00:00
Saint Johann e0547ff7cc Fix background-size on thumbnails
Bug: T229664
Change-Id: I001e3aea67ca09bf657b3895c7e0bcb4c63412ea
2019-08-07 10:53:50 +00:00
libraryupgrader b7c1979278 build: Updating wdio-mediawiki to 0.4.0
Change-Id: I3eb03f459cc1fe36c120a0ae40240eaaa2b57752
2019-08-03 04:28:52 +00:00
Isarra b31970084f Use SkinAfterContent hook to place cards in the DOM
This allows skins to determine where the cards appear in a consistent
fashion with other extensions, and require minimal special handling from
the extension itself.

Also change default settings as to when RelatedArticle cards will appear
- keep the whitelist to allow projects to configure their usage such as
in the case of only wanting it on mobile, etc, but now that it should
just work in any given skin, default it to on for all so that it's easier
for the average third party to install for whatever use.

Note that this default setting change will not affect WMF wikis, as
wmgRelatedArticlesFooterWhitelistedSkins is explicitly set in the
wmf-config regardless.

Bug: T181242
Depends-On: I5b0ad889e633fde88c392577ce5373c81fc5486a
Change-Id: Iebd759c0d1a536768d18953f372664df762d9e04
2019-07-26 19:28:49 +00:00
libraryupgrader 4cdb540f75 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 24.0.0 → 26.0.0
* mediawiki/minus-x: 0.3.1 → 0.3.2

npm:
* lodash: 4.17.11 → 4.17.15
  * https://npmjs.com/advisories/1065
  * CVE-2019-10744
* 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
* grunt-banana-checker: 0.7.0 → 0.7.1

Change-Id: I9728f2441f195fd1473f0eb8bc0cbaf28c505cfc
2019-07-19 11:57:33 -07:00
James D. Forrester e1490b3f38 build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: I091a1caec5ccf141b04abb210e87987e17d78e58
2019-07-09 14:15:54 -07:00
Translation updater bot 14bb214ecb Localisation updates from https://translatewiki.net.
Change-Id: If11d1d3f65a869a7212a47f372a742bdd20d6bdd
2019-07-03 22:45:56 +02:00