mirror of
https://github.com/nasa/openmct.git
synced 2025-02-22 10:11:06 +00:00
Merge branch 'master' of github.com:nasa/openmct into open967
This commit is contained in:
commit
e38cf1e2e8
@ -48,17 +48,17 @@ for a more general overview of how to run and deploy a Open MCT application.
|
|||||||
|
|
||||||
First step is to check out Open MCT from the source repository.
|
First step is to check out Open MCT from the source repository.
|
||||||
|
|
||||||
`git clone https://github.com/nasa/openmctweb.git openmctweb`
|
`git clone https://github.com/nasa/openmct.git openmct`
|
||||||
|
|
||||||
This will create a copy of the Open MCT source code repository in the folder
|
This will create a copy of the Open MCT source code repository in the folder
|
||||||
`openmctweb` (relative to the path from which you ran the command.)
|
`openmct` (relative to the path from which you ran the command.)
|
||||||
If you have a repository URL, use that as the "path to repo" above. Alternately,
|
If you have a repository URL, use that as the "path to repo" above. Alternately,
|
||||||
if you received Open MCT as a git bundle, the path to that bundle on the
|
if you received Open MCT as a git bundle, the path to that bundle on the
|
||||||
local filesystem can be used instead.
|
local filesystem can be used instead.
|
||||||
At this point, it will also be useful to branch off of Open MCT v0.6.2
|
At this point, it will also be useful to branch off of Open MCT v0.6.2
|
||||||
(which was used when writing these tutorials) to begin adding plugins.
|
(which was used when writing these tutorials) to begin adding plugins.
|
||||||
|
|
||||||
cd openmctweb
|
cd openmct
|
||||||
git branch <my branch name> open-v0.6.2
|
git branch <my branch name> open-v0.6.2
|
||||||
git checkout <my branch name>
|
git checkout <my branch name>
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ changes to stylesheets, or you are running the minified version of the app
|
|||||||
|
|
||||||
The next step is to run a web server so that you can view the Open MCT
|
The next step is to run a web server so that you can view the Open MCT
|
||||||
client (including the plugins you add to it) in browser. Any web server can
|
client (including the plugins you add to it) in browser. Any web server can
|
||||||
be used for hosting OpenMCTWeb, and a trivial web server is provided in this
|
be used for hosting Open MCT, and a trivial web server is provided in this
|
||||||
package for the purposes of running the tutorials. The provided web server
|
package for the purposes of running the tutorials. The provided web server
|
||||||
should not be used in a production environment
|
should not be used in a production environment
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ To run the tutorial web server
|
|||||||
|
|
||||||
Once running, you should be able to view Open MCT from your browser at
|
Once running, you should be able to view Open MCT from your browser at
|
||||||
http://localhost:8080/ (assuming the web server is running on port 8080,
|
http://localhost:8080/ (assuming the web server is running on port 8080,
|
||||||
and OpenMCTWeb is installed at the server's root path).
|
and Open MCT is installed at the server's root path).
|
||||||
[Google Chrome](https://www.google.com/chrome/) is recommended for these
|
[Google Chrome](https://www.google.com/chrome/) is recommended for these
|
||||||
tutorials, as Chrome is Open MCT's "test-to" browser. The browser cache
|
tutorials, as Chrome is Open MCT's "test-to" browser. The browser cache
|
||||||
can sometimes interfere with development (masking changes by
|
can sometimes interfere with development (masking changes by
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
.t-fixed-position {
|
.t-fixed-position {
|
||||||
&.l-fixed-position {
|
&.l-fixed-position {
|
||||||
// @include test(red);
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -35,7 +34,6 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
.l-grid {
|
.l-grid {
|
||||||
// @include test(orange);
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -49,11 +47,6 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
|
|
||||||
&.s-selected {
|
|
||||||
@include boxShdwLarge();
|
|
||||||
border-color: $colorKey;
|
|
||||||
cursor: move;
|
|
||||||
}
|
|
||||||
&.s-not-selected {
|
&.s-not-selected {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
@ -76,26 +69,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.l-fixed-position-text {
|
.l-fixed-position-text {
|
||||||
//@include txtShdwSubtle();
|
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
$p: 1px; //$interiorMarginSm;
|
$p: 1px;
|
||||||
line-height: 100%;
|
line-height: 100%;
|
||||||
&.l-static-text {
|
&.l-static-text {
|
||||||
// overflow: auto;
|
|
||||||
padding: $p;
|
padding: $p;
|
||||||
}
|
}
|
||||||
&.l-telemetry {
|
&.l-telemetry {
|
||||||
.l-elem {
|
.l-elem {
|
||||||
//@include absPosDefault($p);
|
|
||||||
//@include absPosDefault(0);
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
//width: 50%;
|
|
||||||
&.l-title {
|
&.l-title {
|
||||||
//right: auto;
|
|
||||||
//left: $p;
|
|
||||||
float: none;
|
float: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@ -103,9 +89,6 @@
|
|||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
&.l-value {
|
&.l-value {
|
||||||
// @include test(blue);
|
|
||||||
// right: $p;
|
|
||||||
// left: auto;
|
|
||||||
border-radius: $smallCr;
|
border-radius: $smallCr;
|
||||||
$valPad: 5px;
|
$valPad: 5px;
|
||||||
float: right;
|
float: right;
|
||||||
@ -125,7 +108,6 @@
|
|||||||
|
|
||||||
.l-fixed-position-item-handle {
|
.l-fixed-position-item-handle {
|
||||||
$brd: 1px solid $colorKey;
|
$brd: 1px solid $colorKey;
|
||||||
// border-radius: $controlCr;
|
|
||||||
background: rgba($colorKey, 0.5);
|
background: rgba($colorKey, 0.5);
|
||||||
cursor: crosshair;
|
cursor: crosshair;
|
||||||
border: $brd;
|
border: $brd;
|
||||||
|
@ -65,6 +65,7 @@
|
|||||||
@import "user-environ/frame";
|
@import "user-environ/frame";
|
||||||
@import "user-environ/top-bar";
|
@import "user-environ/top-bar";
|
||||||
@import "user-environ/tool-bar";
|
@import "user-environ/tool-bar";
|
||||||
|
@import "user-environ/selecting";
|
||||||
|
|
||||||
/********************************* VIEWS */
|
/********************************* VIEWS */
|
||||||
@import "fixed-position";
|
@import "fixed-position";
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
.frame.child-frame.panel {
|
.frame.child-frame.panel {
|
||||||
&:hover {
|
&:hover {
|
||||||
@include boxShdwLarge();
|
@include boxShdwLarge();
|
||||||
border-color: $colorKey;
|
border-color: $colorSelectableSelectedPrimary;
|
||||||
.view-switcher {
|
.view-switcher {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,39 @@
|
|||||||
|
/*****************************************************************************
|
||||||
|
* Open MCT, Copyright (c) 2014-2016, United States Government
|
||||||
|
* as represented by the Administrator of the National Aeronautics and Space
|
||||||
|
* Administration. All rights reserved.
|
||||||
|
*
|
||||||
|
* Open MCT 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 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.
|
||||||
|
*****************************************************************************/
|
||||||
|
.s-selectable {
|
||||||
|
border: 1px solid transparent;
|
||||||
|
|
||||||
|
&.s-hover {
|
||||||
|
// Styles when hovering over a selectable object
|
||||||
|
border-color: $colorSelectableHov !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.s-selected {
|
||||||
|
// Styles for a selected object. Also used by legacy Fixed Position/Panel objects.
|
||||||
|
border-color: $colorSelectableSelectedPrimary !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.s-moveable {
|
||||||
|
@include boxShdwLarge();
|
||||||
|
cursor: move;
|
||||||
|
}
|
||||||
|
}
|
@ -63,6 +63,9 @@ $colorInvokeMenu: #fff;
|
|||||||
$colorObjHdrTxt: $colorBodyFg;
|
$colorObjHdrTxt: $colorBodyFg;
|
||||||
$colorObjHdrIc: pullForward($colorObjHdrTxt, 20%);
|
$colorObjHdrIc: pullForward($colorObjHdrTxt, 20%);
|
||||||
$colorTick: rgba(white, 0.2);
|
$colorTick: rgba(white, 0.2);
|
||||||
|
$colorSelectableSelectedPrimary: $colorKey;
|
||||||
|
$colorSelectableSelectedSecondary: pushBack($colorSelectableSelectedPrimary, 20%);
|
||||||
|
$colorSelectableHov: $colorSelectableSelectedSecondary;
|
||||||
|
|
||||||
// Menu colors
|
// Menu colors
|
||||||
$colorMenuBg: pullForward($colorBodyBg, 23%);
|
$colorMenuBg: pullForward($colorBodyBg, 23%);
|
||||||
|
@ -63,6 +63,9 @@ $colorInvokeMenu: #fff;
|
|||||||
$colorObjHdrTxt: $colorBodyFg;
|
$colorObjHdrTxt: $colorBodyFg;
|
||||||
$colorObjHdrIc: pushBack($colorObjHdrTxt, 30%);
|
$colorObjHdrIc: pushBack($colorObjHdrTxt, 30%);
|
||||||
$colorTick: rgba(black, 0.2);
|
$colorTick: rgba(black, 0.2);
|
||||||
|
$colorSelectableSelectedPrimary: $colorKey;
|
||||||
|
$colorSelectableSelectedSecondary: pushBack($colorSelectableSelectedPrimary, 20%);
|
||||||
|
$colorSelectableHov: $colorSelectableSelectedSecondary;
|
||||||
|
|
||||||
// Menu colors
|
// Menu colors
|
||||||
$colorMenuBg: pushBack($colorBodyBg, 10%);
|
$colorMenuBg: pushBack($colorBodyBg, 10%);
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
<!-- Selection highlight, handles -->
|
<!-- Selection highlight, handles -->
|
||||||
<span ng-if="controller.selected()">
|
<span ng-if="controller.selected()">
|
||||||
<div class="l-fixed-position-item s-selected"
|
<div class="l-fixed-position-item s-selectable s-selected s-moveable"
|
||||||
mct-drag-down="controller.moveHandle().startDrag(controller.selected())"
|
mct-drag-down="controller.moveHandle().startDrag(controller.selected())"
|
||||||
mct-drag="controller.moveHandle().continueDrag(delta)"
|
mct-drag="controller.moveHandle().continueDrag(delta)"
|
||||||
mct-drag-up="controller.moveHandle().endDrag()"
|
mct-drag-up="controller.moveHandle().endDrag()"
|
||||||
|
@ -33,61 +33,28 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Drag handles -->
|
<!-- Drag handles -->
|
||||||
<span ng-show="domainObject.hasCapability('editor')">
|
<span ng-show="domainObject.hasCapability('editor')">
|
||||||
|
<span class="edit-handle edit-move"
|
||||||
<span
|
|
||||||
class="edit-handle edit-move"
|
|
||||||
mct-drag-down="controller.startDrag(childObject.getId(), [1,1], [0,0])"
|
mct-drag-down="controller.startDrag(childObject.getId(), [1,1], [0,0])"
|
||||||
mct-drag="controller.continueDrag(delta)"
|
mct-drag="controller.continueDrag(delta)"
|
||||||
mct-drag-up="controller.endDrag()">
|
mct-drag-up="controller.endDrag()">
|
||||||
</span>
|
</span>
|
||||||
<!--
|
|
||||||
<span
|
|
||||||
class="edit-handle edit-resize-w"
|
|
||||||
mct-drag-down="controller.startDrag(childObject.getId(), [1,0], [-1,0])"
|
|
||||||
mct-drag="controller.continueDrag(delta)"
|
|
||||||
mct-drag-up="controller.endDrag()">
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
class="edit-handle edit-resize-e"
|
|
||||||
mct-drag-down="controller.startDrag(childObject.getId(), [0,0], [1,0])"
|
|
||||||
mct-drag="controller.continueDrag(delta)"
|
|
||||||
mct-drag-up="controller.endDrag()">
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span
|
<span class="edit-corner edit-resize-nw"
|
||||||
class="edit-handle edit-resize-n"
|
|
||||||
mct-drag-down="controller.startDrag(childObject.getId(), [0,1], [0,-1])"
|
|
||||||
mct-drag="controller.continueDrag(delta)"
|
|
||||||
mct-drag-up="controller.endDrag()">
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
class="edit-handle edit-resize-s"
|
|
||||||
mct-drag-down="controller.startDrag(childObject.getId(), [0,0], [0,1])"
|
|
||||||
mct-drag="controller.continueDrag(delta)"
|
|
||||||
mct-drag-up="controller.endDrag()">
|
|
||||||
</span>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="edit-corner edit-resize-nw"
|
|
||||||
mct-drag-down="controller.startDrag(childObject.getId(), [1,1], [-1,-1])"
|
mct-drag-down="controller.startDrag(childObject.getId(), [1,1], [-1,-1])"
|
||||||
mct-drag="controller.continueDrag(delta)"
|
mct-drag="controller.continueDrag(delta)"
|
||||||
mct-drag-up="controller.endDrag()">
|
mct-drag-up="controller.endDrag()">
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span class="edit-corner edit-resize-ne"
|
||||||
class="edit-corner edit-resize-ne"
|
|
||||||
mct-drag-down="controller.startDrag(childObject.getId(), [0,1], [1,-1])"
|
mct-drag-down="controller.startDrag(childObject.getId(), [0,1], [1,-1])"
|
||||||
mct-drag="controller.continueDrag(delta)"
|
mct-drag="controller.continueDrag(delta)"
|
||||||
mct-drag-up="controller.endDrag()">
|
mct-drag-up="controller.endDrag()">
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span class="edit-corner edit-resize-sw"
|
||||||
class="edit-corner edit-resize-sw"
|
|
||||||
mct-drag-down="controller.startDrag(childObject.getId(), [1,0], [-1,1])"
|
mct-drag-down="controller.startDrag(childObject.getId(), [1,0], [-1,1])"
|
||||||
mct-drag="controller.continueDrag(delta)"
|
mct-drag="controller.continueDrag(delta)"
|
||||||
mct-drag-up="controller.endDrag()">
|
mct-drag-up="controller.endDrag()">
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span class="edit-corner edit-resize-se"
|
||||||
class="edit-corner edit-resize-se"
|
|
||||||
mct-drag-down="controller.startDrag(childObject.getId(), [0,0], [1,1])"
|
mct-drag-down="controller.startDrag(childObject.getId(), [0,0], [1,1])"
|
||||||
mct-drag="controller.continueDrag(delta)"
|
mct-drag="controller.continueDrag(delta)"
|
||||||
mct-drag-up="controller.endDrag()">
|
mct-drag-up="controller.endDrag()">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user