2017-01-27 23:39:18 +00:00
|
|
|
define([
|
|
|
|
"./src/ExampleStyleGuideModelProvider",
|
2017-01-30 21:46:24 +00:00
|
|
|
"./src/MCTExample",
|
2017-01-27 23:39:18 +00:00
|
|
|
'legacyRegistry'
|
|
|
|
], function (
|
|
|
|
ExampleStyleGuideModelProvider,
|
2017-01-30 21:46:24 +00:00
|
|
|
MCTExample,
|
2017-01-27 23:39:18 +00:00
|
|
|
legacyRegistry
|
|
|
|
) {
|
|
|
|
legacyRegistry.register("example/styleguide", {
|
|
|
|
"name": "Open MCT Style Guide",
|
|
|
|
"description": "Examples and documentation illustrating UI styles in use in Open MCT.",
|
|
|
|
"extensions":
|
|
|
|
{
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"key": "styleguide.intro",
|
|
|
|
"name": "Introduction",
|
|
|
|
"cssclass": "icon-page",
|
|
|
|
"description": "Introduction and overview to the style guide."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.controls",
|
|
|
|
"name": "Controls",
|
|
|
|
"cssclass": "icon-page",
|
|
|
|
"description": "Open MCT Controls"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"views": [
|
|
|
|
{
|
|
|
|
"key": "styleguide.intro",
|
|
|
|
"type": "styleguide.intro",
|
|
|
|
"cssclass": "icon-page",
|
|
|
|
"name": "Introduction",
|
|
|
|
"templateUrl": "templates/intro.html",
|
|
|
|
"editable": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "styleguide.controls",
|
|
|
|
"type": "styleguide.controls",
|
|
|
|
"cssclass": "icon-page",
|
|
|
|
"name": "Controls",
|
|
|
|
"templateUrl": "templates/controls.html",
|
|
|
|
"editable": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"roots": [
|
|
|
|
{
|
|
|
|
"id": "styleguide:folder"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"models": [
|
|
|
|
{
|
|
|
|
"id": "styleguide:folder",
|
|
|
|
"priority" : "preferred",
|
|
|
|
"model": {
|
|
|
|
"type": "folder",
|
|
|
|
"name": "Style Guide",
|
|
|
|
"composition": [
|
|
|
|
"intro",
|
|
|
|
"controls"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2017-01-30 21:46:24 +00:00
|
|
|
"directives": [
|
|
|
|
{
|
|
|
|
"key": "mctExample",
|
|
|
|
"implementation": MCTExample
|
|
|
|
}
|
|
|
|
],
|
2017-01-27 23:39:18 +00:00
|
|
|
"components": [
|
|
|
|
{
|
|
|
|
"provides": "modelService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": ExampleStyleGuideModelProvider,
|
|
|
|
"depends": [
|
|
|
|
"$q"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stylesheets": [
|
|
|
|
{
|
2017-01-28 02:19:44 +00:00
|
|
|
"stylesheetUrl": "css/style-guide-espresso.css",
|
|
|
|
"theme": "espresso"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"stylesheetUrl": "css/time-conductor-snow.css",
|
|
|
|
"theme": "snow"
|
2017-01-27 23:39:18 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
});
|
2017-01-30 21:46:24 +00:00
|
|
|
});
|