Files
yakpanel-core/YakPanel/static/vite/js/Properties-legacy-DFjwWsj5.js
2026-04-07 02:04:22 +05:30

2 lines
11 KiB
JavaScript

System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-Cv0QQQJ6.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785"],(function(e,t){"use strict";var i,l,r,a,s,o,n,p,d,u,f,c,m,v,y,g,w,x,h,_,b,$,j,k,z,C,T,F,N,O,P,S,H,I,M,R,U,q,E;return{setters:[e=>{i=e.w,l=e.C,r=e.as,a=e.i,s=e.h,o=e.m,n=e.l,p=e.x,d=e.c},e=>{u=e._},e=>{f=e.c},e=>{c=e.u},e=>{m=e.W,v=e.F},e=>{y=e.a9,g=e.$,w=e.b,x=e.a0,h=e.n,_=e.b4,b=e.at},e=>{$=e.k,j=e.R,k=e.i,z=e.r,C=e.c,T=e.a0,F=e.F,N=e.aw,O=e.$,P=e.a8,S=e.a9,H=e._,I=e.S,M=e.X,R=e.aa,U=e.j,q=e.l,E=e.Z},null,null,null,null,null,null],execute:function(){var t=document.createElement("style");t.textContent='@charset "UTF-8";.modal-footer-btns[data-v-80434e12]{display:flex;align-items:center;flex-direction:row;justify-content:end;gap:10px;padding:10px}.single-line-ellipsis[data-v-80434e12]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.properties-wrapper[data-v-80434e12]{padding:16px}.properties-wrapper .tab-tit[data-v-80434e12]{display:flex;align-items:center;flex-direction:row;justify-content:start;gap:5px;border-bottom:1px solid #cfcfdc}.properties-wrapper .tab-tit .tab-tit-item[data-v-80434e12]{padding:10px;background:linear-gradient(to bottom,#f5f5f5,#dedede);border:1px solid #cfcfdc;margin-bottom:-1px;cursor:pointer}.properties-wrapper .tab-tit .tab-tit-item.active[data-v-80434e12]{background:#fff;border-bottom:1px solid #fff}.properties-wrapper .content[data-v-80434e12]{height:386px}.properties-wrapper .content .info-group .info-item[data-v-80434e12]{display:flex;align-items:center;flex-direction:row;justify-content:flex-start;min-height:26px;margin:4px 0}.properties-wrapper .content .info-group .info-item .info-item-label[data-v-80434e12]{width:120px;padding:0 10px}.properties-wrapper .content .info-group .info-item .info-item-value[data-v-80434e12]{flex:1;width:0}.properties-wrapper .content .detail-tit[data-v-80434e12],.properties-wrapper .content .detail-row[data-v-80434e12]{display:flex;align-items:center;flex-direction:row;gap:10px;justify-content:flex-start;background:#f6f6f6;padding:10px}.properties-wrapper .content .detail-tit .detail-tit-properties[data-v-80434e12],.properties-wrapper .content .detail-row .detail-tit-properties[data-v-80434e12]{flex:2}.properties-wrapper .content .detail-tit .detail-tit-value[data-v-80434e12],.properties-wrapper .content .detail-row .detail-tit-value[data-v-80434e12]{flex:8}.properties-wrapper .content .detail-row[data-v-80434e12]{background-color:#fff}.properties-wrapper .content .history-tit[data-v-80434e12],.properties-wrapper .content .history-row[data-v-80434e12]{display:flex;align-items:center;flex-direction:row;gap:10px;justify-content:flex-start;background:#f6f6f6;padding:10px}.properties-wrapper .content .history-tit .modify[data-v-80434e12],.properties-wrapper .content .history-row .modify[data-v-80434e12]{flex:3}.properties-wrapper .content .history-tit .size[data-v-80434e12],.properties-wrapper .content .history-row .size[data-v-80434e12]{flex:1}.properties-wrapper .content .history-tit .md5[data-v-80434e12],.properties-wrapper .content .history-row .md5[data-v-80434e12]{flex:4.5}.properties-wrapper .content .history-tit .opt[data-v-80434e12],.properties-wrapper .content .history-row .opt[data-v-80434e12]{flex:1.5}.properties-wrapper .content .history-row[data-v-80434e12]{background:#fff}.restore-history-wrapper[data-v-80434e12]{padding:20px}.restore-history-wrapper .content[data-v-80434e12]{font-size:14px;margin-bottom:10px}.restore-history-wrapper .sub-content[data-v-80434e12]{font-size:12px;color:#525252}\n/*$vite$:1*/',document.head.appendChild(t);const L={class:"properties-wrapper"},W={class:"content"},D={class:"info-group"},K={class:"info-item h-60px"},X={class:"info-item-label"},Z={class:"info-item-value"},A={class:"w-360px"},B={class:"my-10px"},G={class:"info-group"},J={class:"info-item"},Q={class:"info-item-label"},V={class:"info-item-value"},Y={class:"info-item"},ee={class:"info-item-label"},te={class:"info-item-value flex"},ie={class:"max-w-300px"},le={class:"info-item",style:{"margin-bottom":"0"}},re={class:"info-item-label"},ae={class:"info-item-value"},se={class:"my-10px"},oe={class:"info-group"},ne={class:"info-item"},pe={class:"info-item-label"},de={class:"info-item-value"},ue={class:"info-item"},fe={class:"info-item-label"},ce={class:"info-item-value"},me={class:"info-item",style:{"margin-bottom":"0"}},ve={class:"info-item-label"},ye={class:"info-item-value"},ge={class:"my-10px"},we={class:"info-group"},xe={class:"info-item"},he={class:"info-item-label"},_e={class:"info-item-value"},be={class:"info-item"},$e={class:"info-item-label"},je={class:"info-item-value"},ke={class:"content overflow-auto"},ze={width:"200"},Ce={class:"content"};e("default",d($({__name:"Properties",setup(e,{expose:t}){const{t:d}=j(),$=k("fileStore"),{choosedKeys:Te,fileList:Fe,currentPath:Ne}=$,Oe=z(!1),Pe=z("general"),Se=z(!1),He=z({st_atime:0,st_mtime:0,st_ctime:0}),Ie=C((()=>He.value.path?`${He.value.path}/${He.value.name}`:"--")),Me=z([{key:"st_mtime",title:()=>d("file.properties.modifiedTime"),width:154,render:e=>i(e.st_mtime)},{key:"st_size",title:()=>d("file.properties.size"),width:80,render:e=>l(e.st_size)},{key:"md5",title:()=>d("file.properties.md5"),ellipsis:{tooltip:!0}},c({width:110,options:e=>[{label:d("file.properties.view"),onClick:()=>{!async function(e){m(e.history_file,Ne.value)}(e)}},{label:d("file.properties.restore"),onClick:()=>{!async function(e){s({title:d("file.properties.restoreHistoryFiles"),width:480,content:()=>T(F,null,[T("div",null,[d("file.properties.restoreHistoryConfirm",{time:i(e.st_mtime)})]),T("div",{class:"mt-8px text-12px text-default leading-[1.4]"},[d("file.properties.restoreHistoryWarning")])]),onConfirm:async()=>{await async function(e,t){const i=o.loading(d("file.properties.restoring"));try{const{status:i}=await r.post("/files?action=re_history",{filename:e,history:t},{requestOptions:{errorMessage:!1}});0===i?o.success(d("file.properties.restoreSuccess")):o.error(d("file.properties.restoreFailed"))}finally{i.close()}}(`${He.value.path}/${He.value.name}`,e.st_mtime)}})}(e)}}]})]),Re=()=>{f(Ie.value)};return t({open(){Oe.value=!0,async function(e){Se.value=!0;try{const{message:t}=await r.post("/files?action=get_file_attribute",{filename:e},{requestOptions:{isOriginalResult:!0}});a(t)&&(He.value=t)}finally{Se.value=!1}}(Fe.value.find((e=>e.nm==Te.value[0])).path)},close(){Oe.value=!1}}),(e,t)=>{const r=w,a=x,s=h,o=n,d=g,f=_,c=b,m=u,$=y,j=p,k=N("table");return O(),P(j,{show:I(Oe),"onUpdate:show":t[1]||(t[1]=e=>M(Oe)?Oe.value=e:null),width:580,title:`[${I(He).name}] - ${e.$t("file.properties.fileProperties")}`},{default:S((()=>[H("div",L,[T($,{show:I(Se)},{default:S((()=>[T(m,{value:I(Pe),"onUpdate:value":t[0]||(t[0]=e=>M(Pe)?Pe.value=e:null)},{default:S((()=>[T(d,{name:"general",tab:e.$t("file.properties.general")},{default:S((()=>[H("div",W,[H("div",D,[H("div",K,[H("div",X,[T(v,{ext:`${I(He).st_type}`,size:"large"},null,8,["ext"])]),H("div",Z,[H("div",A,[T(r,{value:I(He).name,readonly:""},null,8,["value"])])])])]),H("div",B,[T(a)]),H("div",G,[H("div",J,[H("div",Q,R(e.$t("file.properties.type"))+":",1),H("div",V,R(I(He).st_type),1)]),H("div",Y,[H("div",ee,R(e.$t("file.properties.location"))+":",1),H("div",te,[H("div",ie,[T(s,null,{default:S((()=>[U(R(I(Ie)),1)])),_:1})]),T(o,{class:"ml-10px cursor-pointer",name:"common-copy",size:"14",onClick:Re})])]),H("div",le,[H("div",re,R(e.$t("file.properties.size"))+":",1),H("div",ae,R(I(l)(I(He).st_size)),1)])]),H("div",se,[T(a)]),H("div",oe,[H("div",ne,[H("div",pe,R(e.$t("file.properties.permissions"))+":",1),H("div",de,R(I(He).mode),1)]),H("div",ue,[H("div",fe,R(e.$t("file.properties.group"))+":",1),H("div",ce,R(I(He).group),1)]),H("div",me,[H("div",ve,R(e.$t("file.properties.user"))+":",1),H("div",ye,R(I(He).user),1)])]),H("div",ge,[T(a)]),H("div",we,[H("div",xe,[H("div",he,R(e.$t("file.properties.visitTime"))+":",1),H("div",_e,R(I(i)(I(He).st_atime)),1)]),H("div",be,[H("div",$e,R(e.$t("file.properties.modifiedTime"))+":",1),H("div",je,R(I(i)(I(He).st_mtime)),1)])])])])),_:1},8,["tab"]),T(d,{name:"details",tab:e.$t("file.properties.details")},{default:S((()=>[q((O(),E("div",ke,[T(f,null,{default:S((()=>[H("thead",null,[H("tr",null,[H("th",ze,R(e.$t("file.properties.name")),1),H("th",null,R(e.$t("file.properties.value")),1)])]),H("tbody",null,[H("tr",null,[H("td",null,R(e.$t("file.properties.name")),1),H("td",null,R(I(He).name),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.type")),1),H("td",null,R(I(He).st_type),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.location")),1),H("td",null,R(I(He).path),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.size")),1),H("td",null,R(I(l)(I(He).st_size)),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.visitTime")),1),H("td",null,R(I(i)(I(He).st_atime)),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.modifiedTime")),1),H("td",null,R(I(i)(I(He).st_mtime)),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.metadataModificationTime")),1),H("td",null,R(I(i)(I(He).st_mtime)),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.md5")),1),H("td",null,R(I(He).md5),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.sha1")),1),H("td",null,R(I(He).sha1),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.user")),1),H("td",null,R(I(He).user),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.group")),1),H("td",null,R(I(He).group),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.permissions")),1),H("td",null,R(I(He).mode),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.uid")),1),H("td",null,R(I(He).st_uid),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.gid")),1),H("td",null,R(I(He).st_gid),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.numOfInodeLinks")),1),H("td",null,R(Number(I(He).is_link)),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.inodeNodeNum")),1),H("td",null,R(I(He).st_ino),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.inodeProtectionMode")),1),H("td",null,R(I(He).st_mode),1)]),H("tr",null,[H("td",null,R(e.$t("file.properties.inodeResidentDevice")),1),H("td",null,R(I(He).st_dev),1)])])])),_:1})])),[[k]])])),_:1},8,["tab"]),T(d,{name:"history",tab:e.$t("file.properties.history")},{default:S((()=>[H("div",Ce,[T(c,{"max-height":"386px",columns:I(Me),data:I(He).history||[]},null,8,["columns","data"])])])),_:1},8,["tab"])])),_:1},8,["value"])])),_:1},8,["show"])])])),_:1},8,["show","title"])}}}),[["__scopeId","data-v-80434e12"]]))}}}));