mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
294db5e3ef
Objective: Simplify the registration and use of triggers Changes: * Renamed ve.Command to ve.Trigger * Renamed command demo to trigger demo * Removed language prefixing of triggers * Generating trigger tooltips rather than hard-coding them in i18n * Added documentation to clarify that only 'mac' and 'pc' are supported platforms, and how the default is chosen * Simplified trigger registry's register command * Updated trigger registrations Change-Id: Ibab6ad5b5c86f24707f064967dc2119a81125392
134 lines
2.5 KiB
JSON
134 lines
2.5 KiB
JSON
[
|
|
{
|
|
"name": "Actions",
|
|
"groups": [
|
|
{
|
|
"name": "Actions",
|
|
"classes": ["ve.*Action"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "ContentEditable",
|
|
"groups": [
|
|
{
|
|
"name": "General",
|
|
"classes": ["ve.ce", "ve.ce.NodeFactory", "ve.ce.Surface", "ve.ce.SurfaceObserver"]
|
|
},
|
|
{
|
|
"name": "Nodes",
|
|
"classes": ["ve.ce.Document", "ve.ce.*Node"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "DataModel",
|
|
"groups": [
|
|
{
|
|
"name": "General",
|
|
"classes": [
|
|
"ve.dm",
|
|
"ve.dm.AnnotationFactory",
|
|
"ve.dm.ModelRegistry",
|
|
"ve.dm.Converter",
|
|
"ve.dm.DocumentSlice",
|
|
"ve.dm.DocumentSynchronizer",
|
|
"ve.dm.NodeFactory",
|
|
"ve.dm.Surface",
|
|
"ve.dm.SurfaceFragment",
|
|
"ve.dm.Transaction",
|
|
"ve.dm.TransactionProcessor",
|
|
"ve.dm.TransactionProcessor.processors"
|
|
]
|
|
},
|
|
{
|
|
"name": "Annotations",
|
|
"classes": ["ve.dm.*Annotation"]
|
|
},
|
|
{
|
|
"name": "Nodes",
|
|
"classes": ["ve.dm.Document", "ve.dm.*Node"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Initialization",
|
|
"groups": [
|
|
{
|
|
"name": "General",
|
|
"classes": ["ve.init", "ve.init.Platform"]
|
|
},
|
|
{
|
|
"name": "MediaWiki integration",
|
|
"classes": ["ve.init.mw*"]
|
|
},
|
|
{
|
|
"name": "Stand-alone",
|
|
"classes": ["ve.init.sa*"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "User Interface",
|
|
"groups": [
|
|
{
|
|
"name": "General",
|
|
"classes": ["ve.ui", "ve.ui.Context", "ve.ui.Frame", "ve.ui.InspectorFactory", "ve.ui.Toolbar", "ve.ui.ToolFactory"]
|
|
},
|
|
{
|
|
"name": "Tools",
|
|
"classes": ["ve.ui.*Tool"]
|
|
},
|
|
{
|
|
"name": "Inspectors",
|
|
"classes": ["ve.ui.*Inspector"]
|
|
},
|
|
{
|
|
"name": "Widgets",
|
|
"classes": ["ve.ui.*Widget"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "General",
|
|
"groups": [
|
|
{
|
|
"name": "Utilities",
|
|
"classes": ["ve", "ve.EventEmitter", "ve.Registry", "ve.Factory", "ve.Range"]
|
|
},
|
|
{
|
|
"name": "Registries",
|
|
"classes": ["ve.CommandRegistry", "ve.TriggerRegistry"]
|
|
},
|
|
{
|
|
"name": "Factories",
|
|
"classes": ["ve.ActionFactory"]
|
|
},
|
|
{
|
|
"name": "Nodes",
|
|
"classes": ["ve.Node", "ve.BranchNode", "ve.LeafNode", "ve.Document"]
|
|
},
|
|
{
|
|
"name": "Misc",
|
|
"classes": ["ve.Trigger", "ve.AnnotationSet", "ve.OrderedHashSet", "ve.Surface"]
|
|
},
|
|
{
|
|
"name": "Native",
|
|
"classes": ["Array", "Boolean", "Date", "Function", "Number", "Object", "RegExp", "String"]
|
|
},
|
|
{
|
|
"name": "Test",
|
|
"classes": ["ve.QUnit", "ve.QUnit.assert"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Upstream",
|
|
"groups": [
|
|
{
|
|
"name": "jQuery",
|
|
"classes": ["jQuery", "jQuery.Event", "QUnit"]
|
|
}
|
|
]
|
|
}
|
|
] |