2013-12-19 23:07:19 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "VisualEditor (MediaWiki extension)",
|
|
|
|
"groups": [
|
|
|
|
{
|
|
|
|
"name": "Initialization",
|
|
|
|
"classes": [
|
Load RL modules in one load.php request, rather than in two stages
This introduces TargetLoader, which manages plugins and RL modules
in a slightly more generic fashion so that Targets themselves don't
have to. This allows us to load all RL modules in one load.php
request, rather than first loading ViewPageTarget which then
loads the other modules.
TargetLoader loads in the bottom queue, so it will be loaded
as part of the main load.php request, but in VPT.init.js we
still have to wait for it with using() because it might not
have arrived yet. This also degrades gracefully on cached pages
where TargetLoader isn't in the bottom queue: it'll be loaded
as a separate request instead, which is suboptimal but no
worse that what we were doing before.
Right now TargetLoader is small enough that it could also be in
the top queue, but in the future we want to add things like
the action=visualeditor API request to it, and mw.Api is
relatively big.
Note: this also makes a breaking change to the plugin API:
plugin callbacks no longer receive the target instance
as a parameter, as they're now executed before the target
has been constructed rather than after. In the long term,
if we want to give plugins access to the target instance,
we could give them the target promise somehow. For now,
I've killed this feature because nothing used it and
the change from a direct object reference to a promise
would have been a breaking change anyway.
Also fixed incorrect documentation index for ve.init.mw.ViewPageTarget.init.
Bug: T53569
Change-Id: Ibfa6abbeaf872ae2aadc6ed9d5beba7473ea441a
2015-02-26 01:22:44 +00:00
|
|
|
"mw.libs.ve*",
|
2015-11-28 05:38:27 +00:00
|
|
|
"ve.init.mw*"
|
2013-12-19 23:07:19 +00:00
|
|
|
]
|
|
|
|
},
|
2015-11-03 18:32:13 +00:00
|
|
|
{
|
|
|
|
"name": "Switching",
|
|
|
|
"classes": [
|
|
|
|
"mw.libs.ve.SwitchConfirmDialog"
|
|
|
|
]
|
|
|
|
},
|
2013-12-19 23:07:19 +00:00
|
|
|
{
|
|
|
|
"name": "User Interface",
|
|
|
|
"classes": [
|
2015-09-05 14:23:59 +00:00
|
|
|
"ve.ui.MW*Page",
|
|
|
|
"ve.ui.MW*Window"
|
2013-12-19 23:07:19 +00:00
|
|
|
]
|
2015-02-04 00:32:46 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Data Model",
|
|
|
|
"classes": [
|
2016-05-26 12:08:26 +00:00
|
|
|
"ve.dm.MW*Surface",
|
2016-11-16 18:21:22 +00:00
|
|
|
"ve.dm.MW*SurfaceFragment"
|
2015-02-04 00:32:46 +00:00
|
|
|
]
|
2016-05-26 12:08:26 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ContentEditable",
|
|
|
|
"classes": [
|
|
|
|
"ve.ce.MW*Surface"
|
|
|
|
]
|
2013-12-19 23:07:19 +00:00
|
|
|
}
|
|
|
|
]
|
2014-10-28 22:44:54 +00:00
|
|
|
},
|
2016-10-28 22:38:40 +00:00
|
|
|
{
|
|
|
|
"name": "VisualEditor (core) unused parts",
|
|
|
|
"groups": [
|
|
|
|
{
|
|
|
|
"name": "Standalone",
|
|
|
|
"classes": [
|
|
|
|
"ve.init.sa*"
|
|
|
|
],
|
|
|
|
"name": "Visual Diffing",
|
|
|
|
"classes": [
|
|
|
|
"ve.dm.VisualDiff",
|
|
|
|
"ve.DiffTreeNode",
|
|
|
|
"ve.ui.DiffDialog",
|
|
|
|
"ve.ui.DiffElement"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2014-10-28 22:44:54 +00:00
|
|
|
{
|
|
|
|
"name": "Upstream (MediaWiki)",
|
|
|
|
"groups": [
|
|
|
|
{
|
|
|
|
"name": "MediaWiki",
|
|
|
|
"classes": [
|
2015-05-25 13:51:13 +00:00
|
|
|
"mw.Title",
|
2016-11-16 18:21:22 +00:00
|
|
|
"mw.widgets.*Widget"
|
2014-10-28 22:44:54 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2013-12-19 23:07:19 +00:00
|
|
|
}
|
|
|
|
]
|