From f4013d119687212d9f10efed680a14bcbd1d83b7 Mon Sep 17 00:00:00 2001 From: Andy-Ruda Date: Wed, 25 Oct 2023 23:34:20 -0500 Subject: [PATCH] Test frontend #only_compile --- cista-front/src/components/FileExplorer.vue | 1 + .../wwwroot/assets/{index-ca079bc6.css => index-ad040315.css} | 2 +- cista/wwwroot/assets/{index-5dc0b94d.js => index-fd0a73dd.js} | 2 +- cista/wwwroot/index.html | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) rename cista/wwwroot/assets/{index-ca079bc6.css => index-ad040315.css} (86%) rename cista/wwwroot/assets/{index-5dc0b94d.js => index-fd0a73dd.js} (99%) diff --git a/cista-front/src/components/FileExplorer.vue b/cista-front/src/components/FileExplorer.vue index 9406c45..5d2db85 100644 --- a/cista-front/src/components/FileExplorer.vue +++ b/cista-front/src/components/FileExplorer.vue @@ -161,6 +161,7 @@ } .action-container{ display: flex; + align-items: center; } .name{ max-width: 70%; diff --git a/cista/wwwroot/assets/index-ca079bc6.css b/cista/wwwroot/assets/index-ad040315.css similarity index 86% rename from cista/wwwroot/assets/index-ca079bc6.css rename to cista/wwwroot/assets/index-ad040315.css index 815239f..e16002c 100644 --- a/cista/wwwroot/assets/index-ca079bc6.css +++ b/cista/wwwroot/assets/index-ad040315.css @@ -1 +1 @@ -html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}:root{--primary-background: #181818;--secondary-background: #ffffff;--font-color: #333333;--table-background: #535353;--primary-color: #ffffff;--secondary-color: #ccc;--blue-color: #66ffeb }@media (prefers-color-scheme: dark){:root{--primary-background: #181818;--secondary-background: #333333;--font-color: #ffffff;--table-background: #535353;--primary-color: #ffffff;--secondary-color: #ccc;--blue-color: #66ffeb }}body{background-color:var(--table-background)}.ant-breadcrumb-separator,.ant-breadcrumb-link,.ant-breadcrumb .anticon{color:var(--primary-color)!important;font-size:1.2em!important}#app{height:100%;display:flex;flex-direction:column;background-color:var(--secondary-background)}.ant-image-preview-mask{background-color:#0009!important;-webkit-backdrop-filter:blur(15px)!important;backdrop-filter:blur(15px)!important}.ant-table-cell:hover{background-color:initial!important}.ant-table-wrapper .ant-table-tbody>tr.ant-table-row-selected>td,.ant-table-wrapper .ant-table-tbody>tr.ant-table-row-selected:hover>td{background-color:transparent}.ant-form-item .ant-form-item-label>label{color:var(--font-color)}@media (prefers-color-scheme: dark){.ant-table-wrapper .ant-table-thead>tr>th{background-color:var(--table-background)}.ant-table-wrapper .ant-table-thead th.ant-table-column-has-sorters:hover{background-color:var(--table-background)}.ant-table-content{background-color:var(--secondary-background)}.ant-table-cell-row-hover,.ant-table-wrapper .ant-table-tbody>tr.ant-table-row:hover>td{background-color:var(--primary-background)!important}.ant-table-column-title,.ant-table-column-sorter,.ant-table-column-sort,.ant-table-cell,a{color:var(--primary-color)!important}.ant-table-cell>button>.anticon{color:var(--primary-color)}.ant-notification-close-x{color:var(--secondary-background)}.ant-empty-description{color:var(--primary-color)}}.progress-container[data-v-2656947e]{display:flex;align-items:center}.close-button[data-v-2656947e]:hover{color:#b81414}.upload-input[data-v-b7be90cc]{display:none}.actions-container,.actions-list{display:flex;flex-wrap:nowrap;gap:15px}.actions-container{justify-content:space-between}.action-button{padding:0;font-size:1.5em;color:var(--secondary-color)}.action-button:hover{color:var(--blue-color)!important}@media only screen and (max-width: 600px){.actions-container,.actions-list{gap:6px}}nav[data-v-069e7159],span[data-v-069e7159]{color:var(--primary-color)}span[data-v-069e7159]:hover,.last[data-v-069e7159]{color:var(--blue-color)}[data-v-6260a34c] .slick-arrow.custom-slick-arrow{width:60px;height:60px;font-size:60px;color:var(--primary-color);transition:ease-in all .3s;opacity:.3;z-index:1}[data-v-6260a34c] .slick-arrow.custom-slick-arrow:before{display:none}[data-v-6260a34c] .slick-arrow.custom-slick-arrow:hover{color:var(--primary-color);opacity:1}.slider[data-v-6260a34c]{height:80vh;background-color:inherit}.centered[data-v-6260a34c]{display:flex;justify-content:center}.centered-vertically[data-v-6260a34c]{display:flex;align-items:center}.right[data-v-6260a34c]{flex-direction:row-reverse}.action-button[data-v-6260a34c]{padding:0;font-size:1.5em;opacity:.5;color:var(--secondary-color)}.action-button[data-v-6260a34c][data-v-6260a34c]:hover{color:var(--blue-color)}.ant-page-header[data-v-6260a34c]{padding:0}.carousel[data-v-6260a34c]{margin:0;height:inherit;background-color:var(--table-background)}main[data-v-35b36243]{padding:5px;height:100%}.more-action[data-v-35b36243]{display:flex;flex-direction:column;justify-content:start}.action-container[data-v-35b36243]{display:flex}.name[data-v-35b36243]{max-width:70%}.edit-action[data-v-35b36243]{min-width:10%}.carousel-container[data-v-35b36243]{height:inherit}.editable-cell-text-wrapper .editable-cell-icon[data-v-35b36243]{visibility:hidden}.editable-cell-text-wrapper:hover .editable-cell-icon[data-v-35b36243]{visibility:visible}.login-container[data-v-795453f2]{display:flex;justify-content:center;align-items:center;height:100vh}.button-login[data-v-795453f2]{background-color:var(--secondary-color);color:var(--secondary-background)}.ant-btn-primary[data-v-795453f2]:not(:disabled):hover{background-color:var(--blue-color)}.wrapper[data-v-48270352]{background-color:var(--primary-background);padding:.2em .5em;display:flex;flex-direction:column;gap:10px}.page-container[data-v-48270352]{flex-grow:2;padding:0} +html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}:root{--primary-background: #181818;--secondary-background: #ffffff;--font-color: #333333;--table-background: #535353;--primary-color: #ffffff;--secondary-color: #ccc;--blue-color: #66ffeb }@media (prefers-color-scheme: dark){:root{--primary-background: #181818;--secondary-background: #333333;--font-color: #ffffff;--table-background: #535353;--primary-color: #ffffff;--secondary-color: #ccc;--blue-color: #66ffeb }}body{background-color:var(--table-background)}.ant-breadcrumb-separator,.ant-breadcrumb-link,.ant-breadcrumb .anticon{color:var(--primary-color)!important;font-size:1.2em!important}#app{height:100%;display:flex;flex-direction:column;background-color:var(--secondary-background)}.ant-image-preview-mask{background-color:#0009!important;-webkit-backdrop-filter:blur(15px)!important;backdrop-filter:blur(15px)!important}.ant-table-cell:hover{background-color:initial!important}.ant-table-wrapper .ant-table-tbody>tr.ant-table-row-selected>td,.ant-table-wrapper .ant-table-tbody>tr.ant-table-row-selected:hover>td{background-color:transparent}.ant-form-item .ant-form-item-label>label{color:var(--font-color)}@media (prefers-color-scheme: dark){.ant-table-wrapper .ant-table-thead>tr>th{background-color:var(--table-background)}.ant-table-wrapper .ant-table-thead th.ant-table-column-has-sorters:hover{background-color:var(--table-background)}.ant-table-content{background-color:var(--secondary-background)}.ant-table-cell-row-hover,.ant-table-wrapper .ant-table-tbody>tr.ant-table-row:hover>td{background-color:var(--primary-background)!important}.ant-table-column-title,.ant-table-column-sorter,.ant-table-column-sort,.ant-table-cell,a{color:var(--primary-color)!important}.ant-table-cell>button>.anticon{color:var(--primary-color)}.ant-notification-close-x{color:var(--secondary-background)}.ant-empty-description{color:var(--primary-color)}}.progress-container[data-v-2656947e]{display:flex;align-items:center}.close-button[data-v-2656947e]:hover{color:#b81414}.upload-input[data-v-b7be90cc]{display:none}.actions-container,.actions-list{display:flex;flex-wrap:nowrap;gap:15px}.actions-container{justify-content:space-between}.action-button{padding:0;font-size:1.5em;color:var(--secondary-color)}.action-button:hover{color:var(--blue-color)!important}@media only screen and (max-width: 600px){.actions-container,.actions-list{gap:6px}}nav[data-v-069e7159],span[data-v-069e7159]{color:var(--primary-color)}span[data-v-069e7159]:hover,.last[data-v-069e7159]{color:var(--blue-color)}[data-v-6260a34c] .slick-arrow.custom-slick-arrow{width:60px;height:60px;font-size:60px;color:var(--primary-color);transition:ease-in all .3s;opacity:.3;z-index:1}[data-v-6260a34c] .slick-arrow.custom-slick-arrow:before{display:none}[data-v-6260a34c] .slick-arrow.custom-slick-arrow:hover{color:var(--primary-color);opacity:1}.slider[data-v-6260a34c]{height:80vh;background-color:inherit}.centered[data-v-6260a34c]{display:flex;justify-content:center}.centered-vertically[data-v-6260a34c]{display:flex;align-items:center}.right[data-v-6260a34c]{flex-direction:row-reverse}.action-button[data-v-6260a34c]{padding:0;font-size:1.5em;opacity:.5;color:var(--secondary-color)}.action-button[data-v-6260a34c][data-v-6260a34c]:hover{color:var(--blue-color)}.ant-page-header[data-v-6260a34c]{padding:0}.carousel[data-v-6260a34c]{margin:0;height:inherit;background-color:var(--table-background)}main[data-v-076e4f38]{padding:5px;height:100%}.more-action[data-v-076e4f38]{display:flex;flex-direction:column;justify-content:start}.action-container[data-v-076e4f38]{display:flex;align-items:center}.name[data-v-076e4f38]{max-width:70%}.edit-action[data-v-076e4f38]{min-width:10%}.carousel-container[data-v-076e4f38]{height:inherit}.editable-cell-text-wrapper .editable-cell-icon[data-v-076e4f38]{visibility:hidden}.editable-cell-text-wrapper:hover .editable-cell-icon[data-v-076e4f38]{visibility:visible}.login-container[data-v-795453f2]{display:flex;justify-content:center;align-items:center;height:100vh}.button-login[data-v-795453f2]{background-color:var(--secondary-color);color:var(--secondary-background)}.ant-btn-primary[data-v-795453f2]:not(:disabled):hover{background-color:var(--blue-color)}.wrapper[data-v-48270352]{background-color:var(--primary-background);padding:.2em .5em;display:flex;flex-direction:column;gap:10px}.page-container[data-v-48270352]{flex-grow:2;padding:0} diff --git a/cista/wwwroot/assets/index-5dc0b94d.js b/cista/wwwroot/assets/index-fd0a73dd.js similarity index 99% rename from cista/wwwroot/assets/index-5dc0b94d.js rename to cista/wwwroot/assets/index-fd0a73dd.js index bda9023..2dc9c6d 100644 --- a/cista/wwwroot/assets/index-5dc0b94d.js +++ b/cista/wwwroot/assets/index-fd0a73dd.js @@ -509,4 +509,4 @@ __p += '`),Jt&&(Ue+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Ue+`return __p -}`;var Wt=R4(function(){return nn(le,bt+"return "+Ue).apply(n,be)});if(Wt.source=Ue,ib(Wt))throw Wt;return Wt}function Dj(f){return rn(f).toLowerCase()}function Bj(f){return rn(f).toUpperCase()}function Nj(f,y,T){if(f=rn(f),f&&(T||y===n))return j2(f);if(!f||!(y=ur(y)))return f;var H=ei(f),q=ei(y),le=W2(H,q),be=V2(H,q)+1;return zl(H,le,be).join("")}function Fj(f,y,T){if(f=rn(f),f&&(T||y===n))return f.slice(0,U2(f)+1);if(!f||!(y=ur(y)))return f;var H=ei(f),q=V2(H,ei(y))+1;return zl(H,0,q).join("")}function Lj(f,y,T){if(f=rn(f),f&&(T||y===n))return f.replace(Ve,"");if(!f||!(y=ur(y)))return f;var H=ei(f),q=W2(H,ei(y));return zl(H,q).join("")}function kj(f,y){var T=A,H=R;if(An(y)){var q="separator"in y?y.separator:q;T="length"in y?Ht(y.length):T,H="omission"in y?ur(y.omission):H}f=rn(f);var le=f.length;if(Fs(f)){var be=ei(f);le=be.length}if(T>=le)return f;var xe=T-Ls(H);if(xe<1)return H;var _e=be?zl(be,0,xe).join(""):f.slice(0,xe);if(q===n)return _e+H;if(be&&(xe+=_e.length-xe),lb(q)){if(f.slice(xe).search(q)){var He,We=_e;for(q.global||(q=C0(q.source,rn(No.exec(q))+"g")),q.lastIndex=0;He=q.exec(We);)var Ue=He.index;_e=_e.slice(0,Ue===n?xe:Ue)}}else if(f.indexOf(ur(q),xe)!=xe){var et=_e.lastIndexOf(q);et>-1&&(_e=_e.slice(0,et))}return _e+H}function zj(f){return f=rn(f),f&&Mn.test(f)?f.replace(Dt,gF):f}var Hj=Ks(function(f,y,T){return f+(T?" ":"")+y.toUpperCase()}),cb=D3("toUpperCase");function A4(f,y,T){return f=rn(f),y=T?n:y,y===n?uF(f)?bF(f):tF(f):f.match(y)||[]}var R4=Vt(function(f,y){try{return sr(f,n,y)}catch(T){return ib(T)?T:new Bt(T)}}),jj=Yi(function(f,y){return Er(y,function(T){T=wi(T),Gi(f,T,ob(f[T],f))}),f});function Wj(f){var y=f==null?0:f.length,T=Ot();return f=y?In(f,function(H){if(typeof H[1]!="function")throw new Mr(l);return[T(H[0]),H[1]]}):[],Vt(function(H){for(var q=-1;++qD)return[];var T=V,H=wo(f,V);y=Ot(y),f-=V;for(var q=y0(H,y);++T0||y<0)?new Xt(T):(f<0?T=T.takeRight(-f):f&&(T=T.drop(f)),y!==n&&(y=Ht(y),T=y<0?T.dropRight(-y):T.take(y-f)),T)},Xt.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Xt.prototype.toArray=function(){return this.take(V)},Ci(Xt.prototype,function(f,y){var T=/^(?:filter|find|map|reject)|While$/.test(y),H=/^(?:head|last)$/.test(y),q=oe[H?"take"+(y=="last"?"Right":""):y],le=H||/^find/.test(y);q&&(oe.prototype[y]=function(){var be=this.__wrapped__,xe=H?[1]:arguments,_e=be instanceof Xt,He=xe[0],We=_e||Ft(be),Ue=function(Kt){var Jt=q.apply(oe,Dl([Kt],xe));return H&&et?Jt[0]:Jt};We&&T&&typeof He=="function"&&He.length!=1&&(_e=We=!1);var et=this.__chain__,bt=!!this.__actions__.length,Pt=le&&!et,Wt=_e&&!bt;if(!le&&We){be=Wt?be:new Xt(this);var It=f.apply(be,xe);return It.__actions__.push({func:Op,args:[Ue],thisArg:n}),new Ar(It,et)}return Pt&&Wt?f.apply(this,xe):(It=this.thru(Ue),Pt?H?It.value()[0]:It.value():It)})}),Er(["pop","push","shift","sort","splice","unshift"],function(f){var y=Zf[f],T=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",H=/^(?:pop|shift)$/.test(f);oe.prototype[f]=function(){var q=arguments;if(H&&!this.__chain__){var le=this.value();return y.apply(Ft(le)?le:[],q)}return this[T](function(be){return y.apply(Ft(be)?be:[],q)})}}),Ci(Xt.prototype,function(f,y){var T=oe[y];if(T){var H=T.name+"";an.call(js,H)||(js[H]=[]),js[H].push({name:y,func:T})}}),js[bp(n,$).name]=[{name:"wrapper",func:n}],Xt.prototype.clone=zF,Xt.prototype.reverse=HF,Xt.prototype.value=jF,oe.prototype.at=mz,oe.prototype.chain=bz,oe.prototype.commit=yz,oe.prototype.next=Sz,oe.prototype.plant=Cz,oe.prototype.reverse=xz,oe.prototype.toJSON=oe.prototype.valueOf=oe.prototype.value=wz,oe.prototype.first=oe.prototype.head,Cu&&(oe.prototype[Cu]=$z),oe},ks=yF();Pa?((Pa.exports=ks)._=ks,d0._=ks):go._=ks}).call(Sr)})(gv,gv.exports);var lTe=gv.exports;function IN(e){return xv()?(QS(e),!0):!1}function x2(e){return typeof e=="function"?e():lt(e)}const TN=typeof window<"u"&&typeof document<"u",aTe=Object.prototype.toString,sTe=e=>aTe.call(e)==="[object Object]",K_=()=>+Date.now(),KS=()=>{};function cTe(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function uTe(e,t=!0,n=!0,o=!1){let r=0,i,l=!0,a=KS,s;const c=()=>{i&&(clearTimeout(i),i=void 0,a(),a=KS)};return d=>{const p=x2(e),g=Date.now()-r,m=()=>s=d();return c(),p<=0?(r=Date.now(),m()):(g>p&&(n||!l)?(r=Date.now(),m()):t&&(s=new Promise((v,S)=>{a=o?S:v,i=setTimeout(()=>{r=Date.now(),l=!0,v(m()),c()},Math.max(0,p-g))})),!n&&!i&&(i=setTimeout(()=>l=!0,p)),l=!1,s)}}function US(e){var t;const n=x2(e);return(t=n==null?void 0:n.$el)!=null?t:n}const _N=TN?window:void 0,dTe=TN?window.document:void 0;function vv(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=_N):[t,n,o,r]=e,!t)return KS;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],l=()=>{i.forEach(u=>u()),i.length=0},a=(u,d,p,g)=>(u.addEventListener(d,p,g),()=>u.removeEventListener(d,p,g)),s=Te(()=>[US(t),x2(r)],([u,d])=>{if(l(),!u)return;const p=sTe(d)?{...d}:d;i.push(...n.flatMap(g=>o.map(m=>a(u,g,m,p))))},{immediate:!0,flush:"post"}),c=()=>{s(),l()};return IN(c),c}function fTe(){const e=fe(!1);return eo()&&st(()=>{e.value=!0}),e}function pTe(e){const t=fTe();return E(()=>(t.value,!!e()))}const U_=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function hTe(e,t={}){const{document:n=dTe,autoExit:o=!1}=t,r=E(()=>{var $;return($=US(e))!=null?$:n==null?void 0:n.querySelector("html")}),i=fe(!1),l=E(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find($=>n&&$ in n||r.value&&$ in r.value)),a=E(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find($=>n&&$ in n||r.value&&$ in r.value)),s=E(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find($=>n&&$ in n||r.value&&$ in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find($=>n&&$ in n),u=pTe(()=>r.value&&n&&l.value!==void 0&&a.value!==void 0&&s.value!==void 0),d=()=>c?(n==null?void 0:n[c])===r.value:!1,p=()=>{if(s.value){if(n&&n[s.value]!=null)return n[s.value];{const $=r.value;if(($==null?void 0:$[s.value])!=null)return!!$[s.value]}}return!1};async function g(){if(!(!u.value||!i.value)){if(a.value)if((n==null?void 0:n[a.value])!=null)await n[a.value]();else{const $=r.value;($==null?void 0:$[a.value])!=null&&await $[a.value]()}i.value=!1}}async function m(){if(!u.value||i.value)return;p()&&await g();const $=r.value;l.value&&($==null?void 0:$[l.value])!=null&&(await $[l.value](),i.value=!0)}async function v(){await(i.value?g():m())}const S=()=>{const $=p();(!$||$&&d())&&(i.value=$)};return vv(n,U_,S,!1),vv(()=>US(r),U_,S,!1),o&&IN(g),{isSupported:u,isFullscreen:i,enter:m,exit:g,toggle:v}}const gTe=["mousemove","mousedown","resize","keydown","touchstart","wheel"],vTe=6e4;function mTe(e=vTe,t={}){const{initialState:n=!1,listenForVisibilityChange:o=!0,events:r=gTe,window:i=_N,eventFilter:l=uTe(50)}=t,a=fe(n),s=fe(K_());let c;const u=()=>{a.value=!1,clearTimeout(c),c=setTimeout(()=>a.value=!0,e)},d=cTe(l,()=>{s.value=K_(),u()});if(i){const p=i.document;for(const g of r)vv(i,g,d,{passive:!0});o&&vv(p,"visibilitychange",()=>{p.hidden||d()}),u()}return{idle:a,lastActive:s,reset:u}}const bTe=["data"],yTe={key:2},STe=se({__name:"FileViewer",props:{type:{},visibleImg:{type:Boolean}},emits:{visibleImg(e){return e}},setup(e,{emit:t}){const n=e,o=fe("");tt(()=>{o.value=K8e+ci.currentRoute.value.path});function r(i){t("visibleImg",i)}return(i,l)=>{const a=u9;return n.type==="pdf"?(Tn(),_o("object",{key:0,data:o.value,type:"application/pdf",width:"100%",height:"100%"},null,8,bTe)):n.type==="image"?(Tn(),ha(a,{key:1,width:"50%",src:o.value,onClick:l[0]||(l[0]=()=>r(!0)),previewMask:!1,preview:{visibleImg:i.visibleImg,onVisibleChange:r}},null,8,["src","preview"])):(Tn(),_o("h1",yTe," Unsupported file type "))}}}),$Te=se({__name:"FileCarousel",setup(e){const t=fe(null),{isFullscreen:n,toggle:o}=hTe(t),r=fe(!1),i=_l(),l=fe(void 0);tt(()=>{if(i.mainDocument[0]&&i.mainDocument[0].type==="file"){const d=i.mainDocument[0].ext;l.value=O6e(d)}});function a(d){r.value=d}const{idle:s}=mTe(2e3);function c(){const p=ci.currentRoute.value.path.split("/").filter(m=>m);p.length<=1?p[0]="/":p.pop();const g=p.join("/");ci.push(g)}function u(d){const p=decodeURIComponent(new String(ci.currentRoute.value.path)),g=i.getNextDocumentInRoute(d,p);let m=p.split("/");m.pop(),m.push(g),m=m.join("/"),ci.push(m)}return(d,p)=>{const g=hn,m=D9,v=ZR,S=B9;return Tn(),_o("div",{class:"carousel",ref_key:"fileCarousel",ref:t},[h(m,{style:$v({visibility:lt(s)?"hidden":"visible"})},{extra:Sn(()=>[h(g,{type:"text",class:"action-button",onclick:lt(o),icon:fn(lt(n)?lt(Xme):lt(Jme))},null,8,["onclick","icon"]),h(g,{type:"text",class:"action-button",onclick:c,icon:fn(lt(rr))},null,8,["icon"])]),_:1},8,["style"]),h(S,{class:"slider"},{default:Sn(()=>[h(v,{span:2,class:"centered-vertically"},{default:Sn(()=>[io("div",{class:"custom-slick-arrow slick-arrow slick-prev centered",onClick:p[0]||(p[0]=$=>u(-1)),style:{left:"10px","z-index":"1"}},[En(h(lt(Cl),null,null,512),[[$o,!lt(s)]])])]),_:1}),h(v,{span:20,class:"centered"},{default:Sn(()=>[lt(i).loading?rd("",!0):(Tn(),ha(STe,{key:0,visibleImg:r.value,onVisibleImg:a,type:l.value},null,8,["visibleImg","type"]))]),_:1}),h(v,{span:2,class:"centered-vertically right"},{default:Sn(()=>[io("div",{class:"custom-slick-arrow slick-arrow slick-prev centered",onClick:p[1]||(p[1]=$=>u(1)),style:{right:"10px"}},[En(h(lt(qr),null,null,512),[[$o,!lt(s)]])])]),_:1})]),_:1})],512)}}}),CTe=hu($Te,[["__scopeId","data-v-6260a34c"]]),xTe={key:0,class:"carousel-container"},wTe={key:0,class:"editable-cell"},OTe={key:0,class:"action-container editable-cell-input-wrapper"},PTe={key:1,class:"action-container editable-cell-text-wrapper"},ITe=["href"],TTe={class:"more-action"},_Te={class:"action-container"},ETe={class:"action-container"},MTe={class:"action-container"},ATe={class:"action-container"},RTe={class:"action-container"},DTe={class:"action-container"},BTe=se({__name:"FileExplorer",setup(e){const t=_l(),n=Rt({}),o=Rt({selectedRowKeys:[]}),r=E(()=>ci.currentRoute.value.path==="/"?"":ci.currentRoute.value.path),i=fe([{title:"Name",dataIndex:"name",width:"70%",key:"name",sortDirections:["ascend","descend"],sorter:(c,u,d)=>u.name.localeCompare(c.name)},{title:"Modified",dataIndex:"modified",responsive:["lg"],sortDirections:["ascend","descend"],defaultSortOrder:"descend",sorter:(c,u)=>{const d=new Date(c.modified),p=new Date(u.modified);return dp?1:0},key:"modified"},{title:"Size",dataIndex:"size",responsive:["lg"],sortDirections:["ascend","descend"],sorter:(c,u)=>c.size-u.size,key:"size"},{width:"5%",key:"action"}]),l=c=>{const u=[];c.forEach(d=>{if(t.mainDocument){const p=t.mainDocument.find(g=>g.key===d);p&&u.push(p)}}),t.setSelectedDocuments(u),o.selectedRowKeys=c},a=c=>{n[c]=lTe.cloneDeep(t.mainDocument.filter(u=>c===u.key)[0])},s=c=>{Object.assign(t.mainDocument.filter(u=>c===u.key)[0],n[c]),delete n[c]};return(c,u)=>{const d=Wn,p=hn,g=mm,m=OB;return Tn(),_o("main",null,[!lt(t).loading&<(t).document[0]&<(t).document[0].type==="file"?(Tn(),_o("div",xTe,[h(CTe)])):!lt(t).loading&<(t).mainDocument?(Tn(),ha(m,{key:1,pagination:!1,"row-selection":{selectedRowKeys:o.selectedRowKeys,onChange:l},columns:i.value,"data-source":lt(t).mainDocument},{headerCell:Sn(({column:v})=>[]),bodyCell:Sn(({column:v,record:S})=>[v.key==="name"?(Tn(),_o("div",wTe,[n[S.key]?(Tn(),_o("div",OTe,[h(d,{class:"name",value:n[S.key].name,"onUpdate:value":$=>n[S.key].name=$,onPressEnter:$=>s(S.key)},null,8,["value","onUpdate:value","onPressEnter"]),h(lt(bf),{class:"edit-action editable-cell-icon-check",onClick:$=>s(S.key)},null,8,["onClick"])])):(Tn(),_o("div",PTe,[io("a",{class:"name",href:`#${r.value}/${S.name}`},JS(S.name),9,ITe),h(lt(uS),{class:"edit-action editable-cell-icon",onClick:$=>a(S.key)},null,8,["onClick"])]))])):rd("",!0),v.key==="action"?(Tn(),ha(g,{key:1,trigger:"click"},{content:Sn(()=>[io("div",TTe,[io("div",_Te,[h(p,{type:"text",class:"action-button",icon:fn(lt(l0e))},null,8,["icon"]),Nn("Open ")]),io("div",ETe,[h(p,{type:"text",class:"action-button",icon:fn(lt(uS))},null,8,["icon"]),Nn(" Rename ")]),io("div",MTe,[h(p,{type:"text",class:"action-button",icon:fn(lt(cD))},null,8,["icon"]),Nn(" Share ")]),io("div",ATe,[h(p,{type:"text",class:"action-button",icon:fn(lt(iD))},null,8,["icon"]),Nn(" Copy ")]),io("div",RTe,[h(p,{type:"text",class:"action-button",icon:fn(lt(z0e))},null,8,["icon"]),Nn(" Cut ")]),io("div",DTe,[h(p,{type:"text",class:"action-button",icon:fn(lt(Fm))},null,8,["icon"]),Nn(" Delete ")])])]),default:Sn(()=>[h(p,{type:"text",class:"action-button",icon:fn(lt(bm))},null,8,["icon"])]),_:1})):rd("",!0)]),_:1},8,["row-selection","columns","data-source"])):rd("",!0)])}}}),NTe=hu(BTe,[["__scopeId","data-v-35b36243"]]),FTe=se({__name:"ExplorerView",setup(e){const t=_l();function n(o){return!!(o.includes(".")&&!o.endsWith("."))}return tt(async()=>{const o=new String(ci.currentRoute.value.path);n(o)?t.setActualDocumentFile(o):t.setActualDocument(o.toString()),setTimeout(()=>{t.loading=!1},2e3)}),(o,r)=>(Tn(),ha(NTe))}}),ci=$6e({history:kIe("/"),routes:[{path:"/:pathMatch(.*)*",name:"explorer",component:FTe}]}),LTe={class:"wrapper"},kTe=se({__name:"App",setup(e){const t=_l(),n=E(()=>{const o=ci.currentRoute.value.path.split("/").filter(r=>r!=="");return{path:ci.currentRoute.value.path,pathList:o}});return tt(()=>{const o=new U8e,r=new G8e,i=D_(W8e,o.handleWebSocketMessage),l=D_(V8e,r.handleWebSocketMessage);t.wsWatch=i,t.wsUpload=l}),(o,r)=>(Tn(),_o(ot,null,[io("header",LTe,[h(oTe,{WS:"WS"}),h(iTe,{path:n.value.pathList},null,8,["path"])]),h(lt(iN),{class:"page-container"})],64))}}),zTe=hu(kTe,[["__scopeId","data-v-48270352"]]),Lf=eE(zTe);Lf.config.errorHandler=e=>{console.log(e)};Lf.use(sU());Lf.use(SIe);Lf.use(ci);Lf.mount("#app")});export default HTe(); +}`;var Wt=R4(function(){return nn(le,bt+"return "+Ue).apply(n,be)});if(Wt.source=Ue,ib(Wt))throw Wt;return Wt}function Dj(f){return rn(f).toLowerCase()}function Bj(f){return rn(f).toUpperCase()}function Nj(f,y,T){if(f=rn(f),f&&(T||y===n))return j2(f);if(!f||!(y=ur(y)))return f;var H=ei(f),q=ei(y),le=W2(H,q),be=V2(H,q)+1;return zl(H,le,be).join("")}function Fj(f,y,T){if(f=rn(f),f&&(T||y===n))return f.slice(0,U2(f)+1);if(!f||!(y=ur(y)))return f;var H=ei(f),q=V2(H,ei(y))+1;return zl(H,0,q).join("")}function Lj(f,y,T){if(f=rn(f),f&&(T||y===n))return f.replace(Ve,"");if(!f||!(y=ur(y)))return f;var H=ei(f),q=W2(H,ei(y));return zl(H,q).join("")}function kj(f,y){var T=A,H=R;if(An(y)){var q="separator"in y?y.separator:q;T="length"in y?Ht(y.length):T,H="omission"in y?ur(y.omission):H}f=rn(f);var le=f.length;if(Fs(f)){var be=ei(f);le=be.length}if(T>=le)return f;var xe=T-Ls(H);if(xe<1)return H;var _e=be?zl(be,0,xe).join(""):f.slice(0,xe);if(q===n)return _e+H;if(be&&(xe+=_e.length-xe),lb(q)){if(f.slice(xe).search(q)){var He,We=_e;for(q.global||(q=C0(q.source,rn(No.exec(q))+"g")),q.lastIndex=0;He=q.exec(We);)var Ue=He.index;_e=_e.slice(0,Ue===n?xe:Ue)}}else if(f.indexOf(ur(q),xe)!=xe){var et=_e.lastIndexOf(q);et>-1&&(_e=_e.slice(0,et))}return _e+H}function zj(f){return f=rn(f),f&&Mn.test(f)?f.replace(Dt,gF):f}var Hj=Ks(function(f,y,T){return f+(T?" ":"")+y.toUpperCase()}),cb=D3("toUpperCase");function A4(f,y,T){return f=rn(f),y=T?n:y,y===n?uF(f)?bF(f):tF(f):f.match(y)||[]}var R4=Vt(function(f,y){try{return sr(f,n,y)}catch(T){return ib(T)?T:new Bt(T)}}),jj=Yi(function(f,y){return Er(y,function(T){T=wi(T),Gi(f,T,ob(f[T],f))}),f});function Wj(f){var y=f==null?0:f.length,T=Ot();return f=y?In(f,function(H){if(typeof H[1]!="function")throw new Mr(l);return[T(H[0]),H[1]]}):[],Vt(function(H){for(var q=-1;++qD)return[];var T=V,H=wo(f,V);y=Ot(y),f-=V;for(var q=y0(H,y);++T0||y<0)?new Xt(T):(f<0?T=T.takeRight(-f):f&&(T=T.drop(f)),y!==n&&(y=Ht(y),T=y<0?T.dropRight(-y):T.take(y-f)),T)},Xt.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Xt.prototype.toArray=function(){return this.take(V)},Ci(Xt.prototype,function(f,y){var T=/^(?:filter|find|map|reject)|While$/.test(y),H=/^(?:head|last)$/.test(y),q=oe[H?"take"+(y=="last"?"Right":""):y],le=H||/^find/.test(y);q&&(oe.prototype[y]=function(){var be=this.__wrapped__,xe=H?[1]:arguments,_e=be instanceof Xt,He=xe[0],We=_e||Ft(be),Ue=function(Kt){var Jt=q.apply(oe,Dl([Kt],xe));return H&&et?Jt[0]:Jt};We&&T&&typeof He=="function"&&He.length!=1&&(_e=We=!1);var et=this.__chain__,bt=!!this.__actions__.length,Pt=le&&!et,Wt=_e&&!bt;if(!le&&We){be=Wt?be:new Xt(this);var It=f.apply(be,xe);return It.__actions__.push({func:Op,args:[Ue],thisArg:n}),new Ar(It,et)}return Pt&&Wt?f.apply(this,xe):(It=this.thru(Ue),Pt?H?It.value()[0]:It.value():It)})}),Er(["pop","push","shift","sort","splice","unshift"],function(f){var y=Zf[f],T=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",H=/^(?:pop|shift)$/.test(f);oe.prototype[f]=function(){var q=arguments;if(H&&!this.__chain__){var le=this.value();return y.apply(Ft(le)?le:[],q)}return this[T](function(be){return y.apply(Ft(be)?be:[],q)})}}),Ci(Xt.prototype,function(f,y){var T=oe[y];if(T){var H=T.name+"";an.call(js,H)||(js[H]=[]),js[H].push({name:y,func:T})}}),js[bp(n,$).name]=[{name:"wrapper",func:n}],Xt.prototype.clone=zF,Xt.prototype.reverse=HF,Xt.prototype.value=jF,oe.prototype.at=mz,oe.prototype.chain=bz,oe.prototype.commit=yz,oe.prototype.next=Sz,oe.prototype.plant=Cz,oe.prototype.reverse=xz,oe.prototype.toJSON=oe.prototype.valueOf=oe.prototype.value=wz,oe.prototype.first=oe.prototype.head,Cu&&(oe.prototype[Cu]=$z),oe},ks=yF();Pa?((Pa.exports=ks)._=ks,d0._=ks):go._=ks}).call(Sr)})(gv,gv.exports);var lTe=gv.exports;function IN(e){return xv()?(QS(e),!0):!1}function x2(e){return typeof e=="function"?e():lt(e)}const TN=typeof window<"u"&&typeof document<"u",aTe=Object.prototype.toString,sTe=e=>aTe.call(e)==="[object Object]",K_=()=>+Date.now(),KS=()=>{};function cTe(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function uTe(e,t=!0,n=!0,o=!1){let r=0,i,l=!0,a=KS,s;const c=()=>{i&&(clearTimeout(i),i=void 0,a(),a=KS)};return d=>{const p=x2(e),g=Date.now()-r,m=()=>s=d();return c(),p<=0?(r=Date.now(),m()):(g>p&&(n||!l)?(r=Date.now(),m()):t&&(s=new Promise((v,S)=>{a=o?S:v,i=setTimeout(()=>{r=Date.now(),l=!0,v(m()),c()},Math.max(0,p-g))})),!n&&!i&&(i=setTimeout(()=>l=!0,p)),l=!1,s)}}function US(e){var t;const n=x2(e);return(t=n==null?void 0:n.$el)!=null?t:n}const _N=TN?window:void 0,dTe=TN?window.document:void 0;function vv(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=_N):[t,n,o,r]=e,!t)return KS;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],l=()=>{i.forEach(u=>u()),i.length=0},a=(u,d,p,g)=>(u.addEventListener(d,p,g),()=>u.removeEventListener(d,p,g)),s=Te(()=>[US(t),x2(r)],([u,d])=>{if(l(),!u)return;const p=sTe(d)?{...d}:d;i.push(...n.flatMap(g=>o.map(m=>a(u,g,m,p))))},{immediate:!0,flush:"post"}),c=()=>{s(),l()};return IN(c),c}function fTe(){const e=fe(!1);return eo()&&st(()=>{e.value=!0}),e}function pTe(e){const t=fTe();return E(()=>(t.value,!!e()))}const U_=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function hTe(e,t={}){const{document:n=dTe,autoExit:o=!1}=t,r=E(()=>{var $;return($=US(e))!=null?$:n==null?void 0:n.querySelector("html")}),i=fe(!1),l=E(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find($=>n&&$ in n||r.value&&$ in r.value)),a=E(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find($=>n&&$ in n||r.value&&$ in r.value)),s=E(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find($=>n&&$ in n||r.value&&$ in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find($=>n&&$ in n),u=pTe(()=>r.value&&n&&l.value!==void 0&&a.value!==void 0&&s.value!==void 0),d=()=>c?(n==null?void 0:n[c])===r.value:!1,p=()=>{if(s.value){if(n&&n[s.value]!=null)return n[s.value];{const $=r.value;if(($==null?void 0:$[s.value])!=null)return!!$[s.value]}}return!1};async function g(){if(!(!u.value||!i.value)){if(a.value)if((n==null?void 0:n[a.value])!=null)await n[a.value]();else{const $=r.value;($==null?void 0:$[a.value])!=null&&await $[a.value]()}i.value=!1}}async function m(){if(!u.value||i.value)return;p()&&await g();const $=r.value;l.value&&($==null?void 0:$[l.value])!=null&&(await $[l.value](),i.value=!0)}async function v(){await(i.value?g():m())}const S=()=>{const $=p();(!$||$&&d())&&(i.value=$)};return vv(n,U_,S,!1),vv(()=>US(r),U_,S,!1),o&&IN(g),{isSupported:u,isFullscreen:i,enter:m,exit:g,toggle:v}}const gTe=["mousemove","mousedown","resize","keydown","touchstart","wheel"],vTe=6e4;function mTe(e=vTe,t={}){const{initialState:n=!1,listenForVisibilityChange:o=!0,events:r=gTe,window:i=_N,eventFilter:l=uTe(50)}=t,a=fe(n),s=fe(K_());let c;const u=()=>{a.value=!1,clearTimeout(c),c=setTimeout(()=>a.value=!0,e)},d=cTe(l,()=>{s.value=K_(),u()});if(i){const p=i.document;for(const g of r)vv(i,g,d,{passive:!0});o&&vv(p,"visibilitychange",()=>{p.hidden||d()}),u()}return{idle:a,lastActive:s,reset:u}}const bTe=["data"],yTe={key:2},STe=se({__name:"FileViewer",props:{type:{},visibleImg:{type:Boolean}},emits:{visibleImg(e){return e}},setup(e,{emit:t}){const n=e,o=fe("");tt(()=>{o.value=K8e+ci.currentRoute.value.path});function r(i){t("visibleImg",i)}return(i,l)=>{const a=u9;return n.type==="pdf"?(Tn(),_o("object",{key:0,data:o.value,type:"application/pdf",width:"100%",height:"100%"},null,8,bTe)):n.type==="image"?(Tn(),ha(a,{key:1,width:"50%",src:o.value,onClick:l[0]||(l[0]=()=>r(!0)),previewMask:!1,preview:{visibleImg:i.visibleImg,onVisibleChange:r}},null,8,["src","preview"])):(Tn(),_o("h1",yTe," Unsupported file type "))}}}),$Te=se({__name:"FileCarousel",setup(e){const t=fe(null),{isFullscreen:n,toggle:o}=hTe(t),r=fe(!1),i=_l(),l=fe(void 0);tt(()=>{if(i.mainDocument[0]&&i.mainDocument[0].type==="file"){const d=i.mainDocument[0].ext;l.value=O6e(d)}});function a(d){r.value=d}const{idle:s}=mTe(2e3);function c(){const p=ci.currentRoute.value.path.split("/").filter(m=>m);p.length<=1?p[0]="/":p.pop();const g=p.join("/");ci.push(g)}function u(d){const p=decodeURIComponent(new String(ci.currentRoute.value.path)),g=i.getNextDocumentInRoute(d,p);let m=p.split("/");m.pop(),m.push(g),m=m.join("/"),ci.push(m)}return(d,p)=>{const g=hn,m=D9,v=ZR,S=B9;return Tn(),_o("div",{class:"carousel",ref_key:"fileCarousel",ref:t},[h(m,{style:$v({visibility:lt(s)?"hidden":"visible"})},{extra:Sn(()=>[h(g,{type:"text",class:"action-button",onclick:lt(o),icon:fn(lt(n)?lt(Xme):lt(Jme))},null,8,["onclick","icon"]),h(g,{type:"text",class:"action-button",onclick:c,icon:fn(lt(rr))},null,8,["icon"])]),_:1},8,["style"]),h(S,{class:"slider"},{default:Sn(()=>[h(v,{span:2,class:"centered-vertically"},{default:Sn(()=>[io("div",{class:"custom-slick-arrow slick-arrow slick-prev centered",onClick:p[0]||(p[0]=$=>u(-1)),style:{left:"10px","z-index":"1"}},[En(h(lt(Cl),null,null,512),[[$o,!lt(s)]])])]),_:1}),h(v,{span:20,class:"centered"},{default:Sn(()=>[lt(i).loading?rd("",!0):(Tn(),ha(STe,{key:0,visibleImg:r.value,onVisibleImg:a,type:l.value},null,8,["visibleImg","type"]))]),_:1}),h(v,{span:2,class:"centered-vertically right"},{default:Sn(()=>[io("div",{class:"custom-slick-arrow slick-arrow slick-prev centered",onClick:p[1]||(p[1]=$=>u(1)),style:{right:"10px"}},[En(h(lt(qr),null,null,512),[[$o,!lt(s)]])])]),_:1})]),_:1})],512)}}}),CTe=hu($Te,[["__scopeId","data-v-6260a34c"]]),xTe={key:0,class:"carousel-container"},wTe={key:0,class:"editable-cell"},OTe={key:0,class:"action-container editable-cell-input-wrapper"},PTe={key:1,class:"action-container editable-cell-text-wrapper"},ITe=["href"],TTe={class:"more-action"},_Te={class:"action-container"},ETe={class:"action-container"},MTe={class:"action-container"},ATe={class:"action-container"},RTe={class:"action-container"},DTe={class:"action-container"},BTe=se({__name:"FileExplorer",setup(e){const t=_l(),n=Rt({}),o=Rt({selectedRowKeys:[]}),r=E(()=>ci.currentRoute.value.path==="/"?"":ci.currentRoute.value.path),i=fe([{title:"Name",dataIndex:"name",width:"70%",key:"name",sortDirections:["ascend","descend"],sorter:(c,u,d)=>u.name.localeCompare(c.name)},{title:"Modified",dataIndex:"modified",responsive:["lg"],sortDirections:["ascend","descend"],defaultSortOrder:"descend",sorter:(c,u)=>{const d=new Date(c.modified),p=new Date(u.modified);return dp?1:0},key:"modified"},{title:"Size",dataIndex:"size",responsive:["lg"],sortDirections:["ascend","descend"],sorter:(c,u)=>c.size-u.size,key:"size"},{width:"5%",key:"action"}]),l=c=>{const u=[];c.forEach(d=>{if(t.mainDocument){const p=t.mainDocument.find(g=>g.key===d);p&&u.push(p)}}),t.setSelectedDocuments(u),o.selectedRowKeys=c},a=c=>{n[c]=lTe.cloneDeep(t.mainDocument.filter(u=>c===u.key)[0])},s=c=>{Object.assign(t.mainDocument.filter(u=>c===u.key)[0],n[c]),delete n[c]};return(c,u)=>{const d=Wn,p=hn,g=mm,m=OB;return Tn(),_o("main",null,[!lt(t).loading&<(t).document[0]&<(t).document[0].type==="file"?(Tn(),_o("div",xTe,[h(CTe)])):!lt(t).loading&<(t).mainDocument?(Tn(),ha(m,{key:1,pagination:!1,"row-selection":{selectedRowKeys:o.selectedRowKeys,onChange:l},columns:i.value,"data-source":lt(t).mainDocument},{headerCell:Sn(({column:v})=>[]),bodyCell:Sn(({column:v,record:S})=>[v.key==="name"?(Tn(),_o("div",wTe,[n[S.key]?(Tn(),_o("div",OTe,[h(d,{class:"name",value:n[S.key].name,"onUpdate:value":$=>n[S.key].name=$,onPressEnter:$=>s(S.key)},null,8,["value","onUpdate:value","onPressEnter"]),h(lt(bf),{class:"edit-action editable-cell-icon-check",onClick:$=>s(S.key)},null,8,["onClick"])])):(Tn(),_o("div",PTe,[io("a",{class:"name",href:`#${r.value}/${S.name}`},JS(S.name),9,ITe),h(lt(uS),{class:"edit-action editable-cell-icon",onClick:$=>a(S.key)},null,8,["onClick"])]))])):rd("",!0),v.key==="action"?(Tn(),ha(g,{key:1,trigger:"click"},{content:Sn(()=>[io("div",TTe,[io("div",_Te,[h(p,{type:"text",class:"action-button",icon:fn(lt(l0e))},null,8,["icon"]),Nn("Open ")]),io("div",ETe,[h(p,{type:"text",class:"action-button",icon:fn(lt(uS))},null,8,["icon"]),Nn(" Rename ")]),io("div",MTe,[h(p,{type:"text",class:"action-button",icon:fn(lt(cD))},null,8,["icon"]),Nn(" Share ")]),io("div",ATe,[h(p,{type:"text",class:"action-button",icon:fn(lt(iD))},null,8,["icon"]),Nn(" Copy ")]),io("div",RTe,[h(p,{type:"text",class:"action-button",icon:fn(lt(z0e))},null,8,["icon"]),Nn(" Cut ")]),io("div",DTe,[h(p,{type:"text",class:"action-button",icon:fn(lt(Fm))},null,8,["icon"]),Nn(" Delete ")])])]),default:Sn(()=>[h(p,{type:"text",class:"action-button",icon:fn(lt(bm))},null,8,["icon"])]),_:1})):rd("",!0)]),_:1},8,["row-selection","columns","data-source"])):rd("",!0)])}}}),NTe=hu(BTe,[["__scopeId","data-v-076e4f38"]]),FTe=se({__name:"ExplorerView",setup(e){const t=_l();function n(o){return!!(o.includes(".")&&!o.endsWith("."))}return tt(async()=>{const o=new String(ci.currentRoute.value.path);n(o)?t.setActualDocumentFile(o):t.setActualDocument(o.toString()),setTimeout(()=>{t.loading=!1},2e3)}),(o,r)=>(Tn(),ha(NTe))}}),ci=$6e({history:kIe("/"),routes:[{path:"/:pathMatch(.*)*",name:"explorer",component:FTe}]}),LTe={class:"wrapper"},kTe=se({__name:"App",setup(e){const t=_l(),n=E(()=>{const o=ci.currentRoute.value.path.split("/").filter(r=>r!=="");return{path:ci.currentRoute.value.path,pathList:o}});return tt(()=>{const o=new U8e,r=new G8e,i=D_(W8e,o.handleWebSocketMessage),l=D_(V8e,r.handleWebSocketMessage);t.wsWatch=i,t.wsUpload=l}),(o,r)=>(Tn(),_o(ot,null,[io("header",LTe,[h(oTe,{WS:"WS"}),h(iTe,{path:n.value.pathList},null,8,["path"])]),h(lt(iN),{class:"page-container"})],64))}}),zTe=hu(kTe,[["__scopeId","data-v-48270352"]]),Lf=eE(zTe);Lf.config.errorHandler=e=>{console.log(e)};Lf.use(sU());Lf.use(SIe);Lf.use(ci);Lf.mount("#app")});export default HTe(); diff --git a/cista/wwwroot/index.html b/cista/wwwroot/index.html index 3729a64..7d79caf 100644 --- a/cista/wwwroot/index.html +++ b/cista/wwwroot/index.html @@ -5,8 +5,8 @@ Vite Vasanko - - + +