Added support for new style telemetry providers from old screens. Converted SWG to new style data adapter

This commit is contained in:
Henry
2017-02-21 15:56:08 -08:00
parent c74fdb816f
commit b3cf7a5d93
16 changed files with 269 additions and 211 deletions

View File

@@ -21,16 +21,21 @@
*****************************************************************************/
define([
'lodash'
], function (_) {
'lodash',
'../../platform/features/conductor/utcTimeSystem/src/UTCTimeSystem',
'./generator/plugin'
], function (
_,
UTCTimeSystem,
GeneratorPlugin
) {
var bundleMap = {
couchDB: 'platform/persistence/couch',
elasticsearch: 'platform/persistence/elastic',
espresso: 'platform/commonUI/themes/espresso',
localStorage: 'platform/persistence/local',
myItems: 'platform/features/my-items',
snow: 'platform/commonUI/themes/snow',
utcTimeSystem: 'platform/features/conductor/utcTimeSystem'
snow: 'platform/commonUI/themes/snow'
};
var plugins = _.mapValues(bundleMap, function (bundleName, pluginName) {
@@ -39,6 +44,15 @@ define([
};
});
plugins.UTCTimeSystem = function () {
return function (openmct) {
openmct.legacyExtension("timeSystems", {
"implementation": UTCTimeSystem,
"depends": ["$timeout"]
});
}
};
plugins.CouchDB = function (url) {
return function (openmct) {
if (url) {