mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 22:28:13 +00:00
[Documentation] Switch Step 2 to fenced
This commit is contained in:
@ -2488,6 +2488,7 @@ server. Our first step will be to add a service that will handle interactions
|
|||||||
with the server; this will not be used by Open MCT directly, but will be
|
with the server; this will not be used by Open MCT directly, but will be
|
||||||
used by subsequent components we add.
|
used by subsequent components we add.
|
||||||
|
|
||||||
|
```diff
|
||||||
/*global define,WebSocket*/
|
/*global define,WebSocket*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
@ -2525,6 +2526,7 @@ used by subsequent components we add.
|
|||||||
return ExampleTelemetryServerAdapter;
|
return ExampleTelemetryServerAdapter;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
```
|
||||||
__tutorials/telemetry/src/ExampleTelemetryServerAdapter.js__
|
__tutorials/telemetry/src/ExampleTelemetryServerAdapter.js__
|
||||||
|
|
||||||
When created, this service initiates a connection to the server, and begins
|
When created, this service initiates a connection to the server, and begins
|
||||||
@ -2541,6 +2543,7 @@ subsystems. This means that we need to convert the data from the dictionary
|
|||||||
into domain object models, and expose these to Open MCT via a
|
into domain object models, and expose these to Open MCT via a
|
||||||
`modelService`.
|
`modelService`.
|
||||||
|
|
||||||
|
```diff
|
||||||
/*global define*/
|
/*global define*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
@ -2621,6 +2624,7 @@ into domain object models, and expose these to Open MCT via a
|
|||||||
return ExampleTelemetryModelProvider;
|
return ExampleTelemetryModelProvider;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
```
|
||||||
__tutorials/telemetry/src/ExampleTelemetryModelProvider.js__
|
__tutorials/telemetry/src/ExampleTelemetryModelProvider.js__
|
||||||
|
|
||||||
This script implements a `provider` for `modelService`; the `modelService` is a
|
This script implements a `provider` for `modelService`; the `modelService` is a
|
||||||
@ -2673,6 +2677,7 @@ This allows our telemetry dictionary to be expressed as domain object models
|
|||||||
fix this, we will need another script which will add these subsystems to the
|
fix this, we will need another script which will add these subsystems to the
|
||||||
root-level object we added in Step 1.
|
root-level object we added in Step 1.
|
||||||
|
|
||||||
|
```diff
|
||||||
/*global define*/
|
/*global define*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
@ -2722,6 +2727,7 @@ root-level object we added in Step 1.
|
|||||||
return ExampleTelemetryInitializer;
|
return ExampleTelemetryInitializer;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
```
|
||||||
__tutorials/telemetry/src/ExampleTelemetryInitializer.js__
|
__tutorials/telemetry/src/ExampleTelemetryInitializer.js__
|
||||||
|
|
||||||
At the conclusion of Step 1, the top-level My Spacecraft object was empty. This
|
At the conclusion of Step 1, the top-level My Spacecraft object was empty. This
|
||||||
|
Reference in New Issue
Block a user