feat(部署): 新增 deployment/ 内外网两套按侧部署包

按 demo/ 的写法把交付包改成「角色由目录决定」:iw/ 拷内网机、ow/ 拷外网机,
各自含镜像 tar、SQL、配置与 install.sh,install.sh 不再收 iw/ow 参数。

前端不再打进镜像,改为静态包放在 <侧>/web/ 只读挂进 nginx:1.27-alpine,
现场临时改页面直接替换文件 + restart web 即可。数据仍全部挂宿主机,
子目录命名与 deploy/offline 一致(pgdata/redis/mq/upload/logs/gate),
默认根改为包内 ./volumes,放数据盘只改 .env 的 SFILE_DATA_ROOT。

后端镜像 sfile-app:1.0.1 含传输优化那一批(实测组包 11.4×、解包 9.9×)。
出包脚本 deployment/scripts/build-package.sh 负责 jar→镜像→前端双包→sql→tar→VERSION。
This commit is contained in:
KodouWZF
2026-11-04 21:44:56 +08:00
parent 339f2c34ab
commit d39b3b035d
884 changed files with 316455 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{qn as e,zn as t}from"./index-CjPx3lfT.js";var n=e(t());function r(){return(0,n.jsx)(`div`,{className:`p-4 min-h-full`,children:(0,n.jsx)(`div`,{className:`p-8 rounded-lg`,children:(0,n.jsx)(`div`,{className:`flex items-center justify-center py-10`,children:(0,n.jsx)(`div`,{className:`text-base text-black/50`,children:`欢迎使用管理后台`})})})})}export{r as component};

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]);export{t};

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{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

View File

@@ -0,0 +1 @@
import{t as e}from"./chevron-right-UmT5k51o.js";import{Vn as t,en as n,in as r,qn as i,zn as a}from"./index-CjPx3lfT.js";t();var o=i(a(),1);function s({...e}){return(0,o.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,...e})}function c({className:e,...t}){return(0,o.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:n(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5`,e),...t})}function l({className:e,...t}){return(0,o.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:n(`inline-flex items-center gap-1.5`,e),...t})}function u({asChild:e,className:t,...i}){return(0,o.jsx)(e?r:`a`,{"data-slot":`breadcrumb-link`,className:n(`hover:text-foreground transition-colors`,t),...i})}function d({className:e,...t}){return(0,o.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:n(`text-foreground font-normal`,e),...t})}function f({children:t,className:r,...i}){return(0,o.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:n(`[&>svg]:size-3.5`,r),...i,children:t??(0,o.jsx)(e,{})})}function p({directorys:e,onChangeDirectorys:t,className:n}){return(0,o.jsx)(s,{className:n,children:(0,o.jsxs)(c,{children:[(0,o.jsx)(l,{children:(0,o.jsx)(u,{onClick:()=>t({id:0}),className:`cursor-pointer`,children:`根目录`})}),e.length>0&&(0,o.jsx)(f,{}),e.length>0&&e.map((n,r)=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l,{children:r===e.length-1?(0,o.jsx)(d,{className:`cursor-default`,children:n.fileName}):(0,o.jsx)(u,{onClick:()=>t(n),className:`cursor-pointer`,children:n.fileName.length>6?n.fileName.slice(0,6)+`...`:n.fileName})},n.id),r!==e.length-1&&(0,o.jsx)(f,{},`separator`+n.id)]}))]})})}export{p as t};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{A as e,O as t,Vn as n,Y as r,b as i,j as a,k as o,qn as s,sn as c,u as l,zn as u}from"./index-CjPx3lfT.js";import{n as d,t as f}from"./dist-BfmPJzXI.js";var p=s(n(),1),m=Object.defineProperty,h=(e,t)=>m(e,`name`,{value:t,configurable:!0}),g=!1;function _(){let[e,t]=p.useState(g);return p.useEffect(()=>{g||(g=!0,t(!0))},[]),e}h(_,`useIsHydrated`);var v=p.useSyncExternalStore;function y(){return()=>{}}h(y,`subscribe`);function b(){return v(y,()=>!0,()=>!1)}h(b,`useIsHydratedModern`);var x=typeof v==`function`?b:_,S=s(u(),1),C=Object.defineProperty,w=(e,t)=>C(e,`name`,{value:t,configurable:!0}),T=`rovingFocusGroup.onEntryFocus`,E={bubbles:!1,cancelable:!0},D=`RovingFocusGroup`,[O,k,A]=d(D),[j,M]=o(D,[A]),N={Vertical:`vertical`,Horizontal:`horizontal`},P={LTR:`ltr`,RTL:`rtl`},[F,I]=j(D),L=p.forwardRef(w(function(e,t){return(0,S.jsx)(O.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,S.jsx)(O.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,S.jsx)(R,{...e,ref:t})})})},`RovingFocusGroup`)),R=p.forwardRef(w(function(n,i){let{__scopeRovingFocusGroup:a,orientation:o,loop:s=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:h,onEntryFocus:g,preventScrollOnEntryFocus:_=!1,...v}=n,y=p.useRef(null),b=c(i,y),x=f(u),[C,w]=l({prop:d,defaultProp:m??null,onChange:h,caller:D}),[O,A]=p.useState(!1),j=t(g),M=k(a),N=p.useRef(!1),[P,I]=p.useState(0);return p.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(T,j),()=>e.removeEventListener(T,j)},[j]),(0,S.jsx)(F,{scope:a,orientation:o,dir:x,loop:s,currentTabStopId:C,onItemFocus:p.useCallback(e=>w(e),[w]),onItemShiftTab:p.useCallback(()=>A(!0),[]),onFocusableItemAdd:p.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:p.useCallback(()=>I(e=>e-1),[]),children:(0,S.jsx)(r.div,{tabIndex:O||P===0?-1:0,"data-orientation":o,...v,ref:b,style:{outline:`none`,...n.style},onMouseDown:e(n.onMouseDown,()=>{N.current=!0}),onFocus:e(n.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(T,E);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);W([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),_)}}N.current=!1}),onBlur:e(n.onBlur,()=>A(!1))})})},`RovingFocusGroupImpl`)),z=`RovingFocusGroupItem`,B=p.forwardRef(w(function(t,n){let{__scopeRovingFocusGroup:o,focusable:s=!0,active:c=!1,tabStopId:l,children:u,...d}=t,f=i(),m=l||f,h=I(z,o),g=h.currentTabStopId===m,_=k(o),{onFocusableItemAdd:v,onFocusableItemRemove:y,currentTabStopId:b}=h,C=x();return a(()=>{if(!(!C||!s))return v(),()=>y()},[C,s,v,y]),p.useEffect(()=>{if(!(C||!s))return v(),()=>y()},[C,s,v,y]),(0,S.jsx)(O.ItemSlot,{scope:o,id:m,focusable:s,active:c,children:(0,S.jsx)(r.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...d,ref:n,onMouseDown:e(t.onMouseDown,e=>{s?h.onItemFocus(m):e.preventDefault()}),onFocus:e(t.onFocus,()=>h.onItemFocus(m)),onKeyDown:e(t.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=U(e,h.orientation,h.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=_().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?G(n,r+1):n.slice(r+1)}setTimeout(()=>W(n))}}),children:typeof u==`function`?u({isCurrentTabStop:g,hasTabStop:b!=null}):u})})},`RovingFocusGroupItem`)),V={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function H(e,t){return t===P.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}w(H,`getDirectionAwareKey`);function U(e,t,n){let r=H(e.key,n);if(!(t===N.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===N.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return V[r]}w(U,`getFocusIntent`);function W(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}w(W,`focusFirst`);function G(e,t){return e.map((n,r)=>e[(t+r)%e.length])}w(G,`wrapArray`);export{B as n,M as r,L as t};

View File

@@ -0,0 +1 @@
import{cn as e,ln as t}from"./index-CjPx3lfT.js";export{t as toast};

View File

@@ -0,0 +1 @@
import{Vn as e,Y as t,fn as n,qn as r,zn as i}from"./index-CjPx3lfT.js";var a=n(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),o=r(e(),1),s=r(i(),1),c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0}),u=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),d=o.forwardRef(l(function(e,n){return(0,s.jsx)(t.span,{...e,ref:n,style:{...u,...e.style}})},`VisuallyHidden`));export{d as n,a as r,u as t};

View File

@@ -0,0 +1 @@
import{$ as e,Bt as t,G as n,H as r,It as i,Jt as a,K as o,Q as s,Qt as c,R as l,U as u,V as d,Vn as f,Vt as p,W as m,Zt as h,et as g,ln as _,q as v,qn as y,qt as b,tt as x,yn as S,z as C,zn as w,zt as T}from"./index-CjPx3lfT.js";import{a as E,n as D,o as O,r as k,s as A,t as j}from"./dialog-ITi__DUr.js";const M=e=>{let{mutateAsync:n,isPending:r}=S({mutationFn:p,...e||{}}),{mutateAsync:a,isPending:o}=S({mutationFn:t,...e||{}}),{mutateAsync:s,isPending:c}=S({mutationFn:i,...e||{}}),l=e=>t=>{_.promise(e(t),{loading:`提交中...`,success:`操作成功`})};return{enable:l(n),disable:l(a),adminCancel:l(s),enableIsPending:r,disableIsPending:o,cancelIsPending:c}};var N=y(f(),1),P=y(w(),1),F=s({newPassword:e().nonempty({message:`新密码不能为空`}),confirmPassword:e().nonempty({message:`确认密码不能为空`})});function I({open:e,setOpen:t,data:i}){let{mutateAsync:s,isPending:l}=S({mutationFn:a,onSuccess(){t(!1)}}),f=x({resolver:g(F),defaultValues:{newPassword:``,confirmPassword:``}});(0,N.useEffect)(()=>{e&&f.reset()},[e]);let p=e=>{_.promise(s({...e,userId:i.userId??i.id}),{loading:`提交中...`,success:`修改成功`})};return(0,P.jsx)(j,{open:e,onOpenChange:t,children:(0,P.jsxs)(k,{className:`w-[400px]`,children:[(0,P.jsx)(O,{children:(0,P.jsx)(A,{children:`重置密码`})}),(0,P.jsx)(r,{...f,children:(0,P.jsxs)(`form`,{onSubmit:f.handleSubmit(p),className:`space-y-4`,children:[(0,P.jsx)(m,{control:f.control,name:`newPassword`,render:({field:e})=>(0,P.jsxs)(n,{children:[(0,P.jsx)(o,{children:`新密码`}),(0,P.jsx)(u,{children:(0,P.jsx)(d,{...e,type:`password`})}),(0,P.jsx)(v,{})]})}),(0,P.jsx)(m,{control:f.control,name:`confirmPassword`,render:({field:e})=>(0,P.jsxs)(n,{children:[(0,P.jsx)(o,{children:`确认密码`}),(0,P.jsx)(u,{children:(0,P.jsx)(d,{...e,type:`password`})}),(0,P.jsx)(v,{})]})}),(0,P.jsxs)(E,{children:[(0,P.jsx)(D,{asChild:!0,children:(0,P.jsx)(c,{variant:`outline`,children:`取消`})}),(0,P.jsxs)(c,{type:`submit`,disabled:l,children:[l&&(0,P.jsx)(h,{}),`确定`]})]})]})})]})})}const L=e=>{let{mutateAsync:t,isPending:n}=S({mutationFn:e=>e.id?b(e):T(e),...e||{}});return{save:e=>{_.promise(t(e),{loading:`提交中...`,success:`操作成功`})},saveIsPending:n}};var R=`Qaz123567!@#`,z=t=>s({phone:t?e().nonempty({message:`手机号不能为空`}):e().optional(),username:t?e().optional():e().nonempty({message:`用户名不能为空`}),realName:e().nonempty({message:`真实姓名不能为空`})});function B({open:e,setOpen:t,refetch:i,data:a}){let s=(a==null?void 0:a.userId)??(a==null?void 0:a.id),f=(0,N.useMemo)(()=>!s,[s]),p=x({resolver:g((0,N.useMemo)(()=>z(f),[f])),defaultValues:{phone:``,username:``,realName:``}}),_=p.watch(`phone`),{save:y,saveIsPending:b}=L({onSuccess(){t(!1),i==null||i()}});(0,N.useEffect)(()=>{e&&(p.reset(),a&&(p.setValue(`username`,(a==null?void 0:a.username)||``),p.setValue(`realName`,(a==null?void 0:a.realName)||``)))},[e,a,p]);let S=e=>{y({id:s,...e})};return(0,P.jsx)(j,{open:e,onOpenChange:t,children:(0,P.jsxs)(k,{className:`w-[400px]`,children:[(0,P.jsx)(O,{children:(0,P.jsx)(A,{children:f?`创建用户`:`修改用户`})}),(0,P.jsx)(r,{...p,children:(0,P.jsxs)(`form`,{onSubmit:p.handleSubmit(S),className:`space-y-4`,children:[(0,P.jsx)(m,{control:p.control,name:f?`phone`:`username`,render:({field:e})=>(0,P.jsxs)(n,{children:[(0,P.jsx)(o,{children:`手机号`}),(0,P.jsx)(u,{children:(0,P.jsx)(d,{...e})}),(0,P.jsx)(v,{})]})}),(0,P.jsx)(m,{control:p.control,name:`realName`,render:({field:e})=>(0,P.jsxs)(n,{children:[(0,P.jsx)(o,{children:`真实姓名`}),(0,P.jsx)(u,{children:(0,P.jsx)(d,{...e})}),(0,P.jsx)(v,{})]})}),f&&(0,P.jsx)(l,{children:(0,P.jsxs)(C,{children:[(0,P.jsxs)(`div`,{children:[`用户账号:`,_]}),(0,P.jsxs)(`div`,{children:[`初始密码:`,R]})]})}),(0,P.jsxs)(E,{children:[(0,P.jsx)(D,{asChild:!0,children:(0,P.jsx)(c,{variant:`outline`,children:`取消`})}),(0,P.jsxs)(c,{type:`submit`,disabled:b,children:[b&&(0,P.jsx)(h,{}),`确定`]})]})]})})]})})}export{I as n,M as r,B as t};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{t as e}from"./useLocation-CgoDLPeV.js";import{$ as t,G as n,H as r,I as i,K as a,L as o,Q as s,Qt as c,U as l,V as u,W as d,Zt as f,_n as p,en as m,et as h,ln as g,mn as _,nn as v,q as y,qn as b,rt as x,tt as S,un as C,xt as w,yn as T,zn as E}from"./index-CjPx3lfT.js";var D=b(E(),1);function O({className:e,...t}){return(0,D.jsx)(`div`,{"data-slot":`empty`,className:m(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12`,e),...t})}function k({className:e,...t}){return(0,D.jsx)(`div`,{"data-slot":`empty-header`,className:m(`flex max-w-sm flex-col items-center gap-2 text-center`,e),...t})}var A=v(`flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6`}},defaultVariants:{variant:`default`}});function j({className:e,variant:t=`default`,...n}){return(0,D.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":t,className:m(A({variant:t,className:e})),...n})}function M({className:e,...t}){return(0,D.jsx)(`div`,{"data-slot":`empty-title`,className:m(`text-lg font-medium tracking-tight`,e),...t})}var N=s({accessCode:t().length(6,{message:`提取码只能是6位`}).nonempty({message:`提取码不能为空`})}),P=`森睿智传`;function F(){let t=p(),s=S({resolver:h(N),defaultValues:{accessCode:``}}),m=i.useSearch(),{mutateAsync:v,isPending:b}=T({mutationFn:e=>w(e),onSuccess(e,n){t.navigate({to:`/extract/list?accessCode=`+n.accessCode+`&shareId=`+n.shareId})}}),E=e=>{g.promise(v({...m,...e}),{loading:`校验中`,success:`校验通过`})},A=x(),F=e();return!A&&F.pathname===`/extract`?(0,D.jsx)(_,{to:`/login?redirect=`+encodeURIComponent(encodeURIComponent(F.href))}):(0,D.jsx)(`div`,{className:`flex items-center justify-center min-h-screen box-border`,children:(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`div`,{className:`flex justify-center items-center mb-4 gap-2`,children:[(0,D.jsx)(`img`,{src:o,alt:``,className:`size-12 object-contain rounded-full bg-white overflow-hidden`}),(0,D.jsx)(`div`,{className:`text-3xl`,children:P})]}),(0,D.jsxs)(`div`,{className:`w-[480px] p-10 bg-white rounded-xl`,children:[(0,D.jsx)(`div`,{className:`text-center text-2xl`,children:`文件提取`}),m.shareId?(0,D.jsx)(r,{...s,children:(0,D.jsxs)(`form`,{onSubmit:s.handleSubmit(E),className:`space-y-8 mt-12`,children:[(0,D.jsx)(d,{control:s.control,name:`accessCode`,render:({field:e})=>(0,D.jsxs)(n,{children:[(0,D.jsx)(a,{children:`提取码`}),(0,D.jsx)(l,{children:(0,D.jsx)(u,{placeholder:`请输入提取码`,...e})}),(0,D.jsx)(y,{})]})}),(0,D.jsxs)(c,{type:`submit`,className:`w-full`,disabled:b,children:[b&&(0,D.jsx)(f,{}),`提交`]})]})}):(0,D.jsx)(O,{children:(0,D.jsxs)(k,{children:[(0,D.jsx)(j,{variant:`default`,children:(0,D.jsx)(C,{size:24})}),(0,D.jsx)(M,{children:`无效的分享链接`})]})})]})]})})}export{F as component};

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]);export{t};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`file-image`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]),n=e(`file-play`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z`,key:`1tzo1f`}]]),r=e(`file-type`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M11 18h2`,key:`12mj7e`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5`,key:`qbrxap`}]]);export{n,t as r,r as t};

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]);export{t};

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`folder-input`,[[`path`,{d:`M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1`,key:`fm4g5t`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m9 16 3-3-3-3`,key:`6m91ic`}]]);export{t};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{n as e,t}from"./file-category-filter-BmGVvDiP.js";import{t as n}from"./file-DlDBClxy.js";import{t as r}from"./folder-input-lYe4JQ9T.js";import{t as i}from"./folder-DDlXKK_x.js";import{n as a,t as o}from"./remove-file-dialog-DzvgYKQv.js";import{F as s,M as c,Qt as l,Vn as u,ct as d,lt as f,pt as p,qn as m,st as h,tn as g,zn as _}from"./index-CjPx3lfT.js";import{t as v}from"./directory-breadcrumb-BIvEu5Qr.js";import{t as y}from"./data-table-B1a8BMaf.js";import{t as b}from"./pagination-DP8LewWY.js";import{t as x}from"./use-fetch-files-CTmvUeuw.js";import"./dialog-ITi__DUr.js";var S=m(u()),C=m(_());function w({handleChangeParentId:e,handleMove:t,handleRemove:a,handleFilePreview:o}){return[{accessorKey:`fileName`,header:`文件名`,cell:({row:t})=>{var a;return(0,C.jsxs)(`div`,{className:`flex items-center gap-1 break-all cursor-pointer hover:underline hover:text-primary group`,onClick:()=>{var n;(t==null||(n=t.original)==null?void 0:n.fileType)===d.DIRECTORY?e(t==null?void 0:t.original):o(t==null?void 0:t.original)},children:[(t==null||(a=t.original)==null?void 0:a.fileType)===d.FILE?(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(n,{size:18,className:`text-primary`})}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(i,{size:18,className:`text-amber-500 group-hover:hidden`}),(0,C.jsx)(r,{size:18,className:`text-amber-500 group-hover:block hidden`})]}),(0,C.jsx)(`span`,{children:t.getValue(`fileName`)})]})}},{accessorKey:`createTime`,header:`创建日期`,cell:({row:e})=>(0,C.jsx)(`div`,{children:e.getValue(`createTime`)})},{accessorKey:`fileSize`,header:`文件大小`,cell:({row:e})=>(0,C.jsx)(`div`,{children:g(e.getValue(`fileSize`))})},{accessorKey:`fileCategory`,header:`文件种类`,cell:({row:e})=>(0,C.jsx)(`div`,{children:e.original.fileType===d.FILE?s(e.getValue(`fileCategory`)):`-`})},{accessorKey:`fileStatus`,header:()=>(0,C.jsx)(`div`,{className:`text-center`,children:`状态`}),cell:({row:e})=>(0,C.jsx)(`div`,{className:`text-center`,children:(0,C.jsx)(c,{status:e.original.fileStatus})})},{id:`actions`,enableHiding:!1,header:`操作`,cell:({row:e})=>{let n=e.original;return(0,C.jsxs)(`div`,{className:`space-x-2`,children:[(0,C.jsx)(l,{size:`sm`,variant:`destructive`,onClick:()=>a(e.original),children:`删除`}),(0,C.jsx)(l,{size:`sm`,variant:`outline`,onClick:()=>t(e.original),children:`移动`}),n.fileType===d.FILE&&(0,C.jsx)(l,{variant:`outline`,size:`sm`,onClick:()=>{p({code:n.fileCode})},children:`下载`})]})}}]}function T(){let[n,r]=(0,S.useState)(null),[i,s]=(0,S.useState)(!1),c=e=>{r(e),s(!0)},[l,u]=(0,S.useState)(!1),d=e=>{r(e),u(!0)},[p,m]=(0,S.useState)(!1),g=e=>{r(e),m(!0)},[_,T]=(0,S.useState)(`all`),E=(0,S.useMemo)(()=>({rootType:f.INSIDE,fileStatusIn:[h.VALID,h.PARSING,h.TRANSFERING,h.FAILED].join(`,`),fileCategory:_===`all`?void 0:_}),[_]),{openDirectorys:D,changeOpenDirectorys:O,table:k,query:A,reset:j}=x({useColumns:e=>w({handleChangeParentId:e,handleMove:c,handleRemove:d,handleFilePreview:g}),queryKey:[`insideFiles`],params:E});return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(a,{open:i,setOpen:s,data:n,params:E,refetch:A.refetch}),(0,C.jsx)(o,{open:l,setOpen:u,data:n,refetch:A.refetch}),(0,C.jsx)(e,{open:p,setOpen:m,data:n}),(0,C.jsxs)(`div`,{className:`p-4 box-border min-h-full space-y-4`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`div`,{className:`text-lg`,children:`我的接收`}),(0,C.jsx)(`div`,{className:`text-xs text-black/50`,children:`文件传输的状态`})]}),(0,C.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,C.jsx)(t,{fileCategory:_,setFileCategory:T,reset:j})}),(0,C.jsxs)(`div`,{className:`p-4 rounded-lg border bg-white space-y-2`,children:[(0,C.jsx)(v,{directorys:D,onChangeDirectorys:O}),(0,C.jsxs)(`div`,{className:`relative overflow-hidden`,children:[(0,C.jsx)(y,{table:k,query:A}),(0,C.jsx)(b,{table:k,className:`justify-end p-2 sticky bottom-0 left-0 right-0 z-10 bg-white`})]})]})]})]})}export{T as component,w as useColumns};

