mirror of
https://github.com/nasa/openmct.git
synced 2025-05-04 17:52:58 +00:00
Diffs
This commit is contained in:
parent
bf39aa1b1d
commit
05f8739952
@ -1234,8 +1234,8 @@ A view's selection state is, conceptually, a set of JavaScript objects. The
|
|||||||
presence of methods/properties on these objects determine which toolbar controls
|
presence of methods/properties on these objects determine which toolbar controls
|
||||||
are visible, and what state they manage and/or behavior they invoke.
|
are visible, and what state they manage and/or behavior they invoke.
|
||||||
|
|
||||||
This set may contain up to two different objects: The _view proxy _, which is
|
This set may contain up to two different objects: The _view proxy_, which is
|
||||||
used to make changes to the view as a whole, and the _ selected object _, which is
|
used to make changes to the view as a whole, and the _selected object_, which is
|
||||||
used to represent some state within the view. (Future versions of Open MCT Web
|
used to represent some state within the view. (Future versions of Open MCT Web
|
||||||
may support multiple selected objects.)
|
may support multiple selected objects.)
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ example/persistence.
|
|||||||
"platform/features/scrolling",
|
"platform/features/scrolling",
|
||||||
"platform/forms",
|
"platform/forms",
|
||||||
"platform/persistence/queue",
|
"platform/persistence/queue",
|
||||||
-- "platform/persistence/elastic",
|
- "platform/persistence/elastic",
|
||||||
"platform/policy",
|
"platform/policy",
|
||||||
|
|
||||||
"example/generator"
|
"example/generator"
|
||||||
@ -105,28 +105,28 @@ __bundles.json__
|
|||||||
|
|
||||||
#### Bundle After
|
#### Bundle After
|
||||||
```diff
|
```diff
|
||||||
[
|
[
|
||||||
"platform/framework",
|
"platform/framework",
|
||||||
"platform/core",
|
"platform/core",
|
||||||
"platform/representation",
|
"platform/representation",
|
||||||
"platform/commonUI/about",
|
"platform/commonUI/about",
|
||||||
"platform/commonUI/browse",
|
"platform/commonUI/browse",
|
||||||
"platform/commonUI/edit",
|
"platform/commonUI/edit",
|
||||||
"platform/commonUI/dialog",
|
"platform/commonUI/dialog",
|
||||||
"platform/commonUI/general",
|
"platform/commonUI/general",
|
||||||
"platform/containment",
|
"platform/containment",
|
||||||
"platform/telemetry",
|
"platform/telemetry",
|
||||||
"platform/features/layout",
|
"platform/features/layout",
|
||||||
"platform/features/pages",
|
"platform/features/pages",
|
||||||
"platform/features/plot",
|
"platform/features/plot",
|
||||||
"platform/features/scrolling",
|
"platform/features/scrolling",
|
||||||
"platform/forms",
|
"platform/forms",
|
||||||
"platform/persistence/queue",
|
"platform/persistence/queue",
|
||||||
"platform/policy",
|
"platform/policy",
|
||||||
|
|
||||||
++ "example/persistence",
|
+ "example/persistence",
|
||||||
"example/generator"
|
"example/generator"
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
__bundles.json__
|
__bundles.json__
|
||||||
|
|
||||||
@ -184,69 +184,72 @@ We will create this file in the directory tutorials/todo (we can hereafter refer
|
|||||||
to this plugin as tutorials/todo as well.) We will start with an “empty bundle”,
|
to this plugin as tutorials/todo as well.) We will start with an “empty bundle”,
|
||||||
one which exposes no extensions - which looks like:
|
one which exposes no extensions - which looks like:
|
||||||
|
|
||||||
{
|
```diff
|
||||||
"name": "To-do Plugin",
|
{
|
||||||
"description": "Allows creating and editing to-do lists.",
|
"name": "To-do Plugin",
|
||||||
"extensions": {
|
"description": "Allows creating and editing to-do lists.",
|
||||||
|
"extensions": {
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
__tutorials/todo/bundle.json__
|
__tutorials/todo/bundle.json__
|
||||||
|
|
||||||
We will also include this in our list of active bundles.
|
We will also include this in our list of active bundles.
|
||||||
|
|
||||||
#### Before
|
#### Before
|
||||||
[
|
[
|
||||||
"platform/framework",
|
"platform/framework",
|
||||||
"platform/core",
|
"platform/core",
|
||||||
"platform/representation",
|
"platform/representation",
|
||||||
"platform/commonUI/about",
|
"platform/commonUI/about",
|
||||||
"platform/commonUI/browse",
|
"platform/commonUI/browse",
|
||||||
"platform/commonUI/edit",
|
"platform/commonUI/edit",
|
||||||
"platform/commonUI/dialog",
|
"platform/commonUI/dialog",
|
||||||
"platform/commonUI/general",
|
"platform/commonUI/general",
|
||||||
"platform/containment",
|
"platform/containment",
|
||||||
"platform/telemetry",
|
"platform/telemetry",
|
||||||
"platform/features/layout",
|
"platform/features/layout",
|
||||||
"platform/features/pages",
|
"platform/features/pages",
|
||||||
"platform/features/plot",
|
"platform/features/plot",
|
||||||
"platform/features/scrolling",
|
"platform/features/scrolling",
|
||||||
"platform/forms",
|
"platform/forms",
|
||||||
"platform/persistence/queue",
|
"platform/persistence/queue",
|
||||||
"platform/policy",
|
"platform/policy",
|
||||||
|
|
||||||
"example/persistence",
|
"example/persistence",
|
||||||
"example/generator"
|
"example/generator"
|
||||||
]
|
]
|
||||||
__bundles.json__
|
__bundles.json__
|
||||||
|
|
||||||
#### After
|
#### After
|
||||||
[
|
|
||||||
"platform/framework",
|
```diff
|
||||||
"platform/core",
|
[
|
||||||
"platform/representation",
|
"platform/framework",
|
||||||
"platform/commonUI/about",
|
"platform/core",
|
||||||
"platform/commonUI/browse",
|
"platform/representation",
|
||||||
"platform/commonUI/edit",
|
"platform/commonUI/about",
|
||||||
"platform/commonUI/dialog",
|
"platform/commonUI/browse",
|
||||||
"platform/commonUI/general",
|
"platform/commonUI/edit",
|
||||||
"platform/containment",
|
"platform/commonUI/dialog",
|
||||||
"platform/telemetry",
|
"platform/commonUI/general",
|
||||||
"platform/features/layout",
|
"platform/containment",
|
||||||
"platform/features/pages",
|
"platform/telemetry",
|
||||||
"platform/features/plot",
|
"platform/features/layout",
|
||||||
"platform/features/scrolling",
|
"platform/features/pages",
|
||||||
"platform/forms",
|
"platform/features/plot",
|
||||||
"platform/persistence/queue",
|
"platform/features/scrolling",
|
||||||
"platform/policy",
|
"platform/forms",
|
||||||
|
"platform/persistence/queue",
|
||||||
"example/persistence",
|
"platform/policy",
|
||||||
"example/generator",
|
|
||||||
|
"example/persistence",
|
||||||
++ "tutorials/todo"
|
"example/generator",
|
||||||
]
|
|
||||||
|
+ "tutorials/todo"
|
||||||
|
]
|
||||||
|
```
|
||||||
__bundles.json__
|
__bundles.json__
|
||||||
|
|
||||||
At this point, we can reload Open MCT Web. We haven’t introduced any new
|
At this point, we can reload Open MCT Web. We haven’t introduced any new
|
||||||
@ -269,22 +272,23 @@ deeper explanation of domain objects, see the Open MCT Web Developer Guide.)
|
|||||||
In the case of our to-do list feature, the to-do list itself is the thing we’ll
|
In the case of our to-do list feature, the to-do list itself is the thing we’ll
|
||||||
want users to be able to create and edit. So, we will add that as a new type in
|
want users to be able to create and edit. So, we will add that as a new type in
|
||||||
our bundle definition:
|
our bundle definition:
|
||||||
|
```diff
|
||||||
{
|
{
|
||||||
"name": "To-do Plugin",
|
"name": "To-do Plugin",
|
||||||
"description": "Allows creating and editing to-do lists.",
|
"description": "Allows creating and editing to-do lists.",
|
||||||
"extensions": {
|
"extensions": {
|
||||||
++ "types": [
|
+ "types": [
|
||||||
++ {
|
+ {
|
||||||
++ "key": "example.todo",
|
+ "key": "example.todo",
|
||||||
++ "name": "To-Do List",
|
+ "name": "To-Do List",
|
||||||
++ "glyph": "j",
|
+ "glyph": "j",
|
||||||
++ "description": "A list of things that need to be done.",
|
+ "description": "A list of things that need to be done.",
|
||||||
++ "features": ["creation"]
|
+ "features": ["creation"]
|
||||||
++ }
|
+ }
|
||||||
]
|
]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
__tutorials/todo/bundle.json__
|
__tutorials/todo/bundle.json__
|
||||||
|
|
||||||
What have we done here? We’ve stated that this bundle includes extensions of the
|
What have we done here? We’ve stated that this bundle includes extensions of the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user