2016-01-06 10:59:21 -08:00
|
|
|
/*****************************************************************************
|
2016-07-12 16:21:58 -07:00
|
|
|
* Open MCT, Copyright (c) 2014-2016, United States Government
|
2016-01-06 10:59:21 -08:00
|
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
|
|
* Administration. All rights reserved.
|
|
|
|
*
|
2016-07-12 16:21:58 -07:00
|
|
|
* Open MCT is licensed under the Apache License, Version 2.0 (the
|
2016-01-06 10:59:21 -08:00
|
|
|
* "License"); you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*
|
2016-07-12 16:21:58 -07:00
|
|
|
* Open MCT includes source code licensed under additional open source
|
2016-01-06 10:59:21 -08:00
|
|
|
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
|
|
|
* this source code distribution or the Licensing information page available
|
|
|
|
* at runtime from the About dialog for additional information.
|
|
|
|
*****************************************************************************/
|
2016-03-04 10:27:59 -08:00
|
|
|
/*global requirejs*/
|
2016-01-06 10:59:21 -08:00
|
|
|
|
|
|
|
requirejs.config({
|
|
|
|
"paths": {
|
2016-01-07 15:29:19 -08:00
|
|
|
"legacyRegistry": "src/legacyRegistry",
|
2016-01-28 10:55:22 -08:00
|
|
|
"angular": "bower_components/angular/angular.min",
|
|
|
|
"angular-route": "bower_components/angular-route/angular-route.min",
|
2016-02-05 12:21:06 -08:00
|
|
|
"csv": "bower_components/comma-separated-values/csv.min",
|
2016-05-27 11:43:35 -07:00
|
|
|
"EventEmitter": "bower_components/eventemitter3/index",
|
2016-09-13 10:33:32 -07:00
|
|
|
"es6-promise": "bower_components/es6-promise/es6-promise.min",
|
2016-08-31 23:03:48 +09:00
|
|
|
"html2canvas": "bower_components/html2canvas/build/html2canvas.min",
|
2016-09-27 16:40:29 -07:00
|
|
|
"jsPDF": "bower_components/jspdf/dist/jspdf.debug",
|
2016-01-28 10:55:22 -08:00
|
|
|
"moment": "bower_components/moment/moment",
|
|
|
|
"moment-duration-format": "bower_components/moment-duration-format/lib/moment-duration-format",
|
2016-02-05 14:39:24 -08:00
|
|
|
"saveAs": "bower_components/FileSaver.js/FileSaver.min",
|
2016-01-28 11:12:18 -08:00
|
|
|
"screenfull": "bower_components/screenfull/dist/screenfull.min",
|
2016-01-28 11:41:14 -08:00
|
|
|
"text": "bower_components/text/text",
|
2016-03-11 12:38:40 -08:00
|
|
|
"uuid": "bower_components/node-uuid/uuid",
|
2016-06-17 16:54:32 -07:00
|
|
|
"zepto": "bower_components/zepto/zepto.min",
|
|
|
|
"lodash": "bower_components/lodash/lodash"
|
2016-01-06 10:59:21 -08:00
|
|
|
},
|
|
|
|
"shim": {
|
|
|
|
"angular": {
|
|
|
|
"exports": "angular"
|
2016-01-28 10:55:22 -08:00
|
|
|
},
|
|
|
|
"angular-route": {
|
2016-05-19 11:29:13 -07:00
|
|
|
"deps": ["angular"]
|
2016-01-28 10:55:22 -08:00
|
|
|
},
|
2016-05-27 11:43:35 -07:00
|
|
|
"EventEmitter": {
|
|
|
|
"exports": "EventEmitter"
|
|
|
|
},
|
2016-08-31 23:03:48 +09:00
|
|
|
"html2canvas": {
|
|
|
|
"exports": "html2canvas"
|
|
|
|
},
|
2016-09-02 03:11:26 +09:00
|
|
|
"jsPDF": {
|
|
|
|
"exports": "jsPDF"
|
|
|
|
},
|
2016-01-28 10:55:22 -08:00
|
|
|
"moment-duration-format": {
|
2016-05-19 11:29:13 -07:00
|
|
|
"deps": ["moment"]
|
2016-03-04 11:05:08 -08:00
|
|
|
},
|
|
|
|
"screenfull": {
|
|
|
|
"exports": "screenfull"
|
2016-04-08 16:05:04 -07:00
|
|
|
},
|
2016-03-11 14:33:05 -08:00
|
|
|
"zepto": {
|
|
|
|
"exports": "Zepto"
|
2016-07-07 14:30:45 -07:00
|
|
|
},
|
|
|
|
"lodash": {
|
|
|
|
"exports": "lodash"
|
2016-01-06 10:59:21 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
define([
|
|
|
|
'./platform/framework/src/Main',
|
2016-07-25 14:38:44 -07:00
|
|
|
'./src/defaultRegistry',
|
|
|
|
'./src/MCT'
|
|
|
|
], function (Main, defaultRegistry, MCT) {
|
2016-09-30 12:38:03 -07:00
|
|
|
var openmct = new MCT();
|
2016-05-27 11:49:43 -07:00
|
|
|
|
2016-09-30 12:38:03 -07:00
|
|
|
openmct.legacyRegistry = defaultRegistry;
|
2016-09-29 10:47:52 -07:00
|
|
|
|
2016-09-30 12:38:03 -07:00
|
|
|
openmct.on('start', function () {
|
2016-07-25 14:38:44 -07:00
|
|
|
return new Main().run(defaultRegistry);
|
2016-05-27 11:49:43 -07:00
|
|
|
});
|
|
|
|
|
2016-09-30 12:38:03 -07:00
|
|
|
return openmct;
|
2016-04-08 16:05:04 -07:00
|
|
|
});
|