View File

@@ -0,0 +1 @@
import{t as e}from"./useQuery-Hj7E43Q9.js";import{n as t,t as n}from"./file-category-filter-BmGVvDiP.js";import{t as r}from"./file-DlDBClxy.js";import{t as i}from"./folder-input-lYe4JQ9T.js";import{t as a}from"./folder-DDlXKK_x.js";import{F as o,P as s,Qt as c,Vn as l,ct as u,pt as d,qn as f,tn as p,xt as m,zn as h}from"./index-CjPx3lfT.js";import{t as g}from"./directory-breadcrumb-BIvEu5Qr.js";import{n as _,r as v,t as y}from"./data-table-B1a8BMaf.js";import"./dialog-ITi__DUr.js";var b=f(l(),1);const x=(t,n,r)=>{let[i,a]=(0,b.useState)([]),[o,s]=(0,b.useState)(0),c=e({queryKey:[`shareFileList`,o],queryFn:()=>m({...n,...r,parentId:o}).then(e=>e.data)}),l=e=>{s(e.id),a(t=>[...t,e])},u=t(l);return{parentId:o,handleChangeParentId:l,openDirectorys:i,changeOpenDirectorys:e=>{s(e==null?void 0:e.id),a(t=>{let n=t.findIndex(t=>t.id===(e==null?void 0:e.id));return n>-1?[...t.slice(0,n+1)]:[]})},table:_({data:(c==null?void 0:c.data)||[],columns:u,getCoreRowModel:v()}),query:c,reset:()=>{a([]),s(0)}}};var S=f(h());function C(e,t){return[{accessorKey:`fileName`,header:`文件名`,cell:({row:n})=>{var o;return(0,S.jsxs)(`div`,{className:`flex items-center gap-1 break-all cursor-pointer hover:underline hover:text-primary group`,onClick:()=>{var r;(n==null||(r=n.original)==null?void 0:r.fileType)===u.DIRECTORY?e(n==null?void 0:n.original):t(n==null?void 0:n.original)},children:[(n==null||(o=n.original)==null?void 0:o.fileType)===u.FILE?(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(r,{size:18,className:`text-primary`})}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(a,{size:18,className:`text-amber-500 group-hover:hidden`}),(0,S.jsx)(i,{size:18,className:`text-amber-500 group-hover:block hidden`})]}),(0,S.jsx)(`span`,{children:n.getValue(`fileName`)})]})}},{accessorKey:`createTime`,header:`创建日期`,cell:({row:e})=>(0,S.jsx)(`div`,{children:e.getValue(`createTime`)})},{accessorKey:`fileSize`,header:`文件大小`,cell:({row:e})=>(0,S.jsx)(`div`,{children:p(e.getValue(`fileSize`))})},{accessorKey:`fileCategory`,header:`文件种类`,cell:({row:e})=>(0,S.jsx)(`div`,{children:e.original.fileType===u.FILE?o(e.getValue(`fileCategory`)):`-`})},{id:`actions`,enableHiding:!1,header:`操作`,cell:({row:e})=>{let t=e.original;return(0,S.jsx)(`div`,{className:`space-x-2`,children:t.fileType===u.FILE&&(0,S.jsx)(c,{variant:`outline`,size:`sm`,onClick:()=>{d({code:t.fileCode})},children:`下载`})})}}]}function w(){let e=s.useSearch(),[r,i]=(0,b.useState)(null),[a,o]=(0,b.useState)(!1),c=e=>{i(e),o(!0)},[l,u]=(0,b.useState)(`all`),{table:d,query:f,openDirectorys:p,changeOpenDirectorys:m,reset:h}=x(e=>C(e,c),e,(0,b.useMemo)(()=>({fileCategory:l===`all`?void 0:l}),[l]));return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(t,{open:a,setOpen:o,data:r}),(0,S.jsx)(`div`,{className:`p-4 min-h-screen`,children:(0,S.jsxs)(`div`,{className:`rounded-xl bg-white/50 backdrop-blur-lg min-h-full space-y-4 p-4`,children:[(0,S.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,S.jsx)(n,{fileCategory:l,setFileCategory:u,reset:h})}),(0,S.jsxs)(`div`,{className:`p-4 rounded-lg border bg-white space-y-2`,children:[(0,S.jsx)(g,{directorys:p,onChangeDirectorys:m}),(0,S.jsx)(`div`,{className:`relative overflow-hidden`,children:(0,S.jsx)(y,{table:d,query:f})})]})]})})]})}export{w as component,C as useColumns};

