The existing plugin.txt is different from the {{ pluginName }}'s
plugin.txt. Navigate the diffs making whatever edits you want before
@@ -37,15 +37,12 @@
Variables
-
- plugin.txt
-
- plugin.txt
+ plugin.txt
-
@@ -127,6 +121,7 @@ import 'ace-builds/src-min-noconflict/ext-searchbox'
import AceDiff from '@openc3/ace-diff'
import '@openc3/ace-diff/dist/ace-diff.min.css'
import '@openc3/ace-diff/dist/ace-diff-dark.min.css'
+import { toRaw } from 'vue'
export default {
props: {
@@ -146,7 +141,7 @@ export default {
type: String,
required: false,
},
- value: Boolean, // value is the default prop when using v-model
+ modelValue: Boolean, // modelValue is the default prop when using v-model
},
data() {
return {
@@ -192,7 +187,7 @@ export default {
this.curDiff = -1 // so the first will be 0
}
},
- beforeDestroy() {
+ beforeUnmount() {
if (this.editor) {
this.editor.destroy()
}
@@ -203,10 +198,10 @@ export default {
computed: {
show: {
get() {
- return this.value
+ return this.modelValue
},
set(value) {
- this.$emit('input', value) // input is the default event when using v-model
+ this.$emit('update:modelValue', value)
},
},
},
@@ -252,18 +247,18 @@ export default {
this.differ.getEditors().right.scrollToLine(rrow)
},
buildPluginMode() {
- var oop = ace.require('ace/lib/oop')
- var RubyHighlightRules = ace.require(
+ let oop = ace.require('ace/lib/oop')
+ let RubyHighlightRules = ace.require(
'ace/mode/ruby_highlight_rules',
).RubyHighlightRules
// TODO: Grab from code
let keywords = ['VARIABLE']
let regex = new RegExp(`(\\b${keywords.join('\\b|\\b')}\\b)`)
- var PluginHighlightRules = function () {
+ let PluginHighlightRules = function () {
RubyHighlightRules.call(this)
// add openc3 rules to the ruby rules
- for (var rule in this.$rules) {
+ for (let rule in this.$rules) {
this.$rules[rule].unshift({
regex: regex,
token: 'support.function',
@@ -272,21 +267,21 @@ export default {
}
oop.inherits(PluginHighlightRules, RubyHighlightRules)
- var MatchingBraceOutdent = ace.require(
+ let MatchingBraceOutdent = ace.require(
'ace/mode/matching_brace_outdent',
).MatchingBraceOutdent
- var CstyleBehaviour = ace.require(
+ let CstyleBehaviour = ace.require(
'ace/mode/behaviour/cstyle',
).CstyleBehaviour
- var FoldMode = ace.require('ace/mode/folding/ruby').FoldMode
- var Mode = function () {
+ let FoldMode = ace.require('ace/mode/folding/ruby').FoldMode
+ let Mode = function () {
this.HighlightRules = PluginHighlightRules
this.$outdent = new MatchingBraceOutdent()
this.$behaviour = new CstyleBehaviour()
this.foldingRules = new FoldMode()
this.indentKeywords = this.foldingRules.indentKeywords
}
- var RubyMode = ace.require('ace/mode/ruby').Mode
+ let RubyMode = ace.require('ace/mode/ruby').Mode
oop.inherits(Mode, RubyMode)
;(function () {
this.$id = 'ace/mode/openc3'
@@ -324,10 +319,10 @@ export default {
emitSubmit(lines) {
let pluginHash = {
name: this.pluginName,
- variables: this.localVariables,
+ variables: toRaw(this.localVariables),
plugin_txt_lines: lines,
}
- this.$emit('submit', pluginHash)
+ this.$emit('callback', pluginHash)
},
close: function () {
this.show = !this.show
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue
index ff5956274..8f5f62031 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/InterfacesTab.vue
@@ -25,23 +25,18 @@
-
- {{ openc3_interface }}
-
-
-
-
-
+ {{ openc3_interface }}
+
+
+
+
+
mdi-eye
Show Interface Details
-
+
@@ -97,4 +92,7 @@ export default {
.list {
background-color: var(--color-background-surface-default) !important;
}
+.v-theme--cosmosDark.v-list div:nth-child(odd) .v-list-item {
+ background-color: var(--color-background-base-selected) !important;
+}
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue
index a1d5f8803..2d1fc52ec 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue
@@ -25,47 +25,39 @@
-
- {{ microservice }}
-
- Updated:
- {{ formatDate(microservice_status[microservice].updated_at) }},
- State: {{ microservice_status[microservice].state }}, Count:
- {{ microservice_status[microservice].count }}
-
-
-
-
-
-
-
+ {{ microservice }}
+
+ Updated:
+ {{ formatDate(microservice_status[microservice].updated_at) }},
+ State: {{ microservice_status[microservice].state }}, Count:
+ {{ microservice_status[microservice].count }}
+
+
+
+
+
+
+
mdi-alert
View Error
-
+
-
-
-
-
-
+
+
+
mdi-eye
View Microservice
-
+
@@ -175,4 +167,7 @@ export default {
.list {
background-color: var(--color-background-surface-default) !important;
}
+.v-theme--cosmosDark.v-list div:nth-child(odd) .v-list-item {
+ background-color: var(--color-background-base-selected) !important;
+}
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue
index b406e4bdb..b363a8cad 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue
@@ -45,20 +45,16 @@
:disabled="files.length < 1"
:loading="loadingPackage"
>
- mdi-cloud-upload
+ mdi-cloud-upload
Upload
Loading...
- {{ alert }}
+ {{
+ alert
+ }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
mdi-eye
Show Output
-
+
@@ -104,38 +99,36 @@
Ruby Gems
-
- {{ gem }}
-
-
-
-
-
+ {{ gem }}
+
+
+
+
+
mdi-delete
Delete Package
-
+
Python Packages
-
- {{ pkg }}
-
-
-
-
-
+ {{ pkg }}
+
+
+
+
+
mdi-delete
Delete Package
-
+
@@ -201,13 +194,13 @@ export default {
this.update()
}, 10000)
}
- }
+ },
)
},
formatDate(nanoSecs) {
return format(
toDate(parseInt(nanoSecs) / 1_000_000),
- 'yyyy-MM-dd HH:mm:ss.SSS'
+ 'yyyy-MM-dd HH:mm:ss.SSS',
)
},
upload: function () {
@@ -221,8 +214,8 @@ export default {
data: formData,
headers: { 'Content-Type': 'multipart/form-data' },
onUploadProgress: function (progressEvent) {
- var percentCompleted = Math.round(
- (progressEvent.loaded * 100) / progressEvent.total
+ let percentCompleted = Math.round(
+ (progressEvent.loaded * 100) / progressEvent.total,
)
self.progress = percentCompleted
},
@@ -278,4 +271,7 @@ export default {
.list {
background-color: var(--color-background-surface-default) !important;
}
+.v-theme--cosmosDark.v-list div:nth-child(odd) .v-list-item {
+ background-color: var(--color-background-base-selected) !important;
+}
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/PluginsTab.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/PluginsTab.vue
index 663f8e4df..4afd895da 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/PluginsTab.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/PluginsTab.vue
@@ -67,8 +67,7 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
mdi-eye
@@ -118,7 +115,7 @@
Show Output
-
+
@@ -127,33 +124,32 @@
Plugin List
-
- * {{ plugin }}* {{ plugin }}
+
+
-
-
- {{ target.name }}
-
- {{ target.name }}
-
-
-
-
+ {{ target.name }}
+
+ {{ target.name }}
+
+
+
+
-
-
+
+
mdi-download
@@ -163,12 +159,11 @@
-
-
+
+
mdi-pencil
@@ -178,12 +173,11 @@
-
-
+
+
mdi-update
@@ -193,12 +187,11 @@
-
-
+
+
mdi-delete
@@ -207,7 +200,7 @@
Delete Plugin
-
+
@@ -219,7 +212,7 @@
:variables="variables"
:pluginTxt="pluginTxt"
:existingPluginTxt="existingPluginTxt"
- @submit="pluginCallback"
+ @callback="pluginCallback"
/>
{
this.upload(this.currentPlugin)
@@ -603,7 +596,7 @@ export default {
{
okText: 'Ok',
cancelText: 'Cancel',
- }
+ },
)
.then(() => {
this.upload(this.currentPlugin)
@@ -628,4 +621,7 @@ export default {
.list {
background-color: var(--color-background-surface-default) !important;
}
+.v-theme--cosmosDark.v-list div:nth-child(odd) .v-list-item {
+ background-color: var(--color-background-base-selected) !important;
+}
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/RedisTab.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/RedisTab.vue
index 3b4268806..5c54bd123 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/RedisTab.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/RedisTab.vue
@@ -43,17 +43,16 @@
Response: {{ redisResponse }}
-
+
Execute
-
+
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/RoutersTab.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/RoutersTab.vue
index eed18342e..dc4cd9411 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/RoutersTab.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/RoutersTab.vue
@@ -25,19 +25,18 @@
-
- {{ router }}
-
-
-
-
-
+ {{ router }}
+
+
+
+
+
mdi-eye
Show Router Details
-
+
@@ -94,4 +93,7 @@ export default {
.list {
background-color: var(--color-background-surface-default) !important;
}
+.v-theme--cosmosDark.v-list div:nth-child(odd) .v-list-item {
+ background-color: var(--color-background-base-selected) !important;
+}
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue
index 8acb047f0..d938e26bf 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue
@@ -52,7 +52,7 @@
:disabled="secretName === '' || (file == null && secretValue === '')"
:loading="loadingSecret"
>
- mdi-cloud-upload
+ mdi-cloud-upload
Set
Loading...
@@ -60,29 +60,24 @@
- {{ alert }}
+ {{
+ alert
+ }}
-
- {{ secret }}
-
-
-
-
-
+ {{ secret }}
+
+
+
+
+
mdi-delete
Delete Secret
-
+
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue
index 6f9b3b1a7..784274c06 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/TargetsTab.vue
@@ -25,40 +25,31 @@
-
- {{ target.name }}
- Plugin: {{ target.plugin }}
-
-
+ {{ target.name }}
+ Plugin: {{ target.plugin }}
+
+
-
-
-
+
+
+
mdi-download
Download Target Modified Files
-
-
-
+
+
+
mdi-eye
Show Target Details
-
+
@@ -131,4 +122,7 @@ export default {
.list {
background-color: var(--color-background-surface-default) !important;
}
+.v-theme--cosmosDark.v-list div:nth-child(odd) .v-list-item {
+ background-color: var(--color-background-base-selected) !important;
+}
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue
index 330f9f977..5503e5bbd 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue
@@ -32,7 +32,7 @@
:disabled="!name || !url || !icon"
>
Add
- {{ icon }}
+ {{ icon }}
@@ -52,33 +52,30 @@
>
-
-
- mdi-drag-horizontal
-
-
- {{ tool }}
-
-
-
-
-
+
+ {{ tool }}
+
+
+
+
+
mdi-pencil
Edit Tool
-
-
-
-
-
+
+
+
mdi-delete
Delete Tool
-
+
@@ -104,7 +101,7 @@ export default {
data() {
return {
name: null,
- icon: '$astro-add-small',
+ icon: 'astro:add-small',
url: null,
tools: [],
jsonContent: '',
@@ -115,7 +112,7 @@ export default {
},
mounted() {
this.update()
- var el = document.getElementById('toollist')
+ let el = document.getElementById('toollist')
Sortable.create(el, {
filter: '.filter', // 'filter' class is not draggable
onUpdate: this.sortChanged,
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/index.js b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/index.js
index 55a7ae3c8..244f95663 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/index.js
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/index.js
@@ -23,51 +23,61 @@
const TabsList = [
{
displayName: 'Plugins',
+ name: 'PluginsTab',
path: 'plugins',
component: () => import('./PluginsTab'),
},
{
displayName: 'Targets',
+ name: 'TargetsTab',
path: 'targets',
component: () => import('./TargetsTab'),
},
{
displayName: 'Interfaces',
+ name: 'InterfacesTab',
path: 'interfaces',
component: () => import('./InterfacesTab'),
},
{
displayName: 'Routers',
+ name: 'RoutersTab',
path: 'routers',
component: () => import('./RoutersTab'),
},
{
displayName: 'Microservices',
+ name: 'MicroservicesTab',
path: 'microservices',
component: () => import('./MicroservicesTab'),
},
{
displayName: 'Packages',
+ name: 'PackagesTab',
path: 'packages',
component: () => import('./PackagesTab'),
},
{
displayName: 'Tools',
+ name: 'ToolsTab',
path: 'tools',
component: () => import('./ToolsTab'),
},
{
displayName: 'Redis',
+ name: 'RedisTab',
path: 'redis',
component: () => import('./RedisTab'),
},
{
displayName: 'Secrets',
+ name: 'SecretsTab',
path: 'secrets',
component: () => import('./SecretsTab'),
},
{
displayName: 'Settings',
+ name: 'SettingsTab',
path: 'settings',
component: () => import('./SettingsTab'),
},
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/AstroSettings.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/AstroSettings.vue
index f6231c6a3..ae9d8ac29 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/AstroSettings.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/AstroSettings.vue
@@ -19,24 +19,25 @@
Astro Settings
-
+
Error loading previous configuration due to {{ errorText }}
-
+
Error saving due to {{ errorText }}
-
+
Saved! (Refresh the page to see changes)
-
+
-
+
Save
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/ClassificationBannerSettings.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/ClassificationBannerSettings.vue
index b58e8b5e7..634e6ff3f 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/ClassificationBannerSettings.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/ClassificationBannerSettings.vue
@@ -19,13 +19,13 @@
Classification Banner Settings
-
+
Error loading previous configuration due to {{ errorText }}
-
+
Error saving due to {{ errorText }}
-
+
Saved! (Refresh the page to see changes)
@@ -43,21 +43,21 @@
mdi-square
-
-
- mdi-square
-
- {{ data.item.text }}
+
+
+
+
+ mdi-square
+
+
+
@@ -84,6 +84,7 @@
@@ -92,15 +93,14 @@
mdi-square
-
-
- mdi-square
-
- {{ data.item.text }}
+
+
+
+
+ mdi-square
+
+
+
@@ -126,6 +126,7 @@
@@ -143,6 +144,7 @@
@@ -163,7 +165,7 @@
:disabled="!formValid"
@click="save"
color="success"
- text
+ variant="text"
data-test="save-classification-banner"
>
Save
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/DefaultConfigSettings.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/DefaultConfigSettings.vue
index bbf5cd2b7..c3e7636f1 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/DefaultConfigSettings.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/DefaultConfigSettings.vue
@@ -26,9 +26,8 @@
No configs to clear
-
+
Clear
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/PypiSettings.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/PypiSettings.vue
index 8e464c0ec..4107ff8c9 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/PypiSettings.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/PypiSettings.vue
@@ -23,20 +23,25 @@
This sets the URL for installing dependency python packages. Also used for
package discovery.
-
+
Error loading previous configuration due to {{ errorText }}
-
+
Error saving due to {{ errorText }}
-
+
Saved! (Refresh the page to see changes)
-
+
Save
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/RubyGemsSettings.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/RubyGemsSettings.vue
index b962178d5..a04207162 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/RubyGemsSettings.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/RubyGemsSettings.vue
@@ -23,13 +23,13 @@
This sets the URL for installing dependency rubygems. Also used for
rubygem discovery.
-
+
Error loading previous configuration due to {{ errorText }}
-
+
Error saving due to {{ errorText }}
-
+
Saved! (Refresh the page to see changes)
@@ -40,7 +40,12 @@
/>
-
+
Save
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SourceCodeSettings.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SourceCodeSettings.vue
index 76ee3abb3..f3b86d363 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SourceCodeSettings.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SourceCodeSettings.vue
@@ -23,13 +23,13 @@
This sets the URL for the "Source" link in the footer. This is required
under the AGPL license.
-
+
Error loading previous configuration due to {{ errorText }}
-
+
Error saving due to {{ errorText }}
-
+
Saved! (Refresh the page to see changes)
@@ -40,7 +40,12 @@
/>
-
+
Save
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SubtitleSettings.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SubtitleSettings.vue
index efab38fac..d21f0af54 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SubtitleSettings.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SubtitleSettings.vue
@@ -23,20 +23,25 @@
This sets a subtitle to display below the COSMOS logo in the Navigation
bar.
-
+
Error loading previous configuration due to {{ errorText }}
-
+
Error saving due to {{ errorText }}
-
+
Saved! (Refresh the page to see changes)
-
+
Save
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SuppressedSettings.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SuppressedSettings.vue
index 186896cd2..3ce45a704 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SuppressedSettings.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/SuppressedSettings.vue
@@ -26,9 +26,8 @@
No warnings to reset
-
+
Reset
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/TimeZoneSettings.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/TimeZoneSettings.vue
index bf2d36e23..7a1ac5cf2 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/TimeZoneSettings.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/admin/tabs/settings/TimeZoneSettings.vue
@@ -23,20 +23,19 @@
The time zone to display for all COSMOS tools. (Note: All timestamps are
UTC in the backend).
-
+
Error loading previous configuration due to {{ errorText }}
-
+
Error saving due to {{ errorText }}
-
+
Saved! (Refresh the page to see changes)
-
+
Save
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/AppFooter.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/AppFooter.vue
index 35f23ca46..6ad113e3a 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/AppFooter.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/AppFooter.vue
@@ -28,7 +28,7 @@
{{ license }}
-
+
Source
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/AppNav.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/AppNav.vue
index b363281ea..4513f8964 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/AppNav.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/AppNav.vue
@@ -24,8 +24,7 @@
@@ -38,9 +37,9 @@
navigateToUrl(tool.url)"
class="fixcenter"
color="primary"
>
@@ -50,38 +49,34 @@
-
-
- {{ open ? 'mdi-chevron-down' : 'mdi-chevron-right' }}
-
-
+
+
navigateToUrl(item.url)"
>
- {{ item.icon }}
+ {{ item.icon }}
- {{ item.icon }}
+ {{ item.icon }}
-
+
navigateToUrl(item.url)"
>
{{ item.name }}
@@ -90,7 +85,7 @@
navigateToUrl(item.url)"
>
{{ item.name }}
@@ -123,17 +118,12 @@
-
-
-
+
+
+
-
-
+
+
+
+
-
-
+
+
-
@@ -169,7 +160,7 @@
import { OpenC3Api } from '../../services/openc3-api'
import Api from '../../services/api'
import logo from '../../../public/img/logo.png'
-import { registerApplication, start } from 'single-spa'
+import { navigateToUrl, registerApplication, start } from 'single-spa'
import ScopeSelector from './components/ScopeSelector.vue'
import Notifications from './components/Notifications.vue'
import UserMenu from './components/UserMenu.vue'
@@ -209,7 +200,7 @@ export default {
// a computed getter
shownTools: function () {
let result = {}
- for (var key of Object.keys(this.appNav)) {
+ for (let key of Object.keys(this.appNav)) {
if (this.appNav[key].shown && this.appNav[key].category !== 'Admin') {
result[key] = this.appNav[key]
}
@@ -218,7 +209,7 @@ export default {
},
adminTools: function () {
let result = {}
- for (var key of Object.keys(this.appNav)) {
+ for (let key of Object.keys(this.appNav)) {
if (this.appNav[key].shown && this.appNav[key].category === 'Admin') {
result[key] = this.appNav[key]
}
@@ -271,14 +262,16 @@ export default {
let id = 1
// Register apps and start single-spa
- for (var key of Object.keys(this.appNav)) {
+ for (let key of Object.keys(this.appNav)) {
if (this.appNav[key].shown) {
if (
this.appNav[key].category &&
this.appNav[key].category !== 'Admin'
) {
// TODO: Make this initiallyOpen configurable like with a CATEGORY parameter?
- this.initiallyOpen.push(this.appNav[key].category)
+ if (!this.initiallyOpen.includes(this.appNav[key].category)) {
+ this.initiallyOpen.push(this.appNav[key].category)
+ }
const result = this.items.filter(
(item) => item.name === this.appNav[key].category,
)
@@ -345,20 +338,6 @@ export default {
urlRerouteOnly: true,
})
- // Redirect some base paths to the first tool
- if (
- window.location.pathname == '/' ||
- window.location.pathname == '/tools' ||
- window.location.pathname == '/tools/'
- ) {
- for (var key of Object.keys(this.shownTools)) {
- if (this.appNav[key].shown) {
- history.replaceState(null, '', this.appNav[key].url)
- break
- }
- }
- }
-
// Check every minute if we need to update our token
setInterval(() => {
OpenC3Auth.updateToken(120).then(function (refreshed) {
@@ -371,6 +350,7 @@ export default {
)
},
methods: {
+ navigateToUrl,
newTabUrl(tool) {
let url = null
if (tool.url[0] == '/' && tool.url[1] != '/') {
@@ -402,7 +382,6 @@ export default {
}
div a {
color: white;
- font-size: 16px;
display: block;
height: 100%;
width: 100%;
@@ -419,21 +398,21 @@ a.fixcenter {
/* Remove the padding on root level nodes since we removed the expand icon */
#openc3-nav-drawer
.v-treeview
- > .v-treeview-node
- > .v-treeview-node__root
- > .v-treeview-node__level {
+ > .v-treeview-item
+ > .v-treeview-item__root
+ > .v-treeview-item__level {
width: 0px;
}
#openc3-nav-drawer
.v-treeview
- > .v-treeview-node
- > .v-treeview-node__root
- > .v-treeview-node__toggle {
+ > .v-treeview-item
+ > .v-treeview-item__root
+ > .v-treeview-item__toggle {
width: 0px;
}
#openc3-nav-drawer
- .v-treeview-node__children
- div.v-treeview-node__level:nth-child(1) {
+ .v-treeview-item__children
+ div.v-treeview-item__level:nth-child(1) {
width: 0px;
}
diff --git a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/components/ClassificationBanners.vue b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/components/ClassificationBanners.vue
index 20fb5e814..167c48141 100644
--- a/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/components/ClassificationBanners.vue
+++ b/openc3-cosmos-init/plugins/packages/openc3-tool-common/src/tools/base/components/ClassificationBanners.vue
@@ -74,6 +74,7 @@ export default {