openc3-cosmos-tool-admin 7.2.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/admin/{ArrayWidget-D1PArcGr-3885b67514afe732ba36.js → ArrayWidget-5XQXgMtp-80db1e3027ca0f38008d.js} +2 -2
- data/tools/admin/{ArrayplotWidget-DPUPy0qM-b6a1c019189be84e4589.js → ArrayplotWidget-pk7OINvA-33482371ab3dd9c8a3e1.js} +1 -1
- data/tools/admin/{BarColumn-BpdscDQf-e551f56c95340d26cda4.js → BarColumn-JQ552zb0-71f940da624cf74a8ac7.js} +1 -1
- data/tools/admin/{BlockWidget-_VUsK5T9-59058beda215f65a7b09.js → BlockWidget-B_5TnoG_-07bb5d5276892a455ef5.js} +2 -2
- data/tools/admin/ButtonWidget-CiZGNEls-b36f8511f142106bb716.js +1 -0
- data/tools/admin/CanvasWidget-CzLQAoHY-05569d347e30d7c90f9f.js +1 -0
- data/tools/admin/CanvasdotWidget-CcI1HwAp-131410357e5f5cb7c5cf.js +1 -0
- data/tools/admin/{CanvasimageWidget-COv_Qnc8-0a502afa265efe2f25ad.js → CanvasimageWidget-CYg1rKr_-9d04ce25dc613fc2ccc6.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-BhuUqLOo-53322c8fb2f548104d57.js → CanvasimagevalueWidget-e0p2honY-c0ebf132498eedba3031.js} +1 -1
- data/tools/admin/CanvaslabelWidget-CgECf4wH-8a62168c6b54ce7dc69d.js +1 -0
- data/tools/admin/CanvaslabelvalueWidget-bCIPWE4c-c301a198a35d0ba429cc.js +1 -0
- data/tools/admin/CanvaslineWidget-Tw1B6RTA-30b7fce14bb17223c180.js +1 -0
- data/tools/admin/{CanvaslinevalueWidget-D4eaxWhR-443b0d3f93af5d0faf5a.js → CanvaslinevalueWidget-GvTic9rq-8cdbcb115d2e04007db0.js} +1 -1
- data/tools/admin/CheckbuttonWidget-DV6xeneq-c00e62096beb7d93a1c9.js +1 -0
- data/tools/admin/ComboboxWidget-BO31bWzg-5d5f35fb019f925d5ae2.js +1 -0
- data/tools/admin/DateWidget-DYviZFhJ-3517b8d8c507bb623800.js +1 -0
- data/tools/admin/{DetailsDialog-F4KgYM6m-8435a552f5c10d2191bc.js → DetailsDialog-DHi4t3xd-23cd6112e439aa7c2e72.js} +1 -1
- data/tools/admin/{DynamicWidget-BuSbQVhf-6a5228328dcebb177ef8.js → DynamicWidget-BuSbQVhf-8c7a3d8e99d5fbadb524.js} +1 -1
- data/tools/admin/{FilechecksumWidget-DSfNEnDJ-531bbb7d456d380a62d9.js → FilechecksumWidget-rJe1KvzY-a8b35d82b279ce437fe6.js} +1 -1
- data/tools/admin/{FiledisplayWidget-D2cxMmrP-812eb21e2f71f0bd32d6.js → FiledisplayWidget-CbTWgtBy-a4fcca29c88afb5c536d.js} +1 -1
- data/tools/admin/{FormatvalueWidget-6-bj_PJO-4c9daa001cba89fb9103.js → FormatvalueWidget-B9Giwzaz-d95836be56ebf9a9fbae.js} +1 -1
- data/tools/admin/Graph-xc7TNnsk-b819fee23f66c94861f9.js +1 -0
- data/tools/admin/{GraphWidget-COXK3Dab-18ccb71d08b630c3446f.js → GraphWidget-COvVOlEn-9d0cb68fec73a5f3454a.js} +1 -1
- data/tools/admin/{HorizontalWidget-C9UFBPsk-91bd1e11d87736b8c758.js → HorizontalWidget-BfdjRLGe-792a24c12a95a38bd847.js} +1 -1
- data/tools/admin/{HorizontalboxWidget-CWLfmRtr-13d452adc9e1100f23c4.js → HorizontalboxWidget-B1b9uNaB-e4ec787dc7d063c45fe0.js} +1 -1
- data/tools/admin/HorizontallineWidget-CHz4o6Gi-b60cc8d253fd53f17c8c.js +1 -0
- data/tools/admin/{IframeWidget-Bn9eGzrq-d71752e23ce712e81e26.js → IframeWidget-BCtrIgD1-5aac9e4f21efaab8f6fe.js} +1 -1
- data/tools/admin/{ImageLoader-_gAudhVo-23300d0d0133307fb169.js → ImageLoader-BzE4VsHW-1b90e52f729ac92ee450.js} +1 -1
- data/tools/admin/{ImageviewerWidget-BUWhF32Z-0799a243569a53e640e9.js → ImageviewerWidget-DKMBE3tQ-fc341ef1324e0620d71c.js} +1 -1
- data/tools/admin/InterfacesTab-C_AsAMrL-72de0290999c83b4f01f.js +1 -0
- data/tools/admin/{LabelWidget-BhzkN06D-2d7a7f95582b783e18d0.js → LabelWidget-B0nE0ImW-54b49f3830be1cee8eb4.js} +1 -1
- data/tools/admin/LabelledWidget-DrZHj_lR-012360847b59e5acbd03.js +1 -0
- data/tools/admin/LabelprogressbarWidget-K9NphQp0-4fb2ed553ea5457e745e.js +1 -0
- data/tools/admin/LabelsparklineWidget-cn1OJvL3-126a26c9f5cf70def931.js +1 -0
- data/tools/admin/LabelvalueWidget-DxJbd9nR-01ee83f67cecd181a9ef.js +1 -0
- data/tools/admin/{LabelvaluedescWidget-B7OIOGc0-21ac0d9663cf49396a58.js → LabelvaluedescWidget-B-RiUnpl-2189f2eada48bafa7426.js} +1 -1
- data/tools/admin/LabelvaluelimitsbarWidget-BF94rtl8-3534b25320e1cd09f5a8.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-UOfPu8D1-3bc11e94676b61fa03fa.js +1 -0
- data/tools/admin/LabelvaluerangebarWidget-EVON-Tv8-48083be1abd02e2b22dd.js +1 -0
- data/tools/admin/{Layout-CKmC50QZ-a4e41facce8302b08009.js → Layout-BLS4Yi3m-9a851fc81da50b5a0f78.js} +1 -1
- data/tools/admin/{LedWidget-D1lmNXpi-c70ab085a7e75d99db2a.js → LedWidget-DqVfh3zJ-44a2c97be736ccc6b1b3.js} +1 -1
- data/tools/admin/{LimitsBar-D5IZu7eX-eed22332c6603ee4301a.js → LimitsBar-BqpvMpXM-299f056c19106e6b75fb.js} +1 -1
- data/tools/admin/{LimitsbarWidget-VpxQXE-e-48cfee552a9c695bf8f1.js → LimitsbarWidget-rEJIGKCx-c5d60ebf1e9e1a4ffb48.js} +1 -1
- data/tools/admin/{LimitscolorWidget-79P41CX7-f2eea333aec5c48967e0.js → LimitscolorWidget-DVXho9Mm-43c53230d0556a4f1a5f.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-BFDXhJeZ-4eba19b9d6c713c13db1.js → LimitscolumnWidget-DSQAdlZS-5e2e3f51c3376782328c.js} +1 -1
- data/tools/admin/LinegraphWidget-CQRwZ0N6-0f570138c80d809f9285.js +1 -0
- data/tools/admin/{MatrixbycolumnsWidget--ihvirDP-0c6d1476cb4af73ce4ec.js → MatrixbycolumnsWidget-CJJ7SugT-ecba1687b1c179dcc8b9.js} +1 -1
- data/tools/admin/{MicroservicesTab-CQPpb7j1-7daf01af280d2c44c370.js → MicroservicesTab-9I1i19SB-24a09c3bcdfbca7af3d8.js} +2 -2
- data/tools/admin/{OpenC3TimePicker-B0lAIU91-6e7843b535d6cb333926.js → OpenC3TimePicker-Cww9L2Ij-d23c4fb5d7d8178a137a.js} +1 -1
- data/tools/admin/{OutputDialog-DtrpwjGL-73ebd3c55e7ffbc15652.js → OutputDialog-B-bk2nex-d22c9e9f81462796cf40.js} +1 -1
- data/tools/admin/PackagesTab-Cjj7tXrq-89408e61c959392ec84f.js +2 -0
- data/tools/admin/PluginsTab-VN4Z4v7e-ca0878630e8a775a0987.js +5 -0
- data/tools/admin/{ProgressbarWidget-BIB3r9SL-2b2e5705da4fe267fc08.js → ProgressbarWidget-VTd49uhi-4bf2baaad3eb99165018.js} +1 -1
- data/tools/admin/RadiobuttonWidget-DqsantxO-b47f08b4f7a848b82b4f.js +1 -0
- data/tools/admin/{RadiogroupWidget-CciTCv1U-f9b9584110d84fad120b.js → RadiogroupWidget-Bht6RZPH-83314c896de2afd6894d.js} +1 -1
- data/tools/admin/{RangebarWidget-MPQYi2Km-b85a235f8e43da24f3ae.js → RangebarWidget-CN11Oqws-3a133c58d66ddb2b34bf.js} +1 -1
- data/tools/admin/RedisTab-CCtPxcYg-c331ecd0ae21eb136f39.js +1 -0
- data/tools/admin/{RollupWidget-CfjGAhzg-f9d66fe1e702f376333e.js → RollupWidget-cgl9Ghle-3fa38b3554127b346b0c.js} +1 -1
- data/tools/admin/RoutersTab-Duiv_o6g-4ca3fd52ef99712d30f7.js +1 -0
- data/tools/admin/{ScrollwindowWidget-CupaygNN-a397b20ae8a40b64a487.js → ScrollwindowWidget-BFK-ihvZ-64da6ce3ba0f3118fd18.js} +1 -1
- data/tools/admin/{SecretsTab-C9xAxuwO-89d69d126612c7b64f6d.js → SecretsTab-BNyb54pD-fb3beba957358443d32e.js} +1 -1
- data/tools/admin/SettingsTab-Cvq3542H-57575239a634ca02206a.js +10 -0
- data/tools/admin/{SignalWidget-C-qecoTO-c71ca67fb48f421af75e.js → SignalWidget-Be7Z5pJD-0f9024939f3d5e4a418c.js} +1 -1
- data/tools/admin/{SimpleTextDialog-C-0ZC2bs-48d950cb04fe0c899bab.js → SimpleTextDialog-dn_TSiQ7-20dabd0df19c3059cf0f.js} +1 -1
- data/tools/admin/SpacerWidget-uKPA-f_0-03d7409692e75916a63f.js +1 -0
- data/tools/admin/SparklineWidget-Wu5iFbly-10e00bf9372154d3ca85.js +1 -0
- data/tools/admin/TabbookWidget-D3FrIoV4-b544084d75bde4b9d356.js +1 -0
- data/tools/admin/{TargetsTab-Ci4cOsIa-d2957154b9bf46fa9617.js → TargetsTab-CS7JjyjH-81370500aff926af0e8c.js} +1 -1
- data/tools/admin/TextboxWidget-f6wEcoI0-1ac8f94e536838694fa5.js +1 -0
- data/tools/admin/TextfieldWidget-D72Sey-h-acb374e2d0018cea37ae.js +1 -0
- data/tools/admin/TimeWidget-BBuxr7Db-234581053c602d1f9998.js +1 -0
- data/tools/admin/TitleWidget-Dfp5mPH2-ce6048efc981fc37f10b.js +1 -0
- data/tools/admin/{ToolsTab-BCvmMDIZ-4b33c7b7aab46b7d4119.js → ToolsTab-VLEsXTJH-111d5d1fcf5683ad1d36.js} +1 -1
- data/tools/admin/TsdbTab-D_P34-tF-8717f03395909927e332.js +4 -0
- data/tools/admin/{VWidget-oMbywhLA-ae9ee9bde0636cb9c9e1.js → VWidget-5FjwlURU-6a72b64b7cc840033418.js} +1 -1
- data/tools/admin/ValueWidget-CpptSOvJ-71518e3093457d3a3e99.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-AgeOlPAV-191d4ad91bd9fcdb2e92.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-CfTt7Q8a-6457391b1f8ce6e84aae.js +1 -0
- data/tools/admin/ValuerangebarWidget-E3CtttJk-0521a131ef8b3c7d9461.js +1 -0
- data/tools/admin/{VerticalWidget-DlftYBjH-ae7352937173846f56d9.js → VerticalWidget-B_eheXmK-3714fd0477bb202504f1.js} +1 -1
- data/tools/admin/{VerticalboxWidget-C7RrkfY0-a5135be854d46c8d2871.js → VerticalboxWidget-Bf8XJiY9-f18ae386e10f607a8128.js} +1 -1
- data/tools/admin/{Widget-D_HaosJK-c49796f3af3288426d03.js → Widget-CSgnvwEG-bc4dec83d0fc9039b821.js} +1 -1
- data/tools/admin/main-6a328857fae6aab0f418.js +1496 -0
- data/tools/admin/main.js +1 -1
- data/tools/admin/{settings-DZ910lLo-06b2e35cd3b4b6b6686c.js → settings-CEBZz77m-520d12b72b93c319ccfd.js} +1 -1
- metadata +85 -85
- data/tools/admin/ButtonWidget-DE41o-cg-d0d862704f2cedf509f5.js +0 -2
- data/tools/admin/CanvasWidget-BEi8h3Mq-e74743c293400ba5a929.js +0 -1
- data/tools/admin/CanvasdotWidget-eZuMgkhL-069ce51cfaf9b6705d69.js +0 -1
- data/tools/admin/CanvaslabelWidget-DtvbgeYH-0bb6f6c1d49c8d123129.js +0 -1
- data/tools/admin/CanvaslabelvalueWidget-C_FRIeNb-3b5c9903ad9d379fc52a.js +0 -1
- data/tools/admin/CanvaslineWidget-D1K_6mAY-986d4445d6db8f24c1b0.js +0 -1
- data/tools/admin/CheckbuttonWidget-ByxMDkiS-6939f416d1a7977f37fb.js +0 -1
- data/tools/admin/ComboboxWidget-CAGxGv2r-28b0f6b63d807a2f3217.js +0 -1
- data/tools/admin/DateWidget-DkNWx28s-bb439088467e3b1af3aa.js +0 -1
- data/tools/admin/Graph-Cz0Ns1FD-9251aa7b63944e24104e.js +0 -1
- data/tools/admin/HorizontallineWidget-DeFkOaYO-816f7a06f03f7222e67e.js +0 -1
- data/tools/admin/InterfacesTab-CZsnR6xB-abec32626a92ea91aa87.js +0 -1
- data/tools/admin/LabelledWidget-vx8NvW1b-0d3f99aa750f0631fdc2.js +0 -1
- data/tools/admin/LabelprogressbarWidget-t5PvKuS4-18438f7d1f021d5247e5.js +0 -1
- data/tools/admin/LabelsparklineWidget-CebbEH-j-9c683841d069f9e5b25c.js +0 -1
- data/tools/admin/LabelvalueWidget-Cbs1DBK2-8bc763b903941db678a2.js +0 -1
- data/tools/admin/LabelvaluelimitsbarWidget-C57kf-oQ-8929b2b56023fd39369a.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-BRlNDEqp-d0a4f3d8ee015080c0a8.js +0 -1
- data/tools/admin/LabelvaluerangebarWidget-Pt_evm3v-2f296e2b660ae23cd7e2.js +0 -1
- data/tools/admin/LinegraphWidget-VqkpOlws-f72604545ff9d950311b.js +0 -1
- data/tools/admin/PackagesTab-DQ5s3nfh-dfdd8bd24af88c946d9d.js +0 -1
- data/tools/admin/PluginsTab-1tlTx4k1-496335d424694bd25d9a.js +0 -5
- data/tools/admin/RadiobuttonWidget-C5rxLM7K-9bdffd0ee597d4386ad7.js +0 -1
- data/tools/admin/RedisTab-DAeGow_e-aad9acabdf7d1943559b.js +0 -1
- data/tools/admin/RoutersTab-G4WKtUOo-8f69fb20843fdf62fa85.js +0 -1
- data/tools/admin/SettingsTab-BUdeAh4o-f1b85c2ee59d2f206af1.js +0 -5
- data/tools/admin/SpacerWidget-VVkOCb6N-356dcf21185ada59e84f.js +0 -1
- data/tools/admin/SparklineWidget-Dsmn38z_-2bd86ac75cf900848cd0.js +0 -1
- data/tools/admin/TabbookWidget-CXklff-l-46b8ed5b3d3fc3f6ff22.js +0 -1
- data/tools/admin/TextboxWidget-CHs2VYIv-55be6bce7cab19177b56.js +0 -1
- data/tools/admin/TextfieldWidget-CdANAW-6-82179a958f191dffd85c.js +0 -1
- data/tools/admin/TimeWidget-D0xT1wXR-52493dd27717545a87bd.js +0 -1
- data/tools/admin/TitleWidget-68NWCcXB-218c5743097602c7a5d8.js +0 -1
- data/tools/admin/TsdbTab-BytqwnkN-ddc61c1fffc41912b8cb.js +0 -4
- data/tools/admin/ValueWidget-B1aGUBP7-320f2f1feb3886640deb.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-B7KcRjLS-70f46b11dcb2a83a3562.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-BVt6nLXq-08cf4c90f589d1d23b70.js +0 -1
- data/tools/admin/ValuerangebarWidget-uVZEI32U-ded0715685adaffdaca5.js +0 -1
- data/tools/admin/main-320f7a52ead0c027f3e7.js +0 -1502
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-6a328857fae6aab0f418.js","vue"],(function(M,j){"use strict";var g,i,f,a,w,b,l,r,u,_,y;return{setters:[n=>{g=n.k,i=n.q,f=n.e},n=>{a=n.resolveComponent,w=n.openBlock,b=n.createBlock,l=n.withCtx,r=n.createVNode,u=n.createElementVNode,_=n.toDisplayString,y=n.createTextVNode}],execute:(function(){const n={methods:{buildLanguageMode(t,e){let o=i.require("ace/lib/oop"),h=Object.getOwnPropertyNames(f.prototype).filter(d=>d!=="constructor").filter(d=>d!=="exec").concat(["check","check_raw","check_formatted","check_exception","check_tolerance","check_expression","wait","wait_tolerance","wait_expression","wait_check","wait_check_tolerance","wait_check_expression","wait_packet","wait_check_packet","disable_instrumentation","set_line_delay","get_line_delay","set_max_output","get_max_output"]),p=new RegExp(`(\\b${h.join("\\b|\\b")}\\b)`),s=function(){t.call(this);for(let d in this.$rules)this.$rules[d].unshift({regex:p,token:"support.function"})};o.inherits(s,t);let c=i.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,m=i.require("ace/mode/behaviour/cstyle").CstyleBehaviour;return[o,function(){this.HighlightRules=s,this.$outdent=new c,this.$behaviour=new m,this.foldingRules=new e,this.indentKeywords=this.foldingRules.indentKeywords}]},buildRubyMode(){const[t,e]=this.buildLanguageMode(i.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,i.require("ace/mode/folding/ruby").FoldMode);let o=i.require("ace/mode/ruby").Mode;return t.inherits(e,o),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e},buildPythonMode(){const[t,e]=this.buildLanguageMode(i.require("ace/mode/python_highlight_rules").PythonHighlightRules,i.require("ace/mode/folding/pythonic").FoldMode);let o=i.require("ace/mode/python").Mode;return t.inherits(e,o),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e},buildJsonMode(){const[t,e]=this.buildLanguageMode(i.require("ace/mode/json_highlight_rules").JsonHighlightRules,i.require("ace/mode/folding/ruby").FoldMode);let o=i.require("ace/mode/json").Mode;return t.inherits(e,o),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e},buildMarkdownMode(){const[t,e]=this.buildLanguageMode(i.require("ace/mode/markdown_highlight_rules").MarkdownHighlightRules,i.require("ace/mode/folding/markdown").FoldMode);let o=i.require("ace/mode/markdown").Mode;return t.inherits(e,o),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e}}},x={mixins:[n],props:{content:{type:String,required:!0},type:{type:String,default:null},name:{type:String,default:null},modelValue:Boolean,filename:{type:String,default:null}},emits:["update:modelValue"],data(){return{editor:null,mode:null}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},title:function(){return`${this.type}: ${this.name}`}},mounted(){this.editor=ace.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");let t=null;switch(this.filename?this.filename.split(".").pop():"txt"){case"json":const e=this.buildJsonMode();t=new e,this.editor.setOptions({useWorker:!1});break;case"py":case"pyi":const o=this.buildPythonMode();t=new o;break;case"md":const h=this.buildMarkdownMode();t=new h;break;default:const p=this.buildRubyMode();t=new p;break}this.editor.session.setMode(t),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),this.editor.focus(),this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{close:function(){this.show=!this.show},download:function(){const t=new Blob([this.editor.getValue()],{type:"text/plain"});let e=`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`;this.filename&&(e=this.filename);const o=document.createElement("a");o.href=URL.createObjectURL(t),o.setAttribute("download",e),o.click()}}},v=["textContent"],q={class:"mx-2"},$={ref:"editor",class:"editor"};function R(t,e,o,h,p,s){const c=a("v-spacer"),m=a("v-btn"),d=a("v-toolbar"),V=a("v-card-text"),C=a("v-card-actions"),S=a("v-card"),L=a("v-dialog");return w(),b(L,{modelValue:s.show,"onUpdate:modelValue":e[1]||(e[1]=k=>s.show=k),width:"85vw"},{default:l(()=>[r(S,null,{default:l(()=>[r(d,{height:"24"},{default:l(()=>[r(c),u("span",{textContent:_(s.title)},null,8,v),r(c),u("div",q,[r(m,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:s.download},null,8,["onClick"])])]),_:1}),r(V,null,{default:l(()=>[u("pre",$,null,512)]),_:1}),r(C,{class:"pr-6 pb-4 pt-0"},{default:l(()=>[r(c),r(m,{variant:"flat",onClick:e[0]||(e[0]=k=>s.show=!s.show)},{default:l(()=>[...e[2]||(e[2]=[y(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const B=M("S",g(x,[["render",R],["__scopeId","data-v-a87eb5ef"]]))})}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./main-6a328857fae6aab0f418.js","vue","single-spa","./SimpleTextDialog-dn_TSiQ7-20dabd0df19c3059cf0f.js","vue-router","pinia","vuetify"],(function(U,le){"use strict";var V,D,T,k,N,c,u,p,a,n,d,v,F,y,_,C,h,I,j,w,E;return{setters:[o=>{V=o.k,D=o.R,T=o.x,k=o.S,N=o.e},o=>{c=o.resolveComponent,u=o.openBlock,p=o.createElementBlock,a=o.createVNode,n=o.withCtx,d=o.createTextVNode,v=o.createElementVNode,F=o.createBlock,y=o.Fragment,_=o.renderList,C=o.createSlots,h=o.toDisplayString,I=o.normalizeClass,j=o.mergeProps,w=o.createCommentVNode},null,o=>{E=o.E},null,null,null],execute:(function(){const o={components:{DownloadDialog:T,SimpleTextDialog:E},mixins:[D],data(){return{showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",files:[],loadingPackage:!1,progress:0,gems:[],python:{},pythonTrees:{},expandedPlugins:{},processes:{},timeZone:"local",showPluginSelect:!1,selectedPlugin:null,pendingFiles:null}},computed:{pythonVenvOptions(){return Object.keys(this.python).filter(e=>e!=="cached"&&e!=="shared")},orderedPluginNames(){const e=Object.keys(this.python),t=new Set(["cached","shared"]),r=e.filter(i=>i==="cached"),m=e.filter(i=>!t.has(i)).sort(),l=e.filter(i=>i==="shared");return[...r,...m,...l]}},created(){new N().get_setting("time_zone").then(e=>{e&&(this.timeZone=e)}).catch(()=>{})},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(e){this.processOutput=e.output,this.showProcessOutput=!0},update(){k.get("/openc3-api/packages").then(e=>{this.gems=e.data.ruby,this.python=e.data.python}),k.get("/openc3-api/packages/trees").then(e=>{this.pythonTrees=e.data})},updateProcesses:function(){k.get("/openc3-api/process_status/package_?substr=true").then(e=>{this.processes=e.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},2500)})},selectFile(){this.progress=0,this.$refs.fileInput.click()},fileChange(e){const t=e.target.files;if(t.length>0){const r=[...t].some(l=>!l.name.endsWith(".gem")),m=Object.keys(this.python).filter(l=>l!=="shared");r&&m.length>0?(this.pendingFiles=t,this.selectedPlugin=null,this.showPluginSelect=!0):this.uploadFiles(t)}},uploadFiles(e,t=null){this.loadingPackage=!0;let r=this;const m=[...e].map(l=>{const i=new FormData;return i.append("package",l,l.name),t&&!l.name.endsWith(".gem")&&i.append("plugin",t),k.post("/openc3-api/packages",{data:i,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(g){let f=Math.round(g.loaded*100/g.total);r.progress=f}})});Promise.all(m).then(l=>{this.$notify.normal({body:`Uploaded ${l.length} package${l.length>1?"s":""}`}),this.loadingPackage=!1,this.files=[],setTimeout(()=>{this.updateProcesses()},2500)}).catch(l=>{this.loadingPackage=!1})},confirmPluginInstall(){const e=this.pendingFiles,t=this.selectedPlugin;this.showPluginSelect=!1,this.pendingFiles=null,this.uploadFiles(e,t)},cancelPluginSelect(){this.showPluginSelect=!1,this.pendingFiles=null,this.selectedPlugin=null,this.$refs.fileInput.value=""},togglePlugin(e){this.expandedPlugins[e]=!this.expandedPlugins[e]},formattedPackages(e,t){return this.pythonTrees[e]?this.parseTreeOutput(this.pythonTrees[e]):t.map(r=>this.formatPackageName(r))},formatPackageName(e){const t=e.match(/^(.+?)-(\d.*)$/);return t?`${t[1]}==${t[2]}`:e},parseTreeOutput(e){const t=e.split(`
|
|
2
|
+
`),r=[];for(const m of t){const l=m.trim();if(!l||l.startsWith("Package")||l.startsWith("---"))continue;const i=l.split(/\s+/);i.length>=2&&r.push(`${i[0]}==${i[1]}`)}return r},formatPluginName(e){return e==="cached"?"Cached":e==="shared"?"Shared":e.replace(/-\d[\d_a-z]*_gem__\d+$/,"").replace(/__\d+$/,"")},venvPath(e){return e==="cached"?"/gems/uv":e==="shared"?"/gems/python_packages":`/gems/plugin_venvs/${e}/.venv`},confirmAndDeletePackage(e,t){this.$dialog.confirm(`Are you sure you want to remove: ${e}`,{okText:"Delete",cancelText:"Cancel"}).then(()=>k.delete(t)).then(()=>{this.$notify.normal({body:`Removed package ${e}`}),setTimeout(()=>{this.updateProcesses()},2500)}).catch(r=>{r&&this.$notify.serious({body:`Failed to remove package ${e}`})})},deletePackage(e){this.confirmAndDeletePackage(e,`/openc3-api/packages/${e}`)},deletePythonPackage(e,t){const r=e.replace("==","-");this.confirmAndDeletePackage(e,`/openc3-api/packages/${r}?plugin=${t}`)}}},B=["textContent"],z=["textContent"],A={key:0};function L(e,t,r,m,l,i){const g=c("v-btn"),f=c("v-col"),W=c("rux-progress"),x=c("v-row"),$=c("v-list-item-title"),Z=c("v-list-item-subtitle"),G=c("v-tooltip"),b=c("v-list-item"),S=c("v-divider"),R=c("v-list"),K=c("v-icon"),M=c("v-list-subheader"),Q=c("download-dialog"),X=c("simple-text-dialog"),Y=c("v-card-title"),q=c("v-select"),H=c("v-card-text"),J=c("v-spacer"),ee=c("v-card-actions"),te=c("v-card"),ae=c("v-dialog");return u(),p("div",null,[a(x,{"no-gutters":"",align:"center",class:"px-2"},{default:n(()=>[a(f,{class:"pa-2 mt-2"},{default:n(()=>[a(g,{onClick:i.selectFile},{default:n(()=>[...t[5]||(t[5]=[d("Install Package",-1)])]),_:1},8,["onClick"]),v("input",{ref:"fileInput",style:{display:"none"},type:"file",onChange:t[0]||(t[0]=(...s)=>i.fileChange&&i.fileChange(...s))},null,544)]),_:1}),a(f,{class:"ml-4 mr-2",cols:"4"},{default:n(()=>[a(W,{value:l.progress},null,8,["value"])]),_:1})]),_:1}),Object.keys(l.processes).length>0?(u(),F(R,{key:0,class:"list","data-test":"process-list"},{default:n(()=>[a(x,{"no-gutters":"",class:"px-4"},{default:n(()=>[a(f,{class:"text-h6"},{default:n(()=>[...t[6]||(t[6]=[d("Process List",-1)])]),_:1}),a(f,{align:"right"},{default:n(()=>[...t[7]||(t[7]=[v("div",null,"Showing last 10 min of activity",-1)])]),_:1})]),_:1}),(u(!0),p(y,null,_(l.processes,s=>(u(),p("div",{key:s.name},[a(b,null,C({default:n(()=>[a($,null,{default:n(()=>[v("span",{class:I(s.state.toLowerCase()),textContent:h(`Processing ${s.process_type}: ${s.detail} - ${s.state}`)},null,10,B)]),_:2},1024),a(Z,null,{default:n(()=>[v("span",{textContent:h(" Updated At: "+e.formatNanoseconds(s.updated_at,l.timeZone))},null,8,z)]),_:2},1024)]),_:2},[s.state!=="Running"?{name:"append",fn:n(()=>[a(G,{"open-delay":600,location:"top"},{activator:n(({props:P})=>[a(g,j({ref_for:!0},P,{icon:"mdi-eye",variant:"text","aria-label":"Show Output",onClick:O=>i.showOutput(s)}),null,16,["onClick"])]),default:n(()=>[t[8]||(t[8]=v("span",null,"Show Output",-1))]),_:2},1024)]),key:"0"}:void 0]),1024),a(S)]))),128))]),_:1})):w("",!0),a(R,{class:"list","data-test":"packageList"},{default:n(()=>[a(x,{class:"px-4"},{default:n(()=>[a(f,{class:"text-h6"},{default:n(()=>[...t[9]||(t[9]=[d("Ruby Gems",-1)])]),_:1})]),_:1}),(u(!0),p(y,null,_(l.gems,(s,P)=>(u(),p("div",{key:P},[a(b,null,{append:n(()=>[a(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Ruby Gem",onClick:O=>i.deletePackage(s)},null,8,["onClick"])]),default:n(()=>[a($,null,{default:n(()=>[d(h(s),1)]),_:2},1024)]),_:2},1024),a(S)]))),128)),a(x,{class:"px-4"},{default:n(()=>[a(f,{class:"text-h6"},{default:n(()=>[...t[10]||(t[10]=[d("Python Packages",-1)])]),_:1})]),_:1}),(u(!0),p(y,null,_(i.orderedPluginNames,s=>(u(),p("div",{key:s},[a(M,{class:"font-weight-bold plugin-header",onClick:P=>i.togglePlugin(s)},{default:n(()=>[a(K,{size:"small",class:"mr-1"},{default:n(()=>[d(h(l.expandedPlugins[s]?"mdi-chevron-down":"mdi-chevron-right"),1)]),_:2},1024),d(" "+h(i.formatPluginName(s))+" ("+h(l.python[s].length)+") ["+h(i.venvPath(s))+"] ",1)]),_:2},1032,["onClick"]),l.expandedPlugins[s]?(u(),p("div",A,[(u(!0),p(y,null,_(i.formattedPackages(s,l.python[s]),(P,O)=>(u(),p("div",{key:`${s}-${O}`},[a(b,{class:"pl-8"},C({default:n(()=>[a($,null,{default:n(()=>[d(h(P),1)]),_:2},1024)]),_:2},[s!=="cached"&&s!=="shared"?{name:"append",fn:n(()=>[a(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Python Package",onClick:se=>i.deletePythonPackage(P,s)},null,8,["onClick"])]),key:"0"}:void 0]),1024),a(S)]))),128))])):w("",!0)]))),128))]),_:1}),a(Q,{modelValue:l.showDownloadDialog,"onUpdate:modelValue":t[1]||(t[1]=s=>l.showDownloadDialog=s)},null,8,["modelValue"]),a(X,{modelValue:l.showProcessOutput,"onUpdate:modelValue":t[2]||(t[2]=s=>l.showProcessOutput=s),title:"Process Output",text:l.processOutput},null,8,["modelValue","text"]),a(ae,{modelValue:l.showPluginSelect,"onUpdate:modelValue":t[4]||(t[4]=s=>l.showPluginSelect=s),"max-width":"500",persistent:""},{default:n(()=>[a(te,null,{default:n(()=>[a(Y,null,{default:n(()=>[...t[11]||(t[11]=[d("Select Plugin Environment",-1)])]),_:1}),a(H,null,{default:n(()=>[a(q,{modelValue:l.selectedPlugin,"onUpdate:modelValue":t[3]||(t[3]=s=>l.selectedPlugin=s),items:i.pythonVenvOptions,label:"Install into python venv",density:"comfortable","data-test":"python-venv-select"},null,8,["modelValue","items"])]),_:1}),a(ee,null,{default:n(()=>[a(J),a(g,{variant:"text",onClick:i.cancelPluginSelect},{default:n(()=>[...t[12]||(t[12]=[d("Cancel",-1)])]),_:1},8,["onClick"]),a(g,{color:"primary",variant:"flat",disabled:!l.selectedPlugin,onClick:i.confirmPluginInstall},{default:n(()=>[...t[13]||(t[13]=[d(" OK ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const ne=U("default",V(o,[["render",L],["__scopeId","data-v-8b01aaae"]]))})}}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
System.register(["./main-6a328857fae6aab0f418.js","vue","single-spa","./SimpleTextDialog-dn_TSiQ7-20dabd0df19c3059cf0f.js","./settings-CEBZz77m-520d12b72b93c319ccfd.js","vue-router","pinia","vuetify"],(function(ie,tt){"use strict";var A,W,Y,Z,b,R,G,l,r,w,n,a,f,u,g,I,E,v,z,O,y,L,j,N,J,Q;return{setters:[h=>{A=h.k,W=h.R,Y=h.$,Z=h.g,b=h.S,R=h.e,G=h.n},h=>{l=h.resolveComponent,r=h.openBlock,w=h.createElementBlock,n=h.createVNode,a=h.withCtx,f=h.createTextVNode,u=h.createElementVNode,g=h.createBlock,I=h.Fragment,E=h.renderList,v=h.toDisplayString,z=h.normalizeClass,O=h.mergeProps,y=h.createCommentVNode,L=h.normalizeProps,j=h.guardReactiveProps,N=h.withModifiers},null,h=>{J=h.E},h=>{Q=h.n},null,null,null],execute:(function(){const h="store_url",X="https://store.openc3.com",K={props:{id:Number,name:String,title:String,author:String,author_extra:Object,description:String,keywords:Array,img_path:String,image_url:String,licenses:Array,homepage:String,repository:String,gem_url:String,minimum_cosmos_version:String,checksum:String,versions:Array,current_version_id:Number,access:String,entitled:Boolean,installAllowed:{type:Boolean,default:!0}},data:function(){return{_api:new R,_storeUrl:"",imageContents:null}},computed:{plugin:function(){return{id:this.id,name:this.name,title:this.title,author:this.author,author_extra:this.author_extra,description:this.description,keywords:this.keywords,img_path:this.img_path,image_url:this.image_url,licenses:this.licenses,homepage:this.homepage,repository:this.repository,gem_url:this.gem_url,minimum_cosmos_version:this.minimum_cosmos_version,checksum:this.checksum,versions:this.versions,current_version_id:this.current_version_id,access:this.access,entitled:this.entitled,installAllowed:this.installAllowed}},canInstall:function(){return this.entitled&&this.installAllowed},installTooltip:function(){return this.installAllowed?this.accessTooltip:"Only admin users can install plugins."},imageContentsWithMimeType:function(){if(this.imageContents){const e={"image/bmp":[66,77],"image/jpeg":[255,216,255],"image/png":[137,80,78,71],"image/gif":[71,73,70,56],"image/webp":[82,73,70,70]},t=new TextEncoder().encode(globalThis.atob(this.imageContents.slice(0,6))).slice(1),o=Object.entries(e).find(([d,i])=>i.every((s,c)=>s===t[c]));if(o){const[d]=o;return`data:${d};base64,${this.imageContents}`}}},_navigableStoreUrl:function(){return this._storeUrl.replace("host.docker.internal","localhost")},storeLink:function(){return this.hasStoreListing&&this._navigableStoreUrl?new URL(`/cosmos_plugins/${this.id}`,this._navigableStoreUrl):null},hasStoreListing:function(){return!!this.id},hasDetails:function(){return this.hasStoreListing?!0:!!this.title&&!!this.description},isPluginInstalled:function(){return!!this.name},accessTooltip:function(){return this.entitled?"":localStorage.getItem("pluginStore.isApiKeySet")!=="true"?"Please add your OpenC3 Store API key using the settings cog icon.":this.access==="enterprise"?"A COSMOS Enterprise license is required for this plugin.":"Please contact sales@openc3.com for access to this plugin."}},created:async function(){try{this._storeUrl=await this._api.get_setting(h)||X}catch{this._storeUrl=X}if(this.img_path)try{const e=new URLSearchParams({volume:"OPENC3_GEMS_VOLUME",scope:globalThis.openc3Scope}),{data:t}=await b.get(`/openc3-api/storage/download_file/${encodeURIComponent(this.img_path)}?${e}`);this.imageContents=t.contents}catch{}}},se={mixins:[K],props:{modelValue:Boolean},emits:["triggerInstall","triggerUninstall","update:modelValue"],data(){return{showDialog:!1,showCopiedTooltip:!1,installedCosmosVersion:null,selectedVersionId:null}},computed:{isDialogOpen:{get:function(){return this.modelValue||this.showDialog},set:function(e){this.showDialog=e,this.$emit("update:modelValue",e)}},hasVersions:function(){return this.versions&&this.versions.length>0},selectedVersion:function(){if(!this.hasVersions)return null;const e=this.selectedVersionId||this.current_version_id;return this.versions.find(t=>t.id===e)||this.versions[0]},versionOptions:function(){return this.hasVersions?this.versions.map(e=>({title:e.version_number,value:e.id})):[]},versionTitle:function(){return this.selectedVersion?.title||this.title},versionDescription:function(){return this.selectedVersion?.description||this.description},versionKeywords:function(){return this.selectedVersion?.keywords||this.keywords},versionLicenses:function(){return this.selectedVersion?.licenses||this.licenses},versionHomepage:function(){return this.selectedVersion?.homepage||this.homepage},versionRepository:function(){return this.selectedVersion?.repository||this.repository},versionGemUrl:function(){return this.selectedVersion?.gem_url||this.gem_url},versionMinimumCosmosVersion:function(){return this.selectedVersion?.minimum_cosmos_version||this.minimum_cosmos_version},versionChecksum:function(){return this.selectedVersion?.checksum||this.checksum},versionImageUrl:function(){return this.selectedVersion?.image_url||this.image_url},formattedStoreLink:function(){return this._navigableStoreUrl.split("://").at(-1)},versionsAreCompatible:function(){return!this.installedCosmosVersion||!this.versionMinimumCosmosVersion?null:G.gte(this.installedCosmosVersion,this.versionMinimumCosmosVersion)}},created:function(){b.get("/openc3-api/info").then(({data:e})=>{this.installedCosmosVersion=e.version})},mounted:function(){this.selectedVersionId=this.current_version_id},methods:{openDialog:function(){this.isDialogOpen=!0},closeDialog:function(){this.isDialogOpen=!1},install:function(){this.$emit("triggerInstall",{id:this.id,version_id:this.selectedVersionId||this.current_version_id})},uninstall:function(){this.$emit("triggerUninstall",{id:this.id,version_id:this.selectedVersionId||this.current_version_id})},copyChecksum:function(){navigator.clipboard.writeText(this.versionChecksum),this.showCopiedTooltip=!0,setTimeout(()=>{this.showCopiedTooltip=!1},1e3)}}},ne=["textContent"],oe={key:0,class:"ml-1 font-italic"},le={class:"plugin-image-backdrop"},ae=["textContent"],re={class:"mt-3 text-caption font-italic"},ue={key:1,class:"font-italic"},ce={class:"mt-3 text-caption font-italic"},de={class:"mt-3"},pe={key:0},ge={key:1};function he(e,t,o,d,i,s){const c=l("v-spacer"),m=l("v-btn"),p=l("v-tooltip"),S=l("v-toolbar"),P=l("v-icon"),V=l("v-select"),k=l("v-card-subtitle"),U=l("v-img"),D=l("v-chip"),C=l("v-text-field"),M=l("v-card-text"),$=l("v-card-actions"),B=l("v-card"),T=l("v-dialog");return r(),g(T,{modelValue:s.isDialogOpen,"onUpdate:modelValue":t[3]||(t[3]=x=>s.isDialogOpen=x),"max-width":"500"},{default:a(()=>[n(B,null,{default:a(()=>[n(S,{height:"24"},{default:a(()=>[n(c),u("span",{textContent:v(s.versionTitle)},null,8,ne),n(c),n(p,{location:"top"},{activator:a(({props:x})=>[u("div",L(j(x)),[n(m,{href:e.storeLink,target:"_blank",icon:"mdi-open-in-new",size:"small",variant:"plain"},null,8,["href"])],16)]),default:a(()=>[u("span",null," View at "+v(s.formattedStoreLink),1)]),_:1}),n(m,{icon:"mdi-close-box",variant:"text",density:"compact",onClick:s.closeDialog},null,8,["onClick"])]),_:1}),n(k,{class:"d-flex align-center justify-space-between subtitle-with-version"},{default:a(()=>[u("div",null,[t[4]||(t[4]=f(" By ",-1)),u("strong",null,v(e.author),1),e.author_extra?.badge_text?(r(),w("span",oe,v(e.author_extra.badge_text),1)):y("",!0),e.author_extra?.badge_icon?(r(),g(P,{key:1,icon:e.author_extra.badge_icon,size:18,class:"ml-1"},null,8,["icon"])):y("",!0)]),s.hasVersions?(r(),g(V,{key:0,modelValue:i.selectedVersionId,"onUpdate:modelValue":t[0]||(t[0]=x=>i.selectedVersionId=x),items:s.versionOptions,"item-title":"title","item-value":"value",label:"Version",density:"compact",variant:"outlined","hide-details":"",class:"mt-1 version-select"},null,8,["modelValue","items"])):y("",!0)]),_:1}),n(M,null,{default:a(()=>[u("div",le,[e.imageContentsWithMimeType?(r(),g(U,{key:0,src:e.imageContentsWithMimeType},null,8,["src"])):s.versionImageUrl?(r(),g(U,{key:1,src:s.versionImageUrl},null,8,["src"])):y("",!0)]),u("div",{class:"mt-3",textContent:v(s.versionDescription)},null,8,ae),u("div",re,[t[5]||(t[5]=f(" Keywords: ",-1)),s.versionKeywords?(r(!0),w(I,{key:0},E(s.versionKeywords,x=>(r(),g(D,{key:x,variant:"flat",color:"primary",size:"x-small",class:"ml-1"},{default:a(()=>[f(v(x),1)]),_:2},1024))),128)):(r(),w("span",ue," none "))]),u("div",ce,[t[6]||(t[6]=f(" Licenses: ",-1)),(r(!0),w(I,null,E(s.versionLicenses,x=>(r(),g(D,{key:x,size:"x-small",class:"ml-1"},{default:a(()=>[f(v(x),1)]),_:2},1024))),128))]),u("div",de,[t[7]||(t[7]=u("span",{class:"text-caption font-italic"}," Minimum COSMOS version: ",-1)),f(" "+v(s.versionMinimumCosmosVersion)+" ",1),s.versionsAreCompatible!==null?(r(),g(p,{key:0,"open-delay":600,location:"top"},{activator:a(({props:x})=>[u("span",L(j(x)),[n(P,{icon:s.versionsAreCompatible?"mdi-check-circle":"mdi-alert",size:"small"},null,8,["icon"])],16)]),default:a(()=>[s.versionsAreCompatible?(r(),w("span",pe," Your version of COSMOS meets the requirements. ")):(r(),w("span",ge," Your version of COSMOS is out of date. You can still install this plugin, but it might not work correctly. "))]),_:1})):y("",!0)]),n(C,{modelValue:s.versionChecksum,"onUpdate:modelValue":t[2]||(t[2]=x=>s.versionChecksum=x),class:"mt-3",label:"SHA256",variant:"solo",density:"compact","hide-details":"",readonly:""},{append:a(()=>[n(p,{modelValue:i.showCopiedTooltip,"onUpdate:modelValue":t[1]||(t[1]=x=>i.showCopiedTooltip=x),location:"top","open-on-hover":!1},{activator:a(({props:x})=>[n(m,O(x,{icon:"mdi-content-copy",variant:"text",density:"compact",onClick:s.copyChecksum}),null,16,["onClick"])]),default:a(()=>[t[8]||(t[8]=u("span",null,"Copied!",-1))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),n($,{class:"justify-start px-6"},{default:a(()=>[e.isPluginInstalled?(r(),g(m,{key:0,text:"Uninstall","append-icon":"mdi-puzzle-remove",variant:"outlined",color:"red",onClick:s.uninstall},null,8,["onClick"])):(r(),g(p,{key:1,"open-delay":600,location:"top"},{activator:a(({props:x})=>[u("span",L(j(e.canInstall?null:x)),[n(m,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",disabled:!e.canInstall,onClick:s.install},null,8,["disabled","onClick"])],16)]),default:a(()=>[u("span",null,v(e.installTooltip),1)]),_:1})),s.versionRepository?(r(),g(m,{key:2,text:"Repository","append-icon":"mdi-open-in-new",variant:"outlined",href:s.versionRepository,target:"_blank"},null,8,["href"])):y("",!0),s.versionHomepage?(r(),g(m,{key:3,text:"Homepage","append-icon":"mdi-open-in-new",variant:"outlined",href:s.versionHomepage,target:"_blank"},null,8,["href"])):y("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ee=A(se,[["render",he],["__scopeId","data-v-ac4e664f"]]),me={components:{PluginDetailsDialog:ee},mixins:[K],emits:["triggerInstall"],data(){return{showDialog:!1}},methods:{openDialog:function(){this.showDialog=!0},install:function(e){this.$emit("triggerInstall",{id:this.id,version_id:e?.version_id||this.current_version_id})}}},fe={key:0,class:"ml-1 font-italic"},ve={class:"plugin-image-backdrop"},ye=["textContent"];function _e(e,t,o,d,i,s){const c=l("v-card-title"),m=l("v-icon"),p=l("v-card-subtitle"),S=l("v-img"),P=l("v-card-text"),V=l("v-spacer"),k=l("v-btn"),U=l("v-tooltip"),D=l("v-card-actions"),C=l("v-card"),M=l("plugin-details-dialog");return r(),w(I,null,[n(C,{height:"350",class:"d-flex flex-column",onClick:s.openDialog},{default:a(()=>[n(c,{class:"d-flex align-center justify-content-space-between"},{default:a(()=>[f(v(e.title),1)]),_:1}),n(p,{class:"d-flex align-center justify-content-space-between"},{default:a(()=>[u("div",null,[t[1]||(t[1]=f(" By ",-1)),u("strong",null,v(e.author),1),e.author_extra?.badge_text?(r(),w("span",fe,v(e.author_extra.badge_text),1)):y("",!0),e.author_extra?.badge_icon?(r(),g(m,{key:1,icon:e.author_extra.badge_icon,size:18,class:"ml-1"},null,8,["icon"])):y("",!0)])]),_:1}),n(P,null,{default:a(()=>[u("div",ve,[e.image_url?(r(),g(S,{key:0,src:e.image_url,"max-height":"160"},null,8,["src"])):y("",!0)]),u("div",{class:z({"truncate-description":!0,"truncate-2":!!e.image_url,"truncate-10":!e.image_url}),textContent:v(e.description)},null,10,ye)]),_:1}),n(V),n(D,{class:"flex-wrap"},{default:a(()=>[n(U,{"open-delay":600,location:"top"},{activator:a(({props:$})=>[u("span",L(j(e.canInstall?null:$)),[n(k,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",disabled:!e.canInstall,onClick:N(s.install,["stop"])},null,8,["disabled","onClick"])],16)]),default:a(()=>[u("span",null,v(e.installTooltip),1)]),_:1})]),_:1})]),_:1},8,["onClick"]),i.showDialog?(r(),g(M,O({key:0,modelValue:i.showDialog,"onUpdate:modelValue":t[0]||(t[0]=$=>i.showDialog=$)},e.plugin,{onTriggerInstall:s.install}),null,16,["modelValue","onTriggerInstall"])):y("",!0)],64)}const we=A(me,[["render",_e],["__scopeId","data-v-825f4373"]]),H="store_url",q="store_api_key",F="DEFAULT",xe="https://store.openc3.com",ke={mixins:[Q],props:{modelValue:Boolean},emits:["update:modelValue","update:storeUrl"],data(){return{showDialog:!1,storeUrl:"",apiKey:null,rules:{required:e=>!!e||"Required",url:e=>{try{new URL(e)}catch{return"Not a valid URL"}return!0}}}},watch:{apiKey:function(e){localStorage.setItem("pluginStore.isApiKeySet",!!e)},modelValue:function(e){e&&(this.showDialog=e)},showDialog:function(e){e||this.$emit("update:modelValue",e)}},created:function(){this.loadSetting(H,{scope:F}),this.loadSetting(q,{scope:F}),this.$emit("update:storeUrl",this.storeUrl)},methods:{save:function(){this.saveSetting(H,this.storeUrl,{scope:F}),this.saveSetting(q,this.apiKey,{scope:F}),this.$emit("update:storeUrl",this.storeUrl),this.showDialog=!1},parseSetting:function(e,{setting:t}){switch(t){case H:this.storeUrl=e||xe;break;case q:this.apiKey=e||"";break}}}};function be(e,t,o,d,i,s){const c=l("v-spacer"),m=l("v-toolbar"),p=l("v-alert"),S=l("v-text-field"),P=l("v-card-text"),V=l("v-btn"),k=l("v-card-actions"),U=l("v-card"),D=l("v-dialog");return r(),g(D,{modelValue:i.showDialog,"onUpdate:modelValue":t[4]||(t[4]=C=>i.showDialog=C),width:"600"},{default:a(()=>[n(m,{height:"24"},{default:a(()=>[n(c),t[5]||(t[5]=u("span",null,"Plugin Store Settings",-1)),n(c)]),_:1}),n(U,{class:"pa-3"},{default:a(()=>[n(p,{modelValue:e.errorLoading,"onUpdate:modelValue":t[0]||(t[0]=C=>e.errorLoading=C),type:"error",closable:"",density:"compact"},{default:a(()=>[f(" Error loading previous configuration due to "+v(e.errorText),1)]),_:1},8,["modelValue"]),n(p,{modelValue:e.errorSaving,"onUpdate:modelValue":t[1]||(t[1]=C=>e.errorSaving=C),type:"error",closable:"",density:"compact"},{default:a(()=>[f(" Error saving due to "+v(e.errorText),1)]),_:1},8,["modelValue"]),n(P,null,{default:a(()=>[n(S,{modelValue:i.storeUrl,"onUpdate:modelValue":t[2]||(t[2]=C=>i.storeUrl=C),label:"Store URL",rules:[i.rules.required,i.rules.url]},null,8,["modelValue","rules"]),n(S,{modelValue:i.apiKey,"onUpdate:modelValue":t[3]||(t[3]=C=>i.apiKey=C),type:"password",label:"API Key"},null,8,["modelValue"])]),_:1}),n(k,null,{default:a(()=>[n(V,{color:"success",variant:"text",text:"Save","data-test":"save-store-settings-btn",onClick:s.save},null,8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ce=A(ke,[["render",be]]),te="https://store.openc3.com",Pe={components:{PluginCard:we,PluginStoreSettingsDialog:Ce},emits:["close","triggerInstall"],data(){return{api:new R,search:"",showSettingsDialog:!1,plugins:[],storeError:null,storeUrl:te,isEnterprise:!1,isAdmin:!0,isApiKeySet:localStorage.getItem("pluginStore.isApiKeySet")==="true",loading:!1}},computed:{showApiKeyBanner:function(){return this.isEnterprise&&!this.isApiKeySet},accountSettingsUrl:function(){const e=(this.storeUrl||te).replace("host.docker.internal","localhost");return new URL("account",e)},filteredPlugins:function(){let e=this.plugins;return this.search.length&&(e=e.filter(t=>t.title.toLowerCase().includes(this.search.toLowerCase()))),e},formattedStoreUrl:function(){return this.storeUrl.split("://").at(-1)},installAllowed:function(){return!this.isEnterprise||this.isAdmin}},watch:{showSettingsDialog:function(e){e||(this.isApiKeySet=localStorage.getItem("pluginStore.isApiKeySet")==="true")}},mounted:function(){this.fetchPluginStoreData(),this.fetchUserContext()},methods:{fetchPluginStoreData:function(){this.loading=!0,b.get("/openc3-api/pluginstore").then(({data:e})=>{if(e.error){const{title:t,body:o}=e;this.storeError={title:t,body:o},this.plugins=[]}else this.storeError=null,this.plugins=e}).finally(()=>{this.loading=!1})},fetchUserContext:function(){b.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=!!t.enterprise});const e=OpenC3Auth.userroles()||[];this.isAdmin=e.includes("admin")},close:function(){this.$emit("close")},install:function(e){this.$emit("triggerInstall",e),this.close()},openSettings:function(){this.showSettingsDialog=!0},updatePluginStore:function(e){this.storeUrl=e,this.loading=!0,this.api.update_plugin_store().then(t=>{this.fetchPluginStoreData()})}}},Ve={class:"d-flex justify-content-space-between"},Se={class:"d-inline-flex align-center w-100"},Ue=["href"],Te={key:2,class:"d-flex justify-center align-center py-12","data-test":"plugin-store-loading"};function De(e,t,o,d,i,s){const c=l("v-spacer"),m=l("v-btn"),p=l("v-tooltip"),S=l("v-text-field"),P=l("v-icon"),V=l("v-alert"),k=l("v-progress-circular"),U=l("plugin-card"),D=l("v-col"),C=l("v-row"),M=l("v-container"),$=l("v-sheet"),B=l("plugin-store-settings-dialog");return r(),w(I,null,[n($,{class:"pb-11 pt-8 px-8",height:"100%"},{default:a(()=>[u("div",Ve,[t[2]||(t[2]=u("div",null,[u("div",{class:"text-h3 mb-3"},"OpenC3 Plugin Store"),u("div",{class:"text-subtitle-1"}," Browse plugins made by OpenC3 and the COSMOS community ")],-1)),n(c),n(m,{icon:"mdi-cog",variant:"text",onClick:s.openSettings},null,8,["onClick"]),n(p,{location:"top"},{activator:a(({props:T})=>[u("div",L(j(T)),[n(m,{href:i.storeUrl,target:"_blank",icon:"mdi-open-in-new",variant:"text",class:"mx-2"},null,8,["href"])],16)]),default:a(()=>[u("span",null," Open "+v(s.formattedStoreUrl),1)]),_:1}),n(m,{icon:"mdi-close",variant:"text",onClick:s.close},null,8,["onClick"])]),u("div",Se,[n(S,{modelValue:i.search,"onUpdate:modelValue":t[0]||(t[0]=T=>i.search=T),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"search-plugin-store"},null,8,["modelValue"])]),n(c),s.showApiKeyBanner?(r(),g(V,{key:0,class:"my-3",type:"info",density:"compact","data-test":"api-key-banner"},{default:a(()=>[t[4]||(t[4]=f(" You're using COSMOS Enterprise, but you haven't set an OpenC3 Store API key yet. You must set this to access Enterprise plugins. ",-1)),t[5]||(t[5]=u("br",null,null,-1)),t[6]||(t[6]=f(" Visit the ",-1)),u("a",{href:s.accountSettingsUrl,target:"_blank",class:"text-white"},[t[3]||(t[3]=f(" OpenC3 Store account settings",-1)),n(P,{icon:"mdi-open-in-new",size:"x-small"})],8,Ue),t[7]||(t[7]=f(" to generate an API key. Then, return here and open the Plugin Store settings with the ",-1)),n(P,{icon:"mdi-cog",size:"small"}),t[8]||(t[8]=f(" icon above, and finally paste your API key into the API key field. ",-1))]),_:1})):y("",!0),t[10]||(t[10]=u("span",{class:""}," Click on a plugin to see more information about it ",-1)),i.storeError?(r(),g(V,{key:1,class:"mt-6",color:"error",title:i.storeError.title,text:i.storeError.body},null,8,["title","text"])):i.loading?(r(),w("div",Te,[n(k,{indeterminate:"",color:"primary",size:"48"}),t[9]||(t[9]=u("span",{class:"ml-4 text-subtitle-1"},"Loading plugins...",-1))])):(r(),g(M,{key:3},{default:a(()=>[n(C,null,{default:a(()=>[(r(!0),w(I,null,E(s.filteredPlugins,T=>(r(),g(D,{key:T.id,cols:"4"},{default:a(()=>[n(U,O({ref_for:!0},T,{"install-allowed":s.installAllowed,onTriggerInstall:s.install}),null,16,["install-allowed","onTriggerInstall"])]),_:2},1024))),128))]),_:1})]),_:1}))]),_:1}),n(B,{modelValue:i.showSettingsDialog,"onUpdate:modelValue":t[1]||(t[1]=T=>i.showSettingsDialog=T),"onUpdate:storeUrl":s.updatePluginStore},null,8,["modelValue","onUpdate:storeUrl"])],64)}const Ie=A(Pe,[["render",De]]),$e={components:{PluginDetailsDialog:ee},mixins:[K],props:{targets:{type:Array,default:()=>[]},isModified:Boolean,needsUvMigration:Boolean,microservices:{type:Object,default:()=>({})},scriptVersionsEnabled:Boolean},emits:["edit","delete","upgrade","migrate-to-uv"],data(){return{showCard:!1,exporting:!1,importing:!1}},computed:{pluginBaseName:function(){return this.name.split("__")[0].split("-").slice(0,-1).join("-")},displayTitle:function(){return this.title?this.title:this.name.replace(/^openc3-cosmos-/,"").replace(/-?\d+\.\d+\.\d+(?:\.pre\.beta\d+\.\d+)?\.gem(?:__\d+)?$/,"")},getMicroservicesForPlugin:function(){const e=[];for(const[t,o]of Object.entries(this.microservices))o.plugin===this.name&&e.push(t);return e},microserviceCount:function(){return this.getMicroservicesForPlugin.length}},methods:{openDetails:function(){this.hasDetails&&(this.showCard=!0)},downloadPlugin:function(){b.post(`/openc3-api/packages/${this.name}/download`).then(e=>{const t=window.atob(e.data.contents),o=new Uint8Array(t.length);for(let s=0;s<t.length;++s)o[s]=t.charCodeAt(s);const d=new Blob([o],{type:"application/zip"}),i=document.createElement("a");i.href=URL.createObjectURL(d),i.setAttribute("download",e.data.filename),i.click()})},downloadTarget:function(e){b.post(`/openc3-api/targets/${e}/download`).then(t=>{const o=window.atob(t.data.contents),d=new Uint8Array(o.length);for(let c=0;c<o.length;++c)d[c]=o.charCodeAt(c);const i=new Blob([d],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",t.data.filename),s.click()})},async exportHistory(){this.exporting=!0;try{const e=await b.get(`/script-api/scripts/plugin/${this.pluginBaseName}/history-export`,{responseType:"blob",headers:{Accept:"application/octet-stream"}});let t=`${this.pluginBaseName}-history.bundle`;const o=e.headers?.["content-disposition"];if(o){const s=/filename="?([^";]+)"?/.exec(o);s&&(t=s[1])}const d=URL.createObjectURL(e.data),i=document.createElement("a");i.href=d,i.download=t,document.body.appendChild(i),i.click(),i.remove(),URL.revokeObjectURL(d),this.$notify.normal({title:"History Exported",body:`Saved ${t}. Apply with: git clone ${t} local-repo`})}catch({response:e}){this.$notify.caution({title:"Export Failed",body:e?.data?.message||e?.statusText||"unknown"})}finally{this.exporting=!1}},pickImportFile(){this.$refs.importFileInput&&(this.$refs.importFileInput.value="",this.$refs.importFileInput.click())},async onImportFileSelected(e){const t=e.target.files&&e.target.files[0];if(t){this.importing=!0;try{const o=new FormData;o.append("bundle",t);const d=(await b.post(`/script-api/scripts/plugin/${this.pluginBaseName}/history-import`,{data:o,headers:{Accept:"application/json"}})).data||{};this.$notify.normal({title:d.reconciled?"History Imported (Reconciled)":"History Imported",body:d.message||"Imported."})}catch({response:o}){this.$notify.caution({title:"Import Failed",body:o?.data?.message||o?.statusText||"unknown"})}finally{this.importing=!1}}},edit:function(){this.$emit("edit")},upgrade:function(){this.$emit("upgrade")},viewMicroservices:function(){const e=this.getMicroservicesForPlugin.join(",");this.$router.push({path:"/tools/admin/microservices",query:{services:e}})},migrateToUv:function(){this.$emit("migrate-to-uv")},deletePrompt:function(){this.showCard=!1,this.$emit("delete")}}},Ae=["textContent"],Oe={class:"text-subtitle-2 v-list-item-subtitle pl-0"},Me={key:0},Ee=["onClick","textContent"],Le=["textContent"],je=["data-test"];function Be(e,t,o,d,i,s){const c=l("v-img"),m=l("v-icon"),p=l("v-list-item"),S=l("v-list"),P=l("v-menu"),V=l("plugin-details-dialog");return r(),w(I,null,[u("tr",{class:z({"cursor-pointer":e.hasDetails}),"data-test":"plugin-list-item"},[u("td",null,[e.imageContentsWithMimeType?(r(),g(c,{key:0,src:e.imageContentsWithMimeType,"max-height":"56","min-width":"56"},null,8,["src"])):y("",!0)]),u("td",null,[u("div",{class:"text-h6",onClick:t[0]||(t[0]=(...k)=>s.openDetails&&s.openDetails(...k)),textContent:v(s.displayTitle)},null,8,Ae),u("div",Oe,[o.isModified?(r(),w(I,{key:0},[f(" * ")],64)):y("",!0),f(" "+v(e.name),1)]),o.targets?.length?(r(),w("div",Me,[(r(!0),w(I,null,E(o.targets,(k,U)=>(r(),w("span",{key:U,class:"mr-2"},[k.modified?(r(),w("a",{key:0,style:{cursor:"pointer"},onClick:N(D=>s.downloadTarget(k.name),["prevent"]),textContent:v(k.name)},null,8,Ee)):(r(),w("span",{key:1,textContent:v(k.name)},null,8,Le))]))),128))])):y("",!0)]),u("td",null,[n(P,null,{activator:a(({props:k})=>[n(m,O(k,{icon:"mdi-dots-horizontal","data-test":"plugin-actions"}),null,16)]),default:a(()=>[n(S,null,{default:a(()=>[n(p,{title:"Download","prepend-icon":"mdi-download","data-test":"download-plugin",onClick:s.downloadPlugin},null,8,["onClick"]),n(p,{title:"Edit Details","prepend-icon":"mdi-pencil","data-test":"edit-plugin",onClick:s.edit},null,8,["onClick"]),n(p,{title:"Upgrade","prepend-icon":"mdi-update","data-test":"upgrade-plugin",onClick:s.upgrade},null,8,["onClick"]),o.scriptVersionsEnabled?(r(),g(p,{key:0,title:"Export History","prepend-icon":"mdi-export",disabled:i.exporting||i.importing,"data-test":"export-plugin-history",onClick:s.exportHistory},null,8,["disabled","onClick"])):y("",!0),o.scriptVersionsEnabled?(r(),g(p,{key:1,title:"Import History","prepend-icon":"mdi-import",disabled:i.exporting||i.importing,"data-test":"import-plugin-history",onClick:s.pickImportFile},null,8,["disabled","onClick"])):y("",!0),n(p,{title:`View Microservices (${s.microserviceCount})`,"prepend-icon":"mdi-tab","data-test":"view-microservices",onClick:s.viewMicroservices},null,8,["title","onClick"]),o.needsUvMigration?(r(),g(p,{key:2,title:"Migrate to UV","prepend-icon":"mdi-swap-horizontal","data-test":"migrate-to-uv",onClick:s.migrateToUv},null,8,["onClick"])):y("",!0),n(p,{title:"Delete","prepend-icon":"mdi-delete","data-test":"delete-plugin",onClick:s.deletePrompt},null,8,["onClick"])]),_:1})]),_:1})])],2),i.showCard?(r(),g(V,O({key:0,modelValue:i.showCard,"onUpdate:modelValue":t[1]||(t[1]=k=>i.showCard=k)},e.plugin,{onTriggerUninstall:s.deletePrompt}),null,16,["modelValue","onTriggerUninstall"])):y("",!0),o.scriptVersionsEnabled?(r(),w("input",{key:1,ref:"importFileInput",type:"file",accept:".bundle,application/octet-stream",style:{display:"none"},"data-test":`import-plugin-history-file-${e.name}`,onChange:t[2]||(t[2]=(...k)=>s.onImportFileSelected&&s.onImportFileSelected(...k))},null,40,je)):y("",!0)],64)}const Re=A($e,[["render",Be]]),ze={components:{PluginListItem:Re},props:{plugins:{type:Array,required:!0},targets:{type:Object,required:!0},showDefaultTools:{type:Boolean,default:!1},defaultPlugins:{type:Array,required:!0},scriptVersionsEnabled:{type:Boolean,default:!1}},emits:["edit","delete","upgrade","migrate-to-uv"],data(){return{showPluginDetails:!1,detailPlugin:null,microservices:{}}},computed:{shownPlugins(){const e=[],t=[];return this.plugins.forEach(o=>{const d=o.name.split("__")[0].split("-").slice(0,-1).join("-");this.defaultPlugins.includes(d)?t.push(o):e.push(o)}),e.sort((o,d)=>o.name<d.name?-1:o.name>d.name?1:0),this.showDefaultTools?(t.sort((o,d)=>o.name<d.name?-1:o.name>d.name?1:0),e.concat(t)):e}},mounted(){this.fetchMicroservices()},methods:{showDetails:function(e){this.detailPlugin=e,this.showPluginDetails=!0},pluginTargets:function(e){let t=[];for(const o in this.targets)this.targets[o].plugin===e&&t.push(this.targets[o]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,o])=>o.plugin===e&&o.modified===!0)},editPlugin:function(e){this.$emit("edit",e)},upgradePlugin(e){this.$emit("upgrade",e)},migrateToUv:function(e){this.$emit("migrate-to-uv",e)},deletePrompt:function(e){this.$emit("delete",e)},fetchMicroservices:function(){b.get("/openc3-api/microservices/all").then(e=>{this.microservices=e.data})}}};function Fe(e,t,o,d,i,s){const c=l("plugin-list-item"),m=l("v-data-table");return r(),g(m,{headers:[],items:s.shownPlugins,density:"compact",class:"list","data-test":"plugin-list"},{item:a(({item:p})=>[(r(),g(c,O({key:p.name},p,{targets:s.pluginTargets(p.name),"is-modified":s.isModified(p.name),microservices:i.microservices,"script-versions-enabled":o.scriptVersionsEnabled,onEdit:()=>s.editPlugin(p.name),onUpgrade:()=>s.upgradePlugin(p.name),onMigrateToUv:()=>s.migrateToUv(p.name),onDelete:()=>s.deletePrompt(p.name)}),null,16,["targets","is-modified","microservices","script-versions-enabled","onEdit","onUpgrade","onMigrateToUv","onDelete"]))]),_:1},8,["items"])}const Ne=A(ze,[["render",Fe],["__scopeId","data-v-f5a0cd0b"]]),Ke={components:{PluginDialog:Z,PluginList:Ne,PluginStore:Ie,ModifiedPluginDialog:Y,SimpleTextDialog:J},mixins:[W],data(){return{pluginName:null,variables:{},storePluginId:null,storeVersionId:null,minCosmosVersion:null,pluginTxt:"",file:null,currentPlugin:null,pluginHashTmp:null,existingPluginTxt:null,progress:0,pluginDelete:!1,api:new R,plugins:[],targets:{},processes:{},alert:"",alertType:"success",showAlert:!1,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginStore:!1,showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,scriptVersionsEnabled:!1,timeZone:"local",defaultPlugins:["openc3-cosmos-tool-admin","openc3-cosmos-tool-bucketexplorer","openc3-cosmos-tool-cmdsender","openc3-cosmos-tool-cmdqueue","openc3-cosmos-tool-cmdhistory","openc3-cosmos-tool-cmdtlmserver","openc3-cosmos-tool-dataextractor","openc3-cosmos-tool-dataviewer","openc3-cosmos-tool-docs","openc3-cosmos-tool-handbooks","openc3-cosmos-tool-iframe","openc3-cosmos-tool-limitsmonitor","openc3-cosmos-tool-packetviewer","openc3-cosmos-tool-scriptrunner","openc3-cosmos-tool-tablemanager","openc3-cosmos-tool-tlmgrapher","openc3-cosmos-tool-tlmviewer","openc3-cosmos-enterprise-tool-admin","openc3-cosmos-tool-autonomic","openc3-cosmos-tool-calendar","openc3-cosmos-tool-grafana","openc3-cosmos-tool-logexplorer","openc3-cosmos-tool-notebooks","openc3-cosmos-tool-systemhealth","openc3-enterprise-tool-base","openc3-tool-base"]}},watch:{showPluginDialog:function(e,t){e===!1&&(this.file=null,this.$refs.fileInput.value=null)}},created(){this.api.update_plugin_store(),this.api.get_setting("time_zone").then(e=>{e&&(this.timeZone=e)}).catch(()=>{})},mounted(){this.update(),this.updateProcesses(),b.get("/openc3-api/info").then(t=>{this.scriptVersionsEnabled=!!t.data?.script_versions}).catch(()=>{this.scriptVersionsEnabled=!1});const e=this;window.onpopstate=function(){e.showPluginStore&&(e.showPluginStore=!1,history.go(1))}},methods:{resetControlState:function(){this.pluginName=null,this.variables={},this.storePluginId=null,this.storeVersionId=null,this.minCosmosVersion=null,this.pluginTxt="",this.file=null,this.currentPlugin=null,this.pluginHashTmp=null,this.existingPluginTxt=null,this.progress=0,this.pluginDelete=!1},pluginTargets:function(e){let t=[];for(const o in this.targets)this.targets[o].plugin===e&&t.push(this.targets[o]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,o])=>o.plugin===e&&o.modified===!0)},showOutput:function(e){this.processOutput=e.output,this.showProcessOutput=!0},update:function(){b.get("/openc3-api/plugins/all").then(e=>{this.plugins=Object.entries(e.data).map(([t,o])=>o)}),b.get("/openc3-api/targets_modified").then(e=>{this.targets=e.data})},updateProcesses:function(){b.get("openc3-api/process_status/plugin_?substr=true").then(e=>{this.processes=e.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},5e3)})},upload:function(e=null,t=null){const o=e?"put":"post",d=e?`/openc3-api/plugins/${e}`:"/openc3-api/plugins",i=new FormData;t===null?i.append("plugin",this.file,this.file.name):(i.append("store_plugin_id",t.id),i.append("store_version_id",t.version_id));let s=this;b[o](d,{data:i,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(c){let m=Math.round(c.loaded*100/c.total);s.progress=m}}).then(c=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let m=null;c.data.existing_plugin_txt_lines!==void 0&&(m=c.data.existing_plugin_txt_lines.join(`
|
|
2
|
+
`));let p=c.data.plugin_txt_lines.join(`
|
|
3
|
+
`);this.pluginName=c.data.name,this.variables=c.data.variables,this.storePluginId=c.data.store_plugin_id,this.storeVersionId=c.data.store_version_id,this.minCosmosVersion=c.data.minimum_cosmos_version,this.pluginTxt=p,this.existingPluginTxt=m,this.showPluginDialog=!0,this.file=void 0}).catch(c=>{this.currentPlugin=null,this.file=void 0})},pluginCallback:function(e){this.showPluginDialog=!1,this.currentPlugin!==null&&(e.name=this.currentPlugin),this.pluginHashTmp=e,this.isModified(this.currentPlugin)?(this.pluginDelete=!1,this.showModifiedPluginDialog=!0):this.pluginInstall()},modifiedSubmit:async function(e){const t=e.deleteFiles||[];if(t.length){const o={};for(const d of t){const i=d.split("/")[0];o[i]||=[],o[i].push(d)}for(const[d,i]of Object.entries(o))await b.post(`/openc3-api/targets/${d}/delete_modified`,{data:{files:i}})}this.pluginDelete?this.deletePlugin(this.currentPlugin):this.pluginInstall(e.installFromPlugin||[])},pluginInstall:function(e=[]){const t={...this.pluginHashTmp};e.length&&(t.version_history_files=e),b.post(`/openc3-api/plugins/install/${this.pluginName}`,{data:{plugin_hash:JSON.stringify(t)}}).then(o=>{this.alert=`Started installing plugin ${this.pluginName} ...`,this.alertType="success",this.showAlert=!0,this.currentPlugin=null,this.file=void 0,this.variables={},this.pluginTxt="",this.existingPluginTxt=null,this.storePluginId=null,this.storeVersionId=null,setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3),this.update()})},editPlugin:function(e){this.resetControlState(),b.get(`/openc3-api/plugins/${e}`).then(t=>{let o=null;t.data.existing_plugin_txt_lines!==void 0&&(o=t.data.existing_plugin_txt_lines.join(`
|
|
4
|
+
`)),this.pluginName=t.data.name,this.variables=t.data.variables,this.pluginTxt=t.data.plugin_txt_lines.join(`
|
|
5
|
+
`),this.existingPluginTxt=o,this.showPluginDialog=!0})},deletePrompt:function(e){this.resetControlState(),this.$dialog.confirm(`Are you sure you want to remove: ${e}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{this.isModified(e)?(this.currentPlugin=e,this.pluginDelete=!0,this.showModifiedPluginDialog=!0):this.deletePlugin(e)})},deletePlugin:function(e){this.alert=`Removing plugin ${e} ...`,this.alertType="success",this.showAlert=!0,b.delete(`/openc3-api/plugins/${e}`).then(t=>{setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}),this.update()},migrateToUv:function(e){this.$dialog.confirm(`Migrate plugin ${e} to a per-plugin UV virtual environment?`,{okText:"Migrate",cancelText:"Cancel"}).then(()=>{b.post(`/openc3-api/plugins/${e}/migrate_to_uv`).then(t=>{this.alert=`Started migrating plugin ${e} to UV ...`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)})})},upgradePlugin(e){this.resetControlState(),this.currentPlugin=e,this.$refs.fileInput.click()},selectFile(){this.resetControlState(),this.$refs.fileInput.click()},fileChange(e){const t=e.target.files;if(t.length>0)if(this.file=t[0],this.currentPlugin!==null)if(this.file.name.split(".gem")[0]==this.currentPlugin.split(".gem")[0])this.$dialog.confirm(`The new gem ${this.file.name} appears to be identical to the existing ${this.currentPlugin}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}).catch(o=>{});else{let o=this.file.name.split("-"),d=o.findIndex(c=>c.includes(".")),i=o.slice(0,d).join("-");o=this.currentPlugin.split("-"),d=o.findIndex(c=>c.includes("."));let s=o.slice(0,d).join("-");i!==s?this.$dialog.confirm(`The new gem base name ${i} doesn't match the existing ${s}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}):this.upload(this.currentPlugin)}else this.upload();else this.$refs.fileInput.value=null},openStore(){this.resetControlState(),this.showPluginStore=!0}}},He={class:"mt-2"},qe=["textContent"],We=["textContent"];function Ye(e,t,o,d,i,s){const c=l("v-btn"),m=l("v-icon"),p=l("v-col"),S=l("rux-progress"),P=l("v-row"),V=l("v-divider"),k=l("v-alert"),U=l("v-list-item-title"),D=l("v-list-item-subtitle"),C=l("v-progress-circular"),M=l("v-tooltip"),$=l("v-list-item"),B=l("v-list"),T=l("v-switch"),x=l("plugin-list"),Ze=l("plugin-dialog"),Ge=l("modified-plugin-dialog"),Je=l("simple-text-dialog"),Qe=l("plugin-store"),Xe=l("v-bottom-sheet");return r(),w("div",null,[n(P,{"no-gutters":"",align:"center",class:"px-2"},{default:a(()=>[n(p,{class:"pa-2 mt-2"},{default:a(()=>[n(c,{"append-icon":"mdi-store",onClick:s.openStore},{default:a(()=>[...t[9]||(t[9]=[f(" Browse Plugins ",-1)])]),_:1},8,["onClick"]),n(c,{"append-icon":"mdi-paperclip",class:"mx-2",onClick:s.selectFile},{default:a(()=>[...t[10]||(t[10]=[f(" Install From File ",-1)])]),_:1},8,["onClick"]),u("input",{ref:"fileInput",accept:".gem",style:{display:"none"},type:"file",onChange:t[0]||(t[0]=(..._)=>s.fileChange&&s.fileChange(..._))},null,544),t[14]||(t[14]=u("br",null,null,-1)),u("p",He,[t[12]||(t[12]=f(" Note: Use ",-1)),n(m,null,{default:a(()=>[...t[11]||(t[11]=[f(" mdi-dots-horizontal ",-1)])]),_:1}),t[13]||(t[13]=f(" in the Installed Plugins list to upgrade existing plugins ",-1))])]),_:1}),n(p,{class:"ml-4 mr-2",cols:"4"},{default:a(()=>[n(S,{value:i.progress},null,8,["value"])]),_:1})]),_:1}),n(P,{"no-gutters":"",class:"px-2"},{default:a(()=>[n(p,{align:"right",class:"mr-2"},{default:a(()=>[...t[15]||(t[15]=[u("div",null,"* indicates a modified plugin",-1),u("div",null,"Click target link to download modifications",-1)])]),_:1})]),_:1}),n(V),n(k,{modelValue:i.showAlert,"onUpdate:modelValue":t[1]||(t[1]=_=>i.showAlert=_),closable:"",type:i.alertType,text:i.alert,"data-test":"plugin-alert"},null,8,["modelValue","type","text"]),Object.keys(i.processes).length>0?(r(),g(B,{key:0,class:"list","data-test":"process-list"},{default:a(()=>[n(P,{"no-gutters":"",class:"px-4"},{default:a(()=>[n(p,{class:"text-h5"},{default:a(()=>[...t[16]||(t[16]=[f(" Process List ",-1)])]),_:1}),n(p,{align:"right"},{default:a(()=>[...t[17]||(t[17]=[u("div",null,"Showing last 10 min of activity",-1)])]),_:1})]),_:1}),(r(!0),w(I,null,E(i.processes,_=>(r(),w("div",{key:_.name},[n($,null,{append:a(()=>[_.state==="Running"?(r(),g(C,{key:0,indeterminate:"",color:"primary"})):(r(),g(M,{key:1,"open-delay":600,location:"top"},{activator:a(({props:et})=>[n(c,O({ref_for:!0},et,{icon:"mdi-eye",variant:"text","aria-label":"Show Output","data-test":"show-output",onClick:st=>s.showOutput(_)}),null,16,["onClick"])]),default:a(()=>[t[18]||(t[18]=u("span",null," Show Output ",-1))]),_:2},1024))]),default:a(()=>[n(U,null,{default:a(()=>[u("span",{class:z(_.state.toLowerCase()),textContent:v(`Processing ${_.process_type}: ${_.detail} - ${_.state}`)},null,10,qe)]),_:2},1024),n(D,null,{default:a(()=>[u("span",{textContent:v(" Updated At: "+e.formatNanoseconds(_.updated_at,i.timeZone))},null,8,We)]),_:2},1024)]),_:2},1024),n(V)]))),128))]),_:1})):y("",!0),n(P,{"no-gutters":"",class:"px-4"},{default:a(()=>[n(p,{class:"text-h5"},{default:a(()=>[...t[19]||(t[19]=[f(" Installed Plugins ",-1)])]),_:1}),n(p,{class:"v-col-auto"},{default:a(()=>[n(T,{modelValue:i.showDefaultTools,"onUpdate:modelValue":t[2]||(t[2]=_=>i.showDefaultTools=_),label:"Show Default Tools",density:"compact","hide-details":"","data-test":"show-default-tools"},null,8,["modelValue"])]),_:1})]),_:1}),n(x,{plugins:i.plugins,targets:i.targets,"show-default-tools":i.showDefaultTools,"default-plugins":i.defaultPlugins,"script-versions-enabled":i.scriptVersionsEnabled,onEdit:s.editPlugin,onUpgrade:s.upgradePlugin,onMigrateToUv:s.migrateToUv,onDelete:s.deletePrompt},null,8,["plugins","targets","show-default-tools","default-plugins","script-versions-enabled","onEdit","onUpgrade","onMigrateToUv","onDelete"]),i.showPluginDialog?(r(),g(Ze,{key:1,modelValue:i.showPluginDialog,"onUpdate:modelValue":t[3]||(t[3]=_=>i.showPluginDialog=_),"plugin-name":i.pluginName,variables:i.variables,"plugin-txt":i.pluginTxt,"existing-plugin-txt":i.existingPluginTxt,"store-plugin-id":i.storePluginId,"store-version-id":i.storeVersionId,"min-cosmos-version":i.minCosmosVersion,onCallback:s.pluginCallback},null,8,["modelValue","plugin-name","variables","plugin-txt","existing-plugin-txt","store-plugin-id","store-version-id","min-cosmos-version","onCallback"])):y("",!0),i.showModifiedPluginDialog?(r(),g(Ge,{key:2,modelValue:i.showModifiedPluginDialog,"onUpdate:modelValue":t[4]||(t[4]=_=>i.showModifiedPluginDialog=_),plugin:i.currentPlugin,targets:s.pluginTargets(i.currentPlugin),"plugin-hash":i.pluginHashTmp,"plugin-delete":i.pluginDelete,onSubmit:s.modifiedSubmit},null,8,["modelValue","plugin","targets","plugin-hash","plugin-delete","onSubmit"])):y("",!0),n(Je,{modelValue:i.showProcessOutput,"onUpdate:modelValue":t[5]||(t[5]=_=>i.showProcessOutput=_),title:"Process Output",text:i.processOutput},null,8,["modelValue","text"]),n(Xe,{modelValue:i.showPluginStore,"onUpdate:modelValue":t[8]||(t[8]=_=>i.showPluginStore=_),fullscreen:""},{default:a(()=>[n(Qe,{onClose:t[6]||(t[6]=()=>i.showPluginStore=!1),onTriggerInstall:t[7]||(t[7]=_=>s.upload(null,_))})]),_:1},8,["modelValue"])])}const it=ie("default",A(Ke,[["render",Ye],["__scopeId","data-v-57e78b0c"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue","./main-6a328857fae6aab0f418.js","vue-router","pinia","single-spa","vuetify"],(function(u,d){"use strict";var s,a,r,l,i,n;return{setters:[e=>{s=e.f},e=>{a=e.resolveComponent,r=e.openBlock,l=e.createBlock,i=e.normalizeStyle},e=>{n=e.k},null,null,null,null],execute:(function(){const e={mixins:[s],props:{value:{type:[Number,String],default:null}},emits:["addItem","deleteItem"],data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;if(t===null){if(!this.screenValues[this.valueId])return 0;t=this.screenValues[this.valueId][0]}return Number.parseInt(Number.parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=Number.parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,p,v,f,I,c){const h=a("rux-progress");return r(),l(h,{value:c._value,class:"progress",style:i(t.computedStyle)},null,8,["value","style"])}const m=u("default",n(e,[["render",o],["__scopeId","data-v-af1daff2"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue","./main-6a328857fae6aab0f418.js","vue-router","pinia","single-spa","vuetify"],(function(s,d){"use strict";var l,t,n,a,r,u;return{setters:[e=>{l=e.f},e=>{t=e.resolveComponent,n=e.openBlock,a=e.createBlock,r=e.normalizeStyle},e=>{u=e.k},null,null,null,null],execute:(function(){const e={mixins:[l],props:{value:{type:Number,default:null}},data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function o(i,m,c,y,p,b){const v=t("v-radio");return n(),a(v,{"hide-details":"",dense:"",label:p.label,style:r(i.computedStyle),value:c.value},null,8,["label","style","value"])}const f=s("default",u(e,[["render",o]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Layout-
|
|
1
|
+
System.register(["./Layout-BLS4Yi3m-9a851fc81da50b5a0f78.js","vue","./main-6a328857fae6aab0f418.js","./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue-router","pinia","single-spa","vuetify"],(function(x,C){"use strict";var a,l,r,s,i,c,o,m,u,d,p,g;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,r=e.openBlock,s=e.createBlock,i=e.normalizeStyle,c=e.withCtx,o=e.createElementBlock,m=e.Fragment,u=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.k},null,null,null,null,null],execute:(function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=Number.parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function f(n,v,I,S,y,w){const k=l("v-radio-group");return r(),s(k,{modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),"hide-details":"",density:"compact",style:i(n.computedStyle)},{default:c(()=>[(r(!0),o(m,null,u(n.widgets,(t,h)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{key:h,value:h,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const B=x("default",g(e,[["render",f]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue","./main-6a328857fae6aab0f418.js","vue-router","pinia","single-spa","vuetify"],(function(u,m){"use strict";var r,a,n,h,s,l;return{setters:[e=>{r=e.f},e=>{a=e.openBlock,n=e.createElementBlock,h=e.normalizeStyle,s=e.createElementVNode},e=>{l=e.k},null,null,null,null],execute:(function(){const e={mixins:[r],emits:["addItem","deleteItem"],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return Number.parseInt(this.parameters[3])},max(){return Number.parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const t=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){if(!this.screenValues[this.valueId])return 0;let t=this.screenValues[this.valueId][0];if(t==null)return 0;if(t.raw)return t.raw==="-Infinity"?0:100;const i=(t-this.min)/this.range*100;return i>100?100:i<0?0:i}}};function c(t,i,p,g,v,d){return a(),n("div",{class:"rangebar",style:h([d.cssProps,t.computedStyle])},[...i[0]||(i[0]=[s("div",{class:"rangebar__container"},[s("div",{class:"rangebar__line"}),s("div",{class:"rangebar__arrow"})],-1)])],4)}const o=u("default",l(e,[["render",c],["__scopeId","data-v-276a618a"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-6a328857fae6aab0f418.js","vue","vue-router","pinia","single-spa","vuetify"],(function(_,D){"use strict";var y,f,d,o,c,n,l,r,p,v,m,x;return{setters:[a=>{y=a.k,f=a.S},a=>{d=a.resolveComponent,o=a.openBlock,c=a.createElementBlock,n=a.createVNode,l=a.withCtx,r=a.createTextVNode,p=a.createElementVNode,v=a.Fragment,m=a.toDisplayString,x=a.createCommentVNode},null,null,null,null],execute:(function(){const a={data(){return{redisCommandText:"",redisResponse:null,redisEndpoint:"persistent",db_shard:0,prettyPrint:!1,headers:[{text:"Redis",value:"redis",width:150},{text:"Command",value:"command"},{text:"Response",value:"response"}],commands:[]}},computed:{formattedResponse:function(){let t=this.redisResponse;if(this.redisResponse&&this.prettyPrint){if(typeof t=="string")try{t=JSON.parse(t)}catch{}if(Array.isArray(t)){for(let e=0;e<t.length;e++)if(typeof t[e]=="string")try{t[e]=JSON.parse(t[e])}catch{}}}return t=JSON.stringify(t,null,2),`Response: ${t}`}},methods:{commandKeydown:function(t){t.key==="Enter"&&this.executeRaw()},executeRaw:function(){this.redisResponse=null;let t="/openc3-api/redis/exec";const e=[];this.redisEndpoint==="ephemeral"&&e.push("ephemeral=1"),this.db_shard&&this.db_shard!==0&&e.push(`db_shard=${this.db_shard}`),e.length&&(t+="?"+e.join("&")),f.post(t,{data:this.redisCommandText,headers:{Accept:"application/json","Content-Type":"text/plain"}}).then(b=>{this.redisResponse=b.data.result;let u=this.redisEndpoint==="ephemeral"?"Ephemeral":"Persistent";this.db_shard!==0&&(u+=` (db_shard ${this.db_shard})`),this.commands.unshift({redis:u,command:this.redisCommandText,response:this.redisResponse})})}}},g=["textContent"],V={key:1,class:"monospace"};function C(t,e,b,u,s,h){const k=d("v-card-title"),w=d("v-card-subtitle"),E=d("v-text-field"),S=d("v-checkbox"),N=d("v-card-text"),T=d("v-btn"),R=d("v-radio"),P=d("v-radio-group"),U=d("v-number-input"),A=d("v-card-actions"),B=d("v-data-table"),K=d("v-card");return o(),c("div",null,[n(K,null,{default:l(()=>[n(k,null,{default:l(()=>[...e[4]||(e[4]=[r(" Send Raw Redis Commands ",-1)])]),_:1}),n(w,null,{default:l(()=>[...e[5]||(e[5]=[r(" THIS IS DANGEROUS. This allows you to interact directly with the underlying Redis database, making it easy to modify or delete data. ",-1),p("br",null,null,-1),p("br",null,null,-1),r(" Enter commands like you would at the Redis cli prompt: ",-1),p("code",null,"ping",-1),r(" or ",-1),p("code",null,"hget openc3__settings version",-1)])]),_:1}),n(N,{class:"pb-0 ml-2"},{default:l(()=>[n(E,{modelValue:s.redisCommandText,"onUpdate:modelValue":e[0]||(e[0]=i=>s.redisCommandText=i),"hide-details":"",label:"Redis command",class:"monospace",onKeydown:h.commandKeydown},null,8,["modelValue","onKeydown"]),n(S,{modelValue:s.prettyPrint,"onUpdate:modelValue":e[1]||(e[1]=i=>s.prettyPrint=i),label:"Pretty print",density:"compact","hide-details":"",class:"mb-2"},null,8,["modelValue"]),s.redisResponse?(o(),c(v,{key:0},[s.prettyPrint?(o(),c("pre",{key:0,textContent:m(h.formattedResponse)},null,8,g)):(o(),c("span",V," Response: "+m(s.redisResponse),1))],64)):x("",!0)]),_:1}),n(A,{class:"px-2"},{default:l(()=>[n(T,{disabled:!s.redisCommandText.length,color:"success",variant:"text",onClick:h.executeRaw},{default:l(()=>[...e[6]||(e[6]=[r(" Execute ",-1)])]),_:1},8,["disabled","onClick"]),n(P,{modelValue:s.redisEndpoint,"onUpdate:modelValue":e[2]||(e[2]=i=>s.redisEndpoint=i),inline:"","hide-details":"",class:"mt-0"},{default:l(()=>[n(R,{label:"Persistent",value:"persistent","data-test":"persistent-radio"}),n(R,{label:"Ephemeral",value:"ephemeral","data-test":"ephemeral-radio"})]),_:1},8,["modelValue"]),n(U,{modelValue:s.db_shard,"onUpdate:modelValue":e[3]||(e[3]=i=>s.db_shard=i),"control-variant":"stacked",min:0,label:"DB Shard","hide-details":"",density:"compact",style:{"max-width":"100px"},class:"ml-4"},null,8,["modelValue"])]),_:1}),n(B,{headers:s.headers,items:s.commands,class:"monospace","items-per-page":-1,"hide-default-footer":"",density:"compact",height:"45vh"},null,8,["headers","items"])]),_:1})])}const I=_("default",y(a,[["render",C],["__scopeId","data-v-a92ae7a6"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue","./main-6a328857fae6aab0f418.js","vue-router","pinia","single-spa","vuetify"],(function(m,p){"use strict";var l,r,a,c,o,u;return{setters:[t=>{l=t.f},t=>{r=t.resolveComponent,a=t.openBlock,c=t.createBlock,o=t.normalizeStyle},t=>{u=t.k},null,null,null,null],execute:(function(){const t={mixins:[l],props:{value:{type:[Number,String],default:null}},emits:["addItem","deleteItem","open"],data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,b,E,i){const d=r("rux-monitoring-icon");return a(),c(d,{class:"rux-icon",style:o([i.pointerStyle,e.computedStyle]),icon:e.icon,status:i.status,label:e.label,sublabel:e.subLabel,onClick:i.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-6a328857fae6aab0f418.js","vue","single-spa","./OutputDialog-B-bk2nex-d22c9e9f81462796cf40.js","vue-router","pinia","vuetify"],(function(S,T){"use strict";var d,c,e,l,r,o,i,g,p,h,m,v,k,C;return{setters:[t=>{d=t.k,c=t.S},t=>{e=t.resolveComponent,l=t.openBlock,r=t.createElementBlock,o=t.createVNode,i=t.withCtx,g=t.Fragment,p=t.renderList,h=t.createTextVNode,m=t.toDisplayString,v=t.createBlock,k=t.createCommentVNode},null,t=>{C=t.S},null,null,null],execute:(function(){const t={components:{OutputDialog:C},data(){return{routers:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){c.get("/openc3-api/routers").then(n=>{this.routers=n.data})},add(){},showRouter(n){c.get(`/openc3-api/routers/${n}`).then(s=>{this.jsonContent=JSON.stringify(s.data,null," "),this.dialogTitle=n,this.showDialog=!0})},dialogCallback(n){this.showDialog=!1}}};function w(n,s,j,R,a,f){const D=e("v-list-item-title"),V=e("v-btn"),y=e("v-list-item"),N=e("v-divider"),b=e("v-list"),x=e("output-dialog");return l(),r("div",null,[o(b,{class:"list","data-test":"routerList"},{default:i(()=>[(l(!0),r(g,null,p(a.routers,(u,B)=>(l(),r("div",{key:B},[o(y,null,{append:i(()=>[o(V,{"aria-label":"Show Router Details",icon:"mdi-eye",variant:"text",onClick:L=>f.showRouter(u)},null,8,["onClick"])]),default:i(()=>[o(D,null,{default:i(()=>[h(m(u),1)]),_:2},1024)]),_:2},1024),o(N)]))),128))]),_:1}),a.showDialog?(l(),v(x,{key:0,modelValue:a.showDialog,"onUpdate:modelValue":s[0]||(s[0]=u=>a.showDialog=u),content:a.jsonContent,type:"Router",name:a.dialogTitle,onSubmit:f.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):k("",!0)])}const _=S("default",d(t,[["render",w],["__scopeId","data-v-ead3d1f6"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Layout-
|
|
1
|
+
System.register(["./Layout-BLS4Yi3m-9a851fc81da50b5a0f78.js","vue","./main-6a328857fae6aab0f418.js","./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue-router","pinia","single-spa","vuetify"],(function(w,S){"use strict";var g,u,r,s,v,l,y,i,o,f,d,c,p,h;return{setters:[t=>{g=t.r},t=>{u=t.resolveComponent,r=t.openBlock,s=t.createElementBlock,v=t.normalizeStyle,l=t.Fragment,y=t.renderList,i=t.createBlock,o=t.withCtx,f=t.createElementVNode,d=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{h=t.k},null,null,null,null,null],execute:(function(){const t={mixins:[g],created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(m=>{m.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&m.settings.push(["MARGIN",n])})}}};function k(n,m,a,x,z,b){const C=u("v-tooltip");return r(),s("div",{ref:"container",style:v(n.computedStyle),class:"overflow-y-auto"},[(r(!0),s(l,null,y(n.widgets,(e,B)=>(r(),s(l,{key:B},[n.getTooltipText(e)?(r(),i(C,{key:0,"open-delay":n.getTooltipDelay(e),location:"top","activator-props":n.getTooltipActivatorProps(e)},{activator:o(({props:N})=>[(r(),i(c(e.type),p({ref_for:!0},{...n.listeners,...N},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:o(()=>[f("span",null,d(n.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(r(),i(c(e.type),p({key:1,ref_for:!0},n.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))],4)}const T=w("default",h(t,[["render",k]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-6a328857fae6aab0f418.js","vue","vue-router","pinia","single-spa","vuetify"],(function(C,$){"use strict";var V,o,n,u,d,l,s,c,p,m,v,g,k,N;return{setters:[a=>{V=a.k,o=a.S},a=>{n=a.resolveComponent,u=a.openBlock,d=a.createElementBlock,l=a.createVNode,s=a.withCtx,c=a.createTextVNode,p=a.createElementVNode,m=a.toDisplayString,v=a.Fragment,g=a.renderList,k=a.createBlock,N=a.createCommentVNode},null,null,null,null],execute:(function(){const a={data(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1,isEnterprise:!1}},created(){o.get("/openc3-api/info").then(({data:i})=>{this.isEnterprise=i.enterprise})},mounted(){this.update()},methods:{update(){o.get("/openc3-api/secrets").then(i=>{this.secrets=i.data})},upload:function(){this.loadingSecret=!0;let i=null;if(this.file){const e=new FormData;e.append("file",this.file,this.file.name),i=o.post(`/openc3-api/secrets/${this.secretName}`,{data:e,headers:{"Content-Type":"multipart/form-data"}})}else i=o.post(`/openc3-api/secrets/${this.secretName}`,{data:{value:this.secretValue}});i.then(e=>{this.loadingSecret=!1,this.file=null,this.secretName="",this.secretValue="",this.update()}).catch(e=>{this.loadingSecret=!1})},deleteSecret:function(i){this.$dialog.confirm(`Are you sure you want to remove: ${i}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return o.delete(`/openc3-api/secrets/${i}`)}).then(e=>{this.alert=`Removed secret ${i}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}};function w(i,e,F,j,t,S){const b=n("v-alert"),T=n("v-file-input"),f=n("v-col"),y=n("v-row"),x=n("v-text-field"),E=n("v-icon"),_=n("v-btn"),B=n("v-list-item-title"),U=n("v-list-item"),A=n("v-divider"),D=n("v-list");return u(),d("div",null,[l(b,{modelValue:t.isEnterprise,"onUpdate:modelValue":e[0]||(e[0]=r=>t.isEnterprise=r),class:"ma-4"},{default:s(()=>[...e[6]||(e[6]=[c(" Note: This cannot be used for setting Kubernetes secrets. You must set them in Kubernetes as a ",-1),p("a",{href:"https://kubernetes.io/docs/concepts/configuration/secret/",target:"_blank"}," Secrets object ",-1),c(" instead. ",-1)])]),_:1},8,["modelValue"]),l(y,{"no-gutters":""},{default:s(()=>[l(f,null,{default:s(()=>[l(T,{ref:"fileInput",modelValue:t.file,"onUpdate:modelValue":e[1]||(e[1]=r=>t.file=r),"show-size":"",accept:"*",class:"mx-2",label:"Click to select a file to create a secret from or enter a secret value"},null,8,["modelValue"])]),_:1})]),_:1}),l(y,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:s(()=>[l(f,{cols:"3"},{default:s(()=>[l(x,{modelValue:t.secretName,"onUpdate:modelValue":e[2]||(e[2]=r=>t.secretName=r),label:"Secret Name",class:"px-2"},null,8,["modelValue"])]),_:1}),l(f,{cols:"3",class:"px-2"},{default:s(()=>[l(x,{modelValue:t.secretValue,"onUpdate:modelValue":e[3]||(e[3]=r=>t.secretValue=r),disabled:t.file,label:"Secret Value"},null,8,["modelValue","disabled"])]),_:1}),l(f,{cols:"3",class:"px-2"},{default:s(()=>[l(_,{class:"mx-2",color:"primary","data-test":"secretUpload",disabled:t.secretName===""||t.file==null&&t.secretValue==="",loading:t.loadingSecret,onClick:e[4]||(e[4]=r=>S.upload())},{loader:s(()=>[...e[8]||(e[8]=[p("span",null,"Loading...",-1)])]),default:s(()=>[l(E,{start:"",theme:"dark"},{default:s(()=>[...e[7]||(e[7]=[c("mdi-cloud-upload",-1)])]),_:1}),e[9]||(e[9]=p("span",null," Set ",-1))]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),l(b,{modelValue:t.showAlert,"onUpdate:modelValue":e[5]||(e[5]=r=>t.showAlert=r),closable:"",type:t.alertType},{default:s(()=>[c(m(t.alert),1)]),_:1},8,["modelValue","type"]),l(D,{"data-test":"secretList"},{default:s(()=>[(u(!0),d(v,null,g(t.secrets,(r,h)=>(u(),d("div",{key:h},[l(U,null,{append:s(()=>[l(_,{icon:"mdi-delete",variant:"text","aria-label":"Delete Secret",onClick:I=>S.deleteSecret(r)},null,8,["onClick"])]),default:s(()=>[l(B,null,{default:s(()=>[c(m(r),1)]),_:2},1024)]),_:2},1024),h<t.secrets.length-1?(u(),k(A,{key:h})):N("",!0)]))),128))]),_:1})])}const L=C("default",V(a,[["render",w]]))})}}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
System.register(["./main-6a328857fae6aab0f418.js","vue","./settings-CEBZz77m-520d12b72b93c319ccfd.js","single-spa","vue-router","pinia","vuetify"],(function(le,Ge){"use strict";var k,M,R,a,f,B,l,L,E,C,o,s,S,O,A,F,w,I,T;return{setters:[V=>{k=V.k,M=V.S,R=V.o},V=>{a=V.resolveComponent,f=V.openBlock,B=V.createElementBlock,l=V.createVNode,L=V.Fragment,E=V.createCommentVNode,C=V.createBlock,o=V.withCtx,s=V.createTextVNode,S=V.toDisplayString,O=V.createSlots,A=V.mergeProps,F=V.withDirectives,w=V.vShow,I=V.renderList},V=>{T=V.n},null,null,null,null],execute:(function(){const V="__default",oe={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(t){t?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(t=>t.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(t){const e=t.split("__")[1].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[t]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function ae(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-checkbox"),m=a("v-card-text"),p=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[2]||(e[2]=[s("Reset suppressed warnings",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[3]||(e[3]=[s(` This resets "don't show this again" dialogs on this browser `,-1)])]),_:1}),l(m,null,{default:o(()=>[r.suppressedWarnings.length?(f(),B(L,{key:0},[l(u,{modelValue:r.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=n=>r.selectAllSuppressedWarnings=n),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(f(!0),B(L,null,I(r.suppressedWarnings,n=>(f(),C(u,{key:n.key,modelValue:r.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=i=>r.selectedSuppressedWarnings=i),label:n.text,value:n.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(f(),B(L,{key:1},[s(" No warnings to reset ")],64))]),_:1}),l(g,{class:"px-2"},{default:o(()=>[l(p,{disabled:!r.selectedSuppressedWarnings.length,color:"warning",variant:"text","data-test":"reset-suppressed-warnings",onClick:v.resetSuppressedWarnings},{default:o(()=>[...e[4]||(e[4]=[s(" Reset ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const re=k(oe,[["render",ae]]),P="ai_chat",se={mixins:[T],data(){return{aiChatEnabled:!0}},created(){this.loadSetting(P)},methods:{save:function(){this.saveSetting(P,this.aiChatEnabled)},parseSetting:function(t){t!=null&&(this.aiChatEnabled=t)}}};function ne(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-alert"),u=a("v-switch"),m=a("v-card-text"),p=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("AI Chat Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(u,{modelValue:r.aiChatEnabled,"onUpdate:modelValue":e[3]||(e[3]=n=>r.aiChatEnabled=n),label:`Enable the in-app AI Chatbot. When disabled, the AI
|
|
2
|
+
chat button and drawer are hidden for all users.`,color:"primary","data-test":"ai-chat-enabled"},null,8,["modelValue"])]),_:1}),l(g,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-ai-chat",onClick:v.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ie=k(se,[["render",ne]]),de={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(t){t?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){localStorage.getItem(V)&&localStorage.removeItem(V),this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith(V)).map(t=>{const e=t.split("__")[0].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(t){for(const e of t)localStorage.removeItem(e)}}};function ue(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-checkbox"),m=a("v-card-text"),p=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[2]||(e[2]=[s(" Clear default configs ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[3]||(e[3]=[s(" This clears the default tool configs on this browser ",-1)])]),_:1}),l(m,null,{default:o(()=>[r.lastConfigs.length?(f(),B(L,{key:0},[l(u,{modelValue:r.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=n=>r.selectAllLastConfigs=n),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(f(!0),B(L,null,I(r.lastConfigs,n=>(f(),C(u,{key:n.key,modelValue:r.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=i=>r.selectedLastConfigs=i),label:n.text,value:n.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(f(),B(L,{key:1},[s(" No configs to clear ")],64))]),_:1}),l(g,{class:"px-2"},{default:o(()=>[l(p,{disabled:!r.selectedLastConfigs.length,color:"warning",variant:"text","data-test":"clear-default-configs",onClick:v.clearLastConfigs},{default:o(()=>[...e[4]||(e[4]=[s(" Clear ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ce=k(de,[["render",ue]]),j="script_runner_locking",q="script_runner_lifecycle",me={mixins:[T],data(){return{vimMode:R.isVimModeEnabled(),scriptLockingEnabled:!0,lifecycleEnabled:!1,isEnterprise:!1,gitHistoryEnabled:!1,defaultLanguage:R.getDefaultScriptingLanguage(),languageOptions:[{text:"Ruby",value:"ruby"},{text:"Python",value:"python"}]}},created(){this.loadSetting(j),this.loadSetting(q),M.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=t.enterprise===!0,this.gitHistoryEnabled=t.script_versions===!0})},methods:{save:function(){R.setVimMode(this.vimMode),R.setDefaultScriptingLanguage(this.defaultLanguage),this.saveSetting(j,this.scriptLockingEnabled),this.isEnterprise&&this.saveSetting(q,this.lifecycleEnabled)},parseSetting:function(t,e){t!=null&&(e?.setting===q?this.lifecycleEnabled=t:this.scriptLockingEnabled=t)}}};function pe(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-select"),p=a("v-switch"),g=a("v-card-text"),h=a("v-btn"),n=a("v-card-actions"),i=a("v-card");return f(),C(i,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[7]||(e[7]=[s(" Code Editor Settings ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[8]||(e[8]=[s(" Settings for the code editors built into COSMOS (e.g. in Script Runner). These settings are saved to your browser's local storage. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=y=>t.errorLoading=y),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=y=>t.errorSaving=y),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=y=>t.successSaving=y),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[9]||(e[9]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:r.defaultLanguage,"onUpdate:modelValue":e[3]||(e[3]=y=>r.defaultLanguage=y),label:"Default scripting language",items:r.languageOptions,"item-title":"text","item-value":"value",color:"primary",class:"mt-4","data-test":"default-language"},null,8,["modelValue","items"]),l(p,{modelValue:r.vimMode,"onUpdate:modelValue":e[4]||(e[4]=y=>r.vimMode=y),label:"Vim mode",color:"primary"},null,8,["modelValue"]),l(p,{modelValue:r.scriptLockingEnabled,"onUpdate:modelValue":e[5]||(e[5]=y=>r.scriptLockingEnabled=y),label:`Script File Locking - When enabled, a script being edited
|
|
3
|
+
by one user is read-only for other users until they explicitly force
|
|
4
|
+
unlock. Disable to allow multiple users to edit the same script
|
|
5
|
+
concurrently (last save wins).`,color:"primary","data-test":"script-locking-enabled"},null,8,["modelValue"]),r.isEnterprise?(f(),B(L,{key:0},[r.gitHistoryEnabled?E("",!0):(f(),C(u,{key:0,type:"info",density:"compact",class:"mb-2"},{default:o(()=>[...e[10]||(e[10]=[s(" The Script Lifecycle requires the Version History git store, which is not configured on this server (set OPENC3_VERSION_HISTORY_DIR). Enabling this setting has no effect until it is available. ",-1)])]),_:1})),l(p,{modelValue:r.lifecycleEnabled,"onUpdate:modelValue":e[6]||(e[6]=y=>r.lifecycleEnabled=y),disabled:!r.gitHistoryEnabled,label:`Script Lifecycle - When enabled, scripts are tracked through
|
|
6
|
+
In Development, In Review, and Approved states. Users with the script_edit permission
|
|
7
|
+
can move scripts to In Review, and users with the script_approver permission may approve scripts.
|
|
8
|
+
Approved scripts cannot be modified or deleted, and users with only the runner
|
|
9
|
+
permission can only run approved scripts.`,color:"primary","data-test":"script-lifecycle-enabled"},null,8,["modelValue","disabled"])],64)):E("",!0)]),_:1}),l(n,null,{default:o(()=>[l(h,{color:"success",variant:"text","data-test":"save-editor-settings",onClick:v.save},{default:o(()=>[...e[11]||(e[11]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ge=k(me,[["render",pe]]),Z="astro",fe={mixins:[T],data(){return{hideClock:!1}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function ve(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-alert"),u=a("v-switch"),m=a("v-card-text"),p=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Astro Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(u,{modelValue:r.hideClock,"onUpdate:modelValue":e[3]||(e[3]=n=>r.hideClock=n),label:"Hide Astro Clock",color:"primary"},null,8,["modelValue"])]),_:1}),l(g,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-astro-settings",onClick:v.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const he=k(fe,[["render",ve]]),z="theme",be={mixins:[T],data(){return{selectedTheme:"cosmosDark",themeOptions:[{label:"Astro (Default)",value:"cosmosDark"},{label:"Dark Cobalt",value:"cosmosDarkCobalt"},{label:"Dark Indigo",value:"cosmosDarkIndigo"},{label:"Dark Slate",value:"cosmosDarkSlate"},{label:"Dark Emerald",value:"cosmosDarkEmerald"}]}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.selectedTheme)},parseSetting(t){t&&(this.selectedTheme=t)}}};function Se(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-alert"),u=a("v-select"),m=a("v-card-text"),p=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Theme",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pt-4 pb-0"},{default:o(()=>[l(u,{modelValue:r.selectedTheme,"onUpdate:modelValue":e[3]||(e[3]=n=>r.selectedTheme=n),label:"Theme",items:r.themeOptions,"item-title":"label","item-value":"value","data-test":"theme-select"},null,8,["modelValue","items"])]),_:1}),l(g,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-theme-settings",onClick:v.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ve=k(be,[["render",Se]]),K="classification_banner",Ce={mixins:[T],data(){return{text:"",displayTopBanner:!1,displayBottomBanner:!1,topHeight:0,bottomHeight:0,selectedBackgroundColor:"red",customBackgroundColor:"",selectedFontColor:"white",customFontColor:"",customColorHint:"Enter a 3 or 6-digit hex color code",colors:[{text:"Yellow",value:"yellow"},{text:"Orange",value:"orange"},{text:"Red",value:"red"},{text:"Purple",value:"purple"},{text:"Blue",value:"blue"},{text:"Green",value:"green"},{text:"Black",value:"black"},{text:"White",value:"white"},{text:"Custom",value:!1}],rules:{customColor:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor,topHeight:this.displayTopBanner?this.topHeight:0,bottomHeight:this.displayBottomBanner?this.bottomHeight:0})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayTopBanner:function(t){t?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(t){t?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.saveObj)},parseSetting:function(t){if(t){const e=JSON.parse(t);this.text=e.text,this.topHeight=e.topHeight,this.bottomHeight=e.bottomHeight,this.displayTopBanner=e.topHeight!==0,this.displayBottomBanner=e.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor,e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor}}}};function ye(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-alert"),u=a("v-text-field"),m=a("v-col"),p=a("v-row"),g=a("v-icon"),h=a("v-list-item"),n=a("v-select"),i=a("v-switch"),y=a("v-number-input"),W=a("v-card-text"),H=a("v-btn"),D=a("v-card-actions"),N=a("v-card");return f(),C(N,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[12]||(e[12]=[s("Classification Banner Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=c=>t.errorLoading=c),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=c=>t.errorSaving=c),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=c=>t.successSaving=c),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[13]||(e[13]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(W,{class:"pb-0"},{default:o(()=>[l(p,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(u,{modelValue:r.text,"onUpdate:modelValue":e[3]||(e[3]=c=>r.text=c),label:"Text","data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),l(p,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(n,{modelValue:r.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=c=>r.selectedBackgroundColor=c),label:"Background color",items:r.colors,"item-title":"text","data-test":"classification-banner-background-color"},O({item:o(({props:c,item:x})=>[l(h,A(c,{value:x.text}),{prepend:o(()=>[x.value?(f(),C(g,{key:0,color:x.value},{default:o(()=>[...e[15]||(e[15]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):E("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[l(g,{color:r.selectedBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[s(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(m,null,{default:o(()=>[l(u,{modelValue:r.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=c=>r.customBackgroundColor=c),label:"Custom background color",hint:r.customColorHint,disabled:r.selectedBackgroundColor!==!1,rules:[r.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":o(()=>[F(l(g,{color:r.customBackgroundColor},{default:o(()=>[...e[16]||(e[16]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,!r.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(m,null,{default:o(()=>[l(n,{modelValue:r.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=c=>r.selectedFontColor=c),label:"Font color",items:r.colors,"item-title":"text","data-test":"classification-banner-font-color"},O({item:o(({props:c,item:x})=>[l(h,A(c,{value:x.text}),{prepend:o(()=>[x.value?(f(),C(g,{key:0,color:x.value},{default:o(()=>[...e[18]||(e[18]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):E("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedFontColor?{name:"prepend-inner",fn:o(()=>[F(l(g,{color:r.selectedFontColor},{default:o(()=>[...e[17]||(e[17]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,r.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(m,null,{default:o(()=>[l(u,{modelValue:r.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=c=>r.customFontColor=c),label:"Custom font color",hint:r.customColorHint,disabled:r.selectedFontColor!==!1,rules:[r.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":o(()=>[F(l(g,{color:r.customFontColor},{default:o(()=>[...e[19]||(e[19]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,!r.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1}),l(p,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(i,{modelValue:r.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=c=>r.displayTopBanner=c),label:"Display top banner",color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),l(m,null,{default:o(()=>[l(y,{modelValue:r.topHeight,"onUpdate:modelValue":e[9]||(e[9]=c=>r.topHeight=c),"control-variant":"stacked",label:"Top height",disabled:!r.displayTopBanner,suffix:"px","data-test":"classification-banner-top-height"},null,8,["modelValue","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(i,{modelValue:r.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=c=>r.displayBottomBanner=c),label:"Display bottom banner",color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),l(m,null,{default:o(()=>[l(y,{modelValue:r.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=c=>r.bottomHeight=c),"control-variant":"stacked",label:"Bottom height",disabled:!r.displayBottomBanner,suffix:"px","data-test":"classification-banner-bottom-height"},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),l(D,null,{default:o(()=>[l(H,{disabled:!v.formValid,color:"success",variant:"text","data-test":"save-classification-banner",onClick:v.save},{default:o(()=>[...e[20]||(e[20]=[s(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const _e=k(Ce,[["render",ye]]),$="time_zone",ke={mixins:[T],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting($)},methods:{save(){this.saveSetting($,this.timeZone)},parseSetting:function(t){t&&(this.timeZone=t)}}};function xe(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-select"),p=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),n=a("v-card");return f(),C(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Time Zone",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[s(" The time zone to use in all COSMOS tools (graphs, time choosers, log messages, etc). Anywhere a date / time is displayed, it will be in the chosen time zone. (Note: All timestamps are UTC in the backend). ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,null,{default:o(()=>[l(m,{modelValue:r.timeZone,"onUpdate:modelValue":e[3]||(e[3]=i=>r.timeZone=i),items:r.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"","data-test":"time-zone"},null,8,["modelValue","items"])]),_:1}),l(h,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-time-zone",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ue=k(ke,[["render",xe]]),J="time_format",Te={mixins:[T],data(){return{timeFormats:[{title:"12-hour (AM/PM)",value:"ampm"},{title:"24-hour",value:"24hr"}],timeFormat:"ampm"}},created(){this.loadSetting(J)},methods:{save(){this.saveSetting(J,this.timeFormat)},parseSetting:function(t){t&&(this.timeFormat=t)}}};function Be(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-select"),p=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),n=a("v-card");return f(),C(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Time Format",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[s(" The time format to use in all COSMOS tools (time pickers, etc). This setting controls whether time is displayed in 12-hour (AM/PM) or 24-hour format. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,null,{default:o(()=>[l(m,{modelValue:r.timeFormat,"onUpdate:modelValue":e[3]||(e[3]=i=>r.timeFormat=i),items:r.timeFormats,label:"Select time format","hide-details":"","prepend-icon":"mdi-clock-outline","single-line":"","data-test":"time-format"},null,8,["modelValue","items"])]),_:1}),l(h,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-time-format",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Le=k(Te,[["render",Be]]),G="news_feed",Ee={mixins:[T],data(){return{newsFeed:!0}},created(){this.loadSetting(G)},methods:{save(){this.saveSetting(G,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(t){this.newsFeed=t}}};function Fe(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-alert"),u=a("v-switch"),m=a("v-card-text"),p=a("v-btn"),g=a("v-card-actions"),h=a("v-card");return f(),C(h,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("News Feed Settings",-1)])]),_:1}),l(d,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(d,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(u,{modelValue:r.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=n=>r.newsFeed=n),label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
|
|
10
|
+
This is a low bandwidth poll which only happens every 12 hrs. To immediately update the news feed, click the 'Refresh' in the User Menu.`,color:"primary"},null,8,["modelValue"])]),_:1}),l(g,null,{default:o(()=>[l(p,{color:"success",variant:"text","data-test":"save-news-feed",onClick:v.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const we=k(Ee,[["render",Fe]]),Y="subtitle",Re={mixins:[T],data(){return{subtitle:""}},created(){this.loadSetting(Y)},methods:{save(){this.saveSetting(Y,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function Oe(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),p=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),n=a("v-card");return f(),C(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Subtitle",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:r.subtitle,"onUpdate:modelValue":e[3]||(e[3]=i=>r.subtitle=i),label:"Subtitle","data-test":"subtitle"},null,8,["modelValue"])]),_:1}),l(h,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-subtitle",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ae=k(Re,[["render",Oe]]),Q="source_url",We={mixins:[T],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(Q)},methods:{save(){this.saveSetting(Q,this.sourceUrl)},parseSetting:function(t){t&&(this.sourceUrl=t)}}};function He(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),p=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),n=a("v-card");return f(),C(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s(" Source code URL ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[s(' This sets the URL for the "Source" link in the footer. ',-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:r.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=i=>r.sourceUrl=i),label:"Source URL","data-test":"source-url"},null,8,["modelValue"])]),_:1}),l(h,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-source-url",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const De=k(We,[["render",He]]),X="rubygems_url",Ne={mixins:[T],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(X)},methods:{save(){this.saveSetting(X,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function Me(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),p=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),n=a("v-card");return f(),C(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s(" Rubygems URL ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:r.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=i=>r.rubygemsUrl=i),label:"Rubygems URL","data-test":"rubygems-url"},null,8,["modelValue"])]),_:1}),l(h,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-rubygems-url",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ie=k(Ne,[["render",Me]]),ee="pypi_url",qe={mixins:[T],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(ee)},methods:{save(){this.saveSetting(ee,this.pypiUrl)},parseSetting:function(t){t&&(this.pypiUrl=t)}}};function Pe(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),p=a("v-card-text"),g=a("v-btn"),h=a("v-card-actions"),n=a("v-card");return f(),C(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s(" Pypi URL ",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets the URL for installing dependency python packages. Also used for package discovery. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=i=>t.errorLoading=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=i=>t.errorSaving=i),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=i=>t.successSaving=i),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:r.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=i=>r.pypiUrl=i),label:"Pypi URL","data-test":"pypi-url"},null,8,["modelValue"])]),_:1}),l(h,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-pypi-url",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const je=k(qe,[["render",Pe]]),te="context_tag",Ze={mixins:[T],data(){return{text:"",displayContextTag:!1,selectedBackgroundColor:"#009fa3",customBackgroundColor:"",selectedFontColor:"white",customFontColor:"",customColorHint:"Enter a 3 or 6-digit hex color code",colors:[{text:"Teal",value:"#009fa3"},{text:"Purple",value:"#6058a8"},{text:"Pink",value:"#81009a"},{text:"Orange",value:"#af420a"},{text:"Black",value:"black"},{text:"White",value:"white"},{text:"Custom",value:!1}],rules:{customColor:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayContextTag:function(t){t?this.text||(this.text="REPLACEME"):this.text=null},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(te)},methods:{save(){this.saveSetting(te,this.saveObj)},parseSetting:function(t){if(t){const e=JSON.parse(t);this.text=e.text,this.displayContextTag=!!e.text,e.backgroundColor&&(this.colors.some(_=>_.value===e.backgroundColor)?this.selectedBackgroundColor=e.backgroundColor:(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1)),e.fontColor&&(this.colors.some(_=>_.value===e.fontColor)?this.selectedFontColor=e.fontColor:(this.customFontColor=e.fontColor,this.selectedFontColor=!1))}}}};function ze(t,e,_,U,r,v){const b=a("v-card-title"),d=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),p=a("v-col"),g=a("v-row"),h=a("v-switch"),n=a("v-icon"),i=a("v-list-item"),y=a("v-select"),W=a("v-card-text"),H=a("v-btn"),D=a("v-card-actions"),N=a("v-card");return f(),C(N,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[9]||(e[9]=[s("Context Tag Settings",-1)])]),_:1}),l(d,null,{default:o(()=>[...e[10]||(e[10]=[s(" When enabled this displays a Context Tag on the top right of the screen with custom colors and text. This can help differentiate environments. ",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=c=>t.errorLoading=c),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=c=>t.errorSaving=c),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=c=>t.successSaving=c),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[11]||(e[11]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(W,{class:"pb-0"},{default:o(()=>[l(g,{dense:""},{default:o(()=>[l(p,null,{default:o(()=>[l(m,{modelValue:r.text,"onUpdate:modelValue":e[3]||(e[3]=c=>r.text=c),label:"Text","data-test":"context-tag-text",disabled:!r.displayContextTag},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(g,{dense:""},{default:o(()=>[l(p,null,{default:o(()=>[l(h,{modelValue:r.displayContextTag,"onUpdate:modelValue":e[4]||(e[4]=c=>r.displayContextTag=c),label:"Display context tag",color:"primary","data-test":"display-context-tag"},null,8,["modelValue"])]),_:1}),l(p,null,{default:o(()=>[l(y,{modelValue:r.selectedBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=c=>r.selectedBackgroundColor=c),label:"Background color",items:r.colors,"item-title":"text","data-test":"context-tag-background-color"},O({item:o(({props:c,item:x})=>[l(i,A(c,{value:x.text}),{prepend:o(()=>[x.value?(f(),C(n,{key:0,color:x.value},{default:o(()=>[...e[13]||(e[13]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):E("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[l(n,{color:r.selectedBackgroundColor},{default:o(()=>[...e[12]||(e[12]=[s(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(p,null,{default:o(()=>[l(m,{modelValue:r.customBackgroundColor,"onUpdate:modelValue":e[6]||(e[6]=c=>r.customBackgroundColor=c),label:"Custom background color",hint:r.customColorHint,disabled:r.selectedBackgroundColor!==!1,rules:[r.rules.customColor],"data-test":"context-tag-custom-background-color"},{"prepend-inner":o(()=>[F(l(n,{color:r.customBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,!r.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(p,null,{default:o(()=>[l(y,{modelValue:r.selectedFontColor,"onUpdate:modelValue":e[7]||(e[7]=c=>r.selectedFontColor=c),label:"Font color",items:r.colors,"item-title":"text","data-test":"context-tag-font-color"},O({item:o(({props:c,item:x})=>[l(i,A(c,{value:x.text}),{prepend:o(()=>[x.value?(f(),C(n,{key:0,color:x.value},{default:o(()=>[...e[16]||(e[16]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):E("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedFontColor?{name:"prepend-inner",fn:o(()=>[F(l(n,{color:r.selectedFontColor},{default:o(()=>[...e[15]||(e[15]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,r.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(p,null,{default:o(()=>[l(m,{modelValue:r.customFontColor,"onUpdate:modelValue":e[8]||(e[8]=c=>r.customFontColor=c),label:"Custom font color",hint:r.customColorHint,disabled:r.selectedFontColor!==!1,rules:[r.rules.customColor],"data-test":"context-tag-custom-font-color"},{"prepend-inner":o(()=>[F(l(n,{color:r.customFontColor},{default:o(()=>[...e[17]||(e[17]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,!r.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1})]),_:1}),l(D,null,{default:o(()=>[l(H,{disabled:!v.formValid,color:"success",variant:"text","data-test":"save-context-tag",onClick:v.save},{default:o(()=>[...e[18]||(e[18]=[s(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Ke=k(Ze,[["render",ze]]),$e={components:{SuppressedSettings:re,AiChatSettings:ie,DefaultConfigSettings:ce,EditorSettings:ge,AstroSettings:he,ThemeSettings:Ve,ClassificationBannerSettings:_e,TimeZoneSettings:Ue,TimeFormatSettings:Le,NewsFeedSettings:we,SubtitleSettings:Ae,SourceCodeSettings:De,RubyGemsSettings:Ie,PypiSettings:je,ContextTagSettings:Ke},data(){return{isEnterprise:!1}},created(){M.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=t.enterprise})}};function Je(t,e,_,U,r,v){const b=a("suppressed-settings"),d=a("v-divider"),u=a("default-config-settings"),m=a("editor-settings"),p=a("astro-settings"),g=a("theme-settings"),h=a("time-zone-settings"),n=a("time-format-settings"),i=a("news-feed-settings"),y=a("classification-banner-settings"),W=a("subtitle-settings"),H=a("source-code-settings"),D=a("ruby-gems-settings"),N=a("pypi-settings"),c=a("context-tag-settings"),x=a("ai-chat-settings");return f(),B("div",null,[l(b),l(d),l(u),l(d),l(m),l(d),l(p),l(d),l(g),l(d),l(h),l(d),l(n),l(d),l(i),l(d),l(y),l(d),l(W),l(d),l(H),l(d),l(D),l(d),l(N),l(d),l(c),r.isEnterprise?(f(),B(L,{key:0},[l(d),l(x)],64)):E("",!0)])}const Ye=le("default",k($e,[["render",Je]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./VWidget-
|
|
1
|
+
System.register(["./VWidget-5FjwlURU-6a72b64b7cc840033418.js","vue","./main-6a328857fae6aab0f418.js","./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","vue-router","pinia","single-spa","vuetify"],(function(c,p){"use strict";var l,r,n,a,i,s;return{setters:[t=>{l=t.T},t=>{r=t.resolveComponent,n=t.openBlock,a=t.createBlock,i=t.normalizeStyle},t=>{s=t.k},null,null,null,null,null,null],execute:(function(){const t={mixins:[l],props:{value:{type:[Number,String],default:null}},emits:["open"],data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=Number.parseFloat(e[1]),this.twoBar=Number.parseFloat(e[2]),this.threeBar=Number.parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function u(e,d,g,B,v,o){const h=r("v-btn");return n(),a(h,{icon:o.displayedIcon,variant:"text",style:i(e.computedStyle),"aria-label":"Signal Strength",onClick:o.clickHandler},null,8,["icon","style","onClick"])}const m=c("default",s(t,[["render",u]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["vue","./main-
|
|
1
|
+
System.register(["vue","./main-6a328857fae6aab0f418.js"],(function(x,N){"use strict";var l,u,p,o,e,n,s,h,m;return{setters:[t=>{l=t.resolveComponent,u=t.openBlock,p=t.createBlock,o=t.withCtx,e=t.createVNode,n=t.createElementVNode,s=t.toDisplayString,h=t.createTextVNode},t=>{m=t.k}],execute:(function(){const t={props:{modelValue:Boolean,text:{type:String,default:null},title:{type:String,default:null},width:{type:Number,default:800}},emits:["update:modelValue"],computed:{show:{get(){return this.modelValue},set(i){this.$emit("update:modelValue",i)}}},methods:{download:function(){const i=new Blob([this.text],{type:"text/plain"}),a=document.createElement("a");a.href=URL.createObjectURL(i),a.setAttribute("download",`${this.title}.txt`),a.click()}}},f={class:"mx-2"},V={class:"pa-3"},k={class:"text"};function g(i,a,c,E,D,d){const r=l("v-spacer"),v=l("v-btn"),y=l("v-toolbar"),b=l("v-card-text"),C=l("v-card-actions"),_=l("v-card"),B=l("v-dialog");return u(),p(B,{modelValue:d.show,"onUpdate:modelValue":a[1]||(a[1]=w=>d.show=w),width:c.width,scrollable:""},{default:o(()=>[e(_,null,{default:o(()=>[e(y,{height:"24"},{default:o(()=>[e(r),n("span",null,s(c.title),1),e(r),n("div",f,[e(v,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:d.download},null,8,["onClick"])])]),_:1}),e(b,{style:{"max-height":"80vh"}},{default:o(()=>[n("div",V,[n("span",k,s(c.text),1)])]),_:1}),e(C,{class:"px-2"},{default:o(()=>[e(r),e(v,{variant:"flat",onClick:a[0]||(a[0]=w=>d.show=!d.show)},{default:o(()=>[...a[2]||(a[2]=[h(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const S=x("E",m(t,[["render",g],["__scopeId","data-v-1a0bca65"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue","./main-6a328857fae6aab0f418.js","vue-router","pinia","single-spa","vuetify"],(function(l,o){"use strict";var t,n,i,s,r;return{setters:[e=>{t=e.f},e=>{n=e.openBlock,i=e.createElementBlock,s=e.normalizeStyle},e=>{r=e.k},null,null,null,null],execute:(function(){const e={mixins:[t],created(){this.parameters[0]!==void 0&&this.appliedSettings.push(["WIDTH",this.parameters[0]]),this.parameters[1]!==void 0&&this.appliedSettings.push(["HEIGHT",this.parameters[1]])}};function a(u,p,m,d,f,h){return n(),i("div",{style:s(u.computedStyle)},null,4)}const c=l("default",r(e,[["render",a]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./GraphWidget-COvVOlEn-9d0cb68fec73a5f3454a.js","./main-6a328857fae6aab0f418.js","vue","./Graph-xc7TNnsk-b819fee23f66c94861f9.js","single-spa","./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue-router","pinia","vuetify","./OpenC3TimePicker-Cww9L2Ij-d23c4fb5d7d8178a137a.js"],(function(l,c){"use strict";var i,s,n,r,a,d,o;return{setters:[e=>{i=e.M},e=>{s=e.k},e=>{n=e.resolveComponent,r=e.openBlock,a=e.createBlock,d=e.normalizeStyle},e=>{o=e.U},null,null,null,null,null,null],execute:(function(){const e={components:{Graph:o},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,f,k){const h=n("graph");return r(),a(h,{id:t.id,ref:"graph"+t.id,state:t.state,"selected-graph-id":t.id,"start-time":t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:d(t.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",s(e,[["render",p]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Layout-BLS4Yi3m-9a851fc81da50b5a0f78.js","vue","./main-6a328857fae6aab0f418.js","./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue-router","pinia","single-spa","vuetify"],(function(k,E){"use strict";var f,l,n,i,g,w,a,c,u,o,T,d,b,v,y,V;return{setters:[e=>{f=e.r},e=>{l=e.resolveComponent,n=e.openBlock,i=e.createElementBlock,g=e.createVNode,w=e.normalizeStyle,a=e.withCtx,c=e.Fragment,u=e.renderList,o=e.createBlock,T=e.createTextVNode,d=e.toDisplayString,b=e.createElementVNode,v=e.resolveDynamicComponent,y=e.mergeProps},e=>{V=e.k},null,null,null,null,null],execute:(function(){const e={mixins:[f],emits:["min-max-screen"],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(r,m,L,P,j,U){const S=l("v-tab"),N=l("v-tabs"),_=l("v-tooltip"),B=l("v-window-item"),C=l("v-window");return n(),i("div",null,[g(N,{modelValue:r.curTab,"onUpdate:modelValue":m[0]||(m[0]=s=>r.curTab=s),style:w(r.computedStyle)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(S,{key:p},{default:a(()=>[T(d(s.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(C,{modelValue:r.curTab,"onUpdate:modelValue":m[1]||(m[1]=s=>r.curTab=s)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(B,{key:p},{default:a(()=>[(n(!0),i(c,null,u(s.widgets,(t,z)=>(n(),i(c,{key:`${p}-${z}`},[r.getTooltipText(t)?(n(),o(_,{key:0,"open-delay":r.getTooltipDelay(t),location:"top","activator-props":r.getTooltipActivatorProps(t)},{activator:a(({props:D})=>[(n(),o(v(t.type),y({ref_for:!0},{...r.listeners,...D},{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:a(()=>[b("span",null,d(r.getTooltipText(t)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),o(v(t.type),y({key:1,ref_for:!0},r.listeners,{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const h=k("default",V(e,[["render",x]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-6a328857fae6aab0f418.js","vue","single-spa","./OutputDialog-B-bk2nex-d22c9e9f81462796cf40.js","vue-router","pinia","vuetify"],(function(_,F){"use strict";var k,u,t,d,g,n,o,C,b,m,f,h,y,D,w,T;return{setters:[e=>{k=e.k,u=e.S},e=>{t=e.resolveComponent,d=e.openBlock,g=e.createElementBlock,n=e.createVNode,o=e.withCtx,C=e.Fragment,b=e.renderList,m=e.createTextVNode,f=e.toDisplayString,h=e.createBlock,y=e.createElementVNode,D=e.mergeProps,w=e.createCommentVNode},null,e=>{T=e.S},null,null,null],execute:(function(){const e={components:{OutputDialog:T},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){u.get("/openc3-api/targets_modified").then(l=>{this.targets=l.data})},showTarget(l){u.get(`/openc3-api/targets/${l}`).then(a=>{this.jsonContent=JSON.stringify(a.data,null," "),this.dialogTitle=l,this.showDialog=!0})},dialogCallback(l){this.showDialog=!1},downloadTarget:function(l){u.post(`/openc3-api/targets/${l}/download`).then(a=>{const p=window.atob(a.data.contents),v=new Uint8Array(p.length);for(let c=0;c<p.length;++c)v[c]=p.charCodeAt(c);const i=new Blob([v],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",a.data.filename),s.click()})}}};function x(l,a,p,v,i,s){const c=t("v-list-item-title"),N=t("v-list-item-subtitle"),V=t("v-btn"),B=t("v-tooltip"),j=t("v-list-item"),L=t("v-divider"),E=t("v-list"),O=t("output-dialog");return d(),g("div",null,[n(E,{class:"list","data-test":"targetList"},{default:o(()=>[(d(!0),g(C,null,b(i.targets,r=>(d(),g("div",{key:r},[n(j,null,{append:o(()=>[r.modified?(d(),h(B,{key:0,"open-delay":600,location:"top"},{activator:o(({props:S})=>[n(V,D({ref_for:!0},S,{class:"mx-3",icon:"mdi-folder-download",variant:"text","aria-label":"Download Modified Files",onClick:A=>s.downloadTarget(r.name)}),null,16,["onClick"])]),default:o(()=>[a[1]||(a[1]=y("span",null,"Download Modified Files",-1))]),_:2},1024)):w("",!0),n(V,{icon:"mdi-eye",variant:"text","aria-label":"View Target",onClick:S=>s.showTarget(r.name)},null,8,["onClick"])]),default:o(()=>[n(c,null,{default:o(()=>[m(f(r.name),1)]),_:2},1024),n(N,null,{default:o(()=>[m(" Plugin: "+f(r.plugin),1)]),_:2},1024)]),_:2},1024),n(L)]))),128))]),_:1}),i.showDialog?(d(),h(O,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":a[0]||(a[0]=r=>i.showDialog=r),content:i.jsonContent,type:"Target",name:i.dialogTitle,onSubmit:s.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):w("",!0)])}const U=_("default",k(e,[["render",x],["__scopeId","data-v-85600496"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-6a328857fae6aab0f418.js","vue","./DetailsDialog-DHi4t3xd-23cd6112e439aa7c2e72.js","single-spa","./VWidget-5FjwlURU-6a72b64b7cc840033418.js","vue-router","pinia","vuetify","./LimitsBar-BqpvMpXM-299f056c19106e6b75fb.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js"],(function(f,z){"use strict";var c,a,s,o,n,u,d,l,m,p,h,g,v,x,w,C;return{setters:[e=>{c=e.k},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,p=e.renderList,h=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{w=e.Z},null,e=>{C=e.T},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:w},mixins:[C],data:function(){return{width:200,height:200}},computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},y={class:"textbox-widget-container"};function k(t,r,N,L,U,V){const B=a("v-textarea"),D=a("v-list-item-title"),S=a("v-list-item"),M=a("v-list"),T=a("v-menu"),j=a("details-dialog");return s(),o("div",y,[n(B,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,V.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(T,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(M,null,{default:l(()=>[(s(!0),o(m,null,p(t.contextMenuOptions,(i,_)=>(s(),h(S,{key:_,onClick:g(i.action,["stop"])},{default:l(()=>[n(D,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(j,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])])}const E=f("default",c(e,[["render",k],["__scopeId","data-v-ce1e6683"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue","./main-6a328857fae6aab0f418.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var t,l,n,a,s,r;return{setters:[e=>{t=e.f},e=>{l=e.resolveComponent,n=e.openBlock,a=e.createBlock,s=e.normalizeStyle},e=>{r=e.k},null,null,null,null],execute:(function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,i,f,y,o,g){const m=l("v-text-field");return n(),a(m,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=v=>o.value=v),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:s(d.computedStyle)},null,8,["modelValue","style"])}const h=u("default",r(e,[["render",c]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","./OpenC3TimePicker-Cww9L2Ij-d23c4fb5d7d8178a137a.js","./main-6a328857fae6aab0f418.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,V){"use strict";var l,n,i,r,a,s,o,m;return{setters:[e=>{l=e.f},e=>{n=e.w},e=>{i=e.k,r=e.R},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createBlock,m=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:n},mixins:[l,r],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function p(d,u,v,y,t,C){const h=a("OpenC3TimePicker");return s(),o(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=f=>t.timeValue=f),label:t.label,style:m(d.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const k=c("default",i(e,[["render",p]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-CSgnvwEG-bc4dec83d0fc9039b821.js","vue","./main-6a328857fae6aab0f418.js","vue-router","pinia","single-spa","vuetify"],(function(s,p){"use strict";var t,r,n,l,i,a;return{setters:[e=>{t=e.f},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,i=e.toDisplayString},e=>{a=e.k},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function o(c,f,g,y,d,u){return r(),n("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},i(u.labelText),5)}const m=s("default",a(e,[["render",o]]))})}}));
|