2016-01-15 01:08:19 +00:00
|
|
|
/*****************************************************************************
|
2016-07-12 23:21:58 +00:00
|
|
|
* Open MCT, Copyright (c) 2014-2016, United States Government
|
2016-01-15 01:08:19 +00:00
|
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
|
|
* Administration. All rights reserved.
|
|
|
|
*
|
2016-07-12 23:21:58 +00:00
|
|
|
* Open MCT is licensed under the Apache License, Version 2.0 (the
|
2016-01-15 01:08:19 +00: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 23:21:58 +00:00
|
|
|
* Open MCT includes source code licensed under additional open source
|
2016-01-15 01:08:19 +00: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.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
define([
|
2016-01-28 19:41:14 +00:00
|
|
|
"text!./res/templates/about-dialog.html",
|
2016-01-15 01:08:19 +00:00
|
|
|
"./src/LogoController",
|
|
|
|
"./src/AboutController",
|
|
|
|
"./src/LicenseController",
|
2016-02-26 21:07:50 +00:00
|
|
|
"text!./res/templates/app-logo.html",
|
|
|
|
"text!./res/templates/about-logo.html",
|
|
|
|
"text!./res/templates/overlay-about.html",
|
|
|
|
"text!./res/templates/license-apache.html",
|
|
|
|
"text!./res/templates/license-mit.html",
|
|
|
|
"text!./res/templates/licenses.html",
|
|
|
|
"text!./res/templates/licenses-export-md.html",
|
2016-01-15 01:08:19 +00:00
|
|
|
'legacyRegistry'
|
|
|
|
], function (
|
2016-01-28 19:41:14 +00:00
|
|
|
aboutDialogTemplate,
|
2016-01-15 01:08:19 +00:00
|
|
|
LogoController,
|
|
|
|
AboutController,
|
|
|
|
LicenseController,
|
2016-02-26 21:07:50 +00:00
|
|
|
appLogoTemplate,
|
|
|
|
aboutLogoTemplate,
|
|
|
|
overlayAboutTemplate,
|
|
|
|
licenseApacheTemplate,
|
|
|
|
licenseMitTemplate,
|
|
|
|
licensesTemplate,
|
|
|
|
licensesExportMdTemplate,
|
2016-01-15 01:08:19 +00:00
|
|
|
legacyRegistry
|
|
|
|
) {
|
|
|
|
|
|
|
|
legacyRegistry.register("platform/commonUI/about", {
|
2016-07-12 23:21:58 +00:00
|
|
|
"name": "About Open MCT",
|
2016-01-15 01:08:19 +00:00
|
|
|
"extensions": {
|
|
|
|
"templates": [
|
|
|
|
{
|
|
|
|
"key": "app-logo",
|
|
|
|
"priority": "optional",
|
2016-02-26 21:07:50 +00:00
|
|
|
"template": appLogoTemplate
|
2016-01-15 01:08:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "about-logo",
|
|
|
|
"priority": "preferred",
|
2016-02-26 21:07:50 +00:00
|
|
|
"template": aboutLogoTemplate
|
2016-01-15 01:08:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "about-dialog",
|
2016-01-28 19:41:14 +00:00
|
|
|
"template": aboutDialogTemplate
|
2016-01-15 01:08:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "overlay-about",
|
2016-02-26 21:07:50 +00:00
|
|
|
"template": overlayAboutTemplate
|
2016-01-15 01:08:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "license-apache",
|
2016-02-26 21:07:50 +00:00
|
|
|
"template": licenseApacheTemplate
|
2016-01-15 01:08:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "license-mit",
|
2016-02-26 21:07:50 +00:00
|
|
|
"template": licenseMitTemplate
|
2016-01-15 01:08:19 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"controllers": [
|
|
|
|
{
|
|
|
|
"key": "LogoController",
|
|
|
|
"depends": [
|
|
|
|
"overlayService"
|
|
|
|
],
|
|
|
|
"implementation": LogoController
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "AboutController",
|
|
|
|
"depends": [
|
|
|
|
"versions[]",
|
|
|
|
"$window"
|
|
|
|
],
|
|
|
|
"implementation": AboutController
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "LicenseController",
|
|
|
|
"depends": [
|
|
|
|
"licenses[]"
|
|
|
|
],
|
|
|
|
"implementation": LicenseController
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"licenses": [
|
|
|
|
{
|
|
|
|
"name": "Json.NET",
|
|
|
|
"version": "6.0.8",
|
|
|
|
"author": "Newtonsoft",
|
|
|
|
"description": "JSON serialization/deserialization",
|
|
|
|
"website": "http://www.newtonsoft.com/json",
|
|
|
|
"copyright": "Copyright (c) 2007 James Newton-King",
|
|
|
|
"license": "license-mit",
|
|
|
|
"link": "https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Nancy",
|
|
|
|
"version": "0.23.2",
|
|
|
|
"author": "Andreas Håkansson, Steven Robbins and contributors",
|
|
|
|
"description": "Embedded web server",
|
|
|
|
"website": "http://nancyfx.org/",
|
|
|
|
"copyright": "Copyright © 2010 Andreas Håkansson, Steven Robbins and contributors",
|
|
|
|
"license": "license-mit",
|
|
|
|
"link": "http://www.opensource.org/licenses/mit-license.php"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Nancy.Hosting.Self",
|
|
|
|
"version": "0.23.2",
|
|
|
|
"author": "Andreas Håkansson, Steven Robbins and contributors",
|
|
|
|
"description": "Embedded web server",
|
|
|
|
"website": "http://nancyfx.org/",
|
|
|
|
"copyright": "Copyright © 2010 Andreas Håkansson, Steven Robbins and contributors",
|
|
|
|
"license": "license-mit",
|
|
|
|
"link": "http://www.opensource.org/licenses/mit-license.php"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SuperSocket",
|
|
|
|
"version": "0.9.0.2",
|
|
|
|
"author": " Kerry Jiang",
|
|
|
|
"description": "Supports SuperWebSocket",
|
|
|
|
"website": "https://supersocket.codeplex.com/",
|
|
|
|
"copyright": "Copyright 2010-2014 Kerry Jiang (kerry-jiang@hotmail.com)",
|
|
|
|
"license": "license-apache",
|
|
|
|
"link": "https://supersocket.codeplex.com/license"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SuperWebSocket",
|
|
|
|
"version": "0.9.0.2",
|
|
|
|
"author": " Kerry Jiang",
|
|
|
|
"description": "WebSocket implementation for client-server communication",
|
|
|
|
"website": "https://superwebsocket.codeplex.com/",
|
|
|
|
"copyright": "Copyright 2010-2014 Kerry Jiang (kerry-jiang@hotmail.com)",
|
|
|
|
"license": "license-apache",
|
|
|
|
"link": "https://superwebsocket.codeplex.com/license"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "log4net",
|
|
|
|
"version": "2.0.3",
|
|
|
|
"author": "Apache Software Foundation",
|
|
|
|
"description": "Logging",
|
|
|
|
"website": "http://logging.apache.org/log4net/",
|
|
|
|
"copyright": "Copyright © 2004-2015 Apache Software Foundation.",
|
|
|
|
"license": "license-apache",
|
|
|
|
"link": "http://logging.apache.org/log4net/license.html"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"when": "/licenses",
|
2016-02-26 21:07:50 +00:00
|
|
|
"template": licensesTemplate
|
2016-01-15 01:08:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"when": "/licenses-md",
|
2016-02-26 21:07:50 +00:00
|
|
|
"template": licensesExportMdTemplate
|
2016-01-15 01:08:19 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|