chore: update frontend build for v1.1.95 [skip ci]

This commit is contained in:
github-actions[bot]
2025-08-08 12:39:58 +00:00
parent f84fd472a3
commit e5945a3fca
53 changed files with 191 additions and 73 deletions

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

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{r as f,c as D,q as E,Z as R,x as s,y as n,z as c,I as N,L as v,C as d,P as L,R as T,J as W,B as $,Q as O,ac as q,T as A,a5 as H,D as I}from"./vue-vendor-CKToUHZx.js";import{_ as P}from"./index-BMhthBXv.js";const F={class:"relative"},J={class:"select-none whitespace-nowrap text-sm font-medium text-gray-700"},M={class:"max-h-60 overflow-y-auto py-1"},Q=["onClick"],U={key:1,class:"fas fa-check ml-auto pl-3 text-xs text-blue-600"},Z={__name:"CustomDropdown",props:{modelValue:{type:[String,Number],default:""},options:{type:Array,required:!0},placeholder:{type:String,default:"请选择"},icon:{type:String,default:""},iconColor:{type:String,default:"text-gray-500"}},emits:["update:modelValue","change"],setup(o,{emit:V}){const w=o,g=V,t=f(!1),r=f(null),u=f(null),h=f({}),B=D(()=>{const e=w.options.find(i=>i.value===w.modelValue);return e?e.label:""}),S=async()=>{t.value=!t.value,t.value&&(await I(),y())},m=()=>{t.value=!1},z=e=>{g("update:modelValue",e.value),g("change",e.value),m()},y=()=>{if(!r.value||!t.value)return;const e=r.value.getBoundingClientRect(),i=250,a=window.innerHeight-e.bottom,C=e.top;let p,l;a>=i||a>=C?p=e.bottom+8:p=e.top-i-8,l=e.left;const _=200;l+_>window.innerWidth&&(l=window.innerWidth-_-10),l<10&&(l=10),h.value={top:`${p}px`,left:`${l}px`,minWidth:`${e.width}px`}},x=()=>{t.value&&y()},b=()=>{t.value&&m()},k=e=>{!r.value||!t.value||r.value.contains(e.target)||(u.value&&!u.value.contains(e.target)?m():u.value||m())};return E(()=>{window.addEventListener("scroll",x,!0),window.addEventListener("resize",b),document.addEventListener("click",k)}),R(()=>{window.removeEventListener("scroll",x,!0),window.removeEventListener("resize",b),document.removeEventListener("click",k)}),(e,i)=>(n(),s("div",F,[c("div",{ref_key:"triggerRef",ref:r,class:d(["relative flex cursor-pointer items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2 shadow-sm transition-all duration-200 hover:shadow-md",[t.value&&"border-blue-400 shadow-md"]]),onClick:S},[o.icon?(n(),s("i",{key:0,class:d(["fas",o.icon,"text-sm",o.iconColor])},null,2)):v("",!0),c("span",J,L(B.value||o.placeholder),1),c("i",{class:d(["fas fa-chevron-down ml-auto text-xs text-gray-400 transition-transform duration-200",t.value&&"rotate-180"])},null,2)],2),(n(),N(H,{to:"body"},[T(A,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:W(()=>[t.value?(n(),s("div",{key:0,ref_key:"dropdownRef",ref:u,class:"fixed z-[9999] min-w-max overflow-hidden rounded-lg border border-gray-200 bg-white shadow-lg",style:$(h.value)},[c("div",M,[(n(!0),s(O,null,q(o.options,a=>(n(),s("div",{key:a.value,class:d(["flex cursor-pointer items-center gap-2 whitespace-nowrap px-3 py-2 text-sm transition-colors duration-150",[a.value===o.modelValue?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-50"]]),onClick:C=>z(a)},[a.icon?(n(),s("i",{key:0,class:d(["fas",a.icon,"text-xs"])},null,2)):v("",!0),c("span",null,L(a.label),1),a.value===o.modelValue?(n(),s("i",U)):v("",!0)],10,Q))),128))])],4)):v("",!0)]),_:1})]))]))}},K=P(Z,[["__scopeId","data-v-87609db5"]]);export{K as C};
import{r as f,c as D,q as E,Z as R,x as s,y as n,z as c,I as N,L as v,C as d,P as L,R as T,J as W,B as $,Q as O,ac as q,T as A,a5 as H,D as I}from"./vue-vendor-CKToUHZx.js";import{_ as P}from"./index-FG17xIFK.js";const F={class:"relative"},J={class:"select-none whitespace-nowrap text-sm font-medium text-gray-700"},M={class:"max-h-60 overflow-y-auto py-1"},Q=["onClick"],U={key:1,class:"fas fa-check ml-auto pl-3 text-xs text-blue-600"},Z={__name:"CustomDropdown",props:{modelValue:{type:[String,Number],default:""},options:{type:Array,required:!0},placeholder:{type:String,default:"请选择"},icon:{type:String,default:""},iconColor:{type:String,default:"text-gray-500"}},emits:["update:modelValue","change"],setup(o,{emit:V}){const w=o,g=V,t=f(!1),r=f(null),u=f(null),h=f({}),B=D(()=>{const e=w.options.find(i=>i.value===w.modelValue);return e?e.label:""}),S=async()=>{t.value=!t.value,t.value&&(await I(),y())},m=()=>{t.value=!1},z=e=>{g("update:modelValue",e.value),g("change",e.value),m()},y=()=>{if(!r.value||!t.value)return;const e=r.value.getBoundingClientRect(),i=250,a=window.innerHeight-e.bottom,C=e.top;let p,l;a>=i||a>=C?p=e.bottom+8:p=e.top-i-8,l=e.left;const _=200;l+_>window.innerWidth&&(l=window.innerWidth-_-10),l<10&&(l=10),h.value={top:`${p}px`,left:`${l}px`,minWidth:`${e.width}px`}},x=()=>{t.value&&y()},b=()=>{t.value&&m()},k=e=>{!r.value||!t.value||r.value.contains(e.target)||(u.value&&!u.value.contains(e.target)?m():u.value||m())};return E(()=>{window.addEventListener("scroll",x,!0),window.addEventListener("resize",b),document.addEventListener("click",k)}),R(()=>{window.removeEventListener("scroll",x,!0),window.removeEventListener("resize",b),document.removeEventListener("click",k)}),(e,i)=>(n(),s("div",F,[c("div",{ref_key:"triggerRef",ref:r,class:d(["relative flex cursor-pointer items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2 shadow-sm transition-all duration-200 hover:shadow-md",[t.value&&"border-blue-400 shadow-md"]]),onClick:S},[o.icon?(n(),s("i",{key:0,class:d(["fas",o.icon,"text-sm",o.iconColor])},null,2)):v("",!0),c("span",J,L(B.value||o.placeholder),1),c("i",{class:d(["fas fa-chevron-down ml-auto text-xs text-gray-400 transition-transform duration-200",t.value&&"rotate-180"])},null,2)],2),(n(),N(H,{to:"body"},[T(A,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:W(()=>[t.value?(n(),s("div",{key:0,ref_key:"dropdownRef",ref:u,class:"fixed z-[9999] min-w-max overflow-hidden rounded-lg border border-gray-200 bg-white shadow-lg",style:$(h.value)},[c("div",M,[(n(!0),s(O,null,q(o.options,a=>(n(),s("div",{key:a.value,class:d(["flex cursor-pointer items-center gap-2 whitespace-nowrap px-3 py-2 text-sm transition-colors duration-150",[a.value===o.modelValue?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-50"]]),onClick:C=>z(a)},[a.icon?(n(),s("i",{key:0,class:d(["fas",a.icon,"text-xs"])},null,2)):v("",!0),c("span",null,L(a.label),1),a.value===o.modelValue?(n(),s("i",U)):v("",!0)],10,Q))),128))])],4)):v("",!0)]),_:1})]))]))}},K=P(Z,[["__scopeId","data-v-87609db5"]]);export{K as C};

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{c as x,r as b,q as f,x as a,z as t,L as i,Q as y,u as o,P as d,Y as w,K as u,aq as c,O as p,y as n}from"./vue-vendor-CKToUHZx.js";import{_,u as v}from"./index-BMhthBXv.js";import"./element-plus-B8Fs_0jW.js";import"./vendor-BDiMbLwQ.js";const h={class:"flex min-h-screen items-center justify-center p-4 sm:p-6"},k={class:"glass-strong w-full max-w-md rounded-xl p-6 shadow-2xl sm:rounded-2xl sm:p-8 md:rounded-3xl md:p-10"},L={class:"mb-6 text-center sm:mb-8"},S={class:"mx-auto mb-4 flex h-16 w-16 items-center justify-center overflow-hidden rounded-xl border border-gray-300/30 bg-gradient-to-br from-blue-500/20 to-purple-500/20 backdrop-blur-sm sm:mb-6 sm:h-20 sm:w-20 sm:rounded-2xl"},V=["src"],I={key:1,class:"fas fa-cloud text-2xl text-gray-700 sm:text-3xl"},N={key:1,class:"h-10 w-10 animate-pulse rounded bg-gray-300/50 sm:h-12 sm:w-12"},q={key:0,class:"header-title mb-2 text-2xl font-bold text-white sm:text-3xl"},D={key:1,class:"mx-auto mb-2 h-8 w-48 animate-pulse rounded bg-gray-300/50 sm:h-9 sm:w-64"},E=["disabled"],j={key:0,class:"fas fa-sign-in-alt mr-2"},B={key:1,class:"loading-spinner mr-2"},M={key:0,class:"mt-4 rounded-lg border border-red-500/30 bg-red-500/20 p-3 text-center text-xs text-red-800 backdrop-blur-sm sm:mt-6 sm:rounded-xl sm:p-4 sm:text-sm"},F={__name:"LoginView",setup(O){const e=v(),m=x(()=>e.oemLoading),l=b({username:"",password:""});f(()=>{e.loadOemSettings()});const g=async()=>{await e.login(l.value)};return(T,s)=>(n(),a("div",h,[t("div",k,[t("div",L,[t("div",S,[m.value?(n(),a("div",N)):(n(),a(y,{key:0},[o(e).oemSettings.siteIconData||o(e).oemSettings.siteIcon?(n(),a("img",{key:0,alt:"Logo",class:"h-10 w-10 object-contain sm:h-12 sm:w-12",src:o(e).oemSettings.siteIconData||o(e).oemSettings.siteIcon,onError:s[0]||(s[0]=r=>r.target.style.display="none")},null,40,V)):(n(),a("i",I))],64))]),!m.value&&o(e).oemSettings.siteName?(n(),a("h1",q,d(o(e).oemSettings.siteName),1)):m.value?(n(),a("div",D)):i("",!0),s[3]||(s[3]=t("p",{class:"text-base text-gray-600 sm:text-lg"},"管理后台",-1))]),t("form",{class:"space-y-4 sm:space-y-6",onSubmit:w(g,["prevent"])},[t("div",null,[s[4]||(s[4]=t("label",{class:"mb-2 block text-sm font-semibold text-gray-900 sm:mb-3"},"用户名",-1)),u(t("input",{"onUpdate:modelValue":s[1]||(s[1]=r=>l.value.username=r),class:"form-input w-full",placeholder:"请输入用户名",required:"",type:"text"},null,512),[[c,l.value.username]])]),t("div",null,[s[5]||(s[5]=t("label",{class:"mb-2 block text-sm font-semibold text-gray-900 sm:mb-3"},"密码",-1)),u(t("input",{"onUpdate:modelValue":s[2]||(s[2]=r=>l.value.password=r),class:"form-input w-full",placeholder:"请输入密码",required:"",type:"password"},null,512),[[c,l.value.password]])]),t("button",{class:"btn btn-primary w-full px-4 py-3 text-base font-semibold sm:px-6 sm:py-4 sm:text-lg",disabled:o(e).loginLoading,type:"submit"},[o(e).loginLoading?i("",!0):(n(),a("i",j)),o(e).loginLoading?(n(),a("div",B)):i("",!0),p(" "+d(o(e).loginLoading?"登录中...":"登录"),1)],8,E)],32),o(e).loginError?(n(),a("div",M,[s[6]||(s[6]=t("i",{class:"fas fa-exclamation-triangle mr-2"},null,-1)),p(d(o(e).loginError),1)])):i("",!0)])]))}},K=_(F,[["__scopeId","data-v-1990a2ea"]]);export{K as default};
import{c as x,r as b,q as f,x as a,z as t,L as i,Q as y,u as o,P as d,Y as w,K as u,aq as c,O as p,y as n}from"./vue-vendor-CKToUHZx.js";import{_,u as v}from"./index-FG17xIFK.js";import"./element-plus-B8Fs_0jW.js";import"./vendor-BDiMbLwQ.js";const h={class:"flex min-h-screen items-center justify-center p-4 sm:p-6"},k={class:"glass-strong w-full max-w-md rounded-xl p-6 shadow-2xl sm:rounded-2xl sm:p-8 md:rounded-3xl md:p-10"},L={class:"mb-6 text-center sm:mb-8"},S={class:"mx-auto mb-4 flex h-16 w-16 items-center justify-center overflow-hidden rounded-xl border border-gray-300/30 bg-gradient-to-br from-blue-500/20 to-purple-500/20 backdrop-blur-sm sm:mb-6 sm:h-20 sm:w-20 sm:rounded-2xl"},V=["src"],I={key:1,class:"fas fa-cloud text-2xl text-gray-700 sm:text-3xl"},N={key:1,class:"h-10 w-10 animate-pulse rounded bg-gray-300/50 sm:h-12 sm:w-12"},q={key:0,class:"header-title mb-2 text-2xl font-bold text-white sm:text-3xl"},D={key:1,class:"mx-auto mb-2 h-8 w-48 animate-pulse rounded bg-gray-300/50 sm:h-9 sm:w-64"},E=["disabled"],j={key:0,class:"fas fa-sign-in-alt mr-2"},B={key:1,class:"loading-spinner mr-2"},M={key:0,class:"mt-4 rounded-lg border border-red-500/30 bg-red-500/20 p-3 text-center text-xs text-red-800 backdrop-blur-sm sm:mt-6 sm:rounded-xl sm:p-4 sm:text-sm"},F={__name:"LoginView",setup(O){const e=v(),m=x(()=>e.oemLoading),l=b({username:"",password:""});f(()=>{e.loadOemSettings()});const g=async()=>{await e.login(l.value)};return(T,s)=>(n(),a("div",h,[t("div",k,[t("div",L,[t("div",S,[m.value?(n(),a("div",N)):(n(),a(y,{key:0},[o(e).oemSettings.siteIconData||o(e).oemSettings.siteIcon?(n(),a("img",{key:0,alt:"Logo",class:"h-10 w-10 object-contain sm:h-12 sm:w-12",src:o(e).oemSettings.siteIconData||o(e).oemSettings.siteIcon,onError:s[0]||(s[0]=r=>r.target.style.display="none")},null,40,V)):(n(),a("i",I))],64))]),!m.value&&o(e).oemSettings.siteName?(n(),a("h1",q,d(o(e).oemSettings.siteName),1)):m.value?(n(),a("div",D)):i("",!0),s[3]||(s[3]=t("p",{class:"text-base text-gray-600 sm:text-lg"},"管理后台",-1))]),t("form",{class:"space-y-4 sm:space-y-6",onSubmit:w(g,["prevent"])},[t("div",null,[s[4]||(s[4]=t("label",{class:"mb-2 block text-sm font-semibold text-gray-900 sm:mb-3"},"用户名",-1)),u(t("input",{"onUpdate:modelValue":s[1]||(s[1]=r=>l.value.username=r),class:"form-input w-full",placeholder:"请输入用户名",required:"",type:"text"},null,512),[[c,l.value.username]])]),t("div",null,[s[5]||(s[5]=t("label",{class:"mb-2 block text-sm font-semibold text-gray-900 sm:mb-3"},"密码",-1)),u(t("input",{"onUpdate:modelValue":s[2]||(s[2]=r=>l.value.password=r),class:"form-input w-full",placeholder:"请输入密码",required:"",type:"password"},null,512),[[c,l.value.password]])]),t("button",{class:"btn btn-primary w-full px-4 py-3 text-base font-semibold sm:px-6 sm:py-4 sm:text-lg",disabled:o(e).loginLoading,type:"submit"},[o(e).loginLoading?i("",!0):(n(),a("i",j)),o(e).loginLoading?(n(),a("div",B)):i("",!0),p(" "+d(o(e).loginLoading?"登录中...":"登录"),1)],8,E)],32),o(e).loginError?(n(),a("div",M,[s[6]||(s[6]=t("i",{class:"fas fa-exclamation-triangle mr-2"},null,-1)),p(d(o(e).loginError),1)])):i("",!0)])]))}},K=_(F,[["__scopeId","data-v-1990a2ea"]]);export{K as default};

View File

@@ -1 +1 @@
import{_ as r}from"./index-BMhthBXv.js";import{x as t,y as s,z as a,Q as d,L as o,A as c,C as g,P as i}from"./vue-vendor-CKToUHZx.js";const u={class:"flex items-center gap-4"},f={class:"flex h-12 w-12 flex-shrink-0 items-center justify-center overflow-hidden rounded-xl border border-gray-300/30 bg-gradient-to-br from-blue-500/20 to-purple-500/20 backdrop-blur-sm"},y=["src"],h={key:1,class:"fas fa-cloud text-xl text-gray-700"},m={key:1,class:"h-8 w-8 animate-pulse rounded bg-gray-300/50"},x={class:"flex min-h-[48px] flex-col justify-center"},b={class:"flex items-center gap-3"},k={key:1,class:"h-8 w-64 animate-pulse rounded bg-gray-300/50"},_={key:0,class:"mt-0.5 text-sm leading-tight text-gray-600"},S={__name:"LogoTitle",props:{loading:{type:Boolean,default:!1},title:{type:String,default:""},subtitle:{type:String,default:""},logoSrc:{type:String,default:""},titleClass:{type:String,default:"text-gray-900"}},setup(e){const n=l=>{l.target.style.display="none"};return(l,v)=>(s(),t("div",u,[a("div",f,[e.loading?(s(),t("div",m)):(s(),t(d,{key:0},[e.logoSrc?(s(),t("img",{key:0,alt:"Logo",class:"h-8 w-8 object-contain",src:e.logoSrc,onError:n},null,40,y)):(s(),t("i",h))],64))]),a("div",x,[a("div",b,[!e.loading&&e.title?(s(),t("h1",{key:0,class:g(["header-title text-2xl font-bold leading-tight",e.titleClass])},i(e.title),3)):e.loading?(s(),t("div",k)):o("",!0),c(l.$slots,"after-title",{},void 0,!0)]),e.subtitle?(s(),t("p",_,i(e.subtitle),1)):o("",!0)])]))}},w=r(S,[["__scopeId","data-v-10fd6442"]]);export{w as L};
import{_ as r}from"./index-FG17xIFK.js";import{x as t,y as s,z as a,Q as d,L as o,A as c,C as g,P as i}from"./vue-vendor-CKToUHZx.js";const u={class:"flex items-center gap-4"},f={class:"flex h-12 w-12 flex-shrink-0 items-center justify-center overflow-hidden rounded-xl border border-gray-300/30 bg-gradient-to-br from-blue-500/20 to-purple-500/20 backdrop-blur-sm"},y=["src"],h={key:1,class:"fas fa-cloud text-xl text-gray-700"},m={key:1,class:"h-8 w-8 animate-pulse rounded bg-gray-300/50"},x={class:"flex min-h-[48px] flex-col justify-center"},b={class:"flex items-center gap-3"},k={key:1,class:"h-8 w-64 animate-pulse rounded bg-gray-300/50"},_={key:0,class:"mt-0.5 text-sm leading-tight text-gray-600"},S={__name:"LogoTitle",props:{loading:{type:Boolean,default:!1},title:{type:String,default:""},subtitle:{type:String,default:""},logoSrc:{type:String,default:""},titleClass:{type:String,default:"text-gray-900"}},setup(e){const n=l=>{l.target.style.display="none"};return(l,v)=>(s(),t("div",u,[a("div",f,[e.loading?(s(),t("div",m)):(s(),t(d,{key:0},[e.logoSrc?(s(),t("img",{key:0,alt:"Logo",class:"h-8 w-8 object-contain",src:e.logoSrc,onError:n},null,40,y)):(s(),t("i",h))],64))]),a("div",x,[a("div",b,[!e.loading&&e.title?(s(),t("h1",{key:0,class:g(["header-title text-2xl font-bold leading-tight",e.titleClass])},i(e.title),3)):e.loading?(s(),t("div",k)):o("",!0),c(l.$slots,"after-title",{},void 0,!0)]),e.subtitle?(s(),t("p",_,i(e.subtitle),1)):o("",!0)])]))}},w=r(S,[["__scopeId","data-v-10fd6442"]]);export{w as L};

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long