Commit graph

390 commits

Author SHA1 Message Date
Kunal Mehta f0d6da4ae0 build: Adding MinusX
Change-Id: Ia17c357e36ebdb41527cb5b09fc71af0289a150f
2017-11-11 19:39:09 +01:00
Umherirrender d0141fb5d3 build: Always exclude node_modules
Change-Id: Ie675ece6c04091051073a09ede5fb5d86a1075be
2017-11-11 18:40:57 +01:00
libraryupgrader 93a3d9c0db build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: Ia8b317d8b9339bbc8c2fd0de1a51344c86064f9b
2017-10-21 04:29:21 +00:00
Translation updater bot ca9f3779eb Localisation updates from https://translatewiki.net.
Change-Id: I1c3d97d2b91f0beea3ff36af9a54513a0f14c9c1
2017-10-15 22:57:26 +02:00
Ed Sanders 10de1deaf4 build: Update eslint and stylelint
Change-Id: I82bfb5fbfea4997f3048305574d2ff7d28ecd1b8
2017-10-09 15:37:28 +01:00
Ed Sanders ef16548c2f build: Cleanup eslint config
Change-Id: Icbdf65233ba343f973a5dd3c93088861c1d90ff5
2017-10-09 15:34:49 +01:00
libraryupgrader f4708684af build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I2e0c054f7884e5d36ac1640eeb3a2f5d95a767b2
2017-09-24 05:32:20 +00:00
Translation updater bot e9ef71c134 Localisation updates from https://translatewiki.net.
Change-Id: If6e04e7cfb4d592ac31c1f00d64f39c9aa1ac1c5
2017-09-19 23:08:01 +02:00
jdlrobson bd860b29a3 mediawiki.experiments is a dependency of RelatedArticles
Avoid potential race conditions.

Bug: T175064
Change-Id: Ic7eaea8181ce6eb64b4bce571182644105667a5b
2017-09-05 15:54:50 -04:00
Translation updater bot b0a00190a2 Localisation updates from https://translatewiki.net.
Change-Id: I15f4f8970fd21874ed33e3ccb30fc98a4054b602
2017-09-04 22:44:42 +02:00
Translation updater bot 0819b8cbde Localisation updates from https://translatewiki.net.
Change-Id: Iba312856c5919c2f5b2c8e9e51508847f2432ec6
2017-09-03 22:32:56 +02:00
jenkins-bot 9384692a20 Merge "Make RelatedArticles tests QUnit 2 compatible" 2017-09-01 15:26:18 +00:00
jdlrobson 3ec5e91e00 Make RelatedArticles tests QUnit 2 compatible
Bug: T174598
Change-Id: Ib5a8a46253beed60e77de34263504bb12146641e
2017-09-01 11:16:31 -04:00
jenkins-bot 3e7bba76b5 Merge "Align 'noimage' to WikimediaUI color palette" 2017-09-01 13:22:40 +00:00
libraryupgrader f93b0ceedb build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
The following sniffs are failing and were disabled:
* MediaWiki.Files.ClassMatchesFilename.WrongCase

Change-Id: I0d4bdc84162590e8051ed9ddadbb54245af6255d
2017-09-01 04:56:20 +00:00
Translation updater bot f498ce2f0c Localisation updates from https://translatewiki.net.
Change-Id: I5b1c68e84348a54fcdc03975d6f5f395b1247ebb
2017-08-30 11:03:04 +02:00
Volker E 6add5a1eac Align 'noimage' to WikimediaUI color palette
Aligning 'noimage' to overhauled color palette, background-color
equaling footer color and icon color going to closest,
minimally higher contrast color `#72777d`.

Bug: T172850
Change-Id: I949db4983910ef6609124adbfcd3c0d31a7f7eb4
2017-08-25 06:12:14 -07:00
Translation updater bot e096350f1f Localisation updates from https://translatewiki.net.
Change-Id: I27c8193f1ee4cefab560263a44d080f3c1a43679
2017-08-25 09:51:41 +02:00
Umherirrender c9dd743732 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: I84ed451ae081017289a6ccb839c637e673ceafa6
2017-08-24 20:53:40 +02:00
Željko Filipin 9d2a46fbda For Selenium tests, click the link to switch to mobile view
Clicking `Mobile view` link works on both MediaWiki-Vagrant and beta cluster. Appending `&mobileaction=toggle_view_mobile` to URL works only on  MediaWiki-Vagrant.

