Commit graph

479 commits

Author SHA1 Message Date
jdlrobson 71bf8604ab Move error handling inside Minerva
ReferenceDrawer
Instead of doing this inside the ReferenceDrawer component
itself, we'll do this here.

To be backwards compatible we check the value is truthy.
When I5a7b23f60722eb5017a85c68f38844dd460f8b63 is merged
this can be removed.

For NotificationBadge we pass the onError option which
is now available and allows us to clean up the NotificationBadge

Change-Id: I47db11fa945a05f3b2a9a43c3cf053ca489a38fa
2018-03-08 20:03:22 +00:00
jenkins-bot 22ca1e5f39 Merge "Hygiene: remove window.location use from overlays" 2018-03-08 17:59:56 +00:00
Stephen Niedzielski 41a43c5ce1 Hygiene: remove window.location use from overlays
Bug: T173539
Depends-On: I158dd7883be2846cf0d48bbd7e89fe2cd64a57d3
Change-Id: I87741667ca06cc701e5265aff13ba0492501de26
2018-03-07 17:13:59 -06:00
Translation updater bot 5ab9828cec Localisation updates from https://translatewiki.net.
Change-Id: Ib83a777455e7495fb66b52a7d0c49d6d93ba49f9
2018-03-07 22:26:25 +01:00
Translation updater bot ce2b87e1c6 Localisation updates from https://translatewiki.net.
Change-Id: I79d2789bb759b98f603784676513a4ee8d65ad45
2018-03-06 21:59:31 +01:00
Stephen Niedzielski 27bc7e7212 Chore: move window.location use to client
Move window.location manipulation from ImageOverlay view to MinervaNeue.
Also, don't leave a hanging empty URL fragment when closing the overlay.

Bug: T173539
Related: I292c0578716ff56e0e069aa8006f840025d78a88
Change-Id: I56ba9217aa9cd4e0a925c623060022392e3021c7
2018-03-06 08:35:48 -06:00
Translation updater bot 973b40c5ad Localisation updates from https://translatewiki.net.
Change-Id: Ib3c8c7bc81b40b967d31c98aff76f725c5470117
2018-03-05 22:07:12 +01:00
Translation updater bot 06618b4714 Localisation updates from https://translatewiki.net.
Change-Id: I5bed0e43bb5143ca8e626993fae18e5bdaa69d44
2018-03-03 22:06:41 +01:00
jenkins-bot 54f07cedf9 Merge "Make dependency to jquery.cookie explicit for mobileRedirect code" 2018-03-02 00:46:18 +00:00
jdlrobson 69053d13d3 Make dependency to jquery.cookie explicit for mobileRedirect code
Change-Id: I9ecdf9b507df6a9ec04933981ec5960c524e2323
2018-03-01 16:27:00 -08:00
Translation updater bot 7f13647e2b Localisation updates from https://translatewiki.net.
Change-Id: Ieed27b7c4e7e562448ab4beccd415095285975d5
2018-03-01 21:59:05 +01:00
Jan Drewniak 3b83933b57 Removing tap-highlight override for iOS
Bug: T188043
Change-Id: I78558b0badc3ecdaf4eb99ab1ed2a17fac3dd9e1
2018-03-01 19:04:13 +00:00
jenkins-bot eb8b6d492f Merge "Hygiene: move CategoryAddOverlay window use to client" 2018-03-01 18:22:53 +00:00
Stephen Niedzielski 9431e9a6e3 Hygiene: move CategoryAddOverlay window use to client
MinervaNeue should be solely responsible for controlling the flow of its
own UI. This patch puts the responsibility for changing the add category
dialog state when a category has successfully been added onto
MinervaNeue.

Bug: T173539
Related: Ic61ac46e21f510e5b168d7d98b68a59429eb7044
Change-Id: I5010d5ad1a27f09c1c5b0b4188dcec445cc3229f
2018-03-01 18:17:34 +00:00
Jan Drewniak aa7e20f8c3 Passing currentPageTitle option to TalkSectionAddOverlay
Passing in a new currentPageTitle option to TalkSectionAddOverlay.
Since `title` param has spaces instead of underscores,
`pageTitle` also gets spaces by using `M.getCurrentPage().title`
instead of mw.config.get( 'wgPageName' )

