mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 07:38:15 +00:00
[Documentation] Switch Step 1 to fenced
This commit is contained in:
@ -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 populate this with the contents of the telemetry dictionary (which we
|
||||||
will retrieve from the server.)
|
will retrieve from the server.)
|
||||||
|
|
||||||
define([
|
```diff
|
||||||
'legacyRegistry'
|
define([
|
||||||
], function (
|
'legacyRegistry'
|
||||||
legacyRegistry
|
], function (
|
||||||
) {
|
legacyRegistry
|
||||||
legacyRegistry.register("tutorials/telemetry", {
|
) {
|
||||||
"name": "Example Telemetry Adapter",
|
legacyRegistry.register("tutorials/telemetry", {
|
||||||
"extensions": {
|
"name": "Example Telemetry Adapter",
|
||||||
"types": [
|
"extensions": {
|
||||||
{
|
"types": [
|
||||||
"name": "Spacecraft",
|
{
|
||||||
"key": "example.spacecraft",
|
"name": "Spacecraft",
|
||||||
"glyph": "o"
|
"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__
|
__tutorials/telemetry/bundle.js__
|
||||||
|
|
||||||
Here, we've created our initial telemetry plugin. This exposes a new domain
|
Here, we've created our initial telemetry plugin. This exposes a new domain
|
||||||
|
Reference in New Issue
Block a user