Commit graph

1827 commits

Author SHA1 Message Date
Umherirrender 0e64e6d09e Move phpcs.xml to .phpcs.xml
See T177256

Change-Id: I6830e5f4d7e3fa11b95fc0d12b57b48ffbc362fd
2017-10-21 14:43:57 +02:00
libraryupgrader 48361a9c3a build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
Change-Id: Ifda9c873461566c0e133c077a43c6d45c5532279
2017-10-21 04:28:50 +00:00
jenkins-bot 0a0fe3d98c Merge "Drop beta feature step testing in browser tests" 2017-10-17 18:36:52 +00:00
Volker E 33a2eb9635 Optimize SVGs and align colors to WikimediaUI palette
Aligning SVGs to WikimediaUI color palette. Also optimizing
by help of SVGO and aligning them to each other, among changes:
- removing unnecessary, unused raster images
- removing invisible, application specific metadata
- unifying identation
- bringing attributes in order

Bug: T178257
Change-Id: Ief0ce99568e6a92700f2c8e4eb5990b989402389
2017-10-15 18:33:45 -07:00
Translation updater bot d59c391c15 Localisation updates from https://translatewiki.net.
Change-Id: I8cc8e237f82ca6868d4d44ed0d979ac79b352f67
2017-10-13 22:49:15 +02:00
jdlrobson 730c216534 Drop beta feature step testing in browser tests
Page previews is enabled by default on the beta cluster and
in master.
In production config we enable it for all wikis but enwiki
and dewiki.

We should thus stop testing this to bring our testing in line with
reality.

This allows our browser tests to run against the beta cluster as
well as per commit as well as reduces the amount of code we need to
port to Node.js

Additional changes:
* Remove redundant support pages and properties

Bug: T177262
Change-Id: Ia85e7b60774232ced35641f2671462ca0ef64f18
2017-10-13 17:18:50 +00:00
jenkins-bot ccebb8cb1a Merge "Do not include @nomin instruction in dist build" 2017-10-12 19:57:19 +00:00
jenkins-bot b8f61fb1bf Merge "Use https for browser test environment" 2017-10-12 09:27:38 +00:00
jenkins-bot 347852632c Merge "Delete unimplemented browser tests" 2017-10-11 23:22:52 +00:00
jdlrobson 8494ada735 Use https for browser test environment
Change-Id: Ia469152ee4aaeaff491c32d7f8b98a8e6d9dbe02
2017-10-11 15:10:20 -07:00
jdlrobson 14e78466b2 Do not include @nomin instruction in dist build
When bundled by ResourceLoader this can interfere with debugging
of other concatenated files.

The nomin instruction introduced in 7bd29bb058
was meant to avoid RL minifying an already
uglified bundle, but that shouldn't matter here.

Bug: T177344
Change-Id: I90829668544e7c4ff7ddfdbb90d91b88a27a69f4
2017-10-11 14:34:18 -07:00
Translation updater bot 59a97737b3 Localisation updates from https://translatewiki.net.
Change-Id: I02670d3d7b51dc98f64eba137c60b03eeee506ce
2017-10-11 23:08:01 +02:00
Translation updater bot ce9f61bdfb Localisation updates from https://translatewiki.net.
Change-Id: I68393e215b09de245cb8209671a0e2d5338be946
2017-10-10 23:03:47 +02:00
jenkins-bot c656264265 Merge "Align colors to WikimediaUI Style Guide and palette" 2017-10-09 16:55:59 +00:00
Ed Sanders 7f4dd1159b build: Update eslint and other linters
Change-Id: I0a20ad5d16d46afbc2a328f8e254295972f58ab0
2017-10-09 15:56:15 +01:00
Ed Sanders 867e75f9a0 Remove old jscs file
Change-Id: I16a4cbffc8dc7232f4bf620f44ff2b7597860517
2017-10-09 15:42:11 +01:00
Volker E df71836742 Align colors to WikimediaUI Style Guide and palette
Setting text color to `#222` and border color to `#a2a9b1` as
everywhere else.
Also making use of more recent LESS functionality with multiple
arguments per mixin to remove unecessary duplication of code and
change static values to central LESS variables where applicable.

