mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 22:42:24 +00:00
3258342783
#700 #689 #740 Removed _selects.scss and moved classes into _controls.scss; Reorg'd _controls; Moved classes into _elems.scss; Added and fixed cssclass defs in multiple bundle.js files to allow better field widths in overlay dialogs; Fixed overlay custom scrollbar colors; Fixed alignment of required glyphs in forms;
79 lines
2.9 KiB
JavaScript
79 lines
2.9 KiB
JavaScript
/*****************************************************************************
|
|
* Open MCT Web, Copyright (c) 2014-2015, United States Government
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
* Administration. All rights reserved.
|
|
*
|
|
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
|
|
* "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.
|
|
*
|
|
* Open MCT Web includes source code licensed under additional open source
|
|
* 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.
|
|
*****************************************************************************/
|
|
/*global define*/
|
|
|
|
define([
|
|
"./src/EmbeddedPageController",
|
|
"text!./res/iframe.html",
|
|
'legacyRegistry'
|
|
], function (
|
|
EmbeddedPageController,
|
|
iframeTemplate,
|
|
legacyRegistry
|
|
) {
|
|
"use strict";
|
|
|
|
legacyRegistry.register("platform/features/pages", {
|
|
"extensions": {
|
|
"types": [
|
|
{
|
|
"key": "example.page",
|
|
"name": "Web Page",
|
|
"glyph": "ê",
|
|
"description": "A component to display a web page or image with a valid URL. Can be added to a Display Layout.",
|
|
"features": [
|
|
"creation"
|
|
],
|
|
"properties": [
|
|
{
|
|
"key": "url",
|
|
"name": "URL",
|
|
"control": "textfield",
|
|
"pattern": "^(ftp|https?)\\:\\/\\/\\w+(\\.\\w+)*(\\:\\d+)?(\\/\\S*)*$",
|
|
"required": true,
|
|
"cssclass": "l-input-lg"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"views": [
|
|
{
|
|
"template": iframeTemplate,
|
|
"name": "Page",
|
|
"type": "example.page",
|
|
"key": "example.page",
|
|
"editable": false
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "EmbeddedPageController",
|
|
"implementation": EmbeddedPageController,
|
|
"depends": [
|
|
"$sce"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
});
|
|
});
|