fix: some bug
This commit is contained in:
+1
-1
@@ -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-DQoikpv-.js";import{B as j}from"./box-BUkjEKlH.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-CgECfBL8.js";import{B as j}from"./box-C2_f6EJT.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -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-DQoikpv-.js";import{F as k}from"./file-BP5aUZ5l.js";import{H as C}from"./hard-drive-BeG534_k.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-CgECfBL8.js";import{F as k}from"./file-kmEdX82y.js";import{H as C}from"./hard-drive-A8Xsp6zB.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -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-DQoikpv-.js";import{F as O}from"./file-BP5aUZ5l.js";import{T as Q}from"./trash-DgdKCxg8.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-CgECfBL8.js";import{F as O}from"./file-kmEdX82y.js";import{T as Q}from"./trash-u1reBTUb.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* 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-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};
|
||||
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-CgECfBL8.js";import{B as z}from"./box-C2_f6EJT.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};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
var Pe=Object.defineProperty;var Fe=(d,e,t)=>e in d?Pe(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>Fe(d,typeof e!="symbol"?e+"":e,t);import{c as oe,_ as Ze,u as Oe,B as Ue,r as D,o as Qe,C as He,w as Ne,f as Ve,a as L,b as h,g as _,n as b,h as f,i as Ge,t as j,j as We,m as Xe,l as te,v as Ke,k as U,s as P,x as Je,X as ke,y as Ye,F as et,q as tt,T as ae,z as nt,e as M,A as st}from"./index-DQoikpv-.js";import{u as it,S as rt,C as ot,Q as lt,d as at,E as ct}from"./clipboard-aAV_Ai6k.js";import{B as ut}from"./box-BUkjEKlH.js";import{F as be}from"./file-BP5aUZ5l.js";import{H as ht}from"./hard-drive-BeG534_k.js";import{T as pt}from"./trash-DgdKCxg8.js";/**
|
||||
var Pe=Object.defineProperty;var Fe=(d,e,t)=>e in d?Pe(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>Fe(d,typeof e!="symbol"?e+"":e,t);import{c as oe,_ as Ze,u as Oe,B as Ue,r as D,o as Qe,C as He,w as Ne,f as Ve,a as L,b as h,g as _,n as b,h as f,i as Ge,t as j,j as We,m as Xe,l as te,v as Ke,k as U,s as P,x as Je,X as ke,y as Ye,F as et,q as tt,T as ae,z as nt,e as M,A as st}from"./index-CgECfBL8.js";import{u as it,S as rt,C as ot,Q as lt,d as at,E as ct}from"./clipboard-CHTS9sg2.js";import{B as ut}from"./box-C2_f6EJT.js";import{F as be}from"./file-kmEdX82y.js";import{H as ht}from"./hard-drive-A8Xsp6zB.js";import{T as pt}from"./trash-u1reBTUb.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -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-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
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-6c5b44c1],.fade-leave-active[data-v-6c5b44c1]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-6c5b44c1],.fade-leave-to[data-v-6c5b44c1]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-6c5b44c1]{width:30rem}}.fade-enter-to[data-v-6c5b44c1],.fade-leave-from[data-v-6c5b44c1]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-6c5b44c1],.drawer-leave-active[data-v-6c5b44c1]{transition:transform .3s ease}.drawer-enter-from[data-v-6c5b44c1],.drawer-leave-to[data-v-6c5b44c1]{transform:translate(100%)}.list-enter-active[data-v-6c5b44c1],.list-leave-active[data-v-6c5b44c1]{transition:all .5s ease}.list-enter-from[data-v-6c5b44c1],.list-leave-to[data-v-6c5b44c1]{opacity:0;transform:translate(30px)}select option[data-v-6c5b44c1]{padding:8px;margin:4px;border-radius:6px}select option[data-v-6c5b44c1]:checked{background:linear-gradient(to right,#6366f180,#a855f780)!important;color:#fff!important}.dark select option[data-v-6c5b44c1]:checked{background:linear-gradient(to right,#6366f1b3,#a855f7b3)!important}select option[data-v-6c5b44c1]:hover{background-color:#6366f11a}.dark select option[data-v-6c5b44c1]:hover{background-color:#6366f133}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import{c as a}from"./index-DQoikpv-.js";/**
|
||||
import{c as a}from"./index-CgECfBL8.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* 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-DQoikpv-.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-CgECfBL8.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -1,4 +1,4 @@
|
||||
import{c as a}from"./index-DQoikpv-.js";/**
|
||||
import{c as a}from"./index-CgECfBL8.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{c as e}from"./index-DQoikpv-.js";/**
|
||||
import{c as e}from"./index-CgECfBL8.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* 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
@@ -1,4 +1,4 @@
|
||||
import{c}from"./index-DQoikpv-.js";/**
|
||||
import{c}from"./index-CgECfBL8.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -12,8 +12,8 @@
|
||||
<meta name="generator" content="FileCodeBox2.2" />
|
||||
<meta name="github" content="https://github.com/vastsa/FileCodeBox" />
|
||||
<title>{{title}}</title>
|
||||
<script type="module" crossorigin src="/assets/index-DQoikpv-.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Dqbkznog.css">
|
||||
<script type="module" crossorigin src="/assets/index-CgECfBL8.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Bx3cTsS0.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user