Bug: T184273
Change-Id: I68a46e512fde0c6c15e888bd3b57da21417b1085
2018-02-28 21:08:00 +00:00
Translation updater bot 48593a7656 Localisation updates from https://translatewiki.net.
Change-Id: I0e9240ef0f240398969a79e16a6c9a64b62dbd58
2018-02-28 22:06:24 +01:00
Translation updater bot 1a484514d2 Localisation updates from https://translatewiki.net.
Change-Id: Ibeda9ee2e4fb4652d9cecea5b00fd1e544a46009
2018-02-27 22:02:23 +01:00
Translation updater bot bd5f80ff08 Localisation updates from https://translatewiki.net.
Change-Id: I3d04f3a59d312bb546a8ba06d5d5b32125246eab
2018-02-26 21:59:00 +01:00
libraryupgrader 7017cccb29 build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: Ie158ec43ef6307941a7f5a025be6c8bcc35e5ffd
2018-02-25 13:12:05 +00:00
Translation updater bot 8f5013020d Localisation updates from https://translatewiki.net.
Change-Id: Id5a19139e22cdde72a81a679e17e9ee272f45df0
2018-02-22 22:40:07 +01:00
Translation updater bot ef5d6606ab Localisation updates from https://translatewiki.net.
Change-Id: I712c2147f6ed70e2f0e40da68943c3844def0a3e
2018-02-20 22:06:25 +01:00
Translation updater bot 98a5135257 Localisation updates from https://translatewiki.net.
Change-Id: I31de247009c15e16d74cf1c8492b01ef03489a64
2018-02-19 22:04:49 +01:00
Translation updater bot 8f11cfe01e Localisation updates from https://translatewiki.net.
Change-Id: Ib4e8062a1b0df7f09aea9ca942f562e1dfbede49
2018-02-18 22:16:31 +01:00
libraryupgrader f32328fb05 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I4289fd11b6390bc6fab66dc8c1734a3fea39c016
2018-02-18 13:13:05 +00:00
Kunal Mehta e196a20e9d Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: I957eec9c5df224e367233c9ce23b9631f04c7458
2018-02-16 10:40:37 -08:00
Translation updater bot ec019dab5b Localisation updates from https://translatewiki.net.
Change-Id: I8a9b392257d76ce39694c90c2d9492f5986cec39
2018-02-15 22:06:54 +01:00
libraryupgrader c4eb15654e build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: Ibb3b0d2f4713609cd43d8c411561ab0bcdf941ce
2018-02-15 17:17:29 +00:00
jdlrobson 3bfc4c7f48 Remove unused userpage icon from repo
This was removed in Ia3fb34250714fe4ccb10c32a7027fda167e06a16
It is no longer referenced anywhere.

Bug: T187222
Change-Id: I14d486d962cfd1e4277a82d78084a785093d679d
2018-02-15 08:36:44 -08:00
Translation updater bot 315ed5e5e1 Localisation updates from https://translatewiki.net.
Change-Id: If1ad64314dcc0a187aa322ea98af3ab374b9fb81
2018-02-14 22:11:28 +01:00
jdlrobson 196fb20836 Restore Minerva specific userpage styles for all user pages
In T182162 these were removed incorrectly. They should only have
been partially removed.

