openc3-cosmos-tool-bucketexplorer 5.12.0 → 5.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +1 -1
- data/tools/bucketexplorer/js/518.js +2 -0
- data/tools/bucketexplorer/js/518.js.map +1 -0
- data/tools/bucketexplorer/js/934.js +2 -0
- data/tools/bucketexplorer/js/934.js.map +1 -0
- data/tools/bucketexplorer/js/app.js +1 -1
- data/tools/bucketexplorer/js/app.js.map +1 -1
- metadata +7 -7
- data/tools/bucketexplorer/js/25.js +0 -2
- data/tools/bucketexplorer/js/25.js.map +0 -1
- data/tools/bucketexplorer/js/467.js +0 -2
- data/tools/bucketexplorer/js/467.js.map +0 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_bucketexplorer"]=self["webpackChunk_openc3_cosmos_tool_bucketexplorer"]||[]).push([[934],{934:(n,e,t)=>{"use strict";function l(){var n="/openc3/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/tools/BucketExplorer/BucketExplorer.vue",e="e87d8dcfb66310ffb37c011bb1188c9928db58c0",t=new Function("return this")(),o="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/tools/BucketExplorer/BucketExplorer.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:8,column:1789}},4:{start:{line:1,column:355},end:{line:1,column:645}},5:{start:{line:1,column:459},end:{line:1,column:484}},6:{start:{line:1,column:484},end:{line:1,column:515}},7:{start:{line:1,column:857},end:{line:1,column:1147}},8:{start:{line:1,column:961},end:{line:1,column:986}},9:{start:{line:1,column:986},end:{line:1,column:1017}},10:{start:{line:1,column:1536},end:{line:1,column:1550}},11:{start:{line:8,column:134},end:{line:8,column:1044}},12:{start:{line:8,column:992},end:{line:8,column:1004}},13:{start:{line:8,column:1097},end:{line:8,column:1204}},14:{start:{line:8,column:1246},end:{line:8,column:1338}},15:{start:{line:8,column:1382},end:{line:8,column:1775}},16:{start:{line:8,column:1514},end:{line:8,column:1548}},17:{start:{line:8,column:1706},end:{line:8,column:1738}},18:{start:{line:10,column:22},end:{line:10,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:332},end:{line:1,column:333}},loc:{start:{line:1,column:354},end:{line:1,column:646}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:442},end:{line:1,column:443}},loc:{start:{line:1,column:458},end:{line:1,column:516}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:834},end:{line:1,column:835}},loc:{start:{line:1,column:856},end:{line:1,column:1148}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:944},end:{line:1,column:945}},loc:{start:{line:1,column:960},end:{line:1,column:1018}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1520},end:{line:1,column:1521}},loc:{start:{line:1,column:1535},end:{line:1,column:1551}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:8,column:123},end:{line:8,column:124}},loc:{start:{line:8,column:133},end:{line:8,column:1045}},line:8},7:{name:"(anonymous_7)",decl:{start:{line:8,column:976},end:{line:8,column:977}},loc:{start:{line:8,column:991},end:{line:8,column:1005}},line:8},8:{name:"(anonymous_8)",decl:{start:{line:8,column:1078},end:{line:8,column:1079}},loc:{start:{line:8,column:1096},end:{line:8,column:1205}},line:8},9:{name:"(anonymous_9)",decl:{start:{line:8,column:1227},end:{line:8,column:1228}},loc:{start:{line:8,column:1245},end:{line:8,column:1339}},line:8},10:{name:"(anonymous_10)",decl:{start:{line:8,column:1363},end:{line:8,column:1364}},loc:{start:{line:8,column:1381},end:{line:8,column:1776}},line:8},11:{name:"(anonymous_11)",decl:{start:{line:8,column:1497},end:{line:8,column:1498}},loc:{start:{line:8,column:1513},end:{line:8,column:1549}},line:8},12:{name:"(anonymous_12)",decl:{start:{line:8,column:1689},end:{line:8,column:1690}},loc:{start:{line:8,column:1705},end:{line:8,column:1739}},line:8}},branchMap:{0:{loc:{start:{line:1,column:664},end:{line:1,column:1162}},type:"cond-expr",locations:[{start:{line:1,column:691},end:{line:1,column:1153}},{start:{line:1,column:1154},end:{line:1,column:1162}}],line:1},1:{loc:{start:{line:8,column:663},end:{line:8,column:1039}},type:"cond-expr",locations:[{start:{line:8,column:687},end:{line:8,column:1030}},{start:{line:8,column:1031},end:{line:8,column:1039}}],line:8},2:{loc:{start:{line:8,column:1281},end:{line:8,column:1324}},type:"cond-expr",locations:[{start:{line:8,column:1293},end:{line:8,column:1319}},{start:{line:8,column:1322},end:{line:8,column:1324}}],line:8},3:{loc:{start:{line:8,column:1390},end:{line:8,column:1590}},type:"cond-expr",locations:[{start:{line:8,column:1417},end:{line:8,column:1581}},{start:{line:8,column:1582},end:{line:8,column:1590}}],line:8},4:{loc:{start:{line:8,column:1603},end:{line:8,column:1774}},type:"cond-expr",locations:[{start:{line:8,column:1630},end:{line:8,column:1765}},{start:{line:8,column:1766},end:{line:8,column:1774}}],line:8}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e87d8dcfb66310ffb37c011bb1188c9928db58c0"},s=t[o]||(t[o]={});s[n]&&s[n].hash===e||(s[n]=i);var a=s[n];return l=function(){return a},a}t.r(e),t.d(e,{default:()=>w}),l(),l().s[0]++;var o=function(){l().f[0]++;var n=(l().s[1]++,this),e=(l().s[2]++,n._self._c);return l().s[3]++,e("div",[e("top-bar",{attrs:{title:n.title}}),n._v(" "),e("v-card",{attrs:{width:"100%"}},[e("div",{staticStyle:{"padding-left":"5px","padding-top":"5px"}},[e("span",{staticClass:"ma-2 font-size"},[n._v("Buckets:")]),n._v(" "),n._l(n.buckets,(function(t,o){return l().f[1]++,l().s[4]++,e("v-chip",{key:o,staticClass:"ma-2",attrs:{color:"primary"},on:{click:function(e){return l().f[2]++,l().s[5]++,e.stopPropagation(),l().s[6]++,n.selectBucket(t)}}},[e("v-avatar",{attrs:{left:""}},[e("v-icon",[n._v("mdi-bucket")])],1),n._v("\n "+n._s(t)+"\n ")],1)}))],2),n._v(" "),0!==n.volumes.length?(l().b[0][0]++,e("div",{staticStyle:{"padding-left":"5px"}},[e("span",{staticClass:"ma-2 font-size"},[n._v("Volumes:")]),n._v(" "),n._l(n.volumes,(function(t,o){return l().f[3]++,l().s[7]++,e("v-chip",{key:o,staticClass:"ma-2",attrs:{color:"primary"},on:{click:function(e){return l().f[4]++,l().s[8]++,e.stopPropagation(),l().s[9]++,n.selectVolume(t)}}},[e("v-avatar",{attrs:{left:""}},[e("v-icon",[n._v("mdi-folder")])],1),n._v("\n "+n._s(t)+"\n ")],1)}))],2)):(l().b[0][1]++,n._e()),n._v(" "),e("v-card-title",{staticStyle:{"padding-top":"0px"}},[n._v("\n "+n._s(n.root)+" Files\n "),e("v-spacer"),n._v(" "),e("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:n.search,callback:function(e){l().f[5]++,l().s[10]++,n.search=e},expression:"search"}})],1),n._v(" "),e("v-data-table",{attrs:{headers:n.headers,items:n.files,search:n.search,"items-per-page":1e3,"footer-props":{showFirstLastPage:!0,itemsPerPageOptions:[1e3],firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},on:{"click:row":n.fileClick},scopedSlots:n._u([{key:"top",fn:function(){return l().f[6]++,l().s[11]++,[e("v-row",{staticClass:"ma-0",staticStyle:{"background-color":"var(--color-background-surface-header)"}},[e("v-btn",{attrs:{icon:""}},[e("v-icon",{on:{click:n.backArrow}},[n._v("mdi-chevron-left-box-outline")])],1),n._v(" "),e("span",{staticClass:".text-body-1 ma-2 font-size",attrs:{"data-test":"file-path"}},[n._v("/"+n._s(n.path))]),n._v(" "),e("v-spacer"),n._v(" "),e("span",{staticClass:"pa-1 font-size"},[n._v("Folder: "+n._s(n.folderTotal))]),n._v(" "),e("v-spacer"),n._v(" "),"bucket"===n.mode?(l().b[1][0]++,e("div",{staticStyle:{display:"flex"}},[e("span",{staticClass:"pa-1 font-size"},[n._v("Upload")]),n._v(" "),e("v-file-input",{staticClass:"file-input",attrs:{"hide-input":"","hide-details":"","prepend-icon":"mdi-upload","data-test":"upload-file"},model:{value:n.file,callback:function(e){l().f[7]++,l().s[12]++,n.file=e},expression:"file"}})],1)):(l().b[1][1]++,n._e())],1)]},proxy:!0},{key:"item.name",fn:function({item:t}){return l().f[8]++,l().s[13]++,[e("v-icon",{staticClass:"mr-2"},[n._v(n._s(t.icon))]),n._v(n._s(t.name)+"\n ")]}},{key:"item.size",fn:function({item:e}){return l().f[9]++,l().s[14]++,[n._v("\n "+n._s(e.size?(l().b[2][0]++,e.size.toLocaleString()):(l().b[2][1]++,""))+"\n ")]}},{key:"item.action",fn:function({item:t}){return l().f[10]++,l().s[15]++,["mdi-file"===t.icon?(l().b[3][0]++,e("v-icon",{staticClass:"mr-3",attrs:{"data-test":"download-file"},on:{click:function(e){return l().f[11]++,l().s[16]++,n.downloadFile(t.name)}}},[n._v("mdi-download-box")])):(l().b[3][1]++,n._e()),n._v(" "),"mdi-file"===t.icon?(l().b[4][0]++,e("v-icon",{attrs:{"data-test":"delete-file"},on:{click:function(e){return l().f[12]++,l().s[17]++,n.deleteFile(t.name)}}},[n._v("mdi-delete")])):(l().b[4][1]++,n._e())]}}])})],1)],1)},i=(l().s[18]++,[]),s=(t(5127),t(4936),t(823),t(5984),t(7380),t(527),t(1697),t(9394),t(3438),t(3616),t(5630),t(896),t(4139),t(309),t(1629),t(4163),t(5850),t(3631),t(1399),function(){var n=this,e=n._self._c;return e("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{attrs:{"align-self":"end"}},[e("span",{staticClass:"app-title mr-2"},[n._v(n._s(n.title))])])],1),n._v(" "),e("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},n._l(n.menus,(function(t,l){return e("v-menu",{key:l,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:n._u([{key:"activator",fn:function({on:l,attrs:o}){return[e("v-btn",n._g(n._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":n.formatDT(`${n.title} ${t.label}`)}},"v-btn",o,!1),l),[e("span",{domProps:{textContent:n._s(t.label)}}),n._v(" "),e("v-icon",{staticClass:"myicon",attrs:{right:""}},[n._v(" mdi-menu-down ")])],1)]}}],null,!0)},[n._v(" "),e("v-list",[e("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[n._l(t.items,(function(l,o){return[l.divider?e("v-divider",{key:o}):l.subMenu&&l.subMenu.length>0?e("div",{key:o},[e("v-menu",{key:n.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:n._u([{key:"activator",fn:function({on:t,attrs:i}){return[e("v-list-item",n._g(n._b({key:o,attrs:{disabled:l.disabled}},"v-list-item",i,!1),t),[l.icon?e("v-list-item-icon",[e("v-icon",{attrs:{disabled:l.disabled}},[n._v(n._s(l.icon))])],1):n._e(),n._v(" "),l.radio||l.checkbox?n._e():e("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[n._v(n._s(l.label)+"\n ")]),n._v(" "),e("v-icon",[n._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[n._v(" "),e("v-list",n._l(l.subMenu,(function(t,l){return e("v-list-item",{key:l,on:{click:function(e){return n.subMenuClick(t)}}},[t.icon?e("v-list-item-icon",[e("v-icon",[n._v(n._s(t.icon))])],1):n._e(),n._v(" "),e("v-list-item-title",[n._v(n._s(t.label))])],1)})),1)],1)],1):e("v-list-item",{key:o,attrs:{disabled:l.disabled,"data-test":n.formatDT(`${n.title} ${t.label} ${l.label}`)},on:{click:function(n){return l.command(l)}}},[l.radio?e("v-list-item-action",[e("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):n._e(),n._v(" "),l.checkbox?e("v-list-item-action",[e("v-checkbox",{attrs:{color:"secondary",label:l.label},model:{value:l.checked,callback:function(e){n.$set(l,"checked",e)},expression:"option.checked"}})],1):n._e(),n._v(" "),l.icon?e("v-list-item-icon",[e("v-icon",{attrs:{disabled:l.disabled}},[n._v(n._s(l.icon))])],1):n._e(),n._v(" "),l.radio||l.checkbox?n._e():e("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[n._v(n._s(l.label))])],1)]}))],2)],1)],1)})),1)],1)}),a=[];t(1531),t(4597);const c={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(n){return n.replaceAll(" ","-").toLowerCase()},subMenuClick(n){n.command(n),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},r=c;t(7886);var u=t(3483),m=(0,u.Z)(r,s,a,!1,null,"57d4fdd2",null);const d=m.exports;var A=t(162),p=t(4091);const h=new p["default"],f=A.Z.create({baseURL:location.origin,timeout:6e4,params:{}});f.interceptors.response.use((n=>n),(n=>{if(n.response){var e,t,l,o,i;if(401===n.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(n){n&&OpenC3Auth.setTokens()})),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let a=`HTTP ${n.response.status} - `;if(null!==(e=n.response)&&void 0!==e&&e.statusText&&(a+=`${n.response.statusText} `),null!==(t=n.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(a+=`${n.response.config.data} `),null!==(l=n.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.message)a+=`${n.response.data.message}`;else if(null!==(o=n.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&o.exception)a+=`${n.response.data.exception}`;else if(null!==(i=n.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&null!==(i=i.error)&&void 0!==i&&i.message)n.response.data.error.class&&(a+=`${n.response.data.error.class} `),a+=`${n.response.data.error.message}`;else{var s;a+=`${null===(s=n.response)||void 0===s?void 0:s.data}`}throw h.$notify&&h.$notify.serious({title:"Network error",body:a}),n}throw n}));const v=f,C=async function(n,e,{data:t,params:l={},headers:o,noAuth:i=!1,noScope:s=!1}={}){if(!i){try{let n=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);n&&OpenC3Auth.setTokens()}catch(a){OpenC3Auth.login()}o["Authorization"]=localStorage.openc3Token}return s||l["scope"]||(l["scope"]=window.openc3Scope),v({method:n,url:e,data:t,params:l,headers:o})},b={Accept:"application/json"},_={...b,"Content-Type":"application/json"},g={get:function(n,{params:e,headers:t=b,noScope:l,noAuth:o}={}){return C("get",n,{params:e,headers:t,noScope:l,noAuth:o})},put:function(n,{data:e,params:t,headers:l=_,noScope:o,noAuth:i}={}){return C("put",n,{data:e,params:t,headers:l,noScope:o,noAuth:i})},post:function(n,{data:e,params:t,headers:l=_,noScope:o,noAuth:i}={}){return C("post",n,{data:e,params:t,headers:l,noScope:o,noAuth:i})},delete:function(n,{params:e,headers:t=b,noScope:l,noAuth:o}={}){return C("delete",n,{params:e,headers:t,noScope:l,noAuth:o})}};function k(){var n="/openc3/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/tools/BucketExplorer/BucketExplorer.vue",e="8d2fa292a88cf4f15d890aac232d1f3235697619",t=new Function("return this")(),l="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/tools/BucketExplorer/BucketExplorer.vue",statementMap:{0:{start:{line:11,column:4},end:{line:27,column:5}},1:{start:{line:31,column:6},end:{line:33,column:25}},2:{start:{line:32,column:26},end:{line:32,column:51}},3:{start:{line:37,column:4},end:{line:39,column:6}},4:{start:{line:38,column:6},end:{line:38,column:34}},5:{start:{line:40,column:4},end:{line:42,column:6}},6:{start:{line:41,column:6},end:{line:41,column:34}},7:{start:{line:43,column:4},end:{line:56,column:5}},8:{start:{line:44,column:18},end:{line:44,column:52}},9:{start:{line:45,column:6},end:{line:54,column:7}},10:{start:{line:46,column:8},end:{line:46,column:28}},11:{start:{line:48,column:8},end:{line:48,column:34}},12:{start:{line:49,column:8},end:{line:49,column:44}},13:{start:{line:51,column:8},end:{line:51,column:28}},14:{start:{line:52,column:8},end:{line:52,column:28}},15:{start:{line:53,column:8},end:{line:53,column:44}},16:{start:{line:55,column:6},end:{line:55,column:24}},17:{start:{line:61,column:6},end:{line:61,column:36}},18:{start:{line:61,column:30},end:{line:61,column:36}},19:{start:{line:63,column:41},end:{line:67,column:7}},20:{start:{line:70,column:23},end:{line:73,column:8}},21:{start:{line:74,column:6},end:{line:74,column:22}},22:{start:{line:75,column:6},end:{line:75,column:24}},23:{start:{line:80,column:6},end:{line:85,column:8}},24:{start:{line:86,column:6},end:{line:86,column:24}},25:{start:{line:89,column:6},end:{line:89,column:38}},26:{start:{line:89,column:32},end:{line:89,column:38}},27:{start:{line:90,column:6},end:{line:90,column:26}},28:{start:{line:91,column:6},end:{line:91,column:24}},29:{start:{line:92,column:6},end:{line:92,column:20}},30:{start:{line:93,column:6},end:{line:93,column:19}},31:{start:{line:96,column:6},end:{line:96,column:38}},32:{start:{line:96,column:32},end:{line:96,column:38}},33:{start:{line:97,column:6},end:{line:97,column:26}},34:{start:{line:98,column:6},end:{line:98,column:24}},35:{start:{line:99,column:6},end:{line:99,column:20}},36:{start:{line:100,column:6},end:{line:100,column:19}},37:{start:{line:104,column:6},end:{line:104,column:34}},38:{start:{line:104,column:28},end:{line:104,column:34}},39:{start:{line:105,column:18},end:{line:105,column:38}},40:{start:{line:106,column:6},end:{line:106,column:60}},41:{start:{line:109,column:6},end:{line:111,column:7}},42:{start:{line:110,column:8},end:{line:110,column:24}},43:{start:{line:112,column:6},end:{line:112,column:19}},44:{start:{line:115,column:6},end:{line:123,column:7}},45:{start:{line:116,column:8},end:{line:121,column:9}},46:{start:{line:118,column:10},end:{line:118,column:32}},47:{start:{line:120,column:10},end:{line:120,column:39}},48:{start:{line:122,column:8},end:{line:122,column:21}},49:{start:{line:126,column:17},end:{line:126,column:40}},50:{start:{line:127,column:16},end:{line:127,column:26}},51:{start:{line:128,column:6},end:{line:131,column:7}},52:{start:{line:129,column:8},end:{line:129,column:29}},53:{start:{line:130,column:8},end:{line:130,column:28}},54:{start:{line:132,column:6},end:{line:164,column:10}},55:{start:{line:138,column:21},end:{line:138,column:25}},56:{start:{line:139,column:10},end:{line:152,column:11}},57:{start:{line:140,column:12},end:{line:140,column:36}},58:{start:{line:143,column:32},end:{line:143,column:67}},59:{start:{line:145,column:31},end:{line:145,column:65}},60:{start:{line:147,column:12},end:{line:149,column:13}},61:{start:{line:147,column:25},end:{line:147,column:26}},62:{start:{line:148,column:14},end:{line:148,column:55}},63:{start:{line:150,column:25},end:{line:150,column:47}},64:{start:{line:151,column:12},end:{line:151,column:44}},65:{start:{line:154,column:23},end:{line:154,column:50}},66:{start:{line:155,column:10},end:{line:155,column:26}},67:{start:{line:156,column:10},end:{line:156,column:49}},68:{start:{line:157,column:10},end:{line:157,column:22}},69:{start:{line:161,column:10},end:{line:163,column:12}},70:{start:{line:167,column:17},end:{line:167,column:40}},71:{start:{line:168,column:6},end:{line:170,column:7}},72:{start:{line:169,column:8},end:{line:169,column:28}},73:{start:{line:171,column:6},end:{line:187,column:10}},74:{start:{line:177,column:10},end:{line:183,column:11}},75:{start:{line:186,column:10},end:{line:186,column:28}},76:{start:{line:190,column:17},end:{line:190,column:40}},77:{start:{line:191,column:6},end:{line:193,column:7}},78:{start:{line:192,column:8},end:{line:192,column:28}},79:{start:{line:194,column:6},end:{line:225,column:10}},80:{start:{line:200,column:10},end:{line:202,column:12}},81:{start:{line:201,column:12},end:{line:201,column:55}},82:{start:{line:203,column:10},end:{line:212,column:11}},83:{start:{line:205,column:14},end:{line:210,column:15}},84:{start:{line:215,column:10},end:{line:215,column:25}},85:{start:{line:216,column:10},end:{line:224,column:11}},86:{start:{line:217,column:12},end:{line:219,column:14}},87:{start:{line:221,column:12},end:{line:223,column:14}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:28,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:30,column:4},end:{line:30,column:5}},loc:{start:{line:30,column:18},end:{line:34,column:5}},line:30},2:{name:"(anonymous_2)",decl:{start:{line:32,column:16},end:{line:32,column:17}},loc:{start:{line:32,column:26},end:{line:32,column:51}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:36,column:2},end:{line:36,column:3}},loc:{start:{line:36,column:12},end:{line:57,column:3}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:37,column:48},end:{line:37,column:49}},loc:{start:{line:37,column:62},end:{line:39,column:5}},line:37},5:{name:"(anonymous_5)",decl:{start:{line:40,column:48},end:{line:40,column:49}},loc:{start:{line:40,column:62},end:{line:42,column:5}},line:40},6:{name:"(anonymous_6)",decl:{start:{line:60,column:10},end:{line:60,column:11}},loc:{start:{line:60,column:28},end:{line:76,column:5}},line:60},7:{name:"(anonymous_7)",decl:{start:{line:79,column:4},end:{line:79,column:5}},loc:{start:{line:79,column:13},end:{line:87,column:5}},line:79},8:{name:"(anonymous_8)",decl:{start:{line:88,column:4},end:{line:88,column:5}},loc:{start:{line:88,column:25},end:{line:94,column:5}},line:88},9:{name:"(anonymous_9)",decl:{start:{line:95,column:4},end:{line:95,column:5}},loc:{start:{line:95,column:25},end:{line:101,column:5}},line:95},10:{name:"(anonymous_10)",decl:{start:{line:102,column:4},end:{line:102,column:5}},loc:{start:{line:102,column:16},end:{line:113,column:5}},line:102},11:{name:"(anonymous_11)",decl:{start:{line:114,column:4},end:{line:114,column:5}},loc:{start:{line:114,column:21},end:{line:124,column:5}},line:114},12:{name:"(anonymous_12)",decl:{start:{line:125,column:4},end:{line:125,column:5}},loc:{start:{line:125,column:27},end:{line:165,column:5}},line:125},13:{name:"(anonymous_13)",decl:{start:{line:137,column:14},end:{line:137,column:15}},loc:{start:{line:137,column:28},end:{line:158,column:9}},line:137},14:{name:"(anonymous_14)",decl:{start:{line:160,column:15},end:{line:160,column:16}},loc:{start:{line:160,column:29},end:{line:164,column:9}},line:160},15:{name:"(anonymous_15)",decl:{start:{line:166,column:4},end:{line:166,column:5}},loc:{start:{line:166,column:25},end:{line:188,column:5}},line:166},16:{name:"(anonymous_16)",decl:{start:{line:176,column:14},end:{line:176,column:15}},loc:{start:{line:176,column:26},end:{line:184,column:9}},line:176},17:{name:"(anonymous_17)",decl:{start:{line:185,column:14},end:{line:185,column:15}},loc:{start:{line:185,column:28},end:{line:187,column:9}},line:185},18:{name:"(anonymous_18)",decl:{start:{line:189,column:4},end:{line:189,column:5}},loc:{start:{line:189,column:18},end:{line:226,column:5}},line:189},19:{name:"(anonymous_19)",decl:{start:{line:199,column:14},end:{line:199,column:15}},loc:{start:{line:199,column:28},end:{line:213,column:9}},line:199},20:{name:"(anonymous_20)",decl:{start:{line:200,column:44},end:{line:200,column:45}},loc:{start:{line:200,column:56},end:{line:202,column:11}},line:200},21:{name:"(anonymous_21)",decl:{start:{line:204,column:33},end:{line:204,column:34}},loc:{start:{line:204,column:43},end:{line:211,column:13}},line:204},22:{name:"(anonymous_22)",decl:{start:{line:214,column:15},end:{line:214,column:16}},loc:{start:{line:214,column:29},end:{line:225,column:9}},line:214}},branchMap:{0:{loc:{start:{line:32,column:31},end:{line:32,column:50}},type:"cond-expr",locations:[{start:{line:32,column:40},end:{line:32,column:46}},{start:{line:32,column:49},end:{line:32,column:50}}],line:32},1:{loc:{start:{line:43,column:4},end:{line:56,column:5}},type:"if",locations:[{start:{line:43,column:4},end:{line:56,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:43},2:{loc:{start:{line:45,column:6},end:{line:54,column:7}},type:"if",locations:[{start:{line:45,column:6},end:{line:54,column:7}},{start:{line:50,column:13},end:{line:54,column:7}}],line:45},3:{loc:{start:{line:61,column:6},end:{line:61,column:36}},type:"if",locations:[{start:{line:61,column:6},end:{line:61,column:36}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:61},4:{loc:{start:{line:89,column:6},end:{line:89,column:38}},type:"if",locations:[{start:{line:89,column:6},end:{line:89,column:38}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:89},5:{loc:{start:{line:96,column:6},end:{line:96,column:38}},type:"if",locations:[{start:{line:96,column:6},end:{line:96,column:38}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:96},6:{loc:{start:{line:104,column:6},end:{line:104,column:34}},type:"if",locations:[{start:{line:104,column:6},end:{line:104,column:34}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:104},7:{loc:{start:{line:109,column:6},end:{line:111,column:7}},type:"if",locations:[{start:{line:109,column:6},end:{line:111,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:109},8:{loc:{start:{line:115,column:6},end:{line:123,column:7}},type:"if",locations:[{start:{line:115,column:6},end:{line:123,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:115},9:{loc:{start:{line:116,column:8},end:{line:121,column:9}},type:"if",locations:[{start:{line:116,column:8},end:{line:121,column:9}},{start:{line:119,column:15},end:{line:121,column:9}}],line:116},10:{loc:{start:{line:128,column:6},end:{line:131,column:7}},type:"if",locations:[{start:{line:128,column:6},end:{line:131,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:128},11:{loc:{start:{line:139,column:10},end:{line:152,column:11}},type:"if",locations:[{start:{line:139,column:10},end:{line:152,column:11}},{start:{line:141,column:17},end:{line:152,column:11}}],line:139},12:{loc:{start:{line:168,column:6},end:{line:170,column:7}},type:"if",locations:[{start:{line:168,column:6},end:{line:170,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:168},13:{loc:{start:{line:191,column:6},end:{line:193,column:7}},type:"if",locations:[{start:{line:191,column:6},end:{line:193,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:191},14:{loc:{start:{line:216,column:10},end:{line:224,column:11}},type:"if",locations:[{start:{line:216,column:10},end:{line:224,column:11}},{start:{line:220,column:17},end:{line:224,column:11}}],line:216}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0]},inputSourceMap:{version:3,sources:["BucketExplorer.vue"],names:[],mappings:";AA4IA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"BucketExplorer.vue",sourceRoot:"src/tools/BucketExplorer",sourcesContent:["\x3c!--\n# Copyright 2023 OpenC3, Inc.\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# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :title=\"title\" />\n <v-card width=\"100%\">\n <div style=\"padding-left: 5px; padding-top: 5px\">\n <span class=\"ma-2 font-size\">Buckets:</span>\n <v-chip\n v-for=\"(bucket, index) in buckets\"\n :key=\"index\"\n color=\"primary\"\n class=\"ma-2\"\n @click.stop=\"selectBucket(bucket)\"\n >\n <v-avatar left>\n <v-icon>mdi-bucket</v-icon>\n </v-avatar>\n {{ bucket }}\n </v-chip>\n </div>\n <div style=\"padding-left: 5px\" v-if=\"volumes.length !== 0\">\n <span class=\"ma-2 font-size\">Volumes:</span>\n <v-chip\n v-for=\"(volume, index) in volumes\"\n :key=\"index\"\n color=\"primary\"\n class=\"ma-2\"\n @click.stop=\"selectVolume(volume)\"\n >\n <v-avatar left>\n <v-icon>mdi-folder</v-icon>\n </v-avatar>\n {{ volume }}\n </v-chip>\n </div>\n <v-card-title style=\"padding-top: 0px\">\n {{ root }} Files\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"files\"\n :search=\"search\"\n :items-per-page=\"1000\"\n :footer-props=\"{\n showFirstLastPage: true,\n itemsPerPageOptions: [1000],\n firstIcon: 'mdi-page-first',\n lastIcon: 'mdi-page-last',\n prevIcon: 'mdi-chevron-left',\n nextIcon: 'mdi-chevron-right',\n }\"\n @click:row=\"fileClick\"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:top>\n <v-row\n class=\"ma-0\"\n style=\"background-color: var(--color-background-surface-header)\"\n >\n <v-btn icon>\n <v-icon @click=\"backArrow\">mdi-chevron-left-box-outline</v-icon>\n </v-btn>\n <span class=\".text-body-1 ma-2 font-size\" data-test=\"file-path\"\n >/{{ path }}</span\n >\n <v-spacer />\n <span class=\"pa-1 font-size\">Folder: {{ folderTotal }}</span>\n <v-spacer />\n <div style=\"display: flex\" v-if=\"mode === 'bucket'\">\n <span class=\"pa-1 font-size\">Upload</span>\n <v-file-input\n v-model=\"file\"\n hide-input\n hide-details\n class=\"file-input\"\n prepend-icon=\"mdi-upload\"\n data-test=\"upload-file\"\n />\n </div>\n </v-row>\n </template>\n <template v-slot:item.name=\"{ item }\">\n <v-icon class=\"mr-2\">{{ item.icon }}</v-icon\n >{{ item.name }}\n </template>\n <template v-slot:item.size=\"{ item }\">\n {{ item.size ? item.size.toLocaleString() : '' }}\n </template>\n <template v-slot:item.action=\"{ item }\">\n <v-icon\n class=\"mr-3\"\n v-if=\"item.icon === 'mdi-file'\"\n @click=\"downloadFile(item.name)\"\n data-test=\"download-file\"\n >mdi-download-box</v-icon\n >\n <v-icon\n v-if=\"item.icon === 'mdi-file'\"\n @click=\"deleteFile(item.name)\"\n data-test=\"delete-file\"\n >mdi-delete</v-icon\n >\n </template>\n </v-data-table>\n </v-card>\n </div>\n</template>\n\n<script>\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport Api from '@openc3/tool-common/src/services/api'\nimport axios from 'axios'\n\nexport default {\n components: {\n TopBar,\n },\n data() {\n return {\n title: 'Bucket Explorer',\n search: '',\n root: '',\n mode: 'bucket',\n buckets: [],\n volumes: [],\n path: '',\n file: null,\n files: [],\n headers: [\n { text: 'Name', value: 'name' },\n { text: 'Size', value: 'size' },\n { text: 'Modified Date', value: 'modified' },\n { text: 'Action', value: 'action' },\n ],\n }\n },\n computed: {\n folderTotal() {\n return this.files\n .reduce((a, b) => a + (b.size ? b.size : 0), 0)\n .toLocaleString()\n },\n },\n created() {\n Api.get('/openc3-api/storage/buckets').then((response) => {\n this.buckets = response.data\n })\n Api.get('/openc3-api/storage/volumes').then((response) => {\n this.volumes = response.data\n })\n if (this.$route.params.path) {\n let parts = this.$route.params.path.split('/')\n if (parts[0] === '') {\n this.mode = 'volume'\n // Prepend the slash to note this is a volume not a bucket\n this.root = `/${parts[1]}`\n this.path = parts.slice(2).join('/')\n } else {\n this.mode = 'bucket'\n this.root = parts[0]\n this.path = parts.slice(1).join('/')\n }\n this.updateFiles()\n }\n },\n watch: {\n // This is the upload function that is activated when the file gets set\n file: async function () {\n if (this.file === null) return\n // Reassign data to presignedRequest for readability\n const { data: presignedRequest } = await Api.get(\n `/openc3-api/storage/upload/${encodeURIComponent(\n `${this.path}${this.file.name}`,\n )}?bucket=OPENC3_${this.root.toUpperCase()}_BUCKET`,\n )\n // This pushes the file into storage by using the fields in the presignedRequest\n // See storage_controller.rb get_presigned_request()\n const response = await axios({\n ...presignedRequest,\n data: this.file,\n })\n this.file = null\n this.updateFiles()\n },\n },\n methods: {\n update() {\n this.$router.push({\n name: 'Bucket Explorer',\n params: {\n path: `${this.root}/${this.path}`,\n },\n })\n this.updateFiles()\n },\n selectBucket(bucket) {\n if (this.root === bucket) return\n this.mode = 'bucket'\n this.root = bucket\n this.path = ''\n this.update()\n },\n selectVolume(volume) {\n if (this.root === volume) return\n this.mode = 'volume'\n this.root = volume\n this.path = ''\n this.update()\n },\n backArrow() {\n // Nothing to do if we're at the root so return\n if (this.path === '') return\n let parts = this.path.split('/')\n this.path = parts.slice(0, parts.length - 2).join('/')\n // Only append the last slash if we're not at the root\n // The root is 2 because it's the path before clicking back\n if (parts.length > 2) {\n this.path += '/'\n }\n this.update()\n },\n fileClick(event) {\n if (event.icon === 'mdi-folder') {\n if (this.root === '') {\n // initial root click\n this.root = event.name\n } else {\n this.path += `${event.name}/`\n }\n this.update()\n }\n },\n downloadFile(filename) {\n let root = this.root.toUpperCase()\n let api = 'download'\n if (this.mode === 'volume') {\n api = 'download_file'\n root = root.slice(1)\n }\n Api.get(\n `/openc3-api/storage/${api}/${encodeURIComponent(\n this.path,\n )}${filename}?${this.mode}=OPENC3_${root}_${this.mode.toUpperCase()}`,\n )\n .then((response) => {\n let href = null\n if (this.mode === 'bucket') {\n href = response.data.url\n } else {\n // Decode Base64 string\n const decodedData = window.atob(response.data.contents)\n // Create UNIT8ARRAY of size same as row data length\n const uInt8Array = new Uint8Array(decodedData.length)\n // Insert all character code into uInt8Array\n for (let i = 0; i < decodedData.length; ++i) {\n uInt8Array[i] = decodedData.charCodeAt(i)\n }\n const blob = new Blob([uInt8Array])\n href = URL.createObjectURL(blob)\n }\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = href\n link.setAttribute('download', filename)\n link.click()\n })\n\n .catch((response) => {\n this.$notify.caution({\n title: `Unable to download file ${this.path}${filename} from bucket ${this.root}`,\n })\n })\n },\n deleteFile(filename) {\n let root = this.root.toUpperCase()\n if (this.mode === 'volume') {\n root = root.slice(1)\n }\n this.$dialog\n .confirm(`Are you sure you want to delete: ${filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete(\n `/openc3-api/storage/delete/${encodeURIComponent(\n this.path,\n )}${filename}?${\n this.mode\n }=OPENC3_${root}_${this.mode.toUpperCase()}`,\n )\n })\n .then((response) => {\n this.updateFiles()\n })\n },\n updateFiles() {\n let root = this.root.toUpperCase()\n if (this.mode === 'volume') {\n root = root.slice(1)\n }\n Api.get(\n `/openc3-api/storage/files/OPENC3_${root}_${this.mode.toUpperCase()}/${\n this.path\n }`,\n )\n .then((response) => {\n this.files = response.data[0].map((bucket) => {\n return { name: bucket, icon: 'mdi-folder' }\n })\n this.files = this.files.concat(\n response.data[1].map((item) => {\n return {\n name: item.name,\n icon: 'mdi-file',\n size: item.size,\n modified: item.modified,\n }\n }),\n )\n })\n .catch((response) => {\n this.files = []\n if (response.data.message) {\n this.$notify.caution({\n title: response.data.message,\n })\n } else {\n this.$notify.caution({\n title: response.message,\n })\n }\n })\n },\n },\n}\n<\/script>\n\n<style scoped>\n.font-size {\n font-size: 1rem;\n}\n.file-input {\n padding-top: 0px;\n margin-top: 0px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8d2fa292a88cf4f15d890aac232d1f3235697619"},i=t[l]||(t[l]={});i[n]&&i[n].hash===e||(i[n]=o);var s=i[n];return k=function(){return s},s}k();const y={components:{TopBar:d},data(){return k().f[0]++,k().s[0]++,{title:"Bucket Explorer",search:"",root:"",mode:"bucket",buckets:[],volumes:[],path:"",file:null,files:[],headers:[{text:"Name",value:"name"},{text:"Size",value:"size"},{text:"Modified Date",value:"modified"},{text:"Action",value:"action"}]}},computed:{folderTotal(){return k().f[1]++,k().s[1]++,this.files.reduce(((n,e)=>(k().f[2]++,k().s[2]++,n+(e.size?(k().b[0][0]++,e.size):(k().b[0][1]++,0)))),0).toLocaleString()}},created(){if(k().f[3]++,k().s[3]++,g.get("/openc3-api/storage/buckets").then((n=>{k().f[4]++,k().s[4]++,this.buckets=n.data})),k().s[5]++,g.get("/openc3-api/storage/volumes").then((n=>{k().f[5]++,k().s[6]++,this.volumes=n.data})),k().s[7]++,this.$route.params.path){k().b[1][0]++;let n=(k().s[8]++,this.$route.params.path.split("/"));k().s[9]++,""===n[0]?(k().b[2][0]++,k().s[10]++,this.mode="volume",k().s[11]++,this.root=`/${n[1]}`,k().s[12]++,this.path=n.slice(2).join("/")):(k().b[2][1]++,k().s[13]++,this.mode="bucket",k().s[14]++,this.root=n[0],k().s[15]++,this.path=n.slice(1).join("/")),k().s[16]++,this.updateFiles()}else k().b[1][1]++},watch:{file:async function(){if(k().f[6]++,k().s[17]++,null===this.file)return k().b[3][0]++,void k().s[18]++;k().b[3][1]++;const{data:n}=(k().s[19]++,await g.get(`/openc3-api/storage/upload/${encodeURIComponent(`${this.path}${this.file.name}`)}?bucket=OPENC3_${this.root.toUpperCase()}_BUCKET`));k().s[20]++,await(0,A.Z)({...n,data:this.file});k().s[21]++,this.file=null,k().s[22]++,this.updateFiles()}},methods:{update(){k().f[7]++,k().s[23]++,this.$router.push({name:"Bucket Explorer",params:{path:`${this.root}/${this.path}`}}),k().s[24]++,this.updateFiles()},selectBucket(n){if(k().f[8]++,k().s[25]++,this.root===n)return k().b[4][0]++,void k().s[26]++;k().b[4][1]++,k().s[27]++,this.mode="bucket",k().s[28]++,this.root=n,k().s[29]++,this.path="",k().s[30]++,this.update()},selectVolume(n){if(k().f[9]++,k().s[31]++,this.root===n)return k().b[5][0]++,void k().s[32]++;k().b[5][1]++,k().s[33]++,this.mode="volume",k().s[34]++,this.root=n,k().s[35]++,this.path="",k().s[36]++,this.update()},backArrow(){if(k().f[10]++,k().s[37]++,""===this.path)return k().b[6][0]++,void k().s[38]++;k().b[6][1]++;let n=(k().s[39]++,this.path.split("/"));k().s[40]++,this.path=n.slice(0,n.length-2).join("/"),k().s[41]++,n.length>2?(k().b[7][0]++,k().s[42]++,this.path+="/"):k().b[7][1]++,k().s[43]++,this.update()},fileClick(n){k().f[11]++,k().s[44]++,"mdi-folder"===n.icon?(k().b[8][0]++,k().s[45]++,""===this.root?(k().b[9][0]++,k().s[46]++,this.root=n.name):(k().b[9][1]++,k().s[47]++,this.path+=`${n.name}/`),k().s[48]++,this.update()):k().b[8][1]++},downloadFile(n){k().f[12]++;let e=(k().s[49]++,this.root.toUpperCase()),t=(k().s[50]++,"download");k().s[51]++,"volume"===this.mode?(k().b[10][0]++,k().s[52]++,t="download_file",k().s[53]++,e=e.slice(1)):k().b[10][1]++,k().s[54]++,g.get(`/openc3-api/storage/${t}/${encodeURIComponent(this.path)}${n}?${this.mode}=OPENC3_${e}_${this.mode.toUpperCase()}`).then((e=>{k().f[13]++;let t=(k().s[55]++,null);if(k().s[56]++,"bucket"===this.mode)k().b[11][0]++,k().s[57]++,t=e.data.url;else{k().b[11][1]++;const n=(k().s[58]++,window.atob(e.data.contents)),l=(k().s[59]++,new Uint8Array(n.length));k().s[60]++;for(let e=(k().s[61]++,0);e<n.length;++e)k().s[62]++,l[e]=n.charCodeAt(e);const o=(k().s[63]++,new Blob([l]));k().s[64]++,t=URL.createObjectURL(o)}const l=(k().s[65]++,document.createElement("a"));k().s[66]++,l.href=t,k().s[67]++,l.setAttribute("download",n),k().s[68]++,l.click()})).catch((e=>{k().f[14]++,k().s[69]++,this.$notify.caution({title:`Unable to download file ${this.path}${n} from bucket ${this.root}`})}))},deleteFile(n){k().f[15]++;let e=(k().s[70]++,this.root.toUpperCase());k().s[71]++,"volume"===this.mode?(k().b[12][0]++,k().s[72]++,e=e.slice(1)):k().b[12][1]++,k().s[73]++,this.$dialog.confirm(`Are you sure you want to delete: ${n}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>(k().f[16]++,k().s[74]++,g.delete(`/openc3-api/storage/delete/${encodeURIComponent(this.path)}${n}?${this.mode}=OPENC3_${e}_${this.mode.toUpperCase()}`)))).then((n=>{k().f[17]++,k().s[75]++,this.updateFiles()}))},updateFiles(){k().f[18]++;let n=(k().s[76]++,this.root.toUpperCase());k().s[77]++,"volume"===this.mode?(k().b[13][0]++,k().s[78]++,n=n.slice(1)):k().b[13][1]++,k().s[79]++,g.get(`/openc3-api/storage/files/OPENC3_${n}_${this.mode.toUpperCase()}/${this.path}`).then((n=>{k().f[19]++,k().s[80]++,this.files=n.data[0].map((n=>(k().f[20]++,k().s[81]++,{name:n,icon:"mdi-folder"}))),k().s[82]++,this.files=this.files.concat(n.data[1].map((n=>(k().f[21]++,k().s[83]++,{name:n.name,icon:"mdi-file",size:n.size,modified:n.modified}))))})).catch((n=>{k().f[22]++,k().s[84]++,this.files=[],k().s[85]++,n.data.message?(k().b[14][0]++,k().s[86]++,this.$notify.caution({title:n.data.message})):(k().b[14][1]++,k().s[87]++,this.$notify.caution({title:n.message}))}))}}},x=y;t(5061);var $=(0,u.Z)(x,o,i,!1,null,"4bb57f8c",null);const w=$.exports},1999:(n,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>c});var l=t(9601),o=t.n(l),i=t(2609),s=t.n(i),a=s()(o());a.push([n.id,".font-size[data-v-4bb57f8c]{font-size:1rem}.file-input[data-v-4bb57f8c]{padding-top:0;margin-top:0}",""]);const c=a},1468:(n,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>c});var l=t(9601),o=t.n(l),i=t(2609),s=t.n(i),a=s()(o());a.push([n.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const c=a},5061:(n,e,t)=>{var l=t(1999);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var o=t(3514).Z;o("21d9561f",l,!0,{sourceMap:!1,shadowMode:!1})},7886:(n,e,t)=>{var l=t(1468);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var o=t(3514).Z;o("7de62207",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=934.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"js/934.js","mappings":"0vJAeY,OAAAA,EAAA,kBAAAC,CAAA,EAAAA,CAAA,C,8BAAAD,IAAAA,IAAAE,EAAA,KAfZ,IAAIC,EAAS,WAAiBH,IAAAI,EAAA,KAAC,IAAIC,GAAGL,IAAAE,EAAA,KAACI,MAAKC,GAAEP,IAAAE,EAAA,KAACG,EAAIG,MAAMD,IAAG,OAAAP,IAAAE,EAAA,KAAOK,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,MAAM,CAAC,MAAQJ,EAAIK,SAASL,EA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hJ,S,sGCJIF,EAA0B,IAA4B,KAE1DA,EAAwB7B,KAAK,CAAC8B,EAAOC,GAAI,inBAAknB,KAE3pB,S,iBCJA,IAAIC,EAAU,EAAQ,MACnBA,EAAQC,aAAYD,EAAUA,EAAQ1H,SACnB,kBAAZ0H,IAAsBA,EAAU,CAAC,CAACF,EAAOC,GAAIC,EAAS,MAC7DA,EAAQE,SAAQJ,EAAOK,QAAUH,EAAQE,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G,iBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQC,aAAYD,EAAUA,EAAQ1H,SACnB,kBAAZ0H,IAAsBA,EAAU,CAAC,CAACF,EAAOC,GAAIC,EAAS,MAC7DA,EAAQE,SAAQJ,EAAOK,QAAUH,EAAQE,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/cosmos-tool-bucketexplorer/./src/tools/BucketExplorer/BucketExplorer.vue","webpack://@openc3/cosmos-tool-bucketexplorer/../openc3-tool-common/src/components/TopBar.vue","webpack://@openc3/cosmos-tool-bucketexplorer/../openc3-tool-common/src/components/TopBar.vue?c4b5","webpack://@openc3/cosmos-tool-bucketexplorer/../openc3-tool-common/src/components/TopBar.vue?a437","webpack://@openc3/cosmos-tool-bucketexplorer/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-bucketexplorer/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-bucketexplorer/src/tools/BucketExplorer/BucketExplorer.vue","webpack://@openc3/cosmos-tool-bucketexplorer/./src/tools/BucketExplorer/BucketExplorer.vue?78f1","webpack://@openc3/cosmos-tool-bucketexplorer/./src/tools/BucketExplorer/BucketExplorer.vue?98c2","webpack://@openc3/cosmos-tool-bucketexplorer/./src/tools/BucketExplorer/BucketExplorer.vue?db9e","webpack://@openc3/cosmos-tool-bucketexplorer/../openc3-tool-common/src/components/TopBar.vue?92ac","webpack://@openc3/cosmos-tool-bucketexplorer/./src/tools/BucketExplorer/BucketExplorer.vue?4f14","webpack://@openc3/cosmos-tool-bucketexplorer/../openc3-tool-common/src/components/TopBar.vue?9d44"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('top-bar',{attrs:{\"title\":_vm.title}}),_vm._v(\" \"),_c('v-card',{attrs:{\"width\":\"100%\"}},[_c('div',{staticStyle:{\"padding-left\":\"5px\",\"padding-top\":\"5px\"}},[_c('span',{staticClass:\"ma-2 font-size\"},[_vm._v(\"Buckets:\")]),_vm._v(\" \"),_vm._l((_vm.buckets),function(bucket,index){return _c('v-chip',{key:index,staticClass:\"ma-2\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.selectBucket(bucket)}}},[_c('v-avatar',{attrs:{\"left\":\"\"}},[_c('v-icon',[_vm._v(\"mdi-bucket\")])],1),_vm._v(\"\\n \"+_vm._s(bucket)+\"\\n \")],1)})],2),_vm._v(\" \"),(_vm.volumes.length !== 0)?_c('div',{staticStyle:{\"padding-left\":\"5px\"}},[_c('span',{staticClass:\"ma-2 font-size\"},[_vm._v(\"Volumes:\")]),_vm._v(\" \"),_vm._l((_vm.volumes),function(volume,index){return _c('v-chip',{key:index,staticClass:\"ma-2\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.selectVolume(volume)}}},[_c('v-avatar',{attrs:{\"left\":\"\"}},[_c('v-icon',[_vm._v(\"mdi-folder\")])],1),_vm._v(\"\\n \"+_vm._s(volume)+\"\\n \")],1)})],2):_vm._e(),_vm._v(\" \"),_c('v-card-title',{staticStyle:{\"padding-top\":\"0px\"}},[_vm._v(\"\\n \"+_vm._s(_vm.root)+\" Files\\n \"),_c('v-spacer'),_vm._v(\" \"),_c('v-text-field',{staticClass:\"search\",attrs:{\"label\":\"Search\",\"prepend-inner-icon\":\"mdi-magnify\",\"clearable\":\"\",\"outlined\":\"\",\"dense\":\"\",\"single-line\":\"\",\"hide-details\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_vm._v(\" \"),_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":_vm.files,\"search\":_vm.search,\"items-per-page\":1000,\"footer-props\":{\n showFirstLastPage: true,\n itemsPerPageOptions: [1000],\n firstIcon: 'mdi-page-first',\n lastIcon: 'mdi-page-last',\n prevIcon: 'mdi-chevron-left',\n nextIcon: 'mdi-chevron-right',\n },\"calculate-widths\":\"\",\"multi-sort\":\"\",\"dense\":\"\"},on:{\"click:row\":_vm.fileClick},scopedSlots:_vm._u([{key:\"top\",fn:function(){return [_c('v-row',{staticClass:\"ma-0\",staticStyle:{\"background-color\":\"var(--color-background-surface-header)\"}},[_c('v-btn',{attrs:{\"icon\":\"\"}},[_c('v-icon',{on:{\"click\":_vm.backArrow}},[_vm._v(\"mdi-chevron-left-box-outline\")])],1),_vm._v(\" \"),_c('span',{staticClass:\".text-body-1 ma-2 font-size\",attrs:{\"data-test\":\"file-path\"}},[_vm._v(\"/\"+_vm._s(_vm.path))]),_vm._v(\" \"),_c('v-spacer'),_vm._v(\" \"),_c('span',{staticClass:\"pa-1 font-size\"},[_vm._v(\"Folder: \"+_vm._s(_vm.folderTotal))]),_vm._v(\" \"),_c('v-spacer'),_vm._v(\" \"),(_vm.mode === 'bucket')?_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('span',{staticClass:\"pa-1 font-size\"},[_vm._v(\"Upload\")]),_vm._v(\" \"),_c('v-file-input',{staticClass:\"file-input\",attrs:{\"hide-input\":\"\",\"hide-details\":\"\",\"prepend-icon\":\"mdi-upload\",\"data-test\":\"upload-file\"},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1):_vm._e()],1)]},proxy:true},{key:\"item.name\",fn:function({ item }){return [_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(_vm._s(item.icon))]),_vm._v(_vm._s(item.name)+\"\\n \")]}},{key:\"item.size\",fn:function({ item }){return [_vm._v(\"\\n \"+_vm._s(item.size ? item.size.toLocaleString() : '')+\"\\n \")]}},{key:\"item.action\",fn:function({ item }){return [(item.icon === 'mdi-file')?_c('v-icon',{staticClass:\"mr-3\",attrs:{\"data-test\":\"download-file\"},on:{\"click\":function($event){return _vm.downloadFile(item.name)}}},[_vm._v(\"mdi-download-box\")]):_vm._e(),_vm._v(\" \"),(item.icon === 'mdi-file')?_c('v-icon',{attrs:{\"data-test\":\"delete-file\"},on:{\"click\":function($event){return _vm.deleteFile(item.name)}}},[_vm._v(\"mdi-delete\")]):_vm._e()]}}])})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('mounting-portal',{attrs:{\"mount-to\":\"#openc3-menu\",\"append\":\"\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"align-self\":\"end\"}},[_c('span',{staticClass:\"app-title mr-2\"},[_vm._v(_vm._s(_vm.title))])])],1),_vm._v(\" \"),_c('v-row',{staticClass:\"flex-nowrap\",attrs:{\"dense\":\"\"}},_vm._l((_vm.menus),function(menu,i){return _c('v-menu',{key:i,ref:\"topmenu\",refInFor:true,attrs:{\"offset-y\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-btn',_vm._g(_vm._b({staticClass:\"mx-1 menu-button\",attrs:{\"outlined\":\"\",\"data-test\":_vm.formatDT(`${_vm.title} ${menu.label}`)}},'v-btn',attrs,false),on),[_c('span',{domProps:{\"textContent\":_vm._s(menu.label)}}),_vm._v(\" \"),_c('v-icon',{staticClass:\"myicon\",attrs:{\"right\":\"\"}},[_vm._v(\" mdi-menu-down \")])],1)]}}],null,true)},[_vm._v(\" \"),_c('v-list',[_c('v-radio-group',{staticClass:\"ma-0 pa-0\",attrs:{\"value\":menu.radioGroup,\"hide-details\":\"\",\"dense\":\"\"}},[_vm._l((menu.items),function(option,j){return [(option.divider)?_c('v-divider',{key:j}):(option.subMenu && option.subMenu.length > 0)?_c('div',{key:j},[_c('v-menu',{key:_vm.k,attrs:{\"open-on-hover\":\"\",\"offset-x\":\"\",\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-list-item',_vm._g(_vm._b({key:j,attrs:{\"disabled\":option.disabled}},'v-list-item',attrs,false),on),[(option.icon)?_c('v-list-item-icon',[_c('v-icon',{attrs:{\"disabled\":option.disabled}},[_vm._v(_vm._s(option.icon))])],1):_vm._e(),_vm._v(\" \"),(!option.radio && !option.checkbox)?_c('v-list-item-title',{style:('cursor: pointer;' +\n (option.disabled ? 'opacity: 0.2' : ''))},[_vm._v(_vm._s(option.label)+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c('v-icon',[_vm._v(\" mdi-chevron-right \")])],1)]}}],null,true)},[_vm._v(\" \"),_c('v-list',_vm._l((option.subMenu),function(submenu,k){return _c('v-list-item',{key:k,on:{\"click\":function($event){return _vm.subMenuClick(submenu)}}},[(submenu.icon)?_c('v-list-item-icon',[_c('v-icon',[_vm._v(_vm._s(submenu.icon))])],1):_vm._e(),_vm._v(\" \"),_c('v-list-item-title',[_vm._v(_vm._s(submenu.label))])],1)}),1)],1)],1):_c('v-list-item',{key:j,attrs:{\"disabled\":option.disabled,\"data-test\":_vm.formatDT(`${_vm.title} ${menu.label} ${option.label}`)},on:{\"click\":function($event){return option.command(option)}}},[(option.radio)?_c('v-list-item-action',[_c('v-radio',{attrs:{\"color\":\"secondary\",\"label\":option.label,\"value\":option.label}})],1):_vm._e(),_vm._v(\" \"),(option.checkbox)?_c('v-list-item-action',[_c('v-checkbox',{attrs:{\"color\":\"secondary\",\"label\":option.label},model:{value:(option.checked),callback:function ($$v) {_vm.$set(option, \"checked\", $$v)},expression:\"option.checked\"}})],1):_vm._e(),_vm._v(\" \"),(option.icon)?_c('v-list-item-icon',[_c('v-icon',{attrs:{\"disabled\":option.disabled}},[_vm._v(_vm._s(option.icon))])],1):_vm._e(),_vm._v(\" \"),(!option.radio && !option.checkbox)?_c('v-list-item-title',{style:('cursor: pointer;' + (option.disabled ? 'opacity: 0.2' : ''))},[_vm._v(_vm._s(option.label))]):_vm._e()],1)]})],2)],1)],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!./TopBar.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!./TopBar.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TopBar.vue?vue&type=template&id=57d4fdd2&scoped=true\"\nimport script from \"./TopBar.vue?vue&type=script&lang=js\"\nexport * from \"./TopBar.vue?vue&type=script&lang=js\"\nimport style0 from \"./TopBar.vue?vue&type=style&index=0&id=57d4fdd2&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 \"57d4fdd2\",\n null\n \n)\n\nexport default component.exports","/*\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","/*\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 { data, params = {}, headers, noAuth = false, noScope = false } = {}\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 if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\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 { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","<!--\n# Copyright 2023 OpenC3, Inc.\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# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <div>\n <top-bar :title=\"title\" />\n <v-card width=\"100%\">\n <div style=\"padding-left: 5px; padding-top: 5px\">\n <span class=\"ma-2 font-size\">Buckets:</span>\n <v-chip\n v-for=\"(bucket, index) in buckets\"\n :key=\"index\"\n color=\"primary\"\n class=\"ma-2\"\n @click.stop=\"selectBucket(bucket)\"\n >\n <v-avatar left>\n <v-icon>mdi-bucket</v-icon>\n </v-avatar>\n {{ bucket }}\n </v-chip>\n </div>\n <div style=\"padding-left: 5px\" v-if=\"volumes.length !== 0\">\n <span class=\"ma-2 font-size\">Volumes:</span>\n <v-chip\n v-for=\"(volume, index) in volumes\"\n :key=\"index\"\n color=\"primary\"\n class=\"ma-2\"\n @click.stop=\"selectVolume(volume)\"\n >\n <v-avatar left>\n <v-icon>mdi-folder</v-icon>\n </v-avatar>\n {{ volume }}\n </v-chip>\n </div>\n <v-card-title style=\"padding-top: 0px\">\n {{ root }} Files\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"files\"\n :search=\"search\"\n :items-per-page=\"1000\"\n :footer-props=\"{\n showFirstLastPage: true,\n itemsPerPageOptions: [1000],\n firstIcon: 'mdi-page-first',\n lastIcon: 'mdi-page-last',\n prevIcon: 'mdi-chevron-left',\n nextIcon: 'mdi-chevron-right',\n }\"\n @click:row=\"fileClick\"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:top>\n <v-row\n class=\"ma-0\"\n style=\"background-color: var(--color-background-surface-header)\"\n >\n <v-btn icon>\n <v-icon @click=\"backArrow\">mdi-chevron-left-box-outline</v-icon>\n </v-btn>\n <span class=\".text-body-1 ma-2 font-size\" data-test=\"file-path\"\n >/{{ path }}</span\n >\n <v-spacer />\n <span class=\"pa-1 font-size\">Folder: {{ folderTotal }}</span>\n <v-spacer />\n <div style=\"display: flex\" v-if=\"mode === 'bucket'\">\n <span class=\"pa-1 font-size\">Upload</span>\n <v-file-input\n v-model=\"file\"\n hide-input\n hide-details\n class=\"file-input\"\n prepend-icon=\"mdi-upload\"\n data-test=\"upload-file\"\n />\n </div>\n </v-row>\n </template>\n <template v-slot:item.name=\"{ item }\">\n <v-icon class=\"mr-2\">{{ item.icon }}</v-icon\n >{{ item.name }}\n </template>\n <template v-slot:item.size=\"{ item }\">\n {{ item.size ? item.size.toLocaleString() : '' }}\n </template>\n <template v-slot:item.action=\"{ item }\">\n <v-icon\n class=\"mr-3\"\n v-if=\"item.icon === 'mdi-file'\"\n @click=\"downloadFile(item.name)\"\n data-test=\"download-file\"\n >mdi-download-box</v-icon\n >\n <v-icon\n v-if=\"item.icon === 'mdi-file'\"\n @click=\"deleteFile(item.name)\"\n data-test=\"delete-file\"\n >mdi-delete</v-icon\n >\n </template>\n </v-data-table>\n </v-card>\n </div>\n</template>\n\n<script>\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport Api from '@openc3/tool-common/src/services/api'\nimport axios from 'axios'\n\nexport default {\n components: {\n TopBar,\n },\n data() {\n return {\n title: 'Bucket Explorer',\n search: '',\n root: '',\n mode: 'bucket',\n buckets: [],\n volumes: [],\n path: '',\n file: null,\n files: [],\n headers: [\n { text: 'Name', value: 'name' },\n { text: 'Size', value: 'size' },\n { text: 'Modified Date', value: 'modified' },\n { text: 'Action', value: 'action' },\n ],\n }\n },\n computed: {\n folderTotal() {\n return this.files\n .reduce((a, b) => a + (b.size ? b.size : 0), 0)\n .toLocaleString()\n },\n },\n created() {\n Api.get('/openc3-api/storage/buckets').then((response) => {\n this.buckets = response.data\n })\n Api.get('/openc3-api/storage/volumes').then((response) => {\n this.volumes = response.data\n })\n if (this.$route.params.path) {\n let parts = this.$route.params.path.split('/')\n if (parts[0] === '') {\n this.mode = 'volume'\n // Prepend the slash to note this is a volume not a bucket\n this.root = `/${parts[1]}`\n this.path = parts.slice(2).join('/')\n } else {\n this.mode = 'bucket'\n this.root = parts[0]\n this.path = parts.slice(1).join('/')\n }\n this.updateFiles()\n }\n },\n watch: {\n // This is the upload function that is activated when the file gets set\n file: async function () {\n if (this.file === null) return\n // Reassign data to presignedRequest for readability\n const { data: presignedRequest } = await Api.get(\n `/openc3-api/storage/upload/${encodeURIComponent(\n `${this.path}${this.file.name}`,\n )}?bucket=OPENC3_${this.root.toUpperCase()}_BUCKET`,\n )\n // This pushes the file into storage by using the fields in the presignedRequest\n // See storage_controller.rb get_presigned_request()\n const response = await axios({\n ...presignedRequest,\n data: this.file,\n })\n this.file = null\n this.updateFiles()\n },\n },\n methods: {\n update() {\n this.$router.push({\n name: 'Bucket Explorer',\n params: {\n path: `${this.root}/${this.path}`,\n },\n })\n this.updateFiles()\n },\n selectBucket(bucket) {\n if (this.root === bucket) return\n this.mode = 'bucket'\n this.root = bucket\n this.path = ''\n this.update()\n },\n selectVolume(volume) {\n if (this.root === volume) return\n this.mode = 'volume'\n this.root = volume\n this.path = ''\n this.update()\n },\n backArrow() {\n // Nothing to do if we're at the root so return\n if (this.path === '') return\n let parts = this.path.split('/')\n this.path = parts.slice(0, parts.length - 2).join('/')\n // Only append the last slash if we're not at the root\n // The root is 2 because it's the path before clicking back\n if (parts.length > 2) {\n this.path += '/'\n }\n this.update()\n },\n fileClick(event) {\n if (event.icon === 'mdi-folder') {\n if (this.root === '') {\n // initial root click\n this.root = event.name\n } else {\n this.path += `${event.name}/`\n }\n this.update()\n }\n },\n downloadFile(filename) {\n let root = this.root.toUpperCase()\n let api = 'download'\n if (this.mode === 'volume') {\n api = 'download_file'\n root = root.slice(1)\n }\n Api.get(\n `/openc3-api/storage/${api}/${encodeURIComponent(\n this.path,\n )}${filename}?${this.mode}=OPENC3_${root}_${this.mode.toUpperCase()}`,\n )\n .then((response) => {\n let href = null\n if (this.mode === 'bucket') {\n href = response.data.url\n } else {\n // Decode Base64 string\n const decodedData = window.atob(response.data.contents)\n // Create UNIT8ARRAY of size same as row data length\n const uInt8Array = new Uint8Array(decodedData.length)\n // Insert all character code into uInt8Array\n for (let i = 0; i < decodedData.length; ++i) {\n uInt8Array[i] = decodedData.charCodeAt(i)\n }\n const blob = new Blob([uInt8Array])\n href = URL.createObjectURL(blob)\n }\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = href\n link.setAttribute('download', filename)\n link.click()\n })\n\n .catch((response) => {\n this.$notify.caution({\n title: `Unable to download file ${this.path}${filename} from bucket ${this.root}`,\n })\n })\n },\n deleteFile(filename) {\n let root = this.root.toUpperCase()\n if (this.mode === 'volume') {\n root = root.slice(1)\n }\n this.$dialog\n .confirm(`Are you sure you want to delete: ${filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete(\n `/openc3-api/storage/delete/${encodeURIComponent(\n this.path,\n )}${filename}?${\n this.mode\n }=OPENC3_${root}_${this.mode.toUpperCase()}`,\n )\n })\n .then((response) => {\n this.updateFiles()\n })\n },\n updateFiles() {\n let root = this.root.toUpperCase()\n if (this.mode === 'volume') {\n root = root.slice(1)\n }\n Api.get(\n `/openc3-api/storage/files/OPENC3_${root}_${this.mode.toUpperCase()}/${\n this.path\n }`,\n )\n .then((response) => {\n this.files = response.data[0].map((bucket) => {\n return { name: bucket, icon: 'mdi-folder' }\n })\n this.files = this.files.concat(\n response.data[1].map((item) => {\n return {\n name: item.name,\n icon: 'mdi-file',\n size: item.size,\n modified: item.modified,\n }\n }),\n )\n })\n .catch((response) => {\n this.files = []\n if (response.data.message) {\n this.$notify.caution({\n title: response.data.message,\n })\n } else {\n this.$notify.caution({\n title: response.message,\n })\n }\n })\n },\n },\n}\n</script>\n\n<style scoped>\n.font-size {\n font-size: 1rem;\n}\n.file-input {\n padding-top: 0px;\n margin-top: 0px;\n}\n</style>\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BucketExplorer.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!./BucketExplorer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./BucketExplorer.vue?vue&type=template&id=4bb57f8c&scoped=true\"\nimport script from \"./BucketExplorer.vue?vue&type=script&lang=js\"\nexport * from \"./BucketExplorer.vue?vue&type=script&lang=js\"\nimport style0 from \"./BucketExplorer.vue?vue&type=style&index=0&id=4bb57f8c&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 \"4bb57f8c\",\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, `.font-size[data-v-4bb57f8c]{font-size:1rem}.file-input[data-v-4bb57f8c]{padding-top:0;margin-top:0}`, \"\"]);\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, `.app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}`, \"\"]);\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!./BucketExplorer.vue?vue&type=style&index=0&id=4bb57f8c&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(\"21d9561f\", 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!./TopBar.vue?vue&type=style&index=0&id=57d4fdd2&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(\"7de62207\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["cov_uucdexesw","actualCoverage","s","render","f","_vm","this","_c","_self","attrs","title","_v","staticStyle","staticClass","_l","buckets","bucket","index","key","on","$event","stopPropagation","selectBucket","_s","volumes","length","b","volume","selectVolume","_e","root","model","value","search","callback","$$v","expression","headers","files","showFirstLastPage","itemsPerPageOptions","firstIcon","lastIcon","prevIcon","nextIcon","fileClick","scopedSlots","_u","fn","backArrow","path","folderTotal","mode","file","proxy","item","icon","name","size","toLocaleString","downloadFile","deleteFile","staticRenderFns","menus","menu","i","ref","refInFor","_g","_b","formatDT","label","domProps","radioGroup","items","option","j","divider","subMenu","k","disabled","radio","checkbox","style","submenu","subMenuClick","command","checked","$set","props","type","Array","default","String","methods","string","replaceAll","toLowerCase","$refs","topmenu","isActive","mounted","document","component","vueInstance","Vue","axiosInstance","axios","create","baseURL","location","origin","timeout","params","interceptors","response","use","error","_error$response","_error$response2","_error$response3","_error$response4","_error$response5","status","OpenC3Auth","updateToken","defaultMinValidity","then","refreshed","setTokens","config","includes","toString","Promise","reject","body","statusText","data","message","exception","class","_error$response6","$notify","serious","request","async","method","url","noAuth","noScope","login","localStorage","openc3Token","window","openc3Scope","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","get","put","post","delete","components","TopBar","text","computed","reduce","a","created","Api","$route","parts","split","slice","join","updateFiles","watch","presignedRequest","encodeURIComponent","toUpperCase","update","$router","push","event","filename","api","href","decodedData","atob","contents","uInt8Array","Uint8Array","charCodeAt","blob","Blob","URL","createObjectURL","link","createElement","setAttribute","click","catch","caution","$dialog","confirm","okText","cancelText","dialog","map","concat","modified","___CSS_LOADER_EXPORT___","module","id","content","__esModule","locals","exports","add"],"sourceRoot":""}
|