文档归位:雪猫 README 门面 + 公告/制作文档/发布工具并入仓库根
Release Tag / validate-version (push) Waiting to run

This commit is contained in:
天天的鸟蛋蛋 committed 2026-11-12 06:29:38 +08:00
1 parent b9655a5ab1
commit e292824161
122 files changed
+90002 -69

No files matched your search

@@ -0,0 +1 @@
import{r as d,j as e,R as j}from"./react-vendor-jWT2yUdV.js";import{b as y,u as k,k as N,c as f,a as W,d as Q,A as _,P as G,s as J}from"./index-DiaaLdUu.js";import{c as V,b as X,a as P}from"./chunk-B75B6XQK-aFCr8AK6.js";import{c as Y}from"./chunk-NAV3ZXLI-ChbUTMf0.js";import{i as M}from"./chunk-MLPFQTYO-DSnBqIsb.js";import{t as B}from"./chunk-6LIX6LVT-B246pOuK.js";import{M as Z,a as $,b as ee,c as te,d as re,e as ae,f as se}from"./index-DE7yoXMZ.js";import{d as ne}from"./chunk-IHO36JMK-DJPUeGG0.js";import{I as oe}from"./index-DvErMbt6.js";import{l as A}from"./logo-kBMoCJob.js";import{u as T}from"./use-dialog-CRIMuzeE.js";import{u as D,b as O,m as R,O as ie}from"./react-router-dom-C6k78GT4.js";import{m as w}from"./proxy-BsRmjYPH.js";import{s as le,P as ce,w as de}from"./process_utils-Bjmp-2dU.js";import{Q as F}from"./qq_manager-BfRTEAby.js";import"./qface-BZLvZXJ8.js";import"./react-hot-toast-cGcFZPSt.js";import"./usePress-BrNwsdVw.js";import"./useFocusable-DA5Croun.js";import"./chunk-FGM523TA-CgSvUh2a.js";import"./chunk-M3MASYO7-B4fjH-eW.js";import"./index-BsnVex0g.js";import"./chunk-WQVQ7P2I-BJd1EiqP.js";import"./useHover-DC1o5-bm.js";import"./chunk-UX7UMZL5-CMHjUaC_.js";import"./iconBase-B7bT1FlI.js";import"./chunk-RJKRL3AU-CjtrMR1U.js";import"./chunk-AXSF7SRE-Cr4elNVq.js";import"./gestures-BHfQC-M8.js";import"./layout-Buao20KT.js";import"./index-BBhZPeTB.js";const ue=d.createContext(null),S={didCatch:!1,error:null};class fe extends d.Component{constructor(r){super(r),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=S}static getDerivedStateFromError(r){return{didCatch:!0,error:r}}resetErrorBoundary(){const{error:r}=this.state;if(r!==null){for(var t,a,s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];(t=(a=this.props).onReset)===null||t===void 0||t.call(a,{args:n,reason:"imperative-api"}),this.setState(S)}}componentDidCatch(r,t){var a,s;(a=(s=this.props).onError)===null||a===void 0||a.call(s,r,t)}componentDidUpdate(r,t){const{didCatch:a}=this.state,{resetKeys:s}=this.props;if(a&&t.error!==null&&me(r.resetKeys,s)){var n,o;(n=(o=this.props).onReset)===null||n===void 0||n.call(o,{next:s,prev:r.resetKeys,reason:"keys"}),this.setState(S)}}render(){const{children:r,fallbackRender:t,FallbackComponent:a,fallback:s}=this.props,{didCatch:n,error:o}=this.state;let c=r;if(n){const h={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof t=="function")c=t(h);else if(a)c=d.createElement(a,h);else if(s!==void 0)c=s;else throw o}return d.createElement(ue.Provider,{value:{didCatch:n,error:o,resetErrorBoundary:this.resetErrorBoundary}},c)}}function me(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return i.length!==r.length||i.some((t,a)=>!Object.is(t,r[a]))}function he({error:i,resetErrorBoundary:r}){return e.jsxs("div",{className:"pt-32 flex flex-col justify-center items-center",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(Z,{className:"mr-2",color:"red",size:30}),e.jsx("h1",{className:"text-2xl",children:"出错了"})]}),e.jsxs("div",{className:"my-6 flex flex-col justify-center items-center",children:[e.jsx("p",{className:"mb-2",children:"错误信息"}),e.jsx(V,{children:i.message})]}),e.jsx(y,{color:"primary",size:"md",onPress:r,children:"重试"})]})}const q=(i,r=!1)=>i==null?void 0:i.map(t=>{var b;const a=D(),s=O(),[n,o]=j.useState(!!t.autoOpen),c=j.useMemo(()=>t.items&&t.items.length>0,[t.items]),[h]=k(N.backgroundImage,""),[m]=k(N.customIcons,{}),u=j.useMemo(()=>t.href?!!R(t.href,s.pathname):!1,[t.href,s.pathname]),E=C=>{a(C)};j.useEffect(()=>{t.items&&t.items.some(g=>(g==null?void 0:g.href)&&!!R(g.href,s.pathname))&&o(!0)},[t.items,s.pathname]);const p=j.useRef(null);return e.jsxs("div",{children:[e.jsx(y,{className:f("group relative flex items-center w-full h-10 text-left justify-start rounded-xl px-3","transition-all duration-200",u?"bg-primary-500/[0.12] text-primary-600 dark:bg-primary-500/[0.16] dark:text-primary-300 font-semibold shadow-sm shadow-primary-500/10":"text-default-600 hover:bg-default-100/70 hover:text-default-900 dark:text-default-300 dark:hover:bg-white/[0.06]",h&&!u&&"text-white/85 hover:bg-white/15 hover:text-white",u&&"before:absolute before:left-0 before:top-1/2 before:-translate-y-1/2 before:h-5 before:w-[3px] before:rounded-full before:bg-primary-500"),color:"default",disableRipple:!0,endContent:c?e.jsx("div",{className:f("ml-auto relative w-3 h-3 transition-transform duration-300",n&&"transform rotate-180",u?"text-primary-500":"text-default-300 dark:text-white/40","before:rounded-full",'before:content-[""]',"before:block","before:absolute","before:w-3","before:h-[4.5px]","before:bg-current","before:top-1/2","before:-left-[3px]","before:transform","before:-translate-y-1/2","before:rotate-45","after:rounded-full",'after:content-[""]',"after:block","after:absolute","after:w-3","after:h-[4.5px]","after:bg-current","after:top-1/2","after:left-[3pLine truncated