Change-Id: I394c7e7e1369ff38b7ea91c7faebe773bcb2948d
2017-10-08 07:49:39 -07:00
Translation updater bot e07b7b71f2 Localisation updates from https://translatewiki.net.
Change-Id: Ide9482993fcb9a6fb944d53155ab9fc98f53e2b4
2017-10-06 22:47:22 +02:00
Translation updater bot 9554342475 Localisation updates from https://translatewiki.net.
Change-Id: I1449ab0b488cea0c6b770504d9a6972f23d37a4f
2017-10-05 22:49:00 +02:00
jdlrobson 11d631a975 Delete unimplemented browser tests
These browser tests were added in I55f311b6b8845e6ebf4cc5698758afd1f9042a45
but broken in Ibc0d07e8394aeb640f9efaabfe10be5317bf4b8c

Let's remove these while porting over to the Node.js version
of these browser tests since they are not run anywhere.

(Try bundle exec cucumber tests/browser/features/ --dry-run)

Bug: T177262
Change-Id: Ica745d084acbb56ec66d88a1785e7557cb12ad6e
2017-10-03 18:17:04 +00:00
jenkins-bot 64c33d77ab Merge "Consider using more common image sizes for Page previews" 2017-10-02 21:05:08 +00:00
smarita 3ec185cb01 Consider using more common image sizes for Page previews
Modified necessary files to increase size of popup from 300px to 320px

Bug: T173434
Change-Id: I47bbe9defe961008163551d5be4fc7b1ca08d0d1
2017-10-01 22:02:29 +05:30
Translation updater bot b58650f1ae Localisation updates from https://translatewiki.net.
Change-Id: Id52899d48cd67fb1f13d66da52d4884ef0044b29
2017-09-30 22:52:54 +02:00
Translation updater bot 0af348261f Localisation updates from https://translatewiki.net.
Change-Id: I723593dcd7dd2b27e682db148d840baba6e7b73d
2017-09-27 22:35:42 +02:00
Translation updater bot 81aa2d2590 Localisation updates from https://translatewiki.net.
Change-Id: Ic7b81058d159109a79f9907f527b585f57d6695e
2017-09-26 22:46:13 +02:00
Translation updater bot 6a9d90b022 Localisation updates from https://translatewiki.net.
Change-Id: Id96cb4bfdf9a2a743f73d1e0f7354dd11504f7aa
2017-09-24 22:54:33 +02:00
libraryupgrader cc611bbc85 build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: Ibea048de7fc5f703d7ebf54d7844e35af8eac8d8
2017-09-24 12:31:23 +00:00
Translation updater bot b0483dae3c Localisation updates from https://translatewiki.net.
Change-Id: I4dbc7e503356f3ae33e0bea7b94c54b8e9c5d5ea
2017-09-23 22:48:06 +02:00
Volker E 0c64c25c29 Unify box-sizing to common LESS mixin
Change-Id: Ifd3e7dd9be68c09b362c0fb8071cd9f27f846505
2017-09-21 15:32:09 -07:00
Translation updater bot 7da6cff352 Localisation updates from https://translatewiki.net.
Change-Id: I20f7a09bb0e555ae01d874059b4df747725f87bd
2017-09-19 23:05:42 +02:00
Translation updater bot 8048e3d70f Localisation updates from https://translatewiki.net.
Change-Id: Ic105c2dbb91c4db9ff8a22fe818b1a480333d873
2017-09-17 22:37:08 +02:00
Translation updater bot cb37dc83d6 Localisation updates from https://translatewiki.net.
Change-Id: I4686d6b552c1fd8925dcef8396dac4d63a64ee3f
2017-09-12 22:46:48 +02:00
Bartosz Dziewoński 2b637e42ef Improve how we render help messages in preferences
* The 'help' parameter expects a string, not a Message object. It
  seemed to be working, but caused fatals when switching the
  preferences form to the OOUI implementation (T117781).
* Use 'help-message' instead, which also avoids using the global
  request context for Message objects.

Bug: T117781
Change-Id: I5b2e44df35a2696da0e7ba8394eccf41914f6dda
2017-09-12 17:07:37 +00:00
Translation updater bot dfad838fa7 Localisation updates from https://translatewiki.net.
Change-Id: I87ec41c46ba5338eadf95a89dca2a79fdafe3f6a
2017-09-09 00:12:05 +02:00
Translation updater bot 7c53b5e770 Localisation updates from https://translatewiki.net.
Change-Id: I4ba090be862ec0d5706bf18bae3bb766cbc1263c
2017-09-07 23:33:50 +02:00
jenkins-bot 9a87e417c6 Merge "Run eslint on compiled assets to ensure code is es5 compatible" 2017-09-07 10:38:22 +00:00
jdlrobson 90fbd093c8 Run eslint on compiled assets to ensure code is es5 compatible
It doesn't feel great but it does the trick.

