mediawiki-skins-MinervaNeue/includes
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 Show labels in page-actions menu on desktop widths 2019-10-28 12:53:38 -07:00
permissions [dev] [edit] rename EDIT permission to CONTENT_EDIT 2019-09-04 19:29:38 +02:00
skins MainMenu is a controller not a View and server rendered (take 2) 2019-10-29 16:37:04 -07:00
LanguagesHelper.php Extract language/variants check to a service 2019-07-16 19:53:57 +00:00
MinervaHooks.php Remove Share feature 2019-10-28 12:54:14 -07:00
MinervaUI.php Add GPL file header to PHP classes 2018-04-15 16:23:10 -07:00
ResourceLoaderLessVarFileModule.php Add GPL file header to PHP classes 2018-04-15 16:23:10 -07:00
ServiceWiring.php [edit] [UI] hide edit section links for blocked users 2019-09-03 22:29:43 +02:00
SkinOptions.php Remove Share feature 2019-10-28 12:54:14 -07:00