Commit graph

3946 commits

Author SHA1 Message Date
Translation updater bot b73f5c7520 Localisation updates from https://translatewiki.net.
Change-Id: Iba3d29ac12bc3f08791231a77c6ddbed1a296244
2019-01-07 22:21:56 +01:00
Translation updater bot 33819182f1 Localisation updates from https://translatewiki.net.
Change-Id: I8fd22413c6c5da517bb5898ba374952701533d19
2019-01-06 22:15:11 +01:00
jenkins-bot d3557a738d Merge "Generate a shareIcon via composition" 2019-01-04 18:57:13 +00:00
jenkins-bot 19cf51602e Merge "Hygiene: Simplify Nearby menu item registration" 2019-01-04 18:00:53 +00:00
jdlrobson e3bdad20bb Generate a shareIcon via composition
Bug: T205592
Change-Id: Ia107b13d4f658ce7cc077ca7337530f3e448c522
2019-01-04 09:19:59 -08:00
jdlrobson d8a8410a8d Hygiene: Simplify Nearby menu item registration
The Special:Nearby page is only available if wgMFNearby is
enabled so the first 2 checks are identical.

If the page is enabled, we should be able to assume the
sysop knows what they are doing and avoid all  these
unnecessary checks. It seems foolish to also check the
existence of Geodata or a NearbyEndpoint

Additional change:
* Don't use deprecated SpecialPageFactory. Use the service
instead.

Change-Id: I3a4b8fa55fc7f29c90f7173d1d973d5f4f759a6b
2019-01-04 09:13:19 -08:00
jenkins-bot 9258806a0f Merge "pageIssuesOverlay is a factory function that returns an Overlay" 2019-01-04 15:39:48 +00:00
Translation updater bot 4b49da4e6c Localisation updates from https://translatewiki.net.
Change-Id: I5cd0481d418cd05b49838241b86a7e7209911f6f
2019-01-03 22:27:01 +01:00
jenkins-bot b8bd9b15e7 Merge "Download Icon Hygiene: Post refactor cleanup" 2019-01-03 16:55:37 +00:00
jenkins-bot 0282bb16ca Merge "Composition: DownloadIcon" 2019-01-03 16:41:34 +00:00
jdlrobson d29eca2bc8 pageIssuesOverlay is a factory function that returns an Overlay
This experiments with making PageIssuesOverlay an Overlay with
various options.

