openc3-cosmos-tool-cmdtlmserver 5.5.2.pre.beta0.20230315041131 → 5.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/cmdtlmserver/index.html +1 -4
- data/tools/cmdtlmserver/js/264.js +2 -0
- data/tools/cmdtlmserver/js/264.js.map +1 -0
- data/tools/cmdtlmserver/js/{390.js → 320.js} +2 -2
- data/tools/cmdtlmserver/js/{390.js.map → 320.js.map} +1 -1
- data/tools/cmdtlmserver/js/{755.js → 377.js} +2 -2
- data/tools/cmdtlmserver/js/377.js.map +1 -0
- data/tools/cmdtlmserver/js/{558.js → 398.js} +2 -2
- data/tools/cmdtlmserver/js/{558.js.map → 398.js.map} +1 -1
- data/tools/cmdtlmserver/js/49.js +2 -0
- data/tools/cmdtlmserver/js/49.js.map +1 -0
- data/tools/cmdtlmserver/js/{721.js → 493.js} +2 -2
- data/tools/cmdtlmserver/js/{721.js.map → 493.js.map} +1 -1
- data/tools/cmdtlmserver/js/{706.js → 830.js} +2 -2
- data/tools/cmdtlmserver/js/{706.js.map → 830.js.map} +1 -1
- data/tools/cmdtlmserver/js/872.js +1 -1
- data/tools/cmdtlmserver/js/872.js.map +1 -1
- data/tools/cmdtlmserver/js/916.js +2 -0
- data/tools/cmdtlmserver/js/916.js.map +1 -0
- data/tools/cmdtlmserver/js/931.js.map +1 -1
- data/tools/cmdtlmserver/js/{521.js → 96.js} +2 -2
- data/tools/cmdtlmserver/js/96.js.map +1 -0
- data/tools/cmdtlmserver/js/app.js +1 -1
- data/tools/cmdtlmserver/js/app.js.map +1 -1
- metadata +22 -22
- data/tools/cmdtlmserver/js/142.js +0 -2
- data/tools/cmdtlmserver/js/142.js.map +0 -1
- data/tools/cmdtlmserver/js/521.js.map +0 -1
- data/tools/cmdtlmserver/js/53.js +0 -2
- data/tools/cmdtlmserver/js/53.js.map +0 -1
- data/tools/cmdtlmserver/js/720.js +0 -2
- data/tools/cmdtlmserver/js/720.js.map +0 -1
- data/tools/cmdtlmserver/js/755.js.map +0 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[706],{8706:function(n,e,t){t.r(e),t.d(e,{default:function(){return A}});t(7950),t(4908);function l(){var n="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue",e="532114d6d9c14af06aaac4182740e9bfff411443",t=new Function("return this")(),a="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue",statementMap:{0:{start:{line:1,column:13},end:{line:5,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:4,column:944}},4:{start:{line:1,column:328},end:{line:1,column:342}},5:{start:{line:4,column:202},end:{line:4,column:400}},6:{start:{line:4,column:314},end:{line:4,column:372}},7:{start:{line:4,column:456},end:{line:4,column:770}},8:{start:{line:4,column:602},end:{line:4,column:662}},9:{start:{line:6,column:22},end:{line:6,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:5,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:312},end:{line:1,column:313}},loc:{start:{line:1,column:327},end:{line:1,column:343}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:4,column:183},end:{line:4,column:184}},loc:{start:{line:4,column:201},end:{line:4,column:401}},line:4},3:{name:"(anonymous_3)",decl:{start:{line:4,column:297},end:{line:4,column:298}},loc:{start:{line:4,column:313},end:{line:4,column:373}},line:4},4:{name:"(anonymous_4)",decl:{start:{line:4,column:437},end:{line:4,column:438}},loc:{start:{line:4,column:455},end:{line:4,column:771}},line:4},5:{name:"(anonymous_5)",decl:{start:{line:4,column:585},end:{line:4,column:586}},loc:{start:{line:4,column:601},end:{line:4,column:663}},line:4}},branchMap:{0:{loc:{start:{line:4,column:464},end:{line:4,column:769}},type:"cond-expr",locations:[{start:{line:4,column:497},end:{line:4,column:523}},{start:{line:4,column:524},end:{line:4,column:769}}],line:4}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"532114d6d9c14af06aaac4182740e9bfff411443"},o=t[a]||(t[a]={});o[n]&&o[n].hash===e||(o[n]=i);var c=o[n];return l=function(){return c},c}l(),l().s[0]++;var a=function(){l().f[0]++;var n=(l().s[1]++,this),e=(l().s[2]++,n._self._c);return l().s[3]++,e("v-card",[e("v-card-title",[n._v(" "+n._s(n.data.length)+" Command Packets "),e("v-spacer"),e("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:n.search,callback:function(e){l().f[1]++,l().s[4]++,n.search=e},expression:"search"}})],1),e("v-data-table",{attrs:{headers:n.headers,items:n.data,search:n.search,"items-per-page":10,"footer-props":{itemsPerPageOptions:[10,20,50,100],showFirstLastPage:!0},"sort-by":"target_name","calculate-widths":"","multi-sort":"","data-test":"cmd-packets-table"},on:{"current-items":n.currentItems},scopedSlots:n._u([{key:"item.view_raw",fn:function(t){var a=t.item;return l().f[2]++,l().s[5]++,[e("v-btn",{attrs:{block:"",color:"primary",disabled:a.count<1},on:{click:function(e){return l().f[3]++,l().s[6]++,n.openViewRaw(a.target_name,a.packet_name)}}},[n._v(" View Raw ")])]}},{key:"item.view_in_cmd_sender",fn:function(t){var a=t.item;return l().f[4]++,l().s[7]++,["UNKNOWN"===a.target_name?(l().b[0][0]++,e("span",[n._v("N/A")])):(l().b[0][1]++,e("v-btn",{attrs:{block:"",color:"primary"},on:{click:function(e){return l().f[5]++,l().s[8]++,n.openCmdSender(a.target_name,a.packet_name)}}},[n._v(" View In Command Sender "),e("v-icon",{attrs:{right:""}},[n._v(" mdi-open-in-new ")])],1))]}}])}),e("raw-dialog",{attrs:{type:"Command","target-name":n.target_name,"packet-name":n.packet_name,visible:n.viewRaw},on:{display:n.rawDisplayCallback}})],1)},i=(l().s[9]++,[]),o=(t(1245),t(3450),t(8178),t(9949),t(4872)),c=t(8390);function m(){var n="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue",e="794643380c846d4e6f64e33bcaf8466f366ade65",t=new Function("return this")(),l="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue",statementMap:{0:{start:{line:15,column:4},end:{line:29,column:5}},1:{start:{line:32,column:4},end:{line:42,column:6}},2:{start:{line:33,column:6},end:{line:41,column:8}},3:{start:{line:34,column:8},end:{line:40,column:10}},4:{start:{line:35,column:10},end:{line:39,column:11}},5:{start:{line:37,column:14},end:{line:37,column:75}},6:{start:{line:48,column:6},end:{line:48,column:25}},7:{start:{line:51,column:6},end:{line:51,column:36}},8:{start:{line:52,column:6},end:{line:52,column:36}},9:{start:{line:53,column:6},end:{line:53,column:25}},10:{start:{line:56,column:22},end:{line:62,column:8}},11:{start:{line:63,column:6},end:{line:63,column:77}},12:{start:{line:66,column:6},end:{line:68,column:8}},13:{start:{line:67,column:8},end:{line:67,column:45}},14:{start:{line:71,column:6},end:{line:71,column:43}},15:{start:{line:71,column:37},end:{line:71,column:43}},16:{start:{line:72,column:6},end:{line:72,column:44}},17:{start:{line:72,column:38},end:{line:72,column:44}},18:{start:{line:73,column:6},end:{line:82,column:8}},19:{start:{line:74,column:8},end:{line:81,column:9}},20:{start:{line:74,column:21},end:{line:74,column:22}},21:{start:{line:75,column:22},end:{line:79,column:11}},22:{start:{line:77,column:14},end:{line:78,column:53}},23:{start:{line:80,column:10},end:{line:80,column:44}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:9},end:{line:30,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:31,column:2},end:{line:31,column:3}},loc:{start:{line:31,column:12},end:{line:43,column:3}},line:31},2:{name:"(anonymous_2)",decl:{start:{line:32,column:36},end:{line:32,column:37}},loc:{start:{line:32,column:49},end:{line:42,column:5}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:33,column:18},end:{line:33,column:19}},loc:{start:{line:33,column:30},end:{line:41,column:7}},line:33},4:{name:"(anonymous_4)",decl:{start:{line:34,column:52},end:{line:34,column:53}},loc:{start:{line:34,column:63},end:{line:40,column:9}},line:34},5:{name:"(anonymous_5)",decl:{start:{line:36,column:22},end:{line:36,column:23}},loc:{start:{line:36,column:34},end:{line:38,column:13}},line:36},6:{name:"(anonymous_6)",decl:{start:{line:47,column:4},end:{line:47,column:5}},loc:{start:{line:47,column:29},end:{line:49,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:42},end:{line:54,column:5}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:55,column:4},end:{line:55,column:5}},loc:{start:{line:55,column:44},end:{line:64,column:5}},line:55},9:{name:"(anonymous_9)",decl:{start:{line:65,column:4},end:{line:65,column:5}},loc:{start:{line:65,column:24},end:{line:69,column:5}},line:65},10:{name:"(anonymous_10)",decl:{start:{line:66,column:31},end:{line:66,column:32}},loc:{start:{line:66,column:38},end:{line:68,column:7}},line:66},11:{name:"(anonymous_11)",decl:{start:{line:70,column:4},end:{line:70,column:5}},loc:{start:{line:70,column:13},end:{line:83,column:5}},line:70},12:{name:"(anonymous_12)",decl:{start:{line:73,column:47},end:{line:73,column:48}},loc:{start:{line:73,column:59},end:{line:82,column:7}},line:73},13:{name:"(anonymous_13)",decl:{start:{line:76,column:12},end:{line:76,column:13}},loc:{start:{line:77,column:14},end:{line:78,column:53}},line:77}},branchMap:{0:{loc:{start:{line:71,column:6},end:{line:71,column:43}},type:"if",locations:[{start:{line:71,column:6},end:{line:71,column:43}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:71},1:{loc:{start:{line:72,column:6},end:{line:72,column:44}},type:"if",locations:[{start:{line:72,column:6},end:{line:72,column:44}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:72},2:{loc:{start:{line:77,column:14},end:{line:78,column:53}},type:"binary-expr",locations:[{start:{line:77,column:14},end:{line:77,column:53}},{start:{line:78,column:14},end:{line:78,column:53}}],line:77}},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,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0},f:{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},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["CmdPacketsTab.vue"],names:[],mappings:";AAoFA;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",file:"CmdPacketsTab.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#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\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="{\n itemsPerPageOptions: [10, 20, 50, 100],\n showFirstLastPage: true,\n }"\n sort-by="target_name"\n @current-items="currentItems"\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 visible: 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 currentItems(event) {\n this.visible = event.map((i) => {\n return [i.target_name, i.packet_name]\n })\n },\n update() {\n if (this.tabId != this.curTab) return\n if (this.currentItems === null) return\n this.api.get_cmd_cnts(this.visible).then((counts) => {\n for (let i = 0; i < counts.length; i++) {\n let index = this.data.findIndex(\n (item) =>\n item.target_name === this.visible[i][0] &&\n item.packet_name === this.visible[i][1]\n )\n this.data[index].count = counts[i]\n }\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"794643380c846d4e6f64e33bcaf8466f366ade65"},i=t[l]||(t[l]={});i[n]&&i[n].hash===e||(i[n]=a);var o=i[n];return m=function(){return o},o}m();var s={components:{RawDialog:c.Z},mixins:[o.Z],props:{tabId:Number,curTab:Number},data:function(){return m().f[0]++,m().s[0]++,{search:"",data:[],headers:[{text:"Target Name",value:"target_name"},{text:"Packet Name",value:"packet_name"},{text:"Packet Count",value:"count"},{text:"View Raw",value:"view_raw"},{text:"View In Command Sender",value:"view_in_cmd_sender"}],viewRaw:!1,target_name:null,packet_name:null,visible:null}},created:function(){var n=this;m().f[1]++,m().s[1]++,this.api.get_target_list().then((function(e){m().f[2]++,m().s[2]++,e.map((function(e){m().f[3]++,m().s[3]++,n.api.get_all_command_names(e).then((function(t){m().f[4]++,m().s[4]++,n.data=n.data.concat(t.map((function(n){return m().f[5]++,m().s[5]++,{target_name:e,packet_name:n,count:0}})))}))}))}))},methods:{rawDisplayCallback:function(n){m().f[6]++,m().s[6]++,this.viewRaw=n},openViewRaw:function(n,e){m().f[7]++,m().s[7]++,this.target_name=n,m().s[8]++,this.packet_name=e,m().s[9]++,this.viewRaw=!0},openCmdSender:function(n,e){m().f[8]++;m().s[10]++,this.$router.resolve({name:"CommandSender",params:{target:n,packet:e}});m().s[11]++,window.open("/tools/cmdsender/".concat(n,"/").concat(e),"_blank")},currentItems:function(n){m().f[9]++,m().s[12]++,this.visible=n.map((function(n){return m().f[10]++,m().s[13]++,[n.target_name,n.packet_name]}))},update:function(){var n=this;return m().f[11]++,m().s[14]++,this.tabId!=this.curTab?(m().b[0][0]++,void m().s[15]++):(m().b[0][1]++,m().s[16]++,null===this.currentItems?(m().b[1][0]++,void m().s[17]++):(m().b[1][1]++,m().s[18]++,void this.api.get_cmd_cnts(this.visible).then((function(e){m().f[12]++,m().s[19]++;for(var t=function(t){var l=(m().s[21]++,n.data.findIndex((function(e){return m().f[13]++,m().s[22]++,m().b[2][0]++,e.target_name===n.visible[t][0]&&(m().b[2][1]++,e.packet_name===n.visible[t][1])})));m().s[23]++,n.data[l].count=e[t]},l=(m().s[20]++,0);l<e.length;l++)t(l)}))))}}},r=s,u=t(3287),d=(0,u.Z)(r,a,i,!1,null,null,null),A=d.exports}}]);
|
2
|
-
//# sourceMappingURL=
|
1
|
+
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[830],{5830:function(n,e,t){t.r(e),t.d(e,{default:function(){return A}});t(7950),t(4908);function l(){var n="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue",e="532114d6d9c14af06aaac4182740e9bfff411443",t=new Function("return this")(),a="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue",statementMap:{0:{start:{line:1,column:13},end:{line:5,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:4,column:944}},4:{start:{line:1,column:328},end:{line:1,column:342}},5:{start:{line:4,column:202},end:{line:4,column:400}},6:{start:{line:4,column:314},end:{line:4,column:372}},7:{start:{line:4,column:456},end:{line:4,column:770}},8:{start:{line:4,column:602},end:{line:4,column:662}},9:{start:{line:6,column:22},end:{line:6,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:5,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:312},end:{line:1,column:313}},loc:{start:{line:1,column:327},end:{line:1,column:343}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:4,column:183},end:{line:4,column:184}},loc:{start:{line:4,column:201},end:{line:4,column:401}},line:4},3:{name:"(anonymous_3)",decl:{start:{line:4,column:297},end:{line:4,column:298}},loc:{start:{line:4,column:313},end:{line:4,column:373}},line:4},4:{name:"(anonymous_4)",decl:{start:{line:4,column:437},end:{line:4,column:438}},loc:{start:{line:4,column:455},end:{line:4,column:771}},line:4},5:{name:"(anonymous_5)",decl:{start:{line:4,column:585},end:{line:4,column:586}},loc:{start:{line:4,column:601},end:{line:4,column:663}},line:4}},branchMap:{0:{loc:{start:{line:4,column:464},end:{line:4,column:769}},type:"cond-expr",locations:[{start:{line:4,column:497},end:{line:4,column:523}},{start:{line:4,column:524},end:{line:4,column:769}}],line:4}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"532114d6d9c14af06aaac4182740e9bfff411443"},o=t[a]||(t[a]={});o[n]&&o[n].hash===e||(o[n]=i);var c=o[n];return l=function(){return c},c}l(),l().s[0]++;var a=function(){l().f[0]++;var n=(l().s[1]++,this),e=(l().s[2]++,n._self._c);return l().s[3]++,e("v-card",[e("v-card-title",[n._v(" "+n._s(n.data.length)+" Command Packets "),e("v-spacer"),e("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:n.search,callback:function(e){l().f[1]++,l().s[4]++,n.search=e},expression:"search"}})],1),e("v-data-table",{attrs:{headers:n.headers,items:n.data,search:n.search,"items-per-page":10,"footer-props":{itemsPerPageOptions:[10,20,50,100],showFirstLastPage:!0},"sort-by":"target_name","calculate-widths":"","multi-sort":"","data-test":"cmd-packets-table"},on:{"current-items":n.currentItems},scopedSlots:n._u([{key:"item.view_raw",fn:function(t){var a=t.item;return l().f[2]++,l().s[5]++,[e("v-btn",{attrs:{block:"",color:"primary",disabled:a.count<1},on:{click:function(e){return l().f[3]++,l().s[6]++,n.openViewRaw(a.target_name,a.packet_name)}}},[n._v(" View Raw ")])]}},{key:"item.view_in_cmd_sender",fn:function(t){var a=t.item;return l().f[4]++,l().s[7]++,["UNKNOWN"===a.target_name?(l().b[0][0]++,e("span",[n._v("N/A")])):(l().b[0][1]++,e("v-btn",{attrs:{block:"",color:"primary"},on:{click:function(e){return l().f[5]++,l().s[8]++,n.openCmdSender(a.target_name,a.packet_name)}}},[n._v(" View In Command Sender "),e("v-icon",{attrs:{right:""}},[n._v(" mdi-open-in-new ")])],1))]}}])}),e("raw-dialog",{attrs:{type:"Command","target-name":n.target_name,"packet-name":n.packet_name,visible:n.viewRaw},on:{display:n.rawDisplayCallback}})],1)},i=(l().s[9]++,[]),o=(t(1245),t(3450),t(8178),t(9949),t(4872)),c=t(1320);function m(){var n="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue",e="794643380c846d4e6f64e33bcaf8466f366ade65",t=new Function("return this")(),l="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue",statementMap:{0:{start:{line:15,column:4},end:{line:29,column:5}},1:{start:{line:32,column:4},end:{line:42,column:6}},2:{start:{line:33,column:6},end:{line:41,column:8}},3:{start:{line:34,column:8},end:{line:40,column:10}},4:{start:{line:35,column:10},end:{line:39,column:11}},5:{start:{line:37,column:14},end:{line:37,column:75}},6:{start:{line:48,column:6},end:{line:48,column:25}},7:{start:{line:51,column:6},end:{line:51,column:36}},8:{start:{line:52,column:6},end:{line:52,column:36}},9:{start:{line:53,column:6},end:{line:53,column:25}},10:{start:{line:56,column:22},end:{line:62,column:8}},11:{start:{line:63,column:6},end:{line:63,column:77}},12:{start:{line:66,column:6},end:{line:68,column:8}},13:{start:{line:67,column:8},end:{line:67,column:45}},14:{start:{line:71,column:6},end:{line:71,column:43}},15:{start:{line:71,column:37},end:{line:71,column:43}},16:{start:{line:72,column:6},end:{line:72,column:44}},17:{start:{line:72,column:38},end:{line:72,column:44}},18:{start:{line:73,column:6},end:{line:82,column:8}},19:{start:{line:74,column:8},end:{line:81,column:9}},20:{start:{line:74,column:21},end:{line:74,column:22}},21:{start:{line:75,column:22},end:{line:79,column:11}},22:{start:{line:77,column:14},end:{line:78,column:53}},23:{start:{line:80,column:10},end:{line:80,column:44}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:9},end:{line:30,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:31,column:2},end:{line:31,column:3}},loc:{start:{line:31,column:12},end:{line:43,column:3}},line:31},2:{name:"(anonymous_2)",decl:{start:{line:32,column:36},end:{line:32,column:37}},loc:{start:{line:32,column:49},end:{line:42,column:5}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:33,column:18},end:{line:33,column:19}},loc:{start:{line:33,column:30},end:{line:41,column:7}},line:33},4:{name:"(anonymous_4)",decl:{start:{line:34,column:52},end:{line:34,column:53}},loc:{start:{line:34,column:63},end:{line:40,column:9}},line:34},5:{name:"(anonymous_5)",decl:{start:{line:36,column:22},end:{line:36,column:23}},loc:{start:{line:36,column:34},end:{line:38,column:13}},line:36},6:{name:"(anonymous_6)",decl:{start:{line:47,column:4},end:{line:47,column:5}},loc:{start:{line:47,column:29},end:{line:49,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:42},end:{line:54,column:5}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:55,column:4},end:{line:55,column:5}},loc:{start:{line:55,column:44},end:{line:64,column:5}},line:55},9:{name:"(anonymous_9)",decl:{start:{line:65,column:4},end:{line:65,column:5}},loc:{start:{line:65,column:24},end:{line:69,column:5}},line:65},10:{name:"(anonymous_10)",decl:{start:{line:66,column:31},end:{line:66,column:32}},loc:{start:{line:66,column:38},end:{line:68,column:7}},line:66},11:{name:"(anonymous_11)",decl:{start:{line:70,column:4},end:{line:70,column:5}},loc:{start:{line:70,column:13},end:{line:83,column:5}},line:70},12:{name:"(anonymous_12)",decl:{start:{line:73,column:47},end:{line:73,column:48}},loc:{start:{line:73,column:59},end:{line:82,column:7}},line:73},13:{name:"(anonymous_13)",decl:{start:{line:76,column:12},end:{line:76,column:13}},loc:{start:{line:77,column:14},end:{line:78,column:53}},line:77}},branchMap:{0:{loc:{start:{line:71,column:6},end:{line:71,column:43}},type:"if",locations:[{start:{line:71,column:6},end:{line:71,column:43}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:71},1:{loc:{start:{line:72,column:6},end:{line:72,column:44}},type:"if",locations:[{start:{line:72,column:6},end:{line:72,column:44}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:72},2:{loc:{start:{line:77,column:14},end:{line:78,column:53}},type:"binary-expr",locations:[{start:{line:77,column:14},end:{line:77,column:53}},{start:{line:78,column:14},end:{line:78,column:53}}],line:77}},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,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0},f:{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},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["CmdPacketsTab.vue"],names:[],mappings:";AAoFA;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",file:"CmdPacketsTab.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#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\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="{\n itemsPerPageOptions: [10, 20, 50, 100],\n showFirstLastPage: true,\n }"\n sort-by="target_name"\n @current-items="currentItems"\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 visible: 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 currentItems(event) {\n this.visible = event.map((i) => {\n return [i.target_name, i.packet_name]\n })\n },\n update() {\n if (this.tabId != this.curTab) return\n if (this.currentItems === null) return\n this.api.get_cmd_cnts(this.visible).then((counts) => {\n for (let i = 0; i < counts.length; i++) {\n let index = this.data.findIndex(\n (item) =>\n item.target_name === this.visible[i][0] &&\n item.packet_name === this.visible[i][1]\n )\n this.data[index].count = counts[i]\n }\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"794643380c846d4e6f64e33bcaf8466f366ade65"},i=t[l]||(t[l]={});i[n]&&i[n].hash===e||(i[n]=a);var o=i[n];return m=function(){return o},o}m();var s={components:{RawDialog:c.Z},mixins:[o.Z],props:{tabId:Number,curTab:Number},data:function(){return m().f[0]++,m().s[0]++,{search:"",data:[],headers:[{text:"Target Name",value:"target_name"},{text:"Packet Name",value:"packet_name"},{text:"Packet Count",value:"count"},{text:"View Raw",value:"view_raw"},{text:"View In Command Sender",value:"view_in_cmd_sender"}],viewRaw:!1,target_name:null,packet_name:null,visible:null}},created:function(){var n=this;m().f[1]++,m().s[1]++,this.api.get_target_list().then((function(e){m().f[2]++,m().s[2]++,e.map((function(e){m().f[3]++,m().s[3]++,n.api.get_all_command_names(e).then((function(t){m().f[4]++,m().s[4]++,n.data=n.data.concat(t.map((function(n){return m().f[5]++,m().s[5]++,{target_name:e,packet_name:n,count:0}})))}))}))}))},methods:{rawDisplayCallback:function(n){m().f[6]++,m().s[6]++,this.viewRaw=n},openViewRaw:function(n,e){m().f[7]++,m().s[7]++,this.target_name=n,m().s[8]++,this.packet_name=e,m().s[9]++,this.viewRaw=!0},openCmdSender:function(n,e){m().f[8]++;m().s[10]++,this.$router.resolve({name:"CommandSender",params:{target:n,packet:e}});m().s[11]++,window.open("/tools/cmdsender/".concat(n,"/").concat(e),"_blank")},currentItems:function(n){m().f[9]++,m().s[12]++,this.visible=n.map((function(n){return m().f[10]++,m().s[13]++,[n.target_name,n.packet_name]}))},update:function(){var n=this;return m().f[11]++,m().s[14]++,this.tabId!=this.curTab?(m().b[0][0]++,void m().s[15]++):(m().b[0][1]++,m().s[16]++,null===this.currentItems?(m().b[1][0]++,void m().s[17]++):(m().b[1][1]++,m().s[18]++,void this.api.get_cmd_cnts(this.visible).then((function(e){m().f[12]++,m().s[19]++;for(var t=function(t){var l=(m().s[21]++,n.data.findIndex((function(e){return m().f[13]++,m().s[22]++,m().b[2][0]++,e.target_name===n.visible[t][0]&&(m().b[2][1]++,e.packet_name===n.visible[t][1])})));m().s[23]++,n.data[l].count=e[t]},l=(m().s[20]++,0);l<e.length;l++)t(l)}))))}}},r=s,u=t(3483),d=(0,u.Z)(r,a,i,!1,null,null,null),A=d.exports}}]);
|
2
|
+
//# sourceMappingURL=830.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js/706.js","mappings":"+2EAeY,OAAAA,EAAA,kBAAAC,CAAA,EAAAA,CAAA,CAAAD,IAAAA,IAAAE,EAAA,KAfZ,IAAIC,EAAS,WAAiBH,IAAAI,EAAA,KAAC,IAAIC,GAAGL,IAAAE,EAAA,KAACI,MAAKC,GAAEP,IAAAE,EAAA,KAACG,EAAIG,MAAMD,IAAG,OAAAP,IAAAE,EAAA,KAAOK,EAAG,SAAS,CAACA,EAAG,eAAe,CAACF,EAAII,GAAG,IAAIJ,EAAIK,GAAGL,EAAIM,KAAKC,QAAQ,qBAAqBL,EAAG,YAAYA,EAAG,eAAe,CAACM,MAAM,CAAC,cAAc,cAAc,MA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EAAA,MACA,IADA,IAAA4E,EAAA,SAAAL,GAEA,IAAAM,GAAA/E,IAAAE,EAAA,MAAAyE,EAAAhE,KAAAqE,WACA,SAAAlD,GACA,OAAA9B,IAAAI,EAAA,MAAAJ,IAAAE,EAAA,MAAAF,IAAAqC,EAAA,QAAAP,EAAAI,cAAAyC,EAAAxB,QAAAsB,GAAA,KAAAzE,IAAAqC,EAAA,QACAP,EAAAK,cAAAwC,EAAAxB,QAAAsB,GAAA,QACAzE,IAAAE,EAAA,MACAyE,EAAAhE,KAAAoE,GAAAhD,MAAA8C,EAAAJ,EACA,EAPAA,GAAAzE,IAAAE,EAAA,SAAAuE,EAAAI,EAAAjE,OAAA6D,IAAAK,EAAAL,EAQA,KACA,ICrK4X,I,UCOxXQ,GAAY,OACd,EACA9E,EACAsC,GACA,EACA,KACA,KACA,MAIF,EAAewC,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/CmdPacketsTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/CmdPacketsTab.vue?0025","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/CmdPacketsTab.vue?ad66"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;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\":{\n itemsPerPageOptions: [10, 20, 50, 100],\n showFirstLastPage: true,\n },\"sort-by\":\"target_name\",\"calculate-widths\":\"\",\"multi-sort\":\"\",\"data-test\":\"cmd-packets-table\"},on:{\"current-items\":_vm.currentItems},scopedSlots:_vm._u([{key:\"item.view_raw\",fn:function({ item }){return [_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({ item }){return [(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)\n}\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# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\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=\"{\n itemsPerPageOptions: [10, 20, 50, 100],\n showFirstLastPage: true,\n }\"\n sort-by=\"target_name\"\n @current-items=\"currentItems\"\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 visible: 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 currentItems(event) {\n this.visible = event.map((i) => {\n return [i.target_name, i.packet_name]\n })\n },\n update() {\n if (this.tabId != this.curTab) return\n if (this.currentItems === null) return\n this.api.get_cmd_cnts(this.visible).then((counts) => {\n for (let i = 0; i < counts.length; i++) {\n let index = this.data.findIndex(\n (item) =>\n item.target_name === this.visible[i][0] &&\n item.packet_name === this.visible[i][1]\n )\n this.data[index].count = counts[i]\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=6fe508a5&\"\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":["cov_haeaeutfe","actualCoverage","s","render","f","_vm","this","_c","_self","_v","_s","data","length","attrs","model","value","search","callback","$$v","expression","headers","itemsPerPageOptions","showFirstLastPage","on","currentItems","scopedSlots","_u","key","fn","_ref","item","count","$event","openViewRaw","target_name","packet_name","_ref2","b","openCmdSender","viewRaw","rawDisplayCallback","staticRenderFns","components","RawDialog","mixins","Updater","props","tabId","Number","curTab","text","visible","created","_this","api","get_target_list","then","targets","map","target","get_all_command_names","names","concat","packet","methods","bool","$router","resolve","name","params","window","open","event","i","update","_this2","get_cmd_cnts","counts","_loop","index","findIndex","component"],"sourceRoot":""}
|
1
|
+
{"version":3,"file":"js/830.js","mappings":"+2EAeY,OAAAA,EAAA,kBAAAC,CAAA,EAAAA,CAAA,CAAAD,IAAAA,IAAAE,EAAA,KAfZ,IAAIC,EAAS,WAAiBH,IAAAI,EAAA,KAAC,IAAIC,GAAGL,IAAAE,EAAA,KAACI,MAAKC,GAAEP,IAAAE,EAAA,KAACG,EAAIG,MAAMD,IAAG,OAAAP,IAAAE,EAAA,KAAOK,EAAG,SAAS,CAACA,EAAG,eAAe,CAACF,EAAII,GAAG,IAAIJ,EAAIK,GAAGL,EAAIM,KAAKC,QAAQ,qBAAqBL,EAAG,YAAYA,EAAG,eAAe,CAACM,MAAM,CAAC,cAAc,cAAc,MAAQ,SAAS,cAAc,GAAG,eAAe,IAAIC,MAAM,CAACC,MAAOV,EAAIW,OAAQC,SAAS,SAAUC,GAAKlB,IAAAI,EAAA,KAAAJ,IAAAE,EAAA,KAACG,EAAIW,OAAOE,CAAG,EAAEC,WAAW,aAAa,GAAGZ,EAAG,eAAe,CAACM,MAAM,CAAC,QAAUR,EAAIe,QAAQ,MAAQf,EAAIM,KAAK,OAASN,EAAIW,OAAO,iBAAiB,GAAG,eAAe,CACreK,oBAAqB,CAAC,GAAI,GAAI,GAAI,KAClCC,mBAAmB,GACnB,UAAU,cAAc,mBAAmB,GAA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AAAzE,IAAAE,EAAA,SAAAuE,EAAAI,EAAAjE,OAAA6D,IAAAK,EAAAL,EAQA,KACA,ICrK2T,I,UCOvTQ,GAAY,OACd,EACA9E,EACAsC,GACA,EACA,KACA,KACA,MAIF,EAAewC,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/CmdPacketsTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdPacketsTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/CmdPacketsTab.vue?072e","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/CmdPacketsTab.vue?5363"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;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\":{\n itemsPerPageOptions: [10, 20, 50, 100],\n showFirstLastPage: true,\n },\"sort-by\":\"target_name\",\"calculate-widths\":\"\",\"multi-sort\":\"\",\"data-test\":\"cmd-packets-table\"},on:{\"current-items\":_vm.currentItems},scopedSlots:_vm._u([{key:\"item.view_raw\",fn:function({ item }){return [_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({ item }){return [(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)\n}\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# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\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=\"{\n itemsPerPageOptions: [10, 20, 50, 100],\n showFirstLastPage: true,\n }\"\n sort-by=\"target_name\"\n @current-items=\"currentItems\"\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 visible: 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 currentItems(event) {\n this.visible = event.map((i) => {\n return [i.target_name, i.packet_name]\n })\n },\n update() {\n if (this.tabId != this.curTab) return\n if (this.currentItems === null) return\n this.api.get_cmd_cnts(this.visible).then((counts) => {\n for (let i = 0; i < counts.length; i++) {\n let index = this.data.findIndex(\n (item) =>\n item.target_name === this.visible[i][0] &&\n item.packet_name === this.visible[i][1]\n )\n this.data[index].count = counts[i]\n }\n })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../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/vue-loader-v15/lib/index.js??vue-loader-options!./CmdPacketsTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../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/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=6fe508a5&\"\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/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":["cov_haeaeutfe","actualCoverage","s","render","f","_vm","this","_c","_self","_v","_s","data","length","attrs","model","value","search","callback","$$v","expression","headers","itemsPerPageOptions","showFirstLastPage","on","currentItems","scopedSlots","_u","key","fn","_ref","item","count","$event","openViewRaw","target_name","packet_name","_ref2","b","openCmdSender","viewRaw","rawDisplayCallback","staticRenderFns","components","RawDialog","mixins","Updater","props","tabId","Number","curTab","text","visible","created","_this","api","get_target_list","then","targets","map","target","get_all_command_names","names","concat","packet","methods","bool","$router","resolve","name","params","window","open","event","i","update","_this2","get_cmd_cnts","counts","_loop","index","findIndex","component"],"sourceRoot":""}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[872],{4872:function(e,t,n){var r=n(8123);function c(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/Updater.js",t="4a33e65af05f7d08e216a604150e8920749ac334",n=new Function("return this")(),r="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/Updater.js",statementMap:{0:{start:{line:32,column:4},end:{line:35,column:5}},1:{start:{line:38,column:4},end:{line:38,column:30}},2:{start:{line:41,column:4},end:{line:41,column:24}},3:{start:{line:44,column:4},end:{line:47,column:5}},4:{start:{line:45,column:6},end:{line:45,column:33}},5:{start:{line:46,column:6},end:{line:46,column:25}},6:{start:{line:52,column:6},end:{line:52,column:26}},7:{start:{line:57,column:6},end:{line:60,column:7}},8:{start:{line:58,column:8},end:{line:58,column:35}},9:{start:{line:59,column:8},end:{line:59,column:27}},10:{start:{line:61,column:6},end:{line:63,column:30}},11:{start:{line:62,column:8},end:{line:62,column:21}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:31,column:2},end:{line:31,column:3}},loc:{start:{line:31,column:9},end:{line:36,column:3}},line:31},1:{name:"(anonymous_1)",decl:{start:{line:37,column:2},end:{line:37,column:3}},loc:{start:{line:37,column:12},end:{line:39,column:3}},line:37},2:{name:"(anonymous_2)",decl:{start:{line:40,column:2},end:{line:40,column:3}},loc:{start:{line:40,column:12},end:{line:42,column:3}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:43,column:2},end:{line:43,column:3}},loc:{start:{line:43,column:18},end:{line:48,column:3}},line:43},4:{name:"(anonymous_4)",decl:{start:{line:51,column:21},end:{line:51,column:22}},loc:{start:{line:51,column:47},end:{line:53,column:5}},line:51},5:{name:"(anonymous_5)",decl:{start:{line:56,column:4},end:{line:56,column:5}},loc:{start:{line:56,column:20},end:{line:64,column:5}},line:56},6:{name:"(anonymous_6)",decl:{start:{line:61,column:33},end:{line:61,column:34}},loc:{start:{line:61,column:39},end:{line:63,column:7}},line:61}},branchMap:{0:{loc:{start:{line:44,column:4},end:{line:47,column:5}},type:"if",locations:[{start:{line:44,column:4},end:{line:47,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},1:{loc:{start:{line:57,column:6},end:{line:60,column:7}},type:"if",locations:[{start:{line:57,column:6},end:{line:60,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4a33e65af05f7d08e216a604150e8920749ac334"},i=n[r]||(n[r]={});i[e]&&i[e].hash===t||(i[e]=a);var s=i[e];return c=function(){return s},s}c(),t["Z"]={props:{refreshInterval:{default:1e3}},data:function(){return c().f[0]++,c().s[0]++,{updater:null,api:null}},created:function(){c().f[1]++,c().s[1]++,this.api=new r.k},mounted:function(){c().f[2]++,c().s[2]++,this.changeUpdater()},beforeDestroy:function(){c().f[3]++,c().s[3]++,null!=this.updater?(c().b[0][0]++,c().s[4]++,clearInterval(this.updater),c().s[5]++,this.updater=null):c().b[0][1]++},watch:{refreshInterval:function(e,t){c().f[4]++,c().s[6]++,this.changeUpdater()}},methods:{changeUpdater:function(){var e=this;c().f[5]++,c().s[7]++,null!=this.updater?(c().b[1][0]++,c().s[8]++,clearInterval(this.updater),c().s[9]++,this.updater=null):c().b[1][1]++,c().s[10]++,this.updater=setInterval((function(){c().f[6]++,c().s[11]++,e.update()}),this.refreshInterval)}}}},8123:function(e,t,n){n.d(t,{k:function(){return v}});var r=n(6259),c=n(5789),a=n(6964),i=n(9502),s=n(426),o=n(7871),u=n(2261),l=(n(1372),n(1245),n(7950),n(9529),n(8188),n(3675),n(4898),n(5825),n(7170),n(8857),n(8329),n(6279),n(427),n(171),n(7093),n(1159),n(2516),n(4349),n(5273),n(6729),n(1801),n(574),n(5787),n(9271),n(3160),n(5688),n(3157),n(3333),n(315),n(556),n(9224),n(2649),n(14),n(1996),n(3450),n(7233),n(8673),n(5734),n(8233),n(1235),n(9644)),_=n.n(l),d=n(4091),m=new d["default"],f=_().create({baseURL:location.origin,timeout:6e4,params:{}});f.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,r,c,a,i,s,o,u,l;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var _="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(_+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(r=n.config)&&void 0!==r&&r.data&&(_+="".concat(e.response.config.data," ")),null!==(c=e.response)&&void 0!==c&&null!==(a=c.data)&&void 0!==a&&a.message)_+="".concat(e.response.data.message);else if(null!==(i=e.response)&&void 0!==i&&null!==(s=i.data)&&void 0!==s&&s.exception)_+="".concat(e.response.data.exception);else if(null!==(o=e.response)&&void 0!==o&&null!==(u=o.data)&&void 0!==u&&null!==(l=u.error)&&void 0!==l&&l.message)e.response.data.error.class&&(_+="".concat(e.response.data.error.class," ")),_+="".concat(e.response.data.error.message);else{var d;_+="".concat(null===(d=e.response)||void 0===d?void 0:d.data)}throw m.$notify&&m.$notify.serious({title:"Network error",body:_}),e}throw e}));var h=f,v=function(){function e(){(0,s.Z)(this,e),(0,u.Z)(this,"id",1)}return(0,o.Z)(e,[{key:"exec",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t,n){var r,i,s,o,u,l=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=l.length>2&&void 0!==l[2]?l[2]:{},i=l.length>3&&void 0!==l[3]?l[3]:{},e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:s=e.sent,s&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:return this.id=this.id+1,e.prev=13,r["scope"]=window.openc3Scope,e.next=17,h.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:r},{headers:(0,a.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},i)});case 17:return o=e.sent,e.abrupt("return",o.data.result);case 21:throw e.prev=21,e.t1=e["catch"](13),u=new Error,e.t1.response?(u.name=e.t1.response.data.error.data.class,u.message=e.t1.response.data.error.data.message):e.t1.request?(u.name="Request error",u.message="Request error, no response received"):u.name="Unknown error",u;case 26:case"end":return e.stop()}}),e,this,[[2,9],[13,21]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,r.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(t){t&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,t){return this.exec("map_target_to_interface",[e,t])}},{key:"connect_interface",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.length>0?this.exec("connect_interface",[e,n]):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t,n,r){var a,i,s,o,u,l=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=l.length>3&&void 0!==l[3]?l[3]:30,e.next=3,this.exec("get_tlm_packet",[t,n],{type:r,stale_time:a});case 3:if(i=e.sent,null!=i)for(s=i.length,o=null,u=0;u<s;u++)o=this.decode_openc3_type(i[u][1]),null!==o&&(i[u][1]=o);return e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"get_packet_derived_items",value:function(e,t){return this.exec("get_packet_derived_items",[e,t])}},{key:"get_tlm_buffer",value:function(e,t){return this.exec("get_tlm_buffer",[e,t])}},{key:"get_tlm_values",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t){var n,r,a,i,s,o=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:30,e.next=3,this.exec("get_tlm_values",[t],{stale_time:n});case 3:for(r=e.sent,a=r[0].length,i=null,s=0;s<a;s++)i=this.decode_openc3_type(r[0][s]),null!==i&&(r[0][s]=i);return e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get_limits",value:function(e,t,n){return this.exec("get_limits",[e,t,n])}},{key:"tlm",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t,n,r){var a,i,s,o,u=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=u.length>3&&void 0!==u[3]?u[3]:"CONVERTED",i=null,void 0!==n){e.next=8;break}return e.next=5,this.exec("tlm",[t]);case 5:i=e.sent,e.next=24;break;case 8:if(void 0!==r){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){e.next=15;break}return e.next=12,this.exec("tlm",[t],{type:n});case 12:i=e.sent,e.next=19;break;case 15:throw s=new Error,s.name="TypeError",s.message="Invalid data type ".concat(n,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),s;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[t,n,r],{type:a});case 23:i=e.sent;case 24:return o=this.decode_openc3_type(i),null!==o&&(i=o),e.abrupt("return",i);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"inject_tlm",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t,n){var r,a,i=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=i.length>2&&void 0!==i[2]?i[2]:null,a=i.length>3&&void 0!==i[3]?i[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[t,n,r],{type:a});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"set_tlm",value:function(e,t,n,r){return this.exec("set_tlm",[e,t,n],{type:r})}},{key:"override_tlm",value:function(e,t,n,r){return this.exec("override_tlm",[e,t,n],{type:r})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,t,n,r){return this.exec("normalize_tlm",[e,t,n],{type:r})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,t){return this.exec("get_command",[e,t])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,t,n,r])}},{key:"get_cmd_buffer",value:function(e,t){return this.exec("get_cmd_buffer",[e,t])}},{key:"_cmd",value:function(e,t,n,r,c){var a=null;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a=this.encode_openc3_type(r[i]),null!==a&&(r[i]=a));return this.exec(e,[t,n,r],{},c)}},{key:"get_cmd_hazardous",value:function(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}},{key:"cmd",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===t?this.exec("cmd",e,{},r):this._cmd("cmd",e,t,n,r)}},{key:"cmd_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}},{key:"cmd_raw",value:function(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}},{key:"cmd_raw_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}},{key:"cmd_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}},{key:"cmd_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}},{key:"cmd_raw_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}},{key:"cmd_raw_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,t){return this.exec("send_raw",[e,t])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,t){return this.exec("load_config",[e,t])}},{key:"save_config",value:function(e,t,n){return this.exec("save_config",[e,t,n])}},{key:"delete_config",value:function(e,t){return this.exec("delete_config",[e,t])}},{key:"enable_limits",value:function(e,t,n){return this.exec("enable_limits",[e,t,n])}},{key:"disable_limits",value:function(e,t,n){return this.exec("disable_limits",[e,t,n])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,t){return this.exec("save_setting",[e,t])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t){var n,r,a;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return n=(new TextEncoder).encode(t),e.next=4,crypto.subtle.digest("SHA-256",n);case 4:return r=e.sent,a=new Uint8Array(r),e.abrupt("return",Array.from(a).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}()}}]);
|
1
|
+
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[872],{4872:function(e,t,n){var r=n(8123);function c(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/Updater.js",t="4a33e65af05f7d08e216a604150e8920749ac334",n=new Function("return this")(),r="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/Updater.js",statementMap:{0:{start:{line:32,column:4},end:{line:35,column:5}},1:{start:{line:38,column:4},end:{line:38,column:30}},2:{start:{line:41,column:4},end:{line:41,column:24}},3:{start:{line:44,column:4},end:{line:47,column:5}},4:{start:{line:45,column:6},end:{line:45,column:33}},5:{start:{line:46,column:6},end:{line:46,column:25}},6:{start:{line:52,column:6},end:{line:52,column:26}},7:{start:{line:57,column:6},end:{line:60,column:7}},8:{start:{line:58,column:8},end:{line:58,column:35}},9:{start:{line:59,column:8},end:{line:59,column:27}},10:{start:{line:61,column:6},end:{line:63,column:30}},11:{start:{line:62,column:8},end:{line:62,column:21}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:31,column:2},end:{line:31,column:3}},loc:{start:{line:31,column:9},end:{line:36,column:3}},line:31},1:{name:"(anonymous_1)",decl:{start:{line:37,column:2},end:{line:37,column:3}},loc:{start:{line:37,column:12},end:{line:39,column:3}},line:37},2:{name:"(anonymous_2)",decl:{start:{line:40,column:2},end:{line:40,column:3}},loc:{start:{line:40,column:12},end:{line:42,column:3}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:43,column:2},end:{line:43,column:3}},loc:{start:{line:43,column:18},end:{line:48,column:3}},line:43},4:{name:"(anonymous_4)",decl:{start:{line:51,column:21},end:{line:51,column:22}},loc:{start:{line:51,column:47},end:{line:53,column:5}},line:51},5:{name:"(anonymous_5)",decl:{start:{line:56,column:4},end:{line:56,column:5}},loc:{start:{line:56,column:20},end:{line:64,column:5}},line:56},6:{name:"(anonymous_6)",decl:{start:{line:61,column:33},end:{line:61,column:34}},loc:{start:{line:61,column:39},end:{line:63,column:7}},line:61}},branchMap:{0:{loc:{start:{line:44,column:4},end:{line:47,column:5}},type:"if",locations:[{start:{line:44,column:4},end:{line:47,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},1:{loc:{start:{line:57,column:6},end:{line:60,column:7}},type:"if",locations:[{start:{line:57,column:6},end:{line:60,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4a33e65af05f7d08e216a604150e8920749ac334"},i=n[r]||(n[r]={});i[e]&&i[e].hash===t||(i[e]=a);var s=i[e];return c=function(){return s},s}c(),t["Z"]={props:{refreshInterval:{default:1e3}},data:function(){return c().f[0]++,c().s[0]++,{updater:null,api:null}},created:function(){c().f[1]++,c().s[1]++,this.api=new r.k},mounted:function(){c().f[2]++,c().s[2]++,this.changeUpdater()},beforeDestroy:function(){c().f[3]++,c().s[3]++,null!=this.updater?(c().b[0][0]++,c().s[4]++,clearInterval(this.updater),c().s[5]++,this.updater=null):c().b[0][1]++},watch:{refreshInterval:function(e,t){c().f[4]++,c().s[6]++,this.changeUpdater()}},methods:{changeUpdater:function(){var e=this;c().f[5]++,c().s[7]++,null!=this.updater?(c().b[1][0]++,c().s[8]++,clearInterval(this.updater),c().s[9]++,this.updater=null):c().b[1][1]++,c().s[10]++,this.updater=setInterval((function(){c().f[6]++,c().s[11]++,e.update()}),this.refreshInterval)}}}},8123:function(e,t,n){n.d(t,{k:function(){return v}});var r=n(6259),c=n(5789),a=n(6964),i=n(9502),s=n(426),o=n(7871),u=n(2261),l=(n(1372),n(1245),n(7950),n(8178),n(9529),n(8188),n(3675),n(4898),n(5825),n(7170),n(8857),n(8329),n(6279),n(427),n(171),n(7093),n(1159),n(2516),n(4349),n(5273),n(6729),n(1801),n(574),n(5787),n(9271),n(3160),n(5688),n(3157),n(3333),n(315),n(556),n(9224),n(2649),n(14),n(1996),n(3450),n(7233),n(8673),n(5734),n(8233),n(1235),n(9644)),_=n.n(l),d=n(4091),m=new d["default"],f=_().create({baseURL:location.origin,timeout:6e4,params:{}});f.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,r,c,a,i,s,o,u,l;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var _="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(_+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(r=n.config)&&void 0!==r&&r.data&&(_+="".concat(e.response.config.data," ")),null!==(c=e.response)&&void 0!==c&&null!==(a=c.data)&&void 0!==a&&a.message)_+="".concat(e.response.data.message);else if(null!==(i=e.response)&&void 0!==i&&null!==(s=i.data)&&void 0!==s&&s.exception)_+="".concat(e.response.data.exception);else if(null!==(o=e.response)&&void 0!==o&&null!==(u=o.data)&&void 0!==u&&null!==(l=u.error)&&void 0!==l&&l.message)e.response.data.error.class&&(_+="".concat(e.response.data.error.class," ")),_+="".concat(e.response.data.error.message);else{var d;_+="".concat(null===(d=e.response)||void 0===d?void 0:d.data)}throw m.$notify&&m.$notify.serious({title:"Network error",body:_}),e}throw e}));var h=f,v=function(){function e(){(0,s.Z)(this,e),(0,u.Z)(this,"id",1)}return(0,o.Z)(e,[{key:"exec",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t,n){var r,i,s,o,u,l=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=l.length>2&&void 0!==l[2]?l[2]:{},i=l.length>3&&void 0!==l[3]?l[3]:{},e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:s=e.sent,s&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:return this.id=this.id+1,e.prev=13,r["scope"]=window.openc3Scope,e.next=17,h.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:r},{headers:(0,a.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},i)});case 17:return o=e.sent,e.abrupt("return",o.data.result);case 21:throw e.prev=21,e.t1=e["catch"](13),u=new Error,e.t1.response?(u.name=e.t1.response.data.error.data.class,u.message=e.t1.response.data.error.data.message):e.t1.request?(u.name="Request error",u.message="Request error, no response received"):u.name="Unknown error",u;case 26:case"end":return e.stop()}}),e,this,[[2,9],[13,21]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,r.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(t){t&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,t){return this.exec("map_target_to_interface",[e,t])}},{key:"connect_interface",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.length>0?this.exec("connect_interface",[e].concat(n)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t,n,r){var a,i,s,o,u,l=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=l.length>3&&void 0!==l[3]?l[3]:30,e.next=3,this.exec("get_tlm_packet",[t,n],{type:r,stale_time:a});case 3:if(i=e.sent,null!=i)for(s=i.length,o=null,u=0;u<s;u++)o=this.decode_openc3_type(i[u][1]),null!==o&&(i[u][1]=o);return e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"get_packet_derived_items",value:function(e,t){return this.exec("get_packet_derived_items",[e,t])}},{key:"get_tlm_buffer",value:function(e,t){return this.exec("get_tlm_buffer",[e,t])}},{key:"get_tlm_values",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t){var n,r,a,i,s,o=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:30,e.next=3,this.exec("get_tlm_values",[t],{stale_time:n});case 3:for(r=e.sent,a=r[0].length,i=null,s=0;s<a;s++)i=this.decode_openc3_type(r[0][s]),null!==i&&(r[0][s]=i);return e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get_limits",value:function(e,t,n){return this.exec("get_limits",[e,t,n])}},{key:"tlm",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t,n,r){var a,i,s,o,u=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=u.length>3&&void 0!==u[3]?u[3]:"CONVERTED",i=null,void 0!==n){e.next=8;break}return e.next=5,this.exec("tlm",[t]);case 5:i=e.sent,e.next=24;break;case 8:if(void 0!==r){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){e.next=15;break}return e.next=12,this.exec("tlm",[t],{type:n});case 12:i=e.sent,e.next=19;break;case 15:throw s=new Error,s.name="TypeError",s.message="Invalid data type ".concat(n,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),s;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[t,n,r],{type:a});case 23:i=e.sent;case 24:return o=this.decode_openc3_type(i),null!==o&&(i=o),e.abrupt("return",i);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"inject_tlm",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t,n){var r,a,i=arguments;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=i.length>2&&void 0!==i[2]?i[2]:null,a=i.length>3&&void 0!==i[3]?i[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[t,n,r],{type:a});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"set_tlm",value:function(e,t,n,r){return this.exec("set_tlm",[e,t,n],{type:r})}},{key:"override_tlm",value:function(e,t,n,r){return this.exec("override_tlm",[e,t,n],{type:r})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,t,n,r){return this.exec("normalize_tlm",[e,t,n],{type:r})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,t){return this.exec("get_command",[e,t])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,t,n,r])}},{key:"get_cmd_buffer",value:function(e,t){return this.exec("get_cmd_buffer",[e,t])}},{key:"_cmd",value:function(e,t,n,r,c){var a=null;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a=this.encode_openc3_type(r[i]),null!==a&&(r[i]=a));return this.exec(e,[t,n,r],{},c)}},{key:"get_cmd_hazardous",value:function(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}},{key:"cmd",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===t?this.exec("cmd",e,{},r):this._cmd("cmd",e,t,n,r)}},{key:"cmd_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}},{key:"cmd_raw",value:function(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}},{key:"cmd_raw_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}},{key:"cmd_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}},{key:"cmd_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}},{key:"cmd_raw_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}},{key:"cmd_raw_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,t){return this.exec("send_raw",[e,t])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,t){return this.exec("load_config",[e,t])}},{key:"save_config",value:function(e,t,n){return this.exec("save_config",[e,t,n])}},{key:"delete_config",value:function(e,t){return this.exec("delete_config",[e,t])}},{key:"enable_limits",value:function(e,t,n){return this.exec("enable_limits",[e,t,n])}},{key:"disable_limits",value:function(e,t,n){return this.exec("disable_limits",[e,t,n])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,t){return this.exec("save_setting",[e,t])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,i.Z)((0,c.Z)().mark((function e(t){var n,r,a;return(0,c.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return n=(new TextEncoder).encode(t),e.next=4,crypto.subtle.digest("SHA-256",n);case 4:return r=e.sent,a=new Uint8Array(r),e.abrupt("return",Array.from(a).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}()}}]);
|
2
2
|
//# sourceMappingURL=872.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js/872.js","mappings":"uxFAeY,OAAAA,EAAA,kBAAAC,CAAA,EAAAA,CAAA,CAAAD,IASZ,QACEE,MAAO,CACLC,gBAAiB,CACfC,QAAS,MAGbC,KAAI,WACF,OADKL,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACE,CACLC,QAAS,KACTC,IAAK,KAET,EACAC,QAAO,WAAGV,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACRI,KAAKF,IAAM,IAAIG,EAAAA,CACjB,EACAC,QAAO,WAAGb,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACRI,KAAKG,eACP,EACAC,cAAa,WAAGf,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACM,MAAhBI,KAAKH,SAAiBR,IAAAgB,EAAA,QAAAhB,IAAAO,EAAA,KACxBU,cAAcN,KAAKH,SAAQR,IAAAO,EAAA,KAC3BI,KAAKH,QAAU,MAChBR,IAAAgB,EAAA,OACH,EACAE,MAAO,CAELf,gBAAiB,SAAUgB,EAAQC,GAAQpB,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACzCI,KAAKG,eACP,GAEFO,QAAS,CACPP,cAAa,WAAG,IAAAQ,EAAA,KAAAtB,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACM,MAAhBI,KAAKH,SAAiBR,IAAAgB,EAAA,QAAAhB,IAAAO,EAAA,KACxBU,cAAcN,KAAKH,SAAQR,IAAAO,EAAA,KAC3BI,KAAKH,QAAU,MAChBR,IAAAgB,EAAA,QAAAhB,IAAAO,EAAA,MACDI,KAAKH,QAAUe,aAAY,WAAMvB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GAC1C,GAAC,CAAAqE,IAAA,cAAAC,MAED,WACE,OAAOhE,KAAKqG,KAAK,cAAe,GAClC,GAEA,CAAAtC,IAAA,aAAAC,MAAA,eAAA0H,GAAAxH,EAAAA,EAAAA,IAAAC,EAAAA,EAAAA,KAAAC,MACA,SAAAuH,EAAiBC,GAAM,IAAAC,EAAAC,EAAAC,EAAA,OAAA5H,EAAAA,EAAAA,KAAAS,MAAA,SAAAoH,GAAA,eAAAA,EAAAlH,KAAAkH,EAAAjH,MAAA,WACjBO,OAAO2G,gBAAiB,CAAFD,EAAAjH,KAAA,QAIxB,OAFM8G,GAAc,IAAIK,aAAcC,OAAOP,GAE7CI,EAAAjH,KAAA,EACgCqH,OAAOC,OAAOC,OAC5C,UACAT,GACD,OAKD,OARMC,EAAiBE,EAAA9G,KAMjB6G,EAAkB,IAAIQ,WAAWT,GAEvCE,EAAAlG,OAAA,SACO+B,MAAM2E,KAAKT,GACfU,KAAI,SAACpM,GAAC,OAAKA,EAAEyC,SAAS,IAAI4J,SAAS,EAAG,IAAI,IAC1CC,KAAK,KAAG,wBAAAX,EAAA5F,OAAA,GAAAuF,EAAA,KAGd,SAAAiB,EAAAC,GAAA,OAAAnB,EAAAlF,MAAA,KAAA7B,UAAA,QAAAiI,CAAA,CArBD,MAqBC3M,CAAA,CAlmBmB,E","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/Updater.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/services/openc3-api.js"],"sourcesContent":["/*\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# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n*/\n\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\n\nexport default {\n props: {\n refreshInterval: {\n default: 1000,\n },\n },\n data() {\n return {\n updater: null,\n api: null,\n }\n },\n created() {\n this.api = new OpenC3Api()\n },\n mounted() {\n this.changeUpdater()\n },\n beforeDestroy() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n },\n watch: {\n // eslint-disable-next-line no-unused-vars\n refreshInterval: function (newVal, oldVal) {\n this.changeUpdater()\n },\n },\n methods: {\n changeUpdater() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n this.updater = setInterval(() => {\n this.update()\n }, this.refreshInterval)\n },\n },\n}\n","/*\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# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","/*\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# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nexport class OpenC3Api {\n id = 1\n\n constructor() {}\n\n async exec(method, params, kwparams = {}, headerOptions = {}) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n this.id = this.id + 1\n try {\n kwparams['scope'] = window.openc3Scope\n const response = await axios.post(\n '/openc3-api/api',\n {\n jsonrpc: '2.0',\n method: method,\n params: params,\n id: this.id,\n keyword_params: kwparams,\n },\n {\n headers: {\n Authorization: localStorage.openc3Token,\n 'Content-Type': 'application/json-rpc',\n ...headerOptions,\n },\n }\n )\n // var data = response.data\n // if (data.error) {\n // var err = new Error()\n // err.name = data.error.data.class\n // err.message = data.error.data.message\n // console.log(data.error.data.backtrace.join('\\n'))\n // throw err\n // }\n return response.data.result\n } catch (error) {\n var err = new Error()\n if (error.response) {\n // The request was made and the server responded with a\n // status code that falls out of the range of 2xx\n err.name = error.response.data.error.data.class\n err.message = error.response.data.error.data.message\n } else if (error.request) {\n // The request was made but no response was received, `error.request`\n // is an instance of XMLHttpRequest in the browser and an instance\n // of http.ClientRequest in Node.js\n err.name = 'Request error'\n err.message = 'Request error, no response received'\n } else {\n // Something happened in setting up the request and triggered an Error\n err.name = 'Unknown error'\n }\n // console.log(error)\n throw err\n }\n }\n\n decode_openc3_type(val) {\n if (val !== null && typeof val === 'object') {\n if (val.json_class == 'Float' && val.raw) {\n if (val.raw == 'NaN') {\n return NaN\n } else if (val.raw == 'Infinity') {\n return Infinity\n } else if (val.raw == '-Infinity') {\n return -Infinity\n }\n }\n }\n return null\n }\n\n encode_openc3_type(val) {\n if (Number.isNaN(val)) {\n return { json_class: 'Float', raw: 'NaN' }\n } else if (val == Number.POSITIVE_INFINITY) {\n return { json_class: 'Float', raw: 'Infinity' }\n } else if (val == Number.NEGATIVE_INFINITY) {\n return { json_class: 'Float', raw: '-Infinity' }\n }\n return null\n }\n\n ensure_offline_access() {\n this.offline_access_needed().then((needed) => {\n if (needed) {\n if (localStorage.openc3OfflineToken) {\n this.set_offline_access(localStorage.openc3OfflineToken).then(() => {\n delete localStorage.openc3OfflineToken\n })\n } else {\n OpenC3Auth.getOfflineAccess()\n }\n }\n })\n }\n\n // ***********************************************\n // The following APIs are used by the CmdTlmServer\n // ***********************************************\n\n offline_access_needed() {\n return this.exec('offline_access_needed', [])\n }\n\n set_offline_access(offline_access_token) {\n return this.exec('set_offline_access', [offline_access_token])\n }\n\n get_all_interface_info() {\n return this.exec('get_all_interface_info', [])\n }\n\n map_target_to_interface(target_name, interface_name) {\n return this.exec('map_target_to_interface', [target_name, interface_name])\n }\n\n connect_interface(interface_name, ...interface_params) {\n if (interface_params.length > 0) {\n return this.exec('connect_interface', [interface_name, interface_params])\n } else {\n return this.exec('connect_interface', [interface_name])\n }\n }\n\n disconnect_interface(interface_name) {\n return this.exec('disconnect_interface', [interface_name])\n }\n\n get_all_router_info() {\n return this.exec('get_all_router_info', [])\n }\n\n connect_router(router_name) {\n return this.exec('connect_router', [router_name])\n }\n\n disconnect_router(router_name) {\n return this.exec('disconnect_router', [router_name])\n }\n\n get_target_interfaces() {\n return this.exec('get_target_interfaces', [])\n }\n\n // DEPRECATED\n get_all_target_info() {\n return this.exec('get_all_target_info', [])\n }\n\n get_tlm_cnts(target_commands) {\n return this.exec('get_tlm_cnts', [target_commands])\n }\n\n get_item(target, packet, item) {\n return this.exec('get_item', [target, packet, item])\n }\n\n get_parameter(target, packet, item) {\n return this.exec('get_parameter', [target, packet, item])\n }\n\n get_all_packet_logger_info() {\n return this.exec('get_all_packet_logger_info', [])\n }\n\n start_logging() {\n return this.exec('start_logging', [])\n }\n\n stop_logging() {\n return this.exec('stop_logging', [])\n }\n\n start_cmd_log(log_writer_name) {\n return this.exec('start_cmd_log', [log_writer_name])\n }\n\n start_tlm_log(log_writer_name) {\n return this.exec('start_tlm_log', [log_writer_name])\n }\n\n stop_cmd_log(log_writer_name) {\n return this.exec('stop_cmd_log', [log_writer_name])\n }\n\n stop_tlm_log(log_writer_name) {\n return this.exec('stop_tlm_log', [log_writer_name])\n }\n\n get_server_status() {\n return this.exec('get_server_status', [])\n }\n\n get_limits_sets() {\n return this.exec('get_limits_sets', [])\n }\n\n get_limits_set() {\n return this.exec('get_limits_set', [])\n }\n\n set_limits_set(limits_set) {\n return this.exec('set_limits_set', [limits_set])\n }\n\n get_background_tasks() {\n return this.exec('get_background_tasks', [])\n }\n\n start_background_task(name) {\n return this.exec('start_background_task', [name])\n }\n\n stop_background_task(name) {\n return this.exec('stop_background_task', [name])\n }\n\n // ***********************************************\n // End CmdTlmServer APIs\n // ***********************************************\n\n get_target(target_name) {\n return this.exec('get_target', [target_name])\n }\n\n get_target_list() {\n return this.exec('get_target_list', [])\n }\n\n get_telemetry(target_name, packet_name) {\n return this.exec('get_telemetry', [target_name, packet_name])\n }\n\n get_all_telemetry(target_name) {\n return this.exec('get_all_telemetry', [target_name])\n }\n\n get_all_telemetry_names(target_name) {\n return this.exec('get_all_telemetry_names', [target_name])\n }\n\n async get_tlm_packet(target_name, packet_name, value_type, stale_time = 30) {\n const data = await this.exec('get_tlm_packet', [target_name, packet_name], {\n type: value_type,\n stale_time: stale_time,\n })\n // Make sure data isn't null or undefined. Note this is the only valid use of == or !=\n if (data != null) {\n var len = data.length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_openc3_type(data[i][1])\n if (converted !== null) {\n data[i][1] = converted\n }\n }\n }\n return data\n }\n\n get_packet_derived_items(target_name, packet_name) {\n return this.exec('get_packet_derived_items', [target_name, packet_name])\n }\n\n get_tlm_buffer(target_name, packet_name) {\n return this.exec('get_tlm_buffer', [target_name, packet_name])\n }\n\n async get_tlm_values(items, stale_time = 30) {\n const data = await this.exec('get_tlm_values', [items], {\n stale_time: stale_time,\n })\n var len = data[0].length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_openc3_type(data[0][i])\n if (converted !== null) {\n data[0][i] = converted\n }\n }\n return data\n }\n\n get_limits(target_name, packet_name, item_name) {\n return this.exec('get_limits', [target_name, packet_name, item_name])\n }\n\n async tlm(target_name, packet_name, item_name, value_type = 'CONVERTED') {\n let data = null\n // Check for the single string syntax: tlm(\"TGT PKT ITEM\")\n if (packet_name === undefined) {\n data = await this.exec('tlm', [target_name])\n // Check for the single string syntax with type: tlm(\"TGT PKT ITEM\", \"RAW\")\n } else if (item_name === undefined) {\n if (\n ['RAW', 'CONVERTED', 'FORMATTED', 'WITH_UNITS'].includes(packet_name)\n ) {\n data = await this.exec('tlm', [target_name], { type: packet_name })\n } else {\n var err = new Error()\n err.name = 'TypeError'\n err.message = `Invalid data type ${packet_name}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`\n throw err\n }\n } else {\n data = await this.exec('tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n var converted = this.decode_openc3_type(data)\n if (converted !== null) {\n data = converted\n }\n return data\n }\n\n async inject_tlm(\n target_name,\n packet_name,\n item_hash = null,\n value_type = 'CONVERTED'\n ) {\n data = await this.exec(\n 'inject_tlm',\n [target_name, packet_name, item_hash],\n {\n type: value_type,\n }\n )\n }\n\n set_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('set_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n override_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('override_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n get_overrides() {\n return this.exec('get_overrides')\n }\n\n normalize_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('normalize_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n get_all_commands(target_name) {\n return this.exec('get_all_commands', [target_name])\n }\n\n get_all_command_names(target_name) {\n return this.exec('get_all_command_names', [target_name])\n }\n\n get_command(target_name, command_name) {\n return this.exec('get_command', [target_name, command_name])\n }\n\n get_cmd_cnts(target_commands) {\n return this.exec('get_cmd_cnts', [target_commands])\n }\n\n get_cmd_value(\n target_name,\n packet_name,\n parameter_name,\n value_type = 'CONVERTED'\n ) {\n return this.exec('get_cmd_value', [\n target_name,\n packet_name,\n parameter_name,\n value_type,\n ])\n }\n\n get_cmd_buffer(target_name, packet_name) {\n return this.exec('get_cmd_buffer', [target_name, packet_name])\n }\n\n // Implementation of functionality shared by cmd methods with param_lists.\n _cmd(method, target_name, command_name, param_list, headerOptions) {\n var converted = null\n for (var key in param_list) {\n if (Object.prototype.hasOwnProperty.call(param_list, key)) {\n converted = this.encode_openc3_type(param_list[key])\n if (converted !== null) {\n param_list[key] = converted\n }\n }\n }\n return this.exec(\n method,\n [target_name, command_name, param_list],\n {},\n headerOptions\n )\n }\n\n get_cmd_hazardous(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('get_cmd_hazardous', target_name)\n } else {\n return this._cmd(\n 'get_cmd_hazardous',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd(target_name, command_name, param_list, headerOptions = {}) {\n if (command_name === undefined) {\n return this.exec('cmd', target_name, {}, headerOptions)\n } else {\n return this._cmd(\n 'cmd',\n target_name,\n command_name,\n param_list,\n headerOptions\n )\n }\n }\n\n cmd_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_range_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd_raw(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw', target_name)\n } else {\n return this._cmd('cmd_raw', target_name, command_name, param_list)\n }\n }\n\n cmd_raw_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_range_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_hazardous_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_checks', target_name)\n } else {\n return this._cmd('cmd_no_checks', target_name, command_name, param_list)\n }\n }\n\n cmd_raw_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_hazardous_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd_raw_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_checks', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_checks',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n get_interface_names() {\n return this.exec('get_interface_names', [])\n }\n\n send_raw(interface_name, data) {\n return this.exec('send_raw', [interface_name, data])\n }\n\n list_configs(tool) {\n return this.exec('list_configs', [tool])\n }\n\n load_config(tool, name) {\n return this.exec('load_config', [tool, name])\n }\n\n save_config(tool, name, data) {\n return this.exec('save_config', [tool, name, data])\n }\n\n delete_config(tool, name) {\n return this.exec('delete_config', [tool, name])\n }\n\n enable_limits(target, packet, item) {\n return this.exec('enable_limits', [target, packet, item])\n }\n\n disable_limits(target, packet, item) {\n return this.exec('disable_limits', [target, packet, item])\n }\n\n get_out_of_limits() {\n return this.exec('get_out_of_limits', [])\n }\n\n get_overall_limits_state(ignored) {\n return this.exec('get_overall_limits_state', [ignored])\n }\n\n list_settings() {\n return this.exec('list_settings', [])\n }\n\n get_all_settings() {\n return this.exec('get_all_settings', [])\n }\n\n get_setting(name) {\n return this.exec('get_setting', [name])\n }\n\n get_settings(array) {\n return this.exec('get_settings', array)\n }\n\n save_setting(name, data) {\n return this.exec('save_setting', [name, data])\n }\n\n get_metrics() {\n return this.exec('get_metrics', [])\n }\n\n // TODO: Currently unused but seemed like a useful function\n async hashString(string) {\n if (window.isSecureContext) {\n // Encode the string as an arrayBuffer which the subtle crypto API uses\n const arrayBuffer = new TextEncoder().encode(string)\n // Use the subtle crypto API to perform a SHA256 Sum of the array buffer\n // The resulting hash is stored in an array buffer\n const hashAsArrayBuffer = await crypto.subtle.digest(\n 'SHA-256',\n arrayBuffer\n )\n // To create a string we will get the hexadecimal value of each byte of the array buffer\n // This gets us an array where each byte of the array buffer becomes one item in the array\n const uint8ViewOfHash = new Uint8Array(hashAsArrayBuffer)\n // We then convert it to a regular array so we can convert each item to hexadecimal strings\n // Where to characters of 0-9 or a-f represent a number between 0 and 16, containing 4 bits of information, so 2 of them is 8 bits (1 byte).\n return Array.from(uint8ViewOfHash)\n .map((b) => b.toString(16).padStart(2, '0'))\n .join('')\n }\n // else ?\n }\n}\n"],"names":["cov_18iatml2cn","actualCoverage","props","refreshInterval","default","data","f","s","updater","api","created","this","OpenC3Api","mounted","changeUpdater","beforeDestroy","b","clearInterval","watch","newVal","oldVal","methods","_this","setInterval","update","vueInstance","Vue","axiosInstance","axios","baseURL","location","origin","timeout","params","interceptors","response","use","error","_error$response","_error$response2","_error$response2$conf","_error$response3","_error$response3$data","_error$response4","_error$response4$data","_error$response5","_error$response5$data","_error$response5$data2","status","OpenC3Auth","updateToken","defaultMinValidity","then","refreshed","setTokens","headers","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","_classCallCheck","_defineProperty","_createClass","key","value","_exec","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","kwparams","headerOptions","err","_args","arguments","wrap","_context","prev","next","length","undefined","sent","t0","login","id","window","openc3Scope","jsonrpc","keyword_params","_objectSpread","Authorization","localStorage","openc3Token","abrupt","result","t1","Error","name","request","stop","exec","_x","_x2","apply","val","_typeof","json_class","raw","NaN","Infinity","Number","isNaN","POSITIVE_INFINITY","NEGATIVE_INFINITY","offline_access_needed","needed","openc3OfflineToken","set_offline_access","getOfflineAccess","offline_access_token","target_name","interface_name","_len","interface_params","Array","_key","router_name","target_commands","target","packet","item","log_writer_name","limits_set","packet_name","_get_tlm_packet","_callee2","value_type","stale_time","len","converted","i","_args2","_context2","type","decode_openc3_type","get_tlm_packet","_x3","_x4","_x5","_get_tlm_values","_callee3","items","_args3","_context3","get_tlm_values","_x6","item_name","_tlm","_callee4","_args4","_context4","tlm","_x7","_x8","_x9","_inject_tlm","_callee5","item_hash","_args5","_context5","inject_tlm","_x10","_x11","command_name","parameter_name","param_list","Object","prototype","hasOwnProperty","call","encode_openc3_type","_cmd","tool","ignored","array","_hashString","_callee6","string","arrayBuffer","hashAsArrayBuffer","uint8ViewOfHash","_context6","isSecureContext","TextEncoder","encode","crypto","subtle","digest","Uint8Array","from","map","padStart","join","hashString","_x12"],"sourceRoot":""}
|
1
|
+
{"version":3,"file":"js/872.js","mappings":"uxFAeY,OAAAA,EAAA,kBAAAC,CAAA,EAAAA,CAAA,CAAAD,IASZ,QACEE,MAAO,CACLC,gBAAiB,CACfC,QAAS,MAGbC,KAAI,WACF,OADKL,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACE,CACLC,QAAS,KACTC,IAAK,KAET,EACAC,QAAO,WAAGV,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACRI,KAAKF,IAAM,IAAIG,EAAAA,CACjB,EACAC,QAAO,WAAGb,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACRI,KAAKG,eACP,EACAC,cAAa,WAAGf,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACM,MAAhBI,KAAKH,SAAiBR,IAAAgB,EAAA,QAAAhB,IAAAO,EAAA,KACxBU,cAAcN,KAAKH,SAAQR,IAAAO,EAAA,KAC3BI,KAAKH,QAAU,MAChBR,IAAAgB,EAAA,OACH,EACAE,MAAO,CAELf,gBAAiB,SAAUgB,EAAQC,GAAQpB,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACzCI,KAAKG,eACP,GAEFO,QAAS,CACPP,cAAa,WAAG,IAAAQ,EAAA,KAAAtB,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACM,MAAhBI,KAAKH,SAAiBR,IAAAgB,EAAA,QAAAhB,IAAAO,EAAA,KACxBU,cAAcN,KAAKH,SAAQR,IAAAO,EAAA,KAC3BI,KAAKH,QAAU,MAChBR,IAAAgB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AED,SAAakC,EAAMxG,GACjB,OAAOM,KAAKqG,KAAK,eAAgB,CAACH,EAAMxG,GAC1C,GAAC,CAAAqE,IAAA,cAAAC,MAED,WACE,OAAOhE,KAAKqG,KAAK,cAAe,GAClC,GAEA,CAAAtC,IAAA,aAAAC,MAAA,eAAA0H,GAAAxH,EAAAA,EAAAA,IAAAC,EAAAA,EAAAA,KAAAC,MACA,SAAAuH,EAAiBC,GAAM,IAAAC,EAAAC,EAAAC,EAAA,OAAA5H,EAAAA,EAAAA,KAAAS,MAAA,SAAAoH,GAAA,eAAAA,EAAAlH,KAAAkH,EAAAjH,MAAA,WACjBO,OAAO2G,gBAAiB,CAAFD,EAAAjH,KAAA,QAIxB,OAFM8G,GAAc,IAAIK,aAAcC,OAAOP,GAE7CI,EAAAjH,KAAA,EACgCqH,OAAOC,OAAOC,OAC5C,UACAT,GACD,OAKD,OARMC,EAAiBE,EAAA9G,KAMjB6G,EAAkB,IAAIQ,WAAWT,GAEvCE,EAAAlG,OAAA,SACO+B,MAAM2E,KAAKT,GACfU,KAAI,SAACpM,GAAC,OAAKA,EAAEyC,SAAS,IAAI4J,SAAS,EAAG,IAAI,IAC1CC,KAAK,KAAG,wBAAAX,EAAA5F,OAAA,GAAAuF,EAAA,KAGd,SAAAiB,EAAAC,GAAA,OAAAnB,EAAAlF,MAAA,KAAA7B,UAAA,QAAAiI,CAAA,CArBD,MAqBC3M,CAAA,CArmBmB,E","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/Updater.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/services/openc3-api.js"],"sourcesContent":["/*\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# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n*/\n\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\n\nexport default {\n props: {\n refreshInterval: {\n default: 1000,\n },\n },\n data() {\n return {\n updater: null,\n api: null,\n }\n },\n created() {\n this.api = new OpenC3Api()\n },\n mounted() {\n this.changeUpdater()\n },\n beforeDestroy() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n },\n watch: {\n // eslint-disable-next-line no-unused-vars\n refreshInterval: function (newVal, oldVal) {\n this.changeUpdater()\n },\n },\n methods: {\n changeUpdater() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n this.updater = setInterval(() => {\n this.update()\n }, this.refreshInterval)\n },\n },\n}\n","/*\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# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","/*\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# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nexport class OpenC3Api {\n id = 1\n\n constructor() {}\n\n async exec(method, params, kwparams = {}, headerOptions = {}) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n this.id = this.id + 1\n try {\n kwparams['scope'] = window.openc3Scope\n const response = await axios.post(\n '/openc3-api/api',\n {\n jsonrpc: '2.0',\n method: method,\n params: params,\n id: this.id,\n keyword_params: kwparams,\n },\n {\n headers: {\n Authorization: localStorage.openc3Token,\n 'Content-Type': 'application/json-rpc',\n ...headerOptions,\n },\n }\n )\n // var data = response.data\n // if (data.error) {\n // var err = new Error()\n // err.name = data.error.data.class\n // err.message = data.error.data.message\n // console.log(data.error.data.backtrace.join('\\n'))\n // throw err\n // }\n return response.data.result\n } catch (error) {\n var err = new Error()\n if (error.response) {\n // The request was made and the server responded with a\n // status code that falls out of the range of 2xx\n err.name = error.response.data.error.data.class\n err.message = error.response.data.error.data.message\n } else if (error.request) {\n // The request was made but no response was received, `error.request`\n // is an instance of XMLHttpRequest in the browser and an instance\n // of http.ClientRequest in Node.js\n err.name = 'Request error'\n err.message = 'Request error, no response received'\n } else {\n // Something happened in setting up the request and triggered an Error\n err.name = 'Unknown error'\n }\n // console.log(error)\n throw err\n }\n }\n\n decode_openc3_type(val) {\n if (val !== null && typeof val === 'object') {\n if (val.json_class == 'Float' && val.raw) {\n if (val.raw == 'NaN') {\n return NaN\n } else if (val.raw == 'Infinity') {\n return Infinity\n } else if (val.raw == '-Infinity') {\n return -Infinity\n }\n }\n }\n return null\n }\n\n encode_openc3_type(val) {\n if (Number.isNaN(val)) {\n return { json_class: 'Float', raw: 'NaN' }\n } else if (val == Number.POSITIVE_INFINITY) {\n return { json_class: 'Float', raw: 'Infinity' }\n } else if (val == Number.NEGATIVE_INFINITY) {\n return { json_class: 'Float', raw: '-Infinity' }\n }\n return null\n }\n\n ensure_offline_access() {\n this.offline_access_needed().then((needed) => {\n if (needed) {\n if (localStorage.openc3OfflineToken) {\n this.set_offline_access(localStorage.openc3OfflineToken).then(() => {\n delete localStorage.openc3OfflineToken\n })\n } else {\n OpenC3Auth.getOfflineAccess()\n }\n }\n })\n }\n\n // ***********************************************\n // The following APIs are used by the CmdTlmServer\n // ***********************************************\n\n offline_access_needed() {\n return this.exec('offline_access_needed', [])\n }\n\n set_offline_access(offline_access_token) {\n return this.exec('set_offline_access', [offline_access_token])\n }\n\n get_all_interface_info() {\n return this.exec('get_all_interface_info', [])\n }\n\n map_target_to_interface(target_name, interface_name) {\n return this.exec('map_target_to_interface', [target_name, interface_name])\n }\n\n connect_interface(interface_name, ...interface_params) {\n if (interface_params.length > 0) {\n return this.exec('connect_interface', [\n interface_name,\n ...interface_params,\n ])\n } else {\n return this.exec('connect_interface', [interface_name])\n }\n }\n\n disconnect_interface(interface_name) {\n return this.exec('disconnect_interface', [interface_name])\n }\n\n get_all_router_info() {\n return this.exec('get_all_router_info', [])\n }\n\n connect_router(router_name) {\n return this.exec('connect_router', [router_name])\n }\n\n disconnect_router(router_name) {\n return this.exec('disconnect_router', [router_name])\n }\n\n get_target_interfaces() {\n return this.exec('get_target_interfaces', [])\n }\n\n // DEPRECATED\n get_all_target_info() {\n return this.exec('get_all_target_info', [])\n }\n\n get_tlm_cnts(target_commands) {\n return this.exec('get_tlm_cnts', [target_commands])\n }\n\n get_item(target, packet, item) {\n return this.exec('get_item', [target, packet, item])\n }\n\n get_parameter(target, packet, item) {\n return this.exec('get_parameter', [target, packet, item])\n }\n\n get_all_packet_logger_info() {\n return this.exec('get_all_packet_logger_info', [])\n }\n\n start_logging() {\n return this.exec('start_logging', [])\n }\n\n stop_logging() {\n return this.exec('stop_logging', [])\n }\n\n start_cmd_log(log_writer_name) {\n return this.exec('start_cmd_log', [log_writer_name])\n }\n\n start_tlm_log(log_writer_name) {\n return this.exec('start_tlm_log', [log_writer_name])\n }\n\n stop_cmd_log(log_writer_name) {\n return this.exec('stop_cmd_log', [log_writer_name])\n }\n\n stop_tlm_log(log_writer_name) {\n return this.exec('stop_tlm_log', [log_writer_name])\n }\n\n get_server_status() {\n return this.exec('get_server_status', [])\n }\n\n get_limits_sets() {\n return this.exec('get_limits_sets', [])\n }\n\n get_limits_set() {\n return this.exec('get_limits_set', [])\n }\n\n set_limits_set(limits_set) {\n return this.exec('set_limits_set', [limits_set])\n }\n\n get_background_tasks() {\n return this.exec('get_background_tasks', [])\n }\n\n start_background_task(name) {\n return this.exec('start_background_task', [name])\n }\n\n stop_background_task(name) {\n return this.exec('stop_background_task', [name])\n }\n\n // ***********************************************\n // End CmdTlmServer APIs\n // ***********************************************\n\n get_target(target_name) {\n return this.exec('get_target', [target_name])\n }\n\n get_target_list() {\n return this.exec('get_target_list', [])\n }\n\n get_telemetry(target_name, packet_name) {\n return this.exec('get_telemetry', [target_name, packet_name])\n }\n\n get_all_telemetry(target_name) {\n return this.exec('get_all_telemetry', [target_name])\n }\n\n get_all_telemetry_names(target_name) {\n return this.exec('get_all_telemetry_names', [target_name])\n }\n\n async get_tlm_packet(target_name, packet_name, value_type, stale_time = 30) {\n const data = await this.exec('get_tlm_packet', [target_name, packet_name], {\n type: value_type,\n stale_time: stale_time,\n })\n // Make sure data isn't null or undefined. Note this is the only valid use of == or !=\n if (data != null) {\n var len = data.length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_openc3_type(data[i][1])\n if (converted !== null) {\n data[i][1] = converted\n }\n }\n }\n return data\n }\n\n get_packet_derived_items(target_name, packet_name) {\n return this.exec('get_packet_derived_items', [target_name, packet_name])\n }\n\n get_tlm_buffer(target_name, packet_name) {\n return this.exec('get_tlm_buffer', [target_name, packet_name])\n }\n\n async get_tlm_values(items, stale_time = 30) {\n const data = await this.exec('get_tlm_values', [items], {\n stale_time: stale_time,\n })\n var len = data[0].length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_openc3_type(data[0][i])\n if (converted !== null) {\n data[0][i] = converted\n }\n }\n return data\n }\n\n get_limits(target_name, packet_name, item_name) {\n return this.exec('get_limits', [target_name, packet_name, item_name])\n }\n\n async tlm(target_name, packet_name, item_name, value_type = 'CONVERTED') {\n let data = null\n // Check for the single string syntax: tlm(\"TGT PKT ITEM\")\n if (packet_name === undefined) {\n data = await this.exec('tlm', [target_name])\n // Check for the single string syntax with type: tlm(\"TGT PKT ITEM\", \"RAW\")\n } else if (item_name === undefined) {\n if (\n ['RAW', 'CONVERTED', 'FORMATTED', 'WITH_UNITS'].includes(packet_name)\n ) {\n data = await this.exec('tlm', [target_name], { type: packet_name })\n } else {\n var err = new Error()\n err.name = 'TypeError'\n err.message = `Invalid data type ${packet_name}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`\n throw err\n }\n } else {\n data = await this.exec('tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n var converted = this.decode_openc3_type(data)\n if (converted !== null) {\n data = converted\n }\n return data\n }\n\n async inject_tlm(\n target_name,\n packet_name,\n item_hash = null,\n value_type = 'CONVERTED'\n ) {\n data = await this.exec(\n 'inject_tlm',\n [target_name, packet_name, item_hash],\n {\n type: value_type,\n }\n )\n }\n\n set_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('set_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n override_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('override_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n get_overrides() {\n return this.exec('get_overrides')\n }\n\n normalize_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('normalize_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n get_all_commands(target_name) {\n return this.exec('get_all_commands', [target_name])\n }\n\n get_all_command_names(target_name) {\n return this.exec('get_all_command_names', [target_name])\n }\n\n get_command(target_name, command_name) {\n return this.exec('get_command', [target_name, command_name])\n }\n\n get_cmd_cnts(target_commands) {\n return this.exec('get_cmd_cnts', [target_commands])\n }\n\n get_cmd_value(\n target_name,\n packet_name,\n parameter_name,\n value_type = 'CONVERTED'\n ) {\n return this.exec('get_cmd_value', [\n target_name,\n packet_name,\n parameter_name,\n value_type,\n ])\n }\n\n get_cmd_buffer(target_name, packet_name) {\n return this.exec('get_cmd_buffer', [target_name, packet_name])\n }\n\n // Implementation of functionality shared by cmd methods with param_lists.\n _cmd(method, target_name, command_name, param_list, headerOptions) {\n var converted = null\n for (var key in param_list) {\n if (Object.prototype.hasOwnProperty.call(param_list, key)) {\n converted = this.encode_openc3_type(param_list[key])\n if (converted !== null) {\n param_list[key] = converted\n }\n }\n }\n return this.exec(\n method,\n [target_name, command_name, param_list],\n {},\n headerOptions\n )\n }\n\n get_cmd_hazardous(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('get_cmd_hazardous', target_name)\n } else {\n return this._cmd(\n 'get_cmd_hazardous',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd(target_name, command_name, param_list, headerOptions = {}) {\n if (command_name === undefined) {\n return this.exec('cmd', target_name, {}, headerOptions)\n } else {\n return this._cmd(\n 'cmd',\n target_name,\n command_name,\n param_list,\n headerOptions\n )\n }\n }\n\n cmd_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_range_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd_raw(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw', target_name)\n } else {\n return this._cmd('cmd_raw', target_name, command_name, param_list)\n }\n }\n\n cmd_raw_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_range_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_hazardous_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_checks', target_name)\n } else {\n return this._cmd('cmd_no_checks', target_name, command_name, param_list)\n }\n }\n\n cmd_raw_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_hazardous_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n cmd_raw_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_checks', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_checks',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n get_interface_names() {\n return this.exec('get_interface_names', [])\n }\n\n send_raw(interface_name, data) {\n return this.exec('send_raw', [interface_name, data])\n }\n\n list_configs(tool) {\n return this.exec('list_configs', [tool])\n }\n\n load_config(tool, name) {\n return this.exec('load_config', [tool, name])\n }\n\n save_config(tool, name, data) {\n return this.exec('save_config', [tool, name, data])\n }\n\n delete_config(tool, name) {\n return this.exec('delete_config', [tool, name])\n }\n\n enable_limits(target, packet, item) {\n return this.exec('enable_limits', [target, packet, item])\n }\n\n disable_limits(target, packet, item) {\n return this.exec('disable_limits', [target, packet, item])\n }\n\n get_out_of_limits() {\n return this.exec('get_out_of_limits', [])\n }\n\n get_overall_limits_state(ignored) {\n return this.exec('get_overall_limits_state', [ignored])\n }\n\n list_settings() {\n return this.exec('list_settings', [])\n }\n\n get_all_settings() {\n return this.exec('get_all_settings', [])\n }\n\n get_setting(name) {\n return this.exec('get_setting', [name])\n }\n\n get_settings(array) {\n return this.exec('get_settings', array)\n }\n\n save_setting(name, data) {\n return this.exec('save_setting', [name, data])\n }\n\n get_metrics() {\n return this.exec('get_metrics', [])\n }\n\n // TODO: Currently unused but seemed like a useful function\n async hashString(string) {\n if (window.isSecureContext) {\n // Encode the string as an arrayBuffer which the subtle crypto API uses\n const arrayBuffer = new TextEncoder().encode(string)\n // Use the subtle crypto API to perform a SHA256 Sum of the array buffer\n // The resulting hash is stored in an array buffer\n const hashAsArrayBuffer = await crypto.subtle.digest(\n 'SHA-256',\n arrayBuffer\n )\n // To create a string we will get the hexadecimal value of each byte of the array buffer\n // This gets us an array where each byte of the array buffer becomes one item in the array\n const uint8ViewOfHash = new Uint8Array(hashAsArrayBuffer)\n // We then convert it to a regular array so we can convert each item to hexadecimal strings\n // Where to characters of 0-9 or a-f represent a number between 0 and 16, containing 4 bits of information, so 2 of them is 8 bits (1 byte).\n return Array.from(uint8ViewOfHash)\n .map((b) => b.toString(16).padStart(2, '0'))\n .join('')\n }\n // else ?\n }\n}\n"],"names":["cov_18iatml2cn","actualCoverage","props","refreshInterval","default","data","f","s","updater","api","created","this","OpenC3Api","mounted","changeUpdater","beforeDestroy","b","clearInterval","watch","newVal","oldVal","methods","_this","setInterval","update","vueInstance","Vue","axiosInstance","axios","baseURL","location","origin","timeout","params","interceptors","response","use","error","_error$response","_error$response2","_error$response2$conf","_error$response3","_error$response3$data","_error$response4","_error$response4$data","_error$response5","_error$response5$data","_error$response5$data2","status","OpenC3Auth","updateToken","defaultMinValidity","then","refreshed","setTokens","headers","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","_classCallCheck","_defineProperty","_createClass","key","value","_exec","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","kwparams","headerOptions","err","_args","arguments","wrap","_context","prev","next","length","undefined","sent","t0","login","id","window","openc3Scope","jsonrpc","keyword_params","_objectSpread","Authorization","localStorage","openc3Token","abrupt","result","t1","Error","name","request","stop","exec","_x","_x2","apply","val","_typeof","json_class","raw","NaN","Infinity","Number","isNaN","POSITIVE_INFINITY","NEGATIVE_INFINITY","offline_access_needed","needed","openc3OfflineToken","set_offline_access","getOfflineAccess","offline_access_token","target_name","interface_name","_len","interface_params","Array","_key","router_name","target_commands","target","packet","item","log_writer_name","limits_set","packet_name","_get_tlm_packet","_callee2","value_type","stale_time","len","converted","i","_args2","_context2","type","decode_openc3_type","get_tlm_packet","_x3","_x4","_x5","_get_tlm_values","_callee3","items","_args3","_context3","get_tlm_values","_x6","item_name","_tlm","_callee4","_args4","_context4","tlm","_x7","_x8","_x9","_inject_tlm","_callee5","item_hash","_args5","_context5","inject_tlm","_x10","_x11","command_name","parameter_name","param_list","Object","prototype","hasOwnProperty","call","encode_openc3_type","_cmd","tool","ignored","array","_hashString","_callee6","string","arrayBuffer","hashAsArrayBuffer","uint8ViewOfHash","_context6","isSecureContext","TextEncoder","encode","crypto","subtle","digest","Uint8Array","from","map","padStart","join","hashString","_x12"],"sourceRoot":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[916],{3916:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});t(7950),t(4908);function a(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/StatusTab.vue",n="6ab0d73706fa7c0dc987925b5fe31277b476ce6e",t=new Function("return this")(),l="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/StatusTab.vue",statementMap:{0:{start:{line:1,column:13},end:{line:5,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:4,column:84}},4:{start:{line:1,column:330},end:{line:1,column:344}},5:{start:{line:6,column:22},end:{line:6,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:5,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:314},end:{line:1,column:315}},loc:{start:{line:1,column:329},end:{line:1,column:345}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6ab0d73706fa7c0dc987925b5fe31277b476ce6e"},r=t[l]||(t[l]={});r[e]&&r[e].hash===n||(r[e]=s);var o=r[e];return a=function(){return o},o}a(),a().s[0]++;var l=function(){a().f[0]++;var e=(a().s[1]++,this),n=(a().s[2]++,e._self._c);return a().s[3]++,n("div",[n("v-card",[n("v-card-title",[e._v(" "+e._s(e.data.length)+" Metrics "),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){a().f[1]++,a().s[4]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.data,search:e.search,"items-per-page":10,"footer-props":{itemsPerPageOptions:[10,20,50,100,1e3],showFirstLastPage:!0},"calculate-widths":"","multi-sort":"","data-test":"metrics-table"}})],1)],1)},s=(a().s[5]++,[]),r=t(7302),o=(t(1245),t(5883),t(6728),t(4872)),i=t(8123);function c(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/StatusTab.vue",n="c538a4d97bd8f6141e1539fa3abd7ca8ae091605",t=new Function("return this")(),a="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/StatusTab.vue",statementMap:{0:{start:{line:12,column:4},end:{line:35,column:5}},1:{start:{line:39,column:6},end:{line:43,column:7}},2:{start:{line:40,column:8},end:{line:40,column:44}},3:{start:{line:41,column:13},end:{line:43,column:7}},4:{start:{line:42,column:8},end:{line:42,column:43}},5:{start:{line:46,column:6},end:{line:46,column:43}},6:{start:{line:46,column:37},end:{line:46,column:43}},7:{start:{line:47,column:6},end:{line:52,column:8}},8:{start:{line:48,column:8},end:{line:48,column:22}},9:{start:{line:49,column:8},end:{line:51,column:9}},10:{start:{line:50,column:10},end:{line:50,column:60}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:2},end:{line:11,column:3}},loc:{start:{line:11,column:9},end:{line:36,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:38,column:4},end:{line:38,column:5}},loc:{start:{line:38,column:29},end:{line:44,column:5}},line:38},2:{name:"(anonymous_2)",decl:{start:{line:45,column:4},end:{line:45,column:5}},loc:{start:{line:45,column:13},end:{line:53,column:5}},line:45},3:{name:"(anonymous_3)",decl:{start:{line:47,column:34},end:{line:47,column:35}},loc:{start:{line:47,column:47},end:{line:52,column:7}},line:47}},branchMap:{0:{loc:{start:{line:39,column:6},end:{line:43,column:7}},type:"if",locations:[{start:{line:39,column:6},end:{line:43,column:7}},{start:{line:41,column:13},end:{line:43,column:7}}],line:39},1:{loc:{start:{line:41,column:13},end:{line:43,column:7}},type:"if",locations:[{start:{line:41,column:13},end:{line:43,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:41},2:{loc:{start:{line:46,column:6},end:{line:46,column:43}},type:"if",locations:[{start:{line:46,column:6},end:{line:46,column:43}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:46}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["StatusTab.vue"],names:[],mappings:";AAwDA;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",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#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\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>\n <v-card-title>\n {{ data.length }} Metrics\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=\"{\n itemsPerPageOptions: [10, 20, 50, 100, 1000],\n showFirstLastPage: true,\n }\"\n calculate-widths\n multi-sort\n data-test=\"metrics-table\"\n >\n </v-data-table>\n </v-card>\n </div>\n</template>\n\n<script>\nimport 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 search: '',\n data: [],\n headers: [\n { text: 'Metric', value: 'metric_name' },\n { text: 'Value', value: 'value' },\n ],\n }\n },\n methods: {\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 update() {\n if (this.tabId != this.curTab) return\n this.api.get_metrics().then((metrics) => {\n this.data = []\n for (const [key, value] of Object.entries(metrics)) {\n this.data.push({ metric_name: key, value: value })\n }\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:"c538a4d97bd8f6141e1539fa3abd7ca8ae091605"},s=t[a]||(t[a]={});s[e]&&s[e].hash===n||(s[e]=l);var r=s[e];return c=function(){return r},r}c();var u={mixins:[o.Z],props:{tabId:Number,curTab:Number},data:function(){return c().f[0]++,c().s[0]++,{api:new i.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"}],search:"",data:[],headers:[{text:"Metric",value:"metric_name"},{text:"Value",value:"value"}]}},methods:{taskControl:function(e,n){c().f[1]++,c().s[1]++,"Start"==n?(c().b[0][0]++,c().s[2]++,this.api.start_background_task(e)):(c().b[0][1]++,c().s[3]++,"Stop"==n?(c().b[1][0]++,c().s[4]++,this.api.stop_background_task(e)):c().b[1][1]++)},update:function(){var e=this;if(c().f[2]++,c().s[5]++,this.tabId!=this.curTab)return c().b[2][0]++,void c().s[6]++;c().b[2][1]++,c().s[7]++,this.api.get_metrics().then((function(n){c().f[3]++,c().s[8]++,e.data=[],c().s[9]++;for(var t=0,a=Object.entries(n);t<a.length;t++){var l=(0,r.Z)(a[t],2),s=l[0],o=l[1];c().s[10]++,e.data.push({metric_name:s,value:o})}}))}}},d=u,m=(t(460),t(3483)),A=(0,m.Z)(d,l,s,!1,null,"44b09238",null),p=A.exports},5883:function(e,n,t){var a=t(3103),l=t(7664).entries;a({target:"Object",stat:!0},{entries:function(e){return l(e)}})},825:function(e,n,t){"use strict";t.r(n);var a=t(9601),l=t.n(a),s=t(2609),r=t.n(s),o=r()(l());o.push([e.id,".container[data-v-44b09238],.theme--dark.v-card[data-v-44b09238],.theme--dark.v-sheet[data-v-44b09238]{background-color:var(--v-tertiary-darken2)}",""]),n["default"]=o},460:function(e,n,t){var a=t(825);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals);var l=t(3514).Z;l("5f1a43b8",a,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=916.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"js/916.js","mappings":"41CAeY,OAAAA,EAAA,kBAAAC,CAAA,EAAAA,CAAA,CAAAD,IAAAA,IAAAE,EAAA,KAfZ,IAAIC,EAAS,WAAiBH,IAAAI,EAAA,KAAC,IAAIC,GAAGL,IAAAE,EAAA,KAACI,MAAKC,GAAEP,IAAAE,EAAA,KAACG,EAAIG,MAAMD,IAAG,OAAAP,IAAAE,EAAA,KAAOK,EAAG,MAAM,CAACA,EAAG,SAAS,CAACA,EAAG,eAAe,CAACF,EAAII,GAAG,IAAIJ,EAAIK,GAAGL,EAAIM,KAAKC,QAAQ,aAAaL,EAAG,YAAYA,EAAG,eAAe,CAACM,MAAM,CAAC,cAAc,cAAc,MAAQ,SAAS,cAAc,GAAG,eAAe,IAAIC,MAAM,CAACC,MAAOV,EAAIW,OAAQC,SAAS,SAAUC,GAAKlB,IAAAI,EAAA,KAAAJ,IAAAE,EAAA,KAACG,EAAIW,OAAOE,CAAG,EAAEC,WAAW,aAAa,GAAGZ,EAAG,eAAe,CAACM,MAAM,CAAC,QAAUR,EAAIe,QAAQ,MAAQf,EAAIM,KAAK,OAASN,EAAIW,OAAO,iBAAiB,GAAG,eAAe,CACreK,oBAAqB,CAAC,GAAI,GAAI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,OAAA,OAAA7B,IAAAyC,EAAA,aAAAzC,IAAAE,EAAA,KAAAF,IAAAyC,EAAA,QAAAzC,IAAAE,EAAA,KACA,KAAA4B,IAAAgB,cAAAC,MAAA,SAAAC,GAAAhD,IAAAI,EAAA,KAAAJ,IAAAE,EAAA,KACA2C,EAAAlC,KAAA,GAAAX,IAAAE,EAAA,KACA,QAAA+C,EAAA,EAAAC,EAAAC,OAAAC,QAAAJ,GAAAC,EAAAC,EAAAtC,OAAAqC,IAAA,KAAAI,GAAAC,EAAAA,EAAAA,GAAAJ,EAAAD,GAAA,GAAAM,EAAAF,EAAA,GAAAtC,EAAAsC,EAAA,GAAArD,IAAAE,EAAA,MACA2C,EAAAlC,KAAA6C,KAAA,CAAAC,YAAAF,EAAAxC,MAAAA,GACA,CACA,GACA,IC3GuT,I,mBCQnT2C,GAAY,OACd,EACAvD,EACAoB,GACA,EACA,KACA,WACA,MAIF,EAAemC,EAAiB,O,uBCnBhC,IAAIC,EAAI,EAAQ,MACZC,EAAW,gBAIfD,EAAE,CAAEE,OAAQ,SAAUC,MAAM,GAAQ,CAClCV,QAAS,SAAiBW,GACxB,OAAOH,EAASG,EAClB,G,oFCLEC,EAA0B,IAA4B,KAE1DA,EAAwBR,KAAK,CAACS,EAAOC,GAAI,qJAAsJ,KAE/L,c,sBCJA,IAAIC,EAAU,EAAQ,KACnBA,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/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/StatusTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue?0c8b","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue?7de2","webpack://@openc3/cosmos-tool-cmdtlmserver/../../node_modules/core-js/modules/es.object.entries.js","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue?82df","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/StatusTab.vue?b814"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-card',[_c('v-card-title',[_vm._v(\" \"+_vm._s(_vm.data.length)+\" Metrics \"),_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\":{\n itemsPerPageOptions: [10, 20, 50, 100, 1000],\n showFirstLastPage: true,\n },\"calculate-widths\":\"\",\"multi-sort\":\"\",\"data-test\":\"metrics-table\"}})],1)],1)\n}\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# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <div>\n <!-- Use a container here so we can do cols=\"auto\" to resize v-select -->\n <v-card>\n <v-card-title>\n {{ data.length }} Metrics\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=\"{\n itemsPerPageOptions: [10, 20, 50, 100, 1000],\n showFirstLastPage: true,\n }\"\n calculate-widths\n multi-sort\n data-test=\"metrics-table\"\n >\n </v-data-table>\n </v-card>\n </div>\n</template>\n\n<script>\nimport 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 search: '',\n data: [],\n headers: [\n { text: 'Metric', value: 'metric_name' },\n { text: 'Value', value: 'value' },\n ],\n }\n },\n methods: {\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 update() {\n if (this.tabId != this.curTab) return\n this.api.get_metrics().then((metrics) => {\n this.data = []\n for (const [key, value] of Object.entries(metrics)) {\n this.data.push({ metric_name: key, value: value })\n }\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/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/vue-loader-v15/lib/index.js??vue-loader-options!./StatusTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../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/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=44b09238&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=44b09238&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"44b09238\",\n null\n \n)\n\nexport default component.exports","var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.es/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../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-44b09238],.theme--dark.v-card[data-v-44b09238],.theme--dark.v-sheet[data-v-44b09238]{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/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./StatusTab.vue?vue&type=style&index=0&id=44b09238&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(\"5f1a43b8\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["cov_2ntlonrahl","actualCoverage","s","render","f","_vm","this","_c","_self","_v","_s","data","length","attrs","model","value","search","callback","$$v","expression","headers","itemsPerPageOptions","showFirstLastPage","staticRenderFns","mixins","Updater","props","tabId","Number","curTab","api","OpenC3Api","apiStatus","apiHeaders","text","backgroundTasks","backgroundHeaders","methods","taskControl","name","state","b","start_background_task","stop_background_task","update","_this","get_metrics","then","metrics","_i","_Object$entries","Object","entries","_Object$entries$_i","_slicedToArray","key","push","metric_name","component","$","$entries","target","stat","O","___CSS_LOADER_EXPORT___","module","id","content","__esModule","default","locals","exports","add"],"sourceRoot":""}
|