Commit graph

405 commits

Author SHA1 Message Date
Stephen Niedzielski 7fcc2b06bd Hygiene: add package-lock file
Add NPM package-lock file, a new feature of NPMv5.

http://blog.npmjs.org/post/161081169345/v500

Change-Id: I4cd5d9c040ceba8fe211c7f2f8cc745b6ca0e312
2018-01-29 20:56:47 +00:00
Translation updater bot 351512265b Localisation updates from https://translatewiki.net.
Change-Id: I772aae3c0e11bd47523e6e85726947aff743e91e
2018-01-29 21:55:57 +01:00
jenkins-bot 780f3c5e07 Merge "Remove use of QuickTemplate::setRef" 2018-01-27 13:15:49 +00:00
Timo Tijhof 08985b2229 Remove use of QuickTemplate::setRef
Follows-up 2c01147c13be, 429f557cc7f68a46.

The array is already copied by value once returned from getLanguages().
Setting it by reference within the QuickTemplate instance doens't
have any effect, but does logically break the concept of pushing
data in a single direction through the skin.

Remove use of setRef in preparation for restricting skins only
consuming data as given, without the ability to change data
in other parts of the system.

Bug: T140664
Change-Id: I0978dd5c123fda57f45534a8d2e51b7e65e55223
2018-01-27 13:11:37 +00:00
Translation updater bot 0c95f210db Localisation updates from https://translatewiki.net.
Change-Id: I9c2aebf833f8b9d0070c7adc5c648d82311ba8b5
2018-01-26 22:17:24 +01:00
Alangi Derick 8cd73c01af Update Minus-X utility from 0.2.1 to 0.3.0 in MinervaNeue skin
Change-Id: Ibbdef91034b2e3ac3d3abb50f63d1725babad66c
2018-01-26 16:50:32 +01:00
Translation updater bot b9accca0b2 Localisation updates from https://translatewiki.net.
Change-Id: I57a5727e515f44bdf902eac6dfcc4d0f69592854
2018-01-25 21:57:38 +01:00
jenkins-bot d5c89c88a0 Merge "Prefix icons in Minerva" 2018-01-23 00:28:54 +00:00
Translation updater bot 364b36f54d Localisation updates from https://translatewiki.net.
Change-Id: I492bca3862dac924b42bf167bbd3075f307ea2bb
2018-01-22 21:58:09 +01:00
Translation updater bot 929324cc08 Localisation updates from https://translatewiki.net.
Change-Id: Id4cf550e05bf4243e03fb3f4d27ded1f156faaef
2018-01-21 21:57:28 +01:00
Translation updater bot 319b1829a9 Localisation updates from https://translatewiki.net.
Change-Id: I4d2855ede8ddd7a26ad2e0cd98eef90909de2eec
2018-01-20 14:08:45 +01:00
jdlrobson c5d09c0288 Prefix icons in Minerva
Changes:
* MinervaUI will now prefix any icons with `minerva`
* Update definitions in skin.json, retaining selectors for cached
HTML for icons that are rendered via PHP.
* In I9021c53c2c04bdd7ce395eed33d89986acbfea6d watch and watched
and arrow are moved to MobileFrontend so are removed from the RL module
skins.minerva.icons.images.scripts as they are not
used directly in this repo. user and anonymous are no longer used
so also removed.
* Presentation of userpage now belongs to MobileFrontend. Icons
are styles were moved there in depends on. They are retained in
skin.json to support cached HTML as user pages are subject to
cache. They can be removed in a week.
* In code review we noticed the anonymous icon was badly named. We
rename to login. No caching implications.
* Main menu icons are now prefixed with minerva rather than mf to
reflect where they come from.

Depends-On: I9021c53c2c04bdd7ce395eed33d89986acbfea6d
Bug: T182162
Change-Id: I93264024f4915fc910c792b1905b89cdc6b8b546
2018-01-19 15:30:03 -08:00
Translation updater bot 91d5fee9d7 Localisation updates from https://translatewiki.net.
Change-Id: I8c90b4189139d586259abf507849370105344c9d
2018-01-18 22:30:39 +01:00
petarpetkovic 413fcc12f6 Fix seen notifications appearing as unseen on mobile
Important note: Make sure to distinguish unseen from unread

One way to reproduce minerva and non-minerva notification inconsistencies:
- Have all your alerts and notices seen. This is displayed with grayed out
number on vector skin or no number at all, if you have (marked as) read.
- Generate new alert or notice (one is enough) in your preferred way.
- You can check minerva and non-minerva at this step. Both should be in sync.
But don't perform any additional action.
- Open the notification popup in some non-minerva skin (I have tried with
vector and monobook), marking it as seen.
- Check the notification icon in minerva. At this point, you should see
notification displayed as unseen.