View File

@@ -0,0 +1 @@
import{n as e,t}from"./radio-group-rg4nj-El.js";import{$ as n,G as r,H as i,J as a,K as o,L as s,N as c,Q as l,Qt as u,U as d,Ut as f,V as p,Vn as m,W as h,Wt as g,Zt as _,_n as v,et as y,ln as b,ot as x,q as S,qn as C,tt as w,yn as T,zn as E}from"./index-CjPx3lfT.js";var D=C(m()),O=C(E()),k=l({username:n().min(2,{message:`账号只能是4~16个字符`}),password:n().min(2,{message:`密码只能是4~32个字符`})}),A=`森睿智传`;function j(){let n=v(),[l,m]=(0,D.useState)(null),[C,E]=(0,D.useState)(``),j=w({resolver:y(k),defaultValues:{username:``,password:``}}),M=e=>{x.setState({token:e.data.token}),n.navigate({to:decodeURIComponent(decodeURIComponent(n.state.location.search.redirect||`/`)),replace:!0})},{mutateAsync:N,isPending:P}=T({mutationFn:async e=>{try{return await f(e)}catch(e){var t;if((e==null?void 0:e.code)===`600`&&!(e==null||(t=e.errorData)==null||(t=t.orgs)==null)&&t.length)return{needSelectOrg:!0,...e.errorData};throw e}},onSuccess(e){if(e!=null&&e.needSelectOrg){E(String(e.orgs[0].orgId)),m({tempToken:e.tempToken,orgs:e.orgs});return}M(e)}}),{mutateAsync:F,isPending:I}=T({mutationFn:e=>g(e.tempToken,e.orgId),onSuccess(e){M(e)}}),L=e=>{let t=N({...e,userType:1});b.promise(t,{loading:`登录中...`,success:e=>e!=null&&e.needSelectOrg?`请选择机构`:`登录成功`})};return(0,O.jsx)(`div`,{className:`flex items-center justify-center min-h-screen box-border`,children:(0,O.jsxs)(`div`,{children:[(0,O.jsxs)(`div`,{className:`flex justify-center items-center mb-4 gap-2`,children:[(0,O.jsx)(`img`,{src:s,alt:``,className:`size-12 object-contain rounded-full bg-white overflow-hidden`}),(0,O.jsx)(`div`,{className:`text-3xl`,children:A})]}),(0,O.jsx)(`div`,{className:`w-[480px] p-10 bg-white rounded-xl`,children:l?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:`text-center text-2xl`,children:`选择机构`}),(0,O.jsx)(`div`,{className:`text-center text-sm text-black/50 mt-2`,children:`当前账号属于多个机构,请选择要登录的机构`}),(0,O.jsx)(t,{value:C,onValueChange:E,className:`space-y-1 mt-8`,children:l.orgs.map(t=>(0,O.jsxs)(`div`,{onClick:()=>E(String(t.orgId)),className:`flex items-center gap-3 rounded-lg border p-3 cursor-pointer transition-colors ${C===String(t.orgId)?`border-primary bg-primary/10`:`hover:bg-black/5`}`,children:[(0,O.jsx)(e,{value:String(t.orgId),id:`org-${t.orgId}`}),(0,O.jsxs)(a,{htmlFor:`org-${t.orgId}`,className:`flex items-center gap-2 flex-1 cursor-pointer`,children:[(0,O.jsx)(`span`,{children:t.orgName}),t.administrator&&(0,O.jsx)(c,{variant:`outline`,className:`text-primary border-primary`,children:`管理员`})]})]},t.orgId))}),(0,O.jsxs)(`div`,{className:`space-y-3 mt-8`,children:[(0,O.jsxs)(u,{className:`w-full`,disabled:I||!C,onClick:()=>{if(!C||!l)return;let e=F({tempToken:l.tempToken,orgId:C});b.promise(e,{loading:`登录中...`,success:`登录成功`})},children:[I&&(0,O.jsx)(_,{}),`进入系统`]}),(0,O.jsx)(u,{variant:`outline`,className:`w-full`,disabled:I,onClick:()=>m(null),children:`返回登录`})]})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:`text-center text-2xl`,children:`用户登录`}),(0,O.jsx)(i,{...j,children:(0,O.jsxs)(`form`,{onSubmit:j.handleSubmit(L),className:`space-y-8 mt-12`,children:[(0,O.jsx)(h,{control:j.control,name:`username`,render:({field:e})=>(0,O.jsxs)(r,{children:[(0,O.jsx)(o,{children:`用户名`}),(0,O.jsx)(d,{children:(0,O.jsx)(p,{placeholder:`用户名`,...e})}),(0,O.jsx)(S,{})]})}),(0,O.jsx)(h,{control:j.control,name:`password`,render:({field:e})=>(0,O.jsxs)(r,{children:[(0,O.jsx)(o,{children:`密码`}),(0,O.jsx)(d,{children:(0,O.jsx)(p,{type:`password`,placeholder:`密码`,...e})}),(0,O.jsx)(S,{})]})}),(0,O.jsxs)(u,{type:`submit`,className:`w-full`,disabled:P,children:[P&&(0,O.jsx)(_,{}),`提交`]})]})})]})})]})})}export{j as component};

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{Yt as e}from"./index-CjPx3lfT.js";const t=t=>e.get(`/user/page/platform_user`,{params:t}),n=t=>e.post(`/uc/org/create`,t),r=t=>e.put(`/uc/org/modify`,t),i=t=>e.get(`/uc/org/page`,{params:t});export{r as i,i as n,t as r,n as t};

