openc3-tool-cmdtlmserver 5.0.7 → 5.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +2 -1
- data/tools/cmdtlmserver/js/108.js +2 -0
- data/tools/cmdtlmserver/js/108.js.map +1 -0
- data/tools/cmdtlmserver/js/245.js +4 -0
- data/tools/cmdtlmserver/js/245.js.map +1 -0
- data/tools/cmdtlmserver/js/251.js +2 -0
- data/tools/cmdtlmserver/js/251.js.map +1 -0
- data/tools/cmdtlmserver/js/438.js +1 -1
- data/tools/cmdtlmserver/js/438.js.map +1 -1
- data/tools/cmdtlmserver/js/575.js +2 -0
- data/tools/cmdtlmserver/js/575.js.map +1 -0
- data/tools/cmdtlmserver/js/598.js +2 -0
- data/tools/cmdtlmserver/js/598.js.map +1 -0
- data/tools/cmdtlmserver/js/699.js +2 -0
- data/tools/cmdtlmserver/js/699.js.map +1 -0
- data/tools/cmdtlmserver/js/774.js +2 -0
- data/tools/cmdtlmserver/js/774.js.map +1 -0
- data/tools/cmdtlmserver/js/776.js +2 -0
- data/tools/cmdtlmserver/js/776.js.map +1 -0
- data/tools/cmdtlmserver/js/856.js +2 -0
- data/tools/cmdtlmserver/js/856.js.map +1 -0
- data/tools/cmdtlmserver/js/91.js +2 -0
- data/tools/cmdtlmserver/js/91.js.map +1 -0
- data/tools/cmdtlmserver/js/926.js +2 -0
- data/tools/cmdtlmserver/js/926.js.map +1 -0
- data/tools/cmdtlmserver/js/931.js +2 -0
- data/tools/cmdtlmserver/js/931.js.map +1 -0
- data/tools/cmdtlmserver/js/app.js +1 -1
- data/tools/cmdtlmserver/js/app.js.map +1 -1
- metadata +26 -26
- data/tools/cmdtlmserver/js/117.js +0 -2
- data/tools/cmdtlmserver/js/117.js.map +0 -1
- data/tools/cmdtlmserver/js/208.js +0 -2
- data/tools/cmdtlmserver/js/208.js.map +0 -1
- data/tools/cmdtlmserver/js/262.js +0 -2
- data/tools/cmdtlmserver/js/262.js.map +0 -1
- data/tools/cmdtlmserver/js/317.js +0 -2
- data/tools/cmdtlmserver/js/317.js.map +0 -1
- data/tools/cmdtlmserver/js/440.js +0 -4
- data/tools/cmdtlmserver/js/440.js.map +0 -1
- data/tools/cmdtlmserver/js/493.js +0 -2
- data/tools/cmdtlmserver/js/493.js.map +0 -1
- data/tools/cmdtlmserver/js/516.js +0 -2
- data/tools/cmdtlmserver/js/516.js.map +0 -1
- data/tools/cmdtlmserver/js/63.js +0 -2
- data/tools/cmdtlmserver/js/63.js.map +0 -1
- data/tools/cmdtlmserver/js/647.js +0 -2
- data/tools/cmdtlmserver/js/647.js.map +0 -1
- data/tools/cmdtlmserver/js/725.js +0 -2
- data/tools/cmdtlmserver/js/725.js.map +0 -1
- data/tools/cmdtlmserver/js/732.js +0 -2
- data/tools/cmdtlmserver/js/732.js.map +0 -1
- data/tools/cmdtlmserver/js/932.js +0 -2
- data/tools/cmdtlmserver/js/932.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"js/732.js","mappings":"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","sources":["webpack://@openc3/tool-cmdtlmserver/./src/tools/CmdTlmServer/CmdPacketsTab.vue?288a","webpack://@openc3/tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue","webpack://@openc3/tool-cmdtlmserver/./src/tools/CmdTlmServer/CmdPacketsTab.vue?0025","webpack://@openc3/tool-cmdtlmserver/./src/tools/CmdTlmServer/CmdPacketsTab.vue"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',[_c('v-card-title',[_vm._v(\" \"+_vm._s(_vm.data.length)+\" Command Packets \"),_c('v-spacer'),_c('v-text-field',{attrs:{\"append-icon\":\"mdi-magnify\",\"label\":\"Search\",\"single-line\":\"\",\"hide-details\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":_vm.data,\"search\":_vm.search,\"items-per-page\":10,\"footer-props\":{ itemsPerPageOptions: [10, 20, 50, 100] },\"sort-by\":\"target_name\",\"calculate-widths\":\"\",\"multi-sort\":\"\",\"data-test\":\"cmd-packets-table\"},on:{\"pagination\":_vm.pagination},scopedSlots:_vm._u([{key:\"item.view_raw\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"primary\",\"disabled\":item.count < 1},on:{\"click\":function($event){return _vm.openViewRaw(item.target_name, item.packet_name)}}},[_vm._v(\" View Raw \")])]}},{key:\"item.view_in_cmd_sender\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.target_name === 'UNKNOWN')?_c('span',[_vm._v(\"N/A\")]):_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.openCmdSender(item.target_name, item.packet_name)}}},[_vm._v(\" View In Command Sender \"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-open-in-new \")])],1)]}}])}),_c('raw-dialog',{attrs:{\"type\":\"Command\",\"target-name\":_vm.target_name,\"packet-name\":_vm.packet_name,\"visible\":_vm.viewRaw},on:{\"display\":_vm.rawDisplayCallback}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n-->\n\n<template>\n <v-card>\n <v-card-title>\n {{ data.length }} Command Packets\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n append-icon=\"mdi-magnify\"\n label=\"Search\"\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"data\"\n :search=\"search\"\n :items-per-page=\"10\"\n :footer-props=\"{ itemsPerPageOptions: [10, 20, 50, 100] }\"\n sort-by=\"target_name\"\n @pagination=\"pagination\"\n calculate-widths\n multi-sort\n data-test=\"cmd-packets-table\"\n >\n <template v-slot:item.view_raw=\"{ item }\">\n <v-btn\n block\n color=\"primary\"\n :disabled=\"item.count < 1\"\n @click=\"openViewRaw(item.target_name, item.packet_name)\"\n >\n View Raw\n </v-btn>\n </template>\n <template v-slot:item.view_in_cmd_sender=\"{ item }\">\n <span v-if=\"item.target_name === 'UNKNOWN'\">N/A</span>\n <v-btn\n v-else\n block\n color=\"primary\"\n @click=\"openCmdSender(item.target_name, item.packet_name)\"\n >\n View In Command Sender\n <v-icon right> mdi-open-in-new </v-icon>\n </v-btn>\n </template>\n </v-data-table>\n <raw-dialog\n type=\"Command\"\n :target-name=\"target_name\"\n :packet-name=\"packet_name\"\n :visible=\"viewRaw\"\n @display=\"rawDisplayCallback\"\n />\n </v-card>\n</template>\n\n<script>\nimport Updater from './Updater'\nimport RawDialog from './RawDialog'\n\nexport default {\n components: {\n RawDialog,\n },\n mixins: [Updater],\n props: {\n tabId: Number,\n curTab: Number,\n },\n data() {\n return {\n search: '',\n data: [],\n headers: [\n { text: 'Target Name', value: 'target_name' },\n { text: 'Packet Name', value: 'packet_name' },\n { text: 'Packet Count', value: 'count' },\n { text: 'View Raw', value: 'view_raw' },\n { text: 'View In Command Sender', value: 'view_in_cmd_sender' },\n ],\n viewRaw: false,\n target_name: null,\n packet_name: null,\n paginationEvent: null,\n }\n },\n created() {\n this.api.get_target_list().then((targets) => {\n targets.map((target) => {\n this.api.get_all_command_names(target).then((names) => {\n this.data = this.data.concat(\n names.map((packet) => {\n return { target_name: target, packet_name: packet, count: 0 }\n })\n )\n })\n })\n })\n },\n methods: {\n // This method is hooked to the RawDialog as a callback to\n // keep track of whether the dialog is displayed\n rawDisplayCallback(bool) {\n this.viewRaw = bool\n },\n openViewRaw(target_name, packet_name) {\n this.target_name = target_name\n this.packet_name = packet_name\n this.viewRaw = true\n },\n openCmdSender(target_name, packet_name) {\n let routeData = this.$router.resolve({\n name: 'CommandSender',\n params: {\n target: target_name,\n packet: packet_name,\n },\n })\n window.open(`/tools/cmdsender/${target_name}/${packet_name}`, '_blank')\n },\n pagination(event) {\n this.paginationEvent = event\n },\n update() {\n if (this.tabId != this.curTab) return\n if (this.paginationEvent === null) return\n let visible = this.data\n .slice(this.paginationEvent.pageStart, this.paginationEvent.pageStop)\n .map((value) => {\n return [value.target_name, value.packet_name]\n })\n this.api.get_cmd_cnts(visible).then((counts) => {\n let countIndex = 0\n for (\n let i = this.paginationEvent.pageStart;\n i < this.paginationEvent.pageStart + counts.length;\n i++\n ) {\n this.data[i].count = counts[countIndex]\n countIndex++\n }\n })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CmdPacketsTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CmdPacketsTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CmdPacketsTab.vue?vue&type=template&id=76e62c3a&\"\nimport script from \"./CmdPacketsTab.vue?vue&type=script&lang=js&\"\nexport * from \"./CmdPacketsTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_h","$createElement","_c","_self","_v","_s","data","length","attrs","model","value","callback","$$v","search","expression","headers","itemsPerPageOptions","on","pagination","scopedSlots","_u","key","fn","ref","item","count","$event","openViewRaw","target_name","packet_name","openCmdSender","viewRaw","rawDisplayCallback","staticRenderFns","components","RawDialog","mixins","props","tabId","curTab","text","paginationEvent","created","targets","names","methods","bool","name","params","target","packet","window","event","update","slice","map","i","countIndex","component"],"sourceRoot":""}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_tool_cmdtlmserver"]=self["webpackChunk_openc3_tool_cmdtlmserver"]||[]).push([[932],{3932:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return u}});var a=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("v-card",{attrs:{flat:""}},[t("v-container",{staticClass:"ma-0 pa-4"},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{cols:"auto"}},[t("v-select",{attrs:{label:"Limits Set",items:n.limitsSets,"data-test":"limits-set"},model:{value:n.currentLimitsSet,callback:function(e){n.currentLimitsSet=e},expression:"currentLimitsSet"}})],1)],1)],1)],1)],1)},l=[],s=(t(1245),t(1493));function i(){var n="/openc3/plugins/packages/openc3-tool-cmdtlmserver/src/tools/CmdTlmServer/StatusTab.vue",e="29bbe55c98ef325d60ee0cda4794781d366ab924",t=new Function("return this")(),a="__coverage__",l={path:"/openc3/plugins/packages/openc3-tool-cmdtlmserver/src/tools/CmdTlmServer/StatusTab.vue",statementMap:{0:{start:{line:84,column:4},end:{line:104,column:5}},1:{start:{line:108,column:6},end:{line:108,column:43}},2:{start:{line:112,column:4},end:{line:114,column:6}},3:{start:{line:113,column:6},end:{line:113,column:28}},4:{start:{line:115,column:4},end:{line:115,column:30}},5:{start:{line:116,column:4},end:{line:119,column:5}},6:{start:{line:122,column:4},end:{line:122,column:49}},7:{start:{line:158,column:6},end:{line:160,column:8}},8:{start:{line:159,column:8},end:{line:159,column:38}},9:{start:{line:163,column:6},end:{line:163,column:36}},10:{start:{line:166,column:6},end:{line:170,column:7}},11:{start:{line:167,column:8},end:{line:167,column:44}},12:{start:{line:168,column:13},end:{line:170,column:7}},13:{start:{line:169,column:8},end:{line:169,column:43}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:83,column:2},end:{line:83,column:3}},loc:{start:{line:83,column:9},end:{line:105,column:3}},line:83},1:{name:"(anonymous_1)",decl:{start:{line:107,column:22},end:{line:107,column:23}},loc:{start:{line:107,column:48},end:{line:109,column:5}},line:107},2:{name:"(anonymous_2)",decl:{start:{line:111,column:2},end:{line:111,column:3}},loc:{start:{line:111,column:12},end:{line:120,column:3}},line:111},3:{name:"(anonymous_3)",decl:{start:{line:112,column:36},end:{line:112,column:37}},loc:{start:{line:112,column:46},end:{line:114,column:5}},line:112},4:{name:"(anonymous_4)",decl:{start:{line:121,column:13},end:{line:121,column:14}},loc:{start:{line:121,column:25},end:{line:123,column:3}},line:121},5:{name:"(anonymous_5)",decl:{start:{line:157,column:25},end:{line:157,column:26}},loc:{start:{line:157,column:37},end:{line:161,column:5}},line:157},6:{name:"(anonymous_6)",decl:{start:{line:158,column:37},end:{line:158,column:38}},loc:{start:{line:158,column:49},end:{line:160,column:7}},line:158},7:{name:"(anonymous_7)",decl:{start:{line:162,column:4},end:{line:162,column:5}},loc:{start:{line:162,column:24},end:{line:164,column:5}},line:162},8:{name:"(anonymous_8)",decl:{start:{line:165,column:4},end:{line:165,column:5}},loc:{start:{line:165,column:29},end:{line:171,column:5}},line:165}},branchMap:{0:{loc:{start:{line:108,column:6},end:{line:108,column:43}},type:"binary-expr",locations:[{start:{line:108,column:6},end:{line:108,column:14}},{start:{line:108,column:18},end:{line:108,column:43}}],line:108},1:{loc:{start:{line:166,column:6},end:{line:170,column:7}},type:"if",locations:[{start:{line:166,column:6},end:{line:170,column:7}},{start:{line:168,column:13},end:{line:170,column:7}}],line:166},2:{loc:{start:{line:168,column:13},end:{line:170,column:7}},type:"if",locations:[{start:{line:168,column:13},end:{line:170,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:168}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["StatusTab.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"StatusTab.vue",sourceRoot:"src/tools/CmdTlmServer",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n--\x3e\n\n<template>\n <div>\n \x3c!-- Use a container here so we can do cols=\"auto\" to resize v-select --\x3e\n <v-card flat>\n <v-container class=\"ma-0 pa-4\">\n <v-row no-gutters>\n <v-col cols=\"auto\">\n \x3c!-- TODO: move to admin settings and delete this tab --\x3e\n <v-select\n label=\"Limits Set\"\n :items=\"limitsSets\"\n v-model=\"currentLimitsSet\"\n data-test=\"limits-set\"\n />\n </v-col>\n </v-row>\n </v-container>\n </v-card>\n\n \x3c!-- v-card flat>\n <v-card-title>API Status</v-card-title>\n <v-data-table\n :headers=\"apiHeaders\"\n :items=\"apiStatus\"\n calculate-widths\n disable-pagination\n hide-default-footer\n />\n </v-card>\n\n <v-card flat>\n <v-card-title>Background Tasks</v-card-title>\n <v-data-table\n :headers=\"backgroundHeaders\"\n :items=\"backgroundTasks\"\n calculate-widths\n disable-pagination\n hide-default-footer\n >\n <template v-slot:item.control=\"{ item }\">\n <v-btn\n block\n color=\"primary\"\n @click=\"taskControl(item.name, item.control)\"\n >\n {{ item.control }}\n </v-btn>\n </template>\n </v-data-table>\n </v-card --\x3e\n </div>\n</template>\n\n<script>\n// import Updater from './Updater'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\n\nexport default {\n // mixins: [Updater],\n props: {\n tabId: Number,\n curTab: Number,\n },\n data() {\n return {\n api: new OpenC3Api(),\n apiStatus: [],\n apiHeaders: [\n { text: 'Port', value: 'port' },\n { text: 'Clients', value: 'clients' },\n { text: 'Requests', value: 'requests' },\n { text: 'Avg Request Time', value: 'avgTime' },\n { text: 'Server Threads', value: 'threads' },\n ],\n backgroundTasks: [],\n backgroundHeaders: [\n { text: 'Name', value: 'name' },\n { text: 'State', value: 'state' },\n { text: 'Status', value: 'status' },\n { text: 'Control', value: 'control' },\n ],\n limitsSets: [],\n currentLimitsSet: '',\n currentSetRefreshInterval: null,\n }\n },\n watch: {\n currentLimitsSet: function (newVal, oldVal) {\n !!oldVal && this.limitsChange(newVal)\n },\n },\n created() {\n this.api.get_limits_sets().then((sets) => {\n this.limitsSets = sets\n })\n this.getCurrentLimitsSet()\n this.currentSetRefreshInterval = setInterval(\n this.getCurrentLimitsSet,\n 60 * 1000\n )\n },\n destroyed: function () {\n clearInterval(this.currentSetRefreshInterval)\n },\n methods: {\n // update() {\n // if (this.tabId != this.curTab) return\n // this.api.get_server_status().then((status) => {\n // this.currentLimitsSet = status[0]\n // this.apiStatus = [\n // {\n // port: status[1],\n // clients: status[2],\n // requests: status[3],\n // avgTime: (Math.round(status[4] * 1000000) / 1000000).toFixed(6),\n // threads: status[5],\n // },\n // ]\n // })\n // this.api.get_background_tasks().then((tasks) => {\n // this.backgroundTasks = []\n // for (let x of tasks) {\n // var control = ''\n // if (x[1] == 'no thread' || x[1] == 'complete') {\n // control = 'Start'\n // } else {\n // control = 'Stop'\n // }\n // this.backgroundTasks.push({\n // name: x[0],\n // state: x[1],\n // status: x[2],\n // control: control,\n // })\n // }\n // })\n // },\n getCurrentLimitsSet: function () {\n this.api.get_limits_set().then((result) => {\n this.currentLimitsSet = result\n })\n },\n limitsChange(value) {\n this.api.set_limits_set(value)\n },\n taskControl(name, state) {\n if (state == 'Start') {\n this.api.start_background_task(name)\n } else if (state == 'Stop') {\n this.api.stop_background_task(name)\n }\n },\n },\n}\n<\/script>\n\n<style scoped>\n.container,\n.theme--dark.v-card,\n.theme--dark.v-sheet {\n background-color: var(--v-tertiary-darken2);\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"29bbe55c98ef325d60ee0cda4794781d366ab924"},s=t[a]||(t[a]={});s[n]&&s[n].hash===e||(s[n]=l);var r=s[n];return i=function(){return r},r}i();var r={props:{tabId:Number,curTab:Number},data:function(){return i().f[0]++,i().s[0]++,{api:new s.k,apiStatus:[],apiHeaders:[{text:"Port",value:"port"},{text:"Clients",value:"clients"},{text:"Requests",value:"requests"},{text:"Avg Request Time",value:"avgTime"},{text:"Server Threads",value:"threads"}],backgroundTasks:[],backgroundHeaders:[{text:"Name",value:"name"},{text:"State",value:"state"},{text:"Status",value:"status"},{text:"Control",value:"control"}],limitsSets:[],currentLimitsSet:"",currentSetRefreshInterval:null}},watch:{currentLimitsSet:function(n,e){i().f[1]++,i().s[1]++,i().b[0][0]++,e&&(i().b[0][1]++,this.limitsChange(n))}},created:function(){var n=this;i().f[2]++,i().s[2]++,this.api.get_limits_sets().then((function(e){i().f[3]++,i().s[3]++,n.limitsSets=e})),i().s[4]++,this.getCurrentLimitsSet(),i().s[5]++,this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4)},destroyed:function(){i().f[4]++,i().s[6]++,clearInterval(this.currentSetRefreshInterval)},methods:{getCurrentLimitsSet:function(){var n=this;i().f[5]++,i().s[7]++,this.api.get_limits_set().then((function(e){i().f[6]++,i().s[8]++,n.currentLimitsSet=e}))},limitsChange:function(n){i().f[7]++,i().s[9]++,this.api.set_limits_set(n)},taskControl:function(n,e){i().f[8]++,i().s[10]++,"Start"==e?(i().b[1][0]++,i().s[11]++,this.api.start_background_task(n)):(i().b[1][1]++,i().s[12]++,"Stop"==e?(i().b[2][0]++,i().s[13]++,this.api.stop_background_task(n)):i().b[2][1]++)}}},o=r,A=(t(1463),t(3287)),c=(0,A.Z)(o,a,l,!1,null,"121f6948",null),u=c.exports},9167:function(n,e,t){"use strict";t.r(e);var a=t(3467),l=t.n(a),s=t(8715),i=t.n(s),r=i()(l());r.push([n.id,".container[data-v-121f6948],.theme--dark.v-card[data-v-121f6948],.theme--dark.v-sheet[data-v-121f6948]{background-color:var(--v-tertiary-darken2)}",""]),e["default"]=r},1463:function(n,e,t){var a=t(9167);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[n.id,a,""]]),a.locals&&(n.exports=a.locals);var l=t(3514).Z;l("5d0eed91",a,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=932.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"js/932.js","mappings":"8LAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,KAAK,CAACF,EAAG,cAAc,CAACG,YAAY,aAAa,CAACH,EAAG,QAAQ,CAACE,MAAM,CAAC,aAAa,KAAK,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,SAAS,CAACF,EAAG,WAAW,CAACE,MAAM,CAAC,MAAQ,aAAa,MAAQN,EAAIQ,WAAW,YAAY,cAAcC,MAAM,CAACC,MAAOV,EAAoB,iBAAEW,SAAS,SAAUC,GAAMZ,EAAIa,iBAAiBD,CAAG,EAAEE,WAAW,uBAAuB,IAAI,IAAI,IAAI,IAAI,EAAE,EACpeC,EAAkB,G,0lSC2EtB,OAEAC,MAAAA,CACAC,MAAAA,OACAC,OAAAA,QAEAC,KANA,WAOA,OADA,sBACA,CACAC,IAAAA,IAAAA,EAAAA,EACAC,UAAAA,GACAC,WAAAA,CACA,CAAAC,KAAAA,OAAAb,MAAAA,QACA,CAAAa,KAAAA,UAAAb,MAAAA,WACA,CAAAa,KAAAA,WAAAb,MAAAA,YACA,CAAAa,KAAAA,mBAAAb,MAAAA,WACA,CAAAa,KAAAA,iBAAAb,MAAAA,YAEAc,gBAAAA,GACAC,kBAAAA,CACA,CAAAF,KAAAA,OAAAb,MAAAA,QACA,CAAAa,KAAAA,QAAAb,MAAAA,SACA,CAAAa,KAAAA,SAAAb,MAAAA,UACA,CAAAa,KAAAA,UAAAb,MAAAA,YAEAF,WAAAA,GACAK,iBAAAA,GACAa,0BAAAA,KAEA,EACAC,MAAAA,CACAd,iBAAAA,SAAAA,EAAAA,GAAA,sBACA,qDACA,GAEAe,QAlCA,WAkCA,iCACA,mEACA,cACA,IAHA,WAIA,2BAJA,WAKA,2CACA,yBACA,IAEA,EACAC,UAAAA,WAAA,sBACAC,cAAAA,KAAAA,0BACA,EACAC,QAAAA,CAiCAC,oBAAAA,WAAA,iCACA,kEACA,oBACA,GACA,EACAC,aAtCA,SAsCAvB,GAAA,sBACA,0BACA,EACAwB,YAzCA,SAyCAC,EAAAC,GAAA,uBACA,sCACA,oCACA,+DACA,kCADA,cAGA,IC1KwX,I,oBCQpXC,GAAY,OACd,EACAtC,EACAgB,GACA,EACA,KACA,WACA,MAIF,EAAesB,EAAiB,O,qFChB5BC,EAA0B,IAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,qJAAsJ,KAE/L,c,uBCJA,IAAIC,EAAU,EAAQ,MACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,GAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOM,QAAUJ,EAAQG,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYL,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue?825e","webpack://@openc3/tool-cmdtlmserver/src/tools/CmdTlmServer/StatusTab.vue","webpack://@openc3/tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue?6aa1","webpack://@openc3/tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue","webpack://@openc3/tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue?3c9b","webpack://@openc3/tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue?de5b"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card',{attrs:{\"flat\":\"\"}},[_c('v-container',{staticClass:\"ma-0 pa-4\"},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('v-select',{attrs:{\"label\":\"Limits Set\",\"items\":_vm.limitsSets,\"data-test\":\"limits-set\"},model:{value:(_vm.currentLimitsSet),callback:function ($$v) {_vm.currentLimitsSet=$$v},expression:\"currentLimitsSet\"}})],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n-->\n\n<template>\n <div>\n <!-- Use a container here so we can do cols=\"auto\" to resize v-select -->\n <v-card flat>\n <v-container class=\"ma-0 pa-4\">\n <v-row no-gutters>\n <v-col cols=\"auto\">\n <!-- TODO: move to admin settings and delete this tab -->\n <v-select\n label=\"Limits Set\"\n :items=\"limitsSets\"\n v-model=\"currentLimitsSet\"\n data-test=\"limits-set\"\n />\n </v-col>\n </v-row>\n </v-container>\n </v-card>\n\n <!-- v-card flat>\n <v-card-title>API Status</v-card-title>\n <v-data-table\n :headers=\"apiHeaders\"\n :items=\"apiStatus\"\n calculate-widths\n disable-pagination\n hide-default-footer\n />\n </v-card>\n\n <v-card flat>\n <v-card-title>Background Tasks</v-card-title>\n <v-data-table\n :headers=\"backgroundHeaders\"\n :items=\"backgroundTasks\"\n calculate-widths\n disable-pagination\n hide-default-footer\n >\n <template v-slot:item.control=\"{ item }\">\n <v-btn\n block\n color=\"primary\"\n @click=\"taskControl(item.name, item.control)\"\n >\n {{ item.control }}\n </v-btn>\n </template>\n </v-data-table>\n </v-card -->\n </div>\n</template>\n\n<script>\n// import Updater from './Updater'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\n\nexport default {\n // mixins: [Updater],\n props: {\n tabId: Number,\n curTab: Number,\n },\n data() {\n return {\n api: new OpenC3Api(),\n apiStatus: [],\n apiHeaders: [\n { text: 'Port', value: 'port' },\n { text: 'Clients', value: 'clients' },\n { text: 'Requests', value: 'requests' },\n { text: 'Avg Request Time', value: 'avgTime' },\n { text: 'Server Threads', value: 'threads' },\n ],\n backgroundTasks: [],\n backgroundHeaders: [\n { text: 'Name', value: 'name' },\n { text: 'State', value: 'state' },\n { text: 'Status', value: 'status' },\n { text: 'Control', value: 'control' },\n ],\n limitsSets: [],\n currentLimitsSet: '',\n currentSetRefreshInterval: null,\n }\n },\n watch: {\n currentLimitsSet: function (newVal, oldVal) {\n !!oldVal && this.limitsChange(newVal)\n },\n },\n created() {\n this.api.get_limits_sets().then((sets) => {\n this.limitsSets = sets\n })\n this.getCurrentLimitsSet()\n this.currentSetRefreshInterval = setInterval(\n this.getCurrentLimitsSet,\n 60 * 1000\n )\n },\n destroyed: function () {\n clearInterval(this.currentSetRefreshInterval)\n },\n methods: {\n // update() {\n // if (this.tabId != this.curTab) return\n // this.api.get_server_status().then((status) => {\n // this.currentLimitsSet = status[0]\n // this.apiStatus = [\n // {\n // port: status[1],\n // clients: status[2],\n // requests: status[3],\n // avgTime: (Math.round(status[4] * 1000000) / 1000000).toFixed(6),\n // threads: status[5],\n // },\n // ]\n // })\n // this.api.get_background_tasks().then((tasks) => {\n // this.backgroundTasks = []\n // for (let x of tasks) {\n // var control = ''\n // if (x[1] == 'no thread' || x[1] == 'complete') {\n // control = 'Start'\n // } else {\n // control = 'Stop'\n // }\n // this.backgroundTasks.push({\n // name: x[0],\n // state: x[1],\n // status: x[2],\n // control: control,\n // })\n // }\n // })\n // },\n getCurrentLimitsSet: function () {\n this.api.get_limits_set().then((result) => {\n this.currentLimitsSet = result\n })\n },\n limitsChange(value) {\n this.api.set_limits_set(value)\n },\n taskControl(name, state) {\n if (state == 'Start') {\n this.api.start_background_task(name)\n } else if (state == 'Stop') {\n this.api.stop_background_task(name)\n }\n },\n },\n}\n</script>\n\n<style scoped>\n.container,\n.theme--dark.v-card,\n.theme--dark.v-sheet {\n background-color: var(--v-tertiary-darken2);\n}\n</style>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./StatusTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./StatusTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StatusTab.vue?vue&type=template&id=121f6948&scoped=true&\"\nimport script from \"./StatusTab.vue?vue&type=script&lang=js&\"\nexport * from \"./StatusTab.vue?vue&type=script&lang=js&\"\nimport style0 from \"./StatusTab.vue?vue&type=style&index=0&id=121f6948&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"121f6948\",\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".container[data-v-121f6948],.theme--dark.v-card[data-v-121f6948],.theme--dark.v-sheet[data-v-121f6948]{background-color:var(--v-tertiary-darken2)}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./StatusTab.vue?vue&type=style&index=0&id=121f6948&prod&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"5d0eed91\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","limitsSets","model","value","callback","$$v","currentLimitsSet","expression","staticRenderFns","props","tabId","curTab","data","api","apiStatus","apiHeaders","text","backgroundTasks","backgroundHeaders","currentSetRefreshInterval","watch","created","destroyed","clearInterval","methods","getCurrentLimitsSet","limitsChange","taskControl","name","state","component","___CSS_LOADER_EXPORT___","push","module","id","content","__esModule","default","locals","exports","add"],"sourceRoot":""}
|