The reason bug appeared in the first place is that alert/notice timestamps
were mixed up when seen time is obtained. We get seen time from
EchoSeenTime class, where we get smaller of the two timestamps,
using PHP method `min()`. See I27109ee6a248. Then, we get last unread
notification timestamp (which can be either alert or notice), and compare
that to seen time. That leads to the situation when you have only one of
alerts or notices with unread items, smaller timestamp is used for seen,
and most recent for unread, at which point we compare timestamps for
two separate things.

Previous behavior of getting seen timestamps (using max instead of min) would
probably solve the problem, but some other inconsistencies might arrise.
This should prevent any weird and unpredictable behavior to happen.

Bug: T183076
Change-Id: I20bbd6c590086b1c3eccf82983aad59eb3144a7a
2018-01-18 14:18:56 +01:00
Translation updater bot 4907c66ffb Localisation updates from https://translatewiki.net.
Change-Id: I593d9d98f3a45f0653ed9efefcfb49e016708b5b
2018-01-17 22:24:47 +01:00
jenkins-bot 80f51c4d5d Merge "Fix infobox styles to work well with multiple column infobox rows" 2018-01-17 20:04:02 +00:00
jenkins-bot 2a6114b7dd Merge "Show Download button only on Android >= 5 & Chrome >= 41" 2018-01-16 21:51:52 +00:00
Translation updater bot 44aaf215ce Localisation updates from https://translatewiki.net.
Change-Id: Ic45d9d7ff37e47bccd04b88166d1bcd23d3d81d6
2018-01-16 22:28:29 +01:00
Piotr Miazga 4ca5666c06 Show Download button only on Android >= 5 & Chrome >= 41
Changes:
 - moved DownloadButtton checks & initialization to separate function
 - introduced supportedNamespaces variable for better readability
 - reorganized huge if(){} statement to set of smaller if's with
 nice comments why this configuration is not supported
 - introduced getAndroidVersion and getChromeVersion helper functions
 - added check to not allow Android < 5 or Chrome < 41
 - added unit tests

Bug: T182059
Change-Id: Ib5064459ee56aed68179389f37b4bc3b5c2c4492
2018-01-16 22:15:07 +01:00
David Sn 5d46c576bb Fix infobox styles to work well with multiple column infobox rows
I used the fix provided by TheDJ and tested out locally
on Firefox 57 and Chrome latest, but I couldn't test out
any grade C browser as on Linux it's really hard to find
such an outdated browser like Internet Explorer on Windows.

Bug: T168716
Change-Id: I8e03610e4eb3c93b80bb757592c2fb3079a68412
2018-01-16 17:19:39 +00:00
Translation updater bot 2f2095ac50 Localisation updates from https://translatewiki.net.
Change-Id: I4e577f59c60991b8e5bcfd743ce4170eef1eef21
2018-01-15 22:04:47 +01:00
Translation updater bot cea0408065 Localisation updates from https://translatewiki.net.
Change-Id: I710ee51fc3fed337c1488c9f9c2d99339212312e
2018-01-14 21:59:02 +01:00
Translation updater bot 588fce815d Localisation updates from https://translatewiki.net.
Change-Id: I57e7be1c2f32b59c576a681b17fc942532a461a5
2018-01-13 21:56:31 +01:00
Translation updater bot def790a9e9 Localisation updates from https://translatewiki.net.
Change-Id: I17c2c83551ab0c3270f9d5945c5bb8aaaf68c8a5
2018-01-11 23:28:13 +01:00
jenkins-bot 069b71ad55 Merge "Remove reference to mw-editButtons-pipe-separator, now removed from MW" 2018-01-11 20:55:40 +00:00
Piotr Miazga 3c4f3a0ddd Send events when user taps download icon
To track "download" button interactions we have to notify
EventLogging that button was clicked. The easiest approach is
to use mw.track() and then in WikimediaEvents subscribe to the
`minerva.downloadAsPdf` events and track page impressions.

Bug: T181297
Change-Id: Iecbebe37c165dda3f26af47906662f6e5a81321d
2018-01-11 18:50:31 +00:00
James D. Forrester c7c09daa66 Remove reference to mw-editButtons-pipe-separator, now removed from MW
Change-Id: I59d34dfdd13122db0229ce40909d66d88bdd8d65
2018-01-10 14:30:20 -08:00
Translation updater bot a8470464b7 Localisation updates from https://translatewiki.net.
Change-Id: Ia177f9b964f14483000b2a99cc620f18a85ded21
2018-01-08 22:10:57 +01:00
Translation updater bot 3b8c3653be Localisation updates from https://translatewiki.net.
Change-Id: I1e27025b65599e5696ec37d49afa60b463e8f026
2018-01-07 22:24:16 +01:00
Translation updater bot e3c3c4d674 Localisation updates from https://translatewiki.net.
Change-Id: Id45627fbbd97a7738791ae21252a37f72ab4fcc2
2018-01-06 08:47:31 +01:00
jdlrobson a807fd6fed Avoid OOUI/download icon nameclash
Short term fix to ensure icon doesn't change
when oo-ui is loaded.