View File

@@ -0,0 +1 @@
import{n as e,t}from"./file-category-filter-BmGVvDiP.js";import{t as n}from"./file-DlDBClxy.js";import{t as r}from"./folder-input-lYe4JQ9T.js";import{t as i}from"./folder-DDlXKK_x.js";import{n as a,t as o}from"./remove-file-dialog-DzvgYKQv.js";import{F as s,M as c,Qt as l,Vn as u,ct as d,lt as f,pt as p,qn as m,st as h,tn as g,zn as _}from"./index-CjPx3lfT.js";import{t as v}from"./directory-breadcrumb-BIvEu5Qr.js";import{t as y}from"./data-table-B1a8BMaf.js";import{t as b}from"./pagination-DP8LewWY.js";import{t as x}from"./use-fetch-files-CTmvUeuw.js";import"./dialog-ITi__DUr.js";var S=m(u()),C=m(_());function w({handleChangeParentId:e,handleMove:t,handleRemove:a,handleFilePreview:o}){return[{accessorKey:`fileName`,header:`文件名`,cell:({row:t})=>{var a;return(0,C.jsxs)(`div`,{className:`flex items-center gap-1 break-all cursor-pointer hover:underline hover:text-primary group`,onClick:()=>{var n;(t==null||(n=t.original)==null?void 0:n.fileType)===d.DIRECTORY?e(t==null?void 0:t.original):o(t==null?void 0:t.original)},children:[(t==null||(a=t.original)==null?void 0:a.fileType)===d.FILE?(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(n,{size:18,className:`text-primary`})}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(i,{size:18,className:`text-amber-500 group-hover:hidden`}),(0,C.jsx)(r,{size:18,className:`text-amber-500 group-hover:block hidden`})]}),(0,C.jsx)(`span`,{children:t.getValue(`fileName`)})]})}},{accessorKey:`createTime`,header:`创建日期`,cell:({row:e})=>(0,C.jsx)(`div`,{children:e.getValue(`createTime`)})},{accessorKey:`fileSize`,header:`文件大小`,cell:({row:e})=>(0,C.jsx)(`div`,{children:g(e.getValue(`fileSize`))})},{accessorKey:`fileCategory`,header:`文件种类`,cell:({row:e})=>(0,C.jsx)(`div`,{children:e.original.fileType===d.FILE?s(e.getValue(`fileCategory`)):`-`})},{accessorKey:`fileStatus`,header:()=>(0,C.jsx)(`div`,{className:`text-center`,children:`状态`}),cell:({row:e})=>(0,C.jsx)(`div`,{className:`text-center`,children:(0,C.jsx)(c,{status:e.original.fileStatus})})},{id:`actions`,enableHiding:!1,header:`操作`,cell:({row:e})=>{let n=e.original;return(0,C.jsxs)(`div`,{className:`space-x-2`,children:[(0,C.jsx)(l,{size:`sm`,variant:`destructive`,onClick:()=>a(e.original),children:`删除`}),(0,C.jsx)(l,{size:`sm`,variant:`outline`,onClick:()=>t(e.original),children:`移动`}),n.fileType===d.FILE&&(0,C.jsx)(l,{variant:`outline`,size:`sm`,onClick:()=>{p({code:n.fileCode})},children:`下载`})]})}}]}function T(){let[n,r]=(0,S.useState)(null),[i,s]=(0,S.useState)(!1),c=e=>{r(e),s(!0)},[l,u]=(0,S.useState)(!1),d=e=>{r(e),u(!0)},[p,m]=(0,S.useState)(!1),g=e=>{r(e),m(!0)},[_,T]=(0,S.useState)(`all`),E=(0,S.useMemo)(()=>({rootType:f.OUTSIDE,fileStatusIn:[h.VALID,h.PARSING,h.TRANSFERING,h.FAILED].join(`,`),fileCategory:_===`all`?void 0:_}),[_]),{openDirectorys:D,changeOpenDirectorys:O,table:k,query:A,reset:j}=x({useColumns:e=>w({handleChangeParentId:e,handleMove:c,handleRemove:d,handleFilePreview:g}),queryKey:[`outsideFiles`],params:E});return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(a,{open:i,setOpen:s,data:n,params:E,refetch:A.refetch}),(0,C.jsx)(o,{open:l,setOpen:u,data:n,refetch:A.refetch}),(0,C.jsx)(e,{open:p,setOpen:m,data:n}),(0,C.jsxs)(`div`,{className:`p-4 box-border min-h-full space-y-4`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`div`,{className:`text-lg`,children:`我的发送`}),(0,C.jsx)(`div`,{className:`text-xs text-black/50`,children:`文件传输的状态`})]}),(0,C.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,C.jsx)(t,{fileCategory:_,setFileCategory:T,reset:j})}),(0,C.jsxs)(`div`,{className:`p-4 rounded-lg border bg-white space-y-2`,children:[(0,C.jsx)(v,{directorys:D,onChangeDirectorys:O}),(0,C.jsxs)(`div`,{className:`relative overflow-hidden`,children:[(0,C.jsx)(y,{table:k,query:A}),(0,C.jsx)(b,{table:k,className:`justify-end p-2 sticky bottom-0 left-0 right-0 z-10 bg-white`})]})]})]})]})}export{T as component,w as useColumns};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};