The appending of children is a little messy and points at a need
to standardise this some way
(see https://phabricator.wikimedia.org/T209647)

TODO:
* Remove the iconString property on PageIssueSummary which is no longer
needed

Bug: T209647
Change-Id: Iadd798a820dca6bbb31edc9a8570b6db7aac237a
2019-01-03 08:31:39 -08:00
jdlrobson 29e7bcd6d3 Download Icon Hygiene: Post refactor cleanup
Remove the unnecessary helper object in favor of making
functions standalone.

The function bodies are left intact but a level of indent is removed

Change-Id: If4ee79df096bf386584dba8d971a0858e70e166f
2019-01-02 13:17:06 -08:00
jdlrobson c73ff1f7a5 Composition: DownloadIcon
The DownloadIcon is reduced to a factory function that
returns an instance of Icon

Depends-On: I4d703eef68d51bbe0b03579c5cca0845e17b8c9d
Depends-On: I4a4129b2cac7c7c49559beef0b8780f3211edf9c
Bug: T205592
Change-Id: Ib87390d17bef6f50842f52cd84c9ce2b162aaff0
2019-01-02 13:16:09 -08:00
Translation updater bot e18ebe5311 Localisation updates from https://translatewiki.net.
Change-Id: I18a0e11686ff5b4fc8a301163c84b010bc51fe3c
2019-01-01 22:00:02 +01:00
Translation updater bot 22e3fe0dd2 Localisation updates from https://translatewiki.net.
Change-Id: I164fdf2ded86b80b340d5ac33e5d18fd7a0eaf6f
2018-12-27 09:20:15 +01:00
jenkins-bot 94cab7b414 Merge "Hygiene: revise CtaDrawer.events to options" 2018-12-20 21:54:35 +00:00
Translation updater bot b24a1d1f26 Localisation updates from https://translatewiki.net.
Change-Id: I163cefaafec4ce63498a6bb2fc8ac90563de648c
2018-12-20 22:26:19 +01:00
Stephen Niedzielski 9f70a004c7 Hygiene: revise CtaDrawer.events to options
Use CtaDrawer.options.events when available instead of CtaDrawer.events.

Change-Id: I7cf5d97bef9179dfa148fa4d5ca447d128031b57
Related: I4a4129b2cac7c7c49559beef0b8780f3211edf9c
Bug: T210870
2018-12-20 19:31:58 +00:00
jenkins-bot a52d271cc9 Merge "Fix: use hand cursor for links without href" 2018-12-20 19:22:12 +00:00
jdlrobson fef6dd217a Fix notification overlay margins in tablet mode
Bug: T210191
Change-Id: Ia4858dcc295216eb17c9cf69e1f21153c172c0e7
2018-12-18 00:30:35 +00:00
jenkins-bot a34979af68 Merge "Hygiene: collapse mobile.search* into mobile.startup" 2018-12-17 22:36:42 +00:00
jenkins-bot 8b15df8c75 Merge "Hygiene: collapse mobile.search LESS into mobile.startup" 2018-12-17 22:27:08 +00:00
Stephen Niedzielski 7826a451c9 Fix: use hand cursor for links without href
Links without hypertext references are still functionally links and
should be presented in the same way. This patch forces the hand cursor
to be used for such links which affects the red links drawer's "no
thanks" link.

Change-Id: Iabfef03f6726bb8a5e3a2bc90f2a7f63c8a10c02
2018-12-17 22:20:25 +00:00
Stephen Niedzielski 37333c7189 Hygiene: collapse mobile.search* into mobile.startup
MinervaNeue depends on mobile.search and mobile.search.api. These
ResourceLoader modules existed in MobileFrontend but now have been
collapsed into mobile.startup.

This patch updates Minerva's ResourceLoader module and JavaScript
references.

Bug: T210207
Depends-On: I1eae36f2927a4e0f9d1e91d604d656beb8cc33ae
Change-Id: Ied6f4873bf2550564673296e9ef4fa009ca45e5b
2018-12-17 22:03:41 +00:00
Stephen Niedzielski 0cb19335fa Hygiene: collapse mobile.search LESS into mobile.startup
MinervaNeue depends on mobile.search. mobile.search's LESS has been
collapsed into mobile.startup. This patch updates Minerva's references
and revises the SearchOverlay's CSS selector to increase specificity to
account for the new order of CSS files. Previously:

- ...
- MobileFrontend Overlay.less
- MobileFrontend SearchOverlay.less
- ...
- Minerva Overlay.less
- Minerva SearchOverlay.less
- ...

Now:

- ...
- MobileFrontend Overlay.less
- Minerva Overlay.less
- ...
- MobileFrontend SearchOverlay.less
- Minerva SearchOverlay.less
- ...

Since SearchOverlay's selector are intended to override Overlay's, it
seems appropriate to specify that a SearchOverlay is also an Overlay and
increase specificity.

Bug: T210207
Related: Ib0316020ed10eb0c921a3300501df7634a889977
Change-Id: I5c06b13f22f530fb52f37f373e081ed55f332a07
2018-12-17 22:02:58 +00:00
Translation updater bot 4842928f2b Localisation updates from https://translatewiki.net.
Change-Id: If338c7b94143f4464c0d185f435690970db0f7ae
2018-12-17 21:57:02 +01:00
jenkins-bot 2abb44b24a Merge "Remove references to "mobile.toggle" module." 2018-12-14 16:27:44 +00:00
Jan Drewniak 4522a8e10a Refactor pageIssues.js into smaller functions
Instead of having one large `createBanner` function, breaks down
that responsibility into three smaller functions:

- createPageIssueBanner
- createPageIssueBannerMultiple
- createPageIssueNotice

These functions represent issues in the new treatment, the
multiple-issues template, and the old treatment.

createBanner now delegates the creation of these banner types to these
new functions.

A new property to PageSummary, $el, has also been added. This allows us
to manipulate the issues DOM via the PageSummary object, instead of using
the `$metadata` variable in createBanner.

This approach to the page-issues DOM also solves the problem of
wrong or missing icons in T202349.

Bug: T211257, T202349
Change-Id: I50a2d8e3ae94913dc060ceedaaf1fa7e1756617f
2018-12-14 02:03:58 +01:00
Jan Drewniak 1589a15862 Remove references to "mobile.toggle" module.
mobile.toggle was folded into mobile.startup in
mobileFrontend, so moving references to that instead.
- Changing require statements
- moving skinStyles/mobile.toggle/minerva.less to
   skinStyles/mobile.startup/toggle.less
- Replacing references to mobile.toggle in skin.json

Depends-On: Iecc1870f08532e8c7893861afdd54f069da54be2
Bug: T210208
Change-Id: Ie67cd50a2d042fbbaaef348b9b62d64193900d78
2018-12-14 00:45:34 +01:00
jenkins-bot 9e3e499871 Merge "Tablet style should apply to mbox-text-div as well as mbox-text-span" 2018-12-13 22:32:54 +00:00
jdlrobson 2258da2ff8 Tablet style should apply to mbox-text-div as well as mbox-text-span
Bug: T206887
Change-Id: Id992f92eef8a5b6001e12fa42e2333cd266cc098
2018-12-13 11:41:15 -08:00
Volker E f0608db19a build: Update 'stylelint-config-wikimedia' to v0.5.0 and make pass
Updates code comments and whitespacing.

Change-Id: If7665beaa2d342881483fd7a9fc0fc880768d2ef
2018-12-12 23:26:48 +00:00
Translation updater bot 339e31752a Localisation updates from https://translatewiki.net.
Change-Id: I4cd952aec11b76be8a71dcb0061ae21c72c62e73
2018-12-11 22:21:48 +01:00
jenkins-bot d9831e8ac3 Merge "Remove usage of global event emitter from Minerva" 2018-12-10 15:32:33 +00:00
jenkins-bot c21208fa55 Merge "build: Update sniff list in .phpcs.xml" 2018-12-10 09:47:47 +00:00
Translation updater bot 857f5684bd Localisation updates from https://translatewiki.net.
Change-Id: Id92ed8ce680d235bb51eee651d51bee2c167d7f6
2018-12-09 22:16:15 +01:00
Umherirrender ddbe40b90d build: Update sniff list in .phpcs.xml
FunctionDeclarationArgumentSpacing is now part of the default

Change-Id: Ic71d94a03a733ed2aa83cbddca7c2b239bb30511
2018-12-08 15:34:19 +01:00
Translation updater bot dbf811b736 Localisation updates from https://translatewiki.net.
Change-Id: I36c993bfaf3ad697cc8921bfa0a48126a82f0ece
2018-12-07 22:06:25 +01:00
jenkins-bot b564dabcd9 Merge "Remove usage of global event emitter from skins.minerva.talk/init.js" 2018-12-07 16:00:38 +00:00
Nicholas Ray 5bfd949f9a Remove usage of global event emitter from Minerva
This patch removes the remaining usages of M.on/M.off/M.emit
(functionality derived from moduleLoader.js in MobileFrontend) in
Minerva and continues the work of
Id990b0e1a53221d5c1cb3e3012aed0e27d801fc2 (patch for MobileFrontend).

This patch and the patch for MobileFrontend should be merged together as
they both depend on eachother.

Depends-On: Id990b0e1a53221d5c1cb3e3012aed0e27d801fc2
Bug: T156186
Change-Id: I005d2fcdbf91c2f1ac98178dfa388aa8174e7530
2018-12-06 19:30:09 -07:00
Nicholas Ray 8feff10336 Remove usage of global event emitter from skins.minerva.talk/init.js
This patch removes usages of M.on (functionality derived from
moduleLoader.js in MobileFrontend) in skins.minerva.talk/init.js and
continues the work of I0e35776114ffa137b219eff0a900a0a0c52a27bb (patch
for MobileFrontend).

This patch and the patch for MobileFrontend should be merged together as
they both depend on eachother.

Depends-On: I0e35776114ffa137b219eff0a900a0a0c52a27bb
Bug: T156186
Change-Id: Ic766d0bbf2746df898038115e2e4bc791ac10359
2018-12-06 19:29:43 -07:00
Translation updater bot c95c5ef29a Localisation updates from https://translatewiki.net.
Change-Id: I749bbe36ef57ae054c8fdfac55a23705646f648c
2018-12-06 22:12:28 +01:00
Translation updater bot 4246e079e4 Localisation updates from https://translatewiki.net.
Change-Id: I326243574708aba77901106fd9fa806cd1998b59
2018-12-05 22:09:38 +01:00
jenkins-bot fe983c5102 Merge "mobile.watchstar is a deprecated module" 2018-12-03 21:35:47 +00:00
Translation updater bot f038060595 Localisation updates from https://translatewiki.net.
Change-Id: Ied038f408d97829d787e82a4876b38f5b6a208d7
2018-12-03 22:14:54 +01:00
Translation updater bot 923ab80dba Localisation updates from https://translatewiki.net.
Change-Id: I1c898d02af860833f22300b33cc109a4a73d048c
2018-12-02 21:55:02 +01:00
Translation updater bot 036db5e86d Localisation updates from https://translatewiki.net.
Change-Id: I4a8054a3ea37dc6d33b2c29d5f5edf78e4cd77c7
2018-12-01 22:02:06 +01:00
jdlrobson 87942c34f9 mobile.watchstar is a deprecated module
Referencing it triggers deprecation warnings so should be updated

Bug: T208921
Change-Id: I7266a067a14bfa38a998f426e18f096515b7bfa7
2018-11-30 15:28:03 -08:00
Translation updater bot da1417c1eb Localisation updates from https://translatewiki.net.
Change-Id: I61c6eb128dc8c2eb8cc0ff6414e7d749dc921979
2018-11-30 22:04:05 +01:00
jdlrobson c31da9a236 QA: Drop protected page test
* On commit it needs admin rights which it doesn't have
* On browser tests the toast flakes too much.

Bug: T208808
Change-Id: I1fa93c8f451f3f839030fa7a144b1cb285c4239d
2018-11-29 16:51:04 -08:00