Bug: T187222
Change-Id: Ia3fb34250714fe4ccb10c32a7027fda167e06a16
2018-02-13 16:14:54 -08:00
Translation updater bot 22104a41a2 Localisation updates from https://translatewiki.net.
Change-Id: I17b4d0beb9f4a8a6c3f0615a57447851bf088cda
2018-02-13 22:04:49 +01:00
Tulsi Bhagat 4419975fb0 Removed deprecated position statements from resource loader module
Bug: T184257
Change-Id: I79d2efce6d734b041be7a2c9d514d809ad6f450c
2018-02-12 20:12:07 +00:00
jenkins-bot 45e3f024e0 Merge "Remove main page toggle check" 2018-02-12 19:22:54 +00:00
Translation updater bot 577fddfef8 Localisation updates from https://translatewiki.net.
Change-Id: Iad94a02efe76adbd942c26fee48f27f089ba1506
2018-02-11 10:21:35 +01:00
jenkins-bot 7c927eca59 Merge "Pages that do not exist cannot have issues" 2018-02-10 09:00:49 +00:00
Translation updater bot 231d75d10c Localisation updates from https://translatewiki.net.
Change-Id: I22db1a2bfacebdcf948b3af4b81af2b5302ff7fb
2018-02-10 08:51:05 +01:00
Translation updater bot de6cebe54d Localisation updates from https://translatewiki.net.
Change-Id: I68f58148c6140f16db5b543aedc323477b2ca0f7
2018-02-09 08:35:35 +01:00
jdlrobson 6ab5944b09 Pages that do not exist cannot have issues
Bug: T185359
Change-Id: I4d2adcd31d31761c178cbb8df8db696f654a795d
2018-02-08 22:09:49 +00:00
Translation updater bot 437ff0ccba Localisation updates from https://translatewiki.net.
Change-Id: I75359ffddd176f361bc9bd0e30b7fd54d213b7df
2018-02-07 21:57:22 +01:00
jdlrobson b0970a4a7e Remove main page toggle check
This is redundant.
page.getLeadSectionElement() will return null if the main page
is special casing and sections have not been wrapped.

Removing this check also allows toggling to work on pages where
users want to treat main pages like any other page.

Bug: T177337
Change-Id: Ic52fd1c9f6cc4f727ca52c871f29c76997e47f1d
2018-02-07 09:10:47 -08:00
jenkins-bot 211a53fb67 Merge "Flag that Minerva now depends on 2.1 of MobileFrontend" 2018-02-07 14:16:42 +00:00
jdlrobson 4389b67989 Explicitly use LESS variable for breakpoint defined in mediawiki ui
$wgResourceLoaderLESSVars is deprecated. Let's not use it anymore.

Change-Id: If28ab6884668700bc46533c8e2c377f17e6be696
Depends-On: Ib9f843147db4473ce5590741e0fb490384b0007e
Bug: T171365
2018-02-06 22:23:32 +00:00
jdlrobson d783eb934d Flag that Minerva now depends on 2.1 of MobileFrontend
The changes to the FeatureManager mean that MobileFrontend
2.0 and Minerva are now incompatible.

Change-Id: Ia5ccb3b66bee2fb99e58c297f1ca91df642323af
2018-02-06 22:23:27 +00:00
jenkins-bot 7b84dc6171 Merge "Merge remote-tracking branch 'gerrit/specialpages' into T182217" 2018-02-06 22:19:43 +00:00
jdlrobson fa27cf8a0d Merge remote-tracking branch 'gerrit/specialpages' into T182217
(Depends-On I535b24803341dc3912aed4bef06970e2861fe3ad)

Change-Id: I3fc50739415686032683c421008e832e785e1651
Bug: T182217
2018-02-06 21:39:22 +00:00
Translation updater bot 35298ff1d2 Localisation updates from https://translatewiki.net.
Change-Id: I600ef4dbeeb8c7cd472c8b92db4cbd1867f2035e
2018-02-06 22:10:58 +01:00
jdlrobson 97136f9d63 Prepare for breaking change to MobileContext
With the introduction of the FeaturesManager the
getConfigVariable method will disappear.
(I535b24803341dc3912aed4bef06970e2861fe3ad)

That change cannot be merged until Minerva stops using the
method.

This temporary fix ensures it resolves to false when the method
doesn't exist.

Bug: T182217
Change-Id: I619fd8fac47a98d1ff8f3646d61b8e285246a17f
2018-02-05 13:15:34 -08:00
Translation updater bot 1d609fdc6b Localisation updates from https://translatewiki.net.
Change-Id: I11dadc66377dae900543e44849842a794dcb89e3
2018-02-04 21:56:42 +01:00
Translation updater bot b40650330a Localisation updates from https://translatewiki.net.
Change-Id: Ia5c0d4f0cb0dd4006dd08e88688cbae7ca02a161
2018-02-03 22:04:25 +01:00
Timo Tijhof d5145178b9 Hygiene: Replace QuickTemplate test subclass with mock
Change-Id: I32aa9d5103f4b6790a5118d5cad2cd91d3ddc459
2018-02-03 03:11:14 +00:00