openc3-cosmos-tool-cmdtlmserver 5.20.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +2 -2
- data/tools/cmdtlmserver/ArrayWidget-By62tXtU-71c668c2b12f3647b2aa.js +2 -0
- data/tools/cmdtlmserver/BarColumn-Dm3D1Lhp-0e936d8648b3ed447feb.js +1 -0
- data/tools/cmdtlmserver/BlockWidget-CrT45ode-886b3faff84b37db6c51.js +2 -0
- data/tools/cmdtlmserver/ButtonWidget-CKyBBv6m-3b8176a5b59e2fe6ede9.js +2 -0
- data/tools/cmdtlmserver/CanvasWidget-PqkppHC7-fd8f2fe4b4158775777e.js +1 -0
- data/tools/cmdtlmserver/CanvasdotWidget-BUbJgM2d-7f320c3f245428eff6e0.js +1 -0
- data/tools/cmdtlmserver/CanvasimageWidget-DPVBY7mi-21593c9450e5c05595d2.js +1 -0
- data/tools/cmdtlmserver/CanvasimagevalueWidget-GX37zzNc-35ce65c12b0ff93c1e64.js +1 -0
- data/tools/cmdtlmserver/CanvaslabelWidget-P2_Y6Edw-1fc22fee78e455e0bacc.js +1 -0
- data/tools/cmdtlmserver/CanvaslabelvalueWidget-Cuas1i9P-958866656e489e737d07.js +1 -0
- data/tools/cmdtlmserver/CanvaslineWidget-BYOYgPya-d389d6419c193203d6b8.js +1 -0
- data/tools/cmdtlmserver/CanvaslinevalueWidget-3cVJMFo7-2946dcc156558454a815.js +1 -0
- data/tools/cmdtlmserver/CheckbuttonWidget-B3wgSMuB-2e200064cf109304de12.js +1 -0
- data/tools/cmdtlmserver/CmdPacketsTab-b15d0514cdb75bd29bd8.js +1 -0
- data/tools/cmdtlmserver/CmdTlmServer-18df2af9fea7fa1a5a7c.js +2 -0
- data/tools/cmdtlmserver/ComboboxWidget-Dzr4Scvf-699c8eacd9a8687ee70d.js +1 -0
- data/tools/cmdtlmserver/DateWidget-BWh76Ibb-d6f7da26ea2fd4cb72e8.js +1 -0
- data/tools/cmdtlmserver/DetailsDialog-EWjtBjle-37b6940e1f2a2dead428.js +1 -0
- data/tools/cmdtlmserver/DynamicWidget-m9EliUR2-62ab2ad533de794320d4.js +1 -0
- data/tools/cmdtlmserver/FormatvalueWidget-Rk0_eeIm-50cdf441547b0cb8608d.js +1 -0
- data/tools/cmdtlmserver/GraphWidget-LqekkNDr-da2fa45489caf0d4fad1.js +1 -0
- data/tools/cmdtlmserver/HorizontalWidget-BcfJ24Zn-21157dc1940825a36df8.js +1 -0
- data/tools/cmdtlmserver/HorizontalboxWidget-CQy1Hv9E-d2088459c65904a689d2.js +1 -0
- data/tools/cmdtlmserver/HorizontallineWidget-BdlNB951-4dee66ec89d4aa3f5f07.js +1 -0
- data/tools/cmdtlmserver/IframeWidget-BBaDrRLo-c6c36b42c6c6f9a2dfa3.js +1 -0
- data/tools/cmdtlmserver/ImageLoader-CDLQopxJ-4c9cccf9c544ba381bd4.js +1 -0
- data/tools/cmdtlmserver/ImageviewerWidget-BgO3Pq6I-49d5b6d7e95afdb924d9.js +1 -0
- data/tools/cmdtlmserver/InterfacesTab-acffaa153abb0955b428.js +1 -0
- data/tools/cmdtlmserver/LabelWidget-B_C6lKOE-21bc54b64ce81b8d5e91.js +1 -0
- data/tools/cmdtlmserver/LabelledWidget-B_UGivhr-45bd4b27e27af75c76ce.js +1 -0
- data/tools/cmdtlmserver/LabelprogressbarWidget-BJWCmsYC-a38332a26d43fbc7cb11.js +1 -0
- data/tools/cmdtlmserver/LabelsparklineWidget-DILCIh3q-a123a563ebb202129724.js +1 -0
- data/tools/cmdtlmserver/LabelvalueWidget-CCZd1NXE-e3c1d1b547bd294e08fc.js +1 -0
- data/tools/cmdtlmserver/LabelvaluedescWidget-Bsllq8W6-c61edd74c658e4cbc152.js +1 -0
- data/tools/cmdtlmserver/LabelvaluelimitsbarWidget-BV-cfaD--6fbc9f8ce13090936c15.js +1 -0
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-DwA0eRBw-20f41ba3a09d3c059323.js +1 -0
- data/tools/cmdtlmserver/LabelvaluerangebarWidget-3GDJz3dj-13a0899a53ecebdbdb8d.js +1 -0
- data/tools/cmdtlmserver/Layout-klOVw-YN-a721899dc469c373afa9.js +1 -0
- data/tools/cmdtlmserver/LedWidget-BAt02s0J-710e81df00d16611ca6c.js +1 -0
- data/tools/cmdtlmserver/LimitsbarWidget-JJiyzZjb-b5becd869841fa1595ff.js +1 -0
- data/tools/cmdtlmserver/LimitscolorWidget-CYzXKbYd-7e2a7414bebb0d967056.js +1 -0
- data/tools/cmdtlmserver/LimitscolumnWidget-Cd76tBo7-6de0345076b09ddf4e33.js +1 -0
- data/tools/cmdtlmserver/LinegraphWidget-DWRtO6Ej-cedf2afc896274387b0a.js +1 -0
- data/tools/cmdtlmserver/MatrixbycolumnsWidget-cwsyjNV2-c35c7acd7f9bbe099adc.js +1 -0
- data/tools/cmdtlmserver/ProgressbarWidget-CYDziFej-98afe46a60db5ef50bc2.js +1 -0
- data/tools/cmdtlmserver/RadiobuttonWidget-U6jcQZoD-f8933c81d6f206fea4f9.js +1 -0
- data/tools/cmdtlmserver/RadiogroupWidget-HTPJnsB0-10f8679497847aa5eedf.js +1 -0
- data/tools/cmdtlmserver/RangebarWidget-DW0FJK6y-ca5c172b1f8d8b0bdd04.js +1 -0
- data/tools/cmdtlmserver/RawDialog-7cfffbbe1160eb2dfa0f.js +11 -0
- data/tools/cmdtlmserver/RollupWidget-B2qrx55f-9b4d46c83244d93b538e.js +1 -0
- data/tools/cmdtlmserver/RoutersTab-e227a58650cef2f7cb45.js +1 -0
- data/tools/cmdtlmserver/ScrollwindowWidget-CwIDxgO6-ea5bb31dc3cfde35e775.js +1 -0
- data/tools/cmdtlmserver/SignalWidget-Bosa3AbW-d0ae775dd5c4743bd297.js +1 -0
- data/tools/cmdtlmserver/SpacerWidget-DYAlt5mt-78b1595bcafcd837342e.js +1 -0
- data/tools/cmdtlmserver/SparklineWidget-CDrVXOFV-2183c82cc253586cf77f.js +1 -0
- data/tools/cmdtlmserver/StatusTab-e815b6f5b133af771d3c.js +1 -0
- data/tools/cmdtlmserver/TabbookWidget-DDdlzCkv-ccba59d5746cd2b8788e.js +1 -0
- data/tools/cmdtlmserver/TargetsTab-22e2db6d75a3e9456d69.js +1 -0
- data/tools/cmdtlmserver/TextboxWidget-5euFelEq-eb2c48ecf9a4852448b3.js +1 -0
- data/tools/cmdtlmserver/TextfieldWidget-BFripYeh-5f0267b7e9745eb772d6.js +1 -0
- data/tools/cmdtlmserver/TimeWidget-BBSbsUYJ-41f6ac9de864b392c87e.js +1 -0
- data/tools/cmdtlmserver/TitleWidget-p8cjo-Bs-ae7c644a01c9f5ffd68c.js +1 -0
- data/tools/cmdtlmserver/TlmPacketsTab-d2f22dccdcd0109dc9fc.js +1 -0
- data/tools/cmdtlmserver/Updater-3608194712b19b896303.js +1 -0
- data/tools/cmdtlmserver/VWidget-Dmqf_jKM-2854e5bda271afc8bffe.js +1 -0
- data/tools/cmdtlmserver/ValueWidget-CZh7JWwT-561515c3bc47da2968a1.js +1 -0
- data/tools/cmdtlmserver/ValuelimitsbarWidget-DU7ybswC-bccfe404aabe243d72f4.js +1 -0
- data/tools/cmdtlmserver/ValuelimitscolumnWidget-DMw-h5jM-1cfd35ce298999a0ff6a.js +1 -0
- data/tools/cmdtlmserver/ValuerangebarWidget-DPpofDpA-d242d66cd64e9a78f881.js +1 -0
- data/tools/cmdtlmserver/VerticalWidget-Ch7VAEmz-71645022feffa66a8825.js +1 -0
- data/tools/cmdtlmserver/VerticalboxWidget-DYx-TFT4-5f9dfe83d76b0a3739bd.js +1 -0
- data/tools/cmdtlmserver/Widget-orNSvnOh-c2189f557c1c3db5d0d5.js +1 -0
- data/tools/cmdtlmserver/main-74390a4d748a97f336a8.js +1422 -0
- data/tools/cmdtlmserver/main.js +1 -0
- data/tools/cmdtlmserver/services-6fab0d9d3d41ee3bbe0a.js +6 -0
- metadata +77 -32
- data/tools/cmdtlmserver/img/logo.png +0 -0
- data/tools/cmdtlmserver/index.html +0 -4
- data/tools/cmdtlmserver/js/195.js +0 -2
- data/tools/cmdtlmserver/js/195.js.map +0 -1
- data/tools/cmdtlmserver/js/272.js +0 -2
- data/tools/cmdtlmserver/js/272.js.map +0 -1
- data/tools/cmdtlmserver/js/275.js +0 -2
- data/tools/cmdtlmserver/js/275.js.map +0 -1
- data/tools/cmdtlmserver/js/30.js +0 -2
- data/tools/cmdtlmserver/js/30.js.map +0 -1
- data/tools/cmdtlmserver/js/303.js +0 -2
- data/tools/cmdtlmserver/js/303.js.map +0 -1
- data/tools/cmdtlmserver/js/305.js +0 -2
- data/tools/cmdtlmserver/js/305.js.map +0 -1
- data/tools/cmdtlmserver/js/328.js +0 -2
- data/tools/cmdtlmserver/js/328.js.map +0 -1
- data/tools/cmdtlmserver/js/364.js +0 -2
- data/tools/cmdtlmserver/js/364.js.map +0 -1
- data/tools/cmdtlmserver/js/467.js +0 -2
- data/tools/cmdtlmserver/js/467.js.map +0 -1
- data/tools/cmdtlmserver/js/59.js +0 -2
- data/tools/cmdtlmserver/js/59.js.map +0 -1
- data/tools/cmdtlmserver/js/625.js +0 -2
- data/tools/cmdtlmserver/js/625.js.map +0 -1
- data/tools/cmdtlmserver/js/739.js +0 -2
- data/tools/cmdtlmserver/js/739.js.map +0 -1
- data/tools/cmdtlmserver/js/938.js +0 -2
- data/tools/cmdtlmserver/js/938.js.map +0 -1
- data/tools/cmdtlmserver/js/app.js +0 -2
- data/tools/cmdtlmserver/js/app.js.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["vue","./main-74390a4d748a97f336a8.js","vue-router","vuex","vuetify"],function(t,e){"use strict";return{setters:[null,u=>{t({bootstrap:u.e,mount:u.m,unmount:u.u})},null,null,null],execute:function(){}}});
|
@@ -0,0 +1,6 @@
|
|
1
|
+
System.register([],function(se,rr){"use strict";return{execute:function(){var ft=Object.defineProperty,pt=(t,e,n)=>e in t?ft(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mt=(t,e,n)=>pt(t,e+"",n);function Re(t,e){return function(){return t.apply(e,arguments)}}const{toString:gt}=Object.prototype,{getPrototypeOf:ie}=Object,$=(t=>e=>{const n=gt.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),T=t=>(t=t.toLowerCase(),e=>$(e)===t),W=t=>e=>typeof e===t,{isArray:j}=Array,F=W("undefined");function _t(t){return t!==null&&!F(t)&&t.constructor!==null&&!F(t.constructor)&&R(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Te=T("ArrayBuffer");function bt(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Te(t.buffer),e}const yt=W("string"),R=W("function"),xe=W("number"),H=t=>t!==null&&typeof t=="object",wt=t=>t===!0||t===!1,V=t=>{if($(t)!=="object")return!1;const e=ie(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},St=T("Date"),Et=T("File"),Ot=T("Blob"),At=T("FileList"),Rt=t=>H(t)&&R(t.pipe),Tt=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||R(t.append)&&((e=$(t))==="formdata"||e==="object"&&R(t.toString)&&t.toString()==="[object FormData]"))},xt=T("URLSearchParams"),[vt,Ct,kt,Pt]=["ReadableStream","Request","Response","Headers"].map(T),Nt=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),j(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let c;for(r=0;r<i;r++)c=s[r],e.call(null,t[c],c,t)}}function ve(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const k=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ce=t=>!F(t)&&t!==k;function ae(){const{caseless:t}=Ce(this)&&this||{},e={},n=(r,o)=>{const s=t&&ve(e,o)||o;V(e[s])&&V(r)?e[s]=ae(e[s],r):V(r)?e[s]=ae({},r):j(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&L(arguments[r],n);return e}const jt=(t,e,n,{allOwnKeys:r}={})=>(L(e,(o,s)=>{n&&R(o)?t[s]=Re(o,n):t[s]=o},{allOwnKeys:r}),t),Ut=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Dt=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Ft=(t,e,n,r)=>{let o,s,i;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!r||r(i,t,e))&&!c[i]&&(e[i]=t[i],c[i]=!0);t=n!==!1&&ie(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Lt=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Bt=t=>{if(!t)return null;if(j(t))return t;let e=t.length;if(!xe(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},It=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ie(Uint8Array)),qt=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const o=r.value;e.call(t,o[0],o[1])}},Mt=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},zt=T("HTMLFormElement"),$t=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,r){return n.toUpperCase()+r}),ke=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Wt=T("RegExp"),Pe=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};L(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},Ht=t=>{Pe(t,(e,n)=>{if(R(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(R(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Vt=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return j(t)?r(t):r(String(t).split(e)),n},Jt=()=>{},Gt=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ce="abcdefghijklmnopqrstuvwxyz",Ne="0123456789",je={DIGIT:Ne,ALPHA:ce,ALPHA_DIGIT:ce+ce.toUpperCase()+Ne},Kt=(t=16,e=je.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Xt(t){return!!(t&&R(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Qt=t=>{const e=new Array(10),n=(r,o)=>{if(H(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=j(r)?[]:{};return L(r,(i,c)=>{const u=n(i,o+1);!F(u)&&(s[c]=u)}),e[o]=void 0,s}}return r};return n(t,0)},Yt=T("AsyncFunction"),Zt=t=>t&&(H(t)||R(t))&&R(t.then)&&R(t.catch),Ue=((t,e)=>t?setImmediate:e?((n,r)=>(k.addEventListener("message",({source:o,data:s})=>{o===k&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),k.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",R(k.postMessage)),en=typeof queueMicrotask<"u"?queueMicrotask.bind(k):typeof process<"u"&&process.nextTick||Ue,a={isArray:j,isArrayBuffer:Te,isBuffer:_t,isFormData:Tt,isArrayBufferView:bt,isString:yt,isNumber:xe,isBoolean:wt,isObject:H,isPlainObject:V,isReadableStream:vt,isRequest:Ct,isResponse:kt,isHeaders:Pt,isUndefined:F,isDate:St,isFile:Et,isBlob:Ot,isRegExp:Wt,isFunction:R,isStream:Rt,isURLSearchParams:xt,isTypedArray:It,isFileList:At,forEach:L,merge:ae,extend:jt,trim:Nt,stripBOM:Ut,inherits:Dt,toFlatObject:Ft,kindOf:$,kindOfTest:T,endsWith:Lt,toArray:Bt,forEachEntry:qt,matchAll:Mt,isHTMLForm:zt,hasOwnProperty:ke,hasOwnProp:ke,reduceDescriptors:Pe,freezeMethods:Ht,toObjectSet:Vt,toCamelCase:$t,noop:Jt,toFiniteNumber:Gt,findKey:ve,global:k,isContextDefined:Ce,ALPHABET:je,generateString:Kt,isSpecCompliantForm:Xt,toJSONObject:Qt,isAsyncFn:Yt,isThenable:Zt,setImmediate:Ue,asap:en};function g(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const De=g.prototype,Fe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Fe[t]={value:t}}),Object.defineProperties(g,Fe),Object.defineProperty(De,"isAxiosError",{value:!0}),g.from=(t,e,n,r,o,s)=>{const i=Object.create(De);return a.toFlatObject(t,i,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,t.message,e,n,r,o),i.cause=t,i.name=t.name,s&&Object.assign(i,s),i};const tn=null;function le(t){return a.isPlainObject(t)||a.isArray(t)}function Le(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function Be(t,e,n){return t?t.concat(e).map(function(r,o){return r=Le(r),!n&&o?"["+r+"]":r}).join(n?".":""):e}function nn(t){return a.isArray(t)&&!t.some(le)}const rn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function J(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,f){return!a.isUndefined(f[m])});const r=n.metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(a.isDate(m))return m.toISOString();if(!c&&a.isBlob(m))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(m)||a.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function l(m,f,h){let O=m;if(m&&!h&&typeof m=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),m=JSON.stringify(m);else if(a.isArray(m)&&nn(m)||(a.isFileList(m)||a.endsWith(f,"[]"))&&(O=a.toArray(m)))return f=Le(f),O.forEach(function(S,y){!(a.isUndefined(S)||S===null)&&e.append(i===!0?Be([f],y,s):i===null?f:f+"[]",u(S))}),!1}return le(m)?!0:(e.append(Be(h,f,s),u(m)),!1)}const d=[],p=Object.assign(rn,{defaultVisitor:l,convertValue:u,isVisitable:le});function _(m,f){if(!a.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),a.forEach(m,function(h,O){(!(a.isUndefined(h)||h===null)&&o.call(e,h,a.isString(O)?O.trim():O,f,p))===!0&&_(h,f?f.concat(O):[O])}),d.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return _(t),e}function Ie(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function ue(t,e){this._pairs=[],t&&J(t,this,e)}const qe=ue.prototype;qe.append=function(t,e){this._pairs.push([t,e])},qe.toString=function(t){const e=t?function(n){return t.call(this,n,Ie)}:Ie;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function on(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Me(t,e,n){if(!e)return t;const r=n&&n.encode||on;a.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(e,n):s=a.isURLSearchParams(e)?e.toString():new ue(e,n).toString(r),s){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class ze{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}}const $e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sn=typeof URLSearchParams<"u"?URLSearchParams:ue,an=typeof FormData<"u"?FormData:null,cn=typeof Blob<"u"?Blob:null,ln={isBrowser:!0,classes:{URLSearchParams:sn,FormData:an,Blob:cn},protocols:["http","https","file","blob","url","data"]},de=typeof window<"u"&&typeof document<"u",he=typeof navigator=="object"&&navigator||void 0,un=de&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),dn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hn=de&&window.location.href||"http://localhost",fn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:de,hasStandardBrowserEnv:un,hasStandardBrowserWebWorkerEnv:dn,navigator:he,origin:hn},Symbol.toStringTag,{value:"Module"})),E={...fn,...ln};function pn(t,e){return J(t,new E.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return E.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function mn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gn(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function We(t){function e(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),u=s>=n.length;return i=!i&&a.isArray(o)?o.length:i,u?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=gn(o[i])),!c)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(r,o)=>{e(mn(r),o,n,0)}),n}return null}function _n(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const B={transitional:$e,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r?JSON.stringify(We(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pn(t,this.formSerializer).toString();if((s=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return J(s?{"files[]":t}:t,i&&new i,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),_n(t)):t}],transformResponse:[function(t){const e=this.transitional||B.transitional,n=e&&e.forcedJSONParsing,r=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||r)){const o=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?g.from(s,g.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:E.classes.FormData,Blob:E.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{B.headers[t]={}});const bn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yn=t=>{const e={};let n,r,o;return t&&t.split(`
|
2
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&bn[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},He=Symbol("internals");function I(t){return t&&String(t).trim().toLowerCase()}function G(t){return t===!1||t==null?t:a.isArray(t)?t.map(G):String(t)}function wn(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Sn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function fe(t,e,n,r,o){if(a.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!a.isString(e)){if(a.isString(r))return e.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(e)}}function En(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function On(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,s,i){return this[r].call(this,e,o,s,i)},configurable:!0})})}class A{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(c,u,l){const d=I(u);if(!d)throw new Error("header name must be a non-empty string");const p=a.findKey(o,d);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(o[p||u]=G(c))}const i=(c,u)=>a.forEach(c,(l,d)=>s(l,d,u));if(a.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(a.isString(e)&&(e=e.trim())&&!Sn(e))i(yn(e),n);else if(a.isHeaders(e))for(const[c,u]of e.entries())s(u,c,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=I(e),e){const r=a.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return wn(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=I(e),e){const r=a.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(i){if(i=I(i),i){const c=a.findKey(r,i);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||fe(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=G(o),delete n[s];return}const c=e?En(s):String(s).trim();c!==s&&delete n[s],n[c]=G(o),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const n=(this[He]=this[He]={accessors:{}}).accessors,r=this.prototype;function o(s){const i=I(s);n[i]||(On(r,s),n[i]=!0)}return a.isArray(e)?e.forEach(o):o(e),this}}A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(A.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),a.freezeMethods(A);function pe(t,e){const n=this||B,r=e||n,o=A.from(r.headers);let s=r.data;return a.forEach(t,function(i){s=i.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Ve(t){return!!(t&&t.__CANCEL__)}function U(t,e,n){g.call(this,t??"canceled",g.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(U,g,{__CANCEL__:!0});function Je(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function An(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Rn(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),l=r[s];i||(i=u),n[o]=c,r[o]=u;let d=s,p=0;for(;d!==o;)p+=n[d++],d=d%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i<e)return;const _=l&&u-l;return _?Math.round(p*1e3/_):void 0}}function Tn(t,e){let n=0,r=1e3/e,o,s;const i=(c,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),t.apply(null,c)};return[(...c)=>{const u=Date.now(),l=u-n;l>=r?i(c,u):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},r-l)))},()=>o&&i(o)]}const K=(t,e,n=3)=>{let r=0;const o=Rn(50,250);return Tn(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,u=i-r,l=o(u),d=i<=c;r=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:u,rate:l||void 0,estimated:l&&c&&d?(c-i)/l:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(p)},n)},Ge=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ke=t=>(...e)=>a.asap(()=>t(...e)),xn=E.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,E.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(E.origin),E.navigator&&/(msie|trident)/i.test(E.navigator.userAgent)):()=>!0,vn=E.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const i=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Cn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function kn(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Xe(t,e){return t&&!Cn(e)?kn(t,e):e}const Qe=t=>t instanceof A?{...t}:t;function P(t,e){e=e||{};const n={};function r(l,d,p,_){return a.isPlainObject(l)&&a.isPlainObject(d)?a.merge.call({caseless:_},l,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function o(l,d,p,_){if(a.isUndefined(d)){if(!a.isUndefined(l))return r(void 0,l,p,_)}else return r(l,d,p,_)}function s(l,d){if(!a.isUndefined(d))return r(void 0,d)}function i(l,d){if(a.isUndefined(d)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function c(l,d,p){if(p in e)return r(l,d);if(p in t)return r(void 0,l)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,d,p)=>o(Qe(l),Qe(d),p,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(l){const d=u[l]||o,p=d(t[l],e[l],l);a.isUndefined(p)&&d!==c||(n[l]=p)}),n}const Ye=t=>{const e=P({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=e;e.headers=i=A.from(i),e.url=Me(Xe(e.baseURL,e.url),t.params,t.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(a.isFormData(n)){if(E.hasStandardBrowserEnv||E.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[l,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...d].join("; "))}}if(E.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(e)),r||r!==!1&&xn(e.url))){const l=o&&s&&vn.read(s);l&&i.set(o,l)}return e},Pn=typeof XMLHttpRequest<"u",Nn=Pn&&function(t){return new Promise(function(e,n){const r=Ye(t);let o=r.data;const s=A.from(r.headers).normalize();let{responseType:i,onUploadProgress:c,onDownloadProgress:u}=r,l,d,p,_,m;function f(){_&&_(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function O(){if(!h)return;const y=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),v={data:!i||i==="text"||i==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:y,config:t,request:h};Je(function(z){e(z),f()},function(z){n(z),f()},v),h=null}"onloadend"in h?h.onloadend=O:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(O)},h.onabort=function(){h&&(n(new g("Request aborted",g.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new g("Network Error",g.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let y=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const v=r.transitional||$e;r.timeoutErrorMessage&&(y=r.timeoutErrorMessage),n(new g(y,v.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,t,h)),h=null},o===void 0&&s.setContentType(null),"setRequestHeader"in h&&a.forEach(s.toJSON(),function(y,v){h.setRequestHeader(v,y)}),a.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),i&&i!=="json"&&(h.responseType=r.responseType),u&&([p,m]=K(u,!0),h.addEventListener("progress",p)),c&&h.upload&&([d,_]=K(c),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",_)),(r.cancelToken||r.signal)&&(l=y=>{h&&(n(!y||y.type?new U(null,t,h):y),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const S=An(r.url);if(S&&E.protocols.indexOf(S)===-1){n(new g("Unsupported protocol "+S+":",g.ERR_BAD_REQUEST,t));return}h.send(o||null)})},jn=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const s=function(l){if(!o){o=!0,c();const d=l instanceof Error?l:this.reason;r.abort(d instanceof g?d:new U(d instanceof Error?d.message:d))}};let i=e&&setTimeout(()=>{i=null,s(new g(`timeout ${e} of ms exceeded`,g.ETIMEDOUT))},e);const c=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),t=null)};t.forEach(l=>l.addEventListener("abort",s));const{signal:u}=r;return u.unsubscribe=()=>a.asap(c),u}},Un=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},Dn=async function*(t,e){for await(const n of Fn(t))yield*Un(n,e)},Fn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Ze=(t,e,n,r)=>{const o=Dn(t,e);let s=0,i,c=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:l,value:d}=await o.next();if(l){c(),u.close();return}let p=d.byteLength;if(n){let _=s+=p;n(_)}u.enqueue(new Uint8Array(d))}catch(l){throw c(l),l}},cancel(u){return c(u),o.return()}},{highWaterMark:2})},X=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",et=X&&typeof ReadableStream=="function",Ln=X&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),tt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Bn=et&&tt(()=>{let t=!1;const e=new Request(E.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),nt=64*1024,me=et&&tt(()=>a.isReadableStream(new Response("").body)),Q={stream:me&&(t=>t.body)};X&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Q[e]&&(Q[e]=a.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new g(`Response type '${e}' is not supported`,g.ERR_NOT_SUPPORT,r)})})})(new Response);const In=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(E.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await Ln(t)).byteLength},qn=async(t,e)=>a.toFiniteNumber(t.getContentLength())??In(e),Mn=X&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:u,responseType:l,headers:d,withCredentials:p="same-origin",fetchOptions:_}=Ye(t);l=l?(l+"").toLowerCase():"text";let m=jn([o,s&&s.toAbortSignal()],i),f;const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let O;try{if(u&&Bn&&n!=="get"&&n!=="head"&&(O=await qn(d,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),D;if(a.isFormData(r)&&(D=C.headers.get("content-type"))&&d.setContentType(D),C.body){const[Ae,oe]=Ge(O,K(Ke(u)));r=Ze(C.body,nt,Ae,oe)}}a.isString(p)||(p=p?"include":"omit");const S="credentials"in Request.prototype;f=new Request(e,{..._,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:S?p:void 0});let y=await fetch(f);const v=me&&(l==="stream"||l==="response");if(me&&(c||v&&h)){const C={};["status","statusText","headers"].forEach(ht=>{C[ht]=y[ht]});const D=a.toFiniteNumber(y.headers.get("content-length")),[Ae,oe]=c&&Ge(D,K(Ke(c),!0))||[];y=new Response(Ze(y.body,nt,Ae,()=>{oe&&oe(),h&&h()}),C)}l=l||"text";let z=await Q[a.findKey(Q,l)||"text"](y,t);return!v&&h&&h(),await new Promise((C,D)=>{Je(C,D,{data:z,headers:A.from(y.headers),status:y.status,statusText:y.statusText,config:t,request:f})})}catch(S){throw h&&h(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,t,f),{cause:S.cause||S}):g.from(S,S&&S.code,t,f)}}),ge={http:tn,xhr:Nn,fetch:Mn};a.forEach(ge,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const rt=t=>`- ${t}`,zn=t=>a.isFunction(t)||t===null||t===!1,ot={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];let i;if(r=n,!zn(n)&&(r=ge[(i=String(n)).toLowerCase()],r===void 0))throw new g(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+s]=r}if(!r){const s=Object.entries(o).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=e?s.length>1?`since :
|
4
|
+
`+s.map(rt).join(`
|
5
|
+
`):" "+rt(s[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ge};function _e(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new U(null,t)}function st(t){return _e(t),t.headers=A.from(t.headers),t.data=pe.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ot.getAdapter(t.adapter||B.adapter)(t).then(function(e){return _e(t),e.data=pe.call(t,t.transformResponse,e),e.headers=A.from(e.headers),e},function(e){return Ve(e)||(_e(t),e&&e.response&&(e.response.data=pe.call(t,t.transformResponse,e.response),e.response.headers=A.from(e.response.headers))),Promise.reject(e)})}const it="1.7.9",Y={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Y[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const at={};Y.transitional=function(t,e,n){function r(o,s){return"[Axios v"+it+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,i)=>{if(t===!1)throw new g(r(s," has been removed"+(e?" in "+e:"")),g.ERR_DEPRECATED);return e&&!at[s]&&(at[s]=!0,console.warn(r(s," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(o,s,i):!0}},Y.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function $n(t,e,n){if(typeof t!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],i=e[s];if(i){const c=t[s],u=c===void 0||i(c,s,t);if(u!==!0)throw new g("option "+s+" must be "+u,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+s,g.ERR_BAD_OPTION)}}const Z={assertOptions:$n,validators:Y},x=Z.validators;class N{constructor(e){this.defaults=e,this.interceptors={request:new ze,response:new ze}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
6
|
+
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=P(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Z.assertOptions(r,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:Z.assertOptions(o,{encode:x.function,serialize:x.function},!0)),Z.assertOptions(n,{baseUrl:x.spelling("baseURL"),withXsrfToken:x.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[n.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),n.headers=A.concat(i,s);const c=[];let u=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(u=u&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const l=[];this.interceptors.response.forEach(function(f){l.push(f.fulfilled,f.rejected)});let d,p=0,_;if(!u){const f=[st.bind(this),void 0];for(f.unshift.apply(f,c),f.push.apply(f,l),_=f.length,d=Promise.resolve(n);p<_;)d=d.then(f[p++],f[p++]);return d}_=c.length;let m=n;for(p=0;p<_;){const f=c[p++],h=c[p++];try{m=f(m)}catch(O){h.call(this,O);break}}try{d=st.call(this,m)}catch(f){return Promise.reject(f)}for(p=0,_=l.length;p<_;)d=d.then(l[p++],l[p++]);return d}getUri(e){e=P(this.defaults,e);const n=Xe(e.baseURL,e.url);return Me(n,e.params,e.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){N.prototype[t]=function(e,n){return this.request(P(n||{},{method:t,url:e,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function e(n){return function(r,o,s){return this.request(P(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}N.prototype[t]=e(),N.prototype[t+"Form"]=e(!0)});class be{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(o,s,i){r.reason||(r.reason=new U(o,s,i),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new be(function(n){e=n}),cancel:e}}}function Wn(t){return function(e){return t.apply(null,e)}}function Hn(t){return a.isObject(t)&&t.isAxiosError===!0}const ye={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ye).forEach(([t,e])=>{ye[e]=t});function ct(t){const e=new N(t),n=Re(N.prototype.request,e);return a.extend(n,N.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return ct(P(t,r))},n}const w=ct(B);w.Axios=N,w.CanceledError=U,w.CancelToken=be,w.isCancel=Ve,w.VERSION=it,w.toFormData=J,w.AxiosError=g,w.Cancel=w.CanceledError,w.all=function(t){return Promise.all(t)},w.spread=Wn,w.isAxiosError=Hn,w.mergeConfig=P,w.AxiosHeaders=A,w.formToJSON=t=>We(a.isHTMLForm(t)?new FormData(t):t),w.getAdapter=ot.getAdapter,w.HttpStatusCode=ye,w.default=w;const we=w.create({baseURL:location.origin,timeout:6e4,params:{}});we.interceptors.response.use(t=>t,t=>{var e,n,r,o,s,i,c,u,l,d,p;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(f){f&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let _=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(_+=`${t.response.statusText} `),(r=(n=t.response)==null?void 0:n.config)!=null&&r.data&&(_+=`${t.response.config.data} `),(s=(o=t.response)==null?void 0:o.data)!=null&&s.message?_+=`${t.response.data.message}`:(c=(i=t.response)==null?void 0:i.data)!=null&&c.exception?_+=`${t.response.data.exception}`:(d=(l=(u=t.response)==null?void 0:u.data)==null?void 0:l.error)!=null&&d.message?(t.response.data.error.class&&(_+=`${t.response.data.error.class} `),_+=`${t.response.data.error.message}`):_+=`${(p=t.response)==null?void 0:p.data}`;const{$cosmosNotify:m}=window;throw m&&m.serious({title:"Network error",body:_}),t}else throw t});const ee=async function(t,e,{data:n,params:r={},headers:o,noAuth:s=!1,noScope:i=!1,onUploadProgress:c=!1}={}){if(!s){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}o.Authorization=localStorage.openc3Token}return o.manual=!0,!i&&!r.scope&&(r.scope=window.openc3Scope),we({method:t,url:e,data:n,params:r,headers:o,onUploadProgress:c})},Se={Accept:"application/json"},lt={...Se,"Content-Type":"application/json"},or=se("n",{get:function(t,{params:e,headers:n=Se,noScope:r,noAuth:o,onUploadProgress:s}={}){return ee("get",t,{params:e,headers:n,noScope:r,noAuth:o,onUploadProgress:s})},put:function(t,{data:e,params:n,headers:r=lt,noScope:o,noAuth:s,onUploadProgress:i}={}){return ee("put",t,{data:e,params:n,headers:r,noScope:o,noAuth:s,onUploadProgress:i})},post:function(t,{data:e,params:n,headers:r=lt,noScope:o,noAuth:s,onUploadProgress:i}={}){return ee("post",t,{data:e,params:n,headers:r,noScope:o,noAuth:s,onUploadProgress:i})},delete:function(t,{params:e,headers:n=Se,noScope:r,noAuth:o,onUploadProgress:s}={}){return ee("delete",t,{params:e,headers:n,noScope:r,noAuth:o,onUploadProgress:s})}});var te={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},b={log(...t){this.enabled&&(t.push(Date.now()),te.logger.log("[ActionCable]",...t))}};const q=()=>new Date().getTime(),ne=t=>(q()-t)/1e3;class re{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=q(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),b.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=q(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),b.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=q()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,b.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=q(),b.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:n}=this.constructor,r=Math.pow(1+n,Math.min(this.reconnectAttempts,10)),o=(this.reconnectAttempts===0?1:n)*Math.random();return e*1e3*r*(1+o)}reconnectIfStale(){this.connectionIsStale()&&(b.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${ne(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?b.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${ne(this.disconnectedAt)} s`):(b.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return ne(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&ne(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(b.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}re.staleThreshold=6,re.reconnectionBackoffRate=.15;var ut={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:M,protocols:Ee}=ut,Vn=Ee.slice(0,Ee.length-1),dt=[].indexOf;class Oe{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new re(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return b.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...Ee,...this.consumer.subprotocols||[]];return b.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new te.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(b.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){b.log("Failed to reopen WebSocket",e)}finally{b.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return dt.call(Vn,this.getProtocol())>=0}isState(...e){return dt.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in te.WebSocket)if(te.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const n=this.events[e].bind(this);this.webSocket[`on${e}`]=n}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}Oe.reopenDelay=500,Oe.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:n,reason:r,reconnect:o,type:s}=JSON.parse(t.data);switch(s){case M.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case M.disconnect:return b.log(`Disconnecting. Reason: ${r}`),this.close({allowReconnect:o});case M.ping:return this.monitor.recordPing();case M.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case M.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open(){if(b.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return b.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(b.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){b.log("WebSocket onerror event")}};const Jn=function(t,e){if(e!=null)for(let n in e){const r=e[n];t[n]=r}return t};class Gn{constructor(e,n={},r){this.consumer=e,this.identifier=JSON.stringify(n),Jn(this,r)}perform(e,n={}){return n.action=e,this.send(n)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class Kn{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(b.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):b.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){b.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(n=>n!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{b.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class Xn{constructor(e){this.consumer=e,this.guarantor=new Kn(this),this.subscriptions=[]}create(e,n){const r=e,o=typeof r=="object"?r:{channel:r},s=new Gn(this.consumer,o,n);return this.add(s)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(n=>(this.forget(n),this.notify(n,"rejected"),n))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(n=>n!==e),e}findAll(e){return this.subscriptions.filter(n=>n.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...n){return this.subscriptions.map(r=>this.notify(r,e,...n))}notify(e,n,...r){let o;return typeof e=="string"?o=this.findAll(e):o=[e],o.map(s=>typeof s[n]=="function"?s[n](...r):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){b.log(`Subscription confirmed ${e}`),this.findAll(e).map(n=>this.guarantor.forget(n))}sendCommand(e,n){const{identifier:r}=e;return this.consumer.send({command:n,identifier:r})}}class Qn{constructor(e){this._url=e,this.subscriptions=new Xn(this),this.connection=new Oe(this),this.subprotocols=[]}get url(){return Yn(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function Yn(t){if(typeof t=="function"&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return t}function Zn(t=er("url")||ut.default_mount_path){return new Qn(t)}function er(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}re.staleThreshold=10;class tr{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,r={},o={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(s=>{if(s&&OpenC3Auth.setTokens(),this._cable==null){let i=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=Zn(i)}return this._cable.subscriptions.create({channel:e,...o},r)})}recordPing(){this._cable.connection.monitor.recordPing()}}se("s",tr);class nr{constructor(){mt(this,"id",1)}async exec(e,n,r={},o={},s=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,o.manual=!0,(await we.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...o},timeout:s})).data.result}catch(i){let c=new Error;throw i.response?(c.name=i.response.data.error.data.class,c.message=i.response.data.error.data.message,c.object=i.response.data.error):i.request?(c.name="Request error",c.message="Request error, no response received"):c.name="Unknown error",c}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(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}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...r){return this.exec("interface_cmd",[e,n,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,r){return this.exec("get_item",[e,n,r])}get_param(e,n,r){return this.exec("get_param",[e,n,r])}get_parameter(e,n,r){return this.exec("get_param",[e,n,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_tlm",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,n,r,o=30){const s=await this.exec("get_tlm_packet",[e,n],{type:r,stale_time:o});if(s!=null){let i=s.length,c=null;for(let u=0;u<i;u++)c=this.decode_openc3_type(s[u][1]),c!==null&&(s[u][1]=c)}return s}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,r=null){let o={stale_time:n};r!==null&&(o.cache_timeout=r);const s=await this.exec("get_tlm_values",[e],o,{},1e4);let i=s[0].length,c=null;for(let u=0;u<i;u++)c=this.decode_openc3_type(s[0][u]),c!==null&&(s[0][u]=c);return s}get_limits(e,n,r){return this.exec("get_limits",[e,n,r])}async tlm(e,n,r,o="CONVERTED"){let s=null;if(n===void 0)s=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))s=await this.exec("tlm",[e],{type:n});else{let c=new Error;throw c.name="TypeError",c.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,c}else s=await this.exec("tlm",[e,n,r],{type:o});let i=this.decode_openc3_type(s);return i!==null&&(s=i),s}async inject_tlm(e,n,r=null,o="CONVERTED"){data=await this.exec("inject_tlm",[e,n,r],{type:o})}set_tlm(e,n,r,o){return this.exec("set_tlm",[e,n,r],{type:o})}override_tlm(e,n,r,o){return this.exec("override_tlm",[e,n,r],{type:o})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,r,o){return this.exec("normalize_tlm",[e,n,r],{type:o})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_cmd",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,r,o="CONVERTED"){return this.exec("get_cmd_value",[e,n,r,o])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,r,o,s){let i=null;for(let c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i=this.encode_openc3_type(o[c]),i!==null&&(o[c]=i));return this.exec(e,[n,r,o],{},s)}get_cmd_hazardous(e,n,r,o={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},o):this._cmd("get_cmd_hazardous",e,n,r,o)}cmd(e,n,r,o={}){return n===void 0?this.exec("cmd",e,{},o):this._cmd("cmd",e,n,r,o)}cmd_no_range_check(e,n,r,o={}){return n===void 0?this.exec("cmd_no_range_check",e,{},o):this._cmd("cmd_no_range_check",e,n,r,o)}cmd_raw(e,n,r,o={}){return n===void 0?this.exec("cmd_raw",e,{},o):this._cmd("cmd_raw",e,n,r,o)}cmd_raw_no_range_check(e,n,r,o={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},o):this._cmd("cmd_raw_no_range_check",e,n,r,o)}cmd_no_hazardous_check(e,n,r,o={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},o):this._cmd("cmd_no_hazardous_check",e,n,r,o)}cmd_no_checks(e,n,r,o={}){return n===void 0?this.exec("cmd_no_checks",e,{},o):this._cmd("cmd_no_checks",e,n,r,o)}cmd_raw_no_hazardous_check(e,n,r,o={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},o):this._cmd("cmd_raw_no_hazardous_check",e,n,r,o)}cmd_raw_no_checks(e,n,r,o={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},o):this._cmd("cmd_raw_no_checks",e,n,r,o)}build_cmd(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}build_command(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,r){return this.exec("save_config",[e,n,r])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,r){return this.exec("enable_limits",[e,n,r])}disable_limits(e,n,r){return this.exec("disable_limits",[e,n,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("set_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r);return Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join("")}}}se("i",nr)}}});
|
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:
|
4
|
+
version: 6.0.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: 2024-
|
12
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: " This plugin adds the OpenC3 COSMOS CmdTlmServer Tool\n"
|
15
15
|
email:
|
@@ -23,36 +23,81 @@ files:
|
|
23
23
|
- README.md
|
24
24
|
- Rakefile
|
25
25
|
- plugin.txt
|
26
|
-
- tools/cmdtlmserver/
|
27
|
-
- tools/cmdtlmserver/
|
28
|
-
- tools/cmdtlmserver/
|
29
|
-
- tools/cmdtlmserver/
|
30
|
-
- tools/cmdtlmserver/
|
31
|
-
- tools/cmdtlmserver/
|
32
|
-
- tools/cmdtlmserver/
|
33
|
-
- tools/cmdtlmserver/
|
34
|
-
- tools/cmdtlmserver/
|
35
|
-
- tools/cmdtlmserver/
|
36
|
-
- tools/cmdtlmserver/
|
37
|
-
- tools/cmdtlmserver/
|
38
|
-
- tools/cmdtlmserver/
|
39
|
-
- tools/cmdtlmserver/
|
40
|
-
- tools/cmdtlmserver/
|
41
|
-
- tools/cmdtlmserver/
|
42
|
-
- tools/cmdtlmserver/
|
43
|
-
- tools/cmdtlmserver/
|
44
|
-
- tools/cmdtlmserver/
|
45
|
-
- tools/cmdtlmserver/
|
46
|
-
- tools/cmdtlmserver/
|
47
|
-
- tools/cmdtlmserver/
|
48
|
-
- tools/cmdtlmserver/
|
49
|
-
- tools/cmdtlmserver/
|
50
|
-
- tools/cmdtlmserver/
|
51
|
-
- tools/cmdtlmserver/
|
52
|
-
- tools/cmdtlmserver/
|
53
|
-
- tools/cmdtlmserver/
|
54
|
-
- tools/cmdtlmserver/
|
55
|
-
- tools/cmdtlmserver/
|
26
|
+
- tools/cmdtlmserver/ArrayWidget-By62tXtU-71c668c2b12f3647b2aa.js
|
27
|
+
- tools/cmdtlmserver/BarColumn-Dm3D1Lhp-0e936d8648b3ed447feb.js
|
28
|
+
- tools/cmdtlmserver/BlockWidget-CrT45ode-886b3faff84b37db6c51.js
|
29
|
+
- tools/cmdtlmserver/ButtonWidget-CKyBBv6m-3b8176a5b59e2fe6ede9.js
|
30
|
+
- tools/cmdtlmserver/CanvasWidget-PqkppHC7-fd8f2fe4b4158775777e.js
|
31
|
+
- tools/cmdtlmserver/CanvasdotWidget-BUbJgM2d-7f320c3f245428eff6e0.js
|
32
|
+
- tools/cmdtlmserver/CanvasimageWidget-DPVBY7mi-21593c9450e5c05595d2.js
|
33
|
+
- tools/cmdtlmserver/CanvasimagevalueWidget-GX37zzNc-35ce65c12b0ff93c1e64.js
|
34
|
+
- tools/cmdtlmserver/CanvaslabelWidget-P2_Y6Edw-1fc22fee78e455e0bacc.js
|
35
|
+
- tools/cmdtlmserver/CanvaslabelvalueWidget-Cuas1i9P-958866656e489e737d07.js
|
36
|
+
- tools/cmdtlmserver/CanvaslineWidget-BYOYgPya-d389d6419c193203d6b8.js
|
37
|
+
- tools/cmdtlmserver/CanvaslinevalueWidget-3cVJMFo7-2946dcc156558454a815.js
|
38
|
+
- tools/cmdtlmserver/CheckbuttonWidget-B3wgSMuB-2e200064cf109304de12.js
|
39
|
+
- tools/cmdtlmserver/CmdPacketsTab-b15d0514cdb75bd29bd8.js
|
40
|
+
- tools/cmdtlmserver/CmdTlmServer-18df2af9fea7fa1a5a7c.js
|
41
|
+
- tools/cmdtlmserver/ComboboxWidget-Dzr4Scvf-699c8eacd9a8687ee70d.js
|
42
|
+
- tools/cmdtlmserver/DateWidget-BWh76Ibb-d6f7da26ea2fd4cb72e8.js
|
43
|
+
- tools/cmdtlmserver/DetailsDialog-EWjtBjle-37b6940e1f2a2dead428.js
|
44
|
+
- tools/cmdtlmserver/DynamicWidget-m9EliUR2-62ab2ad533de794320d4.js
|
45
|
+
- tools/cmdtlmserver/FormatvalueWidget-Rk0_eeIm-50cdf441547b0cb8608d.js
|
46
|
+
- tools/cmdtlmserver/GraphWidget-LqekkNDr-da2fa45489caf0d4fad1.js
|
47
|
+
- tools/cmdtlmserver/HorizontalWidget-BcfJ24Zn-21157dc1940825a36df8.js
|
48
|
+
- tools/cmdtlmserver/HorizontalboxWidget-CQy1Hv9E-d2088459c65904a689d2.js
|
49
|
+
- tools/cmdtlmserver/HorizontallineWidget-BdlNB951-4dee66ec89d4aa3f5f07.js
|
50
|
+
- tools/cmdtlmserver/IframeWidget-BBaDrRLo-c6c36b42c6c6f9a2dfa3.js
|
51
|
+
- tools/cmdtlmserver/ImageLoader-CDLQopxJ-4c9cccf9c544ba381bd4.js
|
52
|
+
- tools/cmdtlmserver/ImageviewerWidget-BgO3Pq6I-49d5b6d7e95afdb924d9.js
|
53
|
+
- tools/cmdtlmserver/InterfacesTab-acffaa153abb0955b428.js
|
54
|
+
- tools/cmdtlmserver/LabelWidget-B_C6lKOE-21bc54b64ce81b8d5e91.js
|
55
|
+
- tools/cmdtlmserver/LabelledWidget-B_UGivhr-45bd4b27e27af75c76ce.js
|
56
|
+
- tools/cmdtlmserver/LabelprogressbarWidget-BJWCmsYC-a38332a26d43fbc7cb11.js
|
57
|
+
- tools/cmdtlmserver/LabelsparklineWidget-DILCIh3q-a123a563ebb202129724.js
|
58
|
+
- tools/cmdtlmserver/LabelvalueWidget-CCZd1NXE-e3c1d1b547bd294e08fc.js
|
59
|
+
- tools/cmdtlmserver/LabelvaluedescWidget-Bsllq8W6-c61edd74c658e4cbc152.js
|
60
|
+
- tools/cmdtlmserver/LabelvaluelimitsbarWidget-BV-cfaD--6fbc9f8ce13090936c15.js
|
61
|
+
- tools/cmdtlmserver/LabelvaluelimitscolumnWidget-DwA0eRBw-20f41ba3a09d3c059323.js
|
62
|
+
- tools/cmdtlmserver/LabelvaluerangebarWidget-3GDJz3dj-13a0899a53ecebdbdb8d.js
|
63
|
+
- tools/cmdtlmserver/Layout-klOVw-YN-a721899dc469c373afa9.js
|
64
|
+
- tools/cmdtlmserver/LedWidget-BAt02s0J-710e81df00d16611ca6c.js
|
65
|
+
- tools/cmdtlmserver/LimitsbarWidget-JJiyzZjb-b5becd869841fa1595ff.js
|
66
|
+
- tools/cmdtlmserver/LimitscolorWidget-CYzXKbYd-7e2a7414bebb0d967056.js
|
67
|
+
- tools/cmdtlmserver/LimitscolumnWidget-Cd76tBo7-6de0345076b09ddf4e33.js
|
68
|
+
- tools/cmdtlmserver/LinegraphWidget-DWRtO6Ej-cedf2afc896274387b0a.js
|
69
|
+
- tools/cmdtlmserver/MatrixbycolumnsWidget-cwsyjNV2-c35c7acd7f9bbe099adc.js
|
70
|
+
- tools/cmdtlmserver/ProgressbarWidget-CYDziFej-98afe46a60db5ef50bc2.js
|
71
|
+
- tools/cmdtlmserver/RadiobuttonWidget-U6jcQZoD-f8933c81d6f206fea4f9.js
|
72
|
+
- tools/cmdtlmserver/RadiogroupWidget-HTPJnsB0-10f8679497847aa5eedf.js
|
73
|
+
- tools/cmdtlmserver/RangebarWidget-DW0FJK6y-ca5c172b1f8d8b0bdd04.js
|
74
|
+
- tools/cmdtlmserver/RawDialog-7cfffbbe1160eb2dfa0f.js
|
75
|
+
- tools/cmdtlmserver/RollupWidget-B2qrx55f-9b4d46c83244d93b538e.js
|
76
|
+
- tools/cmdtlmserver/RoutersTab-e227a58650cef2f7cb45.js
|
77
|
+
- tools/cmdtlmserver/ScrollwindowWidget-CwIDxgO6-ea5bb31dc3cfde35e775.js
|
78
|
+
- tools/cmdtlmserver/SignalWidget-Bosa3AbW-d0ae775dd5c4743bd297.js
|
79
|
+
- tools/cmdtlmserver/SpacerWidget-DYAlt5mt-78b1595bcafcd837342e.js
|
80
|
+
- tools/cmdtlmserver/SparklineWidget-CDrVXOFV-2183c82cc253586cf77f.js
|
81
|
+
- tools/cmdtlmserver/StatusTab-e815b6f5b133af771d3c.js
|
82
|
+
- tools/cmdtlmserver/TabbookWidget-DDdlzCkv-ccba59d5746cd2b8788e.js
|
83
|
+
- tools/cmdtlmserver/TargetsTab-22e2db6d75a3e9456d69.js
|
84
|
+
- tools/cmdtlmserver/TextboxWidget-5euFelEq-eb2c48ecf9a4852448b3.js
|
85
|
+
- tools/cmdtlmserver/TextfieldWidget-BFripYeh-5f0267b7e9745eb772d6.js
|
86
|
+
- tools/cmdtlmserver/TimeWidget-BBSbsUYJ-41f6ac9de864b392c87e.js
|
87
|
+
- tools/cmdtlmserver/TitleWidget-p8cjo-Bs-ae7c644a01c9f5ffd68c.js
|
88
|
+
- tools/cmdtlmserver/TlmPacketsTab-d2f22dccdcd0109dc9fc.js
|
89
|
+
- tools/cmdtlmserver/Updater-3608194712b19b896303.js
|
90
|
+
- tools/cmdtlmserver/VWidget-Dmqf_jKM-2854e5bda271afc8bffe.js
|
91
|
+
- tools/cmdtlmserver/ValueWidget-CZh7JWwT-561515c3bc47da2968a1.js
|
92
|
+
- tools/cmdtlmserver/ValuelimitsbarWidget-DU7ybswC-bccfe404aabe243d72f4.js
|
93
|
+
- tools/cmdtlmserver/ValuelimitscolumnWidget-DMw-h5jM-1cfd35ce298999a0ff6a.js
|
94
|
+
- tools/cmdtlmserver/ValuerangebarWidget-DPpofDpA-d242d66cd64e9a78f881.js
|
95
|
+
- tools/cmdtlmserver/VerticalWidget-Ch7VAEmz-71645022feffa66a8825.js
|
96
|
+
- tools/cmdtlmserver/VerticalboxWidget-DYx-TFT4-5f9dfe83d76b0a3739bd.js
|
97
|
+
- tools/cmdtlmserver/Widget-orNSvnOh-c2189f557c1c3db5d0d5.js
|
98
|
+
- tools/cmdtlmserver/main-74390a4d748a97f336a8.js
|
99
|
+
- tools/cmdtlmserver/main.js
|
100
|
+
- tools/cmdtlmserver/services-6fab0d9d3d41ee3bbe0a.js
|
56
101
|
homepage: https://github.com/OpenC3/cosmos
|
57
102
|
licenses:
|
58
103
|
- AGPL-3.0-only
|
Binary file
|
@@ -1,4 +0,0 @@
|
|
1
|
-
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><main><h1>Your Microfrontend is not here</h1><p>The @openc3/cosmos-tool-cmdtlmserver microfrontend is running in "integrated" mode, since standalone-single-spa-webpack-plugin is disabled. This means that it does not work as a standalone application without changing configuration.</p><h2>How do I develop this microfrontend?</h2><p>To develop this microfrontend, try the following steps:</p><ol><li>Copy the following URL to your clipboard: <a target="_blank" rel="noopener" id="mf-url"></a></li><li>In a new browser tab, go to the your single-spa web app. This is where your "root config" is running. You do not have to run the root config locally if it is already running on a deployed environment - go to the deployed environment directly.</li><li>In the browser console, run <code>localStorage.setItem('devtools', true);</code> Refresh the page.</li><li>A yellowish rectangle should appear at the bottom right of your screen. Click on it. Find the name @openc3/cosmos-tool-cmdtlmserver and click on it. If it is not present, click on Add New Module.</li><li>Paste the URL above into the input that appears. Refresh the page.</li><li>Congrats, your local code is now being used!</li></ol><p></p><p>For further information about "integrated" mode, see the following links:</p><ul><li><a target="_blank" rel="noopener" href="https://single-spa.js.org/docs/recommended-setup#local-development">Local Development Overview</a></li><li><a target="_blank" rel="noopener" href="https://github.com/joeldenning/import-map-overrides">Import Map Overrides Documentation</a></li></ul><p></p><h2>If you prefer Standalone mode</h2><p>To run this microfrontend in "standalone" mode, the standalone-single-spa-webpack-plugin must not be disabled. In some cases, this is done by running <code>npm run start:standalone</code>. Alternatively, you can add <code>--env standalone</code> to your package.json start script if you are using webpack-config-single-spa.</p>If neither of those work for you, see more details about enabling standalone mode at <a target="_blank" rel="noopener" href="https://github.com/single-spa/standalone-single-spa-webpack-plugin">Standalone Plugin Documentation</a>.<p></p><script>const mfLink = document.getElementById('mf-url');
|
2
|
-
const fullSrc = new URL('/tools/cmdtlmserver//tools/cmdtlmserver/js/app.js', window.location.href);
|
3
|
-
mfLink.href = fullSrc;
|
4
|
-
mfLink.textContent = fullSrc;</script></main></head><body><div id="app"></div></body></html>
|
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[195],{4195:(n,e,l)=>{function t(){var n="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TlmPacketsTab.vue",e="50da0d76dc6340037a3236b5a291f8bc4b533635",l=new Function("return this")(),a="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TlmPacketsTab.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:1214}},4:{start:{line:1,column:420},end:{line:1,column:434}},5:{start:{line:4,column:202},end:{line:4,column:416}},6:{start:{line:4,column:314},end:{line:4,column:372}},7:{start:{line:4,column:472},end:{line:4,column:865}},8:{start:{line:4,column:671},end:{line:4,column:731}},9:{start:{line:4,column:920},end:{line:4,column:1208}},10:{start:{line:4,column:1130},end:{line:4,column:1158}},11:{start:{line:4,column:1185},end:{line:4,column:1204}},12:{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:404},end:{line:1,column:405}},loc:{start:{line:1,column:419},end:{line:1,column:435}},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:417}},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:453},end:{line:4,column:454}},loc:{start:{line:4,column:471},end:{line:4,column:866}},line:4},5:{name:"(anonymous_5)",decl:{start:{line:4,column:654},end:{line:4,column:655}},loc:{start:{line:4,column:670},end:{line:4,column:732}},line:4},6:{name:"(anonymous_6)",decl:{start:{line:4,column:908},end:{line:4,column:909}},loc:{start:{line:4,column:919},end:{line:4,column:1209}},line:4},7:{name:"(anonymous_7)",decl:{start:{line:4,column:1113},end:{line:4,column:1114}},loc:{start:{line:4,column:1129},end:{line:4,column:1159}},line:4},8:{name:"(anonymous_8)",decl:{start:{line:4,column:1168},end:{line:4,column:1169}},loc:{start:{line:4,column:1184},end:{line:4,column:1205}},line:4}},branchMap:{0:{loc:{start:{line:4,column:480},end:{line:4,column:548}},type:"cond-expr",locations:[{start:{line:4,column:513},end:{line:4,column:539}},{start:{line:4,column:540},end:{line:4,column:548}}],line:4},1:{loc:{start:{line:4,column:561},end:{line:4,column:864}},type:"cond-expr",locations:[{start:{line:4,column:593},end:{line:4,column:855}},{start:{line:4,column:856},end:{line:4,column:864}}],line:4}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"50da0d76dc6340037a3236b5a291f8bc4b533635"},o=l[a]||(l[a]={});o[n]&&o[n].hash===e||(o[n]=i);var c=o[n];return t=function(){return c},c}l.r(e),l.d(e,{default:()=>A}),t(),t().s[0]++;var a=function(){t().f[0]++;var n=(t().s[1]++,this),e=(t().s[2]++,n._self._c);return t().s[3]++,e("v-card",[e("v-card-title",[n._v("\n "+n._s(n.data.length)+" Telemetry Packets\n "),e("v-spacer"),n._v(" "),e("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:n.search,callback:function(e){t().f[1]++,t().s[4]++,n.search=e},expression:"search"}})],1),n._v(" "),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":"tlm-packets-table"},on:{"current-items":n.currentItems},scopedSlots:n._u([{key:"item.view_raw",fn:function({item:l}){return t().f[2]++,t().s[5]++,[e("v-btn",{attrs:{block:"",color:"primary",disabled:l.count<1},on:{click:function(e){return t().f[3]++,t().s[6]++,n.openViewRaw(l.target_name,l.packet_name)}}},[n._v("\n View Raw\n ")])]}},{key:"item.view_in_pkt_viewer",fn:function({item:l}){return t().f[4]++,t().s[7]++,["UNKNOWN"===l.target_name?(t().b[0][0]++,e("span",[n._v("N/A")])):(t().b[0][1]++,n._e()),n._v(" "),"UNKNOWN"!=l.target_name?(t().b[1][0]++,e("v-btn",{attrs:{block:"",color:"primary"},on:{click:function(e){return t().f[5]++,t().s[8]++,n.openPktViewer(l.target_name,l.packet_name)}}},[n._v("\n View In Packet Viewer\n "),e("v-icon",{attrs:{right:""}},[n._v(" mdi-open-in-new ")])],1)):(t().b[1][1]++,n._e())]}}])}),n._v(" "),n._l(n.rawDialogs,(function(l){return t().f[6]++,t().s[9]++,e("raw-dialog",{key:l.target_name+"_"+l.packet_name,attrs:{type:"Telemetry","target-name":l.target_name,"packet-name":l.packet_name,visible:!0,"z-index":l.zIndex},on:{close:function(e){return t().f[7]++,t().s[10]++,n.closeRawDialog(l)},focus:function(e){return t().f[8]++,t().s[11]++,n.focus(l)}}})}))],2)},i=(t().s[12]++,[]),o=l(8474),c=l(6328);function s(){var n="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TlmPacketsTab.vue",e="e256e94680806af814e3995bd427af2054aa8563",l=new Function("return this")(),t="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TlmPacketsTab.vue",statementMap:{0:{start:{line:15,column:4},end:{line:27,column:5}},1:{start:{line:30,column:4},end:{line:40,column:6}},2:{start:{line:31,column:6},end:{line:39,column:8}},3:{start:{line:32,column:8},end:{line:38,column:10}},4:{start:{line:33,column:10},end:{line:37,column:11}},5:{start:{line:35,column:14},end:{line:35,column:75}},6:{start:{line:44,column:6},end:{line:46,column:8}},7:{start:{line:45,column:8},end:{line:45,column:25}},8:{start:{line:47,column:14},end:{line:47,column:45}},9:{start:{line:48,column:6},end:{line:48,column:35}},10:{start:{line:51,column:6},end:{line:53,column:8}},11:{start:{line:52,column:8},end:{line:52,column:25}},12:{start:{line:54,column:6},end:{line:58,column:8}},13:{start:{line:61,column:14},end:{line:61,column:45}},14:{start:{line:62,column:6},end:{line:62,column:34}},15:{start:{line:65,column:6},end:{line:65,column:80}},16:{start:{line:68,column:6},end:{line:70,column:8}},17:{start:{line:69,column:8},end:{line:69,column:45}},18:{start:{line:73,column:6},end:{line:73,column:43}},19:{start:{line:73,column:37},end:{line:73,column:43}},20:{start:{line:74,column:6},end:{line:74,column:44}},21:{start:{line:74,column:38},end:{line:74,column:44}},22:{start:{line:75,column:6},end:{line:84,column:8}},23:{start:{line:76,column:8},end:{line:83,column:9}},24:{start:{line:76,column:21},end:{line:76,column:22}},25:{start:{line:77,column:22},end:{line:81,column:11}},26:{start:{line:79,column:14},end:{line:80,column:53}},27:{start:{line:82,column:10},end:{line:82,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:28,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:12},end:{line:41,column:3}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:30,column:37},end:{line:30,column:38}},loc:{start:{line:30,column:50},end:{line:40,column:5}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:31,column:18},end:{line:31,column:19}},loc:{start:{line:31,column:30},end:{line:39,column:7}},line:31},4:{name:"(anonymous_4)",decl:{start:{line:32,column:48},end:{line:32,column:49}},loc:{start:{line:32,column:59},end:{line:38,column:9}},line:32},5:{name:"(anonymous_5)",decl:{start:{line:34,column:22},end:{line:34,column:23}},loc:{start:{line:34,column:34},end:{line:36,column:13}},line:34},6:{name:"(anonymous_6)",decl:{start:{line:43,column:4},end:{line:43,column:5}},loc:{start:{line:43,column:18},end:{line:49,column:5}},line:43},7:{name:"(anonymous_7)",decl:{start:{line:44,column:26},end:{line:44,column:27}},loc:{start:{line:44,column:38},end:{line:46,column:7}},line:44},8:{name:"(anonymous_8)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:42},end:{line:59,column:5}},line:50},9:{name:"(anonymous_9)",decl:{start:{line:51,column:26},end:{line:51,column:27}},loc:{start:{line:51,column:38},end:{line:53,column:7}},line:51},10:{name:"(anonymous_10)",decl:{start:{line:60,column:4},end:{line:60,column:5}},loc:{start:{line:60,column:27},end:{line:63,column:5}},line:60},11:{name:"(anonymous_11)",decl:{start:{line:64,column:4},end:{line:64,column:5}},loc:{start:{line:64,column:44},end:{line:66,column:5}},line:64},12:{name:"(anonymous_12)",decl:{start:{line:67,column:4},end:{line:67,column:5}},loc:{start:{line:67,column:24},end:{line:71,column:5}},line:67},13:{name:"(anonymous_13)",decl:{start:{line:68,column:31},end:{line:68,column:32}},loc:{start:{line:68,column:38},end:{line:70,column:7}},line:68},14:{name:"(anonymous_14)",decl:{start:{line:72,column:4},end:{line:72,column:5}},loc:{start:{line:72,column:13},end:{line:85,column:5}},line:72},15:{name:"(anonymous_15)",decl:{start:{line:75,column:47},end:{line:75,column:48}},loc:{start:{line:75,column:59},end:{line:84,column:7}},line:75},16:{name:"(anonymous_16)",decl:{start:{line:78,column:12},end:{line:78,column:13}},loc:{start:{line:79,column:14},end:{line:80,column:53}},line:79}},branchMap:{0:{loc:{start:{line:73,column:6},end:{line:73,column:43}},type:"if",locations:[{start:{line:73,column:6},end:{line:73,column:43}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:73},1:{loc:{start:{line:74,column:6},end:{line:74,column:44}},type:"if",locations:[{start:{line:74,column:6},end:{line:74,column:44}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:74},2:{loc:{start:{line:79,column:14},end:{line:80,column:53}},type:"binary-expr",locations:[{start:{line:79,column:14},end:{line:79,column:53}},{start:{line:80,column:14},end:{line:80,column:53}}],line:79}},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,24:0,25:0,26:0,27: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,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["TlmPacketsTab.vue"],names:[],mappings:";AA4FA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"TlmPacketsTab.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 2023, 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 }} Telemetry Packets\n <v-spacer />\n <v-text-field\n v-model="search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n class="search"\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="tlm-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_pkt_viewer="{ item }">\n <span v-if="item.target_name === \'UNKNOWN\'">N/A</span>\n <v-btn\n v-if="item.target_name != \'UNKNOWN\'"\n block\n color="primary"\n @click="openPktViewer(item.target_name, item.packet_name)"\n >\n View In Packet Viewer\n <v-icon right> mdi-open-in-new </v-icon>\n </v-btn>\n </template>\n </v-data-table>\n <raw-dialog\n v-for="d in rawDialogs"\n :key="d.target_name + \'_\' + d.packet_name"\n type="Telemetry"\n :target-name="d.target_name"\n :packet-name="d.packet_name"\n :visible="true"\n :z-index="d.zIndex"\n @close="closeRawDialog(d)"\n @focus="focus(d)"\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 Packet Viewer\', value: \'view_in_pkt_viewer\' },\n ],\n rawDialogs: [],\n visible: null,\n }\n },\n created() {\n this.api.get_target_names().then((targets) => {\n targets.map((target) => {\n this.api.get_all_tlm_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 focus(dialog) {\n this.rawDialogs.map((dialog) => {\n dialog.zIndex = 1\n })\n let i = this.rawDialogs.indexOf(dialog)\n this.rawDialogs[i].zIndex = 2\n },\n openViewRaw(target_name, packet_name) {\n this.rawDialogs.map((dialog) => {\n dialog.zIndex = 1\n })\n this.rawDialogs = this.rawDialogs.concat({\n target_name: target_name,\n packet_name: packet_name,\n zIndex: 2,\n })\n },\n closeRawDialog(dialog) {\n let i = this.rawDialogs.indexOf(dialog)\n this.rawDialogs.splice(i, 1)\n },\n openPktViewer(target_name, packet_name) {\n window.open(`/tools/packetviewer/${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_tlm_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:"e256e94680806af814e3995bd427af2054aa8563"},i=l[t]||(l[t]={});i[n]&&i[n].hash===e||(i[n]=a);var o=i[n];return s=function(){return o},o}s();const m={components:{RawDialog:c.A},mixins:[o.A],props:{tabId:Number,curTab:Number},data(){return s().f[0]++,s().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 Packet Viewer",value:"view_in_pkt_viewer"}],rawDialogs:[],visible:null}},created(){s().f[1]++,s().s[1]++,this.api.get_target_names().then((n=>{s().f[2]++,s().s[2]++,n.map((n=>{s().f[3]++,s().s[3]++,this.api.get_all_tlm_names(n).then((e=>{s().f[4]++,s().s[4]++,this.data=this.data.concat(e.map((e=>(s().f[5]++,s().s[5]++,{target_name:n,packet_name:e,count:0}))))}))}))}))},methods:{focus(n){s().f[6]++,s().s[6]++,this.rawDialogs.map((n=>{s().f[7]++,s().s[7]++,n.zIndex=1}));let e=(s().s[8]++,this.rawDialogs.indexOf(n));s().s[9]++,this.rawDialogs[e].zIndex=2},openViewRaw(n,e){s().f[8]++,s().s[10]++,this.rawDialogs.map((n=>{s().f[9]++,s().s[11]++,n.zIndex=1})),s().s[12]++,this.rawDialogs=this.rawDialogs.concat({target_name:n,packet_name:e,zIndex:2})},closeRawDialog(n){s().f[10]++;let e=(s().s[13]++,this.rawDialogs.indexOf(n));s().s[14]++,this.rawDialogs.splice(e,1)},openPktViewer(n,e){s().f[11]++,s().s[15]++,window.open(`/tools/packetviewer/${n}/${e}`,"_blank")},currentItems(n){s().f[12]++,s().s[16]++,this.visible=n.map((n=>(s().f[13]++,s().s[17]++,[n.target_name,n.packet_name])))},update(){return s().f[14]++,s().s[18]++,this.tabId!=this.curTab?(s().b[0][0]++,void s().s[19]++):(s().b[0][1]++,s().s[20]++,null===this.currentItems?(s().b[1][0]++,void s().s[21]++):(s().b[1][1]++,s().s[22]++,void this.api.get_tlm_cnts(this.visible).then((n=>{s().f[15]++,s().s[23]++;for(let e=(s().s[24]++,0);e<n.length;e++){let l=(s().s[25]++,this.data.findIndex((n=>(s().f[16]++,s().s[26]++,s().b[2][0]++,n.target_name===this.visible[e][0]&&(s().b[2][1]++,n.packet_name===this.visible[e][1])))));s().s[27]++,this.data[l].count=n[e]}}))))}}},r=m;var u=l(2401),d=(0,u.A)(r,a,i,!1,null,null,null);const A=d.exports}}]);
|
2
|
-
//# sourceMappingURL=195.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"js/195.js","mappings":"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","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/TlmPacketsTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TlmPacketsTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/TlmPacketsTab.vue?3a70","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/TlmPacketsTab.vue?4c57"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-card',[_c('v-card-title',[_vm._v(\"\\n \"+_vm._s(_vm.data.length)+\" Telemetry Packets\\n \"),_c('v-spacer'),_vm._v(\" \"),_c('v-text-field',{staticClass:\"search\",attrs:{\"label\":\"Search\",\"prepend-inner-icon\":\"mdi-magnify\",\"clearable\":\"\",\"outlined\":\"\",\"dense\":\"\",\"single-line\":\"\",\"hide-details\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_vm._v(\" \"),_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\":\"tlm-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(\"\\n View Raw\\n \")])]}},{key:\"item.view_in_pkt_viewer\",fn:function({ item }){return [(item.target_name === 'UNKNOWN')?_c('span',[_vm._v(\"N/A\")]):_vm._e(),_vm._v(\" \"),(item.target_name != 'UNKNOWN')?_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.openPktViewer(item.target_name, item.packet_name)}}},[_vm._v(\"\\n View In Packet Viewer\\n \"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-open-in-new \")])],1):_vm._e()]}}])}),_vm._v(\" \"),_vm._l((_vm.rawDialogs),function(d){return _c('raw-dialog',{key:d.target_name + '_' + d.packet_name,attrs:{\"type\":\"Telemetry\",\"target-name\":d.target_name,\"packet-name\":d.packet_name,\"visible\":true,\"z-index\":d.zIndex},on:{\"close\":function($event){return _vm.closeRawDialog(d)},\"focus\":function($event){return _vm.focus(d)}}})})],2)\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 2023, 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 }} Telemetry Packets\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\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=\"tlm-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_pkt_viewer=\"{ item }\">\n <span v-if=\"item.target_name === 'UNKNOWN'\">N/A</span>\n <v-btn\n v-if=\"item.target_name != 'UNKNOWN'\"\n block\n color=\"primary\"\n @click=\"openPktViewer(item.target_name, item.packet_name)\"\n >\n View In Packet Viewer\n <v-icon right> mdi-open-in-new </v-icon>\n </v-btn>\n </template>\n </v-data-table>\n <raw-dialog\n v-for=\"d in rawDialogs\"\n :key=\"d.target_name + '_' + d.packet_name\"\n type=\"Telemetry\"\n :target-name=\"d.target_name\"\n :packet-name=\"d.packet_name\"\n :visible=\"true\"\n :z-index=\"d.zIndex\"\n @close=\"closeRawDialog(d)\"\n @focus=\"focus(d)\"\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 Packet Viewer', value: 'view_in_pkt_viewer' },\n ],\n rawDialogs: [],\n visible: null,\n }\n },\n created() {\n this.api.get_target_names().then((targets) => {\n targets.map((target) => {\n this.api.get_all_tlm_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 focus(dialog) {\n this.rawDialogs.map((dialog) => {\n dialog.zIndex = 1\n })\n let i = this.rawDialogs.indexOf(dialog)\n this.rawDialogs[i].zIndex = 2\n },\n openViewRaw(target_name, packet_name) {\n this.rawDialogs.map((dialog) => {\n dialog.zIndex = 1\n })\n this.rawDialogs = this.rawDialogs.concat({\n target_name: target_name,\n packet_name: packet_name,\n zIndex: 2,\n })\n },\n closeRawDialog(dialog) {\n let i = this.rawDialogs.indexOf(dialog)\n this.rawDialogs.splice(i, 1)\n },\n openPktViewer(target_name, packet_name) {\n window.open(`/tools/packetviewer/${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_tlm_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!./TlmPacketsTab.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!./TlmPacketsTab.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TlmPacketsTab.vue?vue&type=template&id=57e09e14\"\nimport script from \"./TlmPacketsTab.vue?vue&type=script&lang=js\"\nexport * from \"./TlmPacketsTab.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_1olbwcttzg","actualCoverage","s","render","f","_vm","this","_c","_self","_v","_s","data","length","staticClass","attrs","model","value","search","callback","$$v","expression","headers","itemsPerPageOptions","showFirstLastPage","on","currentItems","scopedSlots","_u","key","fn","item","count","$event","openViewRaw","target_name","packet_name","b","_e","openPktViewer","_l","rawDialogs","d","zIndex","closeRawDialog","focus","staticRenderFns","components","RawDialog","mixins","Updater","props","tabId","Number","curTab","text","visible","created","api","get_target_names","then","targets","map","target","get_all_tlm_names","names","concat","packet","methods","dialog","i","indexOf","splice","window","open","event","update","get_tlm_cnts","counts","index","findIndex","component"],"sourceRoot":""}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[272],{272:(e,t,o)=>{o.r(t),o.d(t,{default:()=>u});var r=function(){var e=this,t=e._self._c;return t("v-card",[t("v-card-title",[e._v("404 Not Found Error")]),e._v(" "),t("v-card-text",[e._v("The requested URL "),t("code",[e._v(e._s(e.$route.fullPath))]),e._v(" was not\n routable.")])],1)},l=[],s=o(2401),c={},_=(0,s.A)(c,r,l,!1,null,null,null);const u=_.exports}}]);
|
2
|
-
//# sourceMappingURL=272.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"js/272.js","mappings":"sLAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACA,EAAG,eAAe,CAACF,EAAII,GAAG,yBAAyBJ,EAAII,GAAG,KAAKF,EAAG,cAAc,CAACF,EAAII,GAAG,sBAAsBF,EAAG,OAAO,CAACF,EAAII,GAAGJ,EAAIK,GAAGL,EAAIM,OAAOC,aAAaP,EAAII,GAAG,8BAA8B,EACpR,EACII,EAAkB,G,UCDlBC,EAAS,CAAC,EAKVC,GAAY,OACdD,EACAV,EACAS,GACA,EACA,KACA,KACA,MAIF,QAAeE,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/components/NotFound.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/components/NotFound.vue?4849"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-card',[_c('v-card-title',[_vm._v(\"404 Not Found Error\")]),_vm._v(\" \"),_c('v-card-text',[_vm._v(\"The requested URL \"),_c('code',[_vm._v(_vm._s(_vm.$route.fullPath))]),_vm._v(\" was not\\n routable.\")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./NotFound.vue?vue&type=template&id=163f57b0\"\nvar script = {}\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":["render","_vm","this","_c","_self","_v","_s","$route","fullPath","staticRenderFns","script","component"],"sourceRoot":""}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[275],{8474:(n,e,l)=>{l.d(e,{A:()=>c});var t=l(4364);function o(){var n="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/Updater.js",e="4a33e65af05f7d08e216a604150e8920749ac334",l=new Function("return this")(),t="__coverage__",c={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=l[t]||(l[t]={});i[n]&&i[n].hash===e||(i[n]=c);var s=i[n];return o=function(){return s},s}o();const c={props:{refreshInterval:{default:1e3}},data(){return o().f[0]++,o().s[0]++,{updater:null,api:null}},created(){o().f[1]++,o().s[1]++,this.api=new t.x},mounted(){o().f[2]++,o().s[2]++,this.changeUpdater()},beforeDestroy(){o().f[3]++,o().s[3]++,null!=this.updater?(o().b[0][0]++,o().s[4]++,clearInterval(this.updater),o().s[5]++,this.updater=null):o().b[0][1]++},watch:{refreshInterval:function(n,e){o().f[4]++,o().s[6]++,this.changeUpdater()}},methods:{changeUpdater(){o().f[5]++,o().s[7]++,null!=this.updater?(o().b[1][0]++,o().s[8]++,clearInterval(this.updater),o().s[9]++,this.updater=null):o().b[1][1]++,o().s[10]++,this.updater=setInterval((()=>{o().f[6]++,o().s[11]++,this.update()}),this.refreshInterval)}}}},4275:(n,e,l)=>{function t(){var n="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/RoutersTab.vue",e="6ad324c9d22d1e83c30b34bd340202a7fc415766",l=new Function("return this")(),o="__coverage__",c={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/RoutersTab.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,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:1,column:1152}},4:{start:{line:1,column:410},end:{line:1,column:424}},5:{start:{line:1,column:780},end:{line:1,column:991}},6:{start:{line:1,column:897},end:{line:1,column:931}},7:{start:{line:1,column:1038},end:{line:1,column:1142}},8:{start:{line:3,column:22},end:{line:3,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:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:394},end:{line:1,column:395}},loc:{start:{line:1,column:409},end:{line:1,column:425}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:761},end:{line:1,column:762}},loc:{start:{line:1,column:779},end:{line:1,column:992}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:880},end:{line:1,column:881}},loc:{start:{line:1,column:896},end:{line:1,column:932}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1019},end:{line:1,column:1020}},loc:{start:{line:1,column:1037},end:{line:1,column:1143}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6ad324c9d22d1e83c30b34bd340202a7fc415766"},i=l[o]||(l[o]={});i[n]&&i[n].hash===e||(i[n]=c);var s=i[n];return t=function(){return s},s}l.r(e),l.d(e,{default:()=>A}),t(),t().s[0]++;var o=function(){t().f[0]++;var n=(t().s[1]++,this),e=(t().s[2]++,n._self._c);return t().s[3]++,e("v-card",[e("v-card-title",[n._v("\n "+n._s(n.data.length)+" Routers\n "),e("v-spacer"),n._v(" "),e("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:n.search,callback:function(e){t().f[1]++,t().s[4]++,n.search=e},expression:"search"}})],1),n._v(" "),e("v-data-table",{attrs:{headers:n.headers,items:n.data,search:n.search,"custom-sort":n.sortTable,"items-per-page":10,"footer-props":{itemsPerPageOptions:[10,20,-1]},"calculate-widths":"","multi-sort":"","data-test":"routers-table"},scopedSlots:n._u([{key:"item.connect",fn:function({item:l}){return t().f[2]++,t().s[5]++,[e("v-btn",{attrs:{block:"",color:"primary",disabled:n.buttonsDisabled},on:{click:function(e){return t().f[3]++,t().s[6]++,n.connectDisconnect(l)}}},[n._v("\n "+n._s(l.connect)+"\n ")])]}},{key:"item.connected",fn:function({item:l}){return t().f[4]++,t().s[7]++,[e("span",{class:l.connectedClass},[n._v("\n "+n._s(l.connected)+"\n ")])]}}])})],1)},c=(t().s[8]++,[]),i=(l(9375),l(8474));function s(){var n="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/RoutersTab.vue",e="22ed4b012b72d48b814228e74291f10760f13659",l=new Function("return this")(),t="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/RoutersTab.vue",statementMap:{0:{start:{line:11,column:4},end:{line:32,column:5}},1:{start:{line:37,column:6},end:{line:84,column:8}},2:{start:{line:38,column:8},end:{line:83,column:9}},3:{start:{line:38,column:21},end:{line:38,column:22}},4:{start:{line:39,column:23},end:{line:39,column:31}},5:{start:{line:40,column:21},end:{line:40,column:30}},6:{start:{line:42,column:10},end:{line:82,column:11}},7:{start:{line:44,column:12},end:{line:46,column:13}},8:{start:{line:45,column:14},end:{line:45,column:22}},9:{start:{line:47,column:12},end:{line:59,column:13}},10:{start:{line:48,column:14},end:{line:52,column:15}},11:{start:{line:49,column:16},end:{line:49,column:25}},12:{start:{line:51,column:16},end:{line:51,column:24}},13:{start:{line:54,column:14},end:{line:58,column:15}},14:{start:{line:55,column:16},end:{line:55,column:24}},15:{start:{line:57,column:16},end:{line:57,column:25}},16:{start:{line:60,column:17},end:{line:82,column:11}},17:{start:{line:62,column:12},end:{line:64,column:13}},18:{start:{line:63,column:14},end:{line:63,column:22}},19:{start:{line:65,column:12},end:{line:70,column:13}},20:{start:{line:67,column:14},end:{line:67,column:55}},21:{start:{line:69,column:14},end:{line:69,column:55}},22:{start:{line:73,column:12},end:{line:75,column:13}},23:{start:{line:74,column:14},end:{line:74,column:22}},24:{start:{line:76,column:12},end:{line:81,column:13}},25:{start:{line:78,column:14},end:{line:78,column:42}},26:{start:{line:80,column:14},end:{line:80,column:42}},27:{start:{line:85,column:6},end:{line:85,column:18}},28:{start:{line:88,column:6},end:{line:88,column:33}},29:{start:{line:89,column:6},end:{line:93,column:7}},30:{start:{line:90,column:8},end:{line:90,column:42}},31:{start:{line:92,column:8},end:{line:92,column:45}},32:{start:{line:96,column:6},end:{line:96,column:43}},33:{start:{line:96,column:37},end:{line:96,column:43}},34:{start:{line:97,column:6},end:{line:127,column:8}},35:{start:{line:98,column:8},end:{line:98,column:22}},36:{start:{line:99,column:8},end:{line:125,column:9}},37:{start:{line:100,column:24},end:{line:100,column:28}},38:{start:{line:101,column:31},end:{line:101,column:35}},39:{start:{line:102,column:10},end:{line:111,column:11}},40:{start:{line:103,column:12},end:{line:103,column:31}},41:{start:{line:104,column:12},end:{line:104,column:43}},42:{start:{line:105,column:17},end:{line:111,column:11}},43:{start:{line:106,column:12},end:{line:106,column:34}},44:{start:{line:107,column:12},end:{line:107,column:43}},45:{start:{line:109,column:12},end:{line:109,column:30}},46:{start:{line:110,column:12},end:{line:110,column:41}},47:{start:{line:112,column:10},end:{line:124,column:12}},48:{start:{line:126,column:8},end:{line:126,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:33,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:36,column:4},end:{line:36,column:5}},loc:{start:{line:36,column:36},end:{line:86,column:5}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:37,column:17},end:{line:37,column:18}},loc:{start:{line:37,column:27},end:{line:84,column:7}},line:37},3:{name:"(anonymous_3)",decl:{start:{line:87,column:4},end:{line:87,column:5}},loc:{start:{line:87,column:28},end:{line:94,column:5}},line:87},4:{name:"(anonymous_4)",decl:{start:{line:95,column:4},end:{line:95,column:5}},loc:{start:{line:95,column:13},end:{line:128,column:5}},line:95},5:{name:"(anonymous_5)",decl:{start:{line:97,column:42},end:{line:97,column:43}},loc:{start:{line:97,column:52},end:{line:127,column:7}},line:97}},branchMap:{0:{loc:{start:{line:42,column:10},end:{line:82,column:11}},type:"if",locations:[{start:{line:42,column:10},end:{line:82,column:11}},{start:{line:60,column:17},end:{line:82,column:11}}],line:42},1:{loc:{start:{line:44,column:12},end:{line:46,column:13}},type:"if",locations:[{start:{line:44,column:12},end:{line:46,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},2:{loc:{start:{line:47,column:12},end:{line:59,column:13}},type:"if",locations:[{start:{line:47,column:12},end:{line:59,column:13}},{start:{line:53,column:19},end:{line:59,column:13}}],line:47},3:{loc:{start:{line:48,column:14},end:{line:52,column:15}},type:"if",locations:[{start:{line:48,column:14},end:{line:52,column:15}},{start:{line:50,column:21},end:{line:52,column:15}}],line:48},4:{loc:{start:{line:54,column:14},end:{line:58,column:15}},type:"if",locations:[{start:{line:54,column:14},end:{line:58,column:15}},{start:{line:56,column:21},end:{line:58,column:15}}],line:54},5:{loc:{start:{line:60,column:17},end:{line:82,column:11}},type:"if",locations:[{start:{line:60,column:17},end:{line:82,column:11}},{start:{line:71,column:17},end:{line:82,column:11}}],line:60},6:{loc:{start:{line:62,column:12},end:{line:64,column:13}},type:"if",locations:[{start:{line:62,column:12},end:{line:64,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:62},7:{loc:{start:{line:65,column:12},end:{line:70,column:13}},type:"if",locations:[{start:{line:65,column:12},end:{line:70,column:13}},{start:{line:68,column:19},end:{line:70,column:13}}],line:65},8:{loc:{start:{line:73,column:12},end:{line:75,column:13}},type:"if",locations:[{start:{line:73,column:12},end:{line:75,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:73},9:{loc:{start:{line:76,column:12},end:{line:81,column:13}},type:"if",locations:[{start:{line:76,column:12},end:{line:81,column:13}},{start:{line:79,column:19},end:{line:81,column:13}}],line:76},10:{loc:{start:{line:89,column:6},end:{line:93,column:7}},type:"if",locations:[{start:{line:89,column:6},end:{line:93,column:7}},{start:{line:91,column:13},end:{line:93,column:7}}],line:89},11:{loc:{start:{line:96,column:6},end:{line:96,column:43}},type:"if",locations:[{start:{line:96,column:6},end:{line:96,column:43}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:96},12:{loc:{start:{line:102,column:10},end:{line:111,column:11}},type:"if",locations:[{start:{line:102,column:10},end:{line:111,column:11}},{start:{line:105,column:17},end:{line:111,column:11}}],line:102},13:{loc:{start:{line:105,column:17},end:{line:111,column:11}},type:"if",locations:[{start:{line:105,column:17},end:{line:111,column:11}},{start:{line:108,column:17},end:{line:111,column:11}}],line:105}},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,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0]},inputSourceMap:{version:3,sources:["RoutersTab.vue"],names:[],mappings:";AAsEA;;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"RoutersTab.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 }} Routers\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"data\"\n :search=\"search\"\n :custom-sort=\"sortTable\"\n :items-per-page=\"10\"\n :footer-props=\"{ itemsPerPageOptions: [10, 20, -1] }\"\n calculate-widths\n multi-sort\n data-test=\"routers-table\"\n >\n <template v-slot:item.connect=\"{ item }\">\n <v-btn\n block\n color=\"primary\"\n :disabled=\"buttonsDisabled\"\n @click=\"connectDisconnect(item)\"\n >\n {{ item.connect }}\n </v-btn>\n </template>\n <template v-slot:item.connected=\"{ item }\">\n <span :class=\"item.connectedClass\">\n {{ item.connected }}\n </span>\n </template>\n </v-data-table>\n </v-card>\n</template>\n\n<script>\nimport Updater from './Updater'\n\nexport default {\n mixins: [Updater],\n props: {\n tabId: Number,\n curTab: Number,\n },\n data() {\n return {\n search: '',\n data: [],\n buttonsDisabled: false,\n headers: [\n { text: 'Name', value: 'name' },\n {\n text: 'Action',\n value: 'connect',\n sortable: false,\n filterable: false,\n },\n { text: 'Connected', value: 'connected' },\n { text: 'Clients', value: 'clients' },\n { text: 'Tx Q size', value: 'tx_q_size' },\n { text: 'Rx Q size', value: 'rx_q_size' },\n { text: 'Tx bytes', value: 'tx_bytes' },\n { text: 'Rx bytes', value: 'rx_bytes' },\n { text: 'Cmd pkts', value: 'cmd_pkts' },\n { text: 'Tlm pkts', value: 'tlm_pkts' },\n ],\n }\n },\n methods: {\n // Custom sort algorithm to allow the connected column to be sorted by CONNECTED first\n sortTable(items, index, isDesc) {\n items.sort((a, b) => {\n for (let i = 0; i < index.length; i++) {\n let column = index[i]\n let desc = isDesc[i]\n\n if (column === 'connected') {\n // Items are the same so continue to let subsequent column sorts apply\n if (a[column] === b[column]) {\n continue\n }\n if (!desc) {\n if (a[column] === 'CONNECTED') {\n return -1\n } else {\n return 1\n }\n } else {\n if (a[column] === 'CONNECTED') {\n return 1\n } else {\n return -1\n }\n }\n } else if (column === 'name') {\n // Items are the same so continue to let subsequent column sorts apply\n if (a[column] === b[column]) {\n continue\n }\n if (!desc) {\n // Strings so use localeCompare to sort\n return a[column].localeCompare(b[column])\n } else {\n return b[column].localeCompare(a[column])\n }\n } else {\n // Items are the same so continue to let subsequent column sorts apply\n if (a[column] === b[column]) {\n continue\n }\n if (!desc) {\n // The rest of the columns are numbers so just subtract to sort\n return a[column] - b[column]\n } else {\n return b[column] - a[column]\n }\n }\n }\n })\n return items\n },\n connectDisconnect(item) {\n this.buttonsDisabled = true\n if (item.connected === 'DISCONNECTED') {\n this.api.connect_router(item.name)\n } else {\n this.api.disconnect_router(item.name)\n }\n },\n update() {\n if (this.tabId != this.curTab) return\n this.api.get_all_router_info().then((info) => {\n this.data = [] // Clear the old data\n for (let int of info) {\n let connect = null\n let connectedClass = null\n if (int[1] == 'DISCONNECTED') {\n connect = 'Connect'\n connectedClass = 'openc3-white'\n } else if (int[1] == 'CONNECTED') {\n connect = 'Disconnect'\n connectedClass = 'openc3-green'\n } else {\n connect = 'Cancel'\n connectedClass = 'openc3-red'\n }\n this.data.push({\n name: int[0],\n connect: connect,\n connectedClass: connectedClass,\n connected: int[1],\n clients: int[2],\n tx_q_size: int[3],\n rx_q_size: int[4],\n tx_bytes: int[5],\n rx_bytes: int[6],\n cmd_pkts: int[7],\n tlm_pkts: int[8],\n })\n }\n this.buttonsDisabled = false\n })\n },\n },\n}\n<\/script>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"22ed4b012b72d48b814228e74291f10760f13659"},c=l[t]||(l[t]={});c[n]&&c[n].hash===e||(c[n]=o);var i=c[n];return s=function(){return i},i}s();const a={mixins:[i.A],props:{tabId:Number,curTab:Number},data(){return s().f[0]++,s().s[0]++,{search:"",data:[],buttonsDisabled:!1,headers:[{text:"Name",value:"name"},{text:"Action",value:"connect",sortable:!1,filterable:!1},{text:"Connected",value:"connected"},{text:"Clients",value:"clients"},{text:"Tx Q size",value:"tx_q_size"},{text:"Rx Q size",value:"rx_q_size"},{text:"Tx bytes",value:"tx_bytes"},{text:"Rx bytes",value:"rx_bytes"},{text:"Cmd pkts",value:"cmd_pkts"},{text:"Tlm pkts",value:"tlm_pkts"}]}},methods:{sortTable(n,e,l){return s().f[1]++,s().s[1]++,n.sort(((n,t)=>{s().f[2]++,s().s[2]++;for(let o=(s().s[3]++,0);o<e.length;o++){let c=(s().s[4]++,e[o]),i=(s().s[5]++,l[o]);if(s().s[6]++,"connected"===c){if(s().b[0][0]++,s().s[7]++,n[c]===t[c]){s().b[1][0]++,s().s[8]++;continue}return s().b[1][1]++,s().s[9]++,i?(s().b[2][1]++,s().s[13]++,"CONNECTED"===n[c]?(s().b[4][0]++,s().s[14]++,1):(s().b[4][1]++,s().s[15]++,-1)):(s().b[2][0]++,s().s[10]++,"CONNECTED"===n[c]?(s().b[3][0]++,s().s[11]++,-1):(s().b[3][1]++,s().s[12]++,1))}if(s().b[0][1]++,s().s[16]++,"name"===c){if(s().b[5][0]++,s().s[17]++,n[c]===t[c]){s().b[6][0]++,s().s[18]++;continue}return s().b[6][1]++,s().s[19]++,i?(s().b[7][1]++,s().s[21]++,t[c].localeCompare(n[c])):(s().b[7][0]++,s().s[20]++,n[c].localeCompare(t[c]))}if(s().b[5][1]++,s().s[22]++,n[c]!==t[c])return s().b[8][1]++,s().s[24]++,i?(s().b[9][1]++,s().s[26]++,t[c]-n[c]):(s().b[9][0]++,s().s[25]++,n[c]-t[c]);s().b[8][0]++,s().s[23]++}})),s().s[27]++,n},connectDisconnect(n){s().f[3]++,s().s[28]++,this.buttonsDisabled=!0,s().s[29]++,"DISCONNECTED"===n.connected?(s().b[10][0]++,s().s[30]++,this.api.connect_router(n.name)):(s().b[10][1]++,s().s[31]++,this.api.disconnect_router(n.name))},update(){if(s().f[4]++,s().s[32]++,this.tabId!=this.curTab)return s().b[11][0]++,void s().s[33]++;s().b[11][1]++,s().s[34]++,this.api.get_all_router_info().then((n=>{s().f[5]++,s().s[35]++,this.data=[],s().s[36]++;for(let e of n){let n=(s().s[37]++,null),l=(s().s[38]++,null);s().s[39]++,"DISCONNECTED"==e[1]?(s().b[12][0]++,s().s[40]++,n="Connect",s().s[41]++,l="openc3-white"):(s().b[12][1]++,s().s[42]++,"CONNECTED"==e[1]?(s().b[13][0]++,s().s[43]++,n="Disconnect",s().s[44]++,l="openc3-green"):(s().b[13][1]++,s().s[45]++,n="Cancel",s().s[46]++,l="openc3-red")),s().s[47]++,this.data.push({name:e[0],connect:n,connectedClass:l,connected:e[1],clients:e[2],tx_q_size:e[3],rx_q_size:e[4],tx_bytes:e[5],rx_bytes:e[6],cmd_pkts:e[7],tlm_pkts:e[8]})}s().s[48]++,this.buttonsDisabled=!1}))}}},u=a;var m=l(2401),r=(0,m.A)(u,o,c,!1,null,null,null);const A=r.exports}}]);
|
2
|
-
//# sourceMappingURL=275.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"js/275.js","mappings":"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","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/Updater.js","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/RoutersTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/RoutersTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/RoutersTab.vue?e43c","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/RoutersTab.vue?a9bb"],"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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-card',[_c('v-card-title',[_vm._v(\"\\n \"+_vm._s(_vm.data.length)+\" Routers\\n \"),_c('v-spacer'),_vm._v(\" \"),_c('v-text-field',{staticClass:\"search\",attrs:{\"label\":\"Search\",\"prepend-inner-icon\":\"mdi-magnify\",\"clearable\":\"\",\"outlined\":\"\",\"dense\":\"\",\"single-line\":\"\",\"hide-details\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_vm._v(\" \"),_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":_vm.data,\"search\":_vm.search,\"custom-sort\":_vm.sortTable,\"items-per-page\":10,\"footer-props\":{ itemsPerPageOptions: [10, 20, -1] },\"calculate-widths\":\"\",\"multi-sort\":\"\",\"data-test\":\"routers-table\"},scopedSlots:_vm._u([{key:\"item.connect\",fn:function({ item }){return [_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"primary\",\"disabled\":_vm.buttonsDisabled},on:{\"click\":function($event){return _vm.connectDisconnect(item)}}},[_vm._v(\"\\n \"+_vm._s(item.connect)+\"\\n \")])]}},{key:\"item.connected\",fn:function({ item }){return [_c('span',{class:item.connectedClass},[_vm._v(\"\\n \"+_vm._s(item.connected)+\"\\n \")])]}}])})],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 }} Routers\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"data\"\n :search=\"search\"\n :custom-sort=\"sortTable\"\n :items-per-page=\"10\"\n :footer-props=\"{ itemsPerPageOptions: [10, 20, -1] }\"\n calculate-widths\n multi-sort\n data-test=\"routers-table\"\n >\n <template v-slot:item.connect=\"{ item }\">\n <v-btn\n block\n color=\"primary\"\n :disabled=\"buttonsDisabled\"\n @click=\"connectDisconnect(item)\"\n >\n {{ item.connect }}\n </v-btn>\n </template>\n <template v-slot:item.connected=\"{ item }\">\n <span :class=\"item.connectedClass\">\n {{ item.connected }}\n </span>\n </template>\n </v-data-table>\n </v-card>\n</template>\n\n<script>\nimport Updater from './Updater'\n\nexport default {\n mixins: [Updater],\n props: {\n tabId: Number,\n curTab: Number,\n },\n data() {\n return {\n search: '',\n data: [],\n buttonsDisabled: false,\n headers: [\n { text: 'Name', value: 'name' },\n {\n text: 'Action',\n value: 'connect',\n sortable: false,\n filterable: false,\n },\n { text: 'Connected', value: 'connected' },\n { text: 'Clients', value: 'clients' },\n { text: 'Tx Q size', value: 'tx_q_size' },\n { text: 'Rx Q size', value: 'rx_q_size' },\n { text: 'Tx bytes', value: 'tx_bytes' },\n { text: 'Rx bytes', value: 'rx_bytes' },\n { text: 'Cmd pkts', value: 'cmd_pkts' },\n { text: 'Tlm pkts', value: 'tlm_pkts' },\n ],\n }\n },\n methods: {\n // Custom sort algorithm to allow the connected column to be sorted by CONNECTED first\n sortTable(items, index, isDesc) {\n items.sort((a, b) => {\n for (let i = 0; i < index.length; i++) {\n let column = index[i]\n let desc = isDesc[i]\n\n if (column === 'connected') {\n // Items are the same so continue to let subsequent column sorts apply\n if (a[column] === b[column]) {\n continue\n }\n if (!desc) {\n if (a[column] === 'CONNECTED') {\n return -1\n } else {\n return 1\n }\n } else {\n if (a[column] === 'CONNECTED') {\n return 1\n } else {\n return -1\n }\n }\n } else if (column === 'name') {\n // Items are the same so continue to let subsequent column sorts apply\n if (a[column] === b[column]) {\n continue\n }\n if (!desc) {\n // Strings so use localeCompare to sort\n return a[column].localeCompare(b[column])\n } else {\n return b[column].localeCompare(a[column])\n }\n } else {\n // Items are the same so continue to let subsequent column sorts apply\n if (a[column] === b[column]) {\n continue\n }\n if (!desc) {\n // The rest of the columns are numbers so just subtract to sort\n return a[column] - b[column]\n } else {\n return b[column] - a[column]\n }\n }\n }\n })\n return items\n },\n connectDisconnect(item) {\n this.buttonsDisabled = true\n if (item.connected === 'DISCONNECTED') {\n this.api.connect_router(item.name)\n } else {\n this.api.disconnect_router(item.name)\n }\n },\n update() {\n if (this.tabId != this.curTab) return\n this.api.get_all_router_info().then((info) => {\n this.data = [] // Clear the old data\n for (let int of info) {\n let connect = null\n let connectedClass = null\n if (int[1] == 'DISCONNECTED') {\n connect = 'Connect'\n connectedClass = 'openc3-white'\n } else if (int[1] == 'CONNECTED') {\n connect = 'Disconnect'\n connectedClass = 'openc3-green'\n } else {\n connect = 'Cancel'\n connectedClass = 'openc3-red'\n }\n this.data.push({\n name: int[0],\n connect: connect,\n connectedClass: connectedClass,\n connected: int[1],\n clients: int[2],\n tx_q_size: int[3],\n rx_q_size: int[4],\n tx_bytes: int[5],\n rx_bytes: int[6],\n cmd_pkts: int[7],\n tlm_pkts: int[8],\n })\n }\n this.buttonsDisabled = false\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!./RoutersTab.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!./RoutersTab.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./RoutersTab.vue?vue&type=template&id=a0d43b7c\"\nimport script from \"./RoutersTab.vue?vue&type=script&lang=js\"\nexport * from \"./RoutersTab.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_18iatml2cn","actualCoverage","props","refreshInterval","default","data","f","s","updater","api","created","this","OpenC3Api","mounted","changeUpdater","beforeDestroy","b","clearInterval","watch","newVal","oldVal","methods","setInterval","update","cov_105jidd1oz","render","_vm","_c","_self","_v","_s","length","staticClass","attrs","model","value","search","callback","$$v","expression","headers","sortTable","itemsPerPageOptions","scopedSlots","_u","key","fn","item","buttonsDisabled","on","$event","connectDisconnect","connect","class","connectedClass","connected","staticRenderFns","mixins","Updater","tabId","Number","curTab","text","sortable","filterable","items","index","isDesc","sort","a","i","column","desc","localeCompare","connect_router","name","disconnect_router","get_all_router_info","then","info","int","push","clients","tx_q_size","rx_q_size","tx_bytes","rx_bytes","cmd_pkts","tlm_pkts","component"],"sourceRoot":""}
|
data/tools/cmdtlmserver/js/30.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[30],{2702:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var a=t(7752);a.D$.staleThreshold=10;class l{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,t={},l={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((n=>{if(n&&OpenC3Auth.setTokens(),null==this._cable){let e=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=a.Be(e)}return this._cable.subscriptions.create({channel:e,...l},t)}))}recordPing(){this._cable.connection.monitor.recordPing()}}},3030:(e,n,t)=>{"use strict";function a(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdTlmServer.vue",n="37cd178fa6f6311febd18fb2a8fc6998df81ecfb",t=new Function("return this")(),l="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdTlmServer.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,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:1,column:1473}},4:{start:{line:1,column:237},end:{line:1,column:250}},5:{start:{line:1,column:417},end:{line:1,column:431}},6:{start:{line:1,column:493},end:{line:1,column:670}},7:{start:{line:1,column:578},end:{line:1,column:603}},8:{start:{line:1,column:1038},end:{line:1,column:1059}},9:{start:{line:1,column:1425},end:{line:1,column:1453}},10:{start:{line:3,column:22},end:{line:3,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:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:221},end:{line:1,column:222}},loc:{start:{line:1,column:236},end:{line:1,column:251}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:401},end:{line:1,column:402}},loc:{start:{line:1,column:416},end:{line:1,column:432}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:473},end:{line:1,column:474}},loc:{start:{line:1,column:492},end:{line:1,column:671}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:561},end:{line:1,column:562}},loc:{start:{line:1,column:577},end:{line:1,column:604}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1022},end:{line:1,column:1023}},loc:{start:{line:1,column:1037},end:{line:1,column:1060}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1408},end:{line:1,column:1409}},loc:{start:{line:1,column:1424},end:{line:1,column:1454}},line:1}},branchMap:{},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,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"37cd178fa6f6311febd18fb2a8fc6998df81ecfb"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=s);var i=o[e];return a=function(){return i},i}t.r(n),t.d(n,{default:()=>F}),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("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),n("v-card",[n("v-expansion-panels",{model:{value:e.panel,callback:function(n){a().f[1]++,a().s[4]++,e.panel=n},expression:"panel"}},[n("v-expansion-panel",[n("v-expansion-panel-header",[n("v-tabs",{attrs:{"fixed-tabs":""},model:{value:e.curTab,callback:function(n){a().f[2]++,a().s[5]++,e.curTab=n},expression:"curTab"}},e._l(e.tabs,(function(t,l){return a().f[3]++,a().s[6]++,n("v-tab",{key:l,attrs:{to:t.url},nativeOn:{click:function(e){a().f[4]++,a().s[7]++,e.stopPropagation()}}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1),e._v(" "),n("v-expansion-panel-content",[n("router-view",{attrs:{"refresh-interval":e.refreshInterval}})],1)],1)],1)],1),e._v(" "),n("div",{staticStyle:{height:"15px"}}),e._v(" "),n("log-messages",{attrs:{"time-zone":e.timeZone}}),e._v(" "),n("v-dialog",{attrs:{"max-width":"300"},model:{value:e.optionsDialog,callback:function(n){a().f[5]++,a().s[8]++,e.optionsDialog=n},expression:"optionsDialog"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Options")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-3"},[n("v-text-field",{attrs:{min:"0",max:"10000",step:"100",type:"number",label:"Refresh Interval (ms)",value:e.refreshInterval},on:{change:function(n){a().f[6]++,a().s[9]++,e.refreshInterval=n}}})],1)],1)],1)],1)},s=(a().s[10]++,[]),o=t(4364),i=function(){var e=this,n=e._self._c;return n("v-card",[n("v-card-title",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:a}){return[n("div",e._g(e._b({},"div",a,!1),t),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"download-log"},on:{click:e.downloadLog}},[n("v-icon",[e._v(" mdi-download ")])],1)],1)]}}])},[e._v(" "),n("span",[e._v(" Download Log ")])]),e._v(" "),n("span",[e._v(" Log Messages ")]),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:a}){return[n("div",e._g(e._b({},"div",a,!1),t),[n("v-btn",{attrs:{icon:"","data-test":"pause"},on:{click:e.pause}},[n("v-icon",[e._v(" "+e._s(e.buttonIcon)+" ")])],1)],1)]}}])},[e._v(" "),n("span",[e._v(" "+e._s(e.buttonLabel)+" ")])]),e._v(" "),n("v-spacer"),e._v(" "),n("v-select",{staticClass:"mr-2",staticStyle:{"max-width":"150px"},attrs:{label:"Filter by log level","hide-details":"",outlined:"",dense:"",items:e.logLevels,"data-test":"log-messages-level"},model:{value:e.logLevel,callback:function(n){e.logLevel=n},expression:"logLevel"}}),e._v(" "),n("v-spacer"),e._v(" "),n("v-text-field",{staticClass:"search",staticStyle:{"max-width":"300px"},attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":"","data-test":"search-log-messages"},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}}),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:a}){return[n("div",e._g(e._b({},"div",a,!1),t),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"clear-log"},on:{click:e.clearLog}},[n("v-icon",[e._v(" mdi-delete ")])],1)],1)]}}])},[e._v(" "),n("span",[e._v(" Clear Log ")])])],1),e._v(" "),n("v-data-table",{attrs:{headers:e.headers,items:e.shownData,search:e.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:"",height:"70vh","data-test":"log-messages"},scopedSlots:e._u([{key:"item.timestamp",fn:function({item:t}){return[n("time",{attrs:{title:t.timestamp,datetime:t.timestamp}},[e._v("\n "+e._s(t.timestamp)+"\n ")])]}},{key:"item.level",fn:function({item:t}){return[n("span",{style:"display: inline-flex; color:"+e.getColor(t.level)},[n("rux-status",{staticClass:"mr-1",attrs:{status:e.getStatus(t.level)}}),e._v("\n "+e._s(t.level))],1)]}},{key:"item.message",fn:function({item:t}){return[n("div",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(t.message))])]}}])})],1)},r=[],c=(t(4293),t(8715),t(3165),t(4541),t(4397),t(1412),t(1883),t(7905),t(4183)),m=t(2702),u=t(9322),d=t(5475),p=t(5179),v=t(8967);const A="yyyy-MM-dd",h="HH:mm:ss.SSS",f="HH:mm:ss",b=`${A} ${h}`,_={methods:{parseDateTime(e,n){return e.includes(" ")&&(e=e.replace(" ","T")),n&&"UTC"===n&&(e+="Z"),Date.parse(e)},formatUtcToLocal(e,n){return n&&"local"!==n?(0,c.GP)(e,b):(0,c.GP)((0,d.Y)(e,e.getTimezoneOffset()),b)},formatDateTime(e,n){return n&&"local"!==n?(0,v.qD)(e,n,b):(0,c.GP)(e,b)},formatDate:function(e,n){return n&&"local"!==n?(0,v.qD)(e,this.timeZone,A):(0,c.GP)(e,A)},formatTime:function(e,n,t=h){return n&&"local"!==n?(0,v.qD)(e,this.timeZone,t):(0,c.GP)(e,t)},formatTimeHMS:function(e,n){return this.formatTime(e,n,f)},formatTimestamp(e,n){return this.formatDateTime((0,p.H)(e),n)},formatSeconds(e,n){return this.formatDateTime(new Date(1e3*e),n)},formatNanoseconds(e,n){return this.formatDateTime(new Date(parseInt(e)/1e6),n)}}},g={props:{historyCount:{type:Number,default:200},timeZone:{type:String,default:"local"}},mixins:[_],data(){return{AstroStatusColors:u.Yu,data:[],shownData:[],logLevels:["DEBUG","INFO","WARN","ERROR","FATAL"],logLevel:"INFO",search:"",headers:[{text:"Time",value:"timestamp",width:220},{text:"Level",value:"level"},{text:"Source",value:"microservice_name"},{text:"Message",value:"message"}],cable:new m.A,subscription:null,paused:!1}},computed:{buttonLabel:function(){return this.paused?"Resume":"Pause"},buttonIcon:function(){return this.paused?"mdi-play":"mdi-pause"}},watch:{logLevel:function(e,n){this.createSubscription()}},created(){this.createSubscription()},destroyed(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{pause:function(){this.paused=!this.paused},createSubscription(){this.subscription&&(this.subscription.unsubscribe(),this.data=[],this.shownData=this.data),this.cable.createSubscription("MessagesChannel",window.openc3Scope,{received:e=>{this.cable.recordPing(),e.length>this.historyCount&&e.splice(0,e.length-this.historyCount),e=e.filter((e=>{switch(this.logLevel){case"DEBUG":return!0;case"INFO":if("DEBUG"!==e.level)return!0;break;case"WARN":if("DEBUG"!==e.level&&"INFO"!==e.level)return!0;break;case"ERROR":if("DEBUG"!==e.level&&"INFO"!==e.level&&"WARN"!==e.level)return!0;break;case"FATAL":if("DEBUG"!==e.level&&"INFO"!==e.level&&"WARN"!==e.level&&"ERROR"!==e.level)return!0;break}return!1})),e.map((e=>{if(e.timestamp=this.formatTimestamp(e["@timestamp"],this.timeZone),e.message.raw&&"String"===e.message.json_class){let t="0x";for(let a=0;a<e.message.raw.length;a++){var n=e.message.raw[a].toString(16).toUpperCase();n.length<2&&(n="0"+n),t+=n}e.message=t}else e.message=e.message.replaceAll("\\n","\n")})),this.data=e.reverse().concat(this.data),this.data.length>this.historyCount&&(this.data.length=this.historyCount),this.paused||(this.shownData=this.data)}},{history_count:this.historyCount,types:["log","notification","alert"]}).then((e=>{this.subscription=e}))},getColor(e){return u.Yu[u.NI[e]]},getStatus(e){return u.NI[e]},downloadLog(){const e=this.shownData.map((e=>`${e.timestamp} | ${e.level} | ${e.microservice_name} | ${e.message}`)).join("\n"),n=new Blob([e],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(n),t.setAttribute("download",(0,c.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_message_log.txt"),t.click()},clearLog:function(){this.$dialog.confirm("Are you sure you want to clear the log?",{okText:"Clear",cancelText:"Cancel"}).then((e=>{this.data=[],this.shownData=[]})).catch((function(e){}))}}},C=g;var y=t(2401),x=(0,y.A)(C,i,r,!1,null,null,null);const k=x.exports;var T=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{"align-self":"end"}},[n("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),n("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(t,a){return n("v-menu",{key:a,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:a,attrs:l}){return[n("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${t.label}`)}},"v-btn",l,!1),a),[n("span",{domProps:{textContent:e._s(t.label)}}),e._v(" "),n("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(a,l){return[a.divider?n("v-divider",{key:l}):a.subMenu&&a.subMenu.length>0?n("div",{key:l},[n("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:s}){return[n("v-list-item",e._g(e._b({key:l,attrs:{disabled:a.disabled}},"v-list-item",s,!1),t),[a.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:a.disabled}},[e._v(e._s(a.icon))])],1):e._e(),e._v(" "),a.radio||a.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(a.disabled?"opacity: 0.2":"")},[e._v(e._s(a.label)+"\n ")]),e._v(" "),n("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",e._l(a.subMenu,(function(t,a){return n("v-list-item",{key:a,on:{click:function(n){return e.subMenuClick(t)}}},[t.icon?n("v-list-item-icon",[n("v-icon",[e._v(e._s(t.icon))])],1):e._e(),e._v(" "),n("v-list-item-title",[e._v(e._s(t.label))])],1)})),1)],1)],1):n("v-list-item",{key:l,attrs:{disabled:a.disabled,"data-test":e.formatDT(`${e.title} ${t.label} ${a.label}`)},on:{click:function(e){return a.command(a)}}},[a.radio?n("v-list-item-action",{staticClass:"list-action"},[n("v-radio",{attrs:{color:"secondary",label:a.label,value:a.label}})],1):e._e(),e._v(" "),a.checkbox?n("v-list-item-action",{staticClass:"list-action"},[n("v-checkbox",{attrs:{color:"secondary",label:a.label},model:{value:a.checked,callback:function(n){e.$set(a,"checked",n)},expression:"option.checked"}})],1):e._e(),e._v(" "),a.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:a.disabled}},[e._v(e._s(a.icon))])],1):e._e(),e._v(" "),a.radio||a.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(a.disabled?"opacity: 0.2":"")},[e._v(e._s(a.label))])],1)]}))],2)],1)],1)})),1)],1)},w=[];const S={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},D=S;t(5699);var I=(0,y.A)(D,T,w,!1,null,"0af23388",null);const R=I.exports;function L(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdTlmServer.vue",n="219b5f7d851bc22ed91c0b5aad35c083d9b03a96",t=new Function("return this")(),a="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/CmdTlmServer.vue",statementMap:{0:{start:{line:11,column:4},end:{line:67,column:5}},1:{start:{line:54,column:16},end:{line:54,column:41}},2:{start:{line:61,column:16},end:{line:61,column:36}},3:{start:{line:70,column:4},end:{line:70,column:30}},4:{start:{line:71,column:4},end:{line:80,column:8}},5:{start:{line:74,column:8},end:{line:76,column:9}},6:{start:{line:75,column:10},end:{line:75,column:34}},7:{start:{line:84,column:6},end:{line:88,column:8}},8:{start:{line:85,column:8},end:{line:87,column:9}},9:{start:{line:85,column:21},end:{line:85,column:22}},10:{start:{line:86,column:10},end:{line:86,column:63}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:68,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:53,column:23},end:{line:53,column:24}},loc:{start:{line:53,column:29},end:{line:55,column:15}},line:53},2:{name:"(anonymous_2)",decl:{start:{line:60,column:23},end:{line:60,column:24}},loc:{start:{line:60,column:29},end:{line:62,column:15}},line:60},3:{name:"(anonymous_3)",decl:{start:{line:69,column:2},end:{line:69,column:3}},loc:{start:{line:69,column:12},end:{line:81,column:3}},line:69},4:{name:"(anonymous_4)",decl:{start:{line:73,column:12},end:{line:73,column:13}},loc:{start:{line:73,column:26},end:{line:77,column:7}},line:73},5:{name:"(anonymous_5)",decl:{start:{line:78,column:13},end:{line:78,column:14}},loc:{start:{line:78,column:24},end:{line:80,column:7}},line:78},6:{name:"(anonymous_6)",decl:{start:{line:83,column:4},end:{line:83,column:5}},loc:{start:{line:83,column:20},end:{line:89,column:5}},line:83},7:{name:"(anonymous_7)",decl:{start:{line:84,column:42},end:{line:84,column:43}},loc:{start:{line:84,column:56},end:{line:88,column:7}},line:84}},branchMap:{0:{loc:{start:{line:74,column:8},end:{line:76,column:9}},type:"if",locations:[{start:{line:74,column:8},end:{line:76,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:74}},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,4:0,5:0,6:0,7:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["CmdTlmServer.vue"],names:[],mappings:";AAwEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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:"CmdTlmServer.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 2024, 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 <top-bar :menus=\"menus\" :title=\"title\" />\n <v-card>\n <v-expansion-panels v-model=\"panel\">\n <v-expansion-panel>\n <v-expansion-panel-header>\n <v-tabs v-model=\"curTab\" fixed-tabs>\n <v-tab\n v-for=\"(tab, index) in tabs\"\n :key=\"index\"\n :to=\"tab.url\"\n @click.native.stop\n >\n {{ tab.name }}\n </v-tab>\n </v-tabs>\n </v-expansion-panel-header>\n <v-expansion-panel-content>\n <router-view :refresh-interval=\"refreshInterval\" />\n </v-expansion-panel-content>\n </v-expansion-panel>\n </v-expansion-panels>\n </v-card>\n <div style=\"height: 15px\" />\n <log-messages :time-zone=\"timeZone\" />\n <v-dialog v-model=\"optionsDialog\" max-width=\"300\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Options</span>\n <v-spacer />\n </v-system-bar>\n <div class=\"pa-3\">\n <v-text-field\n min=\"0\"\n max=\"10000\"\n step=\"100\"\n type=\"number\"\n label=\"Refresh Interval (ms)\"\n :value=\"refreshInterval\"\n @change=\"refreshInterval = $event\"\n />\n </div>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport LogMessages from '@openc3/tool-common/src/components/LogMessages'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nexport default {\n components: {\n LogMessages,\n TopBar,\n },\n data() {\n return {\n api: null,\n title: 'CmdTlmServer',\n timeZone: 'local',\n panel: 0,\n curTab: null,\n tabs: [\n {\n name: 'Interfaces',\n url: '/interfaces',\n },\n {\n name: 'Targets',\n url: '/targets',\n },\n {\n name: 'Cmd packets',\n url: '/cmd-packets',\n },\n {\n name: 'Tlm packets',\n url: '/tlm-packets',\n },\n {\n name: 'Routers',\n url: '/routers',\n },\n {\n name: 'Status',\n url: '/status',\n },\n ],\n updater: null,\n refreshInterval: 1000,\n optionsDialog: false,\n menus: [\n {\n label: 'File',\n items: [\n {\n label: 'Options',\n icon: 'mdi-cog',\n command: () => {\n this.optionsDialog = true\n },\n },\n {\n label: 'Clear Counters',\n icon: 'mdi-eraser',\n command: () => {\n this.clearCounters()\n },\n },\n ],\n },\n ],\n }\n },\n created() {\n this.api = new OpenC3Api()\n this.api\n .get_setting('time_zone')\n .then((response) => {\n if (response) {\n this.timeZone = response\n }\n })\n .catch((error) => {\n // Do nothing\n })\n },\n methods: {\n clearCounters() {\n this.api.get_interface_names().then((response) => {\n for (var i = 0; i < response.length; i++) {\n this.api.interface_cmd(response[i], 'clear_counters')\n }\n })\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-expansion-panel-content :deep(.v-expansion-panel-content__wrap) {\n padding: 0px;\n}\n.v-list :deep(.v-label) {\n margin-left: 5px;\n}\n.v-list-item__icon {\n /* For some reason the default margin-right is huge */\n margin-right: 15px !important;\n}\n.v-list-item__title {\n color: white;\n}\n.v-expansion-panel-header {\n min-height: initial;\n padding: 0px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"219b5f7d851bc22ed91c0b5aad35c083d9b03a96"},s=t[a]||(t[a]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return L=function(){return o},o}L();const M={components:{LogMessages:k,TopBar:R},data(){return L().f[0]++,L().s[0]++,{api:null,title:"CmdTlmServer",timeZone:"local",panel:0,curTab:null,tabs:[{name:"Interfaces",url:"/interfaces"},{name:"Targets",url:"/targets"},{name:"Cmd packets",url:"/cmd-packets"},{name:"Tlm packets",url:"/tlm-packets"},{name:"Routers",url:"/routers"},{name:"Status",url:"/status"}],updater:null,refreshInterval:1e3,optionsDialog:!1,menus:[{label:"File",items:[{label:"Options",icon:"mdi-cog",command:()=>{L().f[1]++,L().s[1]++,this.optionsDialog=!0}},{label:"Clear Counters",icon:"mdi-eraser",command:()=>{L().f[2]++,L().s[2]++,this.clearCounters()}}]}]}},created(){L().f[3]++,L().s[3]++,this.api=new o.x,L().s[4]++,this.api.get_setting("time_zone").then((e=>{L().f[4]++,L().s[5]++,e?(L().b[0][0]++,L().s[6]++,this.timeZone=e):L().b[0][1]++})).catch((e=>{L().f[5]++}))},methods:{clearCounters(){L().f[6]++,L().s[7]++,this.api.get_interface_names().then((e=>{L().f[7]++,L().s[8]++;for(var n=(L().s[9]++,0);n<e.length;n++)L().s[10]++,this.api.interface_cmd(e[n],"clear_counters")}))}}},O=M;t(8091);var N=(0,y.A)(O,l,s,!1,null,"0766be25",null);const F=N.exports},4931:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var a=t(6758),l=t.n(a),s=t(935),o=t.n(s),i=o()(l());i.push([e.id,".v-expansion-panel-content[data-v-0766be25] .v-expansion-panel-content__wrap{padding:0}.v-list[data-v-0766be25] .v-label{margin-left:5px}.v-list-item__icon[data-v-0766be25]{margin-right:15px!important}.v-list-item__title[data-v-0766be25]{color:#fff}.v-expansion-panel-header[data-v-0766be25]{min-height:auto;padding:0}",""]);const r=i},4203:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var a=t(6758),l=t.n(a),s=t(935),o=t.n(s),i=o()(l());i.push([e.id,".app-title[data-v-0af23388]{font-size:2rem}.menu-button[data-v-0af23388]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-0af23388]{padding-right:5px}.list-action[data-v-0af23388] label{color:#fff;padding-left:10px}.myicon[data-v-0af23388]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-0af23388] .v-label{margin-left:5px}.v-list-item__icon[data-v-0af23388]{margin-right:15px!important}.v-list-item__title[data-v-0af23388]{color:#fff}",""]);const r=i},8091:(e,n,t)=>{var a=t(4931);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals);var l=t(4825).A;l("b4684f92",a,!0,{sourceMap:!1,shadowMode:!1})},5699:(e,n,t)=>{var a=t(4203);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals);var l=t(4825).A;l("7f447726",a,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=30.js.map
|