mirror of
https://github.com/nasa/openmct.git
synced 2025-07-04 05:53:23 +00:00
Compare commits
4 Commits
fix-plot-s
...
v1.4.0
Author | SHA1 | Date | |
---|---|---|---|
0a4ff80f96 | |||
77b720d00d | |||
ba982671b2 | |||
5df7d92d64 |
32
index.html
32
index.html
@ -30,6 +30,38 @@
|
|||||||
<link rel="icon" type="image/png" href="dist/favicons/favicon-96x96.png" sizes="96x96" type="image/x-icon">
|
<link rel="icon" type="image/png" href="dist/favicons/favicon-96x96.png" sizes="96x96" type="image/x-icon">
|
||||||
<link rel="icon" type="image/png" href="dist/favicons/favicon-32x32.png" sizes="32x32" type="image/x-icon">
|
<link rel="icon" type="image/png" href="dist/favicons/favicon-32x32.png" sizes="32x32" type="image/x-icon">
|
||||||
<link rel="icon" type="image/png" href="dist/favicons/favicon-16x16.png" sizes="16x16" type="image/x-icon">
|
<link rel="icon" type="image/png" href="dist/favicons/favicon-16x16.png" sizes="16x16" type="image/x-icon">
|
||||||
|
<style type="text/css">
|
||||||
|
@keyframes splash-spinner {
|
||||||
|
0% {
|
||||||
|
transform: translate(-50%, -50%) rotate(0deg); }
|
||||||
|
100% {
|
||||||
|
transform: translate(-50%, -50%) rotate(360deg); } }
|
||||||
|
|
||||||
|
#splash-screen {
|
||||||
|
background-color: black;
|
||||||
|
position: absolute;
|
||||||
|
top: 0; right: 0; bottom: 0; left: 0;
|
||||||
|
z-index: 10000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#splash-screen:before {
|
||||||
|
animation-name: splash-spinner;
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-color: rgba(255,255,255,0.25);
|
||||||
|
border-top-color: white;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 10px;
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
opacity: 0.25;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%; top: 50%;
|
||||||
|
height: 100px; width: 100px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "openmct",
|
"name": "openmct",
|
||||||
"version": "1.3.3-SNAPSHOT",
|
"version": "1.4.0",
|
||||||
"description": "The Open MCT core platform",
|
"description": "The Open MCT core platform",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
.c-cs {
|
.c-cs {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
body.desktop & {
|
body.desktop & {
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
|
align-content: flex-start;
|
||||||
|
|
||||||
&__item {
|
&__item {
|
||||||
height: $gridItemDesk;
|
height: $gridItemDesk;
|
||||||
width: $gridItemDesk;
|
width: $gridItemDesk;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
.c-imagery {
|
.c-imagery {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
@ -19,14 +19,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__main-image {
|
&__main-image {
|
||||||
&__bg,
|
|
||||||
&__image {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__bg {
|
&__bg {
|
||||||
background-color: $colorPlotBg;
|
background-color: $colorPlotBg;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
|
||||||
&.unnsynced{
|
&.unnsynced{
|
||||||
@include sUnsynced();
|
@include sUnsynced();
|
||||||
@ -34,6 +30,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__image {
|
&__image {
|
||||||
|
@include abs(); // Safari fix
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
$headerFontSize: 1.3em;
|
$headerFontSize: 1.3em;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
@ -47,3 +47,7 @@
|
|||||||
@import "../ui/toolbar/components/toolbar-checkbox.scss";
|
@import "../ui/toolbar/components/toolbar-checkbox.scss";
|
||||||
@import "./notebook.scss";
|
@import "./notebook.scss";
|
||||||
@import "../plugins/notebook/components/sidebar.scss";
|
@import "../plugins/notebook/components/sidebar.scss";
|
||||||
|
|
||||||
|
#splash-screen {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@ -71,8 +71,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__object-view {
|
&__object-view {
|
||||||
|
display: flex;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
height: 0; // Chrome 73 overflow bug fix
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.u-fills-container {
|
.u-fills-container {
|
||||||
@ -84,6 +84,6 @@
|
|||||||
|
|
||||||
.l-angular-ov-wrapper {
|
.l-angular-ov-wrapper {
|
||||||
// This element is the recipient for object styling; cannot be display: contents
|
// This element is the recipient for object styling; cannot be display: contents
|
||||||
height: 100%;
|
flex: 1 1 auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
'is-editing': isEditing
|
'is-editing': isEditing
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<div
|
||||||
|
id="splash-screen"
|
||||||
|
></div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="l-shell__head"
|
class="l-shell__head"
|
||||||
:class="{
|
:class="{
|
||||||
|
@ -228,8 +228,9 @@
|
|||||||
/******************************* MAIN AREA */
|
/******************************* MAIN AREA */
|
||||||
&__main-container {
|
&__main-container {
|
||||||
// Wrapper for main views
|
// Wrapper for main views
|
||||||
|
display: flex;
|
||||||
flex: 1 1 auto !important;
|
flex: 1 1 auto !important;
|
||||||
height: 0; // Chrome 73 overflow bug fix
|
height: 100%; // Chrome 73 overflow bug fix
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,7 +339,6 @@
|
|||||||
|
|
||||||
&__start {
|
&__start {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
//margin-right: $interiorMargin;
|
|
||||||
min-width: 0; // Forces interior to compress when pushed on
|
min-width: 0; // Forces interior to compress when pushed on
|
||||||
|
|
||||||
[class*='button'] {
|
[class*='button'] {
|
||||||
@ -357,11 +357,6 @@
|
|||||||
|
|
||||||
&__nav-to-parent-button {
|
&__nav-to-parent-button {
|
||||||
// This is an icon-button
|
// This is an icon-button
|
||||||
//$p: $interiorMargin;
|
|
||||||
//margin-right: $interiorMargin;
|
|
||||||
//padding-left: $p;
|
|
||||||
//padding-right: $p;
|
|
||||||
|
|
||||||
.is-editing & {
|
.is-editing & {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -226,7 +226,7 @@ export default {
|
|||||||
return this.mainTreeHeight - this.ancestorsHeight;
|
return this.mainTreeHeight - this.ancestorsHeight;
|
||||||
},
|
},
|
||||||
showNoItems() {
|
showNoItems() {
|
||||||
return this.visibleItems.length === 0 && !this.activeSearch;
|
return this.visibleItems.length === 0 && !this.activeSearch && !this.isLoading;
|
||||||
},
|
},
|
||||||
showNoSearchResults() {
|
showNoSearchResults() {
|
||||||
return this.searchValue && this.searchResultItems.length === 0 && !this.searchLoading;
|
return this.searchValue && this.searchResultItems.length === 0 && !this.searchLoading;
|
||||||
@ -276,7 +276,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.initialize();
|
this.isLoading = true;
|
||||||
|
|
||||||
|
await this.initialize();
|
||||||
|
|
||||||
let savedPath = this.getStoredTreePath();
|
let savedPath = this.getStoredTreePath();
|
||||||
let rootComposition = await this.loadRoot();
|
let rootComposition = await this.loadRoot();
|
||||||
@ -302,26 +304,15 @@ export default {
|
|||||||
destroyed() {
|
destroyed() {
|
||||||
window.removeEventListener('resize', this.handleWindowResize);
|
window.removeEventListener('resize', this.handleWindowResize);
|
||||||
this.stopObservingAncestors();
|
this.stopObservingAncestors();
|
||||||
document.removeEventListener('readystatechange', this.setTreeTopMargin);
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initialize() {
|
async initialize() {
|
||||||
this.searchService = this.openmct.$injector.get('searchService');
|
this.searchService = this.openmct.$injector.get('searchService');
|
||||||
window.addEventListener('resize', this.handleWindowResize);
|
window.addEventListener('resize', this.handleWindowResize);
|
||||||
this.readyStateCheck();
|
|
||||||
this.backwardsCompatibilityCheck();
|
this.backwardsCompatibilityCheck();
|
||||||
},
|
await this.calculateHeights();
|
||||||
readyStateCheck() {
|
|
||||||
if (document.readyState !== 'complete') {
|
return;
|
||||||
document.addEventListener('readystatechange', this.onReadyState);
|
|
||||||
} else {
|
|
||||||
this.onReadyState();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onReadyState() {
|
|
||||||
if (document.readyState === 'complete') {
|
|
||||||
this.calculateHeights();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
backwardsCompatibilityCheck() {
|
backwardsCompatibilityCheck() {
|
||||||
let oldTreeExpanded = JSON.parse(localStorage.getItem(LOCAL_STORAGE_KEY__TREE_EXPANDED__OLD));
|
let oldTreeExpanded = JSON.parse(localStorage.getItem(LOCAL_STORAGE_KEY__TREE_EXPANDED__OLD));
|
||||||
@ -781,17 +772,44 @@ export default {
|
|||||||
return { height };
|
return { height };
|
||||||
},
|
},
|
||||||
getElementStyleValue(el, style) {
|
getElementStyleValue(el, style) {
|
||||||
|
if (!el) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let styleString = window.getComputedStyle(el)[style];
|
let styleString = window.getComputedStyle(el)[style];
|
||||||
let index = styleString.indexOf('px');
|
let index = styleString.indexOf('px');
|
||||||
|
|
||||||
return Number(styleString.slice(0, index));
|
return Number(styleString.slice(0, index));
|
||||||
},
|
},
|
||||||
calculateHeights() {
|
calculateHeights() {
|
||||||
this.mainTreeTopMargin = this.getElementStyleValue(this.$refs.mainTree, 'marginTop');
|
const RECHECK = 100;
|
||||||
this.mainTreeHeight = this.$el.offsetHeight
|
|
||||||
- this.$refs.search.offsetHeight
|
return new Promise((resolve, reject) => {
|
||||||
- this.mainTreeTopMargin;
|
|
||||||
this.itemHeight = this.getElementStyleValue(this.$refs.dummyItem, 'height');
|
let checkHeights = () => {
|
||||||
|
let treeTopMargin = this.getElementStyleValue(this.$refs.mainTree, 'marginTop');
|
||||||
|
if (
|
||||||
|
this.$el
|
||||||
|
&& this.$refs.search
|
||||||
|
&& this.$refs.mainTree
|
||||||
|
&& this.$refs.dummyItem
|
||||||
|
&& this.$el.offsetHeight !== 0
|
||||||
|
&& treeTopMargin > 0
|
||||||
|
) {
|
||||||
|
this.mainTreeTopMargin = treeTopMargin;
|
||||||
|
this.mainTreeHeight = this.$el.offsetHeight
|
||||||
|
- this.$refs.search.offsetHeight
|
||||||
|
- this.mainTreeTopMargin;
|
||||||
|
this.itemHeight = this.getElementStyleValue(this.$refs.dummyItem, 'height');
|
||||||
|
|
||||||
|
resolve();
|
||||||
|
} else {
|
||||||
|
setTimeout(checkHeights, RECHECK);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
checkHeights();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user