Files
senmesh-zc/deployment/iw/web/assets/dist-CpxP8T7M.js
KodouWZF d39b3b035d 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。
2026-11-04 21:44:56 +08:00

1 line
8.5 KiB
JavaScript

import{Fn as e,Ln as t,Pn as n,Vn as r,an as i,j as a,k as o,qn as s,sn as c,zn as l}from"./index-BaTxSAlR.js";var u=s(r(),1),d=s(l(),1),f,p,m=Object.defineProperty,h=(e,t)=>m(e,`name`,{value:t,configurable:!0});function g(e){let t=e+`CollectionProvider`,[n,r]=o(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=h(e=>{let{scope:t,children:n}=e,r=u.useRef(null),i=u.useRef(new Map).current;return(0,d.jsx)(a,{scope:t,itemMap:i,collectionRef:r,children:n})},`CollectionProvider`);l.displayName=t;let f=e+`CollectionSlot`,p=i(f),m=u.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,d.jsx)(p,{ref:c(t,s(f,n).collectionRef),children:r})});m.displayName=f;let g=e+`CollectionItemSlot`,_=`data-radix-collection-item`,v=i(g),y=u.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=u.useRef(null),o=c(t,a),l=s(g,n);return u.useEffect(()=>(l.itemMap.set(a,{ref:a,...i}),()=>void l.itemMap.delete(a))),(0,d.jsx)(v,{[_]:``,ref:o,children:r})});y.displayName=g;function b(t){let n=s(e+`CollectionConsumer`,t);return u.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${_}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return h(b,`useCollection`),[{Provider:l,Slot:m,ItemSlot:y},b,r]}h(g,`createCollection`);var _=new WeakMap,v=(f=new WeakMap,p=class r extends Map{constructor(e){super(e),t(this,f,void 0),n(f,this,[...super.keys()]),_.set(this,!0)}set(t,n){return _.get(this)&&!this.has(t)&&e(f,this).push(t),super.set(t,n),this}insert(t,n,r){let i=this.has(n),a=i?this.size:this.size+1,o=x(t),s=o>=0?Math.min(o,a-1):Math.max(a+o,0);if(i?e(f,this).indexOf(n)===s:s===this.size)return this.set(n,r),this;let c=e(f,this).filter(e=>e!==n);c.splice(s,0,n);let l=c.map(e=>[e,e===n?r:this.get(e)]);this.clear();for(let[e,t]of l)this.set(e,t);return this}with(e,t,n){let i=new r(this);return i.insert(e,t,n),i}before(t){let n=e(f,this).indexOf(t)-1;if(!(n<0))return this.entryAt(n)}setBefore(t,n,r){let i=e(f,this).indexOf(t);if(i===-1)return this;let a=e(f,this).indexOf(n),o=a!==-1&&a<i?i-1:i;return this.insert(o,n,r)}after(t){let n=e(f,this).indexOf(t);if(n=n===-1||n===this.size-1?-1:n+1,n!==-1)return this.entryAt(n)}setAfter(t,n,r){let i=e(f,this).indexOf(t);if(i===-1)return this;let a=e(f,this).indexOf(n),o=a!==-1&&a<=i?i:i+1;return this.insert(o,n,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return n(f,this,[]),super.clear()}delete(t){let n=super.delete(t);return n&&e(f,this).splice(e(f,this).indexOf(t),1),n}deleteAt(e){let t=this.keyAt(e);return t===void 0?!1:this.delete(t)}at(t){let n=y(e(f,this),t);if(n!==void 0)return this.get(n)}entryAt(t){let n=y(e(f,this),t);if(n!==void 0)return[n,this.get(n)]}indexOf(t){return e(f,this).indexOf(t)}keyAt(t){return y(e(f,this),t)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(e,t){let n=[],i=0;for(let r of this)Reflect.apply(e,t,[r,i,this])&&n.push(r),i++;return new r(n)}map(e,t){let n=[],i=0;for(let r of this)n.push([r[0],Reflect.apply(e,t,[r,i,this])]),i++;return new r(n)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);return new r([...this.entries()].sort(e))}toReversed(){let e=new r;for(let t=this.size-1;t>=0;t--){let n=this.keyAt(t),r=this.get(n);e.set(n,r)}return e}toSpliced(...e){let t=[...this.entries()];return t.splice(...e),new r(t)}slice(t,n){let i=new r;for(let r of e(f,this).slice(t,n))i.set(r,this.get(r));return i}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}},h(p,`OrderedDict`),p);function y(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=b(e,t);return n===-1?void 0:e[n]}h(y,`at`);function b(e,t){let n=e.length,r=x(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}h(b,`toSafeIndex`);function x(e){return e!==e||e===0?0:Math.trunc(e)}h(x,`toSafeInteger`);function S(e){let t=e+`CollectionProvider`,[n,r]=o(t),[s,l]=n(t);s.displayName=e+`CollectionStableContextProvider`;let[f,p]=n(t);f.displayName=e+`CollectionStatefulContextProvider`;let m=h(({state:e,...t})=>e?(0,d.jsx)(_,{...t,state:e}):(0,d.jsx)(g,{...t}),`CollectionProvider`);m.displayName=t;let g=h(e=>{let t=k();return(0,d.jsx)(_,{...e,state:t})},`CollectionInit`);g.displayName=e+`CollectionInit`;let _=h(e=>{let{scope:t,children:n,state:r}=e,i=u.useRef(null),[a,o]=u.useState(null),l=c(i,o),[p,m]=r,h=u.useRef(new v),g=u.useCallback(()=>{let e=h.current;return T(e)||e.sort(E),e},[]);return u.useEffect(()=>{if(!a)return;let e=D(()=>{m(e=>{let t=e.toSorted(E);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a,m]),(0,d.jsx)(s,{scope:t,collectionElementRef:l,collectionElementRefObject:i,getCollection:g,setCollection:m,registryRef:h,children:(0,d.jsx)(f,{scope:t,collectionElement:a,collection:p,children:n})})},`CollectionProviderImpl`);_.displayName=e+`CollectionProviderImpl`;let y=e+`CollectionSlot`,b=i(y),x=u.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,d.jsx)(b,{ref:c(t,l(y,n).collectionElementRef),children:r})});x.displayName=y;let S=e+`CollectionItemSlot`,w=i(S),O=u.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=u.useRef(null),{setCollection:s,registryRef:f}=l(S,n),p=u.useRef(i);C(p.current,i)||(p.current=i);let m=p.current,h=c(t,u.useCallback(e=>{let t=f.current;e?t.set(e,{...p.current,element:e}):o.current&&t.delete(o.current)},[f]),o);a(()=>{let e=o.current,t=f.current;e&&t.has(e)&&t.set(e,{...m,element:e})},[m,f]);let g=u.useRef(null);return u.useEffect(()=>{let e=o.current,t=g.current;((t==null?void 0:t.element)??null)===e&&(!e||(t==null?void 0:t.itemData)===m)||(g.current=e?{element:e,itemData:m}:null,s(n=>{let r=new v(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...m,element:e}),r.sort(E)}))}),u.useEffect(()=>()=>{let e=g.current;g.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new v(t);return n.delete(e.element),n})},[s]),(0,d.jsx)(w,{"data-radix-collection-item":``,ref:h,children:r})});O.displayName=S;function k(){return u.useState(new v)}h(k,`useInitCollection`);function A(t){let{collection:n}=p(e+`CollectionConsumer`,t);return n}h(A,`useCollection`);function j(t){let{getCollection:n}=l(e+`CollectionConsumer`,t);return n}return h(j,`useGetCollection`),[{Provider:m,Slot:x,ItemSlot:O},{createCollectionScope:r,useCollection:A,useGetCollection:j,useInitCollection:k}]}h(S,`createCollection`);function C(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}h(C,`shallowEqual`);function w(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}h(w,`isElementPreceding`);function T(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}h(T,`isInDocumentOrder`);function E(e,t){return!e[1].element||!t[1].element?0:w(e[1].element,t[1].element)?-1:1}h(E,`sortByDocumentPosition`);function D(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}h(D,`getChildListObserver`);var O=Object.defineProperty,k=(e,t)=>O(e,`name`,{value:t,configurable:!0}),A={LTR:`ltr`,RTL:`rtl`},j=u.createContext(void 0);function M(e){let t=u.useContext(j);return e||t||A.LTR}k(M,`useDirection`);export{g as n,M as t};