View File

@@ -0,0 +1 @@
import{Hn as e}from"./index-CjPx3lfT.js";var t=e(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),n=e(((e,n)=>{var r=t();function i(){}function a(){}a.resetWarningCache=i,n.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}})),r=e(((e,t)=>{t.exports=n()()}));export{r 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

View File

@@ -0,0 +1 @@
import{t as e}from"./app-layout-Dc-t6FXo.js";import{t}from"./shield-alert-D0ogkGSv.js";import{at as n,fn as r,qn as i,zn as a}from"./index-CjPx3lfT.js";import"./dialog-ITi__DUr.js";var o=r(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),s=r(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),c=r(`file-search`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),l=r(`user-round-pen`,[[`path`,{d:`M2 21a8 8 0 0 1 10.821-7.487`,key:`1c8h7z`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}]]),u=r(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),d=i(a()),f=[{title:`单位管理`,url:`/admin/tenant`,icon:(0,d.jsx)(o,{})},{title:`用户管理`,url:`/admin/user`,icon:(0,d.jsx)(l,{})},{title:`上传配置`,url:`/admin/upload-config`,icon:(0,d.jsx)(s,{})},{title:`机构账号`,url:`/admin/org-account`,icon:(0,d.jsx)(u,{})},{title:`记录查询`,url:`/admin/file-record`,icon:(0,d.jsx)(c,{})},{title:`审核`,url:`/admin/console`,icon:(0,d.jsx)(t,{})}],p=[`/admin/tenant`,`/admin/org-account`,`/admin/file-record`];function m(){let t=n();return(0,d.jsx)(e,{menus:f.filter(e=>t||!p.includes(e.url)),isAdmin:!0})}export{m as component};

View File

@@ -0,0 +1 @@
import{t as e}from"./folder-input-lYe4JQ9T.js";import{t}from"./folder-DDlXKK_x.js";import{t as n}from"./app-layout-Dc-t6FXo.js";import{fn as r,qn as i,zn as a}from"./index-CjPx3lfT.js";import"./dialog-ITi__DUr.js";var o=r(`folder-output`,[[`path`,{d:`M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5`,key:`1yk7aj`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m5 10-3 3 3 3`,key:`1r8ie0`}]]),s=r(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),c=r(`recycle`,[[`path`,{d:`M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5`,key:`x6z5xu`}],[`path`,{d:`M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12`,key:`1x4zh5`}],[`path`,{d:`m14 16-3 3 3 3`,key:`f6jyew`}],[`path`,{d:`M8.293 13.596 7.196 9.5 3.1 10.598`,key:`wf1obh`}],[`path`,{d:`m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843`,key:`9tzpgr`}],[`path`,{d:`m13.378 9.633 4.096 1.098 1.097-4.096`,key:`1oe83g`}]]),l=r(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),u=i(a()),d=[{title:`首页`,url:`/`,icon:(0,u.jsx)(s,{})},{title:`我的文件`,url:`/my`,icon:(0,u.jsx)(t,{})},{title:`我的发送`,url:`/outside`,icon:(0,u.jsx)(o,{})},{title:`我的接收`,url:`/inside`,icon:(0,u.jsx)(e,{})},{title:`分享`,url:`/share`,icon:(0,u.jsx)(l,{})},{title:`回收站`,url:`/recycle`,icon:(0,u.jsx)(c,{})}];function f(){return(0,u.jsx)(n,{menus:d})}export{f as component};

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),n=e(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]);export{t as n,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

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]);export{t};

View File

@@ -0,0 +1 @@
import{A as e,Vn as t,Y as n,b as r,en as i,f as a,k as o,qn as s,u as c,zn as l}from"./index-CjPx3lfT.js";import{t as u}from"./dist-BfmPJzXI.js";import{n as d,r as f,t as p}from"./dist-C45nHpjp.js";var m=s(t(),1),h=s(l(),1),g=Object.defineProperty,_=(e,t)=>g(e,`name`,{value:t,configurable:!0}),v={Automatic:`automatic`,Manual:`manual`},y=`Tabs`,[b,x]=o(y,[f]),S=f(),[C,w]=b(y),T=m.forwardRef(_(function(e,t){let{__scopeTabs:i,value:a,onValueChange:o,defaultValue:s,orientation:l=`horizontal`,dir:d,activationMode:f=v.Automatic,...p}=e,m=u(d),[g,_]=c({prop:a,onChange:o,defaultProp:s??``,caller:y});return(0,h.jsx)(C,{scope:i,baseId:r(),value:g,onValueChange:_,orientation:l,dir:m,activationMode:f,children:(0,h.jsx)(n.div,{dir:m,"data-orientation":l,...p,ref:t})})},`Tabs`)),E=`TabsList`,D=m.forwardRef(_(function(e,t){let{__scopeTabs:r,loop:i=!0,...a}=e,o=w(E,r),s=S(r);return(0,h.jsx)(p,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:i,children:(0,h.jsx)(n.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})},`TabsList`)),O=`TabsTrigger`,k=m.forwardRef(_(function(t,r){let{__scopeTabs:i,value:a,disabled:o=!1,...s}=t,c=w(O,i),l=S(i),u=M(c.baseId,a),f=N(c.baseId,a),p=a===c.value;return(0,h.jsx)(d,{asChild:!0,...l,focusable:!o,active:p,children:(0,h.jsx)(n.button,{type:`button`,role:`tab`,"aria-selected":p,"aria-controls":f,"data-state":p?`active`:`inactive`,"data-disabled":o?``:void 0,disabled:o,id:u,...s,ref:r,onMouseDown:e(t.onMouseDown,e=>{!o&&e.button===0&&e.ctrlKey===!1?(e.currentTarget.focus(),c.onValueChange(a)):e.preventDefault()}),onKeyDown:e(t.onKeyDown,e=>{o||e.target!==e.currentTarget||[` `,`Enter`].includes(e.key)&&c.onValueChange(a)}),onFocus:e(t.onFocus,()=>{let e=c.activationMode!==v.Manual;!p&&!o&&e&&c.onValueChange(a)})})})},`TabsTrigger`)),A=`TabsContent`,j=m.forwardRef(_(function(e,t){let{__scopeTabs:r,value:i,forceMount:o,children:s,...c}=e,l=w(A,r),u=M(l.baseId,i),d=N(l.baseId,i),f=i===l.value,p=m.useRef(f);return m.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(a,{present:o||f,children:({present:r})=>(0,h.jsx)(n.div,{"data-state":f?`active`:`inactive`,"data-orientation":l.orientation,role:`tabpanel`,"aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:r&&s})})},`TabsContent`));function M(e,t){return`${e}-trigger-${t}`}_(M,`makeTriggerId`);function N(e,t){return`${e}-content-${t}`}_(N,`makeContentId`);function P({className:e,...t}){return(0,h.jsx)(T,{"data-slot":`tabs`,className:i(`flex flex-col gap-2`,e),...t})}function F({className:e,...t}){return(0,h.jsx)(D,{"data-slot":`tabs-list`,className:i(`bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]`,e),...t})}function I({className:e,...t}){return(0,h.jsx)(k,{"data-slot":`tabs-trigger`,className:i(`data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...t})}function L({className:e,...t}){return(0,h.jsx)(j,{"data-slot":`tabs-content`,className:i(`flex-1 outline-none`,e),...t})}export{I as i,L as n,F as r,P as t};

View File

@@ -0,0 +1 @@
import{t as e}from"./useQuery-Hj7E43Q9.js";import{t}from"./plus-CC0y9Hxa.js";import{$ as n,G as r,H as i,K as a,Q as o,Qt as s,R as c,U as l,V as u,Vn as d,W as f,Zt as p,et as m,ln as h,q as g,qn as _,tt as v,yn as y,z as b,zn as x}from"./index-CjPx3lfT.js";import{n as S,r as C,t as w}from"./data-table-B1a8BMaf.js";import{t as T}from"./pagination-DP8LewWY.js";import{a as E,n as D,o as O,r as k,s as A,t as j}from"./dialog-ITi__DUr.js";import{i as M,n as N,t as P}from"./org-djpHv-g6.js";var F=_(d(),1);const I=t=>{var n,r,i;let[a,o]=(0,F.useState)({pageIndex:0,pageSize:10}),s=e({queryKey:[`orgList`,a],queryFn:()=>N({pageSize:a.pageSize,pageNo:a.pageIndex+1}).then(e=>e.data)}),c=t();return{pagination:a,table:S({data:(s==null||(n=s.data)==null?void 0:n.entityList)||[],columns:c,getCoreRowModel:C(),manualPagination:!1,rowCount:(s==null||(r=s.data)==null?void 0:r.totalCount)||0,pageCount:(s==null||(i=s.data)==null?void 0:i.pageCount)||0,onPaginationChange:o,autoResetPageIndex:!1,state:{pagination:a}}),query:s}},L=e=>{let{mutateAsync:t,isPending:n}=y({mutationFn:e=>e.id?M(e):P({...e,parentId:1}),...e||{}});return{save:e=>{h.promise(t(e),{loading:`提交中...`,success:`操作成功`})},saveIsPending:n}};var R=_(x(),1),z=`Qaz123567!@#`,B=o({orgName:n().nonempty({message:`单位名称不能为空`}),type:n().nonempty({message:`单位类型不能为空`}),phone:n().nonempty({message:`管理员手机号不能为空`}),realName:n().nonempty({message:`管理员姓名不能为空`})});function V({open:e,setOpen:t,data:n,refetch:o}){let d=v({resolver:m(B),defaultValues:{orgName:``,type:`3`,phone:``,realName:``}}),{save:h,saveIsPending:_}=L({onSuccess(){t(!1),o==null||o()}});(0,F.useEffect)(()=>{e&&(d.reset(),n&&(d.setValue(`orgName`,n.orgName),d.setValue(`type`,n.type),d.setValue(`phone`,n.phone),d.setValue(`realName`,n.realName)))},[e]);let y=d.watch(`phone`),x=(0,F.useMemo)(()=>!(n!=null&&n.id),[n]),S=e=>{h({...e,id:n==null?void 0:n.id})};return(0,R.jsx)(j,{open:e,onOpenChange:t,children:(0,R.jsxs)(k,{className:`w-[400px]`,children:[(0,R.jsx)(O,{children:(0,R.jsx)(A,{children:x?`创建单位`:`修改单位`})}),(0,R.jsx)(i,{...d,children:(0,R.jsxs)(`form`,{onSubmit:d.handleSubmit(S),className:`space-y-4`,children:[(0,R.jsx)(f,{control:d.control,name:`orgName`,render:({field:e})=>(0,R.jsxs)(r,{children:[(0,R.jsx)(a,{children:`单位名称`}),(0,R.jsx)(l,{children:(0,R.jsx)(u,{...e})}),(0,R.jsx)(g,{})]})}),(0,R.jsx)(f,{control:d.control,name:`realName`,render:({field:e})=>(0,R.jsxs)(r,{children:[(0,R.jsx)(a,{children:`管理员姓名`}),(0,R.jsx)(l,{children:(0,R.jsx)(u,{...e})}),(0,R.jsx)(g,{})]})}),(0,R.jsx)(f,{control:d.control,name:`phone`,render:({field:e})=>(0,R.jsxs)(r,{children:[(0,R.jsx)(a,{children:`管理员手机号`}),(0,R.jsx)(l,{children:(0,R.jsx)(u,{...e})}),(0,R.jsx)(g,{})]})}),x&&(0,R.jsx)(c,{children:(0,R.jsxs)(b,{children:[(0,R.jsxs)(`div`,{children:[`管理员账号:`,y]}),(0,R.jsxs)(`div`,{children:[`初始密码:`,z]})]})}),(0,R.jsxs)(E,{children:[(0,R.jsx)(D,{asChild:!0,children:(0,R.jsx)(s,{variant:`outline`,children:`取消`})}),(0,R.jsxs)(s,{type:`submit`,disabled:_,children:[_&&(0,R.jsx)(p,{}),`确定`]})]})]})})]})})}function H({handleEditOrg:e}){return[{accessorKey:`orgName`,header:`单位名称`,cell:({row:e})=>(0,R.jsx)(`div`,{children:e.getValue(`orgName`)})},{accessorKey:`realName`,header:`管理员姓名`,cell:({row:e})=>(0,R.jsx)(`div`,{children:e.getValue(`realName`)})},{accessorKey:`phone`,header:`管理员手机号`,cell:({row:e})=>(0,R.jsx)(`div`,{children:e.getValue(`phone`)})},{accessorKey:`createTime`,header:`创建日期`,cell:({row:e})=>(0,R.jsx)(`div`,{children:e.getValue(`createTime`)})}]}function U(){let[e,n]=(0,F.useState)(null),[r,i]=(0,F.useState)(!1),a=e=>{n(e),i(!0)},{table:o,query:c}=I(()=>H({handleEditOrg:a}));return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(V,{open:r,setOpen:i,data:e,refetch:c==null?void 0:c.refetch}),(0,R.jsxs)(`div`,{className:`p-4 box-border min-h-full space-y-4`,children:[(0,R.jsxs)(`div`,{children:[(0,R.jsx)(`div`,{className:`text-lg`,children:`单位管理`}),(0,R.jsx)(`div`,{className:`text-xs text-black/50`,children:`管理单位信息`})]}),(0,R.jsxs)(`div`,{className:`p-4 rounded-lg border bg-white space-y-2`,children:[(0,R.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,R.jsxs)(s,{onClick:()=>a(),children:[(0,R.jsx)(t,{}),`新增`]})}),(0,R.jsxs)(`div`,{className:`relative overflow-hidden`,children:[(0,R.jsx)(w,{table:o,query:c}),(0,R.jsx)(T,{table:o,className:`justify-end p-2 sticky bottom-0 left-0 right-0 z-10 bg-white`})]})]})]})]})}export{U as component,H as useColumns};

