mirror of
https://github.com/nasa/openmct.git
synced 2025-04-07 19:34:25 +00:00
[Documentation] Switch Step 1 to fenced
This commit is contained in:
parent
79c5895f2f
commit
5161205a06
@ -2346,35 +2346,37 @@ add a top-level object which will serve as a container; in the next step, we
|
||||
will populate this with the contents of the telemetry dictionary (which we
|
||||
will retrieve from the server.)
|
||||
|
||||
define([
|
||||
'legacyRegistry'
|
||||
], function (
|
||||
legacyRegistry
|
||||
) {
|
||||
legacyRegistry.register("tutorials/telemetry", {
|
||||
"name": "Example Telemetry Adapter",
|
||||
"extensions": {
|
||||
"types": [
|
||||
{
|
||||
"name": "Spacecraft",
|
||||
"key": "example.spacecraft",
|
||||
"glyph": "o"
|
||||
```diff
|
||||
define([
|
||||
'legacyRegistry'
|
||||
], function (
|
||||
legacyRegistry
|
||||
) {
|
||||
legacyRegistry.register("tutorials/telemetry", {
|
||||
"name": "Example Telemetry Adapter",
|
||||
"extensions": {
|
||||
"types": [
|
||||
{
|
||||
"name": "Spacecraft",
|
||||
"key": "example.spacecraft",
|
||||
"glyph": "o"
|
||||
}
|
||||
],
|
||||
"roots": [
|
||||
{
|
||||
"id": "example:sc",
|
||||
"priority": "preferred",
|
||||
"model": {
|
||||
"type": "example.spacecraft",
|
||||
"name": "My Spacecraft",
|
||||
"composition": []
|
||||
}
|
||||
],
|
||||
"roots": [
|
||||
{
|
||||
"id": "example:sc",
|
||||
"priority": "preferred",
|
||||
"model": {
|
||||
"type": "example.spacecraft",
|
||||
"name": "My Spacecraft",
|
||||
"composition": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
});
|
||||
```
|
||||
__tutorials/telemetry/bundle.js__
|
||||
|
||||
Here, we've created our initial telemetry plugin. This exposes a new domain
|
||||
|
Loading…
x
Reference in New Issue
Block a user