mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-20 13:29:56 +08:00
feat: 更新2024主题
This commit is contained in:
1 parent
e854eb068c
commit
95f5e0dfbc
18 files changed
+42
-42
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{c as l,d as _,u as M,r as p,f as m,L as C,a as b,o as h,b as t,n as o,e,i as z,k as i,B as L,t as x,X as B,F as D,x as j,z as F,D as N,y as S,M as V}from"./index-C9gpBPbG.js";import{B as E}from"./box-m5X2L2BC.js";/**
|
||||
import{c as l,d as _,u as M,r as p,f as m,L as C,a as b,o as h,b as t,n as o,e,i as z,k as i,B as L,t as x,X as B,F as D,x as j,z as F,D as N,y as S,M as V}from"./index-14Tp7zPK.js";import{B as E}from"./box-CiSQlKtb.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{c as _,d as S,g as x,a as M,o as v,n as d,e as t,i as k,b as s,t as r,D,M as w,E as F,u as U,N as B,f as z,k as g,m,y as C,S as $}from"./index-C9gpBPbG.js";import{F as N}from"./file-DGAdxgYw.js";import{H as T}from"./hard-drive-BToulIQT.js";/**
|
||||
import{c as _,d as S,g as x,a as M,o as v,n as d,e as t,i as k,b as s,t as r,D,M as w,E as F,u as U,N as B,f as z,k as g,m,y as C,S as $}from"./index-14Tp7zPK.js";import{F as N}from"./file-CN_5aebv.js";import{H as T}from"./hard-drive-DvXIDK_-.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{c as P,d as V,a as x,o as h,n as o,e as t,i as L,b as e,E as B,t as l,F as S,x as T,g as F,k as u,y as k,u as N,r as $,l as Q,j as W,p as v,v as w,O as X,m as E,P as D}from"./index-C9gpBPbG.js";import{F as Z}from"./file-DGAdxgYw.js";import{T as ee}from"./trash-Cw4_1PxO.js";/**
|
||||
import{c as P,d as V,a as x,o as h,n as o,e as t,i as L,b as e,E as B,t as l,F as S,x as T,g as F,k as u,y as k,u as N,r as $,l as Q,j as W,p as v,v as w,O as X,m as E,P as D}from"./index-14Tp7zPK.js";import{F as Z}from"./file-CN_5aebv.js";import{T as ee}from"./trash-BTMfj7si.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -1 +1 @@
|
||||
import{K as y,r as c,V as u,g as b,d as w,l as x,a as h,o as S,b as e,n as d,e as i,i as A,k,h as I,p as D,v as N,y as T,t as _,W as M,B as O,_ as V}from"./index-C9gpBPbG.js";import{B as E}from"./box-m5X2L2BC.js";const B=y("admin",()=>{const p=c(localStorage.getItem(u.ADMIN_PASSWORD)||""),a=c(localStorage.getItem(u.TOKEN)||""),s=c(!1),l=c(null),n=b(()=>s.value&&!!a.value),f=o=>{p.value=o,localStorage.setItem(u.ADMIN_PASSWORD,o)},g=o=>{a.value=o,localStorage.setItem(u.TOKEN,o)},m=o=>{l.value=o,s.value=!0,g(o.token)};return{adminPassword:p,token:a,isLoggedIn:s,userInfo:l,isAuthenticated:n,updateAdminPassword:f,setToken:g,setUserInfo:m,login:o=>{m(o)},logout:()=>{p.value="",a.value="",s.value=!1,l.value=null,localStorage.removeItem(u.ADMIN_PASSWORD),localStorage.removeItem(u.TOKEN)},initAuth:()=>{const o=localStorage.getItem(u.TOKEN);o&&(a.value=o,s.value=!0)}}}),K=B,j={class:"mx-auto h-16 w-16 relative"},P={class:"rounded-md shadow-sm -space-y-px"},R=["disabled"],L=w({__name:"LoginView",setup(p){const a=x(),s=c(""),l=c(!1),n=A("isDarkMode"),f=K(),g=()=>{let r=!0;return s.value?s.value.length<6&&(a.showAlert("密码长度至少为6位","error"),r=!1):(a.showAlert("无效的密码","error"),r=!1),r},m=O(),v=async()=>{if(g()){l.value=!0;try{const r=await M.login(s.value);r.detail?.token?(f.setToken(r.detail.token),m.push("/admin")):a.showAlert("登录失败:未获取到有效令牌","error")}catch(r){const t=r&&typeof r=="object"&&"response"in r&&r.response?.data?.detail||"登录失败";a.showAlert(t,"error")}finally{l.value=!1}}};return(r,t)=>(S(),h("div",{class:d(["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",i(n)?"bg-gray-900":"bg-gray-50"])},[t[6]||(t[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:d(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[i(n)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",j,[t[1]||(t[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)),t[2]||(t[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:d(["absolute inset-1 rounded-full flex items-center justify-center",i(n)?"bg-gray-800":"bg-white"])},[k(i(E),{class:d(["h-8 w-8",i(n)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:d(["mt-6 text-center text-3xl font-extrabold",i(n)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:I(v,["prevent"])},[t[5]||(t[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",P,[e("div",null,[t[3]||(t[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),D(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":t[0]||(t[0]=o=>s.value=o),class:d(["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",i(n)?"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),[[N,s.value]])])]),e("div",null,[e("button",{type:"submit",class:d(["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",i(n)?"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",l.value?"opacity-75 cursor-not-allowed":""]),disabled:l.value},[t[4]||(t[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),T(" "+_(l.value?"登录中...":"登录"),1)],10,R)])],32)],2)],2))}}),C=V(L,[["__scopeId","data-v-894571a2"]]);export{C as default};
|
||||
import{K as y,r as c,V as u,g as b,d as w,l as x,a as h,o as S,b as e,n as d,e as i,i as A,k,h as I,p as D,v as N,y as T,t as _,W as M,B as O,_ as V}from"./index-14Tp7zPK.js";import{B as E}from"./box-CiSQlKtb.js";const B=y("admin",()=>{const p=c(localStorage.getItem(u.ADMIN_PASSWORD)||""),a=c(localStorage.getItem(u.TOKEN)||""),s=c(!1),l=c(null),n=b(()=>s.value&&!!a.value),f=o=>{p.value=o,localStorage.setItem(u.ADMIN_PASSWORD,o)},g=o=>{a.value=o,localStorage.setItem(u.TOKEN,o)},m=o=>{l.value=o,s.value=!0,g(o.token)};return{adminPassword:p,token:a,isLoggedIn:s,userInfo:l,isAuthenticated:n,updateAdminPassword:f,setToken:g,setUserInfo:m,login:o=>{m(o)},logout:()=>{p.value="",a.value="",s.value=!1,l.value=null,localStorage.removeItem(u.ADMIN_PASSWORD),localStorage.removeItem(u.TOKEN)},initAuth:()=>{const o=localStorage.getItem(u.TOKEN);o&&(a.value=o,s.value=!0)}}}),K=B,j={class:"mx-auto h-16 w-16 relative"},P={class:"rounded-md shadow-sm -space-y-px"},R=["disabled"],L=w({__name:"LoginView",setup(p){const a=x(),s=c(""),l=c(!1),n=A("isDarkMode"),f=K(),g=()=>{let r=!0;return s.value?s.value.length<6&&(a.showAlert("密码长度至少为6位","error"),r=!1):(a.showAlert("无效的密码","error"),r=!1),r},m=O(),v=async()=>{if(g()){l.value=!0;try{const r=await M.login(s.value);r.detail?.token?(f.setToken(r.detail.token),m.push("/admin")):a.showAlert("登录失败:未获取到有效令牌","error")}catch(r){const t=r&&typeof r=="object"&&"response"in r&&r.response?.data?.detail||"登录失败";a.showAlert(t,"error")}finally{l.value=!1}}};return(r,t)=>(S(),h("div",{class:d(["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",i(n)?"bg-gray-900":"bg-gray-50"])},[t[6]||(t[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:d(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[i(n)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",j,[t[1]||(t[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)),t[2]||(t[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:d(["absolute inset-1 rounded-full flex items-center justify-center",i(n)?"bg-gray-800":"bg-white"])},[k(i(E),{class:d(["h-8 w-8",i(n)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:d(["mt-6 text-center text-3xl font-extrabold",i(n)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:I(v,["prevent"])},[t[5]||(t[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",P,[e("div",null,[t[3]||(t[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),D(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":t[0]||(t[0]=o=>s.value=o),class:d(["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",i(n)?"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),[[N,s.value]])])]),e("div",null,[e("button",{type:"submit",class:d(["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",i(n)?"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",l.value?"opacity-75 cursor-not-allowed":""]),disabled:l.value},[t[4]||(t[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),T(" "+_(l.value?"登录中...":"登录"),1)],10,R)])],32)],2)],2))}}),C=V(L,[["__scopeId","data-v-894571a2"]]);export{C as default};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{c as Y,d as G,I as N,r as y,J as Z,f as ne,F as oe,K as ie,g as B,U as x,l as se,a as le,o as ue,b as H,k as ce,e as J,n as de,i as fe,t as he,_ as ve}from"./index-C9gpBPbG.js";import{B as ge}from"./box-m5X2L2BC.js";/**
|
||||
import{c as Y,d as G,I as N,r as y,J as Z,f as ne,F as oe,K as ie,g as B,U as x,l as se,a as le,o as ue,b as H,k as ce,e as J,n as de,i as fe,t as he,_ as ve}from"./index-14Tp7zPK.js";import{B as ge}from"./box-CiSQlKtb.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{c as ct,d as be,u as We,r as K,w as It,a as W,o as P,h as zt,b,n as T,e as d,i as xe,t as R,p as cr,j as ge,v as ur,k as L,_ as Re,z as pr,m as Le,y as me,D as Ut,T as Ft,E as hr,X as Nn,A as dr,F as fr,x as gr,l as mr,G as kr,f as br,H as xr,B as wr,C as yr}from"./index-C9gpBPbG.js";import{S as _r,C as Tr,Q as vr,E as Ar,u as Er,P as Sr,d as Rr}from"./PageHeader-B7RfkNXn.js";import{F as Pn}from"./file-DGAdxgYw.js";import{H as Lr}from"./hard-drive-BToulIQT.js";import{T as Cr}from"./trash-Cw4_1PxO.js";import"./box-m5X2L2BC.js";/**
|
||||
import{c as ct,d as be,u as We,r as K,w as It,a as W,o as P,h as zt,b,n as T,e as d,i as xe,t as R,p as cr,j as ge,v as ur,k as L,_ as Re,z as pr,m as Le,y as me,D as Ut,T as Ft,E as hr,X as Nn,A as dr,F as fr,x as gr,l as mr,G as kr,f as br,H as xr,B as wr,C as yr}from"./index-14Tp7zPK.js";import{S as _r,C as Tr,Q as vr,E as Ar,u as Er,P as Sr,d as Rr}from"./PageHeader-BDzp_ji4.js";import{F as Pn}from"./file-CN_5aebv.js";import{H as Lr}from"./hard-drive-DvXIDK_-.js";import{T as Cr}from"./trash-BTMfj7si.js";import"./box-CiSQlKtb.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -1,26 +0,0 @@
|
||||
import{c as L,d as N,u as Q,a as T,o as F,b as s,n,e,i as J,t as k,r as $,f as me,w as ze,_ as te,g as G,h as O,j as q,k as m,l as Ae,m as E,T as K,p as de,F as X,v as $e,q as Ie,s as ce,x as ue,y as Y,z as Pe,X as pe,A as Ve,B as Re,C as H}from"./index-C9gpBPbG.js";import{u as Ue,P as je,S as ge,C as Be,c as Ee,a as He,Q as Le,b as Z,E as Ne}from"./PageHeader-B7RfkNXn.js";import{F as he}from"./file-DGAdxgYw.js";import{T as We}from"./trash-Cw4_1PxO.js";import"./box-m5X2L2BC.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ee=L("clipboard-copy",[["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.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const qe=L("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ge=L("cloud-upload",[["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.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Oe=L("send",[["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"}]]);/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Qe=L("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),fe=A=>A>=1024*1024*1024?Math.round(A/(1024*1024*1024))+"GB":A>=1024*1024?Math.round(A/(1024*1024))+"MB":Math.round(A/1024)+"KB",Je={class:"flex justify-center space-x-4 mb-6"},Ke=N({__name:"SendTypeSelector",props:{selectedType:{}},emits:["update:selectedType"],setup(A,{emit:_}){const{t:z}=Q(),o=_,f=J("isDarkMode"),b=y=>{o("update:selectedType",y)};return(y,u)=>(F(),T("div",Je,[s("button",{type:"button",onClick:u[0]||(u[0]=l=>b("file")),class:n(["px-4 py-2 rounded-lg transition-colors duration-300",y.selectedType==="file"?"bg-indigo-600 text-white":e(f)?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-200 text-gray-700 hover:bg-gray-300"])},k(e(z)("nav.sendFile")),3),s("button",{type:"button",onClick:u[1]||(u[1]=l=>b("text")),class:n(["px-4 py-2 rounded-lg transition-colors duration-300",y.selectedType==="text"?"bg-indigo-600 text-white":e(f)?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-200 text-gray-700 hover:bg-gray-300"])},k(e(z)("send.sendText")),3)]))}}),Xe=N({__name:"BorderProgressBar",props:{progress:{}},setup(A){const _=A,z=$(null),o=$(null);let f=null;const b=()=>{if(!f||!o.value||!z.value)return;const u=z.value.clientWidth,l=z.value.clientHeight;o.value.width=u,o.value.height=l;const g=4,i=8;f.lineWidth=g;const C=f.createLinearGradient(0,0,u,l);C.addColorStop(0,"#4f46e5"),C.addColorStop(.5,"#7c3aed"),C.addColorStop(1,"#db2777"),f.strokeStyle="rgba(229, 231, 235, 0.2)",y(f,g/2,g/2,u-g,l-g,i),f.stroke();const d=((u+l)*2-8*i+2*Math.PI*i)*_.progress/100;f.strokeStyle=C,f.lineCap="round",f.lineJoin="round",f.beginPath();let p=d;const w=g/2,P=u-g,R=l-g;if(p>0){const x=Math.min(P-2*i,p);f.moveTo(i+w,w),f.lineTo(x+i+w,w),p-=x}if(p>0){const x=Math.min(Math.PI/2,p/i);f.arc(P-i+w,i+w,i,-Math.PI/2,x-Math.PI/2,!1),p-=x*i}if(p>0){const x=Math.min(R-2*i,p);f.lineTo(P+w,x+i+w),p-=x}if(p>0){const x=Math.min(Math.PI/2,p/i);f.arc(P-i+w,R-i+w,i,0,x,!1),p-=x*i}if(p>0){const x=Math.min(P-2*i,p);f.lineTo(P-x-i+w,R+w),p-=x}if(p>0){const x=Math.min(Math.PI/2,p/i);f.arc(i+w,R-i+w,i,Math.PI/2,Math.PI/2+x,!1),p-=x*i}if(p>0){const x=Math.min(R-2*i,p);f.lineTo(w,R-x-i+w),p-=x}if(p>0){const x=Math.min(Math.PI/2,p/i);f.arc(i+w,i+w,i,Math.PI,Math.PI+x,!1)}f.stroke()};function y(u,l,g,i,C,h){u.beginPath(),u.moveTo(l+h,g),u.lineTo(l+i-h,g),u.arcTo(l+i,g,l+i,g+h,h),u.lineTo(l+i,g+C-h),u.arcTo(l+i,g+C,l+i-h,g+C,h),u.lineTo(l+h,g+C),u.arcTo(l,g+C,l,g+C-h,h),u.lineTo(l,g+h),u.arcTo(l,g,l+h,g,h),u.closePath()}return me(()=>{o.value&&(f=o.value.getContext("2d"),b())}),ze(()=>_.progress,b),(u,l)=>(F(),T("div",{class:"border-progress-container",ref_key:"container",ref:z},[s("canvas",{ref_key:"canvas",ref:o,class:"border-progress-canvas"},null,512)],512))}}),Ye=te(Xe,[["__scopeId","data-v-2fbf5085"]]),Ze=["accept"],et={key:0,class:"absolute inset-0 w-full h-full"},tt={class:"block truncate"},st=N({__name:"FileUploadArea",props:{selectedFile:{default:null},progress:{default:0},placeholder:{default:""},description:{default:""},acceptedTypes:{default:"*"}},emits:["fileSelected","fileDrop"],setup(A,{emit:_}){const{t:z}=Q(),o=A,f=_,b=J("isDarkMode"),y=G(()=>o.placeholder||z("send.uploadArea.placeholder")),u=G(()=>o.description||z("send.uploadArea.description")),l=$(null),g=()=>{l.value?.click()},i=h=>{const p=h.target.files?.[0];p&&f("fileSelected",p)},C=h=>{f("fileDrop",h)};return(h,d)=>(F(),T("div",{class:n(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[e(b)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500"]]),onClick:g,onDragover:d[0]||(d[0]=O(()=>{},["prevent"])),onDrop:O(C,["prevent"])},[s("input",{ref_key:"fileInput",ref:l,type:"file",class:"hidden",onChange:i,accept:h.acceptedTypes},null,40,Ze),h.progress>0?(F(),T("div",et,[m(Ye,{progress:h.progress},null,8,["progress"])])):q("",!0),m(e(Ge),{class:n(["w-16 h-16 transition-colors duration-300",e(b)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},null,8,["class"]),s("p",{class:n(["mt-4 text-sm transition-colors duration-300 w-full text-center",e(b)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[s("span",tt,k(h.selectedFile?h.selectedFile.name:y.value),1)],2),s("p",{class:n(["mt-2 text-xs",e(b)?"text-gray-500":"text-gray-400"])},k(u.value),3)],34))}}),rt={class:"flex flex-col"},ot=["value","rows","placeholder"],at=N({__name:"TextInputArea",props:{modelValue:{},rows:{default:7},placeholder:{default:"在此输入要发送的文本..."}},emits:["update:modelValue"],setup(A,{emit:_}){const{t:z}=Q(),o=A,f=_,b=J("isDarkMode"),y=G(()=>o.placeholder||z("send.uploadArea.textInput")),u=l=>{const g=l.target;f("update:modelValue",g.value)};return(l,g)=>(F(),T("div",rt,[s("textarea",{value:l.modelValue,onInput:u,rows:l.rows,placeholLine truncated
|
||||
@@ -0,0 +1,26 @@
|
||||
import{c as H,d as N,u as Q,a as A,o as F,b as s,n as a,e,i as J,t as k,r as z,f as ve,w as Ve,_ as re,g as G,h as O,j as q,k as y,l as je,m as E,T as Y,p as pe,F as Z,v as Re,q as Ee,s as ge,x as he,y as ee,z as Le,X as fe,A as He,B as Ne,C as L}from"./index-14Tp7zPK.js";import{u as We,P as qe,S as me,C as Ge,c as Oe,a as Qe,Q as Je,b as te,E as Ke}from"./PageHeader-BDzp_ji4.js";import{F as ye}from"./file-CN_5aebv.js";import{T as Xe}from"./trash-BTMfj7si.js";import"./box-CiSQlKtb.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=H("clipboard-copy",[["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.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ye=H("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
||||
* @license lucide-vue-next v0.535.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=H("cloud-upload",[["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.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const et=H("send",[["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"}]]);/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const tt=H("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),xe=$=>$>=1024*1024*1024?Math.round($/(1024*1024*1024))+"GB":$>=1024*1024?Math.round($/(1024*1024))+"MB":Math.round($/1024)+"KB",st={class:"flex justify-center space-x-4 mb-6"},rt=N({__name:"SendTypeSelector",props:{selectedType:{}},emits:["update:selectedType"],setup($,{emit:_}){const{t:D}=Q(),o=_,f=J("isDarkMode"),b=v=>{o("update:selectedType",v)};return(v,u)=>(F(),A("div",st,[s("button",{type:"button",onClick:u[0]||(u[0]=i=>b("file")),class:a(["px-4 py-2 rounded-lg transition-colors duration-300",v.selectedType==="file"?"bg-indigo-600 text-white":e(f)?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-200 text-gray-700 hover:bg-gray-300"])},k(e(D)("nav.sendFile")),3),s("button",{type:"button",onClick:u[1]||(u[1]=i=>b("text")),class:a(["px-4 py-2 rounded-lg transition-colors duration-300",v.selectedType==="text"?"bg-indigo-600 text-white":e(f)?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-200 text-gray-700 hover:bg-gray-300"])},k(e(D)("send.sendText")),3)]))}}),ot=N({__name:"BorderProgressBar",props:{progress:{}},setup($){const _=$,D=z(null),o=z(null);let f=null;const b=()=>{if(!f||!o.value||!D.value)return;const u=D.value.clientWidth,i=D.value.clientHeight;o.value.width=u,o.value.height=i;const g=4,d=8;f.lineWidth=g;const C=f.createLinearGradient(0,0,u,i);C.addColorStop(0,"#4f46e5"),C.addColorStop(.5,"#7c3aed"),C.addColorStop(1,"#db2777"),f.strokeStyle="rgba(229, 231, 235, 0.2)",v(f,g/2,g/2,u-g,i-g,d),f.stroke();const c=((u+i)*2-8*d+2*Math.PI*d)*_.progress/100;f.strokeStyle=C,f.lineCap="round",f.lineJoin="round",f.beginPath();let p=c;const w=g/2,I=u-g,U=i-g;if(p>0){const x=Math.min(I-2*d,p);f.moveTo(d+w,w),f.lineTo(x+d+w,w),p-=x}if(p>0){const x=Math.min(Math.PI/2,p/d);f.arc(I-d+w,d+w,d,-Math.PI/2,x-Math.PI/2,!1),p-=x*d}if(p>0){const x=Math.min(U-2*d,p);f.lineTo(I+w,x+d+w),p-=x}if(p>0){const x=Math.min(Math.PI/2,p/d);f.arc(I-d+w,U-d+w,d,0,x,!1),p-=x*d}if(p>0){const x=Math.min(I-2*d,p);f.lineTo(I-x-d+w,U+w),p-=x}if(p>0){const x=Math.min(Math.PI/2,p/d);f.arc(d+w,U-d+w,d,Math.PI/2,Math.PI/2+x,!1),p-=x*d}if(p>0){const x=Math.min(U-2*d,p);f.lineTo(w,U-x-d+w),p-=x}if(p>0){const x=Math.min(Math.PI/2,p/d);f.arc(d+w,d+w,d,Math.PI,Math.PI+x,!1)}f.stroke()};function v(u,i,g,d,C,h){u.beginPath(),u.moveTo(i+h,g),u.lineTo(i+d-h,g),u.arcTo(i+d,g,i+d,g+h,h),u.lineTo(i+d,g+C-h),u.arcTo(i+d,g+C,i+d-h,g+C,h),u.lineTo(i+h,g+C),u.arcTo(i,g+C,i,g+C-h,h),u.lineTo(i,g+h),u.arcTo(i,g,i+h,g,h),u.closePath()}return ve(()=>{o.value&&(f=o.value.getContext("2d"),b())}),Ve(()=>_.progress,b),(u,i)=>(F(),A("div",{class:"border-progress-container",ref_key:"container",ref:D},[s("canvas",{ref_key:"canvas",ref:o,class:"border-progress-canvas"},null,512)],512))}}),at=re(ot,[["__scopeId","data-v-2fbf5085"]]),nt=["accept"],lt={key:0,class:"absolute inset-0 w-full h-full"},it={class:"block truncate"},dt=N({__name:"FileUploadArea",props:{selectedFile:{default:null},progress:{default:0},placeholder:{default:""},description:{default:""},acceptedTypes:{default:"*"}},emits:["fileSelected","fileDrop"],setup($,{emit:_}){const{t:D}=Q(),o=$,f=_,b=J("isDarkMode"),v=G(()=>o.placeholder||D("send.uploadArea.placeholder")),u=G(()=>o.description||D("send.uploadArea.description")),i=z(null),g=()=>{i.value?.click()},d=h=>{const p=h.target.files?.[0];p&&f("fileSelected",p)},C=h=>{f("fileDrop",h)};return(h,c)=>(F(),A("div",{class:a(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[e(b)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500"]]),onClick:g,onDragover:c[0]||(c[0]=O(()=>{},["prevent"])),onDrop:O(C,["prevent"])},[s("input",{ref_key:"fileInput",ref:i,type:"file",class:"hidden",onChange:d,accept:h.acceptedTypes},null,40,nt),h.progress>0?(F(),A("div",lt,[y(at,{progress:h.progress},null,8,["progress"])])):q("",!0),y(e(Ze),{class:a(["w-16 h-16 transition-colors duration-300",e(b)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},null,8,["class"]),s("p",{class:a(["mt-4 text-sm transition-colors duration-300 w-full text-center",e(b)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[s("span",it,k(h.selectedFile?h.selectedFile.name:v.value),1)],2),s("p",{class:a(["mt-2 text-xs",e(b)?"text-gray-500":"text-gray-400"])},k(u.value),3)],34))}}),ct={class:"flex flex-col"},ut=["value","rows","placeholder"],pt=N({__name:"TextInputArea",props:{modelValue:{},rows:{default:7},placeholder:{default:"在此输入要发送的文本..."}},emits:["update:modelValue"],setup($,{emit:_}){const{t:D}=Q(),o=$,f=_,b=J("isDarkMode"),v=G(()=>o.placeholder||D("send.uploadArea.textInput")),u=i=>{const g=i.target;f("update:modelValue",g.value)};return(i,g)=>(F(),A("div",ct,[s("textarea",{value:i.modelValue,onInput:u,rows:i.rows,placeholLine truncated
|
||||
@@ -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}.custom-scrollbar[data-v-bebdfe92]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.3) rgba(243,244,246,.5)}.custom-scrollbar[data-v-bebdfe92]::-webkit-scrollbar{width:6px;height:6px}.custom-scrollbar[data-v-bebdfe92]::-webkit-scrollbar-track{background:#f3f4f680;border-radius:3px}.custom-scrollbar[data-v-bebdfe92]::-webkit-scrollbar-thumb{background-color:#9ca3af80;border-radius:3px;-webkit-transition:background-color .3s;transition:background-color .3s}.custom-scrollbar[data-v-bebdfe92]::-webkit-scrollbar-thumb:hover{background-color:#9ca3afb3}[data-v-bebdfe92] [class*=dark] .custom-scrollbar{scrollbar-color:rgba(75,85,99,.5) rgba(31,41,55,.5)}[data-v-bebdfe92] [class*=dark] .custom-scrollbar::-webkit-scrollbar-track{background:#1f293780}[data-v-bebdfe92] [class*=dark] .custom-scrollbar::-webkit-scrollbar-thumb{background-color:#4b556380}[data-v-bebdfe92] [class*=dark] .custom-scrollbar::-webkit-scrollbar-thumb:hover{background-color:#4b5563b3}.fade-enter-active[data-v-a7f6997f],.fade-leave-active[data-v-a7f6997f]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-a7f6997f],.fade-leave-to[data-v-a7f6997f]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-a7f6997f]{width:30rem}}.fade-enter-to[data-v-a7f6997f],.fade-leave-from[data-v-a7f6997f]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-a7f6997f],.drawer-leave-active[data-v-a7f6997f]{transition:transform .3s ease}.drawer-enter-from[data-v-a7f6997f],.drawer-leave-to[data-v-a7f6997f]{transform:translate(100%)}.list-enter-active[data-v-a7f6997f],.list-leave-active[data-v-a7f6997f]{transition:all .5s ease}.list-enter-from[data-v-a7f6997f],.list-leave-to[data-v-a7f6997f]{opacity:0;transform:translate(30px)}select option[data-v-a7f6997f]{padding:8px;margin:4px;border-radius:6px}select option[data-v-a7f6997f]:checked{background:linear-gradient(to right,#6366f180,#a855f780)!important;color:#fff!important}.dark select option[data-v-a7f6997f]:checked{background:linear-gradient(to right,#6366f1b3,#a855f7b3)!important}select option[data-v-a7f6997f]:hover{background-color:#6366f11a}.dark select option[data-v-a7f6997f]:hover{background-color:#6366f133}.custom-scrollbar[data-v-a7f6997f]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.4) rgba(243,244,246,.3)}.custom-scrollbar[data-v-a7f6997f]::-webkit-scrollbar{width:8px;height:8px}.custom-scrollbar[data-v-a7f6997f]::-webkit-scrollbar-track{background:#f3f4f64d;border-radius:6px;margin:4px}.custom-scrollbar[data-v-a7f6997f]::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#6366f199,#a855f799);border-radius:6px;border:1px solid rgba(255,255,255,.2);-webkit-transition:all .3s ease;transition:all .3s ease}.custom-scrollbar[data-v-a7f6997f]::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#6366f1cc,#a855f7cc);transform:scale(1.1)}.custom-scrollbar[data-v-a7f6997f]::-webkit-scrollbar-corner{background:transparent}.dark .custom-scrollbar[data-v-a7f6997f]{scrollbar-color:rgba(75,85,99,.6) rgba(31,41,55,.4)}.dark .custom-scrollbar[data-v-a7f6997f]::-webkit-scrollbar-track{background:#1f293766}.dark .custom-scrollbar[data-v-a7f6997f]::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#6366f1b3,#a855f7b3);border:1px solid rgba(255,255,255,.1)}.dark .custom-scrollbar[data-v-a7f6997f]::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#6366f1e6,#a855f7e6)}
|
||||
@@ -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}.custom-scrollbar[data-v-bebdfe92]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.3) rgba(243,244,246,.5)}.custom-scrollbar[data-v-bebdfe92]::-webkit-scrollbar{width:6px;height:6px}.custom-scrollbar[data-v-bebdfe92]::-webkit-scrollbar-track{background:#f3f4f680;border-radius:3px}.custom-scrollbar[data-v-bebdfe92]::-webkit-scrollbar-thumb{background-color:#9ca3af80;border-radius:3px;-webkit-transition:background-color .3s;transition:background-color .3s}.custom-scrollbar[data-v-bebdfe92]::-webkit-scrollbar-thumb:hover{background-color:#9ca3afb3}[data-v-bebdfe92] [class*=dark] .custom-scrollbar{scrollbar-color:rgba(75,85,99,.5) rgba(31,41,55,.5)}[data-v-bebdfe92] [class*=dark] .custom-scrollbar::-webkit-scrollbar-track{background:#1f293780}[data-v-bebdfe92] [class*=dark] .custom-scrollbar::-webkit-scrollbar-thumb{background-color:#4b556380}[data-v-bebdfe92] [class*=dark] .custom-scrollbar::-webkit-scrollbar-thumb:hover{background-color:#4b5563b3}.fade-enter-active[data-v-ebff2eb6],.fade-leave-active[data-v-ebff2eb6]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-ebff2eb6],.fade-leave-to[data-v-ebff2eb6]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-ebff2eb6]{width:30rem}}.fade-enter-to[data-v-ebff2eb6],.fade-leave-from[data-v-ebff2eb6]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-ebff2eb6],.drawer-leave-active[data-v-ebff2eb6]{transition:transform .3s ease}.drawer-enter-from[data-v-ebff2eb6],.drawer-leave-to[data-v-ebff2eb6]{transform:translate(100%)}.list-enter-active[data-v-ebff2eb6],.list-leave-active[data-v-ebff2eb6]{transition:all .5s ease}.list-enter-from[data-v-ebff2eb6],.list-leave-to[data-v-ebff2eb6]{opacity:0;transform:translate(30px)}select option[data-v-ebff2eb6]{padding:8px;margin:4px;border-radius:6px}select option[data-v-ebff2eb6]:checked{background:linear-gradient(to right,#6366f180,#a855f780)!important;color:#fff!important}.dark select option[data-v-ebff2eb6]:checked{background:linear-gradient(to right,#6366f1b3,#a855f7b3)!important}select option[data-v-ebff2eb6]:hover{background-color:#6366f11a}.dark select option[data-v-ebff2eb6]:hover{background-color:#6366f133}.custom-scrollbar[data-v-ebff2eb6]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.4) rgba(243,244,246,.3)}.custom-scrollbar[data-v-ebff2eb6]::-webkit-scrollbar{width:8px;height:8px}.custom-scrollbar[data-v-ebff2eb6]::-webkit-scrollbar-track{background:#f3f4f64d;border-radius:6px;margin:4px}.custom-scrollbar[data-v-ebff2eb6]::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#6366f199,#a855f799);border-radius:6px;border:1px solid rgba(255,255,255,.2);-webkit-transition:all .3s ease;transition:all .3s ease}.custom-scrollbar[data-v-ebff2eb6]::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#6366f1cc,#a855f7cc);transform:scale(1.1)}.custom-scrollbar[data-v-ebff2eb6]::-webkit-scrollbar-corner{background:transparent}.dark .custom-scrollbar[data-v-ebff2eb6]{scrollbar-color:rgba(75,85,99,.6) rgba(31,41,55,.4)}.dark .custom-scrollbar[data-v-ebff2eb6]::-webkit-scrollbar-track{background:#1f293766}.dark .custom-scrollbar[data-v-ebff2eb6]::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#6366f1b3,#a855f7b3);border:1px solid rgba(255,255,255,.1)}.dark .custom-scrollbar[data-v-ebff2eb6]::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#6366f1e6,#a855f7e6)}
|
||||
@@ -0,0 +1 @@
|
||||
import{d as B,u as F,r as h,l as P,a as m,o as b,b as e,t as l,e as o,n as s,i as z,p as d,v as g,q as x,F as w,x as k,j as _,Q as U,R as A}from"./index-14Tp7zPK.js";const T={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},E={class:"space-y-4"},N={class:"grid grid-cols-1 gap-6"},L={class:"space-y-2"},I={class:"space-y-2"},j={class:"space-y-2"},K={class:"relative"},$=["placeholder"],G={class:"text-xs"},R={class:"space-y-2"},W={class:"space-y-2"},q=["value"],H={class:"space-y-2"},Q={class:"grid grid-cols-1 gap-6 mt-8"},J={class:"space-y-2"},O={class:"space-y-2"},X={class:"space-y-4"},Y={class:"space-y-2"},Z=["placeholder"],ee={class:"space-y-4"},oe={class:"space-y-2"},te={value:"local"},re={value:"s3"},ae={value:"webdav"},se={key:0,class:"space-y-2"},ne={class:"flex items-center"},ie=["aria-checked"],le={key:1,class:"space-y-4"},de={class:"space-y-2"},ge=["placeholder"],ue={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ce={class:"space-y-2"},ye=["placeholder"],me={class:"space-y-2"},be=["placeholder"],pe={key:2,class:"space-y-4"},ve={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},he={class:"space-y-2"},xe={class:"space-y-2"},fe={class:"space-y-2"},_e={class:"space-y-2"},we={class:"space-y-2"},ke=["placeholder"],Ue={class:"space-y-2"},Ce={value:"s3v2"},Se={value:"s3v4"},Ve={class:"space-y-2"},De={class:"space-y-2"},Me={class:"flex items-center"},Be=["aria-checked"],Fe={class:"space-y-2"},Pe={class:"flex items-center"},ze=["aria-checked"],Ae={class:"mt-8"},Te={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Ee={class:"space-y-2"},Ne={class:"flex items-center space-x-2"},Le={class:"space-y-2"},Ie={class:"flex items-center space-x-2"},je={class:"space-y-2"},Ke={class:"flex items-center space-x-2"},$e={value:"KB"},Ge={value:"MB"},Re={value:"GB"},We={class:"space-y-2"},qe={class:"flex flex-wrap gap-3"},He=["value"],Qe={class:"space-y-2"},Je={class:"flex items-center space-x-2"},Oe={value:"秒"},Xe={value:"分"},Ye={value:"时"},Ze={value:"天"},eo={class:"space-y-2"},oo={class:"flex items-center"},to=["aria-checked"],ro={class:"mt-8"},ao={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},so={class:"space-y-2"},no={class:"flex items-center space-x-2"},io={class:"space-y-2"},lo={class:"flex items-center space-x-2"},go={class:"flex justify-end mt-8"},yo=B({__name:"SystemSettingsView",setup(uo){const n=z("isDarkMode"),{t:i}=F(),t=h({name:"",description:"",file_storage:"",webdav_url:"",webdav_username:"",webdav_password:"",themesChoices:[],expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",storage_path:"",notify_content:"",openUpload:1,uploadSize:1,enableChunk:0,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,themesSelect:""}),p=h(1),v=h("MB"),c=h(1),y=h("天"),C=(u,a)=>u*{秒:1,分:60,时:3600,天:86400}[a],f=P(),S=async()=>{try{const u=await U.getConfig();if(u.code===200&&u.detail){t.value=u.detail;const a=t.value.uploadSize;a>=1024*1024*1024?(p.value=Math.round(a/(1024*1024*1024)),v.value="GB"):a>=1024*1024?(p.value=Math.round(a/(1024*1024)),v.value="MB"):(p.value=Math.round(a/1024),v.value="KB");const r=t.value.max_save_seconds;r===0?(c.value=7,y.value="天"):r%86400===0&&r>=86400?(c.value=r/86400,y.value="天"):r%3600===0&&r>=3600?(c.value=r/3600,y.value="时"):r%60===0&&r>=60?(c.value=r/60,y.value="分"):(c.value=r,y.value="秒")}}catch(u){const a=u instanceof Error?u.message:i("manage.systemSettings.getConfigFailed");f.showAlert(a,"error"),console.error("Failed to get system config:",u)}},V=(u,a)=>u*{KB:1024,MB:1048576,GB:1073741824}[a],D=()=>{const u={...t.value};u.uploadSize=V(p.value,v.value),c.value===0?u.max_save_seconds=7*86400:u.max_save_seconds=C(c.value,y.value),U.updateConfig(u).then(a=>{a.code==200?f.showAlert(i("manage.systemSettings.saveSuccess"),"success"):f.showAlert(a.message||i("manage.systemSettings.saveFailed"),"error")}).catch(a=>{const r=a instanceof Error?a.message:i("manage.systemSettings.saveFailed");f.showAlert(r,"error")})};return S(),(u,a)=>(b(),m("div",T,[e("h2",{class:s(["text-2xl font-bold mb-6",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("admin.settings.title")),3),e("div",{class:s(["space-y-6 rounded-lg shadow-md p-6",[o(n)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",E,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("admin.settings.basicSettings")),3),e("div",N,[e("div",L,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.siteName")),3),d(e("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=r=>t.value.name=r),class:s(["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",[o(n)?"bgLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{d as B,u as F,r as h,l as P,a as m,o as b,b as e,t as l,e as o,n as s,i as z,p as d,v as g,q as x,F as w,x as k,j as _,Q as U,R as A}from"./index-C9gpBPbG.js";const T={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},E={class:"space-y-4"},L={class:"grid grid-cols-1 gap-6"},N={class:"space-y-2"},I={class:"space-y-2"},j={class:"space-y-2"},K={class:"relative"},$=["placeholder"],G={class:"text-xs"},R={class:"space-y-2"},W={class:"space-y-2"},q=["value"],H={class:"space-y-2"},Q={class:"grid grid-cols-1 gap-6 mt-8"},J={class:"space-y-2"},O={class:"space-y-2"},X={class:"space-y-4"},Y={class:"space-y-2"},Z=["placeholder"],ee={class:"space-y-4"},oe={class:"space-y-2"},te={value:"local"},re={value:"s3"},ae={value:"webdav"},se={key:0,class:"space-y-2"},ne={class:"flex items-center"},ie=["aria-checked"],le={key:1,class:"space-y-4"},de={class:"space-y-2"},ge=["placeholder"],ue={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ce={class:"space-y-2"},ye=["placeholder"],me={class:"space-y-2"},be=["placeholder"],pe={key:2,class:"space-y-4"},ve={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},he={class:"space-y-2"},xe={class:"space-y-2"},fe={class:"space-y-2"},_e={class:"space-y-2"},we={class:"space-y-2"},ke=["placeholder"],Ue={class:"space-y-2"},Ce={value:"s3v2"},Se={value:"s3v4"},Ve={class:"space-y-2"},De={class:"space-y-2"},Me={class:"flex items-center"},Be=["aria-checked"],Fe={class:"mt-8"},Pe={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ze={class:"space-y-2"},Ae={class:"flex items-center space-x-2"},Te={class:"space-y-2"},Ee={class:"flex items-center space-x-2"},Le={class:"space-y-2"},Ne={class:"flex items-center space-x-2"},Ie={value:"KB"},je={value:"MB"},Ke={value:"GB"},$e={class:"space-y-2"},Ge={class:"flex flex-wrap gap-3"},Re=["value"],We={class:"space-y-2"},qe={class:"flex items-center space-x-2"},He={value:"秒"},Qe={value:"分"},Je={value:"时"},Oe={value:"天"},Xe={class:"space-y-2"},Ye={class:"flex items-center"},Ze=["aria-checked"],eo={class:"mt-8"},oo={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},to={class:"space-y-2"},ro={class:"flex items-center space-x-2"},ao={class:"space-y-2"},so={class:"flex items-center space-x-2"},no={class:"flex justify-end mt-8"},go=B({__name:"SystemSettingsView",setup(io){const n=z("isDarkMode"),{t:i}=F(),a=h({name:"",description:"",file_storage:"",webdav_url:"",webdav_username:"",webdav_password:"",themesChoices:[],expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",storage_path:"",notify_content:"",openUpload:1,uploadSize:1,enableChunk:0,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,themesSelect:""}),p=h(1),v=h("MB"),c=h(1),y=h("天"),C=(u,r)=>u*{秒:1,分:60,时:3600,天:86400}[r],f=P(),S=async()=>{try{const u=await U.getConfig();if(u.code===200&&u.detail){a.value=u.detail;const r=a.value.uploadSize;r>=1024*1024*1024?(p.value=Math.round(r/(1024*1024*1024)),v.value="GB"):r>=1024*1024?(p.value=Math.round(r/(1024*1024)),v.value="MB"):(p.value=Math.round(r/1024),v.value="KB");const t=a.value.max_save_seconds;t===0?(c.value=7,y.value="天"):t%86400===0&&t>=86400?(c.value=t/86400,y.value="天"):t%3600===0&&t>=3600?(c.value=t/3600,y.value="时"):t%60===0&&t>=60?(c.value=t/60,y.value="分"):(c.value=t,y.value="秒")}}catch(u){const r=u instanceof Error?u.message:"获取配置失败";f.showAlert(r,"error"),console.error("获取系统配置失败:",u)}},V=(u,r)=>u*{KB:1024,MB:1048576,GB:1073741824}[r],D=()=>{const u={...a.value};u.uploadSize=V(p.value,v.value),c.value===0?u.max_save_seconds=7*86400:u.max_save_seconds=C(c.value,y.value),U.updateConfig(u).then(r=>{r.code==200?f.showAlert("保存成功","success"):f.showAlert(r.message||"保存失败","error")}).catch(r=>{const t=r instanceof Error?r.message:"保存失败";f.showAlert(t,"error")})};return S(),(u,r)=>(b(),m("div",T,[e("h2",{class:s(["text-2xl font-bold mb-6",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("admin.settings.title")),3),e("div",{class:s(["space-y-6 rounded-lg shadow-md p-6",[o(n)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",E,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("admin.settings.basicSettings")),3),e("div",L,[e("div",N,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.siteName")),3),d(e("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=t=>a.value.name=t),class:s(["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",[o(n)?"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),[[g,a.value.namLine truncated
|
||||
@@ -1,4 +1,4 @@
|
||||
import{c as a}from"./index-C9gpBPbG.js";/**
|
||||
import{c as a}from"./index-14Tp7zPK.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -1,4 +1,4 @@
|
||||
import{c as a}from"./index-C9gpBPbG.js";/**
|
||||
import{c as a}from"./index-14Tp7zPK.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{c as e}from"./index-C9gpBPbG.js";/**
|
||||
import{c as e}from"./index-14Tp7zPK.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -1,4 +1,4 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SendFileView-BOsMUoIt.js","assets/PageHeader-B7RfkNXn.js","assets/box-m5X2L2BC.js","assets/PageHeader-DV4PCTwD.css","assets/file-DGAdxgYw.js","assets/trash-Cw4_1PxO.js","assets/SendFileView-CEwL3Upl.css","assets/RetrievewFileView-B44L-RDl.js","assets/hard-drive-BToulIQT.js","assets/RetrievewFileView-pLqL6j5e.css","assets/AdminLayout-RFCv5MG9.js","assets/AdminLayout-nlp_lohe.css","assets/DashboardView-Wzfzsof2.js","assets/FileManageView-D_aFzaTt.js","assets/FileManageView-DrjnVkAt.css","assets/LoginView-Dl9p7s8x.js","assets/LoginView-CbGDZtny.css"])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SendFileView-BqULfUDl.js","assets/PageHeader-BDzp_ji4.js","assets/box-CiSQlKtb.js","assets/PageHeader-DV4PCTwD.css","assets/file-CN_5aebv.js","assets/trash-BTMfj7si.js","assets/SendFileView-D1bkFasE.css","assets/RetrievewFileView-DWBfGPUc.js","assets/hard-drive-DvXIDK_-.js","assets/RetrievewFileView-pLqL6j5e.css","assets/AdminLayout-CoImnOQO.js","assets/AdminLayout-nlp_lohe.css","assets/DashboardView-BQRsJrnN.js","assets/FileManageView-CZQWWk0t.js","assets/FileManageView-DrjnVkAt.css","assets/LoginView-B4xHkhLy.js","assets/LoginView-CbGDZtny.css"])))=>i.map(i=>d[i]);
|
||||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
|
||||
* @vue/shared v3.5.21
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
@@ -106,9 +106,9 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SendFileView-BO
|
||||
* vue-i18n v9.14.5
|
||||
* (c) 2025 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/const h_="9.14.5";function p_(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Vt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Vt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Vt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vt().__INTLIFY_PROD_DEVTOOLS__=!1)}const g_=qg.__EXTEND_POINT__,Ut=Ds(g_);Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut();const qu=yt.__EXTEND_POINT__,rt=Ds(qu),ke={UNEXPECTED_RETURN_TYPE:qu,INVALID_ARGUMENT:rt(),MUST_BE_CALL_SETUP_TOP:rt(),NOT_INSTALLED:rt(),NOT_AVAILABLE_IN_LEGACY_MODE:rt(),REQUIRED_VALUE:rt(),INVALID_VALUE:rt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:rt(),NOT_INSTALLED_WITH_PROVIDE:rt(),UNEXPECTED_ERROR:rt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:rt(),BRIDGE_SUPPORT_VUE_2_ONLY:rt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:rt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:rt(),__EXTEND_POINT__:rt()};function De(e,...t){return tr(e,null,void 0)}const Do=_n("__translateVNode"),Uo=_n("__datetimeParts"),$o=_n("__numberParts"),Yu=_n("__setPluralRules"),zu=_n("__injectWithOption"),Bo=_n("__dispose");function kr(e){if(!fe(e)||xt(e))return e;for(const t in e)if(_t(e,t))if(!t.includes("."))fe(e[t])&&kr(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,o=!1;for(let i=0;i<r;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in s||(s[n[i]]=he()),!fe(s[n[i]])){o=!0;break}s=s[n[i]]}if(o||(xt(s)?ku.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!xt(s)){const i=s[n[r]];fe(i)&&kr(i)}}return e}function $s(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:o}=t,i=re(n)?n:Se(r)?he():{[e]:he()};if(Se(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||he(),ns(c,i[l])):ns(c,i)}else G(a)&&ns(JSON.parse(a),i)}),s==null&&o)for(const a in i)_t(i,a)&&kr(i[a]);return i}function Xu(e){return e.type}function Ju(e,t,n){let r=fe(t.messages)?t.messages:he();"__i18nGlobal"in n&&(r=$s(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(fe(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(fe(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function nl(e){return Pe($r,null,e,0)}const rl="__INTLIFY_META__",sl=()=>[],__=()=>!1;let ol=0;function il(e){return((t,n,r,s)=>e(n,r,zt()||void 0,s))}const y_=()=>{const e=zt();let t=null;return e&&(t=Xu(e)[rl])?{[rl]:t}:null};function vi(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,o=e.flatJson,i=_s?st:li,a=!!e.translateExistCompatible;let l=ie(e.inheritLocale)?e.inheritLocale:!0;const c=i(n&&l?n.locale.value:G(e.locale)?e.locale:Jn),u=i(n&&l?n.fallbackLocale.value:G(e.fallbackLocale)||Se(e.fallbackLocale)||re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),f=i($s(c.value,e)),d=i(re(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=i(re(e.numberFormats)?e.numberFormats:{[c.value]:{}});let E=n?n.missingWarn:ie(e.missingWarn)||pn(e.missingWarn)?e.missingWarn:!0,S=n?n.fallbackWarn:ie(e.fallbackWarn)||pn(e.fallbackWarn)?e.fallbackWarn:!0,w=n?n.fallbackRoot:ie(e.fallbackRoot)?e.fallbackRoot:!0,O=!!e.fallbackFormat,k=Ee(e.missing)?e.missing:null,b=Ee(e.missing)?il(e.missing):null,v=Ee(e.postTranslation)?e.postTranslation:null,L=n?n.warnHtmlMessage:ie(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const M=n?n.modifiers:re(e.modifiers)?e.modifiers:{};let $=e.pluralRules||n&&n.pluralRules,R;R=(()=>{s&&qa(null);const T={version:h_,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:M,pluralRules:$,missing:b===null?void 0:b,missingWarn:E,fallbackWarn:S,fallbackFormat:O,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:L,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=d.value,T.numberFormats=p.value,T.__datetimeFormatters=re(R)?R.__datetimeFormatters:void 0,T.__numberFormatters=re(R)?R.__numberFormatters:void 0;const x=s_(T);return s&&qa(x),x})(),ar(R,c.value,u.value);function ee(){return[c.value,u.value,f.value,d.value,p.value]}const B=_e({get:()=>c.value,set:T=>{c.value=T,R.locale=c.value}}),Q=_e({get:()=>u.value,set:T=>{u.value=T,R.fallbackLocale=u.value,ar(R,c.value,T)}}),ye=_e(()=>f.value),Oe=_e(()=>d.value),oe=_e(()=>p.value);function te(){return Ee(v)?v:null}function ae(T){v=T,R.postTranslation=T}function Je(){return k}function nt(T){T!==null&&(b=il(T)),k=T,R.missing=b}const Ce=(T,x,X,le,Te,Qe)=>{ee();let Ue;try{__INTLIFY_PROD_DEVTOOLS__,s||(R.fallbackContext=n?r_():void 0),Ue=T(R)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(R.fallbackContext=void 0)}if(X!=="translate exists"&&Ne(Ue)&&Ue===Us||X==="translate exists"&&!Ue){conLine truncated
|
||||
*/const h_="9.14.5";function p_(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Vt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Vt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Vt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vt().__INTLIFY_PROD_DEVTOOLS__=!1)}const g_=qg.__EXTEND_POINT__,Ut=Ds(g_);Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut();const qu=yt.__EXTEND_POINT__,rt=Ds(qu),ke={UNEXPECTED_RETURN_TYPE:qu,INVALID_ARGUMENT:rt(),MUST_BE_CALL_SETUP_TOP:rt(),NOT_INSTALLED:rt(),NOT_AVAILABLE_IN_LEGACY_MODE:rt(),REQUIRED_VALUE:rt(),INVALID_VALUE:rt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:rt(),NOT_INSTALLED_WITH_PROVIDE:rt(),UNEXPECTED_ERROR:rt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:rt(),BRIDGE_SUPPORT_VUE_2_ONLY:rt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:rt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:rt(),__EXTEND_POINT__:rt()};function De(e,...t){return tr(e,null,void 0)}const Do=_n("__translateVNode"),Uo=_n("__datetimeParts"),$o=_n("__numberParts"),Yu=_n("__setPluralRules"),zu=_n("__injectWithOption"),Bo=_n("__dispose");function kr(e){if(!fe(e)||xt(e))return e;for(const t in e)if(_t(e,t))if(!t.includes("."))fe(e[t])&&kr(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,o=!1;for(let i=0;i<r;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in s||(s[n[i]]=he()),!fe(s[n[i]])){o=!0;break}s=s[n[i]]}if(o||(xt(s)?ku.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!xt(s)){const i=s[n[r]];fe(i)&&kr(i)}}return e}function $s(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:o}=t,i=re(n)?n:Se(r)?he():{[e]:he()};if(Se(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||he(),ns(c,i[l])):ns(c,i)}else G(a)&&ns(JSON.parse(a),i)}),s==null&&o)for(const a in i)_t(i,a)&&kr(i[a]);return i}function Xu(e){return e.type}function Ju(e,t,n){let r=fe(t.messages)?t.messages:he();"__i18nGlobal"in n&&(r=$s(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(fe(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(fe(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function nl(e){return Pe($r,null,e,0)}const rl="__INTLIFY_META__",sl=()=>[],__=()=>!1;let ol=0;function il(e){return((t,n,r,s)=>e(n,r,zt()||void 0,s))}const y_=()=>{const e=zt();let t=null;return e&&(t=Xu(e)[rl])?{[rl]:t}:null};function vi(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,o=e.flatJson,i=_s?st:li,a=!!e.translateExistCompatible;let l=ie(e.inheritLocale)?e.inheritLocale:!0;const c=i(n&&l?n.locale.value:G(e.locale)?e.locale:Jn),u=i(n&&l?n.fallbackLocale.value:G(e.fallbackLocale)||Se(e.fallbackLocale)||re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),f=i($s(c.value,e)),d=i(re(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=i(re(e.numberFormats)?e.numberFormats:{[c.value]:{}});let E=n?n.missingWarn:ie(e.missingWarn)||pn(e.missingWarn)?e.missingWarn:!0,S=n?n.fallbackWarn:ie(e.fallbackWarn)||pn(e.fallbackWarn)?e.fallbackWarn:!0,w=n?n.fallbackRoot:ie(e.fallbackRoot)?e.fallbackRoot:!0,O=!!e.fallbackFormat,k=Ee(e.missing)?e.missing:null,b=Ee(e.missing)?il(e.missing):null,v=Ee(e.postTranslation)?e.postTranslation:null,L=n?n.warnHtmlMessage:ie(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const M=n?n.modifiers:re(e.modifiers)?e.modifiers:{};let $=e.pluralRules||n&&n.pluralRules,R;R=(()=>{s&&qa(null);const T={version:h_,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:M,pluralRules:$,missing:b===null?void 0:b,missingWarn:E,fallbackWarn:S,fallbackFormat:O,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:L,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=d.value,T.numberFormats=p.value,T.__datetimeFormatters=re(R)?R.__datetimeFormatters:void 0,T.__numberFormatters=re(R)?R.__numberFormatters:void 0;const x=s_(T);return s&&qa(x),x})(),ar(R,c.value,u.value);function ee(){return[c.value,u.value,f.value,d.value,p.value]}const B=_e({get:()=>c.value,set:T=>{c.value=T,R.locale=c.value}}),Q=_e({get:()=>u.value,set:T=>{u.value=T,R.fallbackLocale=u.value,ar(R,c.value,T)}}),ye=_e(()=>f.value),Oe=_e(()=>d.value),oe=_e(()=>p.value);function te(){return Ee(v)?v:null}function ae(T){v=T,R.postTranslation=T}function Je(){return k}function nt(T){T!==null&&(b=il(T)),k=T,R.missing=b}const Ce=(T,x,X,le,Te,Qe)=>{ee();let Ue;try{__INTLIFY_PROD_DEVTOOLS__,s||(R.fallbackContext=n?r_():void 0),Ue=T(R)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(R.fallbackContext=void 0)}if(X!=="translate exists"&&Ne(Ue)&&Ue===Us||X==="translate exists"&&!Ue){conLine truncated
|
||||
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&ub[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},bl=Symbol("internals");function lr(e){return e&&String(e).trim().toLowerCase()}function ss(e){return e===!1||e==null?e:A.isArray(e)?e.map(ss):String(e)}function db(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const mb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function po(e,t,n,r,s){if(A.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function hb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pb(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let it=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,l,c){const u=lr(l);if(!u)throw new Error("header name must be a non-empty string");const f=A.findKey(s,u);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||l]=ss(a))}const i=(a,l)=>A.forEach(a,(c,u)=>o(c,u,l));if(A.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(A.isString(t)&&(t=t.trim())&&!mb(t))i(fb(t),n);else if(A.isObject(t)&&A.isIterable(t)){let a={},l,c;for(const u of t){if(!A.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?A.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}i(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=lr(t),t){const r=A.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return db(s);if(A.isFunction(n))return n.call(this,s,r);if(A.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=lr(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||po(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=lr(i),i){const a=A.findKey(r,i);a&&(!n||po(r,r[a],a,n))&&(delete r[a],s=!0)}}return A.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||po(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return A.forEach(this,(s,o)=>{const i=A.findKey(r,o);if(i){n[i]=ss(s),delete n[o];return}const a=t?hb(o):String(o).trim();a!==o&&delete n[o],n[a]=ss(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&A.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[bl]=this[bl]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=lr(i);r[a]||(pb(s,i),r[a]=!0)}return A.isArray(t)?t.forEach(o):o(t),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(it.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(it);function go(e,t){const n=this||Kr,r=t||n,s=it.from(r.headers);let o=r.data;return A.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function bf(e){return!!(e&&e.__CANCEL__)}function rr(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(rr,se,{__CANCEL__:!0});function Ef(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _b(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];i||(i=c),n[s]=l,r[s]=c;let f=o,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const p=u&&c-u;return p?Math.round(d*1e3/p):void 0}}function yb(e,t){let n=0,r=1e3/t,s,o;const i=(c,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?i(c,u):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},r-f)))},()=>s&&i(s)]}const bs=(e,t,n=3)=>{let r=0;const s=_b(50,250);return yb(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-r,c=s(l),u=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},El=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},vl=e=>(...t)=>A.asap(()=>e(...t)),bb=ze.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ze.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>!0,Eb=ze.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),A.isString(r)&&i.push("path="+r),A.isString(s)&&i.push("domain="+s),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 vb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vf(e,t,n){let r=!vb(t);return e&&(r||n==!1)?Sb(e,t):t}const Sl=e=>e instanceof it?{...e}:e;function Fn(e,t){t=t||{};const n={};function r(c,u,f,d){return A.isPlainObject(c)&&A.isPlainObject(u)?A.merge.call({caseless:d},c,u):A.isPlainObject(u)?A.merge({},u):A.isArray(u)?u.slice():u}function s(c,u,f,d){if(A.isUndefined(u)){if(!A.isUndefined(c))return r(void 0,c,f,d)}else return r(c,u,f,d)}function o(c,u){if(!A.isUndefined(u))return r(void 0,u)}function i(c,u){if(A.isUndefined(u)){if(!A.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={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:a,headers:(c,u,f)=>s(Sl(c),Sl(u),f,!0)};return A.forEach(Object.keys({...e,...t}),function(u){const f=l[u]||s,d=f(e[u],t[u],u);A.isUndefined(d)&&f!==a||(n[u]=d)}),n}const Sf=e=>{const t=Fn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;t.headers=i=it.from(i),t.url=gf(vf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(A.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ze.hasStandardBrowserEnv&&(r&&A.isFunction(r)&&(r=r(t)),r||r!==!1&&bb(t.url))){conLine truncated
|
||||
`+o.map(Cl).join(`
|
||||
`):" "+Cl(o[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Go};function _o(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rr(null,e)}function Ll(e){return _o(e),e.headers=it.from(e.headers),e.data=go.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cf.getAdapter(e.adapter||Kr.adapter)(e).then(function(r){return _o(e),r.data=go.call(e,e.transformResponse,r),r.headers=it.from(r.headers),r},function(r){return bf(r)||(_o(e),r&&r.response&&(r.response.data=go.call(e,e.transformResponse,r.response),r.response.headers=it.from(r.response.headers))),Promise.reject(r)})}const Lf="1.11.0",Ks={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ks[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Pl={};Ks.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Lf+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new se(s(i," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!Pl[i]&&(Pl[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};Ks.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Fb(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new se("option "+o+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+o,se.ERR_BAD_OPTION)}}const os={assertOptions:Fb,validators:Ks},Pt=os.validators;let kn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new yl,response:new yl}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||||
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&os.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),s!=null&&(A.isFunction(s)?n.paramsSerializer={serialize:s}:os.assertOptions(s,{encode:Pt.function,serialize:Pt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),os.assertOptions(n,{baseUrl:Pt.spelling("baseURL"),withXsrfToken:Pt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&A.merge(o.common,o[n.method]);o&&A.forEach(["delete","get","head","post","put","patch","common"],E=>{delete o[E]}),n.headers=it.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const c=[];this.interceptors.response.forEach(function(S){c.push(S.fulfilled,S.rejected)});let u,f=0,d;if(!l){const E=[Ll.bind(this),void 0];for(E.unshift(...a),E.push(...c),d=E.length,u=Promise.resolve(n);f<d;)u=u.then(E[f++],E[f++]);return u}d=a.length;let p=n;for(f=0;f<d;){const E=a[f++],S=a[f++];try{p=E(p)}catch(w){S.call(this,w);break}}try{u=Ll.call(this,p)}catch(E){return Promise.reject(E)}for(f=0,d=c.length;f<d;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=Fn(this.defaults,t);const n=vf(t.baseURL,t.url,t.allowAbsoluteUrls);return gf(n,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(t){kn.prototype[t]=function(n,r){return this.request(Fn(r||{},{method:t,url:n,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,a){return this.request(Fn(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}kn.prototype[t]=n(),kn.prototype[t+"Form"]=n(!0)});let Mb=class Pf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new rr(o,i,a),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pf(function(s){t=s}),cancel:t}}};function Db(e){return function(n){return e.apply(null,n)}}function Ub(e){return A.isObject(e)&&e.isAxiosError===!0}const qo={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(qo).forEach(([e,t])=>{qo[t]=e});function Rf(e){const t=new kn(e),n=rf(kn.prototype.request,t);return A.extend(n,kn.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Rf(Fn(e,s))},n}const Ae=Rf(Kr);Ae.Axios=kn;Ae.CanceledError=rr;Ae.CancelToken=Mb;Ae.isCancel=bf;Ae.VERSION=Lf;Ae.toFormData=Vs;Ae.AxiosError=se;Ae.Cancel=Ae.CanceledError;Ae.all=function(t){return Promise.all(t)};Ae.spread=Db;Ae.isAxiosError=Ub;Ae.mergeConfig=Fn;Ae.AxiosHeaders=it;Ae.formToJSON=e=>yf(A.isHTMLForm(e)?new FormData(e):e);Ae.getAdapter=Cf.getAdapter;Ae.HttpStatusCode=qo;Ae.default=Ae;constLine truncated
|
||||
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&os.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),s!=null&&(A.isFunction(s)?n.paramsSerializer={serialize:s}:os.assertOptions(s,{encode:Pt.function,serialize:Pt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),os.assertOptions(n,{baseUrl:Pt.spelling("baseURL"),withXsrfToken:Pt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&A.merge(o.common,o[n.method]);o&&A.forEach(["delete","get","head","post","put","patch","common"],E=>{delete o[E]}),n.headers=it.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const c=[];this.interceptors.response.forEach(function(S){c.push(S.fulfilled,S.rejected)});let u,f=0,d;if(!l){const E=[Ll.bind(this),void 0];for(E.unshift(...a),E.push(...c),d=E.length,u=Promise.resolve(n);f<d;)u=u.then(E[f++],E[f++]);return u}d=a.length;let p=n;for(f=0;f<d;){const E=a[f++],S=a[f++];try{p=E(p)}catch(w){S.call(this,w);break}}try{u=Ll.call(this,p)}catch(E){return Promise.reject(E)}for(f=0,d=c.length;f<d;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=Fn(this.defaults,t);const n=vf(t.baseURL,t.url,t.allowAbsoluteUrls);return gf(n,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(t){kn.prototype[t]=function(n,r){return this.request(Fn(r||{},{method:t,url:n,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,a){return this.request(Fn(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}kn.prototype[t]=n(),kn.prototype[t+"Form"]=n(!0)});let Mb=class Pf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new rr(o,i,a),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pf(function(s){t=s}),cancel:t}}};function Db(e){return function(n){return e.apply(null,n)}}function Ub(e){return A.isObject(e)&&e.isAxiosError===!0}const qo={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(qo).forEach(([e,t])=>{qo[t]=e});function Rf(e){const t=new kn(e),n=rf(kn.prototype.request,t);return A.extend(n,kn.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Rf(Fn(e,s))},n}const Ae=Rf(Kr);Ae.Axios=kn;Ae.CanceledError=rr;Ae.CancelToken=Mb;Ae.isCancel=bf;Ae.VERSION=Lf;Ae.toFormData=Vs;Ae.AxiosError=se;Ae.Cancel=Ae.CanceledError;Ae.all=function(t){return Promise.all(t)};Ae.spread=Db;Ae.isAxiosError=Ub;Ae.mergeConfig=Fn;Ae.AxiosHeaders=it;Ae.formToJSON=e=>yf(A.isHTMLForm(e)?new FormData(e):e);Ae.getAdapter=Cf.getAdapter;Ae.HttpStatusCode=qo;Ae.default=Ae;constLine truncated
|
||||
@@ -1,4 +1,4 @@
|
||||
import{c as a}from"./index-C9gpBPbG.js";/**
|
||||
import{c as a}from"./index-14Tp7zPK.js";/**
|
||||
* @license lucide-vue-next v0.535.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -13,7 +13,7 @@
|
||||
<link rel="manifest" href="/assets/manifest.json" />
|
||||
<meta name="github" content="https://github.com/vastsa/FileCodeBox" />
|
||||
<title>{{title}}</title>
|
||||
<script type="module" crossorigin src="/assets/index-C9gpBPbG.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-14Tp7zPK.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Cd5a1Wuq.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user