Commit graph

634 commits

Author SHA1 Message Date
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
Translation updater bot 81359d080b Localisation updates from https://translatewiki.net.
Change-Id: I8fb3364643b9384c3af0da6638f5b8f44c6b4d0d
2019-06-30 22:39:22 +02:00
libraryupgrader 72d37219e6 build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: I636ad49a31be0433519d3e8338b772742b8e3ea6
2019-06-10 10:33:19 +00:00
libraryupgrader b42020a033 build: Updating npm dependencies for security issues
* Updated grunt to 1.0.4, addressing:
  * https://npmjs.com/advisories/788
  * https://npmjs.com/advisories/813
* Updated stylelint-config-wikimedia to 0.6.0, addressing:
  * https://npmjs.com/advisories/786

Committed package-lock.json (T179229) too.

Change-Id: I6a32ed8cb552826053f9439b7a62a9e74f17b881
2019-06-08 19:32:41 +00:00
Volker E 2d7c4e979e Update 'noimage' to unified 'article' icon
Equivalent to latest 'article' icon in Design Style Guide and OOUI.
Also updating `.list-thumb-none` class to align icon and simplify
maintenance.

Bug: T222717
Change-Id: I49a89afa3d370abc4cf282a0bf8d44ee2751aa78
2019-06-05 17:05:31 -07:00
James D. Forrester 431e218ac8 build: Upgrade wdio-mocha-framework to be node10 compatible
Change-Id: Ie0176c0bd97488ea6c23e666035787cf7dfe7bb1
2019-06-03 14:54:40 -07:00
David Causse 51a19570eb Fix wgRelatedArticles*UseCirrusSearch var names in data.json
typo introduced in I5c6809392b0621bd0d58049597f6c0306e572607

Bug: T224879
Change-Id: I195cfd2a32b5a1737aed15d6c463a602ce54d6ad
2019-06-03 15:14:27 +02:00
Timo Tijhof 8becbc2b23 Omit 'wgRelatedArticles' from page view HTML when empty
* The extension already uses 'null' as placeholder in RelatedArticles
  instead of empty array. Update the doc comment in RelatedPagesGateway
  to reflect this (its code was already using the default operator
  to fallback to empty array, given empty arrays are not falsey in JS,
  but null is).

* Omit the key from the mw.config output in <head> on page views,
  when the value is null, given this is redundant information and consumes
  additional space.

Bug: T219342
Change-Id: I367f9d9423d66611d73d56f8a769d86d14d3de8b
2019-05-26 13:49:16 +01:00
Timo Tijhof 6a0d64d3f0 Remove 'wgRelatedArticles*CirrusSearch' from page view HTML
Bundle these with the module that needs it instead, this means
1. It is naturally only downloaded on pages where it is needed.
2. It doesn't block download/parse/render of the article HTML.
3. It doesn't delay time to mw.loader.load() for interactive
   functionality.

Bug: T219342
Change-Id: I5c6809392b0621bd0d58049597f6c0306e572607
2019-05-25 22:04:51 +00:00