Bug: T171847
Change-Id: Iff47a5e3b25ee3af15a4843ca7efe550c334c3b7
2017-08-22 13:22:26 +02:00
jenkins-bot 704099acbf Merge "Use json extension for .stylelintrc" 2017-08-19 21:43:27 +00:00
Umherirrender 569e207855 Use json extension for .stylelintrc
Bug: T173516
Change-Id: Idadde6e4d4c1a16d54ecdeaa1cde20930420722c
2017-08-19 10:26:03 +02:00
Translation updater bot 86b38a01dc Localisation updates from https://translatewiki.net.
Change-Id: Iddf3fd1706578afd82380b30b2ccc0f9e3d94e39
2017-08-19 09:15:00 +02:00
Translation updater bot ae867a1d2e Localisation updates from https://translatewiki.net.
Change-Id: Ic3f0fcdd13af691d68b3f5770a7c35f2070a2f74
2017-08-17 09:07:28 +02:00
jdlrobson daa7281381 QA: Move LocalSettings to folder with other browser tests
Depends-On: Ib069004f8dcb76550fe96a6544f2846d4a7af1b9
Bug: T164024
Change-Id: Iaae9709b7407738850cdfc47c7ff56cc6eb2b1ca
2017-08-14 15:33:36 +02:00
Translation updater bot 5f4aa8d5c4 Localisation updates from https://translatewiki.net.
Change-Id: Icd4af588dc75b7637e4f68c43cf5fba3a4e93091
2017-08-14 09:30:06 +02:00
jenkins-bot 9410145179 Merge "Merge footer hooks with Hooks" 2017-08-11 13:21:18 +00:00
Kunal Mehta c5dcdea9dc build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I431c63629769d7cb941288cc67aa77fe9b78001c
2017-08-11 00:25:34 -04:00
jdlrobson ab788e7f41 Merge footer hooks with Hooks
per Baha's suggestion we have no need for two Hooks files now
so let's merge them

Bug: T165991
Change-Id: I12c62aef837f50589297477f46bdf0f0d6b5536a
2017-08-10 15:10:30 -05:00
jenkins-bot 70787d2d70 Merge "Breaking change: Remove Sidebar code from RelatedArticles" 2017-08-10 18:26:08 +00:00
jdlrobson 94ecc2d917 Breaking change: Remove Sidebar code from RelatedArticles
RelatedArticles will now only render related articles in the footer of
skins.

Bump version to 3.0.0

Bug: T165991
Change-Id: Ia4e28c0ed76b3aff37c0aea8eb713923312ba23c
2017-08-10 12:44:58 -05:00
Volker E 581a247d70 Replace abandoned colors with current WikimediaUI ones
Replacing abandoned `@colorGray8` (`#888`) & `@colorGray9` (`#999`)
with slightly increased contrast, WCAG 2.0 level AA conformant,
`@colorGray7` from WikimediaUI color palette.

Bug: T172850
Change-Id: I750261b83cc79c32e9ccdb2d69bb5e396b20ed35
2017-08-09 17:49:35 -04:00
jdlrobson b7f7d9c351 Having 2 folders for browser tests is confusing.
This patch removes all unnecessary artifacts from the old Ruby tests.
LocalSettings is needed for CI purposes and can be removed once CI
has updated.

Bug: T164024
Change-Id: Ifec8bf2b3cd7d4db105c254248cdfcdf773472ef
2017-08-02 07:42:08 -07:00
Umherirrender 9a83d49ea0 Fix typo in word parser
Change-Id: I01f950621fda1388e1f8fcc79f217d1f639ac357
2017-07-28 17:44:09 +02:00
jenkins-bot 1da8158426 Merge "build: Updating mediawiki/mediawiki-codesniffer to 0.10.1" 2017-07-26 22:10:23 +00:00
Umherirrender 548392824d build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
Change-Id: Ie05b9ddc3e351abf4b2b199529b714766055d161
2017-07-26 22:59:51 +02:00
Translation updater bot 4a9d05cedb Localisation updates from https://translatewiki.net.
Change-Id: I531c01465a83025baa323e8ac021da3b13294a81
2017-07-26 22:48:29 +02:00
Željko Filipin bdef261479 Remove all remaining Ruby code
Ruby was used only for Selenium tests, but they are now written in Node.js.

