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": [
|
2017-02-01 00:07:40 +00:00
|
|
|
{ "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": "Buttons, selects, menus, etc." },
|
|
|
|
{ "key": "styleguide.input", "name": "Text Inputs", "cssclass": "icon-page", "description": "Various text inputs" },
|
|
|
|
{ "key": "styleguide.glyphs", "name": "Glyphs", "cssclass": "icon-page", "description": "Glyphs overview" }
|
2017-01-27 23:39:18 +00:00
|
|
|
],
|
|
|
|
"views": [
|
2017-02-01 00:07:40 +00:00
|
|
|
{ "key": "styleguide.intro", "type": "styleguide.intro", "name": "Introduction", "cssclass": "icon-page", "templateUrl": "templates/intro.html", "editable": false },
|
|
|
|
{ "key": "styleguide.controls", "type": "styleguide.controls", "name": "Controls", "cssclass": "icon-page", "templateUrl": "templates/controls.html", "editable": false },
|
|
|
|
{ "key": "styleguide.input", "type": "styleguide.input", "name": "Text Inputs", "cssclass": "icon-page", "templateUrl": "templates/input.html", "editable": false },
|
|
|
|
{ "key": "styleguide.glyphs", "type": "styleguide.glyphs", "name": "Glyphs", "cssclass": "icon-page", "templateUrl": "templates/glyphs.html", "editable": false }
|
2017-01-27 23:39:18 +00:00
|
|
|
],
|
|
|
|
"roots": [
|
|
|
|
{
|
|
|
|
"id": "styleguide:folder"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"models": [
|
|
|
|
{
|
|
|
|
"id": "styleguide:folder",
|
|
|
|
"priority" : "preferred",
|
|
|
|
"model": {
|
|
|
|
"type": "folder",
|
|
|
|
"name": "Style Guide",
|
2017-02-01 22:10:48 +00:00
|
|
|
"location": "ROOT",
|
2017-01-27 23:39:18 +00:00
|
|
|
"composition": [
|
|
|
|
"intro",
|
2017-02-01 00:07:40 +00:00
|
|
|
"controls",
|
|
|
|
"input",
|
|
|
|
"glyphs"
|
2017-01-27 23:39:18 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
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"
|
|
|
|
},
|
|
|
|
{
|
2017-02-01 01:21:22 +00:00
|
|
|
"stylesheetUrl": "css/style-guide-snow.css",
|
2017-01-28 02:19:44 +00:00
|
|
|
"theme": "snow"
|
2017-01-27 23:39:18 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
});
|
2017-01-30 21:46:24 +00:00
|
|
|
});
|