mediawiki-skins-MinervaNeue/resources/skins.minerva.scripts
jdlrobson 7f68c3d3ad MainMenu is a controller not a View and server rendered (take 2)
There should be no caching implications for this change, as the main menu
has been server side rendered on all wikis since 10th October.

As Stephen pointed out somewhere, this is a bit of a micro-optimisation
Let's simplify this code by always rendering it in the HTML. MainMenu.js
as a result becomes a controller that just decides when to show it.

The geolocation check for Nearby is removed given the fact that all
grade A browsers for mediawiki have Geolocation support.

ev.preventDefault in onSkinClick is dropped since the link to the '#'
(the default behaviour) is wanted

Additional changes
* Browser support suggests "animations" class is redundant now
* `open` event no longer filed - not being used anywhere
* Transparent shield is now managed by the MainMenu controller not
the skin (which was confusing)
* Test geolocation using a simple feature tests
rather than abstracting it away inside Browser
* The main menu button is always hidden under either a translucent shield
and/or the main menu itself when it has been opened
so so it's not possible to ever click it while the menu is open
 - the click handler is thus simplified
removing a check for the class of the button

Bug: T234650
Change-Id: If101eebbdbda1519af922745917237648722820e
2019-10-29 16:37:04 -07:00
..
menu MainMenu is a controller not a View and server rendered (take 2) 2019-10-29 16:37:04 -07:00
page-issues Hardcode page issues vertically alignment 2019-10-08 20:41:31 +00:00
AB.js Curtail use of mw.mobileFrontend in Minerva 2019-10-01 14:54:59 +00:00
ctaDrawers.js Use core watchstar code 2019-10-15 15:33:25 -07:00
downloadPageAction.js Curtail use of mw.mobileFrontend in Minerva 2019-10-01 14:54:59 +00:00
errorLogging.js Remove wgMinervaErrorLogSamplingRate 2019-10-03 14:57:14 +00:00
init.js Use core watchstar code 2019-10-15 15:33:25 -07:00
menu.js MainMenu is a controller not a View and server rendered (take 2) 2019-10-29 16:37:04 -07:00
mobileRedirect.js Trigger AmcOutreach on History, Talk, and Desktop links 2019-10-02 14:55:18 -06:00
preInit.js Render main menu and shield on server side 2019-10-04 19:35:28 +00:00
references.js Curtail use of mw.mobileFrontend in Minerva 2019-10-01 14:54:59 +00:00
search.js Curtail use of mw.mobileFrontend in Minerva 2019-10-01 14:54:59 +00:00
styles.less Unify transition values across board 2019-10-24 12:11:52 -07:00
TabScroll.js Improve tab scrolling logic 2019-07-30 18:35:14 -07:00
talk.js Trigger AmcOutreach on History, Talk, and Desktop links 2019-10-02 14:55:18 -06:00
TitleUtil.js mediawiki.RegExp (deprecated) -> mediawiki.util 2019-09-09 18:10:35 +00:00
Toolbar.js Curtail use of mw.mobileFrontend in Minerva 2019-10-01 14:54:59 +00:00
UriUtil.js Embrace packageFiles 2019-07-16 18:04:10 +00:00
watchstar.js Use core watchstar code 2019-10-15 15:33:25 -07:00