Bug: T164024
Change-Id: I27b589e4a263214e13e3bc0f1b934bc280901abb
2017-07-26 14:33:36 +02:00
jenkins-bot 51b9e835c6 Merge "Replace Ruby Related pages browser tests with node js version" 2017-07-26 12:19:14 +00:00
Željko Filipin a40cfcb134 Replace Ruby Related pages browser tests with node js version
Additional changes:
* Remove all Ruby artifacts
* Update eslint to allow es6 in tests

Bug: T164024
Change-Id: If6c8d32df042b831d52440963606a47c8ce7b552
2017-07-26 11:41:07 +00:00
Jdlrobson b9269e8284 Merge "Restore default MediaWiki codesniffer configuration" 2017-07-25 18:40:40 +00:00
Željko Filipin 4ffb75d6c8 ESLint should ignore vendor folder
On my machine `npm test` fails with a lot of ESLint errors for files in vendor folder. I guess mediawiki-vagrant creates the folder.

Change-Id: I5466ad8c490b39bef9a31f5442fecd2d11895b80
Depends-On: Ib7f0bd15dd0a9255e1e5140907e800478b658b92
2017-07-25 13:43:23 +00:00
Piotr Miazga 88c7a705e2 Restore default MediaWiki codesniffer configuration
Changes:
 - re-enabled all sniffs
 - fixed code to meet MW code standards

Bug: T170589
Depends-On: Ib7f0bd15dd0a9255e1e5140907e800478b658b92
Change-Id: Idb08a3e105226877804a84b120c70e5defa7398c
2017-07-25 02:46:46 +00:00
Translation updater bot 612d11b200 Localisation updates from https://translatewiki.net.
Change-Id: I585e1e3a56de028018adebb42d001966ee260cd5
2017-07-19 22:50:19 +02:00
jdlrobson f748c5907e Add limit via ResourceLoaderGetConfigVars
Using MakeGlobalVariablesScript hook will add config variables to
the HTML meaning cached HTML will not be able to access it leaving
it as undefined. This will mess up any existing caching.

Additional changes:
Because I'm paranoid, make sure that value is never undefined.

Bug: T170648
Change-Id: Icb8e34104c57b1e69b7e035ef89d5b4c3371132f
2017-07-14 16:42:53 -07:00
jdlrobson 9b75e0b372 Hygiene: Remove unnecessary variable
Improves readability...

Change-Id: Ib0e9cbc083e6c0a384c81815b470063698e0595f
2017-07-14 16:15:35 -07:00
Translation updater bot bcfa59fc81 Localisation updates from https://translatewiki.net.
Change-Id: I0e258a640aa19acb64aa2514d18d1c19be21b0a7
2017-07-14 22:48:20 +02:00
jenkins-bot 38ac4650e0 Merge "Make number of RelatedArticles configurable" 2017-07-06 21:09:06 +00:00
jdlrobson 9126c7d0ef Make number of RelatedArticles configurable
Wikivoyage pages have more than 3 related articles as they make use
of the {{#related:}}  magic word.

After speaking with Nirzar we should allow this project to show more than 3.
This change allows this while keeping the existing behaviour on other wikis and
will pave the way for removing a bunch of code from this extension.

Additional changes:
* Cleanup skinStyles definitions
* Limit cards to 30% maximum width and give margin top to account for
situations where the number of cards are multiple of 3
** In Minerva hardcode the max-width to pixels.
* Margins are switched from hardcoded 10px to percentage based. Yes
this changes the right margin slightly but is more maintable and visually
the same.

Bug: T164765
Change-Id: I41119de3228c2df799f740d4bd00082101c21b97
2017-07-06 11:17:47 -07:00
Translation updater bot 990c33a3dd Localisation updates from https://translatewiki.net.
Change-Id: I72f8e7726444f01692e96d419425477e8bf7de26
2017-07-05 22:39:24 +02:00