From b72c621dcd258eb4ebbb1d3eb92ae577a93a4f77 Mon Sep 17 00:00:00 2001 From: Lan Date: Mon, 25 Nov 2024 09:35:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=89=AA=E5=88=87=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ut-DFpljGo6.js => AdminLayout-nlTaSI8M.js} | 2 +- ...-V_ky_QUg.js => DashboardView-BUrCNTY5.js} | 2 +- ...DOkmzxxl.js => FileManageView-BNB_pNK3.js} | 2 +- ...View-yrMAxh32.js => LoginView-GeI5hOqD.js} | 2 +- ...8rhpF.js => RetrievewFileView-kEeEF5-W.js} | 2 +- .../dist/assets/SendFileView-BXcnmHJa.js | 21 ------------------- .../dist/assets/SendFileView-CCYPlDiE.css | 1 + .../dist/assets/SendFileView-D1IOhjmE.css | 1 - .../dist/assets/SendFileView-D1ba9W4J.js | 21 +++++++++++++++++++ ...3I32.js => SystemSettingsView-CKNcEAfu.js} | 2 +- ...RSbYMX.js => _commonjsHelpers-D3ZKylXK.js} | 2 +- .../{box-DasTGycM.js => box-BA4Xpd2p.js} | 2 +- .../{file-CuCz68gZ.js => file-K__YxWAi.js} | 2 +- .../{index-DlNqZq-D.js => index-BTJMh68G.js} | 4 ++-- .../{trash-CytZg4YE.js => trash-D-kesX_3.js} | 2 +- fcb-fronted/dist/index.html | 2 +- 16 files changed, 35 insertions(+), 35 deletions(-) rename fcb-fronted/dist/assets/{AdminLayout-DFpljGo6.js => AdminLayout-nlTaSI8M.js} (98%) rename fcb-fronted/dist/assets/{DashboardView-V_ky_QUg.js => DashboardView-BUrCNTY5.js} (98%) rename fcb-fronted/dist/assets/{FileManageView-DOkmzxxl.js => FileManageView-BNB_pNK3.js} (98%) rename fcb-fronted/dist/assets/{LoginView-yrMAxh32.js => LoginView-GeI5hOqD.js} (96%) rename fcb-fronted/dist/assets/{RetrievewFileView-DMP8rhpF.js => RetrievewFileView-kEeEF5-W.js} (99%) delete mode 100644 fcb-fronted/dist/assets/SendFileView-BXcnmHJa.js create mode 100644 fcb-fronted/dist/assets/SendFileView-CCYPlDiE.css delete mode 100644 fcb-fronted/dist/assets/SendFileView-D1IOhjmE.css create mode 100644 fcb-fronted/dist/assets/SendFileView-D1ba9W4J.js rename fcb-fronted/dist/assets/{SystemSettingsView-BrgX3I32.js => SystemSettingsView-CKNcEAfu.js} (99%) rename fcb-fronted/dist/assets/{_commonjsHelpers-BqRSbYMX.js => _commonjsHelpers-D3ZKylXK.js} (99%) rename fcb-fronted/dist/assets/{box-DasTGycM.js => box-BA4Xpd2p.js} (90%) rename fcb-fronted/dist/assets/{file-CuCz68gZ.js => file-K__YxWAi.js} (88%) rename fcb-fronted/dist/assets/{index-DlNqZq-D.js => index-BTJMh68G.js} (99%) rename fcb-fronted/dist/assets/{trash-CytZg4YE.js => trash-D-kesX_3.js} (95%) diff --git a/fcb-fronted/dist/assets/AdminLayout-DFpljGo6.js b/fcb-fronted/dist/assets/AdminLayout-nlTaSI8M.js similarity index 98% rename from fcb-fronted/dist/assets/AdminLayout-DFpljGo6.js rename to fcb-fronted/dist/assets/AdminLayout-nlTaSI8M.js index 1f4a8be2..a88ebd69 100644 --- a/fcb-fronted/dist/assets/AdminLayout-DFpljGo6.js +++ b/fcb-fronted/dist/assets/AdminLayout-nlTaSI8M.js @@ -1,4 +1,4 @@ -import{c as i,B as k,r as h,o as u,J as v,p as d,b as x,d as t,n as o,e,f as n,X as w,F as _,x as M,y as C,z,m as L,K as B,L as D,k as F,t as I}from"./index-DlNqZq-D.js";import{B as j}from"./box-DasTGycM.js";/** +import{c as i,B as k,r as h,o as u,J as v,p as d,b as x,d as t,n as o,e,f as n,X as w,F as _,x as M,y as C,z,m as L,K as B,L as D,k as F,t as I}from"./index-BTJMh68G.js";import{B as j}from"./box-BA4Xpd2p.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/fcb-fronted/dist/assets/DashboardView-V_ky_QUg.js b/fcb-fronted/dist/assets/DashboardView-BUrCNTY5.js similarity index 98% rename from fcb-fronted/dist/assets/DashboardView-V_ky_QUg.js rename to fcb-fronted/dist/assets/DashboardView-BUrCNTY5.js index 8b9a4d4e..9e5e4f17 100644 --- a/fcb-fronted/dist/assets/DashboardView-V_ky_QUg.js +++ b/fcb-fronted/dist/assets/DashboardView-BUrCNTY5.js @@ -1,4 +1,4 @@ -import{c as g,B as v,I as w,o as _,p,b as u,d as t,n as a,e,t as i,f as y,F as k,x as U,z as F,A as M,K as z,L as C}from"./index-DlNqZq-D.js";import{F as m}from"./file-CuCz68gZ.js";import{H as D,T as S}from"./trash-CytZg4YE.js";/** +import{c as g,B as v,I as w,o as _,p,b as u,d as t,n as a,e,t as i,f as y,F as k,x as U,z as F,A as M,K as z,L as C}from"./index-BTJMh68G.js";import{F as m}from"./file-K__YxWAi.js";import{H as D,T as S}from"./trash-D-kesX_3.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/fcb-fronted/dist/assets/FileManageView-DOkmzxxl.js b/fcb-fronted/dist/assets/FileManageView-BNB_pNK3.js similarity index 98% rename from fcb-fronted/dist/assets/FileManageView-DOkmzxxl.js rename to fcb-fronted/dist/assets/FileManageView-BNB_pNK3.js index 72120016..4c687a3b 100644 --- a/fcb-fronted/dist/assets/FileManageView-DOkmzxxl.js +++ b/fcb-fronted/dist/assets/FileManageView-BNB_pNK3.js @@ -1,4 +1,4 @@ -import{c as j,B as T,u as A,r as _,a as k,p as c,b as g,d as t,n as o,e as a,h as P,v as q,f as m,k as H,F as v,x as w,t as d,z as I,A as S}from"./index-DlNqZq-D.js";import{F as L}from"./file-CuCz68gZ.js";/** +import{c as j,B as T,u as A,r as _,a as k,p as c,b as g,d as t,n as o,e as a,h as P,v as q,f as m,k as H,F as v,x as w,t as d,z as I,A as S}from"./index-BTJMh68G.js";import{F as L}from"./file-K__YxWAi.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/fcb-fronted/dist/assets/LoginView-yrMAxh32.js b/fcb-fronted/dist/assets/LoginView-GeI5hOqD.js similarity index 96% rename from fcb-fronted/dist/assets/LoginView-yrMAxh32.js rename to fcb-fronted/dist/assets/LoginView-GeI5hOqD.js index 45413b39..d7d14c5e 100644 --- a/fcb-fronted/dist/assets/LoginView-yrMAxh32.js +++ b/fcb-fronted/dist/assets/LoginView-GeI5hOqD.js @@ -1 +1 @@ -import{H as y,r as u,B as b,u as v,p as w,b as x,d as e,n as l,e as o,f as h,g as k,h as S,v as A,k as V,t as B,z as D,y as P,A as _,_ as j}from"./index-DlNqZq-D.js";import{B as z}from"./box-DasTGycM.js";const M=y("adminData",()=>{const d=u(localStorage.getItem("adminPassword")||"");function n(t){d.value=t,localStorage.setItem("token",t)}return{adminPassword:d,updateAdminPwd:n}}),I={class:"mx-auto h-16 w-16 relative"},L={class:"rounded-md shadow-sm -space-y-px"},N=["disabled"],T=b({__name:"LoginView",setup(d){const n=v(),t=u(""),i=u(!1),s=D("isDarkMode"),c=M(),p=()=>{let a=!0;return t.value?t.value.length<6&&(n.showAlert("密码长度至少为6位","error"),a=!1):(n.showAlert("无效的密码","error"),a=!1),a},m=P(),f=async()=>{if(p()){c.updateAdminPwd(t.value),_.post("/admin/login",{password:t.value}).then(()=>{m.push("/admin")}).catch(a=>{n.showAlert(a.response.data.detail,"error")}),i.value=!0;try{await new Promise(a=>setTimeout(a,2e3))}catch{}finally{i.value=!1}}};return(a,r)=>(w(),x("div",{class:l(["min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8 transition-colors duration-200 relative overflow-hidden",o(s)?"bg-gray-900":"bg-gray-50"])},[r[6]||(r[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:l(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[o(s)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",I,[r[1]||(r[1]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full animate-spin-slow"},null,-1)),r[2]||(r[2]=e("div",{class:"absolute -inset-2 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full opacity-50 blur-md animate-pulse"},null,-1)),e("div",{class:l(["absolute inset-1 rounded-full flex items-center justify-center",o(s)?"bg-gray-800":"bg-white"])},[h(o(z),{class:l(["h-8 w-8",o(s)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:l(["mt-6 text-center text-3xl font-extrabold",o(s)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:k(f,["prevent"])},[r[5]||(r[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",L,[e("div",null,[r[3]||(r[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),S(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":r[0]||(r[0]=g=>t.value=g),class:l(["appearance-none rounded-t-md relative block w-full px-4 py-3 border transition-all duration-200 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-cyan-500 focus:z-10 sm:text-sm backdrop-blur-sm",o(s)?"bg-gray-800/50 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"bg-white/50 border-gray-300 text-gray-900 hover:border-gray-400"]),placeholder:"密码"},null,2),[[A,t.value]])])]),e("div",null,[e("button",{type:"submit",class:l(["group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm font-medium rounded-md text-white transition-all duration-300 transform hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-cyan-500 shadow-lg hover:shadow-cyan-500/50",o(s)?"bg-gradient-to-r from-cyan-500 to-purple-500 hover:from-cyan-600 hover:to-purple-600":"bg-gradient-to-r from-cyan-600 to-purple-600 hover:from-cyan-700 hover:to-purple-700",i.value?"opacity-75 cursor-not-allowed":""]),disabled:i.value},[r[4]||(r[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),V(" "+B(i.value?"登录中...":"登录"),1)],10,N)])],32)],2)],2))}}),E=j(T,[["__scopeId","data-v-2e50c3fa"]]);export{E as default}; +import{H as y,r as u,B as b,u as v,p as w,b as x,d as e,n as l,e as o,f as h,g as k,h as S,v as A,k as V,t as B,z as D,y as P,A as _,_ as j}from"./index-BTJMh68G.js";import{B as z}from"./box-BA4Xpd2p.js";const M=y("adminData",()=>{const d=u(localStorage.getItem("adminPassword")||"");function n(t){d.value=t,localStorage.setItem("token",t)}return{adminPassword:d,updateAdminPwd:n}}),I={class:"mx-auto h-16 w-16 relative"},L={class:"rounded-md shadow-sm -space-y-px"},N=["disabled"],T=b({__name:"LoginView",setup(d){const n=v(),t=u(""),i=u(!1),s=D("isDarkMode"),c=M(),p=()=>{let a=!0;return t.value?t.value.length<6&&(n.showAlert("密码长度至少为6位","error"),a=!1):(n.showAlert("无效的密码","error"),a=!1),a},m=P(),f=async()=>{if(p()){c.updateAdminPwd(t.value),_.post("/admin/login",{password:t.value}).then(()=>{m.push("/admin")}).catch(a=>{n.showAlert(a.response.data.detail,"error")}),i.value=!0;try{await new Promise(a=>setTimeout(a,2e3))}catch{}finally{i.value=!1}}};return(a,r)=>(w(),x("div",{class:l(["min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8 transition-colors duration-200 relative overflow-hidden",o(s)?"bg-gray-900":"bg-gray-50"])},[r[6]||(r[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:l(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[o(s)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",I,[r[1]||(r[1]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full animate-spin-slow"},null,-1)),r[2]||(r[2]=e("div",{class:"absolute -inset-2 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full opacity-50 blur-md animate-pulse"},null,-1)),e("div",{class:l(["absolute inset-1 rounded-full flex items-center justify-center",o(s)?"bg-gray-800":"bg-white"])},[h(o(z),{class:l(["h-8 w-8",o(s)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:l(["mt-6 text-center text-3xl font-extrabold",o(s)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:k(f,["prevent"])},[r[5]||(r[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",L,[e("div",null,[r[3]||(r[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),S(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":r[0]||(r[0]=g=>t.value=g),class:l(["appearance-none rounded-t-md relative block w-full px-4 py-3 border transition-all duration-200 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-cyan-500 focus:z-10 sm:text-sm backdrop-blur-sm",o(s)?"bg-gray-800/50 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"bg-white/50 border-gray-300 text-gray-900 hover:border-gray-400"]),placeholder:"密码"},null,2),[[A,t.value]])])]),e("div",null,[e("button",{type:"submit",class:l(["group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm font-medium rounded-md text-white transition-all duration-300 transform hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-cyan-500 shadow-lg hover:shadow-cyan-500/50",o(s)?"bg-gradient-to-r from-cyan-500 to-purple-500 hover:from-cyan-600 hover:to-purple-600":"bg-gradient-to-r from-cyan-600 to-purple-600 hover:from-cyan-700 hover:to-purple-700",i.value?"opacity-75 cursor-not-allowed":""]),disabled:i.value},[r[4]||(r[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),V(" "+B(i.value?"登录中...":"登录"),1)],10,N)])],32)],2)],2))}}),E=j(T,[["__scopeId","data-v-2e50c3fa"]]);export{E as default}; diff --git a/fcb-fronted/dist/assets/RetrievewFileView-DMP8rhpF.js b/fcb-fronted/dist/assets/RetrievewFileView-kEeEF5-W.js similarity index 99% rename from fcb-fronted/dist/assets/RetrievewFileView-DMP8rhpF.js rename to fcb-fronted/dist/assets/RetrievewFileView-kEeEF5-W.js index 6260a1f0..9479eace 100644 --- a/fcb-fronted/dist/assets/RetrievewFileView-DMP8rhpF.js +++ b/fcb-fronted/dist/assets/RetrievewFileView-kEeEF5-W.js @@ -1,4 +1,4 @@ -var qe=Object.defineProperty;var De=(d,e,t)=>e in d?qe(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>De(d,typeof e!="symbol"?e+"":e,t);import{c as _e,_ as Pe,u as Fe,s as Ze,r as q,o as Oe,w as Ue,a as Qe,b as I,d as p,n as k,e as f,f as _,g as He,h as Ne,v as Ve,i as Y,t as D,j as U,k as Z,T as oe,l as Ge,m as Xe,p as C,X as ge,q as We,F as Ke,x as Je,y as Ye,z as et,A as tt}from"./index-DlNqZq-D.js";import{c as Q,u as nt,S as st,C as it,a as rt,Q as ot,E as lt}from"./_commonjsHelpers-BqRSbYMX.js";import{B as at}from"./box-DasTGycM.js";import{F as xe}from"./file-CuCz68gZ.js";import{H as ct,T as ut}from"./trash-CytZg4YE.js";/** +var qe=Object.defineProperty;var De=(d,e,t)=>e in d?qe(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>De(d,typeof e!="symbol"?e+"":e,t);import{c as _e,_ as Pe,u as Fe,s as Ze,r as q,o as Oe,w as Ue,a as Qe,b as I,d as p,n as k,e as f,f as _,g as He,h as Ne,v as Ve,i as Y,t as D,j as U,k as Z,T as oe,l as Ge,m as Xe,p as C,X as ge,q as We,F as Ke,x as Je,y as Ye,z as et,A as tt}from"./index-BTJMh68G.js";import{c as Q,u as nt,S as st,C as it,a as rt,Q as ot,E as lt}from"./_commonjsHelpers-D3ZKylXK.js";import{B as at}from"./box-BA4Xpd2p.js";import{F as xe}from"./file-K__YxWAi.js";import{H as ct,T as ut}from"./trash-D-kesX_3.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/fcb-fronted/dist/assets/SendFileView-BXcnmHJa.js b/fcb-fronted/dist/assets/SendFileView-BXcnmHJa.js deleted file mode 100644 index 6a469bea..00000000 --- a/fcb-fronted/dist/assets/SendFileView-BXcnmHJa.js +++ /dev/null @@ -1,21 +0,0 @@ -import{c as W,B as te,r as T,o as re,w as he,p as F,b as $,d as i,_ as oe,u as pe,a as ge,n as h,e as l,g as G,f as C,j as N,i as E,t as P,h as J,v as Z,T as K,C as ye,D as ve,k as j,X as be,q as xe,F as me,x as we,y as _e,z as Ce,A as Ae,m as Se}from"./index-DlNqZq-D.js";import{g as Me,u as Be,S as Te,C as Ie,a as ke,Q as Ue,E as De}from"./_commonjsHelpers-BqRSbYMX.js";import{F as ee}from"./file-CuCz68gZ.js";import{H as Fe,T as $e}from"./trash-CytZg4YE.js";/** - * @license lucide-vue-next v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ze=W("ClipboardCopyIcon",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);/** - * @license lucide-vue-next v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Pe=W("ClockIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** - * @license lucide-vue-next v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Le=W("CloudUploadIcon",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/** - * @license lucide-vue-next v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const je=W("SendIcon",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Re=te({__name:"BorderProgressBar",props:{progress:{}},setup(q){const R=q,c=T(null),B=T(null);let d=null;const _=()=>{if(!d||!B.value||!c.value)return;const w=c.value.clientWidth,y=c.value.clientHeight;B.value.width=w,B.value.height=y;const v=4,u=8;d.lineWidth=v;const A=d.createLinearGradient(0,0,w,y);A.addColorStop(0,"#4f46e5"),A.addColorStop(.5,"#7c3aed"),A.addColorStop(1,"#db2777"),d.strokeStyle="rgba(229, 231, 235, 0.2)",U(d,v/2,v/2,w-v,y-v,u),d.stroke();const M=((w+y)*2-8*u+2*Math.PI*u)*R.progress/100;d.strokeStyle=A,d.lineCap="round",d.lineJoin="round",d.beginPath();let m=M;const b=v/2,g=w-v,a=y-v;if(m>0){const n=Math.min(g-2*u,m);d.moveTo(u+b,b),d.lineTo(n+u+b,b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(g-u+b,u+b,u,-Math.PI/2,n-Math.PI/2,!1),m-=n*u}if(m>0){const n=Math.min(a-2*u,m);d.lineTo(g+b,n+u+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(g-u+b,a-u+b,u,0,n,!1),m-=n*u}if(m>0){const n=Math.min(g-2*u,m);d.lineTo(g-n-u+b,a+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(u+b,a-u+b,u,Math.PI/2,Math.PI/2+n,!1),m-=n*u}if(m>0){const n=Math.min(a-2*u,m);d.lineTo(b,a-n-u+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(u+b,u+b,u,Math.PI,Math.PI+n,!1)}d.stroke()};function U(w,y,v,u,A,x){w.beginPath(),w.moveTo(y+x,v),w.lineTo(y+u-x,v),w.arcTo(y+u,v,y+u,v+x,x),w.lineTo(y+u,v+A-x),w.arcTo(y+u,v+A,y+u-x,v+A,x),w.lineTo(y+x,v+A),w.arcTo(y,v+A,y,v+A-x,x),w.lineTo(y,v+x),w.arcTo(y,v,y+x,v,x),w.closePath()}return re(()=>{B.value&&(d=B.value.getContext("2d"),_())}),he(()=>R.progress,_),(w,y)=>(F(),$("div",{class:"border-progress-container",ref_key:"container",ref:c},[i("canvas",{ref_key:"canvas",ref:B,class:"border-progress-canvas"},null,512)],512))}}),Ve=oe(Re,[["__scopeId","data-v-2fbf5085"]]);var ne={exports:{}};(function(q,R){(function(c){q.exports=c()})(function(c){var B=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function d(a,n){var t=a[0],e=a[1],o=a[2],r=a[3];t+=(e&o|~e&r)+n[0]-680876936|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[1]-389564586|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[2]+606105819|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[3]-1044525330|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[4]-176418897|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[5]+1200080426|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[6]-1473231341|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[7]-45705983|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[8]+1770035416|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[9]-1958414417|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[10]-42063|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[11]-1990404162|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[12]+1804603682|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[13]-40341101|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[14]-1502002290|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[15]+1236535329|0,e=(e<<22|e>>>10)+o|0,t+=(e&r|o&~r)+n[1]-165796510|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[6]-1069501632|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[11]+643717713|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[0]-373897302|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[5]-701558691|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[10]+38016083|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[15]-660478335|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[4]-405537848|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[9]+568446438|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[14]-1019803690|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[3]-187363961|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[8]+1163531501|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[13]-1444681467|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[2]-51403784|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[7]+1735328473|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[12]-1926607734|0,e=(e<<20|e>>>12)+o|0,t+=(e^o^r)+n[5]-378558|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[8]-2022574463|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[11]+1839030562|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[14]-35309556|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[1]-1530992060|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[4]+1272893353|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[7]-155497632|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[10]-1094730640|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[13]+681279174|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[0]-358537222|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[3]-722521979|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[6]+76029189|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[9]-640364487|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[12]-421815835|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[15]+530742520|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[2]-995338651|0,e=(e<<23|e>>>9)+o|0,t+=(o^(e|~r))+n[0]-198630844|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[7]+1126891415|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[14]-1416354905|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[5]-57434055|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[12]+1700485571|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[3]-1894986606|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[10]-1051523|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[1]-2054922799|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[8]+1873313359|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[15]-30611744|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[6]-1560198380|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[13]+1309151649|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[4]-145523070|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[11]-1120210379|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[2]+718787259|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[9]-343485551|0,e=(e<<21|e>>>11)+o|0,a[0]=t+a[0]|0,a[1]=e+a[1]|0,a[2]=o+a[2]|0,a[3]=r+a[3]|0}function _(a){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=a.charCodeAt(t)+(a.charCodeAt(t+1)<<8)+(a.charCodeAt(t+2)<<16)+(a.charCodeAt(t+3)<<24);return n}function U(a){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=a[t]+(a[t+1]<<8)+(a[t+2]<<16)+(a[t+3]<<24);return n}function w(a){var n=a.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,S,D,z;for(e=64;e<=n;e+=64)d(t,_(a.substring(e-64,e)));for(a=a.substring(e-64),o=a.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e>2]|=a.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return S=n*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(S[2],16),z=parseInt(S[1],16)||0,r[14]=D,r[15]=z,d(t,r),t}function y(a){var n=a.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,S,D,z;for(e=64;e<=n;e+=64)d(t,U(a.subarray(e-64,e)));for(a=e-64>2]|=a[e]<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return S=n*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(S[2],16),z=parseInt(S[1],16)||0,r[14]=D,r[15]=z,d(t,r),t}function v(a){var n="",t;for(t=0;t<4;t+=1)n+=B[a>>t*8+4&15]+B[a>>t*8&15];return n}function u(a){var n;for(n=0;nr?new ArrayBuffer(0):(S=r-o,D=new ArrayBuffer(S),z=new Uint8Array(D),V=new Uint8Array(this,o,S),z.set(V),D)}}();function A(a){return/[\u0080-\uFFFF]/.test(a)&&(a=unescape(encodeURIComponent(a))),a}function x(a,n){var t=a.length,e=new ArrayBuffer(t),o=new Uint8Array(e),r;for(r=0;r>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,t),r=u(this._hash),a&&(r=b(r)),this.reset(),r},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(a){return this._buff=a.buff,this._length=a.length,this._hash=a.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(a,n){var t=n,e,o,r;if(a[t>>2]|=128<<(t%4<<3),t>55)for(d(this._hash,a),t=0;t<16;t+=1)a[t]=0;e=this._length*8,e=e.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(e[2],16),r=parseInt(e[1],16)||0,a[14]=o,a[15]=r,d(this._hash,a)},g.hash=function(a,n){return g.hashBinary(A(a),n)},g.hashBinary=function(a,n){var t=w(a),e=u(t);return n?b(e):e},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(a){var n=m(this._buff.buffer,a),t=n.length,e;for(this._length+=a.byteLength,e=64;e<=t;e+=64)d(this._hash,U(n.subarray(e-64,e)));return this._buff=e-64>2]|=n[o]<<(o%4<<3);return this._finish(e,t),r=u(this._hash),a&&(r=b(r)),this.reset(),r},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var a=g.prototype.getState.call(this);return a.buff=M(a.buff),a},g.ArrayBuffer.prototype.setState=function(a){return a.buff=x(a.buff,!0),g.prototype.setState.call(this,a)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(a,n){var t=y(new Uint8Array(a)),e=u(t);return n?b(e):e},g})})(ne);var He=ne.exports;const Ne=Me(He),Ee={class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300"},qe={class:"p-8"},We={class:"flex justify-center space-x-4 mb-6"},Qe={key:"file",class:"grid grid-cols-1 gap-8"},Ge={key:0,class:"absolute inset-0 w-full h-full"},Je={class:"block truncate"},Ke={key:"text",class:"grid grid-cols-1 gap-8"},Oe={key:0,class:"flex flex-col"},Xe={class:"flex flex-col space-y-4"},Ye={key:0,class:"flex items-center space-x-2"},Ze={class:"relative flex-grow"},et=["placeholder"],tt={type:"submit",class:"w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-4 px-6 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition-all duration-300 transform hover:scale-105 hover:shadow-lg relative overflow-hidden group"},rt={class:"relative z-10 flex items-center justify-center text-lg"},ot={class:"mt-6 text-center"},nt={class:"flex-grow overflow-y-auto p-6"},at={class:"flex-shrink-0 mr-4"},st={class:"flex-grow min-w-0 mr-4"},it={class:"flex-shrink-0 flex space-x-2"},lt=["onClick"],ut=["onClick"],ct=["onClick"],dt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},ft={class:"space-y-4"},ht={class:"flex items-center"},pt={class:"flex items-center"},gt={class:"flex items-center"},yt={class:"flex items-center"},vt={class:"mt-6 flex justify-between items-center"},bt={class:"flex flex-col items-center w-1/2 pr-2"},xt={class:"text-2xl font-bold text-indigo-600"},mt={class:"flex flex-col items-center w-1/2 pl-2"},wt={class:"bg-white p-2 rounded-lg shadow-md"},_t=te({__name:"SendFileView",setup(q){const R=_e(),c=Ce("isDarkMode"),B=Be(),d=T("file"),_=T(null),U=T(""),w=T(null),y=T("day"),v=T("1"),u=T(0),A=T(!1),x=T(null),M=pe(),m=ge(()=>B.shareData),b=T(""),g=T(new Set),a=()=>{var f;(f=w.value)==null||f.click()},n=async f=>{const s=f.target;s.files&&s.files.length>0&&(_.value=s.files[0],b.value=await e(_.value))},t=async f=>{var s;(s=f.dataTransfer)!=null&&s.files&&f.dataTransfer.files.length>0&&(_.value=f.dataTransfer.files[0],b.value=await e(_.value),o())},e=async f=>new Promise(s=>{const p=new Ne.ArrayBuffer,k=new FileReader;let L=0;const Q=Math.ceil(f.size/2097152);k.onload=H=>{p.append(H.target.result),L++,L{const H=L*2097152,fe=H+2097152>=f.size?f.size:H+2097152;k.readAsArrayBuffer(f.slice(H,fe))};Y()}),o=async()=>{if(!_.value)return;const f=1024*1024,s=Math.ceil(_.value.size/f),{uploadedList:I}=await r(b.value);g.value=new Set(I);for(let p=0;p(console.log(f),new Promise(s=>{setTimeout(()=>{s({uploadedList:[]})},500)})),S=async(f,s,I)=>new Promise(p=>{setTimeout(()=>{console.log(`上传切片 ${s+1}/${I}`),g.value.add(s),p()},500)}),D=async(f,s)=>{console.log(`请求合并文件切片, fileHash: ${f}, totalChunks: ${s}`)},z=()=>{switch(y.value){case"day":return"输入天数";case"hour":return"输入小时数";case"minute":return"输入分钟数";case"count":return"输入查看次数";case"forever":return"永久";default:return"输入值"}},V=()=>{switch(y.value){case"day":return"天";case"hour":return"小时";case"minute":return"分钟";case"count":return"次";case"forever":return"永久";default:return""}},ae=async()=>{if(d.value==="file"&&!_.value){M.showAlert("请选择要上传的文件","error");return}if(d.value==="text"&&!U.value.trim()){M.showAlert("请输入要发送的文本","error");return}if(y.value!=="forever"&&!v.value){M.showAlert("请输入过期值","error");return}try{let f;const s=new FormData;if(d.value==="file")s.append("file",_.value);else{const p=new Blob([U.value],{type:"text/plain"});s.append("file",p,"text_content.txt")}y.value!=="forever"&&s.append("expire_value",v.value),s.append("expire_style",y.value);const I={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:p=>{const k=Math.round(p.loaded*100/p.total);u.value=k}};if(f=await Ae.post("/share/file/",s,I),f&&f.code===200){const p=f.detail.code,k=f.detail.name,L={id:Date.now(),filename:k,date:new Date().toISOString().split("T")[0],size:d.value==="text"?`${(U.value.length/1024).toFixed(2)} KB`:`${(_.value.size/(1024*1024)).toFixed(1)} MB`,expiration:y.value==="forever"?"永久":`${v.value}${V()}后过期`,retrieveCode:p};B.addShareData(L),M.showAlert(`文件发送成功!取件码:${p}`,"success"),_.value=null,U.value="",v.value="",u.value=0,A.value=!0,await X(p)}else throw new Error("服务器响应异常")}catch(f){console.error("发送失败:",f),f.response.data.detail?M.showAlert(f.response.data.detail,"error"):M.showAlert("发送失败,请稍后重试","error")}finally{u.value=0}},se=()=>{R.push("/")},O=()=>{A.value=!A.value},ie=f=>{x.value=f},le=f=>{const s=B.shareData.findIndex(I=>I.id===f);s!==-1&&B.deleteShareData(s)},ue="",ce=f=>`${ue}/?code=${f.retrieveCode}`,de=async f=>{try{await navigator.clipboard.writeText(f),M.showAlert("取件码已复制到剪贴板","success")}catch(s){console.error("无法复制取件码: ",s),M.showAlert("复制失败,请手动复制取件码","error")}},X=async f=>{const s=`${window.location.origin}/#/?code=${f}`;try{await navigator.clipboard.writeText(s),M.showAlert("取件链接已复制到剪贴板","success")}catch(I){console.error("无法复制取件链接: ",I),M.showAlert("复制失败,请动复制取件链接","error")}};return re(()=>{console.log("SendFileView mounted")}),(f,s)=>{const I=Se("router-link");return F(),$("div",Ee,[i("div",{class:h(["rounded-3xl shadow-2xl overflow-hidden border w-full max-w-md transition-colors duration-300",[l(c)?"bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[i("div",qe,[i("h2",{class:h(["text-3xl font-extrabold text-center mb-8 cursor-pointer transition-colors duration-300",[l(c)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]]),onClick:se}," FileCodeBox ",2),i("form",{onSubmit:G(ae,["prevent"]),class:"space-y-8"},[i("div",We,[i("button",{type:"button",onClick:s[0]||(s[0]=p=>d.value="file"),class:h(["px-4 py-2 rounded-lg",d.value==="file"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文件 ",2),i("button",{type:"button",onClick:s[1]||(s[1]=p=>d.value="text"),class:h(["px-4 py-2 rounded-lg",d.value==="text"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文本 ",2)]),C(K,{name:"fade",mode:"out-in"},{default:N(()=>[d.value==="file"?(F(),$("div",Qe,[i("div",{class:h(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[l(c)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500"]]),onClick:a,onDragover:s[2]||(s[2]=G(()=>{},["prevent"])),onDrop:G(t,["prevent"])},[i("input",{id:"file-upload",type:"file",class:"hidden",onChange:n,ref_key:"fileInput",ref:w},null,544),u.value>0?(F(),$("div",Ge,[C(Ve,{progress:u.value},null,8,["progress"])])):E("",!0),C(l(Le),{class:h(["w-16 h-16 transition-colors duration-300",l(c)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},null,8,["class"]),i("p",{class:h(["mt-4 text-sm transition-colors duration-300 w-full text-center",l(c)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[i("span",Je,P(_.value?_.value.name:"点击或拖放文件到此处上传"),1)],2),i("p",{class:h(["mt-2 text-xs",l(c)?"text-gray-500":"text-gray-400"])}," 支持各种常见格式,最大20MB ",2)],34)])):(F(),$("div",Ke,[d.value==="text"?(F(),$("div",Oe,[J(i("textarea",{id:"text-content","onUpdate:modelValue":s[3]||(s[3]=p=>U.value=p),rows:"7",class:h(["flex-grow px-4 py-3 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition duration-300 resize-none",l(c)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"]),placeholder:"在此输入要发送的文本..."},null,2),[[Z,U.value]])])):E("",!0)]))]),_:1}),i("div",Xe,[i("label",{class:h(["text-sm font-medium",l(c)?"text-gray-300":"text-gray-700"])}," 过期方式 ",2),J(i("select",{"onUpdate:modelValue":s[4]||(s[4]=p=>y.value=p),class:h(["px-4 py-2 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-500",l(c)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},s[8]||(s[8]=[ve('',5)]),2),[[ye,y.value]]),y.value!=="forever"?(F(),$("div",Ye,[i("div",Ze,[J(i("input",{"onUpdate:modelValue":s[5]||(s[5]=p=>v.value=p),type:"number",placeholder:z(),class:h(["w-full px-4 py-2 pr-16 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500",l(c)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},null,10,et),[[Z,v.value]]),i("span",{class:h(["absolute right-3 top-1/2 transform -translate-y-1/2",l(c)?"text-gray-300":"text-gray-700"])},P(V()),3)])])):E("",!0)]),i("button",tt,[s[10]||(s[10]=i("span",{class:"absolute top-0 left-0 w-full h-full bg-white opacity-0 group-hover:opacity-20 transition-opacity duration-300"},null,-1)),i("span",rt,[C(l(je),{class:"w-6 h-6 mr-2"}),s[9]||(s[9]=i("span",null,"安全寄送",-1))])])],32),i("div",ot,[C(I,{to:"/",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:N(()=>s[11]||(s[11]=[j(" 需要取件?点击这里 ")])),_:1})])]),i("div",{class:h(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[l(c)?"bg-gray-800":"bg-gray-100"]])},[i("span",{class:h(["text-sm flex items-center",[l(c)?"text-gray-300":"text-gray-800"]])},[C(l(Te),{class:"w-4 h-4 mr-1 text-green-400"}),s[12]||(s[12]=j(" 安全加密 "))],2),i("button",{onClick:O,class:h(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[l(c)?"text-indigo-400":"text-indigo-600"]])},[s[13]||(s[13]=j(" 发件记录 ")),C(l(Ie),{class:"w-4 h-4 ml-1"})],2)],2)],2),C(K,{name:"drawer"},{default:N(()=>[A.value?(F(),$("div",{key:0,class:h(["fixed inset-y-0 right-0 w-full sm:w-120 bg-opacity-70 backdrop-filter backdrop-blur-xl shadow-2xl z-50 overflow-hidden flex flex-col",[l(c)?"bg-gray-900":"bg-white"]])},[i("div",{class:h(["flex justify-between items-center p-6 border-b",[l(c)?"border-gray-700":"border-gray-200"]])},[i("h3",{class:h(["text-2xl font-bold",[l(c)?"text-white":"text-gray-800"]])}," 发件记录 ",2),i("button",{onClick:O,class:h(["hover:text-white transition duration-300",[l(c)?"text-gray-400":"text-gray-800"]])},[C(l(be),{class:"w-6 h-6"})],2)],2),i("div",nt,[C(xe,{name:"list",tag:"div",class:"space-y-4"},{default:N(()=>[(F(!0),$(me,null,we(m.value,p=>(F(),$("div",{key:p.id,class:h(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[l(c)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[i("div",at,[C(l(ee),{class:h(["w-10 h-10",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),i("div",st,[i("p",{class:h(["font-medium text-lg truncate",[l(c)?"text-white":"text-gray-800"]])},P(p.filename),3),i("p",{class:h(["text-sm truncate",[l(c)?"text-gray-400":"text-gray-600"]])},P(p.date)+" · "+P(p.size),3)]),i("div",it,[i("button",{onClick:k=>X(p.retrieveCode),class:h(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(c)?"hover:bg-blue-400 text-blue-400":"hover:bg-blue-100 text-blue-600"]])},[C(l(ze),{class:"w-5 h-5"})],10,lt),i("button",{onClick:k=>ie(p),class:h(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(c)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[C(l(De),{class:"w-5 h-5"})],10,ut),i("button",{onClick:k=>le(p.id),class:h(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(c)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[C(l($e),{class:"w-5 h-5"})],10,ct)])],2))),128))]),_:1})])],2)):E("",!0)]),_:1}),C(K,{name:"fade"},{default:N(()=>[x.value?(F(),$("div",dt,[i("div",{class:h(["p-8 rounded-2xl max-w-md w-full mx-4 shadow-2xl transform transition-all duration-300 ease-out backdrop-filter backdrop-blur-lg bg-opacity-70",[l(c)?"bg-gray-800":"bg-white"]])},[i("h3",{class:h(["text-2xl font-bold mb-6",[l(c)?"text-white":"text-gray-800"]])}," 文件详情 ",2),i("div",ft,[i("div",ht,[C(l(ee),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[14]||(s[14]=i("span",{class:"font-medium"},"文件名:",-1)),j(P(x.value.filename),1)],2)]),i("div",pt,[C(l(ke),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[15]||(s[15]=i("span",{class:"font-medium"},"发送日期:",-1)),j(P(x.value.date),1)],2)]),i("div",gt,[C(l(Fe),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[16]||(s[16]=i("span",{class:"font-medium"},"文件大小:",-1)),j(P(x.value.size),1)],2)]),i("div",yt,[C(l(Pe),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[17]||(s[17]=i("span",{class:"font-medium"},"过期时间:",-1)),j(P(x.value.expiration),1)],2)])]),i("div",vt,[i("div",bt,[i("h4",{class:h(["text-lg font-semibold mb-3",[l(c)?"text-white":"text-gray-800"]])}," 取件码 ",2),i("div",{class:"bg-gray-100 p-3 rounded-lg shadow-md cursor-pointer hover:bg-gray-200 transition-colors duration-300 w-full text-center",onClick:s[6]||(s[6]=p=>de(x.value.retrieveCode))},[i("p",xt,P(x.value.retrieveCode),1)]),i("p",{class:h(["mt-2 text-sm",[l(c)?"text-gray-400":"text-gray-600"]])}," 点击复制取件码 ",2)]),i("div",mt,[i("h4",{class:h(["text-lg font-semibold mb-3",[l(c)?"text-white":"text-gray-800"]])}," 二维码 ",2),i("div",wt,[C(Ue,{value:ce(x.value),size:128,level:"M"},null,8,["value"])]),i("p",{class:h(["mt-2 text-sm",[l(c)?"text-gray-400":"text-gray-600"]])}," 扫描二维码快速取件 ",2)])]),i("button",{onClick:s[7]||(s[7]=p=>x.value=null),class:"mt-8 w-full bg-gradient-to-r from-indigo-500 to-purple-600 text-white px-6 py-3 rounded-lg font-medium hover:from-indigo-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition duration-300 transform hover:scale-105"}," 关闭 ")],2)])):E("",!0)]),_:1})])}}}),Bt=oe(_t,[["__scopeId","data-v-675446d2"]]);export{Bt as default}; diff --git a/fcb-fronted/dist/assets/SendFileView-CCYPlDiE.css b/fcb-fronted/dist/assets/SendFileView-CCYPlDiE.css new file mode 100644 index 00000000..4a86ddfa --- /dev/null +++ b/fcb-fronted/dist/assets/SendFileView-CCYPlDiE.css @@ -0,0 +1 @@ +.border-progress-container[data-v-2fbf5085]{position:relative;width:100%;height:100%}.border-progress-canvas[data-v-2fbf5085]{position:absolute;top:0;left:0;width:100%;height:100%;transition:all .3s ease}.fade-enter-active[data-v-78e18ce2],.fade-leave-active[data-v-78e18ce2]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-78e18ce2],.fade-leave-to[data-v-78e18ce2]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-78e18ce2]{width:30rem}}.fade-enter-to[data-v-78e18ce2],.fade-leave-from[data-v-78e18ce2]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-78e18ce2],.drawer-leave-active[data-v-78e18ce2]{transition:transform .3s ease}.drawer-enter-from[data-v-78e18ce2],.drawer-leave-to[data-v-78e18ce2]{transform:translate(100%)}.list-enter-active[data-v-78e18ce2],.list-leave-active[data-v-78e18ce2]{transition:all .5s ease}.list-enter-from[data-v-78e18ce2],.list-leave-to[data-v-78e18ce2]{opacity:0;transform:translate(30px)} diff --git a/fcb-fronted/dist/assets/SendFileView-D1IOhjmE.css b/fcb-fronted/dist/assets/SendFileView-D1IOhjmE.css deleted file mode 100644 index 10a13065..00000000 --- a/fcb-fronted/dist/assets/SendFileView-D1IOhjmE.css +++ /dev/null @@ -1 +0,0 @@ -.border-progress-container[data-v-2fbf5085]{position:relative;width:100%;height:100%}.border-progress-canvas[data-v-2fbf5085]{position:absolute;top:0;left:0;width:100%;height:100%;transition:all .3s ease}.fade-enter-active[data-v-675446d2],.fade-leave-active[data-v-675446d2]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-675446d2],.fade-leave-to[data-v-675446d2]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-675446d2]{width:30rem}}.fade-enter-to[data-v-675446d2],.fade-leave-from[data-v-675446d2]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-675446d2],.drawer-leave-active[data-v-675446d2]{transition:transform .3s ease}.drawer-enter-from[data-v-675446d2],.drawer-leave-to[data-v-675446d2]{transform:translate(100%)}.list-enter-active[data-v-675446d2],.list-leave-active[data-v-675446d2]{transition:all .5s ease}.list-enter-from[data-v-675446d2],.list-leave-to[data-v-675446d2]{opacity:0;transform:translate(30px)} diff --git a/fcb-fronted/dist/assets/SendFileView-D1ba9W4J.js b/fcb-fronted/dist/assets/SendFileView-D1ba9W4J.js new file mode 100644 index 00000000..cf5d30db --- /dev/null +++ b/fcb-fronted/dist/assets/SendFileView-D1ba9W4J.js @@ -0,0 +1,21 @@ +import{c as W,B as te,r as T,o as re,w as pe,p as F,b as $,d as i,_ as oe,u as ne,a as ge,n as f,e as l,g as G,f as A,j as N,i as q,t as L,h as J,v as Y,T as K,C as ye,D as ve,k as V,X as be,q as xe,F as me,x as we,y as _e,z as Ce,A as Ae,m as Me}from"./index-BTJMh68G.js";import{g as Se,u as Be,S as Te,C as Ie,a as ke,Q as Ue,E as De}from"./_commonjsHelpers-D3ZKylXK.js";import{F as Z}from"./file-K__YxWAi.js";import{H as Fe,T as $e}from"./trash-D-kesX_3.js";/** + * @license lucide-vue-next v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ze=W("ClipboardCopyIcon",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);/** + * @license lucide-vue-next v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pe=W("ClockIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-vue-next v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Le=W("CloudUploadIcon",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/** + * @license lucide-vue-next v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const je=W("SendIcon",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Re=te({__name:"BorderProgressBar",props:{progress:{}},setup(k){const j=k,u=T(null),B=T(null);let d=null;const _=()=>{if(!d||!B.value||!u.value)return;const w=u.value.clientWidth,y=u.value.clientHeight;B.value.width=w,B.value.height=y;const v=4,c=8;d.lineWidth=v;const M=d.createLinearGradient(0,0,w,y);M.addColorStop(0,"#4f46e5"),M.addColorStop(.5,"#7c3aed"),M.addColorStop(1,"#db2777"),d.strokeStyle="rgba(229, 231, 235, 0.2)",C(d,v/2,v/2,w-v,y-v,c),d.stroke();const U=((w+y)*2-8*c+2*Math.PI*c)*j.progress/100;d.strokeStyle=M,d.lineCap="round",d.lineJoin="round",d.beginPath();let m=U;const b=v/2,g=w-v,a=y-v;if(m>0){const n=Math.min(g-2*c,m);d.moveTo(c+b,b),d.lineTo(n+c+b,b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/c);d.arc(g-c+b,c+b,c,-Math.PI/2,n-Math.PI/2,!1),m-=n*c}if(m>0){const n=Math.min(a-2*c,m);d.lineTo(g+b,n+c+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/c);d.arc(g-c+b,a-c+b,c,0,n,!1),m-=n*c}if(m>0){const n=Math.min(g-2*c,m);d.lineTo(g-n-c+b,a+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/c);d.arc(c+b,a-c+b,c,Math.PI/2,Math.PI/2+n,!1),m-=n*c}if(m>0){const n=Math.min(a-2*c,m);d.lineTo(b,a-n-c+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/c);d.arc(c+b,c+b,c,Math.PI,Math.PI+n,!1)}d.stroke()};function C(w,y,v,c,M,x){w.beginPath(),w.moveTo(y+x,v),w.lineTo(y+c-x,v),w.arcTo(y+c,v,y+c,v+x,x),w.lineTo(y+c,v+M-x),w.arcTo(y+c,v+M,y+c-x,v+M,x),w.lineTo(y+x,v+M),w.arcTo(y,v+M,y,v+M-x,x),w.lineTo(y,v+x),w.arcTo(y,v,y+x,v,x),w.closePath()}return re(()=>{B.value&&(d=B.value.getContext("2d"),_())}),pe(()=>j.progress,_),(w,y)=>(F(),$("div",{class:"border-progress-container",ref_key:"container",ref:u},[i("canvas",{ref_key:"canvas",ref:B,class:"border-progress-canvas"},null,512)],512))}}),Ve=oe(Re,[["__scopeId","data-v-2fbf5085"]]);var ae={exports:{}};(function(k,j){(function(u){k.exports=u()})(function(u){var B=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function d(a,n){var t=a[0],e=a[1],o=a[2],r=a[3];t+=(e&o|~e&r)+n[0]-680876936|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[1]-389564586|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[2]+606105819|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[3]-1044525330|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[4]-176418897|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[5]+1200080426|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[6]-1473231341|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[7]-45705983|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[8]+1770035416|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[9]-1958414417|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[10]-42063|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[11]-1990404162|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[12]+1804603682|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[13]-40341101|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[14]-1502002290|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[15]+1236535329|0,e=(e<<22|e>>>10)+o|0,t+=(e&r|o&~r)+n[1]-165796510|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[6]-1069501632|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[11]+643717713|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[0]-373897302|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[5]-701558691|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[10]+38016083|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[15]-660478335|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[4]-405537848|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[9]+568446438|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[14]-1019803690|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[3]-187363961|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[8]+1163531501|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[13]-1444681467|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[2]-51403784|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[7]+1735328473|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[12]-1926607734|0,e=(e<<20|e>>>12)+o|0,t+=(e^o^r)+n[5]-378558|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[8]-2022574463|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[11]+1839030562|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[14]-35309556|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[1]-1530992060|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[4]+1272893353|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[7]-155497632|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[10]-1094730640|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[13]+681279174|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[0]-358537222|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[3]-722521979|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[6]+76029189|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[9]-640364487|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[12]-421815835|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[15]+530742520|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[2]-995338651|0,e=(e<<23|e>>>9)+o|0,t+=(o^(e|~r))+n[0]-198630844|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[7]+1126891415|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[14]-1416354905|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[5]-57434055|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[12]+1700485571|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[3]-1894986606|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[10]-1051523|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[1]-2054922799|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[8]+1873313359|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[15]-30611744|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[6]-1560198380|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[13]+1309151649|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[4]-145523070|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[11]-1120210379|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[2]+718787259|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[9]-343485551|0,e=(e<<21|e>>>11)+o|0,a[0]=t+a[0]|0,a[1]=e+a[1]|0,a[2]=o+a[2]|0,a[3]=r+a[3]|0}function _(a){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=a.charCodeAt(t)+(a.charCodeAt(t+1)<<8)+(a.charCodeAt(t+2)<<16)+(a.charCodeAt(t+3)<<24);return n}function C(a){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=a[t]+(a[t+1]<<8)+(a[t+2]<<16)+(a[t+3]<<24);return n}function w(a){var n=a.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,S,D,z;for(e=64;e<=n;e+=64)d(t,_(a.substring(e-64,e)));for(a=a.substring(e-64),o=a.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e>2]|=a.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return S=n*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(S[2],16),z=parseInt(S[1],16)||0,r[14]=D,r[15]=z,d(t,r),t}function y(a){var n=a.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,S,D,z;for(e=64;e<=n;e+=64)d(t,C(a.subarray(e-64,e)));for(a=e-64>2]|=a[e]<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return S=n*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(S[2],16),z=parseInt(S[1],16)||0,r[14]=D,r[15]=z,d(t,r),t}function v(a){var n="",t;for(t=0;t<4;t+=1)n+=B[a>>t*8+4&15]+B[a>>t*8&15];return n}function c(a){var n;for(n=0;nr?new ArrayBuffer(0):(S=r-o,D=new ArrayBuffer(S),z=new Uint8Array(D),H=new Uint8Array(this,o,S),z.set(H),D)}}();function M(a){return/[\u0080-\uFFFF]/.test(a)&&(a=unescape(encodeURIComponent(a))),a}function x(a,n){var t=a.length,e=new ArrayBuffer(t),o=new Uint8Array(e),r;for(r=0;r>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,t),r=c(this._hash),a&&(r=b(r)),this.reset(),r},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(a){return this._buff=a.buff,this._length=a.length,this._hash=a.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(a,n){var t=n,e,o,r;if(a[t>>2]|=128<<(t%4<<3),t>55)for(d(this._hash,a),t=0;t<16;t+=1)a[t]=0;e=this._length*8,e=e.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(e[2],16),r=parseInt(e[1],16)||0,a[14]=o,a[15]=r,d(this._hash,a)},g.hash=function(a,n){return g.hashBinary(M(a),n)},g.hashBinary=function(a,n){var t=w(a),e=c(t);return n?b(e):e},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(a){var n=m(this._buff.buffer,a),t=n.length,e;for(this._length+=a.byteLength,e=64;e<=t;e+=64)d(this._hash,C(n.subarray(e-64,e)));return this._buff=e-64>2]|=n[o]<<(o%4<<3);return this._finish(e,t),r=c(this._hash),a&&(r=b(r)),this.reset(),r},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var a=g.prototype.getState.call(this);return a.buff=U(a.buff),a},g.ArrayBuffer.prototype.setState=function(a){return a.buff=x(a.buff,!0),g.prototype.setState.call(this,a)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(a,n){var t=y(new Uint8Array(a)),e=c(t);return n?b(e):e},g})})(ae);var He=ae.exports;const Ee=Se(He),se=async(k,j={})=>{const{successMsg:u="复制成功",errorMsg:B="复制失败,请手动复制",showMsg:d=!0}=j,_=ne();try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(k),d&&_.showAlert(u,"success"),!0;const C=document.createElement("textarea");C.value=k,C.style.position="fixed",C.style.opacity="0",document.body.appendChild(C),C.select();const w=document.execCommand("copy");if(document.body.removeChild(C),w)return d&&_.showAlert(u,"success"),!0;throw new Error("execCommand copy failed")}catch(C){return console.error("复制失败:",C),d&&_.showAlert(B,"error"),!1}},ee=async k=>{const j=`${window.location.origin}/#/?code=${k}`;return se(j,{successMsg:"取件链接已复制到剪贴板",errorMsg:"复制失败,请手动复制取件链接"})},Ne=async k=>se(k,{successMsg:"取件码已复制到剪贴板",errorMsg:"复制失败,请手动复制取件码"}),qe={class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300"},We={class:"p-8"},Qe={class:"flex justify-center space-x-4 mb-6"},Ge={key:"file",class:"grid grid-cols-1 gap-8"},Je={key:0,class:"absolute inset-0 w-full h-full"},Ke={class:"block truncate"},Oe={key:"text",class:"grid grid-cols-1 gap-8"},Xe={key:0,class:"flex flex-col"},Ye={class:"flex flex-col space-y-4"},Ze={key:0,class:"flex items-center space-x-2"},et={class:"relative flex-grow"},tt=["placeholder"],rt={type:"submit",class:"w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-4 px-6 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition-all duration-300 transform hover:scale-105 hover:shadow-lg relative overflow-hidden group"},ot={class:"relative z-10 flex items-center justify-center text-lg"},nt={class:"mt-6 text-center"},at={class:"flex-grow overflow-y-auto p-6"},st={class:"flex-shrink-0 mr-4"},it={class:"flex-grow min-w-0 mr-4"},lt={class:"flex-shrink-0 flex space-x-2"},ut=["onClick"],ct=["onClick"],dt=["onClick"],ft={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},ht={class:"space-y-4"},pt={class:"flex items-center"},gt={class:"flex items-center"},yt={class:"flex items-center"},vt={class:"flex items-center"},bt={class:"mt-6 flex justify-between items-center"},xt={class:"flex flex-col items-center w-1/2 pr-2"},mt={class:"text-2xl font-bold text-indigo-600"},wt={class:"flex flex-col items-center w-1/2 pl-2"},_t={class:"bg-white p-2 rounded-lg shadow-md"},Ct=te({__name:"SendFileView",setup(k){const j=_e(),u=Ce("isDarkMode"),B=Be(),d=T("file"),_=T(null),C=T(""),w=T(null),y=T("day"),v=T("1"),c=T(0),M=T(!1),x=T(null),U=ne(),m=ge(()=>B.shareData),b=T(""),g=T(new Set),a=()=>{var h;(h=w.value)==null||h.click()},n=async h=>{const s=h.target;s.files&&s.files.length>0&&(_.value=s.files[0],b.value=await e(_.value))},t=async h=>{var s;(s=h.dataTransfer)!=null&&s.files&&h.dataTransfer.files.length>0&&(_.value=h.dataTransfer.files[0],b.value=await e(_.value),o())},e=async h=>new Promise(s=>{const p=new Ee.ArrayBuffer,I=new FileReader;let R=0;const Q=Math.ceil(h.size/2097152);I.onload=E=>{p.append(E.target.result),R++,R{const E=R*2097152,he=E+2097152>=h.size?h.size:E+2097152;I.readAsArrayBuffer(h.slice(E,he))};X()}),o=async()=>{if(!_.value)return;const h=1024*1024,s=Math.ceil(_.value.size/h),{uploadedList:P}=await r(b.value);g.value=new Set(P);for(let p=0;p(console.log(h),new Promise(s=>{setTimeout(()=>{s({uploadedList:[]})},500)})),S=async(h,s,P)=>new Promise(p=>{setTimeout(()=>{console.log(`上传切片 ${s+1}/${P}`),g.value.add(s),p()},500)}),D=async(h,s)=>{console.log(`请求合并文件切片, fileHash: ${h}, totalChunks: ${s}`)},z=()=>{switch(y.value){case"day":return"输入天数";case"hour":return"输入小时数";case"minute":return"输入分钟数";case"count":return"输入查看次数";case"forever":return"永久";default:return"输入值"}},H=()=>{switch(y.value){case"day":return"天";case"hour":return"小时";case"minute":return"分钟";case"count":return"次";case"forever":return"永久";default:return""}},ie=async()=>{if(d.value==="file"&&!_.value){U.showAlert("请选择要上传的文件","error");return}if(d.value==="text"&&!C.value.trim()){U.showAlert("请输入要发送的文本","error");return}if(y.value!=="forever"&&!v.value){U.showAlert("请输入过期值","error");return}try{let h;const s=new FormData;if(d.value==="file")s.append("file",_.value);else{const p=new Blob([C.value],{type:"text/plain"});s.append("file",p,"text_content.txt")}y.value!=="forever"&&s.append("expire_value",v.value),s.append("expire_style",y.value);const P={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:p=>{const I=Math.round(p.loaded*100/p.total);c.value=I}};if(h=await Ae.post("/share/file/",s,P),h&&h.code===200){const p=h.detail.code,I=h.detail.name,R={id:Date.now(),filename:I,date:new Date().toISOString().split("T")[0],size:d.value==="text"?`${(C.value.length/1024).toFixed(2)} KB`:`${(_.value.size/(1024*1024)).toFixed(1)} MB`,expiration:y.value==="forever"?"永久":`${v.value}${H()}后过期`,retrieveCode:p};B.addShareData(R),U.showAlert(`文件发送成功!取件码:${p}`,"success"),_.value=null,C.value="",v.value="",c.value=0,M.value=!0,await ee(p)}else throw new Error("服务器响应异常")}catch(h){console.error("发送失败:",h),h.response.data.detail?U.showAlert(h.response.data.detail,"error"):U.showAlert("发送失败,请稍后重试","error")}finally{c.value=0}},le=()=>{j.push("/")},O=()=>{M.value=!M.value},ue=h=>{x.value=h},ce=h=>{const s=B.shareData.findIndex(P=>P.id===h);s!==-1&&B.deleteShareData(s)},de="",fe=h=>`${de}/?code=${h.retrieveCode}`;return re(()=>{console.log("SendFileView mounted")}),(h,s)=>{const P=Me("router-link");return F(),$("div",qe,[i("div",{class:f(["rounded-3xl shadow-2xl overflow-hidden border w-full max-w-md transition-colors duration-300",[l(u)?"bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[i("div",We,[i("h2",{class:f(["text-3xl font-extrabold text-center mb-8 cursor-pointer transition-colors duration-300",[l(u)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]]),onClick:le}," FileCodeBox ",2),i("form",{onSubmit:G(ie,["prevent"]),class:"space-y-8"},[i("div",Qe,[i("button",{type:"button",onClick:s[0]||(s[0]=p=>d.value="file"),class:f(["px-4 py-2 rounded-lg",d.value==="file"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文件 ",2),i("button",{type:"button",onClick:s[1]||(s[1]=p=>d.value="text"),class:f(["px-4 py-2 rounded-lg",d.value==="text"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文本 ",2)]),A(K,{name:"fade",mode:"out-in"},{default:N(()=>[d.value==="file"?(F(),$("div",Ge,[i("div",{class:f(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[l(u)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500"]]),onClick:a,onDragover:s[2]||(s[2]=G(()=>{},["prevent"])),onDrop:G(t,["prevent"])},[i("input",{id:"file-upload",type:"file",class:"hidden",onChange:n,ref_key:"fileInput",ref:w},null,544),c.value>0?(F(),$("div",Je,[A(Ve,{progress:c.value},null,8,["progress"])])):q("",!0),A(l(Le),{class:f(["w-16 h-16 transition-colors duration-300",l(u)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},null,8,["class"]),i("p",{class:f(["mt-4 text-sm transition-colors duration-300 w-full text-center",l(u)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[i("span",Ke,L(_.value?_.value.name:"点击或拖放文件到此处上传"),1)],2),i("p",{class:f(["mt-2 text-xs",l(u)?"text-gray-500":"text-gray-400"])}," 支持各种常见格式,最大20MB ",2)],34)])):(F(),$("div",Oe,[d.value==="text"?(F(),$("div",Xe,[J(i("textarea",{id:"text-content","onUpdate:modelValue":s[3]||(s[3]=p=>C.value=p),rows:"7",class:f(["flex-grow px-4 py-3 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition duration-300 resize-none",l(u)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"]),placeholder:"在此输入要发送的文本..."},null,2),[[Y,C.value]])])):q("",!0)]))]),_:1}),i("div",Ye,[i("label",{class:f(["text-sm font-medium",l(u)?"text-gray-300":"text-gray-700"])}," 过期方式 ",2),J(i("select",{"onUpdate:modelValue":s[4]||(s[4]=p=>y.value=p),class:f(["px-4 py-2 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-500",l(u)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},s[8]||(s[8]=[ve('',5)]),2),[[ye,y.value]]),y.value!=="forever"?(F(),$("div",Ze,[i("div",et,[J(i("input",{"onUpdate:modelValue":s[5]||(s[5]=p=>v.value=p),type:"number",placeholder:z(),class:f(["w-full px-4 py-2 pr-16 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500",l(u)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},null,10,tt),[[Y,v.value]]),i("span",{class:f(["absolute right-3 top-1/2 transform -translate-y-1/2",l(u)?"text-gray-300":"text-gray-700"])},L(H()),3)])])):q("",!0)]),i("button",rt,[s[10]||(s[10]=i("span",{class:"absolute top-0 left-0 w-full h-full bg-white opacity-0 group-hover:opacity-20 transition-opacity duration-300"},null,-1)),i("span",ot,[A(l(je),{class:"w-6 h-6 mr-2"}),s[9]||(s[9]=i("span",null,"安全寄送",-1))])])],32),i("div",nt,[A(P,{to:"/",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:N(()=>s[11]||(s[11]=[V(" 需要取件?点击这里 ")])),_:1})])]),i("div",{class:f(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[l(u)?"bg-gray-800":"bg-gray-100"]])},[i("span",{class:f(["text-sm flex items-center",[l(u)?"text-gray-300":"text-gray-800"]])},[A(l(Te),{class:"w-4 h-4 mr-1 text-green-400"}),s[12]||(s[12]=V(" 安全加密 "))],2),i("button",{onClick:O,class:f(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[l(u)?"text-indigo-400":"text-indigo-600"]])},[s[13]||(s[13]=V(" 发件记录 ")),A(l(Ie),{class:"w-4 h-4 ml-1"})],2)],2)],2),A(K,{name:"drawer"},{default:N(()=>[M.value?(F(),$("div",{key:0,class:f(["fixed inset-y-0 right-0 w-full sm:w-120 bg-opacity-70 backdrop-filter backdrop-blur-xl shadow-2xl z-50 overflow-hidden flex flex-col",[l(u)?"bg-gray-900":"bg-white"]])},[i("div",{class:f(["flex justify-between items-center p-6 border-b",[l(u)?"border-gray-700":"border-gray-200"]])},[i("h3",{class:f(["text-2xl font-bold",[l(u)?"text-white":"text-gray-800"]])}," 发件记录 ",2),i("button",{onClick:O,class:f(["hover:text-white transition duration-300",[l(u)?"text-gray-400":"text-gray-800"]])},[A(l(be),{class:"w-6 h-6"})],2)],2),i("div",at,[A(xe,{name:"list",tag:"div",class:"space-y-4"},{default:N(()=>[(F(!0),$(me,null,we(m.value,p=>(F(),$("div",{key:p.id,class:f(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[l(u)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[i("div",st,[A(l(Z),{class:f(["w-10 h-10",[l(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),i("div",it,[i("p",{class:f(["font-medium text-lg truncate",[l(u)?"text-white":"text-gray-800"]])},L(p.filename),3),i("p",{class:f(["text-sm truncate",[l(u)?"text-gray-400":"text-gray-600"]])},L(p.date)+" · "+L(p.size),3)]),i("div",lt,[i("button",{onClick:I=>l(ee)(p.retrieveCode),class:f(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(u)?"hover:bg-blue-400 text-blue-400":"hover:bg-blue-100 text-blue-600"]])},[A(l(ze),{class:"w-5 h-5"})],10,ut),i("button",{onClick:I=>ue(p),class:f(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(u)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[A(l(De),{class:"w-5 h-5"})],10,ct),i("button",{onClick:I=>ce(p.id),class:f(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(u)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[A(l($e),{class:"w-5 h-5"})],10,dt)])],2))),128))]),_:1})])],2)):q("",!0)]),_:1}),A(K,{name:"fade"},{default:N(()=>[x.value?(F(),$("div",ft,[i("div",{class:f(["p-8 rounded-2xl max-w-md w-full mx-4 shadow-2xl transform transition-all duration-300 ease-out backdrop-filter backdrop-blur-lg bg-opacity-70",[l(u)?"bg-gray-800":"bg-white"]])},[i("h3",{class:f(["text-2xl font-bold mb-6",[l(u)?"text-white":"text-gray-800"]])}," 文件详情 ",2),i("div",ht,[i("div",pt,[A(l(Z),{class:f(["w-6 h-6 mr-3",[l(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:f([l(u)?"text-gray-300":"text-gray-800"])},[s[14]||(s[14]=i("span",{class:"font-medium"},"文件名:",-1)),V(L(x.value.filename),1)],2)]),i("div",gt,[A(l(ke),{class:f(["w-6 h-6 mr-3",[l(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:f([l(u)?"text-gray-300":"text-gray-800"])},[s[15]||(s[15]=i("span",{class:"font-medium"},"发送日期:",-1)),V(L(x.value.date),1)],2)]),i("div",yt,[A(l(Fe),{class:f(["w-6 h-6 mr-3",[l(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:f([l(u)?"text-gray-300":"text-gray-800"])},[s[16]||(s[16]=i("span",{class:"font-medium"},"文件大小:",-1)),V(L(x.value.size),1)],2)]),i("div",vt,[A(l(Pe),{class:f(["w-6 h-6 mr-3",[l(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:f([l(u)?"text-gray-300":"text-gray-800"])},[s[17]||(s[17]=i("span",{class:"font-medium"},"过期时间:",-1)),V(L(x.value.expiration),1)],2)])]),i("div",bt,[i("div",xt,[i("h4",{class:f(["text-lg font-semibold mb-3",[l(u)?"text-white":"text-gray-800"]])}," 取件码 ",2),i("div",{class:"bg-gray-100 p-3 rounded-lg shadow-md cursor-pointer hover:bg-gray-200 transition-colors duration-300 w-full text-center",onClick:s[6]||(s[6]=p=>l(Ne)(x.value.retrieveCode))},[i("p",mt,L(x.value.retrieveCode),1)]),i("p",{class:f(["mt-2 text-sm",[l(u)?"text-gray-400":"text-gray-600"]])}," 点击复制取件码 ",2)]),i("div",wt,[i("h4",{class:f(["text-lg font-semibold mb-3",[l(u)?"text-white":"text-gray-800"]])}," 二维码 ",2),i("div",_t,[A(Ue,{value:fe(x.value),size:128,level:"M"},null,8,["value"])]),i("p",{class:f(["mt-2 text-sm",[l(u)?"text-gray-400":"text-gray-600"]])}," 扫描二维码快速取件 ",2)])]),i("button",{onClick:s[7]||(s[7]=p=>x.value=null),class:"mt-8 w-full bg-gradient-to-r from-indigo-500 to-purple-600 text-white px-6 py-3 rounded-lg font-medium hover:from-indigo-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition duration-300 transform hover:scale-105"}," 关闭 ")],2)])):q("",!0)]),_:1})])}}}),Tt=oe(Ct,[["__scopeId","data-v-78e18ce2"]]);export{Tt as default}; diff --git a/fcb-fronted/dist/assets/SystemSettingsView-BrgX3I32.js b/fcb-fronted/dist/assets/SystemSettingsView-CKNcEAfu.js similarity index 99% rename from fcb-fronted/dist/assets/SystemSettingsView-BrgX3I32.js rename to fcb-fronted/dist/assets/SystemSettingsView-CKNcEAfu.js index 09e05264..fbb84a1a 100644 --- a/fcb-fronted/dist/assets/SystemSettingsView-BrgX3I32.js +++ b/fcb-fronted/dist/assets/SystemSettingsView-CKNcEAfu.js @@ -1 +1 @@ -import{B as V,r as p,u as B,p as m,b as v,d as e,n as t,e as s,h as l,v as i,C as b,t as x,i as M,F as C,x as D,z,A as h,M as A}from"./index-DlNqZq-D.js";const F={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},T={class:"space-y-4"},K={class:"grid grid-cols-1 gap-6"},E={class:"space-y-2"},G={class:"space-y-2"},N={class:"space-y-2"},j={class:"relative"},I={class:"space-y-2"},R={class:"space-y-2"},$={class:"grid grid-cols-1 gap-6 mt-8"},H={class:"space-y-2"},L={class:"space-y-2"},q={class:"mt-8"},J={class:"space-y-4"},O={class:"space-y-2"},P={key:0,class:"space-y-4"},Q={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},W={class:"space-y-2"},X={class:"space-y-2"},Y={class:"space-y-2"},Z={class:"space-y-2"},ee={class:"space-y-2"},oe={class:"space-y-2"},re={class:"space-y-2"},te={class:"space-y-2"},ae={class:"flex items-center"},se=["aria-checked"],ne={class:"mt-8"},le={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ie={class:"space-y-2"},de={class:"flex items-center space-x-2"},ue={class:"space-y-2"},ge={class:"flex items-center space-x-2"},ce={class:"space-y-2"},ye={class:"flex items-center space-x-2"},pe={class:"space-y-2"},be={class:"flex flex-wrap gap-3"},me=["value"],ve={class:"space-y-2"},xe={class:"flex items-center space-x-2"},fe={class:"space-y-2"},he={class:"flex items-center"},_e=["aria-checked"],we={class:"mt-8"},ke={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Ue={class:"space-y-2"},Se={class:"flex items-center space-x-2"},Ve={class:"space-y-2"},Be={class:"flex items-center space-x-2"},De=V({__name:"SystemSettingsView",setup(Me){const a=z("isDarkMode"),n=p({name:"",description:"",file_storage:"",expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",notify_content:"",openUpload:1,uploadSize:1,uploadMinute:1,max_save_seconds:0,opacity:.9,s3_access_key_id:"",background:"",showAdminAddr:0,page_explain:"",s3_secret_access_key:"",aws_session_token:"",s3_signature_version:"",s3_region_name:"",s3_bucket_name:"",s3_endpoint_url:"",s3_hostname:"",uploadCount:1,errorMinute:1,errorCount:1,s3_proxy:0}),c=p(1),y=p("MB"),u=p(1),g=p("天"),_=(d,o)=>d*{秒:1,分:60,时:3600,天:86400}[o],w=()=>{h({url:"/admin/config/get",method:"get"}).then(d=>{n.value=d.detail;let o=n.value.uploadSize;o>=1024*1024*1024?(c.value=Math.round(o/(1024*1024*1024)),y.value="GB"):o>=1024*1024?(c.value=Math.round(o/(1024*1024)),y.value="MB"):(c.value=Math.round(o/1024),y.value="KB");let r=n.value.max_save_seconds;r===0?(u.value=7,g.value="天"):r%86400===0&&r>=86400?(u.value=r/86400,g.value="天"):r%3600===0&&r>=3600?(u.value=r/3600,g.value="时"):r%60===0&&r>=60?(u.value=r/60,g.value="分"):(u.value=r,g.value="秒")})},f=B(),k=(d,o)=>d*{KB:1024,MB:1048576,GB:1073741824}[o],U=()=>{const d={...n.value};d.uploadSize=k(c.value,y.value),u.value===0?d.max_save_seconds=7*86400:d.max_save_seconds=_(u.value,g.value),h({url:"/admin/config/update",method:"patch",data:d}).then(o=>{o.code==200?f.showAlert("保存成功","success"):f.showAlert(o.message,"error")})};return w(),(d,o)=>(m(),v("div",F,[e("h2",{class:t(["text-2xl font-bold mb-6",[s(a)?"text-white":"text-gray-800"]])}," 系统设置 ",2),e("div",{class:t(["space-y-6 rounded-lg shadow-md p-6",[s(a)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",T,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 基本设置 ",2),e("div",K,[e("div",E,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 网站名称 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=r=>n.value.name=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.name]])]),e("div",G,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 网站描述 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[1]||(o[1]=r=>n.value.description=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.description]])]),e("div",N,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 管理员密码 ",2),e("div",j,[l(e("input",{type:"password","onUpdate:modelValue":o[2]||(o[2]=r=>n.value.admin_token=r),placeholder:"留空则不修改密码",class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.admin_token]]),e("div",{class:t(["absolute inset-y-0 right-0 flex items-center pr-3 text-sm text-gray-400",[s(a)?"text-gray-500":"text-gray-400"]])},o[26]||(o[26]=[e("span",{class:"text-xs"},"留空则不修改",-1)]),2)])]),e("div",I,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 关键词 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[3]||(o[3]=r=>n.value.keywords=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.keywords]])]),e("div",R,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," Robots.txt ",2),l(e("textarea",{"onUpdate:modelValue":o[4]||(o[4]=r=>n.value.robotsText=r),rows:"3",class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.robotsText]])])]),e("div",$,[e("div",H,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 通知标题 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[5]||(o[5]=r=>n.value.notify_title=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.notify_title]])]),e("div",L,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 通知内容 ",2),l(e("textarea",{"onUpdate:modelValue":o[6]||(o[6]=r=>n.value.notify_content=r),rows:"3",class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.notify_content]])])]),e("div",q,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 存储设置 ",2),e("div",J,[e("div",O,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 存储方式 ",2),l(e("select",{"onUpdate:modelValue":o[7]||(o[7]=r=>n.value.file_storage=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border appearance-none bg-no-repeat bg-right focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none cursor-pointer",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]]),style:{"background-image":"url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M7%208l3%203%203-3%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')"}},o[27]||(o[27]=[e("option",{value:"local"},"本地存储",-1),e("option",{value:"s3"},"S3 存储",-1)]),2),[[b,n.value.file_storage]])]),n.value.file_storage==="s3"?(m(),v("div",P,[e("div",Q,[e("div",W,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 AccessKeyId ",2),l(e("input",{type:"text","onUpdate:modelValue":o[8]||(o[8]=r=>n.value.s3_access_key_id=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_access_key_id]])]),e("div",X,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 SecretAccessKey ",2),l(e("input",{type:"password","onUpdate:modelValue":o[9]||(o[9]=r=>n.value.s3_secret_access_key=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_secret_access_key]])]),e("div",Y,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 BucketName ",2),l(e("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=r=>n.value.s3_bucket_name=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_bucket_name]])]),e("div",Z,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 EndpointUrl ",2),l(e("input",{type:"text","onUpdate:modelValue":o[11]||(o[11]=r=>n.value.s3_endpoint_url=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_endpoint_url]])]),e("div",ee,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Region Name ",2),l(e("input",{type:"text","onUpdate:modelValue":o[12]||(o[12]=r=>n.value.s3_region_name=r),placeholder:"auto",class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_region_name]])]),e("div",oe,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Signature Version ",2),l(e("select",{"onUpdate:modelValue":o[13]||(o[13]=r=>n.value.s3_signature_version=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[28]||(o[28]=[e("option",{value:"s3v2"},"S3v2",-1),e("option",{value:"s3v4"},"S3v4",-1)]),2),[[b,n.value.s3_signature_version]])]),e("div",re,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Hostname ",2),l(e("input",{type:"text","onUpdate:modelValue":o[14]||(o[14]=r=>n.value.s3_hostname=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_hostname]])]),e("div",te,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 启用代理 ",2),e("div",ae,[e("button",{type:"button",onClick:o[15]||(o[15]=r=>n.value.s3_proxy=n.value.s3_proxy===1?0:1),class:t(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[n.value.s3_proxy===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":n.value.s3_proxy===1},[e("span",{class:t(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[n.value.s3_proxy===1?"translate-x-5":"translate-x-0",s(a)&&n.value.s3_proxy!==1?"bg-gray-100":"bg-white"]])},null,2)],10,se),e("span",{class:t(["ml-3 text-sm",[s(a)?"text-gray-300":"text-gray-700"]])},x(n.value.s3_proxy===1?"已开启":"已关闭"),3)])])])])):M("",!0)])]),e("div",ne,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 上传限制 ",2),e("div",le,[e("div",ie,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 每分钟上传限制 ",2),e("div",de,[l(e("input",{type:"number","onUpdate:modelValue":o[16]||(o[16]=r=>n.value.uploadMinute=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.uploadMinute]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",ue,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 上传数量限制 ",2),e("div",ge,[l(e("input",{type:"number","onUpdate:modelValue":o[17]||(o[17]=r=>n.value.uploadCount=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.uploadCount]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"个文件",2)])]),e("div",ce,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 文件大小限制 ",2),e("div",ye,[l(e("input",{type:"number","onUpdate:modelValue":o[18]||(o[18]=r=>c.value=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,c.value]]),l(e("select",{"onUpdate:modelValue":o[19]||(o[19]=r=>y.value=r),class:t(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[29]||(o[29]=[e("option",{value:"KB"},"KB",-1),e("option",{value:"MB"},"MB",-1),e("option",{value:"GB"},"GB",-1)]),2),[[b,y.value]])])]),e("div",pe,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 过期方式 ",2),e("div",be,[(m(),v(C,null,D(["day","hour","minute","forever","count"],r=>e("label",{key:r,class:"relative inline-flex items-center group cursor-pointer"},[l(e("input",{type:"checkbox",value:r,"onUpdate:modelValue":o[20]||(o[20]=S=>n.value.expireStyle=S),class:"peer sr-only"},null,8,me),[[A,n.value.expireStyle]]),e("div",{class:t(["px-4 py-2 rounded-full border-2 transition-all duration-200 select-none",[n.value.expireStyle.includes(r)?(s(a),"bg-indigo-600 border-indigo-600 text-white"):s(a)?"bg-gray-700 border-gray-600 text-gray-300 hover:border-indigo-500":"bg-white border-gray-300 text-gray-700 hover:border-indigo-500"]])},x({day:"按天",hour:"按小时",minute:"按分钟",forever:"永久",count:"按次数"}[r]),3)])),64))])]),e("div",ve,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 最长保存时间 ",2),e("div",xe,[l(e("input",{type:"number","onUpdate:modelValue":o[21]||(o[21]=r=>u.value=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,u.value]]),l(e("select",{"onUpdate:modelValue":o[22]||(o[22]=r=>g.value=r),class:t(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[30]||(o[30]=[e("option",{value:"秒"},"秒",-1),e("option",{value:"分"},"分",-1),e("option",{value:"时"},"时",-1),e("option",{value:"天"},"天",-1)]),2),[[b,g.value]])])]),e("div",fe,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 游客上传 ",2),e("div",he,[e("button",{type:"button",onClick:o[23]||(o[23]=r=>n.value.openUpload=n.value.openUpload===1?0:1),class:t(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[n.value.openUpload===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":n.value.openUpload===1},[e("span",{class:t(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[n.value.openUpload===1?"translate-x-5":"translate-x-0",s(a)&&n.value.openUpload!==1?"bg-gray-100":"bg-white"]])},null,2)],10,_e),e("span",{class:t(["ml-3 text-sm",[s(a)?"text-gray-300":"text-gray-700"]])},x(n.value.openUpload===1?"已开启":"已关闭"),3)])])])]),e("div",we,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 错误限制 ",2),e("div",ke,[e("div",Ue,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 每分钟错误限制 ",2),e("div",Se,[l(e("input",{type:"number","onUpdate:modelValue":o[24]||(o[24]=r=>n.value.errorMinute=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.errorMinute]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",Ve,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 错误次数限制 ",2),e("div",Be,[l(e("input",{type:"number","onUpdate:modelValue":o[25]||(o[25]=r=>n.value.errorCount=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.errorCount]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"次",2)])])])]),e("div",{class:"flex justify-end mt-8"},[e("button",{onClick:U,class:"px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200"}," 保存设置 ")])])],2)]))}});export{De as default}; +import{B as V,r as p,u as B,p as m,b as v,d as e,n as t,e as s,h as l,v as i,C as b,t as x,i as M,F as C,x as D,z,A as h,M as A}from"./index-BTJMh68G.js";const F={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},T={class:"space-y-4"},K={class:"grid grid-cols-1 gap-6"},E={class:"space-y-2"},G={class:"space-y-2"},N={class:"space-y-2"},j={class:"relative"},I={class:"space-y-2"},R={class:"space-y-2"},$={class:"grid grid-cols-1 gap-6 mt-8"},H={class:"space-y-2"},L={class:"space-y-2"},q={class:"mt-8"},J={class:"space-y-4"},O={class:"space-y-2"},P={key:0,class:"space-y-4"},Q={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},W={class:"space-y-2"},X={class:"space-y-2"},Y={class:"space-y-2"},Z={class:"space-y-2"},ee={class:"space-y-2"},oe={class:"space-y-2"},re={class:"space-y-2"},te={class:"space-y-2"},ae={class:"flex items-center"},se=["aria-checked"],ne={class:"mt-8"},le={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ie={class:"space-y-2"},de={class:"flex items-center space-x-2"},ue={class:"space-y-2"},ge={class:"flex items-center space-x-2"},ce={class:"space-y-2"},ye={class:"flex items-center space-x-2"},pe={class:"space-y-2"},be={class:"flex flex-wrap gap-3"},me=["value"],ve={class:"space-y-2"},xe={class:"flex items-center space-x-2"},fe={class:"space-y-2"},he={class:"flex items-center"},_e=["aria-checked"],we={class:"mt-8"},ke={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Ue={class:"space-y-2"},Se={class:"flex items-center space-x-2"},Ve={class:"space-y-2"},Be={class:"flex items-center space-x-2"},De=V({__name:"SystemSettingsView",setup(Me){const a=z("isDarkMode"),n=p({name:"",description:"",file_storage:"",expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",notify_content:"",openUpload:1,uploadSize:1,uploadMinute:1,max_save_seconds:0,opacity:.9,s3_access_key_id:"",background:"",showAdminAddr:0,page_explain:"",s3_secret_access_key:"",aws_session_token:"",s3_signature_version:"",s3_region_name:"",s3_bucket_name:"",s3_endpoint_url:"",s3_hostname:"",uploadCount:1,errorMinute:1,errorCount:1,s3_proxy:0}),c=p(1),y=p("MB"),u=p(1),g=p("天"),_=(d,o)=>d*{秒:1,分:60,时:3600,天:86400}[o],w=()=>{h({url:"/admin/config/get",method:"get"}).then(d=>{n.value=d.detail;let o=n.value.uploadSize;o>=1024*1024*1024?(c.value=Math.round(o/(1024*1024*1024)),y.value="GB"):o>=1024*1024?(c.value=Math.round(o/(1024*1024)),y.value="MB"):(c.value=Math.round(o/1024),y.value="KB");let r=n.value.max_save_seconds;r===0?(u.value=7,g.value="天"):r%86400===0&&r>=86400?(u.value=r/86400,g.value="天"):r%3600===0&&r>=3600?(u.value=r/3600,g.value="时"):r%60===0&&r>=60?(u.value=r/60,g.value="分"):(u.value=r,g.value="秒")})},f=B(),k=(d,o)=>d*{KB:1024,MB:1048576,GB:1073741824}[o],U=()=>{const d={...n.value};d.uploadSize=k(c.value,y.value),u.value===0?d.max_save_seconds=7*86400:d.max_save_seconds=_(u.value,g.value),h({url:"/admin/config/update",method:"patch",data:d}).then(o=>{o.code==200?f.showAlert("保存成功","success"):f.showAlert(o.message,"error")})};return w(),(d,o)=>(m(),v("div",F,[e("h2",{class:t(["text-2xl font-bold mb-6",[s(a)?"text-white":"text-gray-800"]])}," 系统设置 ",2),e("div",{class:t(["space-y-6 rounded-lg shadow-md p-6",[s(a)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",T,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 基本设置 ",2),e("div",K,[e("div",E,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 网站名称 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=r=>n.value.name=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.name]])]),e("div",G,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 网站描述 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[1]||(o[1]=r=>n.value.description=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.description]])]),e("div",N,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 管理员密码 ",2),e("div",j,[l(e("input",{type:"password","onUpdate:modelValue":o[2]||(o[2]=r=>n.value.admin_token=r),placeholder:"留空则不修改密码",class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.admin_token]]),e("div",{class:t(["absolute inset-y-0 right-0 flex items-center pr-3 text-sm text-gray-400",[s(a)?"text-gray-500":"text-gray-400"]])},o[26]||(o[26]=[e("span",{class:"text-xs"},"留空则不修改",-1)]),2)])]),e("div",I,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 关键词 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[3]||(o[3]=r=>n.value.keywords=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.keywords]])]),e("div",R,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," Robots.txt ",2),l(e("textarea",{"onUpdate:modelValue":o[4]||(o[4]=r=>n.value.robotsText=r),rows:"3",class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.robotsText]])])]),e("div",$,[e("div",H,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 通知标题 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[5]||(o[5]=r=>n.value.notify_title=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.notify_title]])]),e("div",L,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 通知内容 ",2),l(e("textarea",{"onUpdate:modelValue":o[6]||(o[6]=r=>n.value.notify_content=r),rows:"3",class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.notify_content]])])]),e("div",q,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 存储设置 ",2),e("div",J,[e("div",O,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 存储方式 ",2),l(e("select",{"onUpdate:modelValue":o[7]||(o[7]=r=>n.value.file_storage=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border appearance-none bg-no-repeat bg-right focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none cursor-pointer",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]]),style:{"background-image":"url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M7%208l3%203%203-3%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')"}},o[27]||(o[27]=[e("option",{value:"local"},"本地存储",-1),e("option",{value:"s3"},"S3 存储",-1)]),2),[[b,n.value.file_storage]])]),n.value.file_storage==="s3"?(m(),v("div",P,[e("div",Q,[e("div",W,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 AccessKeyId ",2),l(e("input",{type:"text","onUpdate:modelValue":o[8]||(o[8]=r=>n.value.s3_access_key_id=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_access_key_id]])]),e("div",X,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 SecretAccessKey ",2),l(e("input",{type:"password","onUpdate:modelValue":o[9]||(o[9]=r=>n.value.s3_secret_access_key=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_secret_access_key]])]),e("div",Y,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 BucketName ",2),l(e("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=r=>n.value.s3_bucket_name=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_bucket_name]])]),e("div",Z,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 EndpointUrl ",2),l(e("input",{type:"text","onUpdate:modelValue":o[11]||(o[11]=r=>n.value.s3_endpoint_url=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_endpoint_url]])]),e("div",ee,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Region Name ",2),l(e("input",{type:"text","onUpdate:modelValue":o[12]||(o[12]=r=>n.value.s3_region_name=r),placeholder:"auto",class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_region_name]])]),e("div",oe,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Signature Version ",2),l(e("select",{"onUpdate:modelValue":o[13]||(o[13]=r=>n.value.s3_signature_version=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[28]||(o[28]=[e("option",{value:"s3v2"},"S3v2",-1),e("option",{value:"s3v4"},"S3v4",-1)]),2),[[b,n.value.s3_signature_version]])]),e("div",re,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Hostname ",2),l(e("input",{type:"text","onUpdate:modelValue":o[14]||(o[14]=r=>n.value.s3_hostname=r),class:t(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.s3_hostname]])]),e("div",te,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 启用代理 ",2),e("div",ae,[e("button",{type:"button",onClick:o[15]||(o[15]=r=>n.value.s3_proxy=n.value.s3_proxy===1?0:1),class:t(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[n.value.s3_proxy===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":n.value.s3_proxy===1},[e("span",{class:t(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[n.value.s3_proxy===1?"translate-x-5":"translate-x-0",s(a)&&n.value.s3_proxy!==1?"bg-gray-100":"bg-white"]])},null,2)],10,se),e("span",{class:t(["ml-3 text-sm",[s(a)?"text-gray-300":"text-gray-700"]])},x(n.value.s3_proxy===1?"已开启":"已关闭"),3)])])])])):M("",!0)])]),e("div",ne,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 上传限制 ",2),e("div",le,[e("div",ie,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 每分钟上传限制 ",2),e("div",de,[l(e("input",{type:"number","onUpdate:modelValue":o[16]||(o[16]=r=>n.value.uploadMinute=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.uploadMinute]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",ue,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 上传数量限制 ",2),e("div",ge,[l(e("input",{type:"number","onUpdate:modelValue":o[17]||(o[17]=r=>n.value.uploadCount=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.uploadCount]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"个文件",2)])]),e("div",ce,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 文件大小限制 ",2),e("div",ye,[l(e("input",{type:"number","onUpdate:modelValue":o[18]||(o[18]=r=>c.value=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,c.value]]),l(e("select",{"onUpdate:modelValue":o[19]||(o[19]=r=>y.value=r),class:t(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[29]||(o[29]=[e("option",{value:"KB"},"KB",-1),e("option",{value:"MB"},"MB",-1),e("option",{value:"GB"},"GB",-1)]),2),[[b,y.value]])])]),e("div",pe,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 过期方式 ",2),e("div",be,[(m(),v(C,null,D(["day","hour","minute","forever","count"],r=>e("label",{key:r,class:"relative inline-flex items-center group cursor-pointer"},[l(e("input",{type:"checkbox",value:r,"onUpdate:modelValue":o[20]||(o[20]=S=>n.value.expireStyle=S),class:"peer sr-only"},null,8,me),[[A,n.value.expireStyle]]),e("div",{class:t(["px-4 py-2 rounded-full border-2 transition-all duration-200 select-none",[n.value.expireStyle.includes(r)?(s(a),"bg-indigo-600 border-indigo-600 text-white"):s(a)?"bg-gray-700 border-gray-600 text-gray-300 hover:border-indigo-500":"bg-white border-gray-300 text-gray-700 hover:border-indigo-500"]])},x({day:"按天",hour:"按小时",minute:"按分钟",forever:"永久",count:"按次数"}[r]),3)])),64))])]),e("div",ve,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 最长保存时间 ",2),e("div",xe,[l(e("input",{type:"number","onUpdate:modelValue":o[21]||(o[21]=r=>u.value=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,u.value]]),l(e("select",{"onUpdate:modelValue":o[22]||(o[22]=r=>g.value=r),class:t(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[30]||(o[30]=[e("option",{value:"秒"},"秒",-1),e("option",{value:"分"},"分",-1),e("option",{value:"时"},"时",-1),e("option",{value:"天"},"天",-1)]),2),[[b,g.value]])])]),e("div",fe,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 游客上传 ",2),e("div",he,[e("button",{type:"button",onClick:o[23]||(o[23]=r=>n.value.openUpload=n.value.openUpload===1?0:1),class:t(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[n.value.openUpload===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":n.value.openUpload===1},[e("span",{class:t(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[n.value.openUpload===1?"translate-x-5":"translate-x-0",s(a)&&n.value.openUpload!==1?"bg-gray-100":"bg-white"]])},null,2)],10,_e),e("span",{class:t(["ml-3 text-sm",[s(a)?"text-gray-300":"text-gray-700"]])},x(n.value.openUpload===1?"已开启":"已关闭"),3)])])])]),e("div",we,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 错误限制 ",2),e("div",ke,[e("div",Ue,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 每分钟错误限制 ",2),e("div",Se,[l(e("input",{type:"number","onUpdate:modelValue":o[24]||(o[24]=r=>n.value.errorMinute=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.errorMinute]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",Ve,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 错误次数限制 ",2),e("div",Be,[l(e("input",{type:"number","onUpdate:modelValue":o[25]||(o[25]=r=>n.value.errorCount=r),class:t(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,n.value.errorCount]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"次",2)])])])]),e("div",{class:"flex justify-end mt-8"},[e("button",{onClick:U,class:"px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200"}," 保存设置 ")])])],2)]))}});export{De as default}; diff --git a/fcb-fronted/dist/assets/_commonjsHelpers-BqRSbYMX.js b/fcb-fronted/dist/assets/_commonjsHelpers-D3ZKylXK.js similarity index 99% rename from fcb-fronted/dist/assets/_commonjsHelpers-BqRSbYMX.js rename to fcb-fronted/dist/assets/_commonjsHelpers-D3ZKylXK.js index cf9e6e64..0b6f9c10 100644 --- a/fcb-fronted/dist/assets/_commonjsHelpers-BqRSbYMX.js +++ b/fcb-fronted/dist/assets/_commonjsHelpers-D3ZKylXK.js @@ -1,4 +1,4 @@ -import{c as D,B as _,E as I,r as k,G as U,o as W,H as $,I as Q}from"./index-DlNqZq-D.js";/** +import{c as D,B as _,E as I,r as k,G as U,o as W,H as $,I as Q}from"./index-BTJMh68G.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/fcb-fronted/dist/assets/box-DasTGycM.js b/fcb-fronted/dist/assets/box-BA4Xpd2p.js similarity index 90% rename from fcb-fronted/dist/assets/box-DasTGycM.js rename to fcb-fronted/dist/assets/box-BA4Xpd2p.js index beeec762..198925a6 100644 --- a/fcb-fronted/dist/assets/box-DasTGycM.js +++ b/fcb-fronted/dist/assets/box-BA4Xpd2p.js @@ -1,4 +1,4 @@ -import{c as a}from"./index-DlNqZq-D.js";/** +import{c as a}from"./index-BTJMh68G.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/fcb-fronted/dist/assets/file-CuCz68gZ.js b/fcb-fronted/dist/assets/file-K__YxWAi.js similarity index 88% rename from fcb-fronted/dist/assets/file-CuCz68gZ.js rename to fcb-fronted/dist/assets/file-K__YxWAi.js index f7de1741..d49dd52b 100644 --- a/fcb-fronted/dist/assets/file-CuCz68gZ.js +++ b/fcb-fronted/dist/assets/file-K__YxWAi.js @@ -1,4 +1,4 @@ -import{c as a}from"./index-DlNqZq-D.js";/** +import{c as a}from"./index-BTJMh68G.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/fcb-fronted/dist/assets/index-DlNqZq-D.js b/fcb-fronted/dist/assets/index-BTJMh68G.js similarity index 99% rename from fcb-fronted/dist/assets/index-DlNqZq-D.js rename to fcb-fronted/dist/assets/index-BTJMh68G.js index 41e03c95..2a8b0f01 100644 --- a/fcb-fronted/dist/assets/index-DlNqZq-D.js +++ b/fcb-fronted/dist/assets/index-BTJMh68G.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetrievewFileView-DMP8rhpF.js","assets/_commonjsHelpers-BqRSbYMX.js","assets/box-DasTGycM.js","assets/file-CuCz68gZ.js","assets/trash-CytZg4YE.js","assets/RetrievewFileView-C_lpDe7q.css","assets/SendFileView-BXcnmHJa.js","assets/SendFileView-D1IOhjmE.css","assets/AdminLayout-DFpljGo6.js","assets/AdminLayout-N15TxCCO.css","assets/DashboardView-V_ky_QUg.js","assets/FileManageView-DOkmzxxl.js","assets/LoginView-yrMAxh32.js","assets/LoginView-BU7fFnDZ.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetrievewFileView-kEeEF5-W.js","assets/_commonjsHelpers-D3ZKylXK.js","assets/box-BA4Xpd2p.js","assets/file-K__YxWAi.js","assets/trash-D-kesX_3.js","assets/RetrievewFileView-C_lpDe7q.css","assets/SendFileView-D1ba9W4J.js","assets/SendFileView-CCYPlDiE.css","assets/AdminLayout-nlTaSI8M.js","assets/AdminLayout-N15TxCCO.css","assets/DashboardView-BUrCNTY5.js","assets/FileManageView-BNB_pNK3.js","assets/LoginView-GeI5hOqD.js","assets/LoginView-BU7fFnDZ.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** * @vue/shared v3.5.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -83,4 +83,4 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetrievewFileVi `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Ri]=this[Ri]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=bn(i);s[l]||(ap(r,i),s[l]=!0)}return b.isArray(t)?t.forEach(o):o(t),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(Ie.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});b.freezeMethods(Ie);function ir(e,t){const n=this||Gn,s=t||n,r=Ie.from(s.headers);let o=s.data;return b.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Dc(e){return!!(e&&e.__CANCEL__)}function hn(e,t,n){G.call(this,e??"canceled",G.ERR_CANCELED,t,n),this.name="CanceledError"}b.inherits(hn,G,{__CANCEL__:!0});function jc(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function up(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fp(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),a=s[o];i||(i=u),n[r]=c,s[r]=u;let f=o,p=0;for(;f!==r;)p+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-i{n=a,r=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const a=Date.now(),f=a-n;f>=s?i(u,a):(r=u,o||(o=setTimeout(()=>{o=null,i(r)},s-f)))},()=>r&&i(r)]}const ys=(e,t,n=3)=>{let s=0;const r=fp(50,250);return dp(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-s,u=r(c),a=i<=l;s=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&a?(l-i)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},xi=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ci=e=>(...t)=>b.asap(()=>e(...t)),hp=Pe.hasStandardBrowserEnv?function(){const t=Pe.navigator&&/(msie|trident)/i.test(Pe.navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const l=b.isString(i)?r(i):i;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),pp=Pe.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];b.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),b.isString(s)&&i.push("path="+s),b.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function mp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bc(e,t){return e&&!mp(t)?gp(e,t):t}const Ai=e=>e instanceof Ie?{...e}:e;function qt(e,t){t=t||{};const n={};function s(u,a,f){return b.isPlainObject(u)&&b.isPlainObject(a)?b.merge.call({caseless:f},u,a):b.isPlainObject(a)?b.merge({},a):b.isArray(a)?a.slice():a}function r(u,a,f){if(b.isUndefined(a)){if(!b.isUndefined(u))return s(void 0,u,f)}else return s(u,a,f)}function o(u,a){if(!b.isUndefined(a))return s(void 0,a)}function i(u,a){if(b.isUndefined(a)){if(!b.isUndefined(u))return s(void 0,u)}else return s(void 0,a)}function l(u,a,f){if(f in t)return s(u,a);if(f in e)return s(void 0,u)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,a)=>r(Ai(u),Ai(a),!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(a){const f=c[a]||r,p=f(e[a],t[a],a);b.isUndefined(p)&&f!==l||(n[a]=p)}),n}const Hc=e=>{const t=qt({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=Ie.from(i),t.url=Mc(Bc(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(b.isFormData(n)){if(Pe.hasStandardBrowserEnv||Pe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...a]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...a].join("; "))}}if(Pe.hasStandardBrowserEnv&&(s&&b.isFunction(s)&&(s=s(t)),s||s!==!1&&hp(t.url))){const u=r&&o&&pp.read(o);u&&i.set(r,u)}return t},yp=typeof XMLHttpRequest<"u",bp=yp&&function(e){return new Promise(function(n,s){const r=Hc(e);let o=r.data;const i=Ie.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=r,a,f,p,m,y;function w(){m&&m(),y&&y(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let E=new XMLHttpRequest;E.open(r.method.toUpperCase(),r.url,!0),E.timeout=r.timeout;function T(){if(!E)return;const P=Ie.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:P,config:e,request:E};jc(function(z){n(z),w()},function(z){s(z),w()},j),E=null}"onloadend"in E?E.onloadend=T:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(T)},E.onabort=function(){E&&(s(new G("Request aborted",G.ECONNABORTED,e,E)),E=null)},E.onerror=function(){s(new G("Network Error",G.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let I=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const j=r.transitional||kc;r.timeoutErrorMessage&&(I=r.timeoutErrorMessage),s(new G(I,j.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,E)),E=null},o===void 0&&i.setContentType(null),"setRequestHeader"in E&&b.forEach(i.toJSON(),function(I,j){E.setRequestHeader(j,I)}),b.isUndefined(r.withCredentials)||(E.withCredentials=!!r.withCredentials),l&&l!=="json"&&(E.responseType=r.responseType),u&&([p,y]=ys(u,!0),E.addEventListener("progress",p)),c&&E.upload&&([f,m]=ys(c),E.upload.addEventListener("progress",f),E.upload.addEventListener("loadend",m)),(r.cancelToken||r.signal)&&(a=P=>{E&&(s(!P||P.type?new hn(null,e,E):P),E.abort(),E=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const C=up(r.url);if(C&&Pe.protocols.indexOf(C)===-1){s(new G("Unsupported protocol "+C+":",G.ERR_BAD_REQUEST,e));return}E.send(o||null)})},_p=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(u){if(!r){r=!0,l();const a=u instanceof Error?u:this.reason;s.abort(a instanceof G?a:new hn(a instanceof Error?a.message:a))}};let i=t&&setTimeout(()=>{i=null,o(new G(`timeout ${t} of ms exceeded`,G.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=s;return c.unsubscribe=()=>b.asap(l),c}},vp=function*(e,t){let n=e.byteLength;if(n{const r=wp(e,t);let o=0,i,l=c=>{i||(i=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:u,value:a}=await r.next();if(u){l(),c.close();return}let f=a.byteLength;if(n){let p=o+=f;n(p)}c.enqueue(new Uint8Array(a))}catch(u){throw l(u),u}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},$s=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$c=$s&&typeof ReadableStream=="function",Sp=$s&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Uc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rp=$c&&Uc(()=>{let e=!1;const t=new Request(Pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Oi=64*1024,Ar=$c&&Uc(()=>b.isReadableStream(new Response("").body)),bs={stream:Ar&&(e=>e.body)};$s&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!bs[t]&&(bs[t]=b.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,s)})})})(new Response);const xp=async e=>{if(e==null)return 0;if(b.isBlob(e))return e.size;if(b.isSpecCompliantForm(e))return(await new Request(Pe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(b.isArrayBufferView(e)||b.isArrayBuffer(e))return e.byteLength;if(b.isURLSearchParams(e)&&(e=e+""),b.isString(e))return(await Sp(e)).byteLength},Cp=async(e,t)=>{const n=b.toFiniteNumber(e.getContentLength());return n??xp(t)},Ap=$s&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:a,withCredentials:f="same-origin",fetchOptions:p}=Hc(e);u=u?(u+"").toLowerCase():"text";let m=_p([r,o&&o.toAbortSignal()],i),y;const w=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let E;try{if(c&&Rp&&n!=="get"&&n!=="head"&&(E=await Cp(a,s))!==0){let j=new Request(t,{method:"POST",body:s,duplex:"half"}),X;if(b.isFormData(s)&&(X=j.headers.get("content-type"))&&a.setContentType(X),j.body){const[z,V]=xi(E,ys(Ci(c)));s=Ti(j.body,Oi,z,V)}}b.isString(f)||(f=f?"include":"omit");const T="credentials"in Request.prototype;y=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:s,duplex:"half",credentials:T?f:void 0});let C=await fetch(y);const P=Ar&&(u==="stream"||u==="response");if(Ar&&(l||P&&w)){const j={};["status","statusText","headers"].forEach(N=>{j[N]=C[N]});const X=b.toFiniteNumber(C.headers.get("content-length")),[z,V]=l&&xi(X,ys(Ci(l),!0))||[];C=new Response(Ti(C.body,Oi,z,()=>{V&&V(),w&&w()}),j)}u=u||"text";let I=await bs[b.findKey(bs,u)||"text"](C,e);return!P&&w&&w(),await new Promise((j,X)=>{jc(j,X,{data:I,headers:Ie.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:y})})}catch(T){throw w&&w(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new G("Network Error",G.ERR_NETWORK,e,y),{cause:T.cause||T}):G.from(T,T&&T.code,e,y)}}),Tr={http:Uh,xhr:bp,fetch:Ap};b.forEach(Tr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Pi=e=>`- ${e}`,Tp=e=>b.isFunction(e)||e===null||e===!1,Vc={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(Pi).join(` `):" "+Pi(o[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Tr};function lr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hn(null,e)}function Ii(e){return lr(e),e.headers=Ie.from(e.headers),e.data=ir.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vc.getAdapter(e.adapter||Gn.adapter)(e).then(function(s){return lr(e),s.data=ir.call(e,e.transformResponse,s),s.headers=Ie.from(s.headers),s},function(s){return Dc(s)||(lr(e),s&&s.response&&(s.response.data=ir.call(e,e.transformResponse,s.response),s.response.headers=Ie.from(s.response.headers))),Promise.reject(s)})}const qc="1.7.7",oo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oo[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Li={};oo.transitional=function(t,n,s){function r(o,i){return"[Axios v"+qc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new G(r(i," has been removed"+(n?" in "+n:"")),G.ERR_DEPRECATED);return n&&!Li[i]&&(Li[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Op(e,t,n){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new G("option "+o+" must be "+c,G.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new G("Unknown option "+o,G.ERR_BAD_OPTION)}}const Or={assertOptions:Op,validators:oo},_t=Or.validators;class $t{constructor(t){this.defaults=t,this.interceptors={request:new Si,response:new Si}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Or.assertOptions(s,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),r!=null&&(b.isFunction(r)?n.paramsSerializer={serialize:r}:Or.assertOptions(r,{encode:_t.function,serialize:_t.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Ie.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let a,f=0,p;if(!c){const y=[Ii.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),p=y.length,a=Promise.resolve(n);f{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new hn(o,i,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new io(function(r){t=r}),cancel:t}}}function Pp(e){return function(n){return e.apply(null,n)}}function Ip(e){return b.isObject(e)&&e.isAxiosError===!0}const Pr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pr).forEach(([e,t])=>{Pr[t]=e});function Kc(e){const t=new $t(e),n=Ec($t.prototype.request,t);return b.extend(n,$t.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Kc(qt(e,r))},n}const ye=Kc(Gn);ye.Axios=$t;ye.CanceledError=hn;ye.CancelToken=io;ye.isCancel=Dc;ye.VERSION=qc;ye.toFormData=Hs;ye.AxiosError=G;ye.Cancel=ye.CanceledError;ye.all=function(t){return Promise.all(t)};ye.spread=Pp;ye.isAxiosError=Ip;ye.mergeConfig=qt;ye.AxiosHeaders=Ie;ye.formToJSON=e=>Fc(b.isHTMLForm(e)?new FormData(e):e);ye.getAdapter=Vc.getAdapter;ye.HttpStatusCode=Pr;ye.default=ye;const Lp="",Wc=Lp,lo=ye.create({baseURL:Wc,timeout:1e4,headers:{"Content-Type":"application/json"}});lo.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.url&&!e.url.startsWith("http")&&(e.url=`${Wc}/${e.url.replace(/^\//,"")}`),e},e=>Promise.reject(e));lo.interceptors.response.use(e=>e.data,e=>{if(e.response)switch(e.response.status){case 401:console.error("未授权,请重新登录"),localStorage.clear(),window.location.href="/#/login";break;case 403:console.error("禁止访问");break;case 404:console.error("请求的资源不存在");break;default:console.error("发生错误:",e.response.data)}else e.request?console.error("未收到响应:",e.request):console.error("请求配置错误:",e.message);return Promise.reject(e)});const zc=Uf("alert",{state:()=>({alerts:[]}),actions:{showAlert(e,t="info",n=5e3){const s=Date.now(),r=Date.now();this.alerts.push({id:s,message:e,type:t,progress:100,duration:n,startTime:r}),setTimeout(()=>this.removeAlert(s),n)},removeAlert(e){const t=this.alerts.findIndex(n=>n.id===e);t>-1&&this.alerts.splice(t,1)},updateAlertProgress(e){const t=this.alerts.find(n=>n.id===e);if(t){const s=100-(Date.now()-t.startTime)/t.duration*100;t.progress=Math.max(0,s),t.progress<=0&&this.removeAlert(e)}}}}),Np={class:"p-4"},Mp={class:"flex items-start"},kp={class:"flex-shrink-0"},Fp={class:"ml-3 flex-1 pt-0.5"},Dp=["innerHTML"],jp={class:"ml-4 flex-shrink-0 flex"},Bp=["onClick"],Hp={class:"h-1 bg-white bg-opacity-25"},$p=Kn({__name:"AlertComponent",setup(e){const t=zc(),{alerts:n}=Vf(t),{removeAlert:s,updateAlertProgress:r}=t,o={success:"from-green-500 to-green-600",error:"from-red-500 to-red-600",warning:"from-yellow-500 to-yellow-600",info:"from-blue-500 to-blue-600"},i={success:Xd,error:eh,warning:Jd,info:Qd};let l;return Os(()=>{l=setInterval(()=>{n.value.forEach(c=>{r(c.id)})},100)}),Jr(()=>{clearInterval(l)}),(c,u)=>(We(),sn(Ef,{name:"alert-fade",tag:"div",class:"fixed top-4 right-4 z-50 w-full sm:max-w-sm md:max-w-md space-y-4 px-4 sm:px-0"},{default:hs(()=>[(We(!0),Fn(Ue,null,su(Te(n),a=>(We(),Fn("div",{key:a.id,class:fn(["w-full rounded-lg shadow-xl overflow-hidden","bg-gradient-to-r",o[a.type]])},[De("div",Np,[De("div",Mp,[De("div",kp,[(We(),sn(Al(i[a.type]),{class:"h-6 w-6 text-white"}))]),De("div",Fp,[De("p",{class:"text-sm font-medium text-white",innerHTML:a.message},null,8,Dp)]),De("div",jp,[De("button",{onClick:f=>Te(s)(a.id),class:"inline-flex text-white hover:text-gray-200 focus:outline-none transition-colors duration-200"},[u[0]||(u[0]=De("span",{class:"sr-only"},"关闭",-1)),me(Te(th),{class:"h-5 w-5"})],8,Bp)])])]),De("div",Hp,[De("div",{class:"h-full bg-white transition-all duration-100 ease-out",style:Es({width:`${a.progress}%`})},null,4)])],2))),128))]),_:1}))}}),Up=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Vp=Up($p,[["__scopeId","data-v-03615137"]]),qp={key:0,class:"loading-overlay"},Kp=Kn({__name:"App",setup(e){const t=nn(!1),n=nn(!1),s=Wd(),r=zc(),o=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,i=()=>{const c=localStorage.getItem("colorMode");return c?c==="dark":null},l=c=>{t.value=c,localStorage.setItem("colorMode",c?"dark":"light")};return Os(()=>{const c=i();l(c!==null?c:o()),lo.post("/",{}).then(u=>{u.code===200&&(localStorage.setItem("config",JSON.stringify(u.detail)),u.detail.notify_title&&u.detail.notify_content&&localStorage.getItem("notify")!==u.detail.notify_title+u.detail.notify_content&&(localStorage.setItem("notify",u.detail.notify_title+u.detail.notify_content),r.showAlert(u.detail.notify_title+": "+u.detail.notify_content,"success")))})}),xu(()=>{document.documentElement.classList.toggle("dark",t.value)}),s.beforeEach((c,u,a)=>{n.value=!0,a()}),s.afterEach(()=>{setTimeout(()=>{n.value=!1},200)}),Ht("isDarkMode",t),Ht("setColorMode",l),Ht("isLoading",n),(c,u)=>(We(),Fn("div",{class:fn(["app-container",t.value?"dark":"light"])},[me(nh,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=a=>t.value=a)},null,8,["modelValue"]),n.value?(We(),Fn("div",qp,u[1]||(u[1]=[De("div",{class:"loading-spinner"},null,-1)]))):ju("",!0),me(Te(wc),null,{default:hs(({Component:a})=>[me(ef,{name:"fade",mode:"out-in"},{default:hs(()=>[(We(),sn(Al(a),{key:c.$route.fullPath}))]),_:2},1024)]),_:1}),me(Vp)],2))}}),Wp="modulepreload",zp=function(e){return"/"+e},Ni={},Et=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=zp(c),c in Ni)return;Ni[c]=!0;const u=c.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Wp,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((p,m)=>{f.addEventListener("load",p),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Gp=qd({history:wd("/"),routes:[{path:"/",name:"Retrieve",component:()=>Et(()=>import("./RetrievewFileView-DMP8rhpF.js"),__vite__mapDeps([0,1,2,3,4,5]))},{path:"/send",name:"Send",component:()=>Et(()=>import("./SendFileView-BXcnmHJa.js"),__vite__mapDeps([6,1,3,4,7]))},{path:"/admin",name:"Manage",component:()=>Et(()=>import("./AdminLayout-DFpljGo6.js"),__vite__mapDeps([8,2,9])),redirect:"/admin/dashboard",children:[{path:"/admin/dashboard",name:"Dashboard",component:()=>Et(()=>import("./DashboardView-V_ky_QUg.js"),__vite__mapDeps([10,3,4]))},{path:"/admin/files",name:"FileManage",component:()=>Et(()=>import("./FileManageView-DOkmzxxl.js"),__vite__mapDeps([11,3]))},{path:"/admin/settings",name:"Settings",component:()=>Et(()=>import("./SystemSettingsView-BrgX3I32.js"),[])}]},{path:"/login",name:"Login",component:()=>Et(()=>import("./LoginView-yrMAxh32.js"),__vite__mapDeps([12,2,13]))}]});Et(()=>import("./SendFileView-BXcnmHJa.js"),__vite__mapDeps([6,1,3,4,7]));const co=Lf(Kp);co.use(Ff());co.use(Gp);co.mount("#app");export{lo as A,Kn as B,em as C,Qp as D,rn as E,Ue as F,Sl as G,Uf as H,Vn as I,Jr as J,sn as K,Al as L,Zp as M,ef as T,th as X,Up as _,Ve as a,Fn as b,Wt as c,De as d,Te as e,me as f,tm as g,Jp as h,ju as i,hs as j,Du as k,nm as l,Xp as m,fn as n,Os as o,We as p,Ef as q,nn as r,Vf as s,la as t,zc as u,Yp as v,Rn as w,su as x,Wd as y,Oe as z}; +`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Or.assertOptions(s,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),r!=null&&(b.isFunction(r)?n.paramsSerializer={serialize:r}:Or.assertOptions(r,{encode:_t.function,serialize:_t.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Ie.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let a,f=0,p;if(!c){const y=[Ii.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),p=y.length,a=Promise.resolve(n);f{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new hn(o,i,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new io(function(r){t=r}),cancel:t}}}function Pp(e){return function(n){return e.apply(null,n)}}function Ip(e){return b.isObject(e)&&e.isAxiosError===!0}const Pr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pr).forEach(([e,t])=>{Pr[t]=e});function Kc(e){const t=new $t(e),n=Ec($t.prototype.request,t);return b.extend(n,$t.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Kc(qt(e,r))},n}const ye=Kc(Gn);ye.Axios=$t;ye.CanceledError=hn;ye.CancelToken=io;ye.isCancel=Dc;ye.VERSION=qc;ye.toFormData=Hs;ye.AxiosError=G;ye.Cancel=ye.CanceledError;ye.all=function(t){return Promise.all(t)};ye.spread=Pp;ye.isAxiosError=Ip;ye.mergeConfig=qt;ye.AxiosHeaders=Ie;ye.formToJSON=e=>Fc(b.isHTMLForm(e)?new FormData(e):e);ye.getAdapter=Vc.getAdapter;ye.HttpStatusCode=Pr;ye.default=ye;const Lp="",Wc=Lp,lo=ye.create({baseURL:Wc,timeout:1e4,headers:{"Content-Type":"application/json"}});lo.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.url&&!e.url.startsWith("http")&&(e.url=`${Wc}/${e.url.replace(/^\//,"")}`),e},e=>Promise.reject(e));lo.interceptors.response.use(e=>e.data,e=>{if(e.response)switch(e.response.status){case 401:console.error("未授权,请重新登录"),localStorage.clear(),window.location.href="/#/login";break;case 403:console.error("禁止访问");break;case 404:console.error("请求的资源不存在");break;default:console.error("发生错误:",e.response.data)}else e.request?console.error("未收到响应:",e.request):console.error("请求配置错误:",e.message);return Promise.reject(e)});const zc=Uf("alert",{state:()=>({alerts:[]}),actions:{showAlert(e,t="info",n=5e3){const s=Date.now(),r=Date.now();this.alerts.push({id:s,message:e,type:t,progress:100,duration:n,startTime:r}),setTimeout(()=>this.removeAlert(s),n)},removeAlert(e){const t=this.alerts.findIndex(n=>n.id===e);t>-1&&this.alerts.splice(t,1)},updateAlertProgress(e){const t=this.alerts.find(n=>n.id===e);if(t){const s=100-(Date.now()-t.startTime)/t.duration*100;t.progress=Math.max(0,s),t.progress<=0&&this.removeAlert(e)}}}}),Np={class:"p-4"},Mp={class:"flex items-start"},kp={class:"flex-shrink-0"},Fp={class:"ml-3 flex-1 pt-0.5"},Dp=["innerHTML"],jp={class:"ml-4 flex-shrink-0 flex"},Bp=["onClick"],Hp={class:"h-1 bg-white bg-opacity-25"},$p=Kn({__name:"AlertComponent",setup(e){const t=zc(),{alerts:n}=Vf(t),{removeAlert:s,updateAlertProgress:r}=t,o={success:"from-green-500 to-green-600",error:"from-red-500 to-red-600",warning:"from-yellow-500 to-yellow-600",info:"from-blue-500 to-blue-600"},i={success:Xd,error:eh,warning:Jd,info:Qd};let l;return Os(()=>{l=setInterval(()=>{n.value.forEach(c=>{r(c.id)})},100)}),Jr(()=>{clearInterval(l)}),(c,u)=>(We(),sn(Ef,{name:"alert-fade",tag:"div",class:"fixed top-4 right-4 z-50 w-full sm:max-w-sm md:max-w-md space-y-4 px-4 sm:px-0"},{default:hs(()=>[(We(!0),Fn(Ue,null,su(Te(n),a=>(We(),Fn("div",{key:a.id,class:fn(["w-full rounded-lg shadow-xl overflow-hidden","bg-gradient-to-r",o[a.type]])},[De("div",Np,[De("div",Mp,[De("div",kp,[(We(),sn(Al(i[a.type]),{class:"h-6 w-6 text-white"}))]),De("div",Fp,[De("p",{class:"text-sm font-medium text-white",innerHTML:a.message},null,8,Dp)]),De("div",jp,[De("button",{onClick:f=>Te(s)(a.id),class:"inline-flex text-white hover:text-gray-200 focus:outline-none transition-colors duration-200"},[u[0]||(u[0]=De("span",{class:"sr-only"},"关闭",-1)),me(Te(th),{class:"h-5 w-5"})],8,Bp)])])]),De("div",Hp,[De("div",{class:"h-full bg-white transition-all duration-100 ease-out",style:Es({width:`${a.progress}%`})},null,4)])],2))),128))]),_:1}))}}),Up=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Vp=Up($p,[["__scopeId","data-v-03615137"]]),qp={key:0,class:"loading-overlay"},Kp=Kn({__name:"App",setup(e){const t=nn(!1),n=nn(!1),s=Wd(),r=zc(),o=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,i=()=>{const c=localStorage.getItem("colorMode");return c?c==="dark":null},l=c=>{t.value=c,localStorage.setItem("colorMode",c?"dark":"light")};return Os(()=>{const c=i();l(c!==null?c:o()),lo.post("/",{}).then(u=>{u.code===200&&(localStorage.setItem("config",JSON.stringify(u.detail)),u.detail.notify_title&&u.detail.notify_content&&localStorage.getItem("notify")!==u.detail.notify_title+u.detail.notify_content&&(localStorage.setItem("notify",u.detail.notify_title+u.detail.notify_content),r.showAlert(u.detail.notify_title+": "+u.detail.notify_content,"success")))})}),xu(()=>{document.documentElement.classList.toggle("dark",t.value)}),s.beforeEach((c,u,a)=>{n.value=!0,a()}),s.afterEach(()=>{setTimeout(()=>{n.value=!1},200)}),Ht("isDarkMode",t),Ht("setColorMode",l),Ht("isLoading",n),(c,u)=>(We(),Fn("div",{class:fn(["app-container",t.value?"dark":"light"])},[me(nh,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=a=>t.value=a)},null,8,["modelValue"]),n.value?(We(),Fn("div",qp,u[1]||(u[1]=[De("div",{class:"loading-spinner"},null,-1)]))):ju("",!0),me(Te(wc),null,{default:hs(({Component:a})=>[me(ef,{name:"fade",mode:"out-in"},{default:hs(()=>[(We(),sn(Al(a),{key:c.$route.fullPath}))]),_:2},1024)]),_:1}),me(Vp)],2))}}),Wp="modulepreload",zp=function(e){return"/"+e},Ni={},Et=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=zp(c),c in Ni)return;Ni[c]=!0;const u=c.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Wp,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((p,m)=>{f.addEventListener("load",p),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Gp=qd({history:wd("/"),routes:[{path:"/",name:"Retrieve",component:()=>Et(()=>import("./RetrievewFileView-kEeEF5-W.js"),__vite__mapDeps([0,1,2,3,4,5]))},{path:"/send",name:"Send",component:()=>Et(()=>import("./SendFileView-D1ba9W4J.js"),__vite__mapDeps([6,1,3,4,7]))},{path:"/admin",name:"Manage",component:()=>Et(()=>import("./AdminLayout-nlTaSI8M.js"),__vite__mapDeps([8,2,9])),redirect:"/admin/dashboard",children:[{path:"/admin/dashboard",name:"Dashboard",component:()=>Et(()=>import("./DashboardView-BUrCNTY5.js"),__vite__mapDeps([10,3,4]))},{path:"/admin/files",name:"FileManage",component:()=>Et(()=>import("./FileManageView-BNB_pNK3.js"),__vite__mapDeps([11,3]))},{path:"/admin/settings",name:"Settings",component:()=>Et(()=>import("./SystemSettingsView-CKNcEAfu.js"),[])}]},{path:"/login",name:"Login",component:()=>Et(()=>import("./LoginView-GeI5hOqD.js"),__vite__mapDeps([12,2,13]))}]});Et(()=>import("./SendFileView-D1ba9W4J.js"),__vite__mapDeps([6,1,3,4,7]));const co=Lf(Kp);co.use(Ff());co.use(Gp);co.mount("#app");export{lo as A,Kn as B,em as C,Qp as D,rn as E,Ue as F,Sl as G,Uf as H,Vn as I,Jr as J,sn as K,Al as L,Zp as M,ef as T,th as X,Up as _,Ve as a,Fn as b,Wt as c,De as d,Te as e,me as f,tm as g,Jp as h,ju as i,hs as j,Du as k,nm as l,Xp as m,fn as n,Os as o,We as p,Ef as q,nn as r,Vf as s,la as t,zc as u,Yp as v,Rn as w,su as x,Wd as y,Oe as z}; diff --git a/fcb-fronted/dist/assets/trash-CytZg4YE.js b/fcb-fronted/dist/assets/trash-D-kesX_3.js similarity index 95% rename from fcb-fronted/dist/assets/trash-CytZg4YE.js rename to fcb-fronted/dist/assets/trash-D-kesX_3.js index ccea5f5e..6f31013a 100644 --- a/fcb-fronted/dist/assets/trash-CytZg4YE.js +++ b/fcb-fronted/dist/assets/trash-D-kesX_3.js @@ -1,4 +1,4 @@ -import{c as a}from"./index-DlNqZq-D.js";/** +import{c as a}from"./index-BTJMh68G.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/fcb-fronted/dist/index.html b/fcb-fronted/dist/index.html index 039f58f0..40ceb54e 100644 --- a/fcb-fronted/dist/index.html +++ b/fcb-fronted/dist/index.html @@ -11,7 +11,7 @@ FileCodeBox - +