openc3-cosmos-tool-admin 6.8.0 → 6.8.1
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-FGjLmPfG-44fcda8c1a58ea6170ae.js +2 -0
- data/tools/admin/{ArrayplotWidget-DuLaiGa9-300cd72a521955187da6.js → ArrayplotWidget-Cfo18TYm-5bd2712eb1c8ad56f585.js} +1 -1
- data/tools/admin/{BarColumn-BWJ0Dd4O-6ebba5780ce737f5ddbf.js → BarColumn-BuJ6MTYG-e6baf9cd4e004a6d2c77.js} +1 -1
- data/tools/admin/{BlockWidget-Bf5Dd6Cr-501019a9eb9a9e2eba31.js → BlockWidget-B_JwY8-N-929823088b2dc2a31061.js} +2 -2
- data/tools/admin/ButtonWidget-Cd4M3aBD-729dbae240cffee578e0.js +2 -0
- data/tools/admin/CanvasWidget-CpKdOgTG-72dfb48d50386b283e48.js +1 -0
- data/tools/admin/CanvasdotWidget-zYbI5LAw-9f238e2bc2f57d73642c.js +1 -0
- data/tools/admin/{CanvasimageWidget-6ywvT5jd-f686c0e9cee756200743.js → CanvasimageWidget--ORQEPj6-9f154109b61ab23337f0.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-DjWrA3gX-f91ca94e4fb9ba954787.js → CanvasimagevalueWidget-CtAtYHRm-e6fee91dd3784883d10c.js} +1 -1
- data/tools/admin/CanvaslabelWidget-DWoROb6o-5ee30233a32883e5d14e.js +1 -0
- data/tools/admin/{CanvaslabelvalueWidget-C8oNcFLi-285986e2d5886f6fda46.js → CanvaslabelvalueWidget-A4UbtwEc-ee2d0b455a50f84898d0.js} +1 -1
- data/tools/admin/{CanvaslineWidget-nvbL2GoL-3b104c23686f811f31d8.js → CanvaslineWidget-BBGi0nrb-e4383db5b68f5bc2031a.js} +1 -1
- data/tools/admin/{CanvaslinevalueWidget-ZACQedKx-61ee6479047118c136ce.js → CanvaslinevalueWidget-C_9OkL7f-f1b4e56bc8baf58dd2ba.js} +1 -1
- data/tools/admin/{CheckbuttonWidget-B82UE8AB-5663ae34d10b3ad1ca2b.js → CheckbuttonWidget-CTJg8Ypg-50079f5903e15875b7b9.js} +1 -1
- data/tools/admin/ComboboxWidget-DWiMZZk8-a00f8f7686c13682415b.js +1 -0
- data/tools/admin/{DateWidget-BmwtdirF-7f519373bebae341a18a.js → DateWidget-C7GSh68_-84a7616e60c60f1b3f2e.js} +1 -1
- data/tools/admin/{DetailsDialog-CLKEfU0s-4eb3903f42568522740e.js → DetailsDialog-B2l0BNc2-3107118d0513dc614cc7.js} +1 -1
- data/tools/admin/{DynamicWidget-CfMtj7H8-fe1b96b01c5faecb968d.js → DynamicWidget-CfMtj7H8-de373d40d9a1f4955294.js} +1 -1
- data/tools/admin/{FormatvalueWidget-C8exC3bj-6c42a374ad2d97fca94f.js → FormatvalueWidget-CZJdsUAq-f13bb63ba261ce588aa0.js} +1 -1
- data/tools/admin/{Graph-CWcrowaT-105531172f7058ffa8a0.js → Graph-DZBpdSgR-278780d2da2f41d54751.js} +1 -1
- data/tools/admin/{GraphWidget-CvzxZYVx-481cfcf6b94732eec36f.js → GraphWidget-CHm4bhMI-d4ab303c2a4fbe006680.js} +1 -1
- data/tools/admin/HorizontalWidget-B2skpV1m-fd9cfc52e14eb0bc2d46.js +1 -0
- data/tools/admin/{HorizontalboxWidget-D3P-cl9V-6a203f3c687729bee238.js → HorizontalboxWidget-BI0WZP5M-f47c09f349a1cfc189d3.js} +1 -1
- data/tools/admin/HorizontallineWidget-AmxVeXcU-56e0d515ccd6a5d2cdca.js +1 -0
- data/tools/admin/{IframeWidget-BgJCgues-5328ebef7a2ce92f7476.js → IframeWidget-DcqRMhyW-cfcc4a02706137392581.js} +1 -1
- data/tools/admin/{ImageLoader-CWn-PLOk-af18cde7cd9883fcce93.js → ImageLoader-ly4zoGpO-2469fa5966dc7a1db434.js} +1 -1
- data/tools/admin/ImageviewerWidget-cmDHcmW4-52417b688beecab4390f.js +1 -0
- data/tools/admin/InterfacesTab-BSCFzmW1-fe7971beba801c25eaad.js +1 -0
- data/tools/admin/{LabelWidget-Cwosk4x2-6a49b3dc31246a3e822f.js → LabelWidget-Bemw8Erq-ae1e6452ba4011265561.js} +1 -1
- data/tools/admin/LabelledWidget-Cb7EvtUG-485388a48af14d741d82.js +1 -0
- data/tools/admin/LabelprogressbarWidget-qYgrGqLY-fda38bbf4ffea980a08c.js +1 -0
- data/tools/admin/LabelsparklineWidget-CMklq9-f-80e9864028d4e67e8f96.js +1 -0
- data/tools/admin/LabelvalueWidget-NjCMgiYL-2b1ef2c3155d4f49e9c0.js +1 -0
- data/tools/admin/{LabelvaluedescWidget-Dwwlnd1g-de58d7b51a638d857c2d.js → LabelvaluedescWidget-Dflulqm7-e879f51ba8c998491312.js} +1 -1
- data/tools/admin/LabelvaluelimitsbarWidget-M34NDk2S-a39d9a63d8a45f8bac39.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-Cchaw_-k-21147c10274d26659d9c.js +1 -0
- data/tools/admin/LabelvaluerangebarWidget-7pEykAm3-e75263936f2183a05414.js +1 -0
- data/tools/admin/Layout-BNvQKlyy-3236ac6ad264fa10d886.js +1 -0
- data/tools/admin/{LedWidget-DOuDD8LI-54a8998ee195925f65db.js → LedWidget-_EA7ZKM8-468a5541579465eddb48.js} +1 -1
- data/tools/admin/{LimitsbarWidget-D1U6SvVL-c9a85b1dc3d00331918c.js → LimitsbarWidget-DdoQf46y-d7909ec7a332d2ceede2.js} +1 -1
- data/tools/admin/{LimitscolorWidget-iSMGusqt-349d53b8c0bfc3650c82.js → LimitscolorWidget-Cv0umnVo-8586cd8761a9c9e09595.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-DjxZTt_r-4c5165c41b04357e8dea.js → LimitscolumnWidget-CnCQtxim-eb57b696b57c671da90b.js} +1 -1
- data/tools/admin/{LinegraphWidget-BHKU6zlT-4d07bbe399611efb2d32.js → LinegraphWidget-ekyQoR7x-4b3fc16b7a619005f4fb.js} +1 -1
- data/tools/admin/MatrixbycolumnsWidget-IBUcGNF7-b4c40fa3ba17c6de9b9d.js +1 -0
- data/tools/admin/{MicroservicesTab-xLup6THU-19983b9be050da37bc88.js → MicroservicesTab-CUqp5uFH-6974f5fa8961c4dbd226.js} +1 -1
- data/tools/admin/{OutputDialog-Ut5cXGxQ-4f7c9ec354ca342690ea.js → OutputDialog-wBy-sg3k-44d343cf4df6f6e77944.js} +1 -1
- data/tools/admin/{PackagesTab-ChJDyU3Z-67185c49922f40000836.js → PackagesTab-BSVPTVe7-df0b500a72b70d9fc8f0.js} +1 -1
- data/tools/admin/{PluginsTab-CayzDij0-f90a2445a4c8fd9ea2b0.js → PluginsTab-DShjzJVP-57166351df2b8151c0f3.js} +2 -2
- data/tools/admin/{ProgressbarWidget-fbr2qu_N-8505452bf02e2752e05b.js → ProgressbarWidget-CnveFZVh-eeafad9f78cac9edbe77.js} +1 -1
- data/tools/admin/{RadiobuttonWidget-DL08zcQT-660870fa8a9a0ed92f79.js → RadiobuttonWidget-hWLrCb8W-92f15708234755c89d74.js} +1 -1
- data/tools/admin/{RadiogroupWidget-DW9Xpj3c-97a8e0d0f9ca071e1dc2.js → RadiogroupWidget-DK1fphkh-ce318f0563de0c739a98.js} +1 -1
- data/tools/admin/{RangebarWidget-o9q55kjc-27cab25d5c841bf1c1f4.js → RangebarWidget-vspY8CGV-369d2545270562f32911.js} +1 -1
- data/tools/admin/{RedisTab-BGz2ZN9T-d933605c4b922947be52.js → RedisTab-B28s52_T-cb8984e5a59c843f562d.js} +1 -1
- data/tools/admin/{RollupWidget-BHnjj-DF-6934e0803b7e2b931590.js → RollupWidget-07pNcXQV-ef87fd5e3fe3a507e537.js} +1 -1
- data/tools/admin/RoutersTab-DX_r6FEQ-6a4c40a239b75e6ce631.js +1 -0
- data/tools/admin/{ScrollwindowWidget-D-QVwztC-61d65d081ef67a4ed762.js → ScrollwindowWidget-BcbyrYUo-883957a1d8e1d5ad5428.js} +1 -1
- data/tools/admin/{SecretsTab-vVy356vr-6ad66f5d8d808f395083.js → SecretsTab-BNFEqrT1-e67f23fdc7cd0fd3f836.js} +1 -1
- data/tools/admin/{SettingsTab-CbWrf7U9-145a44c2543a6b162d18.js → SettingsTab-C4T8ecIZ-613602608dee52cbcd7f.js} +1 -1
- data/tools/admin/{SignalWidget-CsWuufdx-17e83cd90c02916b68ed.js → SignalWidget-BDp5sUHj-9b7bdb092fce69b84ffc.js} +1 -1
- data/tools/admin/{SimpleTextDialog-ChV5vRcV-ee4047fcd74cc18858a5.js → SimpleTextDialog-LQJdcAXX-13f4c9397341216c87a5.js} +1 -1
- data/tools/admin/{SpacerWidget-Di9-qunj-5d75ffed67d8ac4a0017.js → SpacerWidget-DcOnQ1yI-d6e75fc20c5facdfb73e.js} +1 -1
- data/tools/admin/{SparklineWidget-B6-zhdPW-25efab00321f52c73e69.js → SparklineWidget-CVglnlAm-323a88928d7ac4f079e6.js} +1 -1
- data/tools/admin/{TabbookWidget-B1E1_mzA-1c4d55131d4385514423.js → TabbookWidget-p51Oa7Ru-74df45116a11340f4a75.js} +1 -1
- data/tools/admin/{TargetsTab-DbbQcBuK-3961c31e26d2adccc8f8.js → TargetsTab-CBagO3CX-3d9410ab4bacd6faa8ec.js} +1 -1
- data/tools/admin/TextboxWidget-DM-XX97e-be745b584d0bf27cb543.js +1 -0
- data/tools/admin/TextfieldWidget-7cYHAgH8-467a69602c44ccfa8076.js +1 -0
- data/tools/admin/{TimeWidget-K4MNmJ7J-c6b3ffa5b3fade64d757.js → TimeWidget-EvQJyu6x-ab15784e1530e935e5d1.js} +1 -1
- data/tools/admin/TitleWidget-6ddfJuqd-5818a07dd81f0018d314.js +1 -0
- data/tools/admin/{ToolsTab-tkganPCk-1403ae262b14345c5433.js → ToolsTab-ClJNvp8z-6364c3b197c5dca67597.js} +2 -2
- data/tools/admin/{VWidget-CoIgX3hM-a356573f9a39914e0684.js → VWidget-P-X9ffkl-afe8821fe00c082d6017.js} +1 -1
- data/tools/admin/{ValueWidget-BvT1ASar-c935631df7bc01f56ed4.js → ValueWidget-DAUGuQ9f-691cb1a776cd1ba3bb42.js} +1 -1
- data/tools/admin/ValuelimitsbarWidget-DmLUXw0I-85cf0746e60cd516e18d.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-DDmo8wHJ-2cca5729acb3b3225ea2.js +1 -0
- data/tools/admin/ValuerangebarWidget-CbzWSWq3-321e3f31c5610ac80b98.js +1 -0
- data/tools/admin/{VerticalWidget-1GhgYrC3-277fae2c779c19feac7d.js → VerticalWidget-BuKinn_c-79df282d86feacb7b7cb.js} +1 -1
- data/tools/admin/VerticalboxWidget-C0zD5h0O-ae5e104f9b3771f1d13e.js +1 -0
- data/tools/admin/{Widget-B8t93Oid-b8b1d3d04992a9283301.js → Widget-BIXl-Pk5-73a605540046d0272b73.js} +1 -1
- data/tools/admin/main-a4f4e7cef92e830d29de.js +1508 -0
- data/tools/admin/main.js +1 -1
- data/tools/admin/{settings-UZsgbUSr-bb64fc6e56b951877c8c.js → settings-DToCplG_-ca6efbbfb677a1b36d60.js} +1 -1
- metadata +80 -80
- data/tools/admin/ArrayWidget-j3ncPuPx-d357a0456eb0cf463987.js +0 -2
- data/tools/admin/ButtonWidget-bl_mGFYh-641ae9e406a1180a78a2.js +0 -2
- data/tools/admin/CanvasWidget-boDemgx1-61d857fc4b60e03a378e.js +0 -1
- data/tools/admin/CanvasdotWidget-BZBbJcER-162d008fc0b80d577157.js +0 -1
- data/tools/admin/CanvaslabelWidget-Bq4V2BQh-38407a5ea2bf9b3afd44.js +0 -1
- data/tools/admin/ComboboxWidget-4OFiSkI6-4e491ee9ea0c6eaee168.js +0 -1
- data/tools/admin/HorizontalWidget-Ck151zVw-74e832e14db72b2089e1.js +0 -1
- data/tools/admin/HorizontallineWidget-BE1TjPU8-f84917ec8bda9448bdde.js +0 -1
- data/tools/admin/ImageviewerWidget-BlhFZD2f-e63ece404f66c8d4e365.js +0 -1
- data/tools/admin/InterfacesTab-Cwz-zG7j-43adda19a13600e2cab9.js +0 -1
- data/tools/admin/LabelledWidget-Dl6rAFTQ-5480bc7e666543153c28.js +0 -1
- data/tools/admin/LabelprogressbarWidget-MuAKesOz-c9a3748eb58959cbe0f5.js +0 -1
- data/tools/admin/LabelsparklineWidget-6LA6Ox3d-e7d14efe2a42441f9bc3.js +0 -1
- data/tools/admin/LabelvalueWidget-BxAXx-Tf-31b18663380fec238f6e.js +0 -1
- data/tools/admin/LabelvaluelimitsbarWidget-Dv8Qk8kK-dcfbfc9fa37586b58799.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-D-_gl6fq-6b5d16f8d46962168e2b.js +0 -1
- data/tools/admin/LabelvaluerangebarWidget-B3MKT-3Y-66da99c017e928a5c16e.js +0 -1
- data/tools/admin/Layout-Bkb6VP3e-31c6ac983b042c4320f9.js +0 -1
- data/tools/admin/MatrixbycolumnsWidget-BKO-A2QD-f89148e0f53912b7b364.js +0 -1
- data/tools/admin/RoutersTab-CCEPlZ_Y-4c2919cc01c0beeac844.js +0 -1
- data/tools/admin/TextboxWidget-CBVEXPw_-d0506fac536b5322f9d8.js +0 -1
- data/tools/admin/TextfieldWidget-DZMHrtQa-fa4f7fc7552b08d3928c.js +0 -1
- data/tools/admin/TitleWidget-8IcwweFE-add1efbfcf5f94796bba.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-C5lBnUmB-632bf96c7d125c0ced4c.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-DHYI0WBL-ce6de68d282354704610.js +0 -1
- data/tools/admin/ValuerangebarWidget-BSszZhlE-d0a35dc5662752798939.js +0 -1
- data/tools/admin/VerticalboxWidget-DYHJqEzd-65fb9ce6a7fd0d5c90fe.js +0 -1
- data/tools/admin/main-c0c3d22126d5cf1e2935.js +0 -1508
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-a4f4e7cef92e830d29de.js","vue","single-spa","./OutputDialog-wBy-sg3k-44d343cf4df6f6e77944.js","vue-router","vuex","vuetify"],(function(I,q){"use strict";var T,m,E,A,s,f,u,l,o,x,d,w,y,k,N,$,B,j,U;return{setters:[i=>{T=i.d,m=i.N,E=i.p,A=i.l},i=>{s=i.resolveComponent,f=i.createBlock,u=i.openBlock,l=i.withCtx,o=i.createVNode,x=i.createElementVNode,d=i.toDisplayString,w=i.createTextVNode,y=i.createElementBlock,k=i.createCommentVNode,N=i.Fragment,$=i.renderList,B=i.withDirectives,j=i.vShow},null,i=>{U=i.E},null,null,null],execute:(function(){const i={props:{modelValue:Boolean,text:String,title:String},computed:{dialogText:function(){return this.text},show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},methods:{download:function(){const t=new Blob([this.dialogText],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.title}__error.txt`),e.click()}}},L={class:"mx-2"},F={class:"pa-2"};function J(t,e,c,h,a,n){const g=s("v-spacer"),C=s("v-btn"),S=s("v-toolbar"),p=s("v-textarea"),_=s("v-card-text"),V=s("v-card-actions"),b=s("v-card"),D=s("v-dialog");return u(),f(D,{modelValue:n.show,"onUpdate:modelValue":e[2]||(e[2]=v=>n.show=v),width:"600"},{default:l(()=>[o(b,null,{default:l(()=>[o(S,{height:"24"},{default:l(()=>[o(g),x("span",null,d(c.title),1),o(g),x("div",L,[o(C,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:n.download},null,8,["onClick"])])]),_:1}),x("div",F,[o(_,null,{default:l(()=>[o(p,{modelValue:n.dialogText,"onUpdate:modelValue":e[0]||(e[0]=v=>n.dialogText=v),readonly:"",rows:"15","data-test":"dialogText"},null,8,["modelValue"])]),_:1})]),o(V,{class:"px-2"},{default:l(()=>[o(g),o(C,{variant:"flat",onClick:e[1]||(e[1]=v=>n.show=!n.show)},{default:l(()=>[...e[3]||(e[3]=[w(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const H={components:{OutputDialog:U,TextBoxDialog:T(i,[["render",J]])},data(){return{microservices:[],microservice_status:{},microservice_id:null,jsonContent:"",dialogTitle:"",showDialog:!1,showError:!1,alert:"",alertType:"success",showAlert:!1,updater:null}},mounted(){this.update(),this.updater=setInterval(()=>{this.update()},2e3)},beforeUnmount(){clearInterval(this.updater),this.updater=null},methods:{update:function(){m.get("/openc3-api/microservice_status/all").then(t=>{this.microservice_status=t.data}),m.get("/openc3-api/microservices/all").then(t=>{let e=[];for(const[c,h]of Object.entries(t.data))e.push(h);e.sort((c,h)=>c.name.localeCompare(h.name)),this.microservices=e})},startMicroservice:function(t){this.$dialog.confirm(`Are you sure you want to restart microservice: ${t}?`,{okText:"Start",cancelText:"Cancel"}).then(e=>{m.post(`/openc3-api/microservices/${t}/start`).then(c=>{this.alert=`Started ${t}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3)}).then(()=>{this.update()})})},stopMicroservice:function(t){this.$dialog.confirm(`Are you sure you want to stop microservice: ${t}?`,{okText:"Stop",cancelText:"Cancel"}).then(e=>{m.post(`/openc3-api/microservices/${t}/stop`).then(c=>{this.alert=`Stopped ${t}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3)}).then(()=>{this.update()})})},showMicroservice:function(t){m.get(`/openc3-api/microservices/${t}`).then(e=>{this.microservice_id=t,this.dialogTitle=t,this.jsonContent=JSON.stringify(e.data,null," "),this.showDialog=!0})},showMicroserviceError:function(t){this.dialogTitle=t;const e=this.microservice_status[t].error;this.jsonContent=JSON.stringify(e,null," "),this.showError=!0},formatDate(t){return E(A(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},dialogCallback:function(t){if(this.showDialog=!1,t!==null){let e=JSON.parse(t),c="put",h=`/openc3-api/microservices/${this.microservice_id}`;e.name!==this.microservice_id&&(c="post",h="/openc3-api/microservices"),m[c](h,{data:{json:t}}).then(a=>{this.alert="Modified Microservice",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}}};function R(t,e,c,h,a,n){const g=s("v-alert"),C=s("v-list-item-title"),S=s("v-list-item-subtitle"),p=s("v-btn"),_=s("v-list-item-icon"),V=s("v-list-item"),b=s("v-divider"),D=s("v-list"),v=s("output-dialog"),Q=s("text-box-dialog");return u(),y("div",null,[o(g,{modelValue:a.showAlert,"onUpdate:modelValue":e[0]||(e[0]=r=>a.showAlert=r),dismissible:"",transition:"scale-transition",type:a.alertType},{default:l(()=>[w(d(a.alert),1)]),_:1},8,["modelValue","type"]),o(D,{class:"list","data-test":"microserviceList"},{default:l(()=>[(u(!0),y(N,null,$(a.microservices,r=>(u(),y("div",{key:r},[o(V,null,{append:l(()=>{var O;return[B(o(p,{icon:"mdi-alert",variant:"text",onClick:M=>n.showMicroserviceError(r.name)},null,8,["onClick"]),[[j,(O=a.microservice_status[r.name])==null?void 0:O.error]]),o(_,null,{default:l(()=>[o(p,{"aria-label":"Start Microservice",icon:"mdi-play",variant:"text",onClick:M=>n.startMicroservice(r.name)},null,8,["onClick"])]),_:2},1024),o(_,null,{default:l(()=>[o(p,{"aria-label":"Stop Microservice",icon:"mdi-stop",variant:"text",onClick:M=>n.stopMicroservice(r.name)},null,8,["onClick"])]),_:2},1024),o(_,null,{default:l(()=>[o(p,{"aria-label":"Show Microservice Details",icon:"mdi-eye",variant:"text",onClick:M=>n.showMicroservice(r.name)},null,8,["onClick"])]),_:2},1024)]}),default:l(()=>[o(C,null,{default:l(()=>[w(d(r.name),1)]),_:2},1024),a.microservice_status[r.name]?(u(),f(S,{key:0},{default:l(()=>[w(" Updated: "+d(n.formatDate(a.microservice_status[r.name].updated_at))+", State: "+d(a.microservice_status[r.name].state)+", Enabled: "+d(r.enabled===!1?"False":"True")+", Count: "+d(a.microservice_status[r.name].count),1)]),_:2},1024)):k("",!0)]),_:2},1024),o(b)]))),128))]),_:1}),a.showDialog?(u(),f(v,{key:0,modelValue:a.showDialog,"onUpdate:modelValue":e[1]||(e[1]=r=>a.showDialog=r),content:a.jsonContent,type:"Microservice",name:a.dialogTitle,onSubmit:n.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):k("",!0),a.showError?(u(),f(Q,{key:1,modelValue:a.showError,"onUpdate:modelValue":e[2]||(e[2]=r=>a.showError=r),text:a.jsonContent,title:a.dialogTitle},null,8,["modelValue","text","title"])):k("",!0)])}const G=I("default",T(H,[["render",R],["__scopeId","data-v-61eec86a"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-a4f4e7cef92e830d29de.js","vue"],(function(M,j){"use strict";var m,i,w,a,f,_,d,r,u,b,y;return{setters:[n=>{m=n.d,i=n.w,w=n.W},n=>{a=n.resolveComponent,f=n.createBlock,_=n.openBlock,d=n.withCtx,r=n.createVNode,u=n.createElementVNode,b=n.toDisplayString,y=n.createTextVNode}],execute:(function(){const n={methods:{buildLanguageMode(t,e){let o=i.require("ace/lib/oop"),h=Object.getOwnPropertyNames(w.prototype).filter(l=>l!=="constructor").filter(l=>l!=="exec").concat(["check","check_raw","check_formatted","check_with_units","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 l in this.$rules)this.$rules[l].unshift({regex:p,token:"support.function"})};o.inherits(s,t);let c=i.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,g=i.require("ace/mode/behaviour/cstyle").CstyleBehaviour;return[o,function(){this.HighlightRules=s,this.$outdent=new c,this.$behaviour=new g,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:String,name:String,modelValue:Boolean,filename:{type:String,required:!1}},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"),g=a("v-btn"),l=a("v-toolbar"),V=a("v-card-text"),C=a("v-card-actions"),L=a("v-card"),S=a("v-dialog");return _(),f(S,{modelValue:s.show,"onUpdate:modelValue":e[1]||(e[1]=k=>s.show=k),width:"85vw"},{default:d(()=>[r(L,null,{default:d(()=>[r(l,{height:"24"},{default:d(()=>[r(c),u("span",{textContent:b(s.title)},null,8,v),r(c),u("div",q,[r(g,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:s.download},null,8,["onClick"])])]),_:1}),r(V,null,{default:d(()=>[u("pre",$,null,512)]),_:1}),r(C,{class:"pr-6 pb-4 pt-0"},{default:d(()=>[r(c),r(g,{variant:"flat",onClick:e[0]||(e[0]=k=>s.show=!s.show)},{default:d(()=>[...e[2]||(e[2]=[y(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const B=M("E",m(x,[["render",R],["__scopeId","data-v-69e71dd8"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-a4f4e7cef92e830d29de.js","vue","single-spa","./SimpleTextDialog-LQJdcAXX-13f4c9397341216c87a5.js","vue-router","vuex","vuetify"],(function(U,X){"use strict";var w,D,f,b,O,i,u,c,e,V,$,t,h,d,y,v,S,m,T,N,E;return{setters:[a=>{w=a.d,D=a.K,f=a.N,b=a.p,O=a.l},a=>{i=a.resolveComponent,u=a.createElementBlock,c=a.openBlock,e=a.createVNode,V=a.createBlock,$=a.createCommentVNode,t=a.withCtx,h=a.createElementVNode,d=a.createTextVNode,y=a.Fragment,v=a.renderList,S=a.createSlots,m=a.toDisplayString,T=a.normalizeClass,N=a.mergeProps},null,a=>{E=a.E},null,null,null],execute:(function(){const a={components:{DownloadDialog:D,SimpleTextDialog:E},data(){return{showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",files:[],loadingPackage:!1,progress:0,gems:[],python:[],processes:{}}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(o){this.processOutput=o.output,this.showProcessOutput=!0},update(){f.get("/openc3-api/packages").then(o=>{this.gems=o.data.ruby,this.python=o.data.python})},updateProcesses:function(){f.get("/openc3-api/process_status/package_?substr=true").then(o=>{this.processes=o.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},2500)})},formatDate(o){return b(O(parseInt(o)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},selectFile(){this.progress=0,this.$refs.fileInput.click()},fileChange(o){const s=o.target.files;if(s.length>0){this.loadingPackage=!0;let F=this;const B=[...s].map(n=>{const r=new FormData;return r.append("package",n,n.name),f.post("/openc3-api/packages",{data:r,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(g){let p=Math.round(g.loaded*100/g.total);F.progress=p}})});Promise.all(B).then(n=>{this.$notify.normal({body:`Uploaded ${n.length} package${n.length>1?"s":""}`}),this.loadingPackage=!1,this.files=[],setTimeout(()=>{this.updateProcesses()},2500)}).catch(n=>{this.loadingPackage=!1})}},deletePackage(o){this.$dialog.confirm(`Are you sure you want to remove: ${o}`,{okText:"Delete",cancelText:"Cancel"}).then(s=>f.delete(`/openc3-api/packages/${o}`)).then(s=>{this.$notify.normal({body:`Removed package ${o}`}),setTimeout(()=>{this.updateProcesses()},2500)}).catch(s=>{this.$notify.serious({body:`Failed to remove package ${o}`})})}}},j=["textContent"],A=["textContent"];function R(o,s,F,B,n,r){const g=i("v-btn"),p=i("v-col"),z=i("rux-progress"),C=i("v-row"),_=i("v-list-item-title"),G=i("v-list-item-subtitle"),H=i("v-tooltip"),x=i("v-list-item"),P=i("v-divider"),L=i("v-list"),M=i("download-dialog"),K=i("simple-text-dialog");return c(),u("div",null,[e(C,{"no-gutters":"",align:"center",class:"px-2"},{default:t(()=>[e(p,{class:"pa-2 mt-2"},{default:t(()=>[e(g,{onClick:r.selectFile},{default:t(()=>[...s[3]||(s[3]=[d("Install Package",-1)])]),_:1},8,["onClick"]),h("input",{ref:"fileInput",style:{display:"none"},type:"file",onChange:s[0]||(s[0]=(...l)=>r.fileChange&&r.fileChange(...l))},null,544)]),_:1}),e(p,{class:"ml-4 mr-2",cols:"4"},{default:t(()=>[e(z,{value:n.progress},null,8,["value"])]),_:1})]),_:1}),Object.keys(n.processes).length>0?(c(),V(L,{key:0,class:"list","data-test":"process-list"},{default:t(()=>[e(C,{"no-gutters":"",class:"px-4"},{default:t(()=>[e(p,{class:"text-h6"},{default:t(()=>[...s[4]||(s[4]=[d("Process List",-1)])]),_:1}),e(p,{align:"right"},{default:t(()=>[...s[5]||(s[5]=[h("div",null,"Showing last 10 min of activity",-1)])]),_:1})]),_:1}),(c(!0),u(y,null,v(n.processes,l=>(c(),u("div",{key:l.name},[e(x,null,S({default:t(()=>[e(_,null,{default:t(()=>[h("span",{class:T(l.state.toLowerCase()),textContent:m(`Processing ${l.process_type}: ${l.detail} - ${l.state}`)},null,10,j)]),_:2},1024),e(G,null,{default:t(()=>[h("span",{textContent:m(" Updated At: "+r.formatDate(l.updated_at))},null,8,A)]),_:2},1024)]),_:2},[l.state!=="Running"?{name:"append",fn:t(()=>[e(H,{"open-delay":600,location:"top"},{activator:t(({props:k})=>[e(g,N({ref_for:!0},k,{icon:"mdi-eye",variant:"text","aria-label":"Show Output",onClick:I=>r.showOutput(l)}),null,16,["onClick"])]),default:t(()=>[s[6]||(s[6]=h("span",null,"Show Output",-1))]),_:2},1024)]),key:"0"}:void 0]),1024),e(P)]))),128))]),_:1})):$("",!0),e(L,{class:"list","data-test":"packageList"},{default:t(()=>[e(C,{class:"px-4"},{default:t(()=>[e(p,{class:"text-h6"},{default:t(()=>[...s[7]||(s[7]=[d("Ruby Gems",-1)])]),_:1})]),_:1}),(c(!0),u(y,null,v(n.gems,(l,k)=>(c(),u("div",{key:k},[e(x,null,{append:t(()=>[e(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Ruby Gem",onClick:I=>r.deletePackage(l)},null,8,["onClick"])]),default:t(()=>[e(_,null,{default:t(()=>[d(m(l),1)]),_:2},1024)]),_:2},1024),e(P)]))),128)),e(C,{class:"px-4"},{default:t(()=>[e(p,{class:"text-h6"},{default:t(()=>[...s[8]||(s[8]=[d("Python Packages",-1)])]),_:1})]),_:1}),(c(!0),u(y,null,v(n.python,(l,k)=>(c(),u("div",{key:k},[e(x,null,{append:t(()=>[e(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Python Package",onClick:I=>r.deletePackage(l)},null,8,["onClick"])]),default:t(()=>[e(_,null,{default:t(()=>[d(m(l),1)]),_:2},1024)]),_:2},1024),e(P)]))),128))]),_:1}),e(M,{modelValue:n.showDownloadDialog,"onUpdate:modelValue":s[1]||(s[1]=l=>n.showDownloadDialog=l)},null,8,["modelValue"]),e(K,{modelValue:n.showProcessOutput,"onUpdate:modelValue":s[2]||(s[2]=l=>n.showProcessOutput=l),title:"Process Output",text:n.processOutput},null,8,["modelValue","text"])])}const J=U("default",w(a,[["render",R],["__scopeId","data-v-e97741ba"]]))})}}));
|
@@ -1,5 +1,5 @@
|
|
1
|
-
System.register(["./main-c0c3d22126d5cf1e2935.js","vue","single-spa","./SimpleTextDialog-ChV5vRcV-ee4047fcd74cc18858a5.js","./settings-UZsgbUSr-bb64fc6e56b951877c8c.js","vue-router","vuex","vuetify"],(function(X,Re){"use strict";var $,B,H,b,q,F,A,i,P,c,l,w,S,o,u,_,O,j,x,M,I,E,N,z,J,Z,W;return{setters:[d=>{$=d.d,B=d.J,H=d.Z,b=d.P,q=d.p,F=d.l,A=d.H},d=>{i=d.resolveComponent,P=d.createElementBlock,c=d.openBlock,l=d.createVNode,w=d.createBlock,S=d.createCommentVNode,o=d.withCtx,u=d.createElementVNode,_=d.createTextVNode,O=d.Fragment,j=d.renderList,x=d.toDisplayString,M=d.normalizeClass,I=d.mergeProps,E=d.normalizeProps,N=d.guardReactiveProps,z=d.withModifiers,J=d.renderSlot},null,d=>{Z=d.E},d=>{W=d.n},null,null,null],execute:(function(){const d="store_url",R={props:{id:Number,name:String,title:String,author:String,description:String,keywords:Array,image_url:String,license:String,verified:Boolean,homepage:String,repository:String,gem_url:String,checksum:String},data:function(){return{_api:new A,_storeUrl:""}},computed:{plugin:function(){return{id:this.id,name:this.name,title:this.title,author:this.author,description:this.description,keywords:this.keywords,image_url:this.image_url,license:this.license,verified:this.verified,homepage:this.homepage,repository:this.repository,gem_url:this.gem_url,checksum:this.checksum}},storeLink:function(){return this.hasStoreListing?new URL(`/cosmos_plugins/${this.id}`,this._storeUrl):null},hasStoreListing:function(){return!!this.id},isPluginInstalled:function(){return!!this.name}},created:function(){this._api.get_setting(d).then(e=>this._storeUrl=e||"https://store.openc3.com")}},Y={mixins:[R],props:{modelValue:Boolean},emits:["triggerInstall","triggerUninstall","update:modelValue"],data(){return{showDialog:!1,showCopiedTooltip:!1}},computed:{isDialogOpen:{get:function(){return this.modelValue||this.showDialog},set:function(e){this.showDialog=e,this.$emit("update:modelValue",e)}}},methods:{openDialog:function(){this.isDialogOpen=!0},closeDialog:function(){this.isDialogOpen=!1},install:function(){this.$emit("triggerInstall",this.gemUrl)},uninstall:function(){this.$emit("triggerUninstall",this.gemUrl)},copyChecksum:function(){navigator.clipboard.writeText(this.checksum),this.showCopiedTooltip=!0,setTimeout(()=>{this.showCopiedTooltip=!1},1e3)}}},ee=["textContent"],te={key:0},le=["textContent"],ie={class:"mt-3 text-caption font-italic"};function ne(e,t,a,h,n,s){const r=i("v-spacer"),g=i("v-btn"),p=i("v-tooltip"),y=i("v-toolbar"),k=i("v-badge"),D=i("v-card-subtitle"),V=i("v-img"),f=i("v-text-field"),T=i("v-card-text"),v=i("v-card-actions"),L=i("v-card"),C=i("v-dialog");return c(),P(O,null,[J(e.$slots,"activator",{props:{onClick:s.openDialog}}),l(C,{modelValue:s.isDialogOpen,"onUpdate:modelValue":t[2]||(t[2]=U=>s.isDialogOpen=U),"max-width":"500"},{default:o(()=>[l(L,null,{default:o(()=>[l(y,{height:"24"},{default:o(()=>[l(r),u("span",{textContent:x(e.title)},null,8,ee),l(r),l(p,{location:"top"},{activator:o(({props:U})=>[u("div",E(N(U)),[l(g,{href:e.storeLink,target:"_blank",icon:"mdi-open-in-new",size:"small",variant:"plain"},null,8,["href"])],16)]),default:o(()=>[t[3]||(t[3]=u("span",null," View at store.openc3.com ",-1))]),_:1}),l(g,{icon:"mdi-close-box",variant:"text",density:"compact",onClick:s.closeDialog},null,8,["onClick"])]),_:1}),l(D,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[u("div",null,x(e.author),1),l(r),e.verified?(c(),P("div",te,[t[4]||(t[4]=_(" Verified ",-1)),l(k,{inline:"",icon:"mdi-shield-check",color:"success"})])):S("",!0)]),_:1}),l(T,null,{default:o(()=>[e.image_url?(c(),w(V,{key:0,src:e.image_url},null,8,["src"])):S("",!0),u("div",{textContent:x(e.description)},null,8,le),u("div",ie,"License: "+x(e.license),1),l(f,{modelValue:e.checksum,"onUpdate:modelValue":t[1]||(t[1]=U=>e.checksum=U),label:"SHA256",variant:"solo",density:"compact","hide-details":"",readonly:""},{append:o(()=>[l(p,{modelValue:n.showCopiedTooltip,"onUpdate:modelValue":t[0]||(t[0]=U=>n.showCopiedTooltip=U),location:"top","open-on-hover":!1},{activator:o(({props:U})=>[l(g,I(U,{icon:"mdi-content-copy",variant:"text",density:"compact",onClick:s.copyChecksum}),null,16,["onClick"])]),default:o(()=>[t[5]||(t[5]=u("span",null,"Copied!",-1))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),l(v,{class:"justify-start px-6"},{default:o(()=>[e.isPluginInstalled?(c(),w(g,{key:0,text:"Uninstall","append-icon":"mdi-puzzle-remove",variant:"outlined",color:"red",onClick:s.uninstall},null,8,["onClick"])):(c(),w(g,{key:1,text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",onClick:s.install},null,8,["onClick"])),l(g,{text:"Repository","append-icon":"mdi-open-in-new",variant:"outlined",href:e.repository,target:"_blank"},null,8,["href"]),l(g,{text:"Homepage","append-icon":"mdi-open-in-new",variant:"outlined",href:e.homepage,target:"_blank"},null,8,["href"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}const G=$(Y,[["render",ne]]),se={components:{PluginDetailsDialog:G},mixins:[R],emits:["triggerInstall"],methods:{install:function(){this.$emit("triggerInstall",this.plugin)}}},oe=["textContent"];function ae(e,t,a,h,n,s){const r=i("v-spacer"),g=i("v-badge"),p=i("v-card-title"),y=i("v-card-subtitle"),k=i("v-img"),D=i("v-card-text"),V=i("v-btn"),f=i("v-card-actions"),T=i("v-card"),v=i("plugin-details-dialog");return c(),w(v,I(e.plugin,{onTriggerInstall:s.install}),{activator:o(({props:L})=>[l(T,I(L,{height:"350",class:"d-flex flex-column"}),{default:o(()=>[l(p,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[_(x(e.title)+" ",1),l(r),e.verified?(c(),w(g,{key:0,inline:"",icon:"mdi-shield-check",color:"success"})):S("",!0)]),_:1}),l(y,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[u("div",null,x(e.author),1)]),_:1}),l(D,null,{default:o(()=>[e.image_url?(c(),w(k,{key:0,src:e.image_url,"max-height":"160"},null,8,["src"])):S("",!0),u("div",{class:M({"truncate-description":!0,"truncate-2":!!e.image_url,"truncate-10":!e.image_url}),textContent:x(e.description)},null,10,oe)]),_:1}),l(r),l(f,{class:"flex-wrap"},{default:o(()=>[l(V,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",onClick:z(s.install,["stop"])},null,8,["onClick"])]),_:1})]),_:1},16)]),_:1},16,["onTriggerInstall"])}const re=$(se,[["render",ae],["__scopeId","data-v-83d9d7a7"]]),K="store_url",Q="DEFAULT",ue={mixins:[W],props:{modelValue:Boolean},emits:["update:modelValue","update:storeUrl"],data(){return{showDialog:!1,storeUrl:"",rules:{required:e=>!!e||"Required",url:e=>{try{new URL(e)}catch{return"Not a valid URL"}return!0}}}},watch:{modelValue:function(e){e&&(this.showDialog=e)},showDialog:function(e){e||this.$emit("update:modelValue",e)}},created:function(){this.loadSetting(K,{scope:Q})},methods:{save(){this.saveSetting(K,this.storeUrl,{scope:Q}),this.$emit("update:storeUrl",this.storeUrl),this.showDialog=!1},parseSetting:function(e){e?this.storeUrl=e:this.storeUrl="https://store.openc3.com"}}};function de(e,t,a,h,n,s){const r=i("v-spacer"),g=i("v-toolbar"),p=i("v-alert"),y=i("v-text-field"),k=i("v-card-text"),D=i("v-btn"),V=i("v-card-actions"),f=i("v-card"),T=i("v-dialog");return c(),w(T,{modelValue:n.showDialog,"onUpdate:modelValue":t[4]||(t[4]=v=>n.showDialog=v),width:"600"},{default:o(()=>[l(g,{height:"24"},{default:o(()=>[l(r),t[5]||(t[5]=u("span",null,"Plugin Store Settings",-1)),l(r)]),_:1}),l(f,{class:"pa-3"},{default:o(()=>[l(p,{modelValue:e.errorLoading,"onUpdate:modelValue":t[0]||(t[0]=v=>e.errorLoading=v),type:"error",closable:"",density:"compact"},{default:o(()=>[_(" Error loading previous configuration due to "+x(e.errorText),1)]),_:1},8,["modelValue"]),l(p,{modelValue:e.errorSaving,"onUpdate:modelValue":t[1]||(t[1]=v=>e.errorSaving=v),type:"error",closable:"",density:"compact"},{default:o(()=>[_(" Error saving due to "+x(e.errorText),1)]),_:1},8,["modelValue"]),l(p,{modelValue:e.successSaving,"onUpdate:modelValue":t[2]||(t[2]=v=>e.successSaving=v),type:"success",closable:"",density:"compact"},{default:o(()=>[...t[6]||(t[6]=[_(" Saved! ",-1)])]),_:1},8,["modelValue"]),l(k,null,{default:o(()=>[l(y,{modelValue:n.storeUrl,"onUpdate:modelValue":t[3]||(t[3]=v=>n.storeUrl=v),label:"Store URL",rules:[n.rules.required,n.rules.url]},null,8,["modelValue","rules"])]),_:1}),l(V,null,{default:o(()=>[l(D,{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=$(ue,[["render",de]]),pe={components:{PluginCard:re,PluginStoreSettingsDialog:ce},emits:["close","triggerInstall"],data(){return{api:new A,search:"",verifiedOnly:!1,showSettingsDialog:!1,plugins:[]}},computed:{filteredPlugins:function(){let e=this.plugins;return this.verifiedOnly&&(e=e.filter(t=>t.verified)),this.search.length&&(e=e.filter(t=>t.title.toLowerCase().includes(this.search.toLowerCase()))),e}},mounted:function(){this.fetchPluginStoreData()},methods:{fetchPluginStoreData:function(){b.get("/openc3-api/pluginstore").then(e=>{this.plugins=e.data})},close:function(){this.$emit("close")},install:function(e){this.$emit("triggerInstall",e),this.close()},openSettings:function(){this.showSettingsDialog=!0},updatePluginStore:function(){this.api.update_plugin_store().then(e=>{this.fetchPluginStoreData()})}}},ge={class:"d-flex justify-content-space-between"},he={class:"d-inline-flex align-center w-100"};function me(e,t,a,h,n,s){const r=i("v-spacer"),g=i("v-btn"),p=i("v-tooltip"),y=i("v-text-field"),k=i("v-switch"),D=i("plugin-card"),V=i("v-col"),f=i("v-row"),T=i("v-container"),v=i("v-sheet"),L=i("plugin-store-settings-dialog");return c(),P(O,null,[l(v,{class:"pb-11 pt-8 px-8",height:"100%"},{default:o(()=>[u("div",ge,[t[4]||(t[4]=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)),l(r),l(g,{icon:"mdi-cog",variant:"text",onClick:s.openSettings},null,8,["onClick"]),l(p,{location:"top"},{activator:o(({props:C})=>[u("div",E(N(C)),[l(g,{href:"https://store.openc3.com",target:"_blank",icon:"mdi-open-in-new",variant:"text",class:"mx-2"})],16)]),default:o(()=>[t[3]||(t[3]=u("span",null," Open store.openc3.com ",-1))]),_:1}),l(g,{icon:"mdi-close",variant:"text",onClick:s.close},null,8,["onClick"])]),u("div",he,[l(y,{modelValue:n.search,"onUpdate:modelValue":t[0]||(t[0]=C=>n.search=C),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"search-plugin-store"},null,8,["modelValue"]),l(k,{modelValue:n.verifiedOnly,"onUpdate:modelValue":t[1]||(t[1]=C=>n.verifiedOnly=C),label:"Verified only",density:"compact","hide-details":"",class:"ml-4"},null,8,["modelValue"])]),l(r),t[5]||(t[5]=u("span",{class:""}," Click on a plugin to see more information about it ",-1)),l(T,null,{default:o(()=>[l(f,null,{default:o(()=>[(c(!0),P(O,null,j(s.filteredPlugins,C=>(c(),w(V,{key:C.id,cols:"4"},{default:o(()=>[l(D,I({ref_for:!0},C,{onTriggerInstall:s.install}),null,16,["onTriggerInstall"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),l(L,{modelValue:n.showSettingsDialog,"onUpdate:modelValue":t[2]||(t[2]=C=>n.showSettingsDialog=C),"onUpdate:storeUrl":s.updatePluginStore},null,8,["modelValue","onUpdate:storeUrl"])],64)}const fe=$(pe,[["render",me]]),ve={components:{PluginDetailsDialog:G},mixins:[R],props:{targets:{type:Array,default:()=>[]},isModified:Boolean},emits:["edit","delete","upgrade"],data(){return{showCard:!1}},computed:{displayTitle:function(){return this.title?this.title:this.name.replace(/^openc3-cosmos-/,"").replace(/-?\d+\.\d+\.\d+(?:\.pre\.beta\d+\.\d+)?\.gem(?:__\d+)?$/,"")}},methods:{openDetails:function(){this.hasStoreListing&&(this.showCard=!0)},downloadPlugin:function(){b.post(`/openc3-api/packages/${this.name}/download`).then(e=>{const t=window.atob(e.data.contents),a=new Uint8Array(t.length);for(let s=0;s<t.length;++s)a[s]=t.charCodeAt(s);const h=new Blob([a],{type:"application/zip"}),n=document.createElement("a");n.href=URL.createObjectURL(h),n.setAttribute("download",e.data.filename),n.click()})},downloadTarget:function(e){b.post(`/openc3-api/targets/${e}/download`).then(t=>{const a=window.atob(t.data.contents),h=new Uint8Array(a.length);for(let r=0;r<a.length;++r)h[r]=a.charCodeAt(r);const n=new Blob([h],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(n),s.setAttribute("download",t.data.filename),s.click()})},edit:function(){this.$emit("edit")},upgrade:function(){this.$emit("upgrade")},deletePrompt:function(){this.showCard=!1,this.$emit("delete")}}},we=["textContent"],xe={class:"text-subtitle-2 v-list-item-subtitle pl-0"},Pe={key:0},_e=["onClick","textContent"],ye=["textContent"];function ke(e,t,a,h,n,s){var r;const g=i("v-img"),p=i("v-icon"),y=i("v-list-item"),k=i("v-list"),D=i("v-menu"),V=i("plugin-details-dialog");return c(),P(O,null,[u("tr",{class:M({"cursor-pointer":e.hasStoreListing}),"data-test":"plugin-list-item",onClick:t[0]||(t[0]=(...f)=>s.openDetails&&s.openDetails(...f))},[u("td",null,[e.image_url?(c(),w(g,{key:0,src:e.image_url,"max-height":"56","min-width":"56"},null,8,["src"])):S("",!0)]),u("td",null,[u("div",{class:"text-h6",textContent:x(s.displayTitle)},null,8,we),u("div",xe,[a.isModified?(c(),P(O,{key:0},[_(" * ")],64)):S("",!0),_(" "+x(e.name),1)]),(r=a.targets)!=null&&r.length?(c(),P("div",Pe,[(c(!0),P(O,null,j(a.targets,(f,T)=>(c(),P("span",{key:T,class:"mr-2"},[f.modified?(c(),P("a",{key:0,style:{cursor:"pointer"},onClick:z(v=>s.downloadTarget(f.name),["prevent"]),textContent:x(f.name)},null,8,_e)):(c(),P("span",{key:1,textContent:x(f.name)},null,8,ye))]))),128))])):S("",!0)]),u("td",null,[l(D,null,{activator:o(({props:f})=>[l(p,I(f,{icon:"mdi-dots-horizontal","data-test":"plugin-actions"}),null,16)]),default:o(()=>[l(k,null,{default:o(()=>[l(y,{title:"Download","prepend-icon":"mdi-download","data-test":"download-plugin",onClick:s.downloadPlugin},null,8,["onClick"]),l(y,{title:"Edit Details","prepend-icon":"mdi-pencil","data-test":"edit-plugin",onClick:s.edit},null,8,["onClick"]),l(y,{title:"Upgrade","prepend-icon":"mdi-update","data-test":"upgrade-plugin",onClick:s.upgrade},null,8,["onClick"]),l(y,{title:"Delete","prepend-icon":"mdi-delete","data-test":"delete-plugin",onClick:s.deletePrompt},null,8,["onClick"])]),_:1})]),_:1})])],2),l(V,I({modelValue:n.showCard,"onUpdate:modelValue":t[1]||(t[1]=f=>n.showCard=f)},e.plugin,{onTriggerUninstall:s.deletePrompt}),null,16,["modelValue","onTriggerUninstall"])],64)}const Ce=$(ve,[["render",ke]]),be={components:{PluginListItem:Ce},props:{plugins:{type:Array,required:!0},targets:{type:Object,required:!0},showDefaultTools:{type:Boolean,default:!1},defaultPlugins:{type:Array,required:!0}},emits:["edit","delete","upgrade"],data(){return{showPluginDetails:!1,detailPlugin:null}},computed:{shownPlugins(){const e=[],t=[];return this.plugins.forEach(a=>{const h=a.name.split("__")[0].split("-").slice(0,-1).join("-");this.defaultPlugins.includes(h)?t.push(a):e.push(a)}),e.sort((a,h)=>a.name<h.name?-1:a.name>h.name?1:0),this.showDefaultTools?(t.sort((a,h)=>a.name<h.name?-1:a.name>h.name?1:0),e.concat(t)):e}},methods:{showDetails:function(e){this.detailPlugin=e,this.showPluginDetails=!0},pluginTargets:function(e){let t=[];for(const a in this.targets)this.targets[a].plugin===e&&t.push(this.targets[a]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,a])=>a.plugin===e&&a.modified===!0)},editPlugin:function(e){this.$emit("edit",e)},upgradePlugin(e){this.$emit("upgrade",e)},deletePrompt:function(e){this.$emit("delete",e)}}};function De(e,t,a,h,n,s){const r=i("plugin-list-item"),g=i("v-data-table");return c(),w(g,{headers:[],items:s.shownPlugins,density:"compact",class:"list","data-test":"plugin-list"},{item:o(({item:p})=>[l(r,I(p,{targets:s.pluginTargets(p.name),"is-modified":s.isModified(p.name),onEdit:()=>s.editPlugin(p.name),onUpgrade:()=>s.upgradePlugin(p.name),onDelete:()=>s.deletePrompt(p.name)}),null,16,["targets","is-modified","onEdit","onUpgrade","onDelete"])]),_:1},8,["items"])}const Se=$(be,[["render",De],["__scopeId","data-v-94f3dd91"]]),Ve={components:{PluginDialog:H,PluginList:Se,PluginStore:fe,ModifiedPluginDialog:B,SimpleTextDialog:Z},data(){return{api:new A,file:null,currentPlugin:null,plugins:[],targets:{},processes:{},alert:"",alertType:"success",showAlert:!1,pluginName:null,variables:{},storeId:null,pluginTxt:"",pluginHashTmp:null,existingPluginTxt:null,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginStore:!1,showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,progress:0,pluginDelete:!1,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-systemhealth","openc3-cosmos-tool-logexplorer","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()},mounted(){this.update(),this.updateProcesses();const e=this;window.onpopstate=function(){e.showPluginStore&&(e.showPluginStore=!1,history.go(1))}},methods:{pluginTargets:function(e){let t=[];for(const a in this.targets)this.targets[a].plugin===e&&t.push(this.targets[a]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,a])=>a.plugin===e&&a.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,a])=>a)}),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)})},formatDate(e){return q(F(parseInt(e)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(e=null,t=null){const a=e?"put":"post",h=e?`/openc3-api/plugins/${e}`:"/openc3-api/plugins",n=new FormData;t===null?n.append("plugin",this.file,this.file.name):n.append("store_id",t.id);let s=this;b[a](h,{data:n,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(r){let g=Math.round(r.loaded*100/r.total);s.progress=g}}).then(r=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let g=null;r.data.existing_plugin_txt_lines!==void 0&&(g=r.data.existing_plugin_txt_lines.join(`
|
1
|
+
System.register(["./main-a4f4e7cef92e830d29de.js","vue","single-spa","./SimpleTextDialog-LQJdcAXX-13f4c9397341216c87a5.js","./settings-DToCplG_-ca6efbbfb677a1b36d60.js","vue-router","vuex","vuetify"],(function(K,Be){"use strict";var $,R,q,b,F,H,A,i,_,c,l,w,S,o,u,P,O,j,x,M,I,N,E,z,J,W,X;return{setters:[d=>{$=d.d,R=d.J,q=d.Z,b=d.N,F=d.p,H=d.l,A=d.W},d=>{i=d.resolveComponent,_=d.createElementBlock,c=d.openBlock,l=d.createVNode,w=d.createBlock,S=d.createCommentVNode,o=d.withCtx,u=d.createElementVNode,P=d.createTextVNode,O=d.Fragment,j=d.renderList,x=d.toDisplayString,M=d.normalizeClass,I=d.mergeProps,N=d.normalizeProps,E=d.guardReactiveProps,z=d.withModifiers,J=d.renderSlot},null,d=>{W=d.E},d=>{X=d.n},null,null,null],execute:(function(){const d="store_url",B={props:{id:Number,name:String,title:String,author:String,description:String,keywords:Array,image_url:String,license:String,verified:Boolean,homepage:String,repository:String,gem_url:String,checksum:String},data:function(){return{_api:new A,_storeUrl:""}},computed:{plugin:function(){return{id:this.id,name:this.name,title:this.title,author:this.author,description:this.description,keywords:this.keywords,image_url:this.image_url,license:this.license,verified:this.verified,homepage:this.homepage,repository:this.repository,gem_url:this.gem_url,checksum:this.checksum}},storeLink:function(){return this.hasStoreListing?new URL(`/cosmos_plugins/${this.id}`,this._storeUrl):null},hasStoreListing:function(){return!!this.id},isPluginInstalled:function(){return!!this.name}},created:function(){this._api.get_setting(d).then(e=>this._storeUrl=e||"https://store.openc3.com")}},Y={mixins:[B],props:{modelValue:Boolean},emits:["triggerInstall","triggerUninstall","update:modelValue"],data(){return{showDialog:!1,showCopiedTooltip:!1}},computed:{isDialogOpen:{get:function(){return this.modelValue||this.showDialog},set:function(e){this.showDialog=e,this.$emit("update:modelValue",e)}}},methods:{openDialog:function(){this.isDialogOpen=!0},closeDialog:function(){this.isDialogOpen=!1},install:function(){this.$emit("triggerInstall",this.gemUrl)},uninstall:function(){this.$emit("triggerUninstall",this.gemUrl)},copyChecksum:function(){navigator.clipboard.writeText(this.checksum),this.showCopiedTooltip=!0,setTimeout(()=>{this.showCopiedTooltip=!1},1e3)}}},ee=["textContent"],te={key:0},le=["textContent"],ie={class:"mt-3 text-caption font-italic"};function ne(e,t,a,h,n,s){const r=i("v-spacer"),g=i("v-btn"),p=i("v-tooltip"),y=i("v-toolbar"),k=i("v-badge"),D=i("v-card-subtitle"),V=i("v-img"),f=i("v-text-field"),T=i("v-card-text"),v=i("v-card-actions"),L=i("v-card"),C=i("v-dialog");return c(),_(O,null,[J(e.$slots,"activator",{props:{onClick:s.openDialog}}),l(C,{modelValue:s.isDialogOpen,"onUpdate:modelValue":t[2]||(t[2]=U=>s.isDialogOpen=U),"max-width":"500"},{default:o(()=>[l(L,null,{default:o(()=>[l(y,{height:"24"},{default:o(()=>[l(r),u("span",{textContent:x(e.title)},null,8,ee),l(r),l(p,{location:"top"},{activator:o(({props:U})=>[u("div",N(E(U)),[l(g,{href:e.storeLink,target:"_blank",icon:"mdi-open-in-new",size:"small",variant:"plain"},null,8,["href"])],16)]),default:o(()=>[t[3]||(t[3]=u("span",null," View at store.openc3.com ",-1))]),_:1}),l(g,{icon:"mdi-close-box",variant:"text",density:"compact",onClick:s.closeDialog},null,8,["onClick"])]),_:1}),l(D,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[u("div",null,x(e.author),1),l(r),e.verified?(c(),_("div",te,[t[4]||(t[4]=P(" Verified ",-1)),l(k,{inline:"",icon:"mdi-shield-check",color:"success"})])):S("",!0)]),_:1}),l(T,null,{default:o(()=>[e.image_url?(c(),w(V,{key:0,src:e.image_url},null,8,["src"])):S("",!0),u("div",{textContent:x(e.description)},null,8,le),u("div",ie,"License: "+x(e.license),1),l(f,{modelValue:e.checksum,"onUpdate:modelValue":t[1]||(t[1]=U=>e.checksum=U),label:"SHA256",variant:"solo",density:"compact","hide-details":"",readonly:""},{append:o(()=>[l(p,{modelValue:n.showCopiedTooltip,"onUpdate:modelValue":t[0]||(t[0]=U=>n.showCopiedTooltip=U),location:"top","open-on-hover":!1},{activator:o(({props:U})=>[l(g,I(U,{icon:"mdi-content-copy",variant:"text",density:"compact",onClick:s.copyChecksum}),null,16,["onClick"])]),default:o(()=>[t[5]||(t[5]=u("span",null,"Copied!",-1))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),l(v,{class:"justify-start px-6"},{default:o(()=>[e.isPluginInstalled?(c(),w(g,{key:0,text:"Uninstall","append-icon":"mdi-puzzle-remove",variant:"outlined",color:"red",onClick:s.uninstall},null,8,["onClick"])):(c(),w(g,{key:1,text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",onClick:s.install},null,8,["onClick"])),l(g,{text:"Repository","append-icon":"mdi-open-in-new",variant:"outlined",href:e.repository,target:"_blank"},null,8,["href"]),l(g,{text:"Homepage","append-icon":"mdi-open-in-new",variant:"outlined",href:e.homepage,target:"_blank"},null,8,["href"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}const G=$(Y,[["render",ne]]),se={components:{PluginDetailsDialog:G},mixins:[B],emits:["triggerInstall"],methods:{install:function(){this.$emit("triggerInstall",this.plugin)}}},oe=["textContent"];function ae(e,t,a,h,n,s){const r=i("v-spacer"),g=i("v-badge"),p=i("v-card-title"),y=i("v-card-subtitle"),k=i("v-img"),D=i("v-card-text"),V=i("v-btn"),f=i("v-card-actions"),T=i("v-card"),v=i("plugin-details-dialog");return c(),w(v,I(e.plugin,{onTriggerInstall:s.install}),{activator:o(({props:L})=>[l(T,I(L,{height:"350",class:"d-flex flex-column"}),{default:o(()=>[l(p,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[P(x(e.title)+" ",1),l(r),e.verified?(c(),w(g,{key:0,inline:"",icon:"mdi-shield-check",color:"success"})):S("",!0)]),_:1}),l(y,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[u("div",null,x(e.author),1)]),_:1}),l(D,null,{default:o(()=>[e.image_url?(c(),w(k,{key:0,src:e.image_url,"max-height":"160"},null,8,["src"])):S("",!0),u("div",{class:M({"truncate-description":!0,"truncate-2":!!e.image_url,"truncate-10":!e.image_url}),textContent:x(e.description)},null,10,oe)]),_:1}),l(r),l(f,{class:"flex-wrap"},{default:o(()=>[l(V,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",onClick:z(s.install,["stop"])},null,8,["onClick"])]),_:1})]),_:1},16)]),_:1},16,["onTriggerInstall"])}const re=$(se,[["render",ae],["__scopeId","data-v-83d9d7a7"]]),Q="store_url",Z="DEFAULT",ue={mixins:[X],props:{modelValue:Boolean},emits:["update:modelValue","update:storeUrl"],data(){return{showDialog:!1,storeUrl:"",rules:{required:e=>!!e||"Required",url:e=>{try{new URL(e)}catch{return"Not a valid URL"}return!0}}}},watch:{modelValue:function(e){e&&(this.showDialog=e)},showDialog:function(e){e||this.$emit("update:modelValue",e)}},created:function(){this.loadSetting(Q,{scope:Z})},methods:{save(){this.saveSetting(Q,this.storeUrl,{scope:Z}),this.$emit("update:storeUrl",this.storeUrl),this.showDialog=!1},parseSetting:function(e){e?this.storeUrl=e:this.storeUrl="https://store.openc3.com"}}};function de(e,t,a,h,n,s){const r=i("v-spacer"),g=i("v-toolbar"),p=i("v-alert"),y=i("v-text-field"),k=i("v-card-text"),D=i("v-btn"),V=i("v-card-actions"),f=i("v-card"),T=i("v-dialog");return c(),w(T,{modelValue:n.showDialog,"onUpdate:modelValue":t[4]||(t[4]=v=>n.showDialog=v),width:"600"},{default:o(()=>[l(g,{height:"24"},{default:o(()=>[l(r),t[5]||(t[5]=u("span",null,"Plugin Store Settings",-1)),l(r)]),_:1}),l(f,{class:"pa-3"},{default:o(()=>[l(p,{modelValue:e.errorLoading,"onUpdate:modelValue":t[0]||(t[0]=v=>e.errorLoading=v),type:"error",closable:"",density:"compact"},{default:o(()=>[P(" Error loading previous configuration due to "+x(e.errorText),1)]),_:1},8,["modelValue"]),l(p,{modelValue:e.errorSaving,"onUpdate:modelValue":t[1]||(t[1]=v=>e.errorSaving=v),type:"error",closable:"",density:"compact"},{default:o(()=>[P(" Error saving due to "+x(e.errorText),1)]),_:1},8,["modelValue"]),l(p,{modelValue:e.successSaving,"onUpdate:modelValue":t[2]||(t[2]=v=>e.successSaving=v),type:"success",closable:"",density:"compact"},{default:o(()=>[...t[6]||(t[6]=[P(" Saved! ",-1)])]),_:1},8,["modelValue"]),l(k,null,{default:o(()=>[l(y,{modelValue:n.storeUrl,"onUpdate:modelValue":t[3]||(t[3]=v=>n.storeUrl=v),label:"Store URL",rules:[n.rules.required,n.rules.url]},null,8,["modelValue","rules"])]),_:1}),l(V,null,{default:o(()=>[l(D,{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=$(ue,[["render",de]]),pe={components:{PluginCard:re,PluginStoreSettingsDialog:ce},emits:["close","triggerInstall"],data(){return{api:new A,search:"",verifiedOnly:!1,showSettingsDialog:!1,plugins:[]}},computed:{filteredPlugins:function(){let e=this.plugins;return this.verifiedOnly&&(e=e.filter(t=>t.verified)),this.search.length&&(e=e.filter(t=>t.title.toLowerCase().includes(this.search.toLowerCase()))),e}},mounted:function(){this.fetchPluginStoreData()},methods:{fetchPluginStoreData:function(){b.get("/openc3-api/pluginstore").then(e=>{this.plugins=e.data})},close:function(){this.$emit("close")},install:function(e){this.$emit("triggerInstall",e),this.close()},openSettings:function(){this.showSettingsDialog=!0},updatePluginStore:function(){this.api.update_plugin_store().then(e=>{this.fetchPluginStoreData()})}}},ge={class:"d-flex justify-content-space-between"},he={class:"d-inline-flex align-center w-100"};function me(e,t,a,h,n,s){const r=i("v-spacer"),g=i("v-btn"),p=i("v-tooltip"),y=i("v-text-field"),k=i("v-switch"),D=i("plugin-card"),V=i("v-col"),f=i("v-row"),T=i("v-container"),v=i("v-sheet"),L=i("plugin-store-settings-dialog");return c(),_(O,null,[l(v,{class:"pb-11 pt-8 px-8",height:"100%"},{default:o(()=>[u("div",ge,[t[4]||(t[4]=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)),l(r),l(g,{icon:"mdi-cog",variant:"text",onClick:s.openSettings},null,8,["onClick"]),l(p,{location:"top"},{activator:o(({props:C})=>[u("div",N(E(C)),[l(g,{href:"https://store.openc3.com",target:"_blank",icon:"mdi-open-in-new",variant:"text",class:"mx-2"})],16)]),default:o(()=>[t[3]||(t[3]=u("span",null," Open store.openc3.com ",-1))]),_:1}),l(g,{icon:"mdi-close",variant:"text",onClick:s.close},null,8,["onClick"])]),u("div",he,[l(y,{modelValue:n.search,"onUpdate:modelValue":t[0]||(t[0]=C=>n.search=C),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"search-plugin-store"},null,8,["modelValue"]),l(k,{modelValue:n.verifiedOnly,"onUpdate:modelValue":t[1]||(t[1]=C=>n.verifiedOnly=C),label:"Verified only",density:"compact","hide-details":"",class:"ml-4"},null,8,["modelValue"])]),l(r),t[5]||(t[5]=u("span",{class:""}," Click on a plugin to see more information about it ",-1)),l(T,null,{default:o(()=>[l(f,null,{default:o(()=>[(c(!0),_(O,null,j(s.filteredPlugins,C=>(c(),w(V,{key:C.id,cols:"4"},{default:o(()=>[l(D,I({ref_for:!0},C,{onTriggerInstall:s.install}),null,16,["onTriggerInstall"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),l(L,{modelValue:n.showSettingsDialog,"onUpdate:modelValue":t[2]||(t[2]=C=>n.showSettingsDialog=C),"onUpdate:storeUrl":s.updatePluginStore},null,8,["modelValue","onUpdate:storeUrl"])],64)}const fe=$(pe,[["render",me]]),ve={components:{PluginDetailsDialog:G},mixins:[B],props:{targets:{type:Array,default:()=>[]},isModified:Boolean},emits:["edit","delete","upgrade"],data(){return{showCard:!1}},computed:{displayTitle:function(){return this.title?this.title:this.name.replace(/^openc3-cosmos-/,"").replace(/-?\d+\.\d+\.\d+(?:\.pre\.beta\d+\.\d+)?\.gem(?:__\d+)?$/,"")}},methods:{openDetails:function(){this.hasStoreListing&&(this.showCard=!0)},downloadPlugin:function(){b.post(`/openc3-api/packages/${this.name}/download`).then(e=>{const t=window.atob(e.data.contents),a=new Uint8Array(t.length);for(let s=0;s<t.length;++s)a[s]=t.charCodeAt(s);const h=new Blob([a],{type:"application/zip"}),n=document.createElement("a");n.href=URL.createObjectURL(h),n.setAttribute("download",e.data.filename),n.click()})},downloadTarget:function(e){b.post(`/openc3-api/targets/${e}/download`).then(t=>{const a=window.atob(t.data.contents),h=new Uint8Array(a.length);for(let r=0;r<a.length;++r)h[r]=a.charCodeAt(r);const n=new Blob([h],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(n),s.setAttribute("download",t.data.filename),s.click()})},edit:function(){this.$emit("edit")},upgrade:function(){this.$emit("upgrade")},deletePrompt:function(){this.showCard=!1,this.$emit("delete")}}},we=["textContent"],xe={class:"text-subtitle-2 v-list-item-subtitle pl-0"},_e={key:0},Pe=["onClick","textContent"],ye=["textContent"];function ke(e,t,a,h,n,s){var r;const g=i("v-img"),p=i("v-icon"),y=i("v-list-item"),k=i("v-list"),D=i("v-menu"),V=i("plugin-details-dialog");return c(),_(O,null,[u("tr",{class:M({"cursor-pointer":e.hasStoreListing}),"data-test":"plugin-list-item",onClick:t[0]||(t[0]=(...f)=>s.openDetails&&s.openDetails(...f))},[u("td",null,[e.image_url?(c(),w(g,{key:0,src:e.image_url,"max-height":"56","min-width":"56"},null,8,["src"])):S("",!0)]),u("td",null,[u("div",{class:"text-h6",textContent:x(s.displayTitle)},null,8,we),u("div",xe,[a.isModified?(c(),_(O,{key:0},[P(" * ")],64)):S("",!0),P(" "+x(e.name),1)]),(r=a.targets)!=null&&r.length?(c(),_("div",_e,[(c(!0),_(O,null,j(a.targets,(f,T)=>(c(),_("span",{key:T,class:"mr-2"},[f.modified?(c(),_("a",{key:0,style:{cursor:"pointer"},onClick:z(v=>s.downloadTarget(f.name),["prevent"]),textContent:x(f.name)},null,8,Pe)):(c(),_("span",{key:1,textContent:x(f.name)},null,8,ye))]))),128))])):S("",!0)]),u("td",null,[l(D,null,{activator:o(({props:f})=>[l(p,I(f,{icon:"mdi-dots-horizontal","data-test":"plugin-actions"}),null,16)]),default:o(()=>[l(k,null,{default:o(()=>[l(y,{title:"Download","prepend-icon":"mdi-download","data-test":"download-plugin",onClick:s.downloadPlugin},null,8,["onClick"]),l(y,{title:"Edit Details","prepend-icon":"mdi-pencil","data-test":"edit-plugin",onClick:s.edit},null,8,["onClick"]),l(y,{title:"Upgrade","prepend-icon":"mdi-update","data-test":"upgrade-plugin",onClick:s.upgrade},null,8,["onClick"]),l(y,{title:"Delete","prepend-icon":"mdi-delete","data-test":"delete-plugin",onClick:s.deletePrompt},null,8,["onClick"])]),_:1})]),_:1})])],2),l(V,I({modelValue:n.showCard,"onUpdate:modelValue":t[1]||(t[1]=f=>n.showCard=f)},e.plugin,{onTriggerUninstall:s.deletePrompt}),null,16,["modelValue","onTriggerUninstall"])],64)}const Ce=$(ve,[["render",ke]]),be={components:{PluginListItem:Ce},props:{plugins:{type:Array,required:!0},targets:{type:Object,required:!0},showDefaultTools:{type:Boolean,default:!1},defaultPlugins:{type:Array,required:!0}},emits:["edit","delete","upgrade"],data(){return{showPluginDetails:!1,detailPlugin:null}},computed:{shownPlugins(){const e=[],t=[];return this.plugins.forEach(a=>{const h=a.name.split("__")[0].split("-").slice(0,-1).join("-");this.defaultPlugins.includes(h)?t.push(a):e.push(a)}),e.sort((a,h)=>a.name<h.name?-1:a.name>h.name?1:0),this.showDefaultTools?(t.sort((a,h)=>a.name<h.name?-1:a.name>h.name?1:0),e.concat(t)):e}},methods:{showDetails:function(e){this.detailPlugin=e,this.showPluginDetails=!0},pluginTargets:function(e){let t=[];for(const a in this.targets)this.targets[a].plugin===e&&t.push(this.targets[a]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,a])=>a.plugin===e&&a.modified===!0)},editPlugin:function(e){this.$emit("edit",e)},upgradePlugin(e){this.$emit("upgrade",e)},deletePrompt:function(e){this.$emit("delete",e)}}};function De(e,t,a,h,n,s){const r=i("plugin-list-item"),g=i("v-data-table");return c(),w(g,{headers:[],items:s.shownPlugins,density:"compact",class:"list","data-test":"plugin-list"},{item:o(({item:p})=>[l(r,I(p,{targets:s.pluginTargets(p.name),"is-modified":s.isModified(p.name),onEdit:()=>s.editPlugin(p.name),onUpgrade:()=>s.upgradePlugin(p.name),onDelete:()=>s.deletePrompt(p.name)}),null,16,["targets","is-modified","onEdit","onUpgrade","onDelete"])]),_:1},8,["items"])}const Se=$(be,[["render",De],["__scopeId","data-v-94f3dd91"]]),Ve={components:{PluginDialog:q,PluginList:Se,PluginStore:fe,ModifiedPluginDialog:R,SimpleTextDialog:W},data(){return{api:new A,file:null,currentPlugin:null,plugins:[],targets:{},processes:{},alert:"",alertType:"success",showAlert:!1,pluginName:null,variables:{},storeId:null,pluginTxt:"",pluginHashTmp:null,existingPluginTxt:null,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginStore:!1,showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,progress:0,pluginDelete:!1,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-systemhealth","openc3-cosmos-tool-logexplorer","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()},mounted(){this.update(),this.updateProcesses();const e=this;window.onpopstate=function(){e.showPluginStore&&(e.showPluginStore=!1,history.go(1))}},methods:{pluginTargets:function(e){let t=[];for(const a in this.targets)this.targets[a].plugin===e&&t.push(this.targets[a]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,a])=>a.plugin===e&&a.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,a])=>a)}),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)})},formatDate(e){return F(H(parseInt(e)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(e=null,t=null){const a=e?"put":"post",h=e?`/openc3-api/plugins/${e}`:"/openc3-api/plugins",n=new FormData;t===null?n.append("plugin",this.file,this.file.name):n.append("store_id",t.id);let s=this;b[a](h,{data:n,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(r){let g=Math.round(r.loaded*100/r.total);s.progress=g}}).then(r=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let g=null;r.data.existing_plugin_txt_lines!==void 0&&(g=r.data.existing_plugin_txt_lines.join(`
|
2
2
|
`));let p=r.data.plugin_txt_lines.join(`
|
3
3
|
`);this.pluginName=r.data.name,this.variables=r.data.variables,this.storeId=r.data.store_id,this.pluginTxt=p,this.existingPluginTxt=g,this.showPluginDialog=!0,this.file=void 0}).catch(r=>{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){if(e===!0)for(let t of this.pluginTargets(this.currentPlugin))t.modified==!0&&await b.post(`/openc3-api/targets/${t.name}/delete_modified`);this.pluginDelete?this.deletePlugin(this.currentPlugin):this.pluginInstall()},pluginInstall:function(){b.post(`/openc3-api/plugins/install/${this.pluginName}`,{data:{plugin_hash:JSON.stringify(this.pluginHashTmp)}}).then(e=>{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.storeId=null,setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3),this.update()})},editPlugin:function(e){b.get(`/openc3-api/plugins/${e}`).then(t=>{let a=null;t.data.existing_plugin_txt_lines!==void 0&&(a=t.data.existing_plugin_txt_lines.join(`
|
4
4
|
`)),this.pluginName=t.data.name,this.variables=t.data.variables,this.pluginTxt=t.data.plugin_txt_lines.join(`
|
5
|
-
`),this.existingPluginTxt=a,this.showPluginDialog=!0})},deletePrompt:function(e){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()},upgradePlugin(e){this.file=null,this.currentPlugin=e,this.progress=0,this.$refs.fileInput.click()},selectFile(){this.file=null,this.currentPlugin=null,this.progress=0,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(a=>{});else{let a=this.file.name.split("-"),h=a.findIndex(r=>r.includes(".")),n=a.slice(0,h).join("-");a=this.currentPlugin.split("-"),h=a.findIndex(r=>r.includes("."));let s=a.slice(0,h).join("-");n!==s?this.$dialog.confirm(`The new gem base name ${n} 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.showPluginStore=!0}}},Te={class:"mt-2"},Ue=["textContent"],Ie=["textContent"];function $e(e,t,a,h,n,s){const r=i("v-btn"),g=i("v-icon"),p=i("v-col"),y=i("rux-progress"),k=i("v-row"),D=i("v-divider"),V=i("v-alert"),f=i("v-list-item-title"),T=i("v-list-item-subtitle"),v=i("v-progress-circular"),L=i("v-tooltip"),C=i("v-list-item"),U=i("v-list"),Oe=i("v-switch"),Le=i("plugin-list"),Ae=i("plugin-dialog"),je=i("modified-plugin-dialog"),Me=i("simple-text-dialog"),
|
5
|
+
`),this.existingPluginTxt=a,this.showPluginDialog=!0})},deletePrompt:function(e){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()},upgradePlugin(e){this.file=null,this.currentPlugin=e,this.progress=0,this.$refs.fileInput.click()},selectFile(){this.file=null,this.currentPlugin=null,this.progress=0,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(a=>{});else{let a=this.file.name.split("-"),h=a.findIndex(r=>r.includes(".")),n=a.slice(0,h).join("-");a=this.currentPlugin.split("-"),h=a.findIndex(r=>r.includes("."));let s=a.slice(0,h).join("-");n!==s?this.$dialog.confirm(`The new gem base name ${n} 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.showPluginStore=!0}}},Te={class:"mt-2"},Ue=["textContent"],Ie=["textContent"];function $e(e,t,a,h,n,s){const r=i("v-btn"),g=i("v-icon"),p=i("v-col"),y=i("rux-progress"),k=i("v-row"),D=i("v-divider"),V=i("v-alert"),f=i("v-list-item-title"),T=i("v-list-item-subtitle"),v=i("v-progress-circular"),L=i("v-tooltip"),C=i("v-list-item"),U=i("v-list"),Oe=i("v-switch"),Le=i("plugin-list"),Ae=i("plugin-dialog"),je=i("modified-plugin-dialog"),Me=i("simple-text-dialog"),Ne=i("plugin-store"),Ee=i("v-bottom-sheet");return c(),_("div",null,[l(k,{"no-gutters":"",align:"center",class:"px-2"},{default:o(()=>[l(p,{class:"pa-2 mt-2"},{default:o(()=>[l(r,{"append-icon":"mdi-store",onClick:s.openStore},{default:o(()=>[...t[9]||(t[9]=[P(" Browse Plugins ",-1)])]),_:1},8,["onClick"]),l(r,{"append-icon":"mdi-paperclip",class:"mx-2",onClick:s.selectFile},{default:o(()=>[...t[10]||(t[10]=[P(" Install From File ",-1)])]),_:1},8,["onClick"]),u("input",{ref:"fileInput",style:{display:"none"},type:"file",onChange:t[0]||(t[0]=(...m)=>s.fileChange&&s.fileChange(...m))},null,544),t[14]||(t[14]=u("br",null,null,-1)),u("p",Te,[t[12]||(t[12]=P(" Note: Use ",-1)),l(g,null,{default:o(()=>[...t[11]||(t[11]=[P(" mdi-dots-horizontal ",-1)])]),_:1}),t[13]||(t[13]=P(" in the Installed Plugins list to upgrade existing plugins ",-1))])]),_:1}),l(p,{class:"ml-4 mr-2",cols:"4"},{default:o(()=>[l(y,{value:n.progress},null,8,["value"])]),_:1})]),_:1}),l(k,{"no-gutters":"",class:"px-2"},{default:o(()=>[l(p,{align:"right",class:"mr-2"},{default:o(()=>[...t[15]||(t[15]=[u("div",null,"* indicates a modified plugin",-1),u("div",null,"Click target link to download modifications",-1)])]),_:1})]),_:1}),l(D),l(V,{modelValue:n.showAlert,"onUpdate:modelValue":t[1]||(t[1]=m=>n.showAlert=m),closable:"",type:n.alertType,text:n.alert,"data-test":"plugin-alert"},null,8,["modelValue","type","text"]),Object.keys(n.processes).length>0?(c(),w(U,{key:0,class:"list","data-test":"process-list"},{default:o(()=>[l(k,{"no-gutters":"",class:"px-4"},{default:o(()=>[l(p,{class:"text-h5"},{default:o(()=>[...t[16]||(t[16]=[P(" Process List ",-1)])]),_:1}),l(p,{align:"right"},{default:o(()=>[...t[17]||(t[17]=[u("div",null,"Showing last 10 min of activity",-1)])]),_:1})]),_:1}),(c(!0),_(O,null,j(n.processes,m=>(c(),_("div",{key:m.name},[l(C,null,{append:o(()=>[m.state==="Running"?(c(),w(v,{key:0,indeterminate:"",color:"primary"})):(c(),w(L,{key:1,"open-delay":600,location:"top"},{activator:o(({props:ze})=>[l(r,I({ref_for:!0},ze,{icon:"mdi-eye",variant:"text","aria-label":"Show Output","data-test":"show-output",onClick:qe=>s.showOutput(m)}),null,16,["onClick"])]),default:o(()=>[t[18]||(t[18]=u("span",null," Show Output ",-1))]),_:2},1024))]),default:o(()=>[l(f,null,{default:o(()=>[u("span",{class:M(m.state.toLowerCase()),textContent:x(`Processing ${m.process_type}: ${m.detail} - ${m.state}`)},null,10,Ue)]),_:2},1024),l(T,null,{default:o(()=>[u("span",{textContent:x(" Updated At: "+s.formatDate(m.updated_at))},null,8,Ie)]),_:2},1024)]),_:2},1024),l(D)]))),128))]),_:1})):S("",!0),l(k,{"no-gutters":"",class:"px-4"},{default:o(()=>[l(p,{class:"text-h5"},{default:o(()=>[...t[19]||(t[19]=[P(" Installed Plugins ",-1)])]),_:1}),l(p,{class:"v-col-auto"},{default:o(()=>[l(Oe,{modelValue:n.showDefaultTools,"onUpdate:modelValue":t[2]||(t[2]=m=>n.showDefaultTools=m),label:"Show Default Tools",density:"compact","hide-details":"","data-test":"show-default-tools"},null,8,["modelValue"])]),_:1})]),_:1}),l(Le,{plugins:n.plugins,targets:n.targets,"show-default-tools":n.showDefaultTools,"default-plugins":n.defaultPlugins,onEdit:s.editPlugin,onUpgrade:s.upgradePlugin,onDelete:s.deletePrompt},null,8,["plugins","targets","show-default-tools","default-plugins","onEdit","onUpgrade","onDelete"]),n.showPluginDialog?(c(),w(Ae,{key:1,modelValue:n.showPluginDialog,"onUpdate:modelValue":t[3]||(t[3]=m=>n.showPluginDialog=m),"plugin-name":n.pluginName,variables:n.variables,"plugin-txt":n.pluginTxt,"existing-plugin-txt":n.existingPluginTxt,"store-id":n.storeId,onCallback:s.pluginCallback},null,8,["modelValue","plugin-name","variables","plugin-txt","existing-plugin-txt","store-id","onCallback"])):S("",!0),n.showModifiedPluginDialog?(c(),w(je,{key:2,modelValue:n.showModifiedPluginDialog,"onUpdate:modelValue":t[4]||(t[4]=m=>n.showModifiedPluginDialog=m),"plugin-name":n.currentPlugin,targets:s.pluginTargets(n.currentPlugin),"plugin-delete":n.pluginDelete,onSubmit:s.modifiedSubmit},null,8,["modelValue","plugin-name","targets","plugin-delete","onSubmit"])):S("",!0),l(Me,{modelValue:n.showProcessOutput,"onUpdate:modelValue":t[5]||(t[5]=m=>n.showProcessOutput=m),title:"Process Output",text:n.processOutput},null,8,["modelValue","text"]),l(Ee,{modelValue:n.showPluginStore,"onUpdate:modelValue":t[8]||(t[8]=m=>n.showPluginStore=m),fullscreen:""},{default:o(()=>[l(Ne,{onClose:t[6]||(t[6]=()=>n.showPluginStore=!1),onTriggerInstall:t[7]||(t[7]=m=>s.upload(null,m))})]),_:1},8,["modelValue"])])}const Re=K("default",$(Ve,[["render",$e],["__scopeId","data-v-f1927f60"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-73a605540046d0272b73.js","vue","./main-a4f4e7cef92e830d29de.js","vue-router","single-spa","vuex","vuetify"],(function(u,p){"use strict";var s,a,l,r,n,i;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,l=e.createBlock,r=e.openBlock,n=e.normalizeStyle},e=>{i=e.d},null,null,null,null],execute:(function(){const e={mixins:[s],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;return t===null&&(t=this.screenValues[this.valueId][0]),parseInt(parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=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,m,v,f,I,c){const h=a("rux-progress");return r(),l(h,{value:c._value,class:"progress",style:n(t.computedStyle)},null,8,["value","style"])}const d=u("default",i(e,[["render",o],["__scopeId","data-v-85bc2857"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-73a605540046d0272b73.js","vue","./main-a4f4e7cef92e830d29de.js","vue-router","single-spa","vuex","vuetify"],(function(s,p){"use strict";var l,t,n,a,r,o;return{setters:[e=>{l=e.o},e=>{t=e.resolveComponent,n=e.createBlock,a=e.openBlock,r=e.normalizeStyle},e=>{o=e.d},null,null,null,null],execute:(function(){const e={props:{value:{type:Number}},mixins:[l],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function u(i,y,c,b,d,f){const v=t("v-radio");return a(),n(v,{"hide-details":"",dense:"",label:d.label,style:r(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=s("default",o(e,[["render",u]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-BNvQKlyy-3236ac6ad264fa10d886.js","vue","./main-a4f4e7cef92e830d29de.js","./Widget-BIXl-Pk5-73a605540046d0272b73.js","vue-router","single-spa","vuex","vuetify"],(function(h,B){"use strict";var l,a,s,r,c,o,i,u,m,d,p,g;return{setters:[e=>{l=e.r},e=>{a=e.resolveComponent,s=e.createBlock,r=e.openBlock,c=e.normalizeStyle,o=e.withCtx,i=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.d},null,null,null,null,null],execute:(function(){const e={mixins:[l],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function k(n,v,C,z,y,S){const f=a("v-radio-group");return r(),s(f,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),style:c(n.computedStyle)},{default:o(()=>[(r(!0),i(u,null,m(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{value:x,key:x,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 I=h("default",g(e,[["render",k]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-73a605540046d0272b73.js","vue","./main-a4f4e7cef92e830d29de.js","vue-router","single-spa","vuex","vuetify"],(function(c,u){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.createElementBlock,n=t.openBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.d},null,null,null,null],execute:(function(){const t={mixins:[r],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 parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,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(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function o(e,s,p,g,v,d){return n(),a("div",{class:"rangebar",style:h([d.cssProps,e.computedStyle])},[...s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)])],4)}const m=c("default",l(t,[["render",o],["__scopeId","data-v-34d37e7c"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-a4f4e7cef92e830d29de.js","vue","vue-router","single-spa","vuex","vuetify"],(function(R,K){"use strict";var h,y,a,l,r,n,o,d,c,f,x,m;return{setters:[s=>{h=s.d,y=s.N},s=>{a=s.resolveComponent,l=s.createElementBlock,r=s.openBlock,n=s.createVNode,o=s.withCtx,d=s.createTextVNode,c=s.createElementVNode,f=s.createCommentVNode,x=s.Fragment,m=s.toDisplayString},null,null,null,null],execute:(function(){const s={data(){return{redisCommandText:"",redisResponse:null,redisEndpoint:"/openc3-api/redis/exec",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,y.post(this.redisEndpoint,{data:this.redisCommandText,headers:{Accept:"application/json","Content-Type":"plain/text"}}).then(t=>{this.redisResponse=t.data.result;let e="Ephemeral";this.redisEndpoint==="/openc3-api/redis/exec"&&(e="Persistent"),this.commands.unshift({redis:e,command:this.redisCommandText,response:this.redisResponse})})}}},g=["textContent"],C={key:1,class:"monospace"};function V(t,e,J,O,i,u){const b=a("v-card-title"),w=a("v-card-subtitle"),E=a("v-text-field"),N=a("v-checkbox"),k=a("v-card-text"),_=a("v-btn"),v=a("v-radio"),S=a("v-radio-group"),T=a("v-card-actions"),P=a("v-data-table"),A=a("v-card");return r(),l("div",null,[n(A,null,{default:o(()=>[n(b,null,{default:o(()=>[...e[3]||(e[3]=[d(" Send Raw Redis Commands ",-1)])]),_:1}),n(w,null,{default:o(()=>[...e[4]||(e[4]=[d(" THIS IS DANGEROUS. This allows you to interact directly with the underlying Redis database, making it easy to modify or delete data. ",-1),c("br",null,null,-1),c("br",null,null,-1),d(" Enter commands like you would at the Redis cli prompt: ",-1),c("code",null,"ping",-1),d(" or ",-1),c("code",null,"hget openc3__settings version",-1)])]),_:1}),n(k,{class:"pb-0 ml-2"},{default:o(()=>[n(E,{modelValue:i.redisCommandText,"onUpdate:modelValue":e[0]||(e[0]=p=>i.redisCommandText=p),"hide-details":"",label:"Redis command",class:"monospace",onKeydown:u.commandKeydown},null,8,["modelValue","onKeydown"]),n(N,{modelValue:i.prettyPrint,"onUpdate:modelValue":e[1]||(e[1]=p=>i.prettyPrint=p),label:"Pretty print",density:"compact","hide-details":"",class:"mb-2"},null,8,["modelValue"]),i.redisResponse?(r(),l(x,{key:0},[i.prettyPrint?(r(),l("pre",{key:0,textContent:m(u.formattedResponse)},null,8,g)):(r(),l("span",C," Response: "+m(i.redisResponse),1))],64)):f("",!0)]),_:1}),n(T,{class:"px-2"},{default:o(()=>[n(_,{disabled:!i.redisCommandText.length,color:"success",variant:"text",onClick:u.executeRaw},{default:o(()=>[...e[5]||(e[5]=[d(" Execute ",-1)])]),_:1},8,["disabled","onClick"]),n(S,{modelValue:i.redisEndpoint,"onUpdate:modelValue":e[2]||(e[2]=p=>i.redisEndpoint=p),inline:"","hide-details":"",class:"mt-0"},{default:o(()=>[n(v,{label:"Persistent",value:"/openc3-api/redis/exec","data-test":"persistent-radio"}),n(v,{label:"Ephemeral",value:"/openc3-api/redis/exec?ephemeral=1","data-test":"ephemeral-radio"})]),_:1},8,["modelValue"])]),_:1}),n(P,{headers:i.headers,items:i.commands,class:"monospace","items-per-page":-1,"hide-default-footer":"",density:"compact",height:"45vh"},null,8,["headers","items"])]),_:1})])}const B=R("default",h(s,[["render",V],["__scopeId","data-v-42ef013f"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-73a605540046d0272b73.js","vue","./main-a4f4e7cef92e830d29de.js","vue-router","single-spa","vuex","vuetify"],(function(m,p){"use strict";var i,r,c,a,o,u;return{setters:[t=>{i=t.o},t=>{r=t.resolveComponent,c=t.createBlock,a=t.openBlock,o=t.normalizeStyle},t=>{u=t.d},null,null,null,null],execute:(function(){const t={mixins:[i],props:{value:{default:null}},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,l){const d=r("rux-monitoring-icon");return a(),c(d,{class:"rux-icon",style:o([l.pointerStyle,e.computedStyle]),icon:e.icon,status:l.status,label:e.label,sublabel:e.subLabel,onClick:l.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-a4f4e7cef92e830d29de.js","vue","single-spa","./OutputDialog-wBy-sg3k-44d343cf4df6f6e77944.js","vue-router","vuex","vuetify"],(function(f,T){"use strict";var d,c,e,r,l,o,g,p,i,h,v,m,k,C;return{setters:[t=>{d=t.d,c=t.N},t=>{e=t.resolveComponent,r=t.createElementBlock,l=t.openBlock,o=t.createVNode,g=t.createBlock,p=t.createCommentVNode,i=t.withCtx,h=t.Fragment,v=t.renderList,m=t.createTextVNode,k=t.toDisplayString},null,t=>{C=t.E},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 D(n,s,j,R,a,w){const y=e("v-list-item-title"),N=e("v-btn"),V=e("v-list-item"),S=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(h,null,v(a.routers,(u,B)=>(l(),r("div",{key:B},[o(V,null,{append:i(()=>[o(N,{"aria-label":"Show Router Details",icon:"mdi-eye",variant:"text",onClick:E=>w.showRouter(u)},null,8,["onClick"])]),default:i(()=>[o(y,null,{default:i(()=>[m(k(u),1)]),_:2},1024)]),_:2},1024),o(S)]))),128))]),_:1}),a.showDialog?(l(),g(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:w.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):p("",!0)])}const _=f("default",d(t,[["render",D],["__scopeId","data-v-400627ab"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-BNvQKlyy-3236ac6ad264fa10d886.js","./VerticalWidget-BuKinn_c-79df282d86feacb7b7cb.js","vue","./main-a4f4e7cef92e830d29de.js","./Widget-BIXl-Pk5-73a605540046d0272b73.js","vue-router","single-spa","vuex","vuetify"],(function(f,k){"use strict";var l,c,i,r,o,u,m,g,p,d,y;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{i=e.createElementBlock,r=e.openBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,d=e.mergeProps},e=>{y=e.d},null,null,null,null,null],execute:(function(){const e={components:{VerticalWidget:c},mixins:[l],created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0].startsWith("RAW")&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function v(n,a,s,w,N,R){return r(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(r(!0),i(u,null,m(n.widgets,(t,h)=>(r(),g(p(t.type),d({ref_for:!0},n.listeners,{key:h,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.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"]))),128))],4)}const B=f("default",y(e,[["render",v]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-a4f4e7cef92e830d29de.js","vue","vue-router","single-spa","vuex","vuetify"],(function(C,E){"use strict";var v,i,r,d,o,t,s,f,u,m,V,g,N,x;return{setters:[l=>{v=l.d,i=l.N},l=>{r=l.resolveComponent,d=l.createElementBlock,o=l.openBlock,t=l.createVNode,s=l.withCtx,f=l.createElementVNode,u=l.createTextVNode,m=l.toDisplayString,V=l.Fragment,g=l.renderList,N=l.createBlock,x=l.createCommentVNode},null,null,null,null],execute:(function(){const l={data(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted(){this.update()},methods:{update(){i.get("/openc3-api/secrets").then(c=>{this.secrets=c.data})},upload:function(){this.loadingSecret=!0;let c=null;if(this.file){const e=new FormData;e.append("file",this.file,this.file.name),c=i.post(`/openc3-api/secrets/${this.secretName}`,{data:e,headers:{"Content-Type":"multipart/form-data"}})}else c=i.post(`/openc3-api/secrets/${this.secretName}`,{data:{value:this.secretValue}});c.then(e=>{this.loadingSecret=!1,this.file=null,this.secretName="",this.secretValue="",this.update()}).catch(e=>{this.loadingSecret=!1})},deleteSecret:function(c){this.$dialog.confirm(`Are you sure you want to remove: ${c}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return i.delete(`/openc3-api/secrets/${c}`)}).then(e=>{this.alert=`Removed secret ${c}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}};function b(c,e,F,j,a,y){const w=r("v-file-input"),p=r("v-col"),k=r("v-row"),S=r("v-text-field"),T=r("v-icon"),_=r("v-btn"),A=r("v-alert"),B=r("v-list-item-title"),U=r("v-list-item"),$=r("v-divider"),D=r("v-list");return o(),d("div",null,[t(k,{"no-gutters":""},{default:s(()=>[t(p,null,{default:s(()=>[t(w,{ref:"fileInput",modelValue:a.file,"onUpdate:modelValue":e[0]||(e[0]=n=>a.file=n),"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}),t(k,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:s(()=>[t(p,{cols:"3"},{default:s(()=>[t(S,{modelValue:a.secretName,"onUpdate:modelValue":e[1]||(e[1]=n=>a.secretName=n),label:"Secret Name",class:"px-2"},null,8,["modelValue"])]),_:1}),t(p,{cols:"3",class:"px-2"},{default:s(()=>[t(S,{modelValue:a.secretValue,"onUpdate:modelValue":e[2]||(e[2]=n=>a.secretValue=n),disabled:a.file,label:"Secret Value"},null,8,["modelValue","disabled"])]),_:1}),t(p,{cols:"3",class:"px-2"},{default:s(()=>[t(_,{class:"mx-2",color:"primary","data-test":"secretUpload",disabled:a.secretName===""||a.file==null&&a.secretValue==="",loading:a.loadingSecret,onClick:e[3]||(e[3]=n=>y.upload())},{loader:s(()=>[...e[6]||(e[6]=[f("span",null,"Loading...",-1)])]),default:s(()=>[t(T,{start:"",theme:"dark"},{default:s(()=>[...e[5]||(e[5]=[u("mdi-cloud-upload",-1)])]),_:1}),e[7]||(e[7]=f("span",null," Set ",-1))]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),t(A,{modelValue:a.showAlert,"onUpdate:modelValue":e[4]||(e[4]=n=>a.showAlert=n),closable:"",type:a.alertType},{default:s(()=>[u(m(a.alert),1)]),_:1},8,["modelValue","type"]),t(D,{"data-test":"secretList"},{default:s(()=>[(o(!0),d(V,null,g(a.secrets,(n,h)=>(o(),d("div",{key:h},[t(U,null,{append:s(()=>[t(_,{icon:"mdi-delete",variant:"text","aria-label":"Delete Secret",onClick:z=>y.deleteSecret(n)},null,8,["onClick"])]),default:s(()=>[t(B,null,{default:s(()=>[u(m(n),1)]),_:2},1024)]),_:2},1024),h<a.secrets.length-1?(o(),N($,{key:h})):x("",!0)]))),128))]),_:1})])}const L=C("default",v(l,[["render",b]]))})}}));
|
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["vue","./main-c0c3d22126d5cf1e2935.js","./settings-UZsgbUSr-bb64fc6e56b951877c8c.js","vue-router","single-spa","vuex","vuetify"],(function(X,Ee){"use strict";var a,B,h,t,V,o,r,y,H,E,O,w,T,F,q,k,M,U;return{setters:[S=>{a=S.resolveComponent,B=S.createElementBlock,h=S.openBlock,t=S.createVNode,V=S.createBlock,o=S.withCtx,r=S.createTextVNode,y=S.toDisplayString,H=S.createSlots,E=S.mergeProps,O=S.createCommentVNode,w=S.withDirectives,T=S.vShow,F=S.Fragment,q=S.renderList},S=>{k=S.d,M=S.X},S=>{U=S.n},null,null,null,null],execute:(function(){const S={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(l){l?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(l=>l.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(l){const e=l.split("__")[1].replaceAll("_"," ");return{key:l,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[l]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(l){for(const e of l)delete localStorage[e]}}};function Y(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[r("Reset suppressed warnings",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `,-1)])]),_:1}),t(c,null,{default:o(()=>[s.suppressedWarnings.length?(h(),B(F,{key:0},[t(i,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=n=>s.selectAllSuppressedWarnings=n),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(h(!0),B(F,null,q(s.suppressedWarnings,n=>(h(),V(i,{key:n.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=d=>s.selectedSuppressedWarnings=d),label:n.text,value:n.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(h(),B(F,{key:1},[r(" No warnings to reset ")],64))]),_:1}),t(p,{class:"px-2"},{default:o(()=>[t(m,{disabled:!s.selectedSuppressedWarnings.length,onClick:v.resetSuppressedWarnings,color:"warning",variant:"text","data-test":"reset-suppressed-warnings"},{default:o(()=>[...e[4]||(e[4]=[r(" Reset ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const I=k(S,[["render",Y]]),Q={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(l){l?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){this.lastConfigs=Object.keys(localStorage).filter(l=>l.endsWith("__default")).map(l=>{const e=l.split("__")[0].replaceAll("_"," ");return{key:l,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(l){for(const e of l)delete localStorage[e]}}};function ee(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[r(" Clear default configs ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[r(" This clears the default tool configs on this browser ",-1)])]),_:1}),t(c,null,{default:o(()=>[s.lastConfigs.length?(h(),B(F,{key:0},[t(i,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=n=>s.selectAllLastConfigs=n),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(h(!0),B(F,null,q(s.lastConfigs,n=>(h(),V(i,{key:n.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=d=>s.selectedLastConfigs=d),label:n.text,value:n.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(h(),B(F,{key:1},[r(" No configs to clear ")],64))]),_:1}),t(p,{class:"px-2"},{default:o(()=>[t(m,{disabled:!s.selectedLastConfigs.length,onClick:v.clearLastConfigs,color:"warning",variant:"text","data-test":"clear-default-configs"},{default:o(()=>[...e[4]||(e[4]=[r(" Clear ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const te=k(Q,[["render",ee]]),le={data(){return{vimMode:M.isVimModeEnabled()}},methods:{save:function(){M.setVimMode(this.vimMode)}}};function oe(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[1]||(e[1]=[r(" Code Editor Settings ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[2]||(e[2]=[r(" Settings for the code editors built into COSMOS (e.g. in Script Runner) ",-1)])]),_:1}),t(c,{class:"pb-0"},{default:o(()=>[t(i,{label:"Vim mode",modelValue:s.vimMode,"onUpdate:modelValue":e[0]||(e[0]=n=>s.vimMode=n),color:"primary"},null,8,["modelValue"])]),_:1}),t(p,null,{default:o(()=>[t(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-editor-settings"},{default:o(()=>[...e[3]||(e[3]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ae=k(le,[["render",oe]]),j="astro",se={mixins:[U],data(){return{hideClock:!1}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(l){if(l){let e=JSON.parse(l);this.hideClock=e.hideClock}}}};function re(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Astro Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(c,{class:"pb-0"},{default:o(()=>[t(i,{label:"Hide Astro Clock",modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=n=>s.hideClock=n),color:"primary"},null,8,["modelValue"])]),_:1}),t(p,null,{default:o(()=>[t(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-astro-settings"},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ne=k(se,[["render",re]]),D="classification_banner",de={mixins:[U],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:l=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(l)||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(l){l?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(l){l?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customFontColor=`#${l}`)},customBackgroundColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customBackgroundColor=`#${l}`)}},created(){this.loadSetting(D)},methods:{save(){this.saveSetting(D,this.saveObj)},parseSetting:function(l){if(l){const e=JSON.parse(l);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 ie(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-text-field"),c=a("v-col"),m=a("v-row"),p=a("v-icon"),b=a("v-list-item"),n=a("v-select"),d=a("v-switch"),W=a("v-card-text"),R=a("v-btn"),A=a("v-card-actions"),N=a("v-card");return h(),V(N,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[12]||(e[12]=[r("Classification Banner Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=g=>l.errorLoading=g),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=g=>l.errorSaving=g),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=g=>l.successSaving=g),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(W,{class:"pb-0"},{default:o(()=>[t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(i,{label:"Text",modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=g=>s.text=g),"data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(n,{label:"Background color",items:s.colors,"item-title":"text",modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=g=>s.selectedBackgroundColor=g),"data-test":"classification-banner-background-color"},H({item:o(({props:g,item:f})=>[t(b,E(g,{value:f.text}),{prepend:o(()=>[f.value?(h(),V(p,{key:0,color:f.value},{default:o(()=>[...e[15]||(e[15]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[t(p,{color:s.selectedBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[r(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=g=>s.customBackgroundColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":o(()=>[w(t(p,{color:s.customBackgroundColor},{default:o(()=>[...e[16]||(e[16]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!s.selectedBackgroundColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1}),t(c,null,{default:o(()=>[t(n,{label:"Font color",items:s.colors,"item-title":"text",modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=g=>s.selectedFontColor=g),"data-test":"classification-banner-font-color"},H({item:o(({props:g,item:f})=>[t(b,E(g,{value:f.text}),{prepend:o(()=>[f.value?(h(),V(p,{key:0,color:f.value},{default:o(()=>[...e[18]||(e[18]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:o(()=>[w(t(p,{color:s.selectedFontColor},{default:o(()=>[...e[17]||(e[17]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=g=>s.customFontColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":o(()=>[w(t(p,{color:s.customFontColor},{default:o(()=>[...e[19]||(e[19]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!s.selectedFontColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1})]),_:1}),t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(d,{label:"Display top banner",modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=g=>s.displayTopBanner=g),color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{label:"Top height",disabled:!s.displayTopBanner,type:"number",suffix:"px",modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=g=>s.topHeight=g),"data-test":"classification-banner-top-height"},null,8,["disabled","modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(d,{label:"Display bottom banner",modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=g=>s.displayBottomBanner=g),color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{label:"Bottom height",disabled:!s.displayBottomBanner,type:"number",suffix:"px",modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=g=>s.bottomHeight=g),"data-test":"classification-banner-bottom-height"},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1}),t(A,null,{default:o(()=>[t(R,{disabled:!v.formValid,onClick:v.save,color:"success",variant:"text","data-test":"save-classification-banner"},{default:o(()=>[...e[20]||(e[20]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ue=k(de,[["render",ie]]),P="time_zone",ce={mixins:[U],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(P)},methods:{save(){this.saveSetting(P,this.timeZone)},parseSetting:function(l){l&&(this.timeZone=l)}}};function me(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),m=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),V(n,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Time Zone",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(" 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}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,null,{default:o(()=>[t(c,{modelValue:s.timeZone,"onUpdate:modelValue":e[3]||(e[3]=d=>s.timeZone=d),items:s.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"","data-test":"time-zone"},null,8,["modelValue","items"])]),_:1}),t(b,null,{default:o(()=>[t(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-time-zone"},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const pe=k(ce,[["render",me]]),Z="news_feed",ge={mixins:[U],data(){return{newsFeed:!0}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(l){this.newsFeed=l}}};function fe(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("News Feed Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(c,{class:"pb-0"},{default:o(()=>[t(i,{label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
|
1
|
+
System.register(["vue","./main-a4f4e7cef92e830d29de.js","./settings-DToCplG_-ca6efbbfb677a1b36d60.js","vue-router","single-spa","vuex","vuetify"],(function(X,Ee){"use strict";var a,B,h,t,V,o,r,y,H,E,O,w,T,F,q,k,M,U;return{setters:[S=>{a=S.resolveComponent,B=S.createElementBlock,h=S.openBlock,t=S.createVNode,V=S.createBlock,o=S.withCtx,r=S.createTextVNode,y=S.toDisplayString,H=S.createSlots,E=S.mergeProps,O=S.createCommentVNode,w=S.withDirectives,T=S.vShow,F=S.Fragment,q=S.renderList},S=>{k=S.d,M=S.X},S=>{U=S.n},null,null,null,null],execute:(function(){const S={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(l){l?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(l=>l.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(l){const e=l.split("__")[1].replaceAll("_"," ");return{key:l,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[l]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(l){for(const e of l)delete localStorage[e]}}};function Y(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[r("Reset suppressed warnings",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `,-1)])]),_:1}),t(c,null,{default:o(()=>[s.suppressedWarnings.length?(h(),B(F,{key:0},[t(i,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=n=>s.selectAllSuppressedWarnings=n),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(h(!0),B(F,null,q(s.suppressedWarnings,n=>(h(),V(i,{key:n.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=d=>s.selectedSuppressedWarnings=d),label:n.text,value:n.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(h(),B(F,{key:1},[r(" No warnings to reset ")],64))]),_:1}),t(p,{class:"px-2"},{default:o(()=>[t(m,{disabled:!s.selectedSuppressedWarnings.length,onClick:v.resetSuppressedWarnings,color:"warning",variant:"text","data-test":"reset-suppressed-warnings"},{default:o(()=>[...e[4]||(e[4]=[r(" Reset ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const I=k(S,[["render",Y]]),Q={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(l){l?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){this.lastConfigs=Object.keys(localStorage).filter(l=>l.endsWith("__default")).map(l=>{const e=l.split("__")[0].replaceAll("_"," ");return{key:l,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(l){for(const e of l)delete localStorage[e]}}};function ee(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[r(" Clear default configs ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[r(" This clears the default tool configs on this browser ",-1)])]),_:1}),t(c,null,{default:o(()=>[s.lastConfigs.length?(h(),B(F,{key:0},[t(i,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=n=>s.selectAllLastConfigs=n),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(h(!0),B(F,null,q(s.lastConfigs,n=>(h(),V(i,{key:n.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=d=>s.selectedLastConfigs=d),label:n.text,value:n.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(h(),B(F,{key:1},[r(" No configs to clear ")],64))]),_:1}),t(p,{class:"px-2"},{default:o(()=>[t(m,{disabled:!s.selectedLastConfigs.length,onClick:v.clearLastConfigs,color:"warning",variant:"text","data-test":"clear-default-configs"},{default:o(()=>[...e[4]||(e[4]=[r(" Clear ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const te=k(Q,[["render",ee]]),le={data(){return{vimMode:M.isVimModeEnabled()}},methods:{save:function(){M.setVimMode(this.vimMode)}}};function oe(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[1]||(e[1]=[r(" Code Editor Settings ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[2]||(e[2]=[r(" Settings for the code editors built into COSMOS (e.g. in Script Runner) ",-1)])]),_:1}),t(c,{class:"pb-0"},{default:o(()=>[t(i,{label:"Vim mode",modelValue:s.vimMode,"onUpdate:modelValue":e[0]||(e[0]=n=>s.vimMode=n),color:"primary"},null,8,["modelValue"])]),_:1}),t(p,null,{default:o(()=>[t(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-editor-settings"},{default:o(()=>[...e[3]||(e[3]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ae=k(le,[["render",oe]]),D="astro",se={mixins:[U],data(){return{hideClock:!1}},created(){this.loadSetting(D)},methods:{save(){this.saveSetting(D,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(l){if(l){let e=JSON.parse(l);this.hideClock=e.hideClock}}}};function re(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Astro Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(c,{class:"pb-0"},{default:o(()=>[t(i,{label:"Hide Astro Clock",modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=n=>s.hideClock=n),color:"primary"},null,8,["modelValue"])]),_:1}),t(p,null,{default:o(()=>[t(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-astro-settings"},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ne=k(se,[["render",re]]),j="classification_banner",de={mixins:[U],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:l=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(l)||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(l){l?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(l){l?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customFontColor=`#${l}`)},customBackgroundColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customBackgroundColor=`#${l}`)}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,this.saveObj)},parseSetting:function(l){if(l){const e=JSON.parse(l);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 ie(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-text-field"),c=a("v-col"),m=a("v-row"),p=a("v-icon"),b=a("v-list-item"),n=a("v-select"),d=a("v-switch"),W=a("v-card-text"),R=a("v-btn"),A=a("v-card-actions"),N=a("v-card");return h(),V(N,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[12]||(e[12]=[r("Classification Banner Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=g=>l.errorLoading=g),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=g=>l.errorSaving=g),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=g=>l.successSaving=g),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(W,{class:"pb-0"},{default:o(()=>[t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(i,{label:"Text",modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=g=>s.text=g),"data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(n,{label:"Background color",items:s.colors,"item-title":"text",modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=g=>s.selectedBackgroundColor=g),"data-test":"classification-banner-background-color"},H({item:o(({props:g,item:f})=>[t(b,E(g,{value:f.text}),{prepend:o(()=>[f.value?(h(),V(p,{key:0,color:f.value},{default:o(()=>[...e[15]||(e[15]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[t(p,{color:s.selectedBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[r(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=g=>s.customBackgroundColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":o(()=>[w(t(p,{color:s.customBackgroundColor},{default:o(()=>[...e[16]||(e[16]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!s.selectedBackgroundColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1}),t(c,null,{default:o(()=>[t(n,{label:"Font color",items:s.colors,"item-title":"text",modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=g=>s.selectedFontColor=g),"data-test":"classification-banner-font-color"},H({item:o(({props:g,item:f})=>[t(b,E(g,{value:f.text}),{prepend:o(()=>[f.value?(h(),V(p,{key:0,color:f.value},{default:o(()=>[...e[18]||(e[18]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:o(()=>[w(t(p,{color:s.selectedFontColor},{default:o(()=>[...e[17]||(e[17]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=g=>s.customFontColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":o(()=>[w(t(p,{color:s.customFontColor},{default:o(()=>[...e[19]||(e[19]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!s.selectedFontColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1})]),_:1}),t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(d,{label:"Display top banner",modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=g=>s.displayTopBanner=g),color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{label:"Top height",disabled:!s.displayTopBanner,type:"number",suffix:"px",modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=g=>s.topHeight=g),"data-test":"classification-banner-top-height"},null,8,["disabled","modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(d,{label:"Display bottom banner",modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=g=>s.displayBottomBanner=g),color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{label:"Bottom height",disabled:!s.displayBottomBanner,type:"number",suffix:"px",modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=g=>s.bottomHeight=g),"data-test":"classification-banner-bottom-height"},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1}),t(A,null,{default:o(()=>[t(R,{disabled:!v.formValid,onClick:v.save,color:"success",variant:"text","data-test":"save-classification-banner"},{default:o(()=>[...e[20]||(e[20]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ue=k(de,[["render",ie]]),P="time_zone",ce={mixins:[U],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(P)},methods:{save(){this.saveSetting(P,this.timeZone)},parseSetting:function(l){l&&(this.timeZone=l)}}};function me(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),m=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),V(n,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Time Zone",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(" 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}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,null,{default:o(()=>[t(c,{modelValue:s.timeZone,"onUpdate:modelValue":e[3]||(e[3]=d=>s.timeZone=d),items:s.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"","data-test":"time-zone"},null,8,["modelValue","items"])]),_:1}),t(b,null,{default:o(()=>[t(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-time-zone"},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const pe=k(ce,[["render",me]]),Z="news_feed",ge={mixins:[U],data(){return{newsFeed:!0}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(l){this.newsFeed=l}}};function fe(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),p=a("v-card-actions"),b=a("v-card");return h(),V(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("News Feed Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(c,{class:"pb-0"},{default:o(()=>[t(i,{label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
|
2
2
|
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.`,modelValue:s.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=n=>s.newsFeed=n),color:"primary"},null,8,["modelValue"])]),_:1}),t(p,null,{default:o(()=>[t(m,{onClick:v.save,color:"success",variant:"text","data-test":"save-news-feed"},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const he=k(ge,[["render",fe]]),$="subtitle",ve={mixins:[U],data(){return{subtitle:""}},created(){this.loadSetting($)},methods:{save(){this.saveSetting($,this.subtitle)},parseSetting:function(l){l&&(this.subtitle=l)}}};function be(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),V(n,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Subtitle",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ",-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{label:"Subtitle",modelValue:s.subtitle,"onUpdate:modelValue":e[3]||(e[3]=d=>s.subtitle=d),"data-test":"subtitle"},null,8,["modelValue"])]),_:1}),t(b,null,{default:o(()=>[t(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-subtitle"},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ce=k(ve,[["render",be]]),z="source_url",Se={mixins:[U],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.sourceUrl)},parseSetting:function(l){l&&(this.sourceUrl=l)}}};function Ve(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),V(n,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r(" Source code URL ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(' This sets the URL for the "Source" link in the footer. This is required under the AGPL license. ',-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{label:"Source URL",modelValue:s.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=d=>s.sourceUrl=d),"data-test":"source-url"},null,8,["modelValue"])]),_:1}),t(b,null,{default:o(()=>[t(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-source-url"},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ye=k(Se,[["render",Ve]]),J="rubygems_url",_e={mixins:[U],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(J)},methods:{save(){this.saveSetting(J,this.rubygemsUrl)},parseSetting:function(l){l&&(this.rubygemsUrl=l)}}};function ke(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),V(n,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r(" Rubygems URL ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ",-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{label:"Rubygems URL",modelValue:s.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=d=>s.rubygemsUrl=d),"data-test":"rubygems-url"},null,8,["modelValue"])]),_:1}),t(b,null,{default:o(()=>[t(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-rubygems-url"},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const xe=k(_e,[["render",ke]]),K="pypi_url",Ue={mixins:[U],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.pypiUrl)},parseSetting:function(l){l&&(this.pypiUrl=l)}}};function Be(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),p=a("v-btn"),b=a("v-card-actions"),n=a("v-card");return h(),V(n,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r(" Pypi URL ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets the URL for installing dependency python packages. Also used for package discovery. ",-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{label:"Pypi URL",modelValue:s.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=d=>s.pypiUrl=d),"data-test":"pypi-url"},null,8,["modelValue"])]),_:1}),t(b,null,{default:o(()=>[t(p,{onClick:v.save,color:"success",variant:"text","data-test":"save-pypi-url"},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const we=k(Ue,[["render",Be]]),G="context_tag",Te={mixins:[U],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:l=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(l)||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(l){l?this.text||(this.text="REPLACEME"):this.text=null},customFontColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customFontColor=`#${l}`)},customBackgroundColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customBackgroundColor=`#${l}`)}},created(){this.loadSetting(G)},methods:{save(){this.saveSetting(G,this.saveObj)},parseSetting:function(l){if(l){const e=JSON.parse(l);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 Fe(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-col"),p=a("v-row"),b=a("v-switch"),n=a("v-icon"),d=a("v-list-item"),W=a("v-select"),R=a("v-card-text"),A=a("v-btn"),N=a("v-card-actions"),g=a("v-card");return h(),V(g,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[9]||(e[9]=[r("Context Tag Settings",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[10]||(e[10]=[r(" 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}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=f=>l.errorLoading=f),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=f=>l.errorSaving=f),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+y(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=f=>l.successSaving=f),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[11]||(e[11]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(R,{class:"pb-0"},{default:o(()=>[t(p,{dense:""},{default:o(()=>[t(m,null,{default:o(()=>[t(c,{label:"Text",modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=f=>s.text=f),"data-test":"context-tag-text",disabled:!s.displayContextTag},null,8,["modelValue","disabled"])]),_:1})]),_:1}),t(p,{dense:""},{default:o(()=>[t(m,null,{default:o(()=>[t(b,{label:"Display context tag",modelValue:s.displayContextTag,"onUpdate:modelValue":e[4]||(e[4]=f=>s.displayContextTag=f),color:"primary","data-test":"display-context-tag"},null,8,["modelValue"])]),_:1}),t(m,null,{default:o(()=>[t(W,{label:"Background color",items:s.colors,"item-title":"text",modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=f=>s.selectedBackgroundColor=f),"data-test":"context-tag-background-color"},H({item:o(({props:f,item:L})=>[t(d,E(f,{value:L.text}),{prepend:o(()=>[L.value?(h(),V(n,{key:0,color:L.value},{default:o(()=>[...e[13]||(e[13]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[t(n,{color:s.selectedBackgroundColor},{default:o(()=>[...e[12]||(e[12]=[r(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),t(m,null,{default:o(()=>[t(c,{label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[6]||(e[6]=f=>s.customBackgroundColor=f),rules:[s.rules.customColor],"data-test":"context-tag-custom-background-color"},{"prepend-inner":o(()=>[w(t(n,{color:s.customBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!s.selectedBackgroundColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1}),t(m,null,{default:o(()=>[t(W,{label:"Font color",items:s.colors,"item-title":"text",modelValue:s.selectedFontColor,"onUpdate:modelValue":e[7]||(e[7]=f=>s.selectedFontColor=f),"data-test":"context-tag-font-color"},H({item:o(({props:f,item:L})=>[t(d,E(f,{value:L.text}),{prepend:o(()=>[L.value?(h(),V(n,{key:0,color:L.value},{default:o(()=>[...e[16]||(e[16]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:o(()=>[w(t(n,{color:s.selectedFontColor},{default:o(()=>[...e[15]||(e[15]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),t(m,null,{default:o(()=>[t(c,{label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,modelValue:s.customFontColor,"onUpdate:modelValue":e[8]||(e[8]=f=>s.customFontColor=f),rules:[s.rules.customColor],"data-test":"context-tag-custom-font-color"},{"prepend-inner":o(()=>[w(t(n,{color:s.customFontColor},{default:o(()=>[...e[17]||(e[17]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[T,!s.selectedFontColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1})]),_:1})]),_:1}),t(N,null,{default:o(()=>[t(A,{disabled:!v.formValid,onClick:v.save,color:"success",variant:"text","data-test":"save-context-tag"},{default:o(()=>[...e[18]||(e[18]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Le=k(Te,[["render",Fe]]),We={components:{SuppressedSettings:I,DefaultConfigSettings:te,EditorSettings:ae,AstroSettings:ne,ClassificationBannerSettings:ue,TimeZoneSettings:pe,NewsFeedSettings:he,SubtitleSettings:Ce,SourceCodeSettings:ye,RubyGemsSettings:xe,PypiSettings:we,ContextTagSettings:Le}};function He(l,e,_,x,s,v){const C=a("suppressed-settings"),u=a("v-divider"),i=a("default-config-settings"),c=a("editor-settings"),m=a("astro-settings"),p=a("time-zone-settings"),b=a("news-feed-settings"),n=a("classification-banner-settings"),d=a("subtitle-settings"),W=a("source-code-settings"),R=a("ruby-gems-settings"),A=a("pypi-settings"),N=a("context-tag-settings");return h(),B("div",null,[t(C),t(u),t(i),t(u),t(c),t(u),t(m),t(u),t(p),t(u),t(b),t(u),t(n),t(u),t(d),t(u),t(W),t(u),t(R),t(u),t(A),t(u),t(N)])}const Oe=X("default",k(We,[["render",He]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./VWidget-
|
1
|
+
System.register(["./VWidget-P-X9ffkl-afe8821fe00c082d6017.js","vue","./main-a4f4e7cef92e830d29de.js","./Widget-BIXl-Pk5-73a605540046d0272b73.js","vue-router","single-spa","vuex","vuetify"],(function(o,d){"use strict";var l,a,n,r,s,i;return{setters:[t=>{l=t.h},t=>{a=t.resolveComponent,n=t.createBlock,r=t.openBlock,s=t.normalizeStyle},t=>{i=t.d},null,null,null,null,null],execute:(function(){const t={mixins:[l],props:{value:{default:null}},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=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=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,m,g,B,v,c){const h=a("v-btn");return r(),n(h,{icon:c.displayedIcon,variant:"text",style:s(e.computedStyle),"aria-label":"Signal Strength",onClick:c.clickHandler},null,8,["icon","style","onClick"])}const p=o("default",i(t,[["render",u]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["vue","./main-
|
1
|
+
System.register(["vue","./main-a4f4e7cef92e830d29de.js"],(function(x,N){"use strict";var a,u,h,l,e,n,s,p,v;return{setters:[t=>{a=t.resolveComponent,u=t.createBlock,h=t.openBlock,l=t.withCtx,e=t.createVNode,n=t.createElementVNode,s=t.toDisplayString,p=t.createTextVNode},t=>{v=t.d}],execute:(function(){const t={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},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"}),o=document.createElement("a");o.href=URL.createObjectURL(i),o.setAttribute("download",`${this.title}.txt`),o.click()}}},f={class:"mx-2"},V={class:"pa-3"},g={class:"text"};function k(i,o,c,E,D,d){const r=a("v-spacer"),w=a("v-btn"),C=a("v-toolbar"),b=a("v-card-text"),y=a("v-card-actions"),_=a("v-card"),B=a("v-dialog");return h(),u(B,{modelValue:d.show,"onUpdate:modelValue":o[1]||(o[1]=m=>d.show=m),width:c.width,scrollable:""},{default:l(()=>[e(_,null,{default:l(()=>[e(C,{height:"24"},{default:l(()=>[e(r),n("span",null,s(c.title),1),e(r),n("div",f,[e(w,{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:l(()=>[n("div",V,[n("span",g,s(c.text),1)])]),_:1}),e(y,{class:"px-2"},{default:l(()=>[e(r),e(w,{variant:"flat",onClick:o[0]||(o[0]=m=>d.show=!d.show)},{default:l(()=>[...o[2]||(o[2]=[p(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const S=x("E",v(t,[["render",k],["__scopeId","data-v-7a4e629d"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-73a605540046d0272b73.js","vue","./main-a4f4e7cef92e830d29de.js","vue-router","single-spa","vuex","vuetify"],(function(r,o){"use strict";var t,n,s,i,l;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,s=e.openBlock,i=e.normalizeStyle},e=>{l=e.d},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,d,m,h,v){return s(),n("div",{style:i(u.computedStyle)},null,4)}const c=r("default",l(e,[["render",a]]))})}}));
|