Bug: T174570
Change-Id: I76d1b81625a77df0d926c2da714bcab606a28b8d
2017-09-07 12:30:33 +02:00
Translation updater bot 98ff107293 Localisation updates from https://translatewiki.net.
Change-Id: I21f78b3ffc8d4ade86ecc9d9f4077a864abd65d8
2017-09-06 22:52:39 +02:00
jenkins-bot eb6c893e1e Merge "Run settings browser tests and make sure jQuery 3 not enabled" 2017-09-05 10:50:53 +00:00
Translation updater bot 42b85331f3 Localisation updates from https://translatewiki.net.
Change-Id: Ibbc0f04d140d6e13d08ab1072b0f3bee8bbc48d9
2017-09-03 22:31:09 +02:00
jdlrobson f18c8e4eaf Run settings browser tests and make sure jQuery 3 not enabled
Change-Id: I599c8c002c570d4911b7c86294f714279833e80b
2017-09-01 10:16:17 -04:00
joakin 84e30f4613 Revert usage of Promise A+ in actions.js#fetch
.catch is only available with jQuery 3, which is only now starting to
roll out (see https://phabricator.wikimedia.org/T124742)

This patch rolls back the usage of .catch introduced in
https://gerrit.wikimedia.org/r/#/c/373327/ to use .fail, but only the
source part, given that patch introduced unit tests for this behavior

Bug: T174724
Change-Id: I6e1c342d812b35846061266bc59e493e87423fd8
2017-09-01 12:10:50 +02:00
libraryupgrader 4cf348c614 build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
Change-Id: I99700010ab32a37f78ad0d9d7b32cc6bc4966b8a
2017-09-01 04:55:51 +00:00
jenkins-bot 950c8dca7c Merge "Store map files under .json extension" 2017-08-31 11:07:55 +00:00
joakin 4ed09011c2 Explicitly set ecmaVersion for eslint
Before, because of the use of sourceType: "module", ecmaVersion would be
assumed to be ES2015, but we write ES5 here at the moment.

This enables linting against ES2015 features like let and const.

See https://gerrit.wikimedia.org/r/#/c/374789/ for failing POC.

Change-Id: Id1d147866c37de3794213378a5e8a08af6f796a1
2017-08-30 13:47:49 +02:00
Translation updater bot 26ba349dc9 Localisation updates from https://translatewiki.net.
Change-Id: I1d7d4a45bd07cae820938c0571fe9acae8c053fb
2017-08-30 10:59:48 +02:00
Piotr Miazga f8498ce70c Store map files under .json extension
We cannot serve .map files from production servers. This makes
Popups extension difficult to debug. As a simplest solution we
decided to store map files as .json files so we can easily access
js maps files.

Changes:
 - changed webpack config to store map files under .json extension

Bug: T173491
Change-Id: Iaa55f75a8c5f3e8f1f169b3ac33241cc54f0413f
2017-08-29 21:18:35 +02:00
Piotr Miazga cb72bf4e82 Do not use keyword const as it's part of ES6 syntax
Changes:
  - instead of const use var

Bug: T174424
Change-Id: I3d786614b5acbfe9a05c332edd3a14c2e5afa417
2017-08-29 16:37:46 +02:00
Translation updater bot 4bcfba08ae Localisation updates from https://translatewiki.net.
Change-Id: I7de4f71b3e4e6702d833ec516a8e3f83046610bf
2017-08-29 09:04:02 +02:00
Bartosz Dziewoński b63d2262f8 Don't use ES6 Number.isNaN
Number.isNaN is a new function introduced in ECMAScript 6.
MediaWiki only requires ECMAScript 5 supports from browsers.
Notably, Opera 12 does not have Number.isNaN. Instead, use
the global isNaN function (which behaves the same except for
non-numeric inputs).

Change-Id: If436cd26b21ce0336dfbc37144f6226e7b948e5e
2017-08-28 21:22:07 +02:00