mediawiki-extensions-Echo/includes
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 Use Special:MyLanguage in API help links 2019-08-27 06:14:51 +00:00
cache Echo: Fix case mismatch for function/method calls 2019-06-11 22:46:24 +01:00
controller Echo: Fix case mismatch for function/method calls 2019-06-11 22:46:24 +01:00
exception Hygiene: Update method documentation & split exception to a file 2014-08-04 17:43:57 -07:00
formatters Improve EchoPresentationModelSection 2019-08-02 12:24:59 +02:00
gateway Remove global usage in UserNotificationGateway 2019-08-30 22:58:41 +02:00
iterator Fix some doc blocks 2017-11-07 17:06:17 +01:00
jobs NotificationJob: make sure we retry to load the event from master 2019-04-16 17:06:48 -07:00
mapper Echo: Fix case mismatch for function/method calls 2019-06-11 22:46:24 +01:00
model build: Updating dependencies 2019-07-14 10:57:49 +00:00
ooui Use local vars in LabelIconWidget 2019-02-23 21:26:35 +01:00
special Echo: Fix case mismatch for function/method calls 2019-06-11 22:46:24 +01:00
AttributeManager.php Make use of the PHP 7 ?? operator where it makes sense 2019-05-09 15:57:16 +00:00
Bundleable.php Remove some non-helpful lines of documentation 2018-07-06 15:14:44 +00:00
Bundler.php build: Update mediawiki/mediawiki-codesniffer to 0.7.1 2016-12-05 15:54:30 -08:00
DataOutputFormatter.php Remove usage of deprecated Revision class in Echo 2019-05-08 19:50:58 +01:00
DeferredMarkAsDeletedUpdate.php Merge "Make "@… array" type hints more specific" 2018-08-16 00:57:12 +00:00
DiscussionParser.php Add option to mute/unmute notifications on Special:Mute 2019-07-18 15:47:24 +00:00
EchoArrayList.php Fix multiple PHP class declarations in one file 2018-01-21 21:17:53 +00:00
EchoCachedList.php Convert caching to WANObjectCache 2019-02-28 21:56:38 -08:00
EchoContainmentList.php Make "@… array" type hints more specific 2018-08-13 09:27:37 +02:00
EchoContainmentSet.php Convert caching to WANObjectCache 2019-02-28 21:56:38 -08:00
EchoDbFactory.php Code improvements for includes/ **only** directory 2019-03-05 18:58:52 +01:00
EchoDiffGroup.php Make "@… array" type hints more specific 2018-08-13 09:27:37 +02:00
EchoDiffParser.php Code improvements for includes/ **only** directory 2019-03-05 18:58:52 +01:00
EchoHooks.php Dormant mobile notifications overlay lives in Echo 2019-10-09 12:36:11 -07:00
EchoOnWikiList.php Code improvements for includes/ **only** directory 2019-03-05 18:58:52 +01:00
EchoSummaryParser.php Replace two regular expressions with cheap string manipulations 2018-10-11 10:59:04 +02:00
EmailBatch.php Echo: Fix case mismatch for function/method calls 2019-06-11 22:46:24 +01:00
EmailFormat.php HTML email formatter using presentation model 2016-05-12 09:29:24 -04:00
EmailFrequency.php HTML email formatter using presentation model 2016-05-12 09:29:24 -04:00
EventLogging.php Code improvements for includes/ **only** directory 2019-03-05 18:58:52 +01:00
ForeignNotifications.php Use php null coalesce operator ?? 2019-03-12 21:04:00 +01:00
ForeignWikiRequest.php Add phan 2019-04-10 18:51:59 +02:00
Notifier.php Drop $wgNotificationReplyName, instead let just show the e-mail 2018-08-29 01:03:54 +00:00
NotifUser.php Remove global usage in UserNotificationGateway 2019-08-30 22:58:41 +02:00
ResourceLoaderEchoImageModule.php Fix Illegal string offset 'ltr' in ResourceLoaderEchoImageModule.php 2017-03-27 23:46:45 +00:00
schemaUpdate.php Code improvements for includes/ **only** directory 2019-03-05 18:58:52 +01:00
SeenTime.php Remove usage of deprecated cache code from Echo 2019-04-17 15:22:37 +01:00
UnreadWikis.php Merge "Use "false" as type hint in PHPDoc tags" 2018-08-16 01:00:05 +00:00
UserLocator.php Remove usage of deprecated Revision class in Echo 2019-05-08 19:50:58 +01:00