mediawiki-extensions-Visual.../.docs/categories.json
Trevor Parscal bf254f44da UI "Views" refactor
Objective:

Make it possible for inspectors to inspect nodes or annotations, rather
than only annotations. Meanwhile, also make it possible for dialogs to
edit an annotation.

Strategy:

Switch from using type patterns to associate inspectors with annotations
to using arrays of classes, similar to how dialogs already work.
Introduce a view registry which provides lookups for relationships
between models and views. This is more centralized and less repetitive
than implement matching functions for both annotations and nodes in both
the dialog and inspector factories.

Changes:

*.php
* Added links to new file

ve.AnnotationAction.js
* Removed unused parameter to filter annotations using a string or regexp

ve.dm.AnnotationSet.js
* Switched from property/value arguments to callbacks

ve.ui.*(Dialog|Inspector).js
* Replaced type patterns with class lists
* Added class to view registry

ve.ui.*Tool.js, ve.ui.Context.js
* Updated model/view relationship lookup

ve.ui.*Factory.js
* Removed overly-specific lookup functions

ve.ui.Inspector.js
* Removed typePattern property
* Updated model/view relationship lookup

ve.ui.ViewRegistry.js
* New class!
* Migrated node and annotation lookup functions from factories

Change-Id: Ic2bbcf072fdd87e5ce8a03fe1ae3e6d8d50e2593
2013-04-18 15:53:50 -07:00

200 lines
3.6 KiB
JSON

[
{
"name": "Actions",
"groups": [
{
"name": "Actions",
"classes": ["ve.*Action"]
}
]
},
{
"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": "Nodes",
"classes": ["ve.dm.Document", "ve.dm.*Node"]
},
{
"name": "Linear data",
"classes": ["ve.dm.*LinearData"]
}
]
},
{
"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.Context",
"ve.ui.Frame",
"ve.ui.Toolbar",
"ve.ui.Element",
"ve.ui.Window",
"ve.ui.WindowSet"
]
},
{
"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"]
},
{
"name": "Registries",
"classes": ["ve.CommandRegistry", "ve.TriggerRegistry"]
},
{
"name": "Factories",
"classes": ["ve.ActionFactory", "ve.NamedClassFactory"]
},
{
"name": "Nodes",
"classes": ["ve.Node", "ve.BranchNode", "ve.LeafNode", "ve.Document"]
},
{
"name": "Misc",
"classes": ["ve.Trigger", "ve.Surface"]
},
{
"name": "Test",
"classes": ["ve.QUnit", "ve.QUnit.assert"]
}
]
},
{
"name": "UnicodeJS",
"groups": [
{
"name": "UnicodeJS",
"classes": [
"unicodeJS.TextString", "unicodeJS.wordbreak"
]
}
]
},
{
"name": "Upstream",
"groups": [
{
"name": "jQuery",
"classes": ["jQuery", "jQuery.Event", "jQuery.Promise", "jQuery.Deferred", "jQuery.jqXHR", "QUnit"]
},
{
"name": "JavaScript",
"classes": [
"Array", "Boolean", "Date", "Function", "Number", "Object", "RegExp", "String"
]
}
]
}
]