Prefix with 'mf-' (we do this in main menu) to avoid nameclashes

Bug: T182162
Change-Id: Ia6ceb620ed2710d97387a326b74f1a02236cd0d0
2018-01-04 20:47:42 +00:00
petarpetkovic c8195e37ef Fix notifications always appearing as unseen
After Ie92b223a48 removed $flags parameter from EchoSeenTime::getTime(),
we got 0 as $format passed to the method, which caused mismatch in
timestamp string formats when comparing to $notifLastUnreadTime timestamp,
which caused notifications to appear always as unseen (although that's
unpredictable, because of wrong format used).

Bug: T183076
Change-Id: Ia4ff0bc4c3b7ed80b5a22a9ca0052f1909469180
2018-01-03 18:21:40 +01:00
jenkins-bot 8466feb591 Merge "Revert "Fix infobox styles to work well with multiple column infobox rows"" 2018-01-02 22:07:51 +00:00
Jdlrobson fc54446a40 Revert "Fix infobox styles to work well with multiple column infobox rows"
This reverts commit b3dc650f15.

Change-Id: I18b4cfd30d0703844748a2b4fb934f5824537970
2018-01-02 22:02:12 +00:00
jenkins-bot 7c92351bb9 Merge "Fix infobox styles to work well with multiple column infobox rows" 2018-01-02 21:16:44 +00:00
Translation updater bot 0abbc575a0 Localisation updates from https://translatewiki.net.
Change-Id: Id2247fb0bca1d8ec35d9a1d74a68291644c0ebae
2018-01-02 10:07:39 +01:00
Translation updater bot b391302bc9 Localisation updates from https://translatewiki.net.
Change-Id: I7a049bb1e503721e3c0d7d57510d4186d1a996e3
2018-01-01 08:47:11 +01:00
libraryupgrader cc984c2f11 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: Ib81b8adc5730d9715d767b1b5d39cc3e005a69b9
2017-12-30 04:01:12 +00:00
Umherirrender bf974861a2 Fix spacing of @covers
Change-Id: I61d2cd2cb4523433bda37f349cf5327bfb4c1b66
2017-12-29 21:26:59 +01:00
Translation updater bot 80241cc1cb Localisation updates from https://translatewiki.net.
Change-Id: Ie5a6d95c2def9ecb642cbf8db2fc13d5e127ec31
2017-12-29 09:36:17 +01:00
Translation updater bot b3f9e1db5f Localisation updates from https://translatewiki.net.
Change-Id: I9799b76e1fc46b16d5e450b4c03491e3b27b7444
2017-12-27 10:11:01 +01:00
Translation updater bot 84a7a21d41 Localisation updates from https://translatewiki.net.
Change-Id: I316479d5773d75f7abaf3bae77298b03dc7e39e5
2017-12-26 10:06:30 +01:00
David Sn b3dc650f15 Fix infobox styles to work well with multiple column infobox rows
I used the fix provided by TheDJ and tested out locally
on Firefox 57 and Chrome latest, but I couldn't test out
any grade C browser as on Linux it's really hard to find
such an outdated browser like Internet Explorer on Windows.

Also, I am unsure whether it will work in production
with the example article from the task, wasn't able
to recreate the article fully on my local devwiki.

Bug: T168716
Change-Id: Ied7c15f7a254228c23111df79da44d6167f1baac
2017-12-23 00:35:06 +00:00
Translation updater bot 19613c01bd Localisation updates from https://translatewiki.net.
Change-Id: I3d6994ea7341f9286ac7b2c61af79da72309651f
2017-12-22 22:02:19 +01:00
Translation updater bot 9599d8db7f Localisation updates from https://translatewiki.net.
Change-Id: I2a98ceaf5a46439932dcd9dc57052579708f9828
2017-12-21 21:59:39 +01:00
Translation updater bot 83eca0a53c Localisation updates from https://translatewiki.net.
Change-Id: I94b1ec612cd74b435da4c6743667bd96d8205311
2017-12-20 23:00:21 +01:00
Translation updater bot 8118fd35db Localisation updates from https://translatewiki.net.
Change-Id: I5a878a43d9b7ed4df7d92cebda0d8d050740c065
2017-12-18 22:23:14 +01:00
Translation updater bot ad56dda3e1 Localisation updates from https://translatewiki.net.
Change-Id: I5da13b02019fba4ed7db052c81d138b60b869a71
2017-12-17 22:05:31 +01:00
Rafid Aslam 88d889ab25 Add minus-x to "composer test"
Add minus-x to "composer test" and "composer fix"

Bug: T175794
Change-Id: I54088f3895ca931006c6a004a48c87f9445abf8c
2017-12-16 16:09:12 +07:00
Translation updater bot 85bb48bfcc Localisation updates from https://translatewiki.net.
Change-Id: Ie2c4427b4bdd8a5391250d9b6ff376d212a91b26
2017-12-15 22:09:01 +01:00