first commit

This commit is contained in:
liu
2026-07-13 15:23:29 +08:00
commit 50885a98c8
473 changed files with 33772 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
import{Tr as e,t}from"./jsx-runtime-NwRKtVrk.js";import{t as n}from"./button-CM-rzMOH.js";import{t as r}from"./card-D7XvzVif.js";import{t as i}from"./result-C9ArRkbL.js";e();var a=t(),o=()=>(0,a.jsx)(r,{variant:`borderless`,children:(0,a.jsx)(i,{status:`403`,title:`403`,subTitle:`Sorry, you are not authorized to access this page.`,extra:(0,a.jsx)(n,{type:`primary`,children:`Back Home`})})});export{o as default};
+1
View File
@@ -0,0 +1 @@
import{Tr as e,t}from"./jsx-runtime-NwRKtVrk.js";import{t as n}from"./button-CM-rzMOH.js";import{t as r}from"./card-D7XvzVif.js";import{t as i}from"./result-C9ArRkbL.js";e();var a=t(),o=()=>(0,a.jsx)(r,{variant:`borderless`,children:(0,a.jsx)(i,{status:`404`,title:`404`,subTitle:`Sorry, the page you visited does not exist.`,extra:(0,a.jsx)(n,{type:`primary`,children:`Back Home`})})});export{o as default};
+1
View File
@@ -0,0 +1 @@
import{Tr as e,t}from"./jsx-runtime-NwRKtVrk.js";import{t as n}from"./button-CM-rzMOH.js";import{t as r}from"./card-D7XvzVif.js";import{t as i}from"./result-C9ArRkbL.js";e();var a=t(),o=()=>(0,a.jsx)(r,{variant:`borderless`,children:(0,a.jsx)(i,{status:`500`,title:`500`,subTitle:`Sorry, something went wrong.`,extra:(0,a.jsx)(n,{type:`primary`,children:`Back Home`})})});export{o as default};
+1
View File
@@ -0,0 +1 @@
import{Or as e,Tr as t,t as n}from"./jsx-runtime-NwRKtVrk.js";import{c as r}from"./index-B7MUL4ct.js";var i=e(t(),1),a=n(),o=({auth:e,children:t})=>{let n=r(e=>e.access);return(0,i.useMemo)(()=>e?n.includes(e):!0,[n,e])?(0,a.jsx)(a.Fragment,{children:t}):null};export{o as t};
+1
View File
@@ -0,0 +1 @@
import{Er as e,Or as t,Tn as n,Tr as r}from"./jsx-runtime-NwRKtVrk.js";var i=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z`}}]},name:`down`,theme:`outlined`}})),a=t(r()),o=t(i());function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var c=a.forwardRef((e,t)=>a.createElement(n,s({},e,{ref:t,icon:o.default}))),l=t(e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`}}))());function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var d=a.forwardRef((e,t)=>a.createElement(n,u({},e,{ref:t,icon:l.default}))),f=t(e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`bars`,theme:`outlined`}}))());function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}var m=a.forwardRef((e,t)=>a.createElement(n,p({},e,{ref:t,icon:f.default})));export{d as n,c as r,m as t};
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 @@
import{Er as e,Or as t,Tn as n,Tr as r}from"./jsx-runtime-NwRKtVrk.js";var i=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z`}}]},name:`check-circle`,theme:`filled`}})),a=t(r()),o=t(i());function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var c=a.forwardRef((e,t)=>a.createElement(n,s({},e,{ref:t,icon:o.default}))),l=t(e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z`}}]},name:`close-circle`,theme:`filled`}}))());function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var d=a.forwardRef((e,t)=>a.createElement(n,u({},e,{ref:t,icon:l.default}))),f=t(e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`exclamation-circle`,theme:`filled`}}))());function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}var m=a.forwardRef((e,t)=>a.createElement(n,p({},e,{ref:t,icon:f.default})));export{d as n,c as r,m as t};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Or as e,Tr as t,sn as n,tt as r,ur as i}from"./jsx-runtime-NwRKtVrk.js";var a=e(t());function o(e){return t=>a.createElement(r,{theme:{token:{motion:!1,zIndexPopupBase:0}}},a.createElement(e,{...t}))}var s=(e,t,r,s,c)=>o(o=>{let{prefixCls:l,style:u}=o,d=a.useRef(null),[f,p]=a.useState(0),[m,h]=a.useState(0),[g,_]=i(!1,o.open),{getPrefixCls:v}=a.useContext(n),y=v(s||`select`,l);a.useEffect(()=>{if(_(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;p(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{let n=c?`.${c(y)}`:`.${y}-dropdown`,r=d.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[y]);let b={...o,style:{...u,margin:0},open:g,getPopupContainer:()=>d.current};r&&(b=r(b)),t&&(b={...b,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let x={paddingBottom:f,position:`relative`,minWidth:m};return a.createElement(`div`,{ref:d,style:x},a.createElement(e,{...b}))});export{o as n,s as t};
+4
View File
@@ -0,0 +1,4 @@
import{Bt as e,J as t,Or as n,Sr as r,St as i,Tr as a,Xn as o,Y as s,cn as c,dn as ee,et as te,fn as l,it as u,m as d,mr as f,r as p}from"./jsx-runtime-NwRKtVrk.js";import{_ as m,g as h,l as g}from"./CopyOutlined-bJLUKQgS.js";import{n as _,t as ne}from"./statusUtils-G17j4Ng-.js";import{i as re,r as ie}from"./Input-yLjViSX8.js";var v=()=>f()&&window.document.documentElement,y=n(a()),b=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},x=i([`Input`,`TextArea`],t=>b(e(t,m(t))),h,{resetFont:!1}),S=(0,y.forwardRef)((e,n)=>{let{prefixCls:i,bordered:a=!0,size:f,disabled:m,status:h,allowClear:v,classNames:b,rootClassName:S,className:C,style:w,styles:T,variant:E,showCount:D,onMouseDown:O,onResize:k,...A}=e,{getPrefixCls:j,direction:M,allowClear:N,autoComplete:P,className:F,style:I,classNames:L,styles:R}=c(`textArea`),z=y.useContext(u),ae=m??z,{status:B,hasFeedback:V,feedbackIcon:H}=y.useContext(d),U=ne(B,h),[W,G]=ee([L,b],[R,T],{props:e}),K=y.useRef(null);y.useImperativeHandle(n,()=>({resizableTextArea:K.current?.resizableTextArea,focus:e=>{o(K.current?.resizableTextArea?.textArea,e)},blur:()=>K.current?.blur(),nativeElement:K.current?.nativeElement||null}));let q=j(`input`,i),J=te(q),[Y,oe]=g(q,S);x(q,J);let{compactSize:se,compactItemClassnames:ce}=t(q,M),X=s(e=>f??se??e),[Z,le]=p(`textArea`,E,a),ue=re({allowClear:v,contextAllowClear:N,componentName:`TextArea`}),[Q,$]=y.useState(!1),[de,fe]=y.useState(!1),pe=e=>{$(!0),O?.(e);let t=()=>{$(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},me=e=>{if(k?.(e),Q&&l(getComputedStyle)){let e=K.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&fe(!0)}};return y.createElement(ie,{autoComplete:P,...A,style:{...G.root,...I,...w},styles:G,disabled:ae,allowClear:ue,className:r(oe,J,C,S,ce,F,W.root,{[`${q}-textarea-affix-wrapper-resize-dirty`]:de}),classNames:{...W,textarea:r({[`${q}-sm`]:X===`small`,[`${q}-lg`]:X===`large`},Y,W.textarea,Q&&`${q}-mouse-active`),variant:r({[`${q}-${Z}`]:le},_(q,U)),affixWrapper:r(`${q}-textarea-affix-wrapper`,{[`${q}-affix-wrapper-rtl`]:M===`rtl`,[`${q}-affix-wrapper-sm`]:X===`small`,[`${q}-affix-wrapper-lg`]:X===`large`,[`${q}-textarea-show-count`]:D||e.count?.show},Y)},prefixCls:q,suffix:V&&y.createElement(`span`,{className:`${q}-textarea-suffix`},H),showCount:D,ref:K,onResize:me,onMouseDown:pe})});export{v as n,S as t};
+1
View File
@@ -0,0 +1 @@
import{Er as e,Or as t,Tn as n,Tr as r}from"./jsx-runtime-NwRKtVrk.js";var i=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`}})),a=t(r()),o=t(i());function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var c=a.forwardRef((e,t)=>a.createElement(n,s({},e,{ref:t,icon:o.default})));export{c as t};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Or as e,Tr as t,t as n}from"./jsx-runtime-NwRKtVrk.js";import{r}from"./statusUtils-G17j4Ng-.js";import{t as i}from"./button-CM-rzMOH.js";import{t as a}from"./space-Dvitgohy.js";import{t as o}from"./card-D7XvzVif.js";import{t as s}from"./spin-DV35Mdw9.js";import{t as c}from"./tag-C0Yg14A-.js";import{$ as l,W as u,Y as d,_ as f,g as p,h as m,it as h,s as g}from"./index-B7MUL4ct.js";import{n as _,r as v}from"./agent-D8tKYnoa.js";var y=e(t(),1),b=n(),{Title:x,Text:S,Paragraph:C}=m;function w(){let{t:e}=g(),{token:t}=p.useToken(),{message:n}=l.useApp(),m=h(),[w,T]=(0,y.useState)([]),[E,D]=(0,y.useState)(!1),O=(0,y.useCallback)(async()=>{D(!0);try{T((await _()).data.data??[])}finally{D(!1)}},[]);(0,y.useEffect)(()=>{O()},[O]);let k=async(t,r)=>{try{await v(t,{enabled:r}),T(e=>e.map(e=>e.id===t?{...e,enabled:r}:e)),n.success(e(`ai.agent.update.success`))}catch{n.error(e(`ai.agent.update.failed`))}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,marginBottom:t.marginLG},children:(0,b.jsxs)(`div`,{children:[(0,b.jsx)(x,{level:3,style:{marginBottom:t.marginXS},children:e(`ai.agent.page.title`)}),(0,b.jsx)(S,{type:`secondary`,children:e(`ai.agent.page.description`)})]})}),(0,b.jsx)(s,{spinning:E,children:w.length>0?(0,b.jsx)(`div`,{className:`flex flex-wrap gap-6`,children:w.map(n=>(0,b.jsx)(r,{title:n.description,children:(0,b.jsxs)(o,{hoverable:!0,variant:`borderless`,styles:{body:{width:300,padding:20,overflow:`hidden`}},children:[(0,b.jsxs)(`div`,{className:`flex justify-between items-center mb-2.5`,children:[(0,b.jsxs)(a,{align:`center`,children:[(0,b.jsx)(d,{src:n.icon,size:32}),(0,b.jsx)(`span`,{style:{fontWeight:700,fontSize:18},children:n.name})]}),(0,b.jsx)(f,{checked:n.enabled,size:`small`,onChange:e=>k(n.id,e)})]}),(0,b.jsx)(C,{type:`secondary`,ellipsis:{rows:2},style:{marginBottom:t.marginSM},children:n.description}),(0,b.jsx)(a,{size:[4,4],wrap:!0,children:n.tags?.map(e=>(0,b.jsx)(c,{color:`blue`,children:e},e))}),(0,b.jsx)(`div`,{style:{marginTop:t.marginSM},children:(0,b.jsx)(i,{type:`primary`,size:`small`,block:!0,onClick:()=>m(`/ai/chat?agent_id=${n.id}`),children:e(`ai.agent.goChat`)})})]})}))}):(0,b.jsx)(u,{description:e(`ai.agent.empty`)})})]})}export{w as default};
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./request-Blbag3Ot.js";async function t(){return e({url:`/ai/agent`,method:`get`})}async function n(t){return e({url:`/ai/agent/${t}`,method:`get`})}async function r(t,n){return e({url:`/ai/agent/${t}`,method:`put`,data:n})}export{t as n,r,n as t};
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
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
+1
View File
@@ -0,0 +1 @@
import{Or as e,Tr as t,t as n}from"./jsx-runtime-NwRKtVrk.js";import{t as r}from"./request-Blbag3Ot.js";import{r as i}from"./statusUtils-G17j4Ng-.js";import{t as a}from"./table-By97ouEx.js";import{t as o}from"./button-CM-rzMOH.js";import{jt as s}from"./es-Do50EHua.js";import{t as c}from"./tag-C0Yg14A-.js";import{D as l,E as u,h as d,s as f}from"./index-B7MUL4ct.js";import{t as p}from"./XinTable-Cyzgse09.js";async function m(e,t){return r({url:`/ai/conversation/${e}/messages`,method:`get`,params:t})}var h=e(l(),1),g=e(t(),1),_=n(),{Title:v,Text:y}=d;function b(){let{t:e}=f(),[t,n]=(0,g.useState)(!1),[r,l]=(0,g.useState)(``),[d,b]=(0,g.useState)([]),[x,S]=(0,g.useState)(!1),[C,w]=(0,g.useState)(0),[T,E]=(0,g.useState)(1),[D,O]=(0,g.useState)(``),k=async(e,t)=>{S(!0);try{let n=(await m(e,{page:t,pageSize:20})).data.data;b(n.data),w(n.total)}finally{S(!1)}},A=async e=>{O(e.id),l(e.title||``),E(1),n(!0),await k(e.id,1)},j=e=>{E(e),k(D,e)},M=[{title:e(`ai.conversation.id`),dataIndex:`id`,hideInForm:!0,width:260,ellipsis:!0,align:`center`},{title:e(`ai.conversation.username`),dataIndex:`username`,hideInForm:!0,align:`center`,width:120,render:t=>t||e(`ai.conversation.noUser`)},{title:e(`ai.conversation.title`),dataIndex:`title`,valueType:`text`,ellipsis:!0},{title:e(`ai.conversation.messageCount`),dataIndex:`message_count`,hideInForm:!0,hideInSearch:!0,align:`center`,width:100},{title:e(`ai.conversation.createdAt`),dataIndex:`created_at`,hideInForm:!0,hideInSearch:!0,align:`center`,width:180,render:e=>e?(0,h.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`},{title:e(`ai.conversation.updatedAt`),dataIndex:`updated_at`,hideInForm:!0,hideInSearch:!0,align:`center`,width:180,render:e=>e?(0,h.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`}],N=[{title:e(`ai.conversation.message.role`),dataIndex:`role`,width:100,render:t=>(0,_.jsx)(c,{color:{user:`blue`,assistant:`green`,system:`orange`}[t]||`default`,children:e(`ai.conversation.message.role.${t}`,t)})},{title:e(`ai.conversation.message.agent`),dataIndex:`agent`,width:150,ellipsis:!0},{title:e(`ai.conversation.message.content`),dataIndex:`content`,ellipsis:!0},{title:e(`ai.conversation.message.createdAt`),dataIndex:`created_at`,width:180,render:e=>e?(0,h.default)(e).format(`YYYY-MM-DD HH:mm:ss`):`-`}];return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`mb-5`,children:[(0,_.jsx)(v,{level:3,children:e(`ai.conversation.page.title`)}),(0,_.jsx)(y,{type:`secondary`,children:e(`ai.conversation.page.description`)})]}),(0,_.jsx)(p,{api:`/ai/conversation`,columns:M,rowKey:`id`,accessName:`ai.conversation`,addShow:!1,editShow:!1,formProps:!1,operateProps:{fixed:`right`,width:120},operateRender:(t,n)=>[(0,_.jsx)(i,{title:e(`ai.conversation.viewMessages`),children:(0,_.jsx)(o,{type:`primary`,icon:(0,_.jsx)(s,{}),size:`small`,onClick:()=>A(t)})},`view`),n.del],scroll:{x:1100},cardProps:{variant:`borderless`}}),(0,_.jsx)(u,{title:`${e(`ai.conversation.messageTitle`)} - ${r}`,open:t,onClose:()=>n(!1),width:900,children:(0,_.jsx)(a,{dataSource:d,columns:N,rowKey:`id`,loading:x,pagination:{current:T,total:C,pageSize:20,onChange:j,showSizeChanger:!1},scroll:{x:700},size:`small`})})]})}export{b as default};
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
View File
@@ -0,0 +1 @@
import{Or as e,t}from"./jsx-runtime-NwRKtVrk.js";import{r as n}from"./statusUtils-G17j4Ng-.js";import{t as r}from"./button-CM-rzMOH.js";import{t as i}from"./badge-BLoxw4wl.js";import{c as a}from"./es-Do50EHua.js";import{D as o,h as s,it as c,n as l,s as u}from"./index-B7MUL4ct.js";import{t as d}from"./XinTable-Cyzgse09.js";var f=t(),p=e(o(),1),{Title:m,Text:h}=s;function g(){let{t:e}=u(),t=c(),o=l(e=>e.initDict),s=[{title:e(`system.dict.id`),dataIndex:`id`,hideInForm:!0,width:80,sorter:!0,align:`center`},{title:e(`system.dict.name`),dataIndex:`name`,valueType:`text`,colProps:{span:12},rules:[{required:!0,message:e(`system.dict.name.required`)}]},{title:e(`system.dict.code`),dataIndex:`code`,valueType:`text`,colProps:{span:12},rules:[{required:!0,message:e(`system.dict.code.required`)}]},{title:e(`system.dict.status`),dataIndex:`status`,valueType:`select`,filters:[{text:e(`system.dict.status.normal`),value:0},{text:e(`system.dict.status.disabled`),value:1}],colProps:{span:12},rules:[{required:!0,message:e(`system.dict.status.required`)}],fieldProps:{options:[{label:e(`system.dict.status.normal`),value:0},{label:e(`system.dict.status.disabled`),value:1}]},render:t=>t===0?(0,f.jsx)(i,{status:`success`,text:e(`system.dict.status.normal`)}):(0,f.jsx)(i,{status:`error`,text:e(`system.dict.status.disabled`)})},{title:e(`system.dict.sort`),dataIndex:`sort`,valueType:`digit`,colProps:{span:12},hideInSearch:!0,fieldProps:{min:0,style:{width:`100%`}}},{title:e(`system.dict.describe`),dataIndex:`describe`,valueType:`textarea`,colProps:{span:24},hideInSearch:!0,ellipsis:!0},{title:e(`system.dict.createdAt`),dataIndex:`created_at`,render:e=>e?(0,p.default)(e).format(`YYYY-MM-DD HH:mm`):`-`,hideInForm:!0,hideInSearch:!0,width:160}],g=async()=>{await o(),window.$message?.success(e(`system.dict.refreshSuccess`))},_=e=>{t(`/system/dict/item?dictId=${e.id}&dictName=${encodeURIComponent(e.name||``)}&dictCode=${e.code}`)};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(`div`,{className:`mb-5`,children:[(0,f.jsx)(m,{level:3,children:e(`system.dict.page.title`)}),(0,f.jsx)(h,{type:`secondary`,children:e(`system.dict.page.description`)})]}),(0,f.jsx)(d,{api:`/system/dict/list`,columns:s,rowKey:`id`,accessName:`system.dict.list`,searchProps:!1,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},actionBarRender:t=>[t.add,(0,f.jsx)(r,{type:`primary`,onClick:g,children:e(`system.dict.refreshCache`)},`refresh`),t.keywordSearch],operateProps:{fixed:`right`,width:180},scroll:{x:1e3},operateRender:(t,i)=>[(0,f.jsx)(n,{title:e(`system.dict.manageItems`),children:(0,f.jsx)(r,{type:`default`,icon:(0,f.jsx)(a,{}),size:`small`,onClick:()=>_(t)})}),i.edit,i.del]})]})}export{g as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Tr as e,t}from"./jsx-runtime-NwRKtVrk.js";import{t as n}from"./button-CM-rzMOH.js";import{t as r}from"./card-D7XvzVif.js";import{Q as i}from"./es-Do50EHua.js";import{t as a}from"./result-C9ArRkbL.js";import{h as o}from"./index-B7MUL4ct.js";e();var s=t(),{Paragraph:c,Text:l}=o,u=()=>(0,s.jsx)(r,{variant:`borderless`,children:(0,s.jsx)(a,{status:`error`,title:`Submission Failed`,subTitle:`Please check and modify the following information before resubmitting.`,extra:[(0,s.jsx)(n,{type:`primary`,children:`Go Console`},`console`),(0,s.jsx)(n,{children:`Buy Again`},`buy`)],children:(0,s.jsxs)(`div`,{className:`desc`,children:[(0,s.jsx)(c,{children:(0,s.jsx)(l,{strong:!0,style:{fontSize:16},children:`The content you submitted has the following error:`})}),(0,s.jsxs)(c,{children:[(0,s.jsx)(i,{className:`site-result-demo-error-icon`}),` Your account has been frozen. `,(0,s.jsx)(`a`,{children:`Thaw immediately >`})]}),(0,s.jsxs)(c,{children:[(0,s.jsx)(i,{className:`site-result-demo-error-icon`}),` Your account is not yet eligible to apply. `,(0,s.jsx)(`a`,{children:`Apply Unlock >`})]})]})})});export{u as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./jsx-runtime-NwRKtVrk.js";import{t}from"./button-CM-rzMOH.js";import{t as n}from"./space-Dvitgohy.js";import{t as r}from"./card-D7XvzVif.js";import{J as i,N as a,v as o}from"./index-B7MUL4ct.js";var s=e(),c=()=>(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(r,{style:{marginBottom:16},children:[(0,s.jsx)(i,{items:[{title:`多级菜单`},{title:`二级页面`}]}),(0,s.jsx)(`h2`,{style:{marginTop:16,marginBottom:0},children:`二级页面`})]}),(0,s.jsxs)(o,{gutter:[16,16],children:[(0,s.jsx)(a,{span:24,children:(0,s.jsx)(r,{style:{height:200}})}),(0,s.jsx)(a,{span:16,children:(0,s.jsx)(r,{style:{height:200}})}),(0,s.jsx)(a,{span:8,children:(0,s.jsx)(r,{style:{height:200}})})]}),(0,s.jsx)(r,{style:{marginTop:16},children:(0,s.jsxs)(n,{children:[(0,s.jsx)(t,{children:`重置`}),(0,s.jsx)(t,{type:`primary`,children:`提交`})]})})]});export{c as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Bt as e,Or as t,Q as n,Sr as r,St as i,Tr as a,Vn as o,pn as s,sn as c}from"./jsx-runtime-NwRKtVrk.js";import{n as l}from"./space-Dvitgohy.js";var u=t(a()),d=[`wrap`,`nowrap`,`wrap-reverse`],f=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],p=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],m=(e,t)=>{let n=t.wrap===!0?`wrap`:t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}},h=(e,t)=>{let n={};return p.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},g=(e,t)=>{let n={};return f.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},_=(e,t)=>r({...m(e,t),...h(e,t),...g(e,t)}),v=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,margin:0,padding:0,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},y=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},b=e=>{let{componentCls:t}=e,n={};return d.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},x=e=>{let{componentCls:t}=e,n={};return p.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},S=e=>{let{componentCls:t}=e,n={};return f.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},C=i(`Flex`,t=>{let{paddingXS:n,padding:r,paddingLG:i}=t,a=e(t,{flexGapSM:n,flexGap:r,flexGapLG:i});return[v(a),y(a),b(a),x(a),S(a)]},()=>({}),{resetStyle:!1}),w=u.forwardRef((e,t)=>{let{prefixCls:i,rootClassName:a,className:d,style:f,flex:p,gap:m,vertical:h,orientation:g,component:v=`div`,children:y,...b}=e,{flex:x,direction:S,getPrefixCls:w}=u.useContext(c),T=w(`flex`,i),[E,D]=C(T),[,O]=n(g,h??x?.vertical),k=r(d,a,x?.className,T,E,D,_(T,{...e,vertical:O}),{[`${T}-rtl`]:S===`rtl`,[`${T}-gap-${m}`]:l(m),[`${T}-vertical`]:O}),A={...x?.style,...f};return s(p)&&(A.flex=p),s(m)&&!l(m)&&(A.gap=m),u.createElement(v,{ref:t,className:k,style:A,...o(b,[`justify`,`wrap`,`align`])},y)});export{w as t};
+1
View File
@@ -0,0 +1 @@
import{Or as e,Tr as t,t as n}from"./jsx-runtime-NwRKtVrk.js";import{t as r}from"./space-Dvitgohy.js";import{t as i}from"./card-D7XvzVif.js";import{c as a,t as o}from"./XinForm-ihfVpzb6.js";import{M as s,b as c,h as l}from"./index-B7MUL4ct.js";var u=e(t(),1),d=n(),{Title:f,Paragraph:p,Text:m}=l,h=()=>{let[e,t]=(0,u.useState)(``),n=(0,u.useRef)(void 0);return(0,d.jsxs)(`div`,{children:[(0,d.jsxs)(l,{style:{margin:`12px 0 24px 0`},children:[(0,d.jsx)(f,{level:2,children:`图标选择器组件示例`}),(0,d.jsx)(p,{children:`基于 Ant Design Select + Modal + Tabs 封装的图标选择器组件,支持多分类图标选择。`})]}),(0,d.jsxs)(r,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,d.jsxs)(i,{title:`独立使用`,bordered:!0,children:[(0,d.jsx)(m,{children:`基础用法:`}),(0,d.jsx)(`div`,{className:`mt-2`,children:(0,d.jsx)(a,{value:e,onChange:e=>{t(e||``),e?c.success(`选中图标: ${e}`):c.info(`已清空图标`)},placeholder:`请选择图标`})}),(0,d.jsx)(s,{}),(0,d.jsx)(m,{children:`禁用状态:`}),(0,d.jsx)(`div`,{className:`mt-2`,children:(0,d.jsx)(a,{value:`HomeOutlined`,disabled:!0,placeholder:`禁用状态`})}),(0,d.jsx)(s,{}),(0,d.jsx)(m,{children:`只读状态:`}),(0,d.jsx)(`div`,{className:`mt-2`,children:(0,d.jsx)(a,{value:`SettingOutlined`,readonly:!0,placeholder:`只读状态`})}),(0,d.jsx)(m,{type:`secondary`,className:`mt-2 block text-sm`,children:`只读模式下不能打开选择弹窗,但可以清空`})]}),(0,d.jsx)(i,{title:`在 XinForm 中使用`,bordered:!0,children:(0,d.jsx)(o,{formRef:n,columns:[{dataIndex:`systemName`,title:`系统名称`,valueType:`text`,rules:[{required:!0,message:`请输入系统名称`}],fieldProps:{placeholder:`请输入系统名称`}},{dataIndex:`systemIcon`,title:`系统图标`,rules:[{required:!0,message:`请选择系统图标`}],fieldRender:()=>(0,d.jsx)(a,{placeholder:`请选择系统图标`})},{dataIndex:`description`,title:`系统描述`,valueType:`textarea`,fieldProps:{placeholder:`请输入系统描述`,rows:4}}],onFinish:async e=>(console.log(`XinForm 提交:`,e),c.success(`提交成功!`),c.info(`系统图标: ${e.systemIcon}`),!0),submitter:{submitText:`提交表单`,render:e=>e.submit}})})]})]})};export{h as default};
+1
View File
@@ -0,0 +1 @@
import{Or as e,Tr as t,t as n}from"./jsx-runtime-NwRKtVrk.js";import{t as r}from"./button-CM-rzMOH.js";import{t as i}from"./space-Dvitgohy.js";import{t as a}from"./card-D7XvzVif.js";import{C as o,h as s}from"./index-B7MUL4ct.js";import{t as c}from"./ImageUploader-CHryWmjJ.js";var l=e(t(),1),u=n(),{Title:d,Paragraph:f}=s,p=()=>{let[e]=o.useForm(),[t,n]=(0,l.useState)(null),[p,m]=(0,l.useState)([]);return(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(s,{style:{margin:`12px 0 24px 0`},children:[(0,u.jsx)(d,{level:2,children:`图片上传组件示例`}),(0,u.jsx)(f,{children:`基于 Ant Design Upload 封装的图片上传组件,支持图片剪裁、多张图片上传、尺寸限制、禁用状态等。`})]}),(0,u.jsx)(a,{title:`基础用法`,style:{marginBottom:24},children:(0,u.jsxs)(o,{form:e,layout:`vertical`,children:[(0,u.jsx)(o.Item,{label:`单张图片上传`,name:`avatar`,extra:`支持单张图片上传,最大 5MB,尺寸不超过 1920x1080`,children:(0,u.jsx)(c,{action:`/sys/file/list/upload/image`,mode:`single`,value:t,onChange:e=>n(e)})}),(0,u.jsx)(o.Item,{label:`多张图片上传`,name:`gallery`,extra:`支持最多 5 张图片上传`,children:(0,u.jsx)(c,{action:`/sys/file/list/upload/image`,mode:`multiple`,maxCount:5,value:p,onChange:e=>m(e)})}),(0,u.jsx)(o.Item,{children:(0,u.jsxs)(i,{children:[(0,u.jsx)(r,{type:`primary`,onClick:async()=>{try{let n=await e.validateFields();console.log(`Form values:`,n),console.log(`Single image:`,t),console.log(`Multiple images:`,p)}catch(e){console.error(`Validation failed:`,e)}},children:`提交`}),(0,u.jsx)(r,{onClick:()=>{e.resetFields(),n(null),m([])},children:`重置`})]})})]})}),(0,u.jsx)(a,{title:`高级配置`,style:{marginBottom:24},children:(0,u.jsxs)(o,{layout:`vertical`,children:[(0,u.jsx)(o.Item,{label:`自定义尺寸限制`,extra:`限制图片尺寸为 800x600,大小不超过 2MB`,children:(0,u.jsx)(c,{action:`/sys/file/list/upload/image`,mode:`single`,maxWidth:800,maxHeight:600,maxSize:2})}),(0,u.jsx)(o.Item,{label:`裁剪功能 - 自由裁剪`,extra:`启用裁剪功能,可自由调整裁剪区域`,children:(0,u.jsx)(c,{action:`/sys/file/list/upload/image`,mode:`single`,croppable:!0})}),(0,u.jsx)(o.Item,{label:`裁剪功能 - 1:1 正方形`,extra:`固定 1:1 比例裁剪,适合头像上传`,children:(0,u.jsx)(c,{action:`/sys/file/list/upload/image`,mode:`single`,croppable:!0,cropperOptions:{aspect:1}})}),(0,u.jsx)(o.Item,{label:`裁剪功能 - 圆形裁剪`,extra:`圆形裁剪模式,适合头像上传`,children:(0,u.jsx)(c,{action:`/sys/file/list/upload/image`,mode:`single`,croppable:!0,cropperOptions:{cropShape:`round`,aspect:1}})}),(0,u.jsx)(o.Item,{label:`裁剪功能 - 16:9 宽屏`,extra:`固定 16:9 比例裁剪,适合横幅图片`,children:(0,u.jsx)(c,{action:`/sys/file/list/upload/image`,mode:`single`,croppable:!0,cropperOptions:{aspect:16/9}})}),(0,u.jsx)(o.Item,{label:`禁用状态`,children:(0,u.jsx)(c,{action:`/sys/file/list/upload/image`,mode:`single`,disabled:!0})})]})})]})};export{p as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Tr as e,t}from"./jsx-runtime-NwRKtVrk.js";import{t as n}from"./button-CM-rzMOH.js";import{t as r}from"./card-D7XvzVif.js";import{t as i}from"./result-C9ArRkbL.js";e();var a=t(),o=()=>(0,a.jsx)(r,{variant:`borderless`,children:(0,a.jsx)(i,{title:`Your operation has been executed`,extra:(0,a.jsx)(n,{type:`primary`,children:`Go Console`},`console`)})});export{o as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Or as e,Tr as t,t as n}from"./jsx-runtime-NwRKtVrk.js";import{t as r}from"./button-CM-rzMOH.js";import{t as i}from"./space-Dvitgohy.js";import{t as a}from"./badge-BLoxw4wl.js";import{n as o}from"./BarsOutlined-UcCNWNvv.js";import{i as s,s as c}from"./XinForm-ihfVpzb6.js";import{t as l}from"./tag-C0Yg14A-.js";import{D as u,at as d,h as f,it as p,s as m}from"./index-B7MUL4ct.js";import{t as h}from"./XinTable-Cyzgse09.js";var g=[{label:`默认`,value:`default`},{label:`蓝色`,value:`blue`},{label:`绿色`,value:`green`},{label:`红色`,value:`red`},{label:`橙色`,value:`orange`},{label:`紫色`,value:`purple`},{label:`青色`,value:`cyan`},{label:`金色`,value:`gold`},{label:`绿黄色`,value:`lime`},{label:`极客蓝`,value:`geekblue`},{label:`品红`,value:`magenta`},{label:`火山红`,value:`volcano`}],_=e(t(),1),v=e(u(),1),y=n();function b(){let{t:e}=m(),t=p(),[n]=d(),u=n.get(`dictId`),b=n.get(`dictName`)||``,x=n.get(`dictCode`)||``,[S,C]=(0,_.useState)({id:u?parseInt(u):0,name:decodeURIComponent(b),code:x});(0,_.useEffect)(()=>{u&&C({id:parseInt(u),name:decodeURIComponent(b),code:x})},[u,b,x]);let w=[{title:e(`system.system.dict.item.id`),dataIndex:`id`,hideInForm:!0,width:80,align:`center`},{title:e(`system.system.dict.item.label`),dataIndex:`label`,valueType:`text`,rules:[{required:!0,message:e(`system.system.dict.item.label.required`)}]},{title:e(`system.system.dict.item.value`),dataIndex:`value`,valueType:`text`,rules:[{required:!0,message:e(`system.system.dict.item.value.required`)}]},{title:e(`system.system.dict.item.color`),dataIndex:`color`,valueType:`select`,colProps:{span:12},initialValue:`default`,fieldProps:{options:g.map(e=>({label:(0,y.jsx)(l,{color:e.value,children:e.label}),value:e.value}))},render:e=>(0,y.jsx)(l,{color:e,children:g.find(t=>t.value===e)?.label||e})},{title:e(`system.system.dict.item.isDefault`),dataIndex:`is_default`,valueType:`select`,colProps:{span:12},initialValue:0,rules:[{required:!0,message:e(`system.system.dict.item.isDefault.required`)}],fieldProps:{options:[{label:e(`system.system.dict.item.isDefault.yes`),value:1},{label:e(`system.system.dict.item.isDefault.no`),value:0}]},render:t=>t===1?(0,y.jsx)(l,{color:`blue`,children:e(`system.system.dict.item.isDefault.yes`)}):e(`system.system.dict.item.isDefault.no`)},{title:e(`system.system.dict.item.sort`),dataIndex:`sort`,valueType:`digit`,colProps:{span:12},hideInSearch:!0,initialValue:0,fieldProps:{min:0,style:{width:`100%`}}},{title:e(`system.system.dict.item.status`),dataIndex:`status`,valueType:`select`,colProps:{span:12},initialValue:0,rules:[{required:!0,message:e(`system.system.dict.item.status.required`)}],fieldProps:{options:[{label:e(`system.system.dict.item.status.normal`),value:0},{label:e(`system.system.dict.item.status.disabled`),value:1}]},render:t=>t===0?(0,y.jsx)(a,{status:`success`,text:e(`system.system.dict.item.status.normal`)}):(0,y.jsx)(a,{status:`error`,text:e(`system.system.dict.item.status.disabled`)})},{title:e(`system.system.dict.item.createTime`),dataIndex:`created_at`,render:e=>e?(0,v.default)(e).format(`YYYY-MM-DD HH:mm`):`-`,hideInForm:!0,hideInSearch:!0,width:160}];return S.id?(0,y.jsxs)(i,{orientation:`vertical`,style:{width:`100%`},children:[(0,y.jsxs)(`div`,{children:[(0,y.jsx)(r,{type:`link`,onClick:()=>{t(`/system/dict`)},icon:(0,y.jsx)(o,{}),classNames:{root:`p-0 mb-2`},children:e(`system.dict.backToList`)}),(0,y.jsxs)(f.Title,{level:3,children:[(0,y.jsxs)(`span`,{className:`mr-2`,children:[e(`system.dict.itemManagement`),` - `,S.name]}),(0,y.jsx)(f.Text,{type:`secondary`,children:S.code})]})]}),(0,y.jsx)(h,{api:`/system/dict/item`,columns:w,rowKey:`id`,accessName:`system.dict.item`,formProps:{grid:!0,colProps:{span:12},layout:`vertical`,rowProps:{gutter:[30,0]}},modalProps:{width:600},requestParams:e=>({...e,dict_id:S.id}),searchShow:!1,handleFinish:async(t,n,r,i)=>(n===`create`?(await s(`/system/dict/item`,{...t,dict_id:S.id}),window.$message?.success(e(`system.dict.item.createSuccess`))):(await c(`/system/dict/item/`+i?.id,{...t,dict_id:S.id}),window.$message?.success(e(`system.dict.item.updateSuccess`))),!0)})]}):(0,y.jsx)(`div`,{style:{padding:50,textAlign:`center`},children:(0,y.jsx)(`div`,{style:{marginTop:50,color:`#999`},children:e(`system.dict.selectDictFirst`)})})}export{b as default};
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
+6
View File
@@ -0,0 +1,6 @@
import{Or as e,Tr as t}from"./jsx-runtime-NwRKtVrk.js";var n=e(t(),1),r=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},i=(e=>e?r(e):r),a=e=>e;function o(e,t=a){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r}var s=e=>{let t=i(e),n=e=>o(t,e);return Object.assign(n,t),n},c=(e=>e?s(e):s),l=e=>!!e.dispatchFromDevtools&&typeof e.dispatch==`function`,u=new Map,d=e=>{let t=u.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},f=(e,t,n)=>{if(e===void 0)return{type:`untracked`,connection:t.connect(n)};let r=u.get(n.name);if(r)return{type:`tracked`,store:e,...r};let i={connection:t.connect(n),stores:{}};return u.set(n.name,i),{type:`tracked`,store:e,...i}},p=(e,t)=>{if(t===void 0)return;let n=u.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&u.delete(e))},m=/.+ (.+) .+/,h=/^([^@]+)@/;function g(e){if(!e)return;let t=e.split(`
`),n=t.findIndex(e=>e.includes(`api.setState`));if(n<0)return;let r=t[n+1]?.trim()||``;return m.exec(r)?.[1]||h.exec(r)?.[1]}var _=(e,t={})=>(n,r,i)=>{let{enabled:a,anonymousActionType:o,store:s,...c}=t,u;try{u=(a??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,i);let{connection:m,...h}=f(s,u,c),_=!0;i.setState=((e,t,a)=>{let l=n(e,t);if(!_)return l;let u=a===void 0?{type:o||g(Error().stack)||`anonymous`}:typeof a==`string`?{type:a}:a;return s===void 0?(m?.send(u,r()),l):(m?.send({...u,type:`${s}/${u.type}`},{...d(c.name),[s]:i.getState()}),l)}),i.devtools={cleanup:()=>{m&&typeof m.unsubscribe==`function`&&m.unsubscribe(),p(c.name,s)}};let y=(...e)=>{let t=_;_=!1,n(...e),_=t},b=e(i.setState,r,i);if(h.type===`untracked`?m?.init(b):(h.stores[h.store]=i,m?.init(Object.fromEntries(Object.entries(h.stores).map(([e,t])=>[e,e===h.store?b:t.getState()])))),l(i)){let e=i.dispatch;i.dispatch=(...t)=>{e(...t)}}return m.subscribe(e=>{switch(e.type){case`ACTION`:if(typeof e.payload!=`string`){console.error(`[zustand devtools middleware] Unsupported action format`);return}return v(e.payload,e=>{if(e.type===`__setState`){if(s===void 0){y(e.state);return}Object.keys(e.state).length!==1&&console.error(`
[zustand devtools middleware] Unsupported __setState action format.
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
`);let t=e.state[s];if(t==null)return;JSON.stringify(i.getState())!==JSON.stringify(t)&&y(t);return}l(i)&&i.dispatch(e)});case`DISPATCH`:switch(e.payload.type){case`RESET`:return y(b),s===void 0?m?.init(i.getState()):m?.init(d(c.name));case`COMMIT`:if(s===void 0){m?.init(i.getState());return}return m?.init(d(c.name));case`ROLLBACK`:return v(e.state,e=>{if(s===void 0){y(e),m?.init(i.getState());return}y(e[s]),m?.init(d(c.name))});case`JUMP_TO_STATE`:case`JUMP_TO_ACTION`:return v(e.state,e=>{if(s===void 0){y(e);return}JSON.stringify(i.getState())!==JSON.stringify(e[s])&&y(e[s])});case`IMPORT_STATE`:{let{nextLiftedState:t}=e.payload,n=t.computedStates.slice(-1)[0]?.state;if(!n)return;y(s===void 0?n:n[s]),m?.send(null,t);return}case`PAUSE_RECORDING`:return _=!_}return}}),b},v=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error(`[zustand devtools middleware] Could not parse the received json`,e)}n!==void 0&&t(n)};function y(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var b=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return b(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return b(t)(e)}}}},x=(e,t)=>(n,r,i)=>{let a={storage:y(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return b(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p};export{c as i,_ as n,x as r,y as t};
File diff suppressed because one or more lines are too long
+4
View File
@@ -0,0 +1,4 @@
import{G as e,nn as t}from"./jsx-runtime-NwRKtVrk.js";var n=new t(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),r=new t(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),i=new t(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),a=new t(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),o=new t(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),s=new t(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),c={"move-up":{inKeyframes:new t(`antMoveUpIn`,{"0%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),outKeyframes:new t(`antMoveUpOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0}})},"move-down":{inKeyframes:n,outKeyframes:r},"move-left":{inKeyframes:i,outKeyframes:a},"move-right":{inKeyframes:o,outKeyframes:s}},l=(t,n)=>{let{antCls:r}=t,i=`${r}-${n}`,{inKeyframes:a,outKeyframes:o}=c[n];return[e(i,a,o,t.motionDurationMid),{[`
${i}-enter,
${i}-appear
`]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${i}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]};export{l as t};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Or as e,Sr as t,St as n,Tr as r,Vn as i,_n as a,cn as o,dn as s,ht as c,pt as l,sn as u,ur as d}from"./jsx-runtime-NwRKtVrk.js";import{t as f}from"./ExclamationCircleFilled-gmOeErIU.js";import{o as p}from"./statusUtils-G17j4Ng-.js";import{i as m,n as h}from"./button-CM-rzMOH.js";import{Q as g,X as _,Z as v,tt as y}from"./index-B7MUL4ct.js";var b=e(r()),x=n(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon`]:{color:o},[`> ${t}-message-icon ${n}`]:{fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),S=e=>{let{prefixCls:n,okButtonProps:r,cancelButtonProps:i,title:o,description:s,cancelText:d,okText:p,okType:_=`primary`,icon:v=b.createElement(f,null),showCancel:x=!0,close:S,onConfirm:C,onCancel:w,onPopupClick:T,classNames:E,styles:D}=e,{getPrefixCls:O}=b.useContext(u),[k]=l(`Popconfirm`,c.Popconfirm),A=g(o),j=g(s);return b.createElement(`div`,{className:`${n}-inner-content`,onClick:T},b.createElement(`div`,{className:`${n}-message`},v&&b.createElement(`span`,{className:t(`${n}-message-icon`,E?.icon),style:D?.icon},v),b.createElement(`div`,{className:`${n}-message-text`},a(A)&&b.createElement(`div`,{className:t(`${n}-title`,E?.title),style:D?.title},A),a(j)&&b.createElement(`div`,{className:t(`${n}-description`,E?.content),style:D?.content},j))),b.createElement(`div`,{className:`${n}-buttons`},x&&b.createElement(h,{onClick:w,size:`small`,...i},d||k?.cancelText),b.createElement(y,{buttonProps:{size:`small`,...m(_),...r},actionFn:C,close:S,prefixCls:O(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},p||k?.okText)))},C=e=>{let{prefixCls:n,placement:r,className:i,style:a,...o}=e,{getPrefixCls:s}=b.useContext(u),c=s(`popconfirm`,n);return x(c),b.createElement(v,{placement:r,className:t(c,i),style:a,content:b.createElement(S,{prefixCls:c,...o})})},w=b.forwardRef((e,n)=>{let{prefixCls:r,placement:a=`top`,trigger:c,okType:l=`primary`,icon:u=b.createElement(f,null),children:m,overlayClassName:h,onOpenChange:g,overlayStyle:v,styles:y,arrow:C,classNames:w,...T}=e,{getPrefixCls:E,className:D,style:O,classNames:k,styles:A,arrow:j,trigger:M}=o(`popconfirm`),[N,P]=d(e.defaultOpen??!1,e.open),F=p(C,j),I=c||M||`click`,L=e=>{P(e),g?.(e)},R=()=>{L(!1)},z=t=>e.onConfirm?.call(void 0,t),B=t=>{L(!1),e.onCancel?.call(void 0,t)},V=t=>{let{disabled:n=!1}=e;n||L(t)},H=E(`popconfirm`,r),U={...e,placement:a,trigger:I,okType:l,overlayStyle:v,styles:y,classNames:w},[W,G]=s([k,w],[A,y],{props:U}),K=t(H,D,h,W.root);return x(H),b.createElement(_,{arrow:F,...i(T,[`title`]),trigger:I,placement:a,onOpenChange:V,open:N,ref:n,classNames:{root:K,container:W.container,arrow:W.arrow},styles:{root:{...O,...G.root,...v},container:G.container,arrow:G.arrow},content:b.createElement(S,{okType:l,icon:u,...e,prefixCls:H,close:R,onConfirm:z,onCancel:B,classNames:W,styles:G}),"data-popover-inject":!0},m)});w._InternalPanelDoNotUseOrYouWillBeFired=C;export{w as t};
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
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Or as e,Sr as t,Tr as n,hn as r,mn as i,pn as a,sn as o,vn as s,xt as c}from"./jsx-runtime-NwRKtVrk.js";import{i as l,r as u,t as d}from"./useBreakpoint-BdDQSe50.js";import{a as f,o as p}from"./space-Dvitgohy.js";var m=e(n()),h=(0,m.createContext)({});function g(e){return e===`auto`?`1 1 auto`:i(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var _=m.forwardRef((e,n)=>{let{getPrefixCls:s,direction:u}=m.useContext(o),{gutter:d,wrap:p}=m.useContext(h),{prefixCls:_,span:v,order:y,offset:b,push:x,pull:S,className:C,children:w,flex:T,style:E,...D}=e,O=s(`col`,_),k=s(),[A,j]=f(O),[M]=c(k,`col`),N={},P={};l.forEach(t=>{let n={},o=e[t];i(o)?n.span=o:r(o)&&(n=o||{}),delete D[t],P={...P,[`${O}-${t}-${n.span}`]:a(n.span),[`${O}-${t}-order-${n.order}`]:n.order||n.order===0,[`${O}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${O}-${t}-push-${n.push}`]:n.push||n.push===0,[`${O}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${O}-rtl`]:u===`rtl`},n.flex&&(P[`${O}-${t}-flex`]=!0,N[M(`${t}-flex`)]=g(n.flex))});let F=t(O,{[`${O}-${v}`]:v!==void 0,[`${O}-order-${y}`]:y,[`${O}-offset-${b}`]:b,[`${O}-push-${x}`]:x,[`${O}-pull-${S}`]:S},C,P,A,j),I={};return d?.[0]&&(I.paddingInline=i(d[0])?`${d[0]/2}px`:`calc(${d[0]} / 2)`),T&&(I.flex=g(T),p===!1&&!I.minWidth&&(I.minWidth=0)),m.createElement(`div`,{...D,style:{...I,...E,...N},className:F,ref:n},w)});function v(e,t){let n=[void 0,void 0],i=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return i.forEach((e,t)=>{if(r(e))for(let r=0;r<u.length;r++){let i=u[r];if(a[i]&&e[i]!==void 0){n[t]=e[i];break}}else n[t]=e}),n}var y=(e,t)=>{let[n,i]=m.useState(()=>s(e)?e:``),a=()=>{if(s(e)&&i(e),r(e))for(let n=0;n<u.length;n++){let r=u[n];if(!t||!t[r])continue;let a=e[r];if(a!==void 0){i(a);return}}};return m.useEffect(()=>{a()},[JSON.stringify(e),t]),n},b=m.forwardRef((e,n)=>{let{prefixCls:r,justify:a,align:s,className:c,style:l,children:u,gutter:f=0,wrap:g,..._}=e,{getPrefixCls:b,direction:x}=m.useContext(o),S=d(!0,null),C=y(s,S),w=y(a,S),T=b(`row`,r),[E,D]=p(T),O=v(f,S),k=t(T,{[`${T}-no-wrap`]:g===!1,[`${T}-${w}`]:w,[`${T}-${C}`]:C,[`${T}-rtl`]:x===`rtl`},c,E,D),A={};O?.[0]&&(A.marginInline=i(O[0])?`${O[0]/-2}px`:`calc(${O[0]} / -2)`);let[j,M]=O;A.rowGap=M;let N=m.useMemo(()=>({gutter:[j,M],wrap:g}),[j,M,g]);return m.createElement(h.Provider,{value:N},m.createElement(`div`,{..._,className:k,style:{...A,...l},ref:n},u))});export{_ as n,b as t};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./jsx-runtime-NwRKtVrk.js";import{t}from"./button-CM-rzMOH.js";import{t as n}from"./space-Dvitgohy.js";import{t as r}from"./card-D7XvzVif.js";import{J as i,N as a,v as o}from"./index-B7MUL4ct.js";var s=e(),c=()=>(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(r,{style:{marginBottom:16},children:[(0,s.jsx)(i,{items:[{title:`多级菜单`},{title:`二级菜单`},{title:`三级页面`}]}),(0,s.jsx)(`h2`,{style:{marginTop:16,marginBottom:0},children:`三级页面`})]}),(0,s.jsxs)(o,{gutter:[16,16],children:[(0,s.jsx)(a,{span:24,children:(0,s.jsx)(r,{style:{height:200}})}),(0,s.jsx)(a,{span:16,children:(0,s.jsx)(r,{style:{height:200}})}),(0,s.jsx)(a,{span:8,children:(0,s.jsx)(r,{style:{height:200}})})]}),(0,s.jsx)(r,{style:{marginTop:16},children:(0,s.jsxs)(n,{children:[(0,s.jsx)(t,{children:`重置`}),(0,s.jsx)(t,{type:`primary`,children:`提交`})]})})]});export{c as default};
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
+1
View File
@@ -0,0 +1 @@
import{Tr as e,t}from"./jsx-runtime-NwRKtVrk.js";import{t as n}from"./button-CM-rzMOH.js";import{t as r}from"./card-D7XvzVif.js";import{t as i}from"./result-C9ArRkbL.js";e();var a=t(),o=()=>(0,a.jsx)(r,{variant:`borderless`,children:(0,a.jsx)(i,{status:`success`,title:`Successfully Purchased Cloud Server ECS!`,subTitle:`Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait.`,extra:[(0,a.jsx)(n,{type:`primary`,children:`Go Console`},`console`),(0,a.jsx)(n,{children:`Buy Again`},`buy`)]})});export{o as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./jsx-runtime-NwRKtVrk.js";import{t}from"./button-CM-rzMOH.js";import{t as n}from"./space-Dvitgohy.js";import{t as r}from"./card-D7XvzVif.js";import{J as i,N as a,v as o}from"./index-B7MUL4ct.js";var s=e(),c=()=>(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(r,{style:{marginBottom:16},children:[(0,s.jsx)(i,{items:[{title:`多级菜单`},{title:`二级菜单`},{title:`三级菜单`},{title:`四级页面`}]}),(0,s.jsx)(`h2`,{style:{marginTop:16,marginBottom:0},children:`四级页面`})]}),(0,s.jsxs)(o,{gutter:[16,16],children:[(0,s.jsx)(a,{span:24,children:(0,s.jsx)(r,{style:{height:200}})}),(0,s.jsx)(a,{span:16,children:(0,s.jsx)(r,{style:{height:200}})}),(0,s.jsx)(a,{span:8,children:(0,s.jsx)(r,{style:{height:200}})})]}),(0,s.jsx)(r,{style:{marginTop:16},children:(0,s.jsxs)(n,{children:[(0,s.jsx)(t,{children:`重置`}),(0,s.jsx)(t,{type:`primary`,children:`提交`})]})})]});export{c as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function i(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function a(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}export{r as a,a as i,i as n,t as r,n as t};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{c as e}from"./index-B7MUL4ct.js";function t(){let t=e(e=>e.access);return{auth:e=>t.includes(e)}}export{t};
+1
View File
@@ -0,0 +1 @@
import{Or as e,Tr as t,fn as n,fr as r,wt as i}from"./jsx-runtime-NwRKtVrk.js";var a=e(t()),o=()=>a.useReducer(e=>e+1,0),s=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],c=[].concat(s).reverse(),l=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),u=e=>{let t=e,n=[].concat(s).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},d=(e,t)=>{if(t){for(let n of s)if(e[n]&&t?.[n]!==void 0)return t[n]}},f=()=>{let[,e]=i(),t=l(u(e));return a.useMemo(()=>{let e=new Map,r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return i=t,e.forEach(e=>{e(i)}),e.size>=1},subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(i),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let r=({matches:t})=>{this.dispatch({...i,[e]:t})},a=window.matchMedia(t);n(a.addEventListener)&&a.addEventListener(`change`,r),this.matchHandlers[t]={mql:a,listener:r},r(a)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];n(t?.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function p(e=!0,t={}){let n=(0,a.useRef)(t),[,i]=o(),s=f();return r(()=>{let t=s.subscribe(t=>{n.current=t,e&&i()});return()=>s.unsubscribe(t)},[]),n.current}export{o as a,c as i,d as n,s as r,p as t};
+1
View File
@@ -0,0 +1 @@
import{Bn as e,In as t,Or as n,Tr as r,hn as i,ht as a,pn as o,pt as s,wn as c}from"./jsx-runtime-NwRKtVrk.js";var l=n(r()),u=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},d={},f=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!o(e)&&!o(t))return null;let n={closeIcon:typeof t!=`boolean`&&o(t)?t:void 0};return i(e)&&(n={...n,...e}),n},p=(e,n,r)=>e===!1?!1:e?t(r,n,e):n===!1?!1:n?t(r,n):r.closable?r:!1,m=(t,n,r)=>{let{closeIconRender:i}=n,{closeIcon:a,...s}=t,c=a,u=e(s,!0);return o(c)&&(i&&(c=i(c)),c=l.isValidElement(c)?l.cloneElement(c,{"aria-label":r,...c.props,...u}):l.createElement(`span`,{"aria-label":r,...u},c)),[c,u]},h=(e,t,n=d,r=`Close`)=>{let i=f(e?.closable,e?.closeIcon),a=f(t?.closable,t?.closeIcon),o={closeIcon:l.createElement(c,null),...n},s=p(i,a,o),u=typeof s==`boolean`?!1:!!s?.disabled;if(s===!1)return[!1,null,u,{}];let[h,g]=m(s,o,r);return[!0,h,u,g]},g=(e,t,n=d)=>{let[r]=s(`global`,a.global);return l.useMemo(()=>h(e,t,{closeIcon:l.createElement(c,null),...n},r.close),[e,t,n,r.close])};export{u as n,g as r,h as t};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{Or as e,Tr as t,t as n}from"./jsx-runtime-NwRKtVrk.js";import{t as r}from"./space-Dvitgohy.js";import{t as i}from"./card-D7XvzVif.js";import{r as a,t as o}from"./XinForm-ihfVpzb6.js";import{M as s,b as c,h as l}from"./index-B7MUL4ct.js";var u=e(t(),1),d=n(),{Title:f,Paragraph:p,Text:m}=l,h=()=>{let[e,t]=(0,u.useState)(null),[n,h]=(0,u.useState)([]),g=(0,u.useRef)(void 0);return(0,d.jsxs)(`div`,{children:[(0,d.jsxs)(l,{style:{margin:`12px 0 24px 0`},children:[(0,d.jsx)(f,{level:2,children:`用户选择器组件示例`}),(0,d.jsx)(p,{children:`基于 AntDesign 封装的用户选择器表单组件,支持单选和多选模式。`})]}),(0,d.jsxs)(r,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,d.jsxs)(i,{title:`独立使用`,bordered:!0,children:[(0,d.jsx)(m,{children:`单选模式:`}),(0,d.jsx)(`div`,{className:`mt-2`,children:(0,d.jsx)(a,{value:e,onChange:e=>{t(e),c.success(`选中用户ID: ${e}`)},placeholder:`请选择用户`})}),(0,d.jsxs)(m,{type:`secondary`,className:`mt-2 block`,children:[`当前选中: `,e||`未选择`]}),(0,d.jsx)(s,{}),(0,d.jsx)(m,{children:`多选模式:`}),(0,d.jsx)(`div`,{className:`mt-2`,children:(0,d.jsx)(a,{mode:`multiple`,value:n,onChange:e=>{h(e),c.success(`选中${e.length}个用户`)},placeholder:`请选择多个用户`,maxTagCount:3})}),(0,d.jsxs)(m,{type:`secondary`,className:`mt-2 block`,children:[`当前选中: `,n.length>0?n.join(`, `):`未选择`]})]}),(0,d.jsx)(i,{title:`在 XinForm 中使用`,bordered:!0,children:(0,d.jsx)(o,{formRef:g,columns:[{dataIndex:`taskName`,title:`任务名称`,valueType:`text`,rules:[{required:!0,message:`请输入任务名称`}],fieldProps:{placeholder:`请输入任务名称`}},{dataIndex:`owner_id`,title:`任务负责人`,rules:[{required:!0,message:`请选择负责人`}],fieldRender:()=>(0,d.jsx)(a,{placeholder:`请选择负责人`})},{dataIndex:`participant_ids`,title:`参与人员`,rules:[{required:!0,message:`请至少选择一个参与人员`},{validator:(e,t)=>t&&t.length>10?Promise.reject(`最多选择10个参与人员`):Promise.resolve()}],fieldRender:()=>(0,d.jsx)(a,{mode:`multiple`,maxTagCount:3,placeholder:`请选择参与人员`})},{dataIndex:`description`,title:`任务描述`,valueType:`textarea`,fieldProps:{placeholder:`请输入任务描述`}}],onFinish:async e=>(console.log(`表单提交:`,e),c.success(`提交成功!`),c.info(`负责人ID: ${e.owner_id}, 参与人IDs: ${e.participant_ids?.join(`, `)}`),!0),submitter:{submitText:`提交表单`,render:e=>e.submit}})})]})]})};export{h as default};
+1
View File
@@ -0,0 +1 @@
import{Tr as e,t}from"./jsx-runtime-NwRKtVrk.js";import{t as n}from"./button-CM-rzMOH.js";import{t as r}from"./card-D7XvzVif.js";import{t as i}from"./result-C9ArRkbL.js";e();var a=t(),o=()=>(0,a.jsx)(r,{variant:`borderless`,children:(0,a.jsx)(i,{status:`warning`,title:`There are some problems with your operation.`,extra:(0,a.jsx)(n,{type:`primary`,children:`Go Console`},`console`)})});export{o as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./jsx-runtime-NwRKtVrk.js";import{t}from"./button-CM-rzMOH.js";import{q as n}from"./es-Do50EHua.js";import{t as r}from"./tag-C0Yg14A-.js";import{t as i}from"./XinTable-Cyzgse09.js";var a=e(),o=Array.from({length:50},(e,t)=>({id:t+1,name:`用户${t+1}`,email:`user${t+1}@example.com`,age:Math.floor(Math.random()*40)+20,status:+(Math.random()>.3),role:[`管理员`,`编辑`,`访客`][Math.floor(Math.random()*3)],department:[`技术部`,`产品部`,`运营部`,`市场部`][Math.floor(Math.random()*4)],createdAt:new Date(Date.now()-Math.random()*1e10).toLocaleDateString()})),s=()=>(0,a.jsx)(i,{columns:[{title:`序号`,width:60,valueType:`text`,dataIndex:`id`},{dataIndex:`name`,title:`用户名`,width:120,valueType:`text`,required:!0},{dataIndex:`email`,title:`邮箱`,valueType:`text`,width:200,ellipsis:!0},{dataIndex:`age`,title:`年龄`,width:80,valueType:`digit`,sorter:(e,t)=>e.age-t.age,hideInSearch:!0},{dataIndex:`status`,title:`状态`,width:100,valueType:`select`,render:e=>{let t={1:{text:`启用`,color:`green`},0:{text:`禁用`,color:`red`}}[e];return t?(0,a.jsx)(r,{color:t.color,children:t.text}):`-`},filters:[{text:`启用`,value:1},{text:`禁用`,value:0}]},{dataIndex:`role`,title:`角色`,width:100,valueType:`select`,fieldProps:{options:[{label:`管理员`,value:`管理员`},{label:`编辑`,value:`编辑`},{label:`访客`,value:`访客`}]}},{dataIndex:`department`,title:`部门`,width:120,valueType:`select`,fieldProps:{options:[{label:`技术部`,value:`技术部`},{label:`产品部`,value:`产品部`},{label:`运营部`,value:`运营部`},{label:`市场部`,value:`市场部`}]},hideInSearch:!0},{dataIndex:`createdAt`,title:`创建时间`,width:120,hideInForm:!0,hideInSearch:!0}],rowKey:`id`,dataSource:o,accessName:`system.user.list`,api:`/system-user/list`,toolBarRender:e=>[(0,a.jsx)(t,{icon:(0,a.jsx)(n,{}),children:`导出`},`export`),e.columnSetting,e.hideBorder,e.reload,e.columnHeight]});export{s as default};