View File

@@ -0,0 +1 @@
import{Vn as e,en as t,qn as n,zn as r}from"./index-CjPx3lfT.js";e();var i=n(r(),1);function a({className:e,...n}){return(0,i.jsx)(`textarea`,{"data-slot":`textarea`,className:t(`border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),...n})}export{a as t};

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]);export{t};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{t as e}from"./useQuery-Hj7E43Q9.js";import{Vn as t,ht as n,qn as r,ut as i}from"./index-CjPx3lfT.js";import{n as a,r as o}from"./data-table-B1a8BMaf.js";var s=r(t(),1);const c=({useColumns:t,queryKey:r,params:c})=>{var l,u,d;let[f,p]=(0,s.useState)([]),[m,h]=(0,s.useState)(0),[g,_]=(0,s.useState)({pageIndex:0,pageSize:10}),v=e({queryKey:[...r,g,m,c],queryFn:()=>n({parentId:m||0,pageSize:g.pageSize,pageNo:g.pageIndex+1,...c}).then(e=>e.data),refetchInterval:e=>{var t;return((e==null||(t=e.state)==null||(t=t.data)==null?void 0:t.entityList)||[]).some(e=>e.securityStatus===i.SCANNING)?2e3:!1}}),y=e=>{h(e.id),x.setPageIndex(0),p(t=>[...t,e])},b=t(y),x=a({data:(v==null||(l=v.data)==null?void 0:l.entityList)||[],columns:b,getCoreRowModel:o(),manualPagination:!1,rowCount:(v==null||(u=v.data)==null?void 0:u.totalCount)||0,pageCount:(v==null||(d=v.data)==null?void 0:d.pageCount)||0,onPaginationChange:_,autoResetPageIndex:!1,state:{pagination:g}});return{parentId:m,setParentId:h,handleChangeParentId:y,openDirectorys:f,changeOpenDirectorys:e=>{h(e==null?void 0:e.id),x.setPageIndex(0),p(t=>{let n=t.findIndex(t=>t.id===(e==null?void 0:e.id));return n>-1?[...t.slice(0,n+1)]:[]})},pagination:g,table:x,query:v,reset:()=>{h(0),x.setPageIndex(0),p([])}}};export{c as t};

View File

@@ -0,0 +1 @@
import{t as e}from"./useQuery-Hj7E43Q9.js";import{Yt as t}from"./index-CjPx3lfT.js";const n=()=>{let{data:n}=e({queryKey:[`securityEnabled`],queryFn:()=>t.get(`/file_security/enabled`).then(e=>e.data),staleTime:300*1e3});return{securityEnabled:!!n}};export{n as t};

View File

@@ -0,0 +1 @@
import{t as e}from"./useQuery-Hj7E43Q9.js";import{Yt as t}from"./index-CjPx3lfT.js";const n=()=>t.get(`/upload_config/info`),r=e=>t.post(`/upload_config/modify`,e),i=e=>t.get(`/upload_config/check`,{params:e}),a=()=>e({queryKey:[`uploadConfig`],queryFn:()=>n().then(e=>e==null?void 0:e.data)}),o=e=>{var t;if(!(!e||e.allowAllType||!((t=e.allowedSuffixes)!=null&&t.length)))return e.allowedSuffixes.map(e=>`.${String(e).replace(/^\.+/,``).toLowerCase()}`).join(`,`)},s=e=>{if(e!=null&&e.maxFileSize&&e.maxFileSize>0)return e.maxFileSize*1024*1024};export{r as a,i,s as n,a as r,o as t};

View File

@@ -0,0 +1 @@
import{_n as e,gn as t,hn as n,vn as r}from"./index-CjPx3lfT.js";function i(r){let i=e();return t(i.stores.location,n(r,i))}export{i as t};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{fn as e}from"./index-CjPx3lfT.js";var t=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t};

File diff suppressed because one or more lines are too long