mirror of
https://github.com/nasa/openmct.git
synced 2025-01-30 08:04:03 +00:00
Added imagery timeline view for telemetry sources and placeholder template for displaying historical imagery
This commit is contained in:
parent
2aa2d9d4bb
commit
05290593e9
@ -30,10 +30,14 @@
|
|||||||
<script>
|
<script>
|
||||||
var THIRTY_MINUTES = 30 * 60 * 1000;
|
var THIRTY_MINUTES = 30 * 60 * 1000;
|
||||||
|
|
||||||
require(['openmct'], function (openmct) {
|
require([
|
||||||
|
'openmct',
|
||||||
|
'platform/features/imagery-timeline/bundle'
|
||||||
|
], function (openmct) {
|
||||||
[
|
[
|
||||||
'example/eventGenerator',
|
'example/eventGenerator',
|
||||||
'example/styleguide'
|
'example/styleguide',
|
||||||
|
'platform/features/imagery-timeline'
|
||||||
].forEach(
|
].forEach(
|
||||||
openmct.legacyRegistry.enable.bind(openmct.legacyRegistry)
|
openmct.legacyRegistry.enable.bind(openmct.legacyRegistry)
|
||||||
);
|
);
|
||||||
|
28
platform/features/imagery-timeline/bundle.js
Normal file
28
platform/features/imagery-timeline/bundle.js
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
define([
|
||||||
|
'openmct'
|
||||||
|
], function (
|
||||||
|
openmct
|
||||||
|
) {
|
||||||
|
openmct.legacyRegistry.register("platform/features/imagery-timeline", {
|
||||||
|
"name" : "Imagery Timeline",
|
||||||
|
"description": "Provides a timeline view of imagery telemetry.",
|
||||||
|
"extensions": {
|
||||||
|
"views": [
|
||||||
|
{
|
||||||
|
"name": "Imagery Timeline",
|
||||||
|
"key": "imagery.timeline",
|
||||||
|
"cssClass": "icon-image",
|
||||||
|
"templateUrl": "templates/timeline.html",
|
||||||
|
"needs": [ "telemetry" ],
|
||||||
|
"delegation": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stylesheets": [
|
||||||
|
{
|
||||||
|
"stylesheetUrl": "css/timeline.css"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
});
|
@ -0,0 +1,5 @@
|
|||||||
|
<div class="imagery-timeline">
|
||||||
|
<img class="timeline-img"
|
||||||
|
src="https://www.jpl.nasa.gov/images/msl/20140203/pia17931-640.jpg"
|
||||||
|
ng-repeat="n in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]">
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user