openc3-cosmos-tool-cmdtlmserver 5.9.0 → 5.10.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc3-cosmos-tool-cmdtlmserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.9.0
4
+ version: 5.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-07-07 00:00:00.000000000 Z
12
+ date: 2023-08-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: " This plugin adds the OpenC3 COSMOS CmdTlmServer Tool\n"
15
15
  email:
@@ -32,8 +32,6 @@ files:
32
32
  - tools/cmdtlmserver/js/377.js.map
33
33
  - tools/cmdtlmserver/js/388.js
34
34
  - tools/cmdtlmserver/js/388.js.map
35
- - tools/cmdtlmserver/js/398.js
36
- - tools/cmdtlmserver/js/398.js.map
37
35
  - tools/cmdtlmserver/js/413.js
38
36
  - tools/cmdtlmserver/js/413.js.map
39
37
  - tools/cmdtlmserver/js/444.js
@@ -42,10 +40,12 @@ files:
42
40
  - tools/cmdtlmserver/js/49.js.map
43
41
  - tools/cmdtlmserver/js/493.js
44
42
  - tools/cmdtlmserver/js/493.js.map
43
+ - tools/cmdtlmserver/js/614.js
44
+ - tools/cmdtlmserver/js/614.js.map
45
45
  - tools/cmdtlmserver/js/74.js
46
46
  - tools/cmdtlmserver/js/74.js.map
47
- - tools/cmdtlmserver/js/830.js
48
- - tools/cmdtlmserver/js/830.js.map
47
+ - tools/cmdtlmserver/js/85.js
48
+ - tools/cmdtlmserver/js/85.js.map
49
49
  - tools/cmdtlmserver/js/872.js
50
50
  - tools/cmdtlmserver/js/872.js.map
51
51
  - tools/cmdtlmserver/js/916.js
@@ -1,2 +0,0 @@
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(7309);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 +0,0 @@
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,eA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AF,IAAAqC,EAAA,QAAArC,IAAAE,EAAA,WACA,KAAAoD,IAAAsB,aAAA,KAAAzB,SAAAK,MAAA,SAAAqB,GAAA7E,IAAAI,EAAA,MAAAJ,IAAAE,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,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":""}