fix: some bug

This commit is contained in:
Lan
2025-03-16 22:24:17 +08:00
parent 7ed09e2455
commit 7c6aedb96e
21 changed files with 56 additions and 56 deletions
@@ -1,4 +1,4 @@
import{c as i,d as k,r as h,o as u,I as v,a as x,b as t,n as o,h as e,i as w,g as n,X as _,F as M,q as C,x as z,z as L,J as B,s as D,K as F,t as I,e as d}from"./index-CKx9GM3v.js";import{B as j}from"./box-C50i4De2.js";/** import{c as i,d as k,r as h,o as u,I as v,a as x,b as t,n as o,h as e,i as w,g as n,X as _,F as M,q as C,x as z,z as L,J as B,s as D,K as F,t as I,e as d}from"./index-DQoikpv-.js";import{B as j}from"./box-BUkjEKlH.js";/**
* @license lucide-vue-next v0.445.0 - ISC * @license lucide-vue-next v0.445.0 - ISC
* *
* This source code is licensed under the ISC license. * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as x,d as m,H as b,o as h,a as f,b as t,n as a,h as e,i as v,t as n,g,s as w,A as _,e as F}from"./index-CKx9GM3v.js";import{F as k}from"./file-IChURBtu.js";import{H as C}from"./hard-drive-D4hMxWAQ.js";/** import{c as x,d as m,H as b,o as h,a as f,b as t,n as a,h as e,i as v,t as n,g,s as w,A as _,e as F}from"./index-DQoikpv-.js";import{F as k}from"./file-BP5aUZ5l.js";import{H as C}from"./hard-drive-BeG534_k.js";/**
* @license lucide-vue-next v0.445.0 - ISC * @license lucide-vue-next v0.445.0 - ISC
* *
* This source code is licensed under the ISC license. * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as w,d as R,r as M,u as Y,f as L,a as u,b as t,l as G,n as i,h as e,i as J,m as x,g as l,v as y,L as N,s as h,F as S,q as $,t as g,A as j,e as p}from"./index-CKx9GM3v.js";import{F as O}from"./file-IChURBtu.js";import{T as Q}from"./trash-Dt0aP1PA.js";/** import{c as w,d as R,r as M,u as Y,f as L,a as u,b as t,l as G,n as i,h as e,i as J,m as x,g as l,v as y,L as N,s as h,F as S,q as $,t as g,A as j,e as p}from"./index-DQoikpv-.js";import{F as O}from"./file-BP5aUZ5l.js";import{T as Q}from"./trash-DgdKCxg8.js";/**
* @license lucide-vue-next v0.445.0 - ISC * @license lucide-vue-next v0.445.0 - ISC
* *
* This source code is licensed under the ISC license. * This source code is licensed under the ISC license.
@@ -1 +1 @@
import{G as y,r as u,d as b,u as v,a as w,b as e,n as l,h as o,i as x,g as h,j as k,m as S,v as A,s as V,t as D,z as j,e as B,A as P,_}from"./index-CKx9GM3v.js";import{B as z}from"./box-C50i4De2.js";const M=y("adminData",()=>{const d=u(localStorage.getItem("adminPassword")||"");function n(a){d.value=a,localStorage.setItem("token",a)}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(),a=u(""),i=u(!1),s=x("isDarkMode"),c=M(),p=()=>{let r=!0;return a.value?a.value.length<6&&(n.showAlert("密码长度至少为6位","error"),r=!1):(n.showAlert("无效的密码","error"),r=!1),r},m=j(),f=async()=>{if(p()){P.post("/admin/login",{password:a.value}).then(r=>{c.updateAdminPwd(r.detail.token),m.push("/admin")}).catch(r=>{n.showAlert(r.response.data.detail,"error")}),i.value=!0;try{await new Promise(r=>setTimeout(r,2e3))}catch{}finally{i.value=!1}}};return(r,t)=>(B(),w("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"])},[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: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,[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: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"])},[t[5]||(t[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",L,[e("div",null,[t[3]||(t[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),S(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":t[0]||(t[0]=g=>a.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,a.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},[t[4]||(t[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),V(" "+D(i.value?"登录中...":"登录"),1)],10,N)])],32)],2)],2))}}),E=_(T,[["__scopeId","data-v-66eb7914"]]);export{E as default}; import{G as y,r as u,d as b,u as v,a as w,b as e,n as l,h as o,i as x,g as h,j as k,m as S,v as A,s as V,t as D,z as j,e as B,A as P,_}from"./index-DQoikpv-.js";import{B as z}from"./box-BUkjEKlH.js";const M=y("adminData",()=>{const d=u(localStorage.getItem("adminPassword")||"");function n(a){d.value=a,localStorage.setItem("token",a)}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(),a=u(""),i=u(!1),s=x("isDarkMode"),c=M(),p=()=>{let r=!0;return a.value?a.value.length<6&&(n.showAlert("密码长度至少为6位","error"),r=!1):(n.showAlert("无效的密码","error"),r=!1),r},m=j(),f=async()=>{if(p()){P.post("/admin/login",{password:a.value}).then(r=>{c.updateAdminPwd(r.detail.token),m.push("/admin")}).catch(r=>{n.showAlert(r.response.data.detail,"error")}),i.value=!0;try{await new Promise(r=>setTimeout(r,2e3))}catch{}finally{i.value=!1}}};return(r,t)=>(B(),w("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"])},[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: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,[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: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"])},[t[5]||(t[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",L,[e("div",null,[t[3]||(t[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),S(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":t[0]||(t[0]=g=>a.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,a.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},[t[4]||(t[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),V(" "+D(i.value?"登录中...":"登录"),1)],10,N)])],32)],2)],2))}}),E=_(T,[["__scopeId","data-v-66eb7914"]]);export{E as default};
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
@keyframes blob-ba6ed153{0%,to{transform:translate(0) scale(1)}25%{transform:translate(20px,-50px) scale(1.1)}50%{transform:translate(-20px,20px) scale(.9)}75%{transform:translate(50px,50px) scale(1.05)}}.animate-blob-1[data-v-ba6ed153]{animation:blob-ba6ed153 25s infinite}.animate-blob-2[data-v-ba6ed153]{animation:blob-ba6ed153 30s infinite}.animate-blob-3[data-v-ba6ed153]{animation:blob-ba6ed153 35s infinite}.animate-blob-4[data-v-ba6ed153]{animation:blob-ba6ed153 40s infinite}.animate-spin-slow[data-v-ba6ed153]{animation:spin-ba6ed153 8s linear infinite}@keyframes spin-ba6ed153{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-enter-active[data-v-ba6ed153],.fade-leave-active[data-v-ba6ed153]{transition:opacity .3s ease}.fade-enter-from[data-v-ba6ed153],.fade-leave-to[data-v-ba6ed153]{opacity:0}.list-enter-active[data-v-ba6ed153],.list-leave-active[data-v-ba6ed153]{transition:all .5s ease}.list-enter-from[data-v-ba6ed153],.list-leave-to[data-v-ba6ed153]{opacity:0;transform:translate(30px)}.drawer-enter-active[data-v-ba6ed153],.drawer-leave-active[data-v-ba6ed153]{transition:transform .3s ease}.drawer-enter-from[data-v-ba6ed153],.drawer-leave-to[data-v-ba6ed153]{transform:translate(100%)}.w-97-100[data-v-ba6ed153]{width:97%}[data-v-ba6ed153] .prose{text-align:left}[data-v-ba6ed153] .prose h1,[data-v-ba6ed153] .prose h2,[data-v-ba6ed153] .prose h3,[data-v-ba6ed153] .prose h4,[data-v-ba6ed153] .prose h5,[data-v-ba6ed153] .prose h6{color:#4f46e5}@media (prefers-color-scheme: dark){[data-v-ba6ed153] .prose h1,[data-v-ba6ed153] .prose h2,[data-v-ba6ed153] .prose h3,[data-v-ba6ed153] .prose h4,[data-v-ba6ed153] .prose h5,[data-v-ba6ed153] .prose h6{color:#818cf8}}@media (min-width: 640px){.sm\:w-120[data-v-ba6ed153]{width:30rem}}
@@ -0,0 +1 @@
@keyframes blob-4f544e47{0%,to{transform:translate(0) scale(1)}25%{transform:translate(20px,-50px) scale(1.1)}50%{transform:translate(-20px,20px) scale(.9)}75%{transform:translate(50px,50px) scale(1.05)}}.animate-blob-1[data-v-4f544e47]{animation:blob-4f544e47 25s infinite}.animate-blob-2[data-v-4f544e47]{animation:blob-4f544e47 30s infinite}.animate-blob-3[data-v-4f544e47]{animation:blob-4f544e47 35s infinite}.animate-blob-4[data-v-4f544e47]{animation:blob-4f544e47 40s infinite}.animate-spin-slow[data-v-4f544e47]{animation:spin-4f544e47 8s linear infinite}@keyframes spin-4f544e47{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-enter-active[data-v-4f544e47],.fade-leave-active[data-v-4f544e47]{transition:opacity .3s ease}.fade-enter-from[data-v-4f544e47],.fade-leave-to[data-v-4f544e47]{opacity:0}.list-enter-active[data-v-4f544e47],.list-leave-active[data-v-4f544e47]{transition:all .5s ease}.list-enter-from[data-v-4f544e47],.list-leave-to[data-v-4f544e47]{opacity:0;transform:translate(30px)}.drawer-enter-active[data-v-4f544e47],.drawer-leave-active[data-v-4f544e47]{transition:transform .3s ease}.drawer-enter-from[data-v-4f544e47],.drawer-leave-to[data-v-4f544e47]{transform:translate(100%)}.w-97-100[data-v-4f544e47]{width:97%}[data-v-4f544e47] .prose{text-align:left}[data-v-4f544e47] .prose h1,[data-v-4f544e47] .prose h2,[data-v-4f544e47] .prose h3,[data-v-4f544e47] .prose h4,[data-v-4f544e47] .prose h5,[data-v-4f544e47] .prose h6{color:#4f46e5}@media (prefers-color-scheme: dark){[data-v-4f544e47] .prose h1,[data-v-4f544e47] .prose h2,[data-v-4f544e47] .prose h3,[data-v-4f544e47] .prose h4,[data-v-4f544e47] .prose h5,[data-v-4f544e47] .prose h6{color:#818cf8}}@media (min-width: 640px){.sm\:w-120[data-v-4f544e47]{width:30rem}}.custom-scrollbar[data-v-4f544e47]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.3) transparent}.custom-scrollbar[data-v-4f544e47]::-webkit-scrollbar{width:6px;height:6px}.custom-scrollbar[data-v-4f544e47]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-4f544e47]::-webkit-scrollbar-thumb{background-color:#9ca3af4d;border-radius:3px;-webkit-transition:background-color .3s;transition:background-color .3s}.custom-scrollbar[data-v-4f544e47]::-webkit-scrollbar-thumb:hover{background-color:#9ca3af80}[data-v-4f544e47] [class*=dark] .custom-scrollbar{scrollbar-color:rgba(75,85,99,.3) transparent}[data-v-4f544e47] [class*=dark] .custom-scrollbar::-webkit-scrollbar-thumb{background-color:#4b55634d}[data-v-4f544e47] [class*=dark] .custom-scrollbar::-webkit-scrollbar-thumb:hover{background-color:#4b556380}
File diff suppressed because one or more lines are too long
@@ -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-cdc5acbe],.fade-leave-active[data-v-cdc5acbe]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-cdc5acbe],.fade-leave-to[data-v-cdc5acbe]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-cdc5acbe]{width:30rem}}.fade-enter-to[data-v-cdc5acbe],.fade-leave-from[data-v-cdc5acbe]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-cdc5acbe],.drawer-leave-active[data-v-cdc5acbe]{transition:transform .3s ease}.drawer-enter-from[data-v-cdc5acbe],.drawer-leave-to[data-v-cdc5acbe]{transform:translate(100%)}.list-enter-active[data-v-cdc5acbe],.list-leave-active[data-v-cdc5acbe]{transition:all .5s ease}.list-enter-from[data-v-cdc5acbe],.list-leave-to[data-v-cdc5acbe]{opacity:0;transform:translate(30px)}
File diff suppressed because one or more lines are too long
@@ -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-8521acd1],.fade-leave-active[data-v-8521acd1]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-8521acd1],.fade-leave-to[data-v-8521acd1]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-8521acd1]{width:30rem}}.fade-enter-to[data-v-8521acd1],.fade-leave-from[data-v-8521acd1]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-8521acd1],.drawer-leave-active[data-v-8521acd1]{transition:transform .3s ease}.drawer-enter-from[data-v-8521acd1],.drawer-leave-to[data-v-8521acd1]{transform:translate(100%)}.list-enter-active[data-v-8521acd1],.list-leave-active[data-v-8521acd1]{transition:all .5s ease}.list-enter-from[data-v-8521acd1],.list-leave-to[data-v-8521acd1]{opacity:0;transform:translate(30px)}
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{c as a}from"./index-CKx9GM3v.js";/** import{c as a}from"./index-DQoikpv-.js";/**
* @license lucide-vue-next v0.445.0 - ISC * @license lucide-vue-next v0.445.0 - ISC
* *
* This source code is licensed under the ISC license. * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as B,d as F,D as R,r as _,E as $,o as V,F as X,G as Z,H as x,u as j}from"./index-CKx9GM3v.js";/** import{c as B,d as F,D as R,r as _,E as $,o as V,F as X,G as Z,H as x,u as j}from"./index-DQoikpv-.js";/**
* @license lucide-vue-next v0.445.0 - ISC * @license lucide-vue-next v0.445.0 - ISC
* *
* This source code is licensed under the ISC license. * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as a}from"./index-CKx9GM3v.js";/** import{c as a}from"./index-DQoikpv-.js";/**
* @license lucide-vue-next v0.445.0 - ISC * @license lucide-vue-next v0.445.0 - ISC
* *
* This source code is licensed under the ISC license. * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-CKx9GM3v.js";/** import{c as e}from"./index-DQoikpv-.js";/**
* @license lucide-vue-next v0.445.0 - ISC * @license lucide-vue-next v0.445.0 - ISC
* *
* This source code is licensed under the ISC license. * This source code is licensed under the ISC license.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{c}from"./index-CKx9GM3v.js";/** import{c}from"./index-DQoikpv-.js";/**
* @license lucide-vue-next v0.445.0 - ISC * @license lucide-vue-next v0.445.0 - ISC
* *
* This source code is licensed under the ISC license. * This source code is licensed under the ISC license.
+2 -2
View File
@@ -12,8 +12,8 @@
<meta name="generator" content="FileCodeBox2.2" /> <meta name="generator" content="FileCodeBox2.2" />
<meta name="github" content="https://github.com/vastsa/FileCodeBox" /> <meta name="github" content="https://github.com/vastsa/FileCodeBox" />
<title>{{title}}</title> <title>{{title}}</title>
<script type="module" crossorigin src="/assets/index-CKx9GM3v.js"></script> <script type="module" crossorigin src="/assets/index-DQoikpv-.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C6Z-7Gei.css"> <link rel="stylesheet" crossorigin href="/assets/index-Dqbkznog.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>