openc3-cosmos-tool-admin 5.20.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +2 -2
- data/tools/admin/ArrayWidget-BTxChSds-e9bc6948cfc94ea6c8ea.js +2 -0
- data/tools/admin/BarColumn-Cdu3OoMa-6b9d231248e3c807a1ca.js +1 -0
- data/tools/admin/BlockWidget-PmjzrkXF-c80c9d1c463d83528a3d.js +2 -0
- data/tools/admin/ButtonWidget-nwDlOBJT-d16fb6a24cef7c5b624b.js +2 -0
- data/tools/admin/CanvasWidget-BL8930eT-7c425befd858deae2375.js +1 -0
- data/tools/admin/CanvasdotWidget-VCf1fL-G-175f4d8d2fe3d73133b7.js +1 -0
- data/tools/admin/CanvasimageWidget-BIw7Wbf2-675b82c793c05652c4e4.js +1 -0
- data/tools/admin/CanvasimagevalueWidget-CE3Dj5bH-4c7da53208143de275fb.js +1 -0
- data/tools/admin/CanvaslabelWidget-DWmb356h-27386996b1e22521d68a.js +1 -0
- data/tools/admin/CanvaslabelvalueWidget-CI3yYwFs-106dd8676e7059142aeb.js +1 -0
- data/tools/admin/CanvaslineWidget-COeapH3P-454440a3cbef96b78149.js +1 -0
- data/tools/admin/CanvaslinevalueWidget-CI-Bbzfi-c196fded05e85ca64b76.js +1 -0
- data/tools/admin/CheckbuttonWidget-BQhggcZ2-fe79147a6042d06deb71.js +1 -0
- data/tools/admin/ComboboxWidget-BzsbOv54-19196e0faa887589be04.js +1 -0
- data/tools/admin/DateWidget-B5R_9rA8-6d87b2b38b75a9f194f0.js +1 -0
- data/tools/admin/DetailsDialog-DLRMqetn-55763452729cfe2e3307.js +1 -0
- data/tools/admin/DynamicWidget-m9EliUR2-e3f3eb1367b6fc62b4f4.js +1 -0
- data/tools/admin/FormatvalueWidget-DZkRJce8-29bc510b6fee4be432b3.js +1 -0
- data/tools/admin/GraphWidget-amwxyH1r-ae1fe3465676228a4925.js +1 -0
- data/tools/admin/HorizontalWidget-CirtfuL8-981280ce431e3a0ea8a4.js +1 -0
- data/tools/admin/HorizontalboxWidget-CyTDt2nl-1db32d80217737537afb.js +1 -0
- data/tools/admin/HorizontallineWidget-BdlNB951-08181cb1762ec42b7083.js +1 -0
- data/tools/admin/IframeWidget-DnJmCrCA-669adff673891b6a1695.js +1 -0
- data/tools/admin/ImageLoader-CpcR6tPi-5519b9d946e6eeba9d6a.js +1 -0
- data/tools/admin/ImageviewerWidget-DIkmb_C9-8346469a4ad561e7a78b.js +1 -0
- data/tools/admin/InterfacesTab-jtIK4SaM-d37991d03f54f16d4184.js +1 -0
- data/tools/admin/LabelWidget-BDsypYho-e74513b75a138300eda4.js +1 -0
- data/tools/admin/LabelledWidget-DjturGl5-f58bc223d97e08fd542a.js +1 -0
- data/tools/admin/LabelprogressbarWidget-RADJGLj3-f059a9ff279f759d38fc.js +1 -0
- data/tools/admin/LabelsparklineWidget-BlJoICxu-13bf91cc93e846f7699e.js +1 -0
- data/tools/admin/LabelvalueWidget-DVWJqnlY-b0232700037d1bb6b7b6.js +1 -0
- data/tools/admin/LabelvaluedescWidget-CsUP7J4U-c46a707153bfa07e40b3.js +1 -0
- data/tools/admin/LabelvaluelimitsbarWidget-Blj1QXV8-b2889d7dd9e0adb31527.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-CvCo-uCe-1725d487ee051e88eeee.js +1 -0
- data/tools/admin/LabelvaluerangebarWidget-DpcXhlfF-20dc9151170423e55774.js +1 -0
- data/tools/admin/Layout-C1HoM4Kl-417cd02a11d96e992d80.js +1 -0
- data/tools/admin/LedWidget-B_K2e5tq-e1a5d6fa7037166a47ef.js +1 -0
- data/tools/admin/LimitsbarWidget-DXbqsi4J-d4cab330a230750fd898.js +1 -0
- data/tools/admin/LimitscolorWidget-Ckmuw0YX-9186aec847ec6a5bfc9e.js +1 -0
- data/tools/admin/LimitscolumnWidget-BfY4su5U-1c6e4848809e88a5260e.js +1 -0
- data/tools/admin/LinegraphWidget-y-Qy9P0R-cd2f04586aef988a58a9.js +1 -0
- data/tools/admin/MatrixbycolumnsWidget-BTBColrs-fea73244eb707601aeea.js +1 -0
- data/tools/admin/MicroservicesTab-D8GGVvwc-c1bb51519a9905e693db.js +1 -0
- data/tools/admin/OutputDialog-D7vLuueV-2204b36fc17e01c28df1.js +1 -0
- data/tools/admin/PackagesTab-CkHqLuVL-a1723ff9378b042895e7.js +1 -0
- data/tools/admin/PluginsTab-Dli9v-0R-a1399af85f2fd990e133.js +5 -0
- data/tools/admin/ProgressbarWidget-DpA_-vy9-a9f80bf0377e829b78e4.js +1 -0
- data/tools/admin/RadiobuttonWidget-BO8zpgwW-84a3f731c673059c0393.js +1 -0
- data/tools/admin/RadiogroupWidget-Oy7V4S-V-b80e9e6044d42dbb6003.js +1 -0
- data/tools/admin/RangebarWidget-DHS7S3vI-f79443d06bda1ec7b512.js +1 -0
- data/tools/admin/RedisTab-B3fY9we7-760bc2333036ad71e6e2.js +1 -0
- data/tools/admin/RollupWidget-CTk9Kjwr-2b0cb75af9296f391f66.js +1 -0
- data/tools/admin/RoutersTab-DVCaPPmy-b9d80c9b1e7bdc67d92b.js +1 -0
- data/tools/admin/ScrollwindowWidget-DD0TOW6s-74997dd2355435e39c51.js +1 -0
- data/tools/admin/SecretsTab-BuC3n5C4-b50ed27afdc2414dc4e1.js +1 -0
- data/tools/admin/SettingsTab-CYb9hSNx-9497e6025bffab0bc5be.js +1 -0
- data/tools/admin/SignalWidget-CC33KMTW-b72d958b3093cc84c5a8.js +1 -0
- data/tools/admin/SimpleTextDialog-3Tzc_snk-be80893bf7377e8a2b54.js +1 -0
- data/tools/admin/SpacerWidget-BnJe_Hq6-8227c31e3ee431aabe0b.js +1 -0
- data/tools/admin/SparklineWidget-DMvMQCPm-8b9d64dc2d6f09e95fd3.js +1 -0
- data/tools/admin/TabbookWidget-B3w0JtWe-dc6cbcfea02b50002ecf.js +1 -0
- data/tools/admin/TargetsTab-CxiGJ2P2-85a21e098266facf4e02.js +1 -0
- data/tools/admin/TextboxWidget-D2f0-eol-c677022753c77473b718.js +1 -0
- data/tools/admin/TextfieldWidget-DXSdgqVP-ee0eeca9be6f669c081c.js +1 -0
- data/tools/admin/TimeWidget-DvrRaEMz-d4257dcc7dac23d0f759.js +1 -0
- data/tools/admin/TitleWidget-DqViFQl--5330d5a64637d7951419.js +1 -0
- data/tools/admin/ToolsTab-B3gDjVxE-e0c39fb43d32b4a57698.js +6 -0
- data/tools/admin/VWidget-02CG-3Av-a973337ad24b9f4eb395.js +1 -0
- data/tools/admin/ValueWidget-KLYY8L8U-7e154a7868618ab3cca1.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-SR8XNZFB-95640fde4e539f355d39.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-xYZSp6YZ-6f04a114c777e09665dd.js +1 -0
- data/tools/admin/ValuerangebarWidget-B6M02a9d-51d2f42c3985e1d08101.js +1 -0
- data/tools/admin/VerticalWidget-z6xUM-ql-ae963987b8cf0c0e3f98.js +1 -0
- data/tools/admin/VerticalboxWidget-3a9cVsW--2471ab4dfbbe133b4e9b.js +1 -0
- data/tools/admin/Widget-C4QVI4IH-80b859328e2c8ee53918.js +1 -0
- data/tools/admin/main-6d6b6148fd97f6dd73ae.js +1431 -0
- data/tools/admin/main.js +1 -0
- metadata +79 -41
- data/tools/admin/index.html +0 -4
- data/tools/admin/js/143.js +0 -2
- data/tools/admin/js/143.js.map +0 -1
- data/tools/admin/js/163.js +0 -2
- data/tools/admin/js/163.js.map +0 -1
- data/tools/admin/js/25.js +0 -2
- data/tools/admin/js/25.js.map +0 -1
- data/tools/admin/js/272.js +0 -2
- data/tools/admin/js/272.js.map +0 -1
- data/tools/admin/js/352.js +0 -2
- data/tools/admin/js/352.js.map +0 -1
- data/tools/admin/js/542.js +0 -10
- data/tools/admin/js/542.js.map +0 -1
- data/tools/admin/js/56.js +0 -2
- data/tools/admin/js/56.js.map +0 -1
- data/tools/admin/js/569.js +0 -2
- data/tools/admin/js/569.js.map +0 -1
- data/tools/admin/js/612.js +0 -2
- data/tools/admin/js/612.js.map +0 -1
- data/tools/admin/js/627.js +0 -9
- data/tools/admin/js/627.js.map +0 -1
- data/tools/admin/js/698.js +0 -2
- data/tools/admin/js/698.js.map +0 -1
- data/tools/admin/js/722.js +0 -2
- data/tools/admin/js/722.js.map +0 -1
- data/tools/admin/js/742.js +0 -2
- data/tools/admin/js/742.js.map +0 -1
- data/tools/admin/js/816.js +0 -2
- data/tools/admin/js/816.js.map +0 -1
- data/tools/admin/js/842.js +0 -2
- data/tools/admin/js/842.js.map +0 -1
- data/tools/admin/js/854.js +0 -2
- data/tools/admin/js/854.js.map +0 -1
- data/tools/admin/js/949.js +0 -2
- data/tools/admin/js/949.js.map +0 -1
- data/tools/admin/js/983.js +0 -2
- data/tools/admin/js/983.js.map +0 -1
- data/tools/admin/js/app.js +0 -2
- data/tools/admin/js/app.js.map +0 -1
data/tools/admin/js/56.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[56],{2795:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});var o=s(2673);const a=async function(t,e,{data:s,params:a={},headers:n,noAuth:r=!1,noScope:i=!1,onUploadProgress:l=!1}={}){if(!r){try{let t=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);t&&OpenC3Auth.setTokens()}catch(c){OpenC3Auth.login()}n["Authorization"]=localStorage.openc3Token}return n["manual"]=!0,i||a["scope"]||(a["scope"]=window.openc3Scope),(0,o.A)({method:t,url:e,data:s,params:a,headers:n,onUploadProgress:l})},n={Accept:"application/json"},r={...n,"Content-Type":"application/json"},i={get:function(t,{params:e,headers:s=n,noScope:o,noAuth:r,onUploadProgress:i}={}){return a("get",t,{params:e,headers:s,noScope:o,noAuth:r,onUploadProgress:i})},put:function(t,{data:e,params:s,headers:o=r,noScope:n,noAuth:i,onUploadProgress:l}={}){return a("put",t,{data:e,params:s,headers:o,noScope:n,noAuth:i,onUploadProgress:l})},post:function(t,{data:e,params:s,headers:o=r,noScope:n,noAuth:i,onUploadProgress:l}={}){return a("post",t,{data:e,params:s,headers:o,noScope:n,noAuth:i,onUploadProgress:l})},delete:function(t,{params:e,headers:s=n,noScope:o,noAuth:r,onUploadProgress:i}={}){return a("delete",t,{params:e,headers:s,noScope:o,noAuth:r,onUploadProgress:i})}}},2673:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});var o=s(3816),a=s(1649);const n=new a["default"],r=o.A.create({baseURL:location.origin,timeout:6e4,params:{}});r.interceptors.response.use((t=>t),(t=>{if(t.response){if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(t){t&&OpenC3Auth.setTokens()})),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let e=`HTTP ${t.response.status} - `;throw t.response?.statusText&&(e+=`${t.response.statusText} `),t.response?.config?.data&&(e+=`${t.response.config.data} `),t.response?.data?.message?e+=`${t.response.data.message}`:t.response?.data?.exception?e+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(e+=`${t.response.data.error.class} `),e+=`${t.response.data.error.message}`):e+=`${t.response?.data}`,n.$notify&&n.$notify.serious({title:"Network error",body:e}),t}throw t}));const i=r},3348:(t,e,s)=>{"use strict";s.d(e,{A:()=>c});var o=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:t.width},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),t._v(" "),e("span",[t._v(" "+t._s(t.title)+" ")]),t._v(" "),e("v-spacer"),t._v(" "),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:o}){return[e("div",t._g(t._b({},"div",o,!1),s),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:t.download}},[t._v("\n mdi-download\n ")])],1)]}}])},[t._v(" "),e("span",[t._v(" Download ")])])],1)],1),t._v(" "),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("span",{staticStyle:{"white-space":"pre-wrap"}},[t._v(t._s(t.text))])])]),t._v(" "),e("v-card-actions",[e("v-spacer"),t._v(" "),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){t.show=!t.show}}},[t._v(" Ok ")])],1)],1)],1)},a=[];s(3165),s(4541),s(4397),s(1412),s(1883),s(7905);const n={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}}},methods:{download:function(){const t=new Blob([this.text],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.title}.txt`),e.click()}}},r=n;var i=s(2401),l=(0,i.A)(r,o,a,!1,null,null,null);const c=l.exports},3056:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>k});var o=function(){var t=this,e=t._self._c;return e("div",[e("v-row",{staticClass:"px-2",attrs:{"no-gutters":"",align:"center"}},[e("v-col",[e("v-file-input",{ref:"fileInput",staticClass:"mx-2",attrs:{multiple:"","show-size":"",accept:".gem,.gz,.zip,.whl",label:"Click to select file(s) to add to COSMOS"},model:{value:t.files,callback:function(e){t.files=e},expression:"files"}})],1),t._v(" "),e("v-col",{staticClass:"ml-4 mr-2",attrs:{cols:"4"}},[e("rux-progress",{attrs:{value:t.progress}})],1),t._v(" "),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"packageUpload",disabled:t.files.length<1,loading:t.loadingPackage},on:{click:function(e){return t.upload()}},scopedSlots:t._u([{key:"loader",fn:function(){return[e("span",[t._v("Loading...")])]},proxy:!0}])},[e("v-icon",{attrs:{left:"",dark:""}},[t._v("mdi-cloud-upload")]),t._v(" "),e("span",[t._v(" Upload ")])],1)],1),t._v(" "),e("v-alert",{attrs:{dismissible:"",transition:"scale-transition",type:t.alertType},model:{value:t.showAlert,callback:function(e){t.showAlert=e},expression:"showAlert"}},[t._v(t._s(t.alert))]),t._v(" "),Object.keys(t.processes).length>0?e("v-list",{staticClass:"list",attrs:{"data-test":"process-list"}},[e("v-row",{staticClass:"px-4",attrs:{"no-gutters":""}},[e("v-col",{staticClass:"text-h6"},[t._v("Process List")]),t._v(" "),e("v-col",{attrs:{align:"right"}},[e("div",[t._v("Showing last 10 min of activity")])])],1),t._v(" "),t._l(t.processes,(function(s){return e("div",{key:s.name},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[e("span",{class:s.state.toLowerCase(),domProps:{textContent:t._s(`Processing ${s.process_type}: ${s.detail} - ${s.state}`)}})]),t._v(" "),e("v-list-item-subtitle",[e("span",{domProps:{textContent:t._s(" Updated At: "+t.formatDate(s.updated_at))}})])],1),t._v(" "),"Running"!==s.state?e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showOutput(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-eye\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Show Output")])])],1):t._e()],1),t._v(" "),e("v-divider")],1)}))],2):t._e(),t._v(" "),e("v-list",{staticClass:"list",attrs:{"data-test":"packageList"}},[e("v-row",{staticClass:"px-4"},[e("v-col",{staticClass:"text-h6"},[t._v("Ruby Gems")])],1),t._v(" "),t._l(t.gems,(function(s,o){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(s))])],1),t._v(" "),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.deletePackage(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-delete\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Delete Package")])])],1)],1),t._v(" "),e("v-divider")],1)})),t._v(" "),e("v-row",{staticClass:"px-4"},[e("v-col",{staticClass:"text-h6"},[t._v("Python Packages")])],1),t._v(" "),t._l(t.python,(function(s,o){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(s))])],1),t._v(" "),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.deletePackage(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-delete\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Delete Package")])])],1)],1),t._v(" "),e("v-divider")],1)}))],2),t._v(" "),e("download-dialog",{model:{value:t.showDownloadDialog,callback:function(e){t.showDownloadDialog=e},expression:"showDownloadDialog"}}),t._v(" "),e("simple-text-dialog",{attrs:{title:"Process Output",text:t.processOutput},model:{value:t.showProcessOutput,callback:function(e){t.showProcessOutput=e},expression:"showProcessOutput"}})],1)},a=[],n=s(524),r=s(8494),i=s(2795),l=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:"600"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),t._v(" "),e("span",[t._v(" Download Gems ")]),t._v(" "),e("v-spacer")],1),t._v(" "),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("v-row",{staticClass:"my-2"},[t._v(" Select a download option ")]),t._v(" "),e("v-row",[e("v-col",[e("div",{staticClass:"px-2"},[e("v-btn",{attrs:{block:"","data-test":"searchGithub",color:"primary",disabled:t.disableSearch},on:{click:t.searchGithub}},[t._v("\n Github\n "),e("v-icon",{attrs:{right:"",dark:""}},[t._v(" mdi-github ")])],1)],1)])],1),t._v(" "),e("v-row",{staticClass:"mt-5"},[t._v(" Community Gems ")]),t._v(" "),t.listData.length<1?e("div",{staticClass:"mt-4"},[e("v-row",{staticClass:"mx-2"},[e("span",[t._v(" I’m sorry, Dave. No gems available.... ")])])],1):e("div",{staticClass:"mt-4"},t._l(t.listData,(function(s,o){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(s.name))])],1),t._v(" "),e("v-list-item-icon",[t.activeDownload?e("div",[e("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1):e("div",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({attrs:{disabled:t.activeDownload},on:{click:function(e){return t.downloadGem(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-cloud-download\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Download Gem")])])],1)])],1),t._v(" "),o<t.listData.length-1?e("v-divider",{key:o}):t._e()],1)})),0)],1)])],1)],1)},c=[],p=s(3816);const u={props:{value:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}},listData:function(){return this.response?"github"===this.type?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const t=/\w+.gem/;return this.response.tree.filter((e=>t.exec(e.path))).map((t=>({name:t.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`})))},getResponse:function(){this.disableSearch=!0,p.A.get(this.url).then((t=>{this.response=t.data})),setTimeout((()=>{this.disableSearch=!1}),1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(t){const e=document.createElement("a");e.href=t.url,e.setAttribute("download",t.name),e.click(),e.remove()}}},d=u;var v=s(2401),h=(0,v.A)(d,l,c,!1,null,null,null);const m=h.exports;var _=s(3348);const g={components:{DownloadDialog:m,SimpleTextDialog:_.A},data(){return{showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",files:[],loadingPackage:!1,progress:0,gems:[],python:[],processes:{},alert:"",alertType:"success",showAlert:!1}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(t){this.processOutput=t.output,this.showProcessOutput=!0},update(){i.A.get("/openc3-api/packages").then((t=>{this.gems=t.data.ruby,this.python=t.data.python}))},updateProcesses:function(){i.A.get("/openc3-api/process_status/package_?substr=true").then((t=>{this.processes=t.data,Object.keys(this.processes).length>0&&setTimeout((()=>{this.updateProcesses(),this.update()}),1e4)}))},formatDate(t){return(0,n.GP)((0,r.a)(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(){this.loadingPackage=!0,this.progress=0;let t=this;const e=this.files.map((e=>{const s=new FormData;return s.append("package",e,e.name),i.A.post("/openc3-api/packages",{data:s,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){var s=Math.round(100*e.loaded/e.total);t.progress=s}})}));Promise.all(e).then((t=>{this.progress=100,this.alert=`Uploaded ${t.length} package${t.length>1?"s":""}`,this.alertType="success",this.showAlert=!0,this.loadingPackage=!1,this.files=[],setTimeout((()=>{this.showAlert=!1,this.updateProcesses()}),5e3),this.update()})).catch((t=>{this.loadingPackage=!1}))},deletePackage:function(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then((function(e){return i.A.delete(`/openc3-api/packages/${t}`)})).then((e=>{this.alert=`Removed package ${t}`,this.alertType="success",this.showAlert=!0,setTimeout((()=>{this.showAlert=!1}),5e3),this.update()}))}}},f=g;s(4758);var w=(0,v.A)(f,o,a,!1,null,"3fdf3675",null);const k=w.exports},5582:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var o=s(6758),a=s.n(o),n=s(935),r=s.n(n),i=r()(a());i.push([t.id,".v-subheader[data-v-3fdf3675]{font-size:1rem}.list[data-v-3fdf3675]{background-color:var(--color-background-surface-default)!important}",""]);const l=i},4758:(t,e,s)=>{var o=s(5582);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);var a=s(4825).A;a("29507692",o,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=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AAAI,OAAAJ,EAAAK,OAEAX,EAAA9D,SAAAqE,CACA,GACA,IAEAhI,QAAAqI,IAAAX,GACA9H,MAAA0I,IACA,KAAA3E,SAAA,IACA,KAAAO,MAAA,YAAAoE,EAAA1E,iBACA0E,EAAA1E,OAAA,WAEA,KAAAI,UAAA,UACA,KAAAC,WAAA,EACA,KAAAJ,gBAAA,EACA,KAAAH,MAAA,GACAgD,YAAA,KACA,KAAAzC,WAAA,EACA,KAAAgD,iBAAA,GACA,KACA,KAAAD,QAAA,IAEAuB,OAAAtK,IACA,KAAA4F,gBAAA,IAEA,EACAwB,cAAA,SAAAE,GACA,KAAAiD,QACAC,QAAA,oCAAAlD,IAAA,CACAmD,OAAA,SACAC,WAAA,WAEA/I,MAAA,SAAAgJ,GACA,OAAAzB,EAAAA,EAAApI,OAAA,wBAAAwG,IACA,IACA3F,MAAAH,IACA,KAAAyE,MAAA,mBAAAqB,IACA,KAAAvB,UAAA,UACA,KAAAC,WAAA,EACAyC,YAAA,KACA,KAAAzC,WAAA,IACA,KACA,KAAA+C,QAAA,GAEA,II5QiU,I,YCQ7T,GAAY,OACd,EACAtG,EACA2B,GACA,EACA,KACA,WACA,MAIF,QAAe,EAAiB,O,qGChB5BwG,EAA0B,IAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,0IAA2I,KAEpL,S,iBCJA,IAAIC,EAAU,EAAQ,MACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,GAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOM,QAAUJ,EAAQG,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYL,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/SimpleTextDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/SimpleTextDialog.vue?abaa","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/SimpleTextDialog.vue?5fff","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/DownloadDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/DownloadDialog.vue?bac1","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/DownloadDialog.vue?83fa","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?1715","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?cbd0","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?7fac","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?5e0c"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n {\n data,\n params = {},\n headers,\n noAuth = false,\n noScope = false,\n onUploadProgress = false,\n } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n // Everything from the front-end is manual by default\n // The various api methods decide whether to pass the manual\n // flag to the authorize routine\n headers['manual'] = true\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n onUploadProgress,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n {\n params,\n headers = acceptOnlyDefaultHeaders,\n noScope,\n noAuth,\n onUploadProgress,\n } = {}\n ) {\n return request('get', path, {\n params,\n headers,\n noScope,\n noAuth,\n onUploadProgress,\n })\n },\n\n put: function (\n path,\n {\n data,\n params,\n headers = fullDefaultHeaders,\n noScope,\n noAuth,\n onUploadProgress,\n } = {}\n ) {\n return request('put', path, {\n data,\n params,\n headers,\n noScope,\n noAuth,\n onUploadProgress,\n })\n },\n\n post: function (\n path,\n {\n data,\n params,\n headers = fullDefaultHeaders,\n noScope,\n noAuth,\n onUploadProgress,\n } = {}\n ) {\n return request('post', path, {\n data,\n params,\n headers,\n noScope,\n noAuth,\n onUploadProgress,\n })\n },\n\n delete: function (\n path,\n {\n params,\n headers = acceptOnlyDefaultHeaders,\n noScope,\n noAuth,\n onUploadProgress,\n } = {}\n ) {\n return request('delete', path, {\n params,\n headers,\n noScope,\n noAuth,\n onUploadProgress,\n })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n },\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // headers: {\n // 'Ignore-Errors': '404',\n // },\n // })\n if (\n error.response.config.headers['Ignore-Errors'] &&\n error.response.config.headers['Ignore-Errors'].includes(\n error.response.status.toString(),\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n },\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":_vm.width},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_vm._v(\" \"),_c('span',[_vm._v(\" \"+_vm._s(_vm.title)+\" \")]),_vm._v(\" \"),_c('v-spacer'),_vm._v(\" \"),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"downloadIcon\"},on:{\"click\":_vm.download}},[_vm._v(\"\\n mdi-download\\n \")])],1)]}}])},[_vm._v(\" \"),_c('span',[_vm._v(\" Download \")])])],1)],1),_vm._v(\" \"),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('span',{staticStyle:{\"white-space\":\"pre-wrap\"}},[_vm._v(_vm._s(_vm.text))])])]),_vm._v(\" \"),_c('v-card-actions',[_c('v-spacer'),_vm._v(\" \"),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Ok \")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SimpleTextDialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SimpleTextDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SimpleTextDialog.vue?vue&type=template&id=4cd697cc\"\nimport script from \"./SimpleTextDialog.vue?vue&type=script&lang=js\"\nexport * from \"./SimpleTextDialog.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-row',{staticClass:\"px-2\",attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',[_c('v-file-input',{ref:\"fileInput\",staticClass:\"mx-2\",attrs:{\"multiple\":\"\",\"show-size\":\"\",\"accept\":\".gem,.gz,.zip,.whl\",\"label\":\"Click to select file(s) to add to COSMOS\"},model:{value:(_vm.files),callback:function ($$v) {_vm.files=$$v},expression:\"files\"}})],1),_vm._v(\" \"),_c('v-col',{staticClass:\"ml-4 mr-2\",attrs:{\"cols\":\"4\"}},[_c('rux-progress',{attrs:{\"value\":_vm.progress}})],1),_vm._v(\" \"),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"packageUpload\",\"disabled\":_vm.files.length < 1,\"loading\":_vm.loadingPackage},on:{\"click\":function($event){return _vm.upload()}},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}])},[_c('v-icon',{attrs:{\"left\":\"\",\"dark\":\"\"}},[_vm._v(\"mdi-cloud-upload\")]),_vm._v(\" \"),_c('span',[_vm._v(\" Upload \")])],1)],1),_vm._v(\" \"),_c('v-alert',{attrs:{\"dismissible\":\"\",\"transition\":\"scale-transition\",\"type\":_vm.alertType},model:{value:(_vm.showAlert),callback:function ($$v) {_vm.showAlert=$$v},expression:\"showAlert\"}},[_vm._v(_vm._s(_vm.alert))]),_vm._v(\" \"),(Object.keys(_vm.processes).length > 0)?_c('v-list',{staticClass:\"list\",attrs:{\"data-test\":\"process-list\"}},[_c('v-row',{staticClass:\"px-4\",attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"text-h6\"},[_vm._v(\"Process List\")]),_vm._v(\" \"),_c('v-col',{attrs:{\"align\":\"right\"}},[_c('div',[_vm._v(\"Showing last 10 min of activity\")])])],1),_vm._v(\" \"),_vm._l((_vm.processes),function(process){return _c('div',{key:process.name},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_c('span',{class:process.state.toLowerCase(),domProps:{\"textContent\":_vm._s(\n `Processing ${process.process_type}: ${process.detail} - ${process.state}`\n )}})]),_vm._v(\" \"),_c('v-list-item-subtitle',[_c('span',{domProps:{\"textContent\":_vm._s(' Updated At: ' + _vm.formatDate(process.updated_at))}})])],1),_vm._v(\" \"),(process.state !== 'Running')?_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showOutput(process)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-eye\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Show Output\")])])],1):_vm._e()],1),_vm._v(\" \"),_c('v-divider')],1)})],2):_vm._e(),_vm._v(\" \"),_c('v-list',{staticClass:\"list\",attrs:{\"data-test\":\"packageList\"}},[_c('v-row',{staticClass:\"px-4\"},[_c('v-col',{staticClass:\"text-h6\"},[_vm._v(\"Ruby Gems\")])],1),_vm._v(\" \"),_vm._l((_vm.gems),function(gem,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(gem))])],1),_vm._v(\" \"),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deletePackage(gem)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-delete\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Delete Package\")])])],1)],1),_vm._v(\" \"),_c('v-divider')],1)}),_vm._v(\" \"),_c('v-row',{staticClass:\"px-4\"},[_c('v-col',{staticClass:\"text-h6\"},[_vm._v(\"Python Packages\")])],1),_vm._v(\" \"),_vm._l((_vm.python),function(pkg,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(pkg))])],1),_vm._v(\" \"),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deletePackage(pkg)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-delete\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Delete Package\")])])],1)],1),_vm._v(\" \"),_c('v-divider')],1)})],2),_vm._v(\" \"),_c('download-dialog',{model:{value:(_vm.showDownloadDialog),callback:function ($$v) {_vm.showDownloadDialog=$$v},expression:\"showDownloadDialog\"}}),_vm._v(\" \"),_c('simple-text-dialog',{attrs:{\"title\":\"Process Output\",\"text\":_vm.processOutput},model:{value:(_vm.showProcessOutput),callback:function ($$v) {_vm.showProcessOutput=$$v},expression:\"showProcessOutput\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_vm._v(\" \"),_c('span',[_vm._v(\" Download Gems \")]),_vm._v(\" \"),_c('v-spacer')],1),_vm._v(\" \"),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('v-row',{staticClass:\"my-2\"},[_vm._v(\" Select a download option \")]),_vm._v(\" \"),_c('v-row',[_c('v-col',[_c('div',{staticClass:\"px-2\"},[_c('v-btn',{attrs:{\"block\":\"\",\"data-test\":\"searchGithub\",\"color\":\"primary\",\"disabled\":_vm.disableSearch},on:{\"click\":_vm.searchGithub}},[_vm._v(\"\\n Github\\n \"),_c('v-icon',{attrs:{\"right\":\"\",\"dark\":\"\"}},[_vm._v(\" mdi-github \")])],1)],1)])],1),_vm._v(\" \"),_c('v-row',{staticClass:\"mt-5\"},[_vm._v(\" Community Gems \")]),_vm._v(\" \"),(_vm.listData.length < 1)?_c('div',{staticClass:\"mt-4\"},[_c('v-row',{staticClass:\"mx-2\"},[_c('span',[_vm._v(\" I’m sorry, Dave. No gems available.... \")])])],1):_c('div',{staticClass:\"mt-4\"},_vm._l((_vm.listData),function(data,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(data.name))])],1),_vm._v(\" \"),_c('v-list-item-icon',[(_vm.activeDownload)?_c('div',[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})],1):_c('div',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({attrs:{\"disabled\":_vm.activeDownload},on:{\"click\":function($event){return _vm.downloadGem(data)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-cloud-download\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Download Gem\")])])],1)])],1),_vm._v(\" \"),(index < _vm.listData.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0)],1)])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DownloadDialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DownloadDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DownloadDialog.vue?vue&type=template&id=5f1d58fe\"\nimport script from \"./DownloadDialog.vue?vue&type=script&lang=js\"\nexport * from \"./DownloadDialog.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PackagesTab.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PackagesTab.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PackagesTab.vue?vue&type=template&id=3fdf3675&scoped=true\"\nimport script from \"./PackagesTab.vue?vue&type=script&lang=js\"\nexport * from \"./PackagesTab.vue?vue&type=script&lang=js\"\nimport style0 from \"./PackagesTab.vue?vue&type=style&index=0&id=3fdf3675&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3fdf3675\",\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.v-subheader[data-v-3fdf3675]{font-size:1rem}.list[data-v-3fdf3675]{background-color:var(--color-background-surface-default)!important}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PackagesTab.vue?vue&type=style&index=0&id=3fdf3675&prod&scoped=true&lang=css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"29507692\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","async","method","url","data","params","headers","noAuth","noScope","onUploadProgress","refreshed","OpenC3Auth","updateToken","defaultMinValidity","setTokens","error","login","localStorage","openc3Token","window","openc3Scope","axios","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","get","path","put","post","delete","vueInstance","Vue","axiosInstance","create","baseURL","location","origin","timeout","interceptors","response","use","status","then","config","includes","toString","Promise","reject","body","statusText","message","exception","class","$notify","serious","title","render","_vm","this","_c","_self","attrs","width","model","value","show","callback","$$v","expression","_v","_s","staticClass","scopedSlots","_u","key","fn","on","_g","_b","download","staticStyle","text","$event","staticRenderFns","props","Boolean","String","computed","set","$emit","methods","blob","Blob","type","link","document","createElement","href","URL","createObjectURL","setAttribute","click","component","ref","files","progress","length","loadingPackage","upload","proxy","alertType","showAlert","alert","Object","keys","processes","_l","process","name","state","toLowerCase","domProps","process_type","detail","formatDate","updated_at","showOutput","_e","gems","gem","index","deletePackage","python","pkg","showDownloadDialog","processOutput","showProcessOutput","disableSearch","searchGithub","listData","activeDownload","downloadGem","expanded","parseGithub","parseRuby","gemRegEx","tree","filter","f","exec","map","getResponse","setTimeout","remove","components","DownloadDialog","SimpleTextDialog","mounted","update","updateProcesses","output","Api","ruby","nanoSecs","format","toDate","parseInt","self","promises","file","formData","FormData","append","progressEvent","percentCompleted","Math","round","loaded","total","all","responses","catch","$dialog","confirm","okText","cancelText","dialog","___CSS_LOADER_EXPORT___","push","module","id","content","__esModule","default","locals","exports","add"],"sourceRoot":""}
|
data/tools/admin/js/569.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[569],{2795:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var s=o(2673);const n=async function(t,e,{data:o,params:n={},headers:a,noAuth:i=!1,noScope:r=!1,onUploadProgress:l=!1}={}){if(!i){try{let t=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);t&&OpenC3Auth.setTokens()}catch(d){OpenC3Auth.login()}a["Authorization"]=localStorage.openc3Token}return a["manual"]=!0,r||n["scope"]||(n["scope"]=window.openc3Scope),(0,s.A)({method:t,url:e,data:o,params:n,headers:a,onUploadProgress:l})},a={Accept:"application/json"},i={...a,"Content-Type":"application/json"},r={get:function(t,{params:e,headers:o=a,noScope:s,noAuth:i,onUploadProgress:r}={}){return n("get",t,{params:e,headers:o,noScope:s,noAuth:i,onUploadProgress:r})},put:function(t,{data:e,params:o,headers:s=i,noScope:a,noAuth:r,onUploadProgress:l}={}){return n("put",t,{data:e,params:o,headers:s,noScope:a,noAuth:r,onUploadProgress:l})},post:function(t,{data:e,params:o,headers:s=i,noScope:a,noAuth:r,onUploadProgress:l}={}){return n("post",t,{data:e,params:o,headers:s,noScope:a,noAuth:r,onUploadProgress:l})},delete:function(t,{params:e,headers:o=a,noScope:s,noAuth:i,onUploadProgress:r}={}){return n("delete",t,{params:e,headers:o,noScope:s,noAuth:i,onUploadProgress:r})}}},2673:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var s=o(3816),n=o(1649);const a=new n["default"],i=s.A.create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((t=>t),(t=>{if(t.response){if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(t){t&&OpenC3Auth.setTokens()})),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let e=`HTTP ${t.response.status} - `;throw t.response?.statusText&&(e+=`${t.response.statusText} `),t.response?.config?.data&&(e+=`${t.response.config.data} `),t.response?.data?.message?e+=`${t.response.data.message}`:t.response?.data?.exception?e+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(e+=`${t.response.data.error.class} `),e+=`${t.response.data.error.message}`):e+=`${t.response?.data}`,a.$notify&&a.$notify.serious({title:"Network error",body:e}),t}throw t}));const r=i},1215:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var s=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:"85vw"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),t._v(" "),e("span",{domProps:{textContent:t._s(t.title)}}),t._v(" "),e("v-spacer"),t._v(" "),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:s}){return[e("div",t._g(t._b({},"div",s,!1),o),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:t.download}},[t._v("\n mdi-download\n ")])],1)]}}])},[t._v(" "),e("span",[t._v(" Download ")])])],1)],1),t._v(" "),e("v-card-text",[e("pre",{ref:"editor",staticClass:"editor"})]),t._v(" "),e("v-card-actions",[e("v-spacer"),t._v(" "),e("v-btn",{attrs:{color:"primary"},on:{click:t.close}},[t._v(" Ok ")])],1)],1)],1)},n=[],a=(o(3165),o(4541),o(4397),o(1412),o(1883),o(7905),o(1841));o(2739),o(6049),o(5617),o(6717),o(9946);const i={props:{content:{type:String,required:!0},type:String,name:String,value:Boolean,filename:{type:String,required:!1}},data(){return{editor:null}},mounted(){const t=this.buildPluginMode();this.editor=a.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new t),this.editor.session.setTabSize(2),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)},beforeDestroy(){this.editor&&this.editor.destroy()},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}},title:function(){return`${this.type}: ${this.name}`}},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()},buildPluginMode(){let t=a.require("ace/lib/oop"),e=a.require("ace/mode/json_highlight_rules").JsonHighlightRules,o=a.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,s=a.require("ace/mode/behaviour/cstyle").CstyleBehaviour,n=a.require("ace/mode/folding/ruby").FoldMode,i=function(){this.HighlightRules=e,this.$outdent=new o,this.$behaviour=new s,this.foldingRules=new n,this.indentKeywords=this.foldingRules.indentKeywords},r=a.require("ace/mode/ruby").Mode;return t.inherits(i,r),function(){this.$id="ace/mode/openc3"}.call(i.prototype),i}}},r=i;o(518);var l=o(2401),d=(0,l.A)(r,s,n,!1,null,"6a293680",null);const c=d.exports},2569:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>u});var s=function(){var t=this,e=t._self._c;return e("div",[e("v-row",{staticStyle:{"padding-left":"10px"},attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"3"}},[e("v-btn",{attrs:{block:"",color:"primary","data-test":"toolAdd",disabled:!t.name||!t.url||!t.icon},on:{click:function(e){return t.add()}}},[t._v("\n Add\n "),e("v-icon",{attrs:{right:"",dark:""}},[t._v(t._s(t.icon))])],1)],1),t._v(" "),e("v-col",{attrs:{cols:"3"}},[e("v-text-field",{staticClass:"px-2",attrs:{label:"Tool Icon"},model:{value:t.icon,callback:function(e){t.icon=e},expression:"icon"}})],1),t._v(" "),e("v-col",{attrs:{cols:"3"}},[e("v-text-field",{staticClass:"px-2",attrs:{label:"Tool Name"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),t._v(" "),e("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[e("v-text-field",{attrs:{label:"Tool Url"},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}})],1)],1),t._v(" "),e("span",{staticClass:"text-body1 pa-3"},[t._v("Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin'\n can't be reordered. A browser refresh is required to see the new tool\n order.")]),t._v(" "),e("v-list",{staticClass:"list",attrs:{"data-test":"toolList",id:"toollist"}},t._l(t.tools,(function(o,s){return e("div",{key:o},[e("v-list-item",{class:{filter:"Base"===o||"Admin"===o}},[e("v-list-item-icon",[e("v-icon",[t._v(" mdi-drag-horizontal ")])],1),t._v(" "),e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(o))])],1),t._v(" "),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:n}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.editTool(o)}}},"v-icon",n,!1),s),[t._v("\n mdi-pencil\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Edit Tool")])])],1),t._v(" "),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:n}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.deleteTool(o)}}},"v-icon",n,!1),s),[t._v("\n mdi-delete\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Delete Tool")])])],1)],1),t._v(" "),s<t.tools.length-1?e("v-divider",{key:s}):t._e()],1)})),0),t._v(" "),t.showDialog?e("output-dialog",{attrs:{content:t.jsonContent,type:"Tool",name:t.dialogTitle},on:{submit:t.dialogCallback},model:{value:t.showDialog,callback:function(e){t.showDialog=e},expression:"showDialog"}}):t._e()],1)},n=[],a=o(2795),i=o(1215),r=o(3571);const l={components:{OutputDialog:i.A},data(){return{name:null,icon:"$astro-add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();var t=document.getElementById("toollist");r.Ay.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){a.A.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then((e=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()}))},update(){a.A.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then((t=>{this.tools=t.data,this.name="",this.url=""}))},add(){a.A.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then((t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}))},editTool(t){a.A.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then((e=>{this.tool_id=t,this.jsonContent=JSON.stringify(e.data,null,"\t"),this.dialogTitle=t,this.showDialog=!0}))},dialogCallback(t){if(this.showDialog=!1,null!==t){let e=JSON.parse(t),o="put",s=`/openc3-api/tools/${this.tool_id}`;e["name"]!==this.tool_id&&(o="post",s="/openc3-api/tools"),a.A[o](s,{data:{json:t},params:{scope:"DEFAULT"}}).then((t=>{this.$notify.normal({title:`Modified tool ${e["name"]}`}),this.update()}))}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then((function(e){return a.A.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})})).then((e=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()}))}}},d=l;o(650);var c=o(2401),p=(0,c.A)(d,s,n,!1,null,"706d544d",null);const u=p.exports},990:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>l});var s=o(6758),n=o.n(s),a=o(935),i=o.n(a),r=i()(n());r.push([t.id,".editor[data-v-6a293680]{height:75vh;width:80vw;position:relative;font-size:16px}.v-textarea[data-v-6a293680] textarea{padding:5px}",""]);const l=r},8485:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>l});var s=o(6758),n=o.n(s),a=o(935),i=o.n(a),r=i()(n());r.push([t.id,".list[data-v-706d544d]{background-color:var(--color-background-surface-default)!important}",""]);const l=r},518:(t,e,o)=>{var s=o(990);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.id,s,""]]),s.locals&&(t.exports=s.locals);var n=o(4825).A;n("e5235e94",s,!0,{sourceMap:!1,shadowMode:!1})},650:(t,e,o)=>{var s=o(8485);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.id,s,""]]),s.locals&&(t.exports=s.locals);var n=o(4825).A;n("fe4603ba",s,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=569.js.map
|
data/tools/admin/js/569.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"js/569.js","mappings":"0KAwBA,MAAMA,EAAUC,eACdC,EACAC,GACA,KACEC,EAAI,OACJC,EAAS,CAAC,EAAC,QACXC,EAAO,OACPC,GAA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D,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/OutputDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/OutputDialog.vue?215b","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/OutputDialog.vue?4892","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue?6b01","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue?dc3d","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/OutputDialog.vue?01af","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue?a3c7","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/OutputDialog.vue?aa0b","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue?c0b8"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n {\n data,\n params = {},\n headers,\n noAuth = false,\n noScope = false,\n onUploadProgress = false,\n } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n // Everything from the front-end is manual by default\n // The various api methods decide whether to pass the manual\n // flag to the authorize routine\n headers['manual'] = true\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n onUploadProgress,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n {\n params,\n headers = acceptOnlyDefaultHeaders,\n noScope,\n noAuth,\n onUploadProgress,\n } = {}\n ) {\n return request('get', path, {\n params,\n headers,\n noScope,\n noAuth,\n onUploadProgress,\n })\n },\n\n put: function (\n path,\n {\n data,\n params,\n headers = fullDefaultHeaders,\n noScope,\n noAuth,\n onUploadProgress,\n } = {}\n ) {\n return request('put', path, {\n data,\n params,\n headers,\n noScope,\n noAuth,\n onUploadProgress,\n })\n },\n\n post: function (\n path,\n {\n data,\n params,\n headers = fullDefaultHeaders,\n noScope,\n noAuth,\n onUploadProgress,\n } = {}\n ) {\n return request('post', path, {\n data,\n params,\n headers,\n noScope,\n noAuth,\n onUploadProgress,\n })\n },\n\n delete: function (\n path,\n {\n params,\n headers = acceptOnlyDefaultHeaders,\n noScope,\n noAuth,\n onUploadProgress,\n } = {}\n ) {\n return request('delete', path, {\n params,\n headers,\n noScope,\n noAuth,\n onUploadProgress,\n })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n },\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // headers: {\n // 'Ignore-Errors': '404',\n // },\n // })\n if (\n error.response.config.headers['Ignore-Errors'] &&\n error.response.config.headers['Ignore-Errors'].includes(\n error.response.status.toString(),\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n },\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":\"85vw\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_vm._v(\" \"),_c('span',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_vm._v(\" \"),_c('v-spacer'),_vm._v(\" \"),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"downloadIcon\"},on:{\"click\":_vm.download}},[_vm._v(\"\\n mdi-download\\n \")])],1)]}}])},[_vm._v(\" \"),_c('span',[_vm._v(\" Download \")])])],1)],1),_vm._v(\" \"),_c('v-card-text',[_c('pre',{ref:\"editor\",staticClass:\"editor\"})]),_vm._v(\" \"),_c('v-card-actions',[_c('v-spacer'),_vm._v(\" \"),_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":_vm.close}},[_vm._v(\" Ok \")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OutputDialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OutputDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./OutputDialog.vue?vue&type=template&id=6a293680&scoped=true\"\nimport script from \"./OutputDialog.vue?vue&type=script&lang=js\"\nexport * from \"./OutputDialog.vue?vue&type=script&lang=js\"\nimport style0 from \"./OutputDialog.vue?vue&type=style&index=0&id=6a293680&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6a293680\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-row',{staticStyle:{\"padding-left\":\"10px\"},attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"primary\",\"data-test\":\"toolAdd\",\"disabled\":!_vm.name || !_vm.url || !_vm.icon},on:{\"click\":function($event){return _vm.add()}}},[_vm._v(\"\\n Add\\n \"),_c('v-icon',{attrs:{\"right\":\"\",\"dark\":\"\"}},[_vm._v(_vm._s(_vm.icon))])],1)],1),_vm._v(\" \"),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-text-field',{staticClass:\"px-2\",attrs:{\"label\":\"Tool Icon\"},model:{value:(_vm.icon),callback:function ($$v) {_vm.icon=$$v},expression:\"icon\"}})],1),_vm._v(\" \"),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-text-field',{staticClass:\"px-2\",attrs:{\"label\":\"Tool Name\"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}})],1),_vm._v(\" \"),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-text-field',{attrs:{\"label\":\"Tool Url\"},model:{value:(_vm.url),callback:function ($$v) {_vm.url=$$v},expression:\"url\"}})],1)],1),_vm._v(\" \"),_c('span',{staticClass:\"text-body1 pa-3\"},[_vm._v(\"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin'\\n can't be reordered. A browser refresh is required to see the new tool\\n order.\")]),_vm._v(\" \"),_c('v-list',{staticClass:\"list\",attrs:{\"data-test\":\"toolList\",\"id\":\"toollist\"}},_vm._l((_vm.tools),function(tool,index){return _c('div',{key:tool},[_c('v-list-item',{class:{ filter: tool === 'Base' || tool === 'Admin' }},[_c('v-list-item-icon',[_c('v-icon',[_vm._v(\" mdi-drag-horizontal \")])],1),_vm._v(\" \"),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(tool))])],1),_vm._v(\" \"),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.editTool(tool)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-pencil\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Edit Tool\")])])],1),_vm._v(\" \"),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deleteTool(tool)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-delete\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Delete Tool\")])])],1)],1),_vm._v(\" \"),(index < _vm.tools.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),_vm._v(\" \"),(_vm.showDialog)?_c('output-dialog',{attrs:{\"content\":_vm.jsonContent,\"type\":\"Tool\",\"name\":_vm.dialogTitle},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ToolsTab.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ToolsTab.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ToolsTab.vue?vue&type=template&id=706d544d&scoped=true\"\nimport script from \"./ToolsTab.vue?vue&type=script&lang=js\"\nexport * from \"./ToolsTab.vue?vue&type=script&lang=js\"\nimport style0 from \"./ToolsTab.vue?vue&type=style&index=0&id=706d544d&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"706d544d\",\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.editor[data-v-6a293680]{height:75vh;width:80vw;position:relative;font-size:16px}.v-textarea[data-v-6a293680] textarea{padding:5px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.list[data-v-706d544d]{background-color:var(--color-background-surface-default)!important}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OutputDialog.vue?vue&type=style&index=0&id=6a293680&prod&scoped=true&lang=css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"e5235e94\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ToolsTab.vue?vue&type=style&index=0&id=706d544d&prod&scoped=true&lang=css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"fe4603ba\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","async","method","url","data","params","headers","noAuth","noScope","onUploadProgress","refreshed","OpenC3Auth","updateToken","defaultMinValidity","setTokens","error","login","localStorage","openc3Token","window","openc3Scope","axios","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","get","path","put","post","delete","vueInstance","Vue","axiosInstance","create","baseURL","location","origin","timeout","interceptors","response","use","status","then","config","includes","toString","Promise","reject","body","statusText","message","exception","class","$notify","serious","title","render","_vm","this","_c","_self","attrs","model","value","show","callback","$$v","expression","_v","domProps","_s","staticClass","scopedSlots","_u","key","fn","on","_g","_b","download","ref","close","staticRenderFns","props","content","type","String","required","name","Boolean","filename","editor","mounted","openPluginMode","buildPluginMode","ace","$refs","setTheme","session","setMode","setTabSize","setUseWrapMode","$blockScrolling","Infinity","setHighlightActiveLine","setValue","clearSelection","focus","setReadOnly","beforeDestroy","destroy","computed","set","$emit","methods","blob","Blob","getValue","toLowerCase","link","document","createElement","href","URL","createObjectURL","setAttribute","click","oop","JsonHighlightRules","MatchingBraceOutdent","CstyleBehaviour","FoldMode","Mode","HighlightRules","$outdent","$behaviour","foldingRules","indentKeywords","RubyMode","inherits","$id","call","prototype","component","staticStyle","icon","$event","add","_l","tools","tool","index","filter","editTool","deleteTool","length","_e","showDialog","jsonContent","dialogTitle","dialogCallback","components","OutputDialog","tool_id","update","el","getElementById","Sortable","onUpdate","sortChanged","evt","Api","oldIndex","position","newIndex","scope","normal","id","json","JSON","stringify","parsed","parse","$dialog","confirm","okText","cancelText","dialog","___CSS_LOADER_EXPORT___","push","module","__esModule","default","locals","exports"],"sourceRoot":""}
|