mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
2717ea1645
Objectives: * Use a class for toolbar groups to add more functionality later * Rename addTools method to setup Changes: *.php * Add link to new file * Move ui element classes up for more general use ve.init.mw.ViewPageTarget.js, ve.init.sa.Target.js, ve.ui.Context.js, ve.ui.SurfaceWidget.js * Update use of addTools method ve.ui.Tool.css, ve.ui.Toolbar.css * Move styles between sheets ve.ui.Toolbar.js * Rename addTools to setup * Use ve.ui.ToolGroup objects when building tools ve.ui.ToolGroup.js * New class, encapsulates tools Change-Id: Ic3a643634a80a8ac7d6f6f47f031d001c7efaee7
203 lines
3.7 KiB
JSON
203 lines
3.7 KiB
JSON
[
|
|
{
|
|
"name": "ContentEditable",
|
|
"groups": [
|
|
{
|
|
"name": "General",
|
|
"classes": [
|
|
"ve.ce",
|
|
"ve.ce.View",
|
|
"ve.ce.AnnotationFactory",
|
|
"ve.ce.NodeFactory",
|
|
"ve.ce.Surface",
|
|
"ve.ce.SurfaceObserver",
|
|
"ve.ce.DomRange"
|
|
]
|
|
},
|
|
{
|
|
"name": "Annotations",
|
|
"classes": ["ve.ce.*Annotation"]
|
|
},
|
|
{
|
|
"name": "Nodes",
|
|
"classes": ["ve.ce.Document", "ve.ce.*Node"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "DataModel",
|
|
"groups": [
|
|
{
|
|
"name": "General",
|
|
"classes": [
|
|
"ve.dm",
|
|
"ve.dm.Model",
|
|
"ve.dm.AnnotationFactory",
|
|
"ve.dm.MetaItemFactory",
|
|
"ve.dm.ModelRegistry",
|
|
"ve.dm.Converter",
|
|
"ve.dm.DataString",
|
|
"ve.dm.DocumentSlice",
|
|
"ve.dm.DocumentSynchronizer",
|
|
"ve.dm.IndexValueStore",
|
|
"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", "ve.dm.AnnotationSet"]
|
|
},
|
|
{
|
|
"name": "Meta items",
|
|
"classes": ["ve.dm.*MetaItem", "ve.dm.MetaList"]
|
|
},
|
|
{
|
|
"name": "Internal list",
|
|
"classes": ["ve.dm.InternalList"]
|
|
},
|
|
{
|
|
"name": "Nodes",
|
|
"classes": ["ve.dm.Document", "ve.dm.*Node"]
|
|
},
|
|
{
|
|
"name": "Linear data",
|
|
"classes": ["ve.dm.*LinearData"]
|
|
},
|
|
{
|
|
"name": "Models",
|
|
"classes": ["ve.dm.*Model"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Initialization",
|
|
"groups": [
|
|
{
|
|
"name": "General",
|
|
"classes": ["ve.init", "ve.init.Platform", "ve.init.Target"]
|
|
},
|
|
{
|
|
"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.Surface",
|
|
"ve.ui.Context",
|
|
"ve.ui.Frame",
|
|
"ve.ui.Toolbar",
|
|
"ve.ui.ToolGroup",
|
|
"ve.ui.SurfaceToolbar",
|
|
"ve.ui.Window",
|
|
"ve.ui.WindowSet",
|
|
"ve.ui.Action",
|
|
"ve.ui.Trigger"
|
|
]
|
|
},
|
|
{
|
|
"name": "Actions",
|
|
"classes": ["ve.ui.*Action"]
|
|
},
|
|
{
|
|
"name": "Factories",
|
|
"classes": ["ve.ui.*Factory"]
|
|
},
|
|
{
|
|
"name": "Registries",
|
|
"classes": ["ve.ui.*Registry"]
|
|
},
|
|
{
|
|
"name": "Tools",
|
|
"classes": ["ve.ui.*Tool"]
|
|
},
|
|
{
|
|
"name": "Inspectors",
|
|
"classes": ["ve.ui.*Inspector"]
|
|
},
|
|
{
|
|
"name": "Elements",
|
|
"classes": ["ve.ui.*Element"]
|
|
},
|
|
{
|
|
"name": "Widgets",
|
|
"classes": ["ve.ui.*Widget"]
|
|
},
|
|
{
|
|
"name": "Layouts",
|
|
"classes": ["ve.ui.*Layout"]
|
|
},
|
|
{
|
|
"name": "Dialogs",
|
|
"classes": ["ve.ui.*Dialog"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "General",
|
|
"groups": [
|
|
{
|
|
"name": "Utilities",
|
|
"classes": ["ve", "ve.EventEmitter", "ve.Registry", "ve.Factory", "ve.Range", "ve.Element"]
|
|
},
|
|
{
|
|
"name": "Factories",
|
|
"classes": ["ve.NamedClassFactory"]
|
|
},
|
|
{
|
|
"name": "Nodes",
|
|
"classes": ["ve.Node", "ve.BranchNode", "ve.LeafNode", "ve.Document"]
|
|
},
|
|
{
|
|
"name": "Test",
|
|
"classes": ["ve.QUnit", "ve.QUnit.assert"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "UnicodeJS",
|
|
"groups": [
|
|
{
|
|
"name": "UnicodeJS",
|
|
"classes": [
|
|
"unicodeJS", "unicodeJS.TextString", "unicodeJS.wordbreak", "unicodeJS.graphemebreak"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Upstream",
|
|
"groups": [
|
|
{
|
|
"name": "jQuery",
|
|
"classes": ["jQuery", "jQuery.Event", "jQuery.Promise", "jQuery.Deferred", "jQuery.jqXHR", "QUnit"]
|
|
},
|
|
{
|
|
"name": "OOJS",
|
|
"classes": ["OO", "OO.*"]
|
|
},
|
|
{
|
|
"name": "JavaScript",
|
|
"classes": [
|
|
"Array", "Boolean", "Date", "Function", "Number", "Object", "RegExp", "String"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|