test/custom-admin-ui #3
+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-Dz9lCMcC.js";import{B as j}from"./box-Bae3YjiY.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-Bnh8PeoH.js";import{B as j}from"./box-B5Eb08XY.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 g,d as v,H as w,o as _,a as u,b as t,n as a,h as e,i as k,t as i,g as y,F as U,q as F,A as M,e as p,J as C,K as z}from"./index-Dz9lCMcC.js";import{F as m}from"./file-BXRWCUFi.js";import{H as D,T as S}from"./trash-BTEwEc0W.js";/**
|
||||
import{c as g,d as v,H as w,o as _,a as u,b as t,n as a,h as e,i as k,t as i,g as y,F as U,q as F,A as M,e as p,J as C,K as z}from"./index-Bnh8PeoH.js";import{F as m}from"./file-BdcXN_Bb.js";import{H as D,T as S}from"./trash-DIj4NP4N.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 B,d as T,u as q,r as _,f as k,a as c,b as t,n as o,h as a,i as A,m as P,g as m,v as H,s as I,F as v,q as w,t as d,A as S,e as g}from"./index-Dz9lCMcC.js";import{F as L}from"./file-BXRWCUFi.js";/**
|
||||
import{c as B,d as T,u as q,r as _,f as k,a as c,b as t,n as o,h as a,i as A,m as P,g as m,v as H,s as I,F as v,q as w,t as d,A as S,e as g}from"./index-Bnh8PeoH.js";import{F as L}from"./file-BdcXN_Bb.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-Dz9lCMcC.js";import{B as z}from"./box-Bae3YjiY.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-Bnh8PeoH.js";import{B as z}from"./box-B5Eb08XY.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 De=Object.defineProperty;var Pe=(d,e,t)=>e in d?De(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>Pe(d,typeof e!="symbol"?e+"":e,t);import{c as _e,_ as Fe,u as Ze,B as Oe,r as D,o as Ue,C as Qe,w as He,f as Ne,a as L,b as p,g as $,n as b,h as f,i as Ve,t as j,j as Ge,m as We,l as ee,v as Xe,k as Q,s as Z,x as Ke,X as xe,y as Je,F as Ye,q as et,T as le,z as tt,e as C,A as nt}from"./index-Dz9lCMcC.js";import{u as st,S as it,C as rt,a as ot,Q as lt,E as at}from"./fileData-CRwjnGqi.js";import{B as ct}from"./box-Bae3YjiY.js";import{F as ke}from"./file-BXRWCUFi.js";import{H as ut,T as pt}from"./trash-BTEwEc0W.js";/**
|
||||
var De=Object.defineProperty;var Pe=(d,e,t)=>e in d?De(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>Pe(d,typeof e!="symbol"?e+"":e,t);import{c as _e,_ as Fe,u as Ze,B as Oe,r as D,o as Ue,C as Qe,w as He,f as Ne,a as L,b as p,g as $,n as b,h as f,i as Ve,t as j,j as Ge,m as We,l as ee,v as Xe,k as Q,s as Z,x as Ke,X as xe,y as Je,F as Ye,q as et,T as le,z as tt,e as C,A as nt}from"./index-Bnh8PeoH.js";import{u as st,S as it,C as rt,a as ot,Q as lt,E as at}from"./fileData-B6ZNx7J9.js";import{B as ct}from"./box-B5Eb08XY.js";import{F as ke}from"./file-BdcXN_Bb.js";import{H as ut,T as pt}from"./trash-DIj4NP4N.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
@@ -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-89bdc9ab],.fade-leave-active[data-v-89bdc9ab]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-89bdc9ab],.fade-leave-to[data-v-89bdc9ab]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-89bdc9ab]{width:30rem}}.fade-enter-to[data-v-89bdc9ab],.fade-leave-from[data-v-89bdc9ab]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-89bdc9ab],.drawer-leave-active[data-v-89bdc9ab]{transition:transform .3s ease}.drawer-enter-from[data-v-89bdc9ab],.drawer-leave-to[data-v-89bdc9ab]{transform:translate(100%)}.list-enter-active[data-v-89bdc9ab],.list-leave-active[data-v-89bdc9ab]{transition:all .5s ease}.list-enter-from[data-v-89bdc9ab],.list-leave-to[data-v-89bdc9ab]{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-1f93457e],.fade-leave-active[data-v-1f93457e]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-1f93457e],.fade-leave-to[data-v-1f93457e]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-1f93457e]{width:30rem}}.fade-enter-to[data-v-1f93457e],.fade-leave-from[data-v-1f93457e]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-1f93457e],.drawer-leave-active[data-v-1f93457e]{transition:transform .3s ease}.drawer-enter-from[data-v-1f93457e],.drawer-leave-to[data-v-1f93457e]{transform:translate(100%)}.list-enter-active[data-v-1f93457e],.list-leave-active[data-v-1f93457e]{transition:all .5s ease}.list-enter-from[data-v-1f93457e],.list-leave-to[data-v-1f93457e]{opacity:0;transform:translate(30px)}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import{c as a}from"./index-Dz9lCMcC.js";/**
|
||||
import{c as a}from"./index-Bnh8PeoH.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-Dz9lCMcC.js";/**
|
||||
import{c as a}from"./index-Bnh8PeoH.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 _,d as F,D as S,r as k,E as K,o as $,F as V,G as X,H as Y}from"./index-Dz9lCMcC.js";/**
|
||||
import{c as _,d as F,D as S,r as k,E as K,o as $,F as V,G as X,H as Y}from"./index-Bnh8PeoH.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
@@ -1,4 +1,4 @@
|
||||
import{c as a}from"./index-Dz9lCMcC.js";/**
|
||||
import{c as a}from"./index-Bnh8PeoH.js";/**
|
||||
* @license lucide-vue-next v0.445.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -12,7 +12,7 @@
|
||||
<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-Dz9lCMcC.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-Bnh8PeoH.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CCApRMGU.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user