mediawiki-extensions-Echo/modules
jdlrobson d3c0494a17 Dormant mobile notifications overlay lives in Echo
This code will be enabled when Iba1d7863171268066bf7597182c57a0a2041497f
relinquishes the responsibility for rendering the Echo notification badge
and wiring up of the related JS.

It makes 3 assumptions:
1) Minerva will expose a VERSION property on the skins.minerva.scripts module
to tell Echo it can begin control of the functionality
2) A new hook `SkinMinervaReplaceNotificationsBadge` will run on the server side
allowing Echo extension to render the Notifications badge in Minerva.
3) A new client side hook (echo.mobile) will fire whenever the Echo dialog is opened or
closed.

All code relating to Echo inside MobileFrontend and Minerva is
moved here.
CSS for the modules is kept in Minerva as skinStyles

This code remains dormant until Iba1d7863171268066bf7597182c57a0a2041497f lands.
It pre-registers a "to-be-created" hook SkinMinervaReplaceNotificationsBadge that
substitutes the Minerva badge.

It also watches the export value of skins.minerva.scripts for a VERSION value - when
this appears it will take the signal that it should manage the frontend code.

In the new system the mobile specific code is limited to the mobile version of
Minerva. The desktop version of Echo loads on Minerva desktop - presenting an
opportunity in future to consolidate both implementations to use the same component.
The mobile version of Vector and Timeless for example will load the mobile overlay
(with existing styling issues that we don't need to worry about right now given
we don't officially support skins other than Minerva as mobile)

Testers:
* Check require( 'ext.echo.mobile' )(); inside initMobile
inside ext.echo.init does not fire until
Iba1d7863171268066bf7597182c57a0a2041497f is checked out.

Depends-On:  I1a66939d2b596094b419de40b370e79f09c85581
Bug: T221007
Change-Id: I09c27a084100b223662f84de6cbe01bebe1fe774
2019-10-09 12:36:11 -07:00
..
api Stop exporting wgWikiId, use wgWikiID from core 2019-09-25 18:14:40 +00:00
controller Stop exporting wgWikiId, use wgWikiID from core 2019-09-25 18:14:40 +00:00
icons Remove badgeicon module, use OOUI icon instead. 2019-06-05 12:29:17 +05:30
logger Stop exporting wgWikiId, use wgWikiID from core 2019-09-25 18:14:40 +00:00
mobile Dormant mobile notifications overlay lives in Echo 2019-10-09 12:36:11 -07:00
model Update eslint-config-wikimedia to 0.9.0 2018-11-27 22:48:32 +00:00
nojs Dormant mobile notifications overlay lives in Echo 2019-10-09 12:36:11 -07:00
special Merge "Add visible help link for Special:Notifications" 2019-04-09 15:32:14 +00:00
styles MonoBook: Remove outdated skin styles and clean up some 2019-06-28 03:18:24 +00:00
ui NotificationBadgeWidget: Don't double-convert numbers 2019-06-25 14:11:26 -07:00
echo.mixins.less build: Update 'stylelint-config-wikimedia' to v0.5.0 and make pass 2019-01-09 18:42:06 -08:00
echo.variables.less Fix badge icons in Monobook 2019-06-25 13:41:58 -07:00
ext.echo.init.js Dormant mobile notifications overlay lives in Echo 2019-10-09 12:36:11 -07:00
ext.echo.moment-hack.js Remove obsolete aliases from closures 2018-11-12 13:56:38 +00:00
hooks.txt (re)Add JavaScript hooks to Notifications 2016-10-14 17:25:25 -05:00
mw.echo.js ext.echo.dm: Remove unreachable lazy-creation code 2019-03-19 20:16:37 +00:00