comp-hub 0.28.3 → 0.28.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +17 -17
- package/dist/website/container/assets/index-DW_KDaXl.js +14 -0
- package/dist/website/container/index.html +1 -1
- package/dist/website/item/assets/{index-s-KzvBKE.js → index-Cqs5iLeY.js} +19 -19
- package/dist/website/item/index.html +1 -1
- package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js +1 -0
- package/dist/website/main/assets/{BaseDialog.vue_vue_type_script_setup_true_lang-CgV6_zzd.js → BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js} +1 -1
- package/dist/website/main/assets/{BaseSegmented.vue_vue_type_script_setup_true_lang-CW16Y3Jx.js → BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js} +1 -1
- package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-BZ55pr6b.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-Xr4R8ONt.js} +1 -1
- package/dist/website/main/assets/{EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CofI0Rvq.js → EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js} +1 -1
- package/dist/website/main/assets/{LoadingWrapper.vue_vue_type_script_setup_true_lang-bBtkKtmz.js → LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js} +1 -1
- package/dist/website/main/assets/{PanelBackground.vue_vue_type_script_setup_true_lang-DBIlZFl0.js → PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js} +1 -1
- package/dist/website/main/assets/{cloud-upload-BRjLuSi4.js → cloud-upload-Cdco6849.js} +1 -1
- package/dist/website/main/assets/{core-B1GcTOER.js → core-CcVTMiBP.js} +1 -1
- package/dist/website/main/assets/{el-table-column-8qfe8CVK.js → el-table-column-CGzXlVpD.js} +1 -1
- package/dist/website/main/assets/{home-rounded-8qNxvN2I.js → home-rounded-BhKYWFxg.js} +1 -1
- package/dist/website/main/assets/{index-Crr7YnOX.js → index-9E0N8vk2.js} +1 -1
- package/dist/website/main/assets/index-B8QVBEgQ.js +1 -0
- package/dist/website/main/assets/index-BEVcnNvI.js +1 -0
- package/dist/website/main/assets/index-BGYcKO_k.js +2 -0
- package/dist/website/main/assets/index-BHUDEWGt.js +1 -0
- package/dist/website/main/assets/{index-C057ePT_.js → index-BMSnGhSG.js} +2 -2
- package/dist/website/main/assets/index-BVcp4iEn.js +1 -0
- package/dist/website/main/assets/{index-CVcB9iso.js → index-BYC9CuLh.js} +1 -1
- package/dist/website/main/assets/index-BblV7ZcF.js +1 -0
- package/dist/website/main/assets/{index-0Y9kW7YJ.js → index-BoIy-5_p.js} +1 -1
- package/dist/website/main/assets/index-BqUY_Pbs.js +1 -0
- package/dist/website/main/assets/index-BwgqBNRu.js +1 -0
- package/dist/website/main/assets/index-CG7uKVdX.js +1 -0
- package/dist/website/main/assets/{index-DoTR7Juh.css → index-CNqahi2L.css} +1 -1
- package/dist/website/main/assets/index-Cc3zDN4S.js +1 -0
- package/dist/website/main/assets/{index-C7fXvVHu.js → index-CdLdwW7r.js} +14 -14
- package/dist/website/main/assets/index-CsUtZbBp.js +1 -0
- package/dist/website/main/assets/index-D6MA33Hi.js +1 -0
- package/dist/website/main/assets/index-DGaY7dL7.js +4 -0
- package/dist/website/main/assets/{index-Bszb87gP.js → index-DbmFA7Z2.js} +1 -1
- package/dist/website/main/assets/index-Dd8ha0TC.js +1 -0
- package/dist/website/main/assets/{index-DBfCLdC1.js → index-Dfkpa19a.js} +1 -1
- package/dist/website/main/assets/index-Diq3BceD.js +1 -0
- package/dist/website/main/assets/index-DkakQhTy.js +1 -0
- package/dist/website/main/assets/index-Dz2nPzxk.js +1 -0
- package/dist/website/main/assets/{index-Bii_v9I4.js → index-RcR0UXkh.js} +1 -1
- package/dist/website/main/assets/index-VFwGpUE-.css +1 -0
- package/dist/website/main/assets/index-X1ZIWbVW.js +2 -0
- package/dist/website/main/assets/index-bdWvkmhc.js +1 -0
- package/dist/website/main/assets/{index-C63BGiej.js → index-qSRqezAW.js} +1 -1
- package/dist/website/main/assets/index-qsIY_6aA.js +1 -0
- package/dist/website/main/assets/index-rWF_BNTH.js +1 -0
- package/dist/website/main/assets/index-tKPA5N_x.js +1 -0
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BaI6O6oA.js → index.vue_vue_type_script_setup_true_lang-BYKlY94g.js} +1 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CCaH-GEy.js +1 -0
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-DX9EV5b8.js → index.vue_vue_type_script_setup_true_lang-CgaIiyg6.js} +1 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-DPbqR98S.js +1 -0
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js +2 -0
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-DtCu4Izc.js +1 -0
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-mgCeAY0j.js → index.vue_vue_type_script_setup_true_lang-DzvWwe2g.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-BWgZeYuy.js → index.vue_vue_type_style_index_0_lang-1ZphBFBL.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-BwvfJhL1.js → index.vue_vue_type_style_index_0_lang-BNPcBMvg.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-Bdg4OOHe.js → index.vue_vue_type_style_index_0_lang-CwaGkvXy.js} +1 -1
- package/dist/website/main/assets/{kid-star-Cr1NlTdT.js → kid-star-DD-9HSxX.js} +1 -1
- package/dist/website/main/assets/{md5-DzJRYP5-.js → md5-ohq5q_Pj.js} +1 -1
- package/dist/website/main/assets/{settings-BFJXTJ9K.js → settings-f8ZwrSyv.js} +1 -1
- package/dist/website/main/assets/{supervised-user-circle-Bnx5icEm.js → supervised-user-circle-C6l0wkza.js} +1 -1
- package/dist/website/main/assets/{sync-saved-locally-rounded-DtyOT0dw.js → sync-saved-locally-rounded-Cgz-NvDy.js} +1 -1
- package/dist/website/main/assets/{terminal-D72IJB2N.js → terminal-DIdElzFh.js} +1 -1
- package/dist/website/main/assets/{useCacheOssStore-DApHt9lQ.js → useCacheOssStore-OAoLDVbw.js} +1 -1
- package/dist/website/main/assets/{useCompEditStore-CYWCa5kU.js → useCompEditStore-DI3vFtGm.js} +166 -166
- package/dist/website/main/assets/{useCompEditStore-CY1OeGL8.css → useCompEditStore-EVZp94pg.css} +1 -1
- package/dist/website/main/assets/{useCompMetaLocalStore-eE-CBcE9.js → useCompMetaLocalStore-BKTMp_k8.js} +1 -1
- package/dist/website/main/assets/{useKeyword-B6suFutt.js → useKeyword-bWHMALoZ.js} +1 -1
- package/dist/website/main/assets/{useMessage-B_QbO-NO.js → useMessage-BVw3M4ej.js} +1 -1
- package/dist/website/main/assets/{useTeamHeaders-Cc060CP0.js → useTeamHeaders-DxHN7-t0.js} +1 -1
- package/dist/website/main/assets/useVscodeOpen-SZpyzVHG.js +1 -0
- package/dist/website/main/assets/vendor-core-BKehvho7.js +3 -0
- package/dist/website/main/assets/{vendor-ui-DXwyveTF.js → vendor-ui-CGT0cG1n.js} +2 -2
- package/dist/website/main/index.html +5 -4
- package/package.json +1 -1
- package/dist/website/container/assets/index-DJHapE1V.js +0 -14
- package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-C2LcEFL4.js +0 -1
- package/dist/website/main/assets/index-2gSE6zIr.js +0 -1
- package/dist/website/main/assets/index-B5E28bYj.js +0 -1
- package/dist/website/main/assets/index-BUnPcap8.js +0 -4
- package/dist/website/main/assets/index-BYggsmzn.js +0 -1
- package/dist/website/main/assets/index-B_dBAWT4.js +0 -2
- package/dist/website/main/assets/index-BeN2bdeg.js +0 -1
- package/dist/website/main/assets/index-BhW9quqy.js +0 -1
- package/dist/website/main/assets/index-BhvFP_tJ.js +0 -1
- package/dist/website/main/assets/index-C7ChQ1lq.js +0 -2
- package/dist/website/main/assets/index-CDnNjG3p.css +0 -1
- package/dist/website/main/assets/index-CEi5bhOk.js +0 -1
- package/dist/website/main/assets/index-COVvlML8.js +0 -1
- package/dist/website/main/assets/index-CU7M0IJJ.js +0 -1
- package/dist/website/main/assets/index-CbJoAuov.js +0 -1
- package/dist/website/main/assets/index-DEPscuQs.js +0 -1
- package/dist/website/main/assets/index-DF1giQNh.js +0 -1
- package/dist/website/main/assets/index-DKPlBqE0.js +0 -1
- package/dist/website/main/assets/index-DRSvKvKa.js +0 -1
- package/dist/website/main/assets/index-DUgSkj2j.js +0 -1
- package/dist/website/main/assets/index-G0P-dulE.js +0 -1
- package/dist/website/main/assets/index-I02ydx0r.js +0 -1
- package/dist/website/main/assets/index-IyiuGctN.js +0 -1
- package/dist/website/main/assets/index-JxbnKk2u.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-C5v5wKQi.js +0 -2
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CrwTpowX.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-DmGfa_ki.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-LVKGPS7z.js +0 -1
- package/dist/website/main/assets/useVscodeOpen-Ckh-vPor.js +0 -1
- package/dist/website/main/assets/vendor-core-CzvSW5ae.js +0 -3
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
console.error("解析 URL 参数失败", error);
|
|
21
21
|
}
|
|
22
22
|
</script>
|
|
23
|
-
<script type="module" crossorigin src="/item/assets/index-
|
|
23
|
+
<script type="module" crossorigin src="/item/assets/index-Cqs5iLeY.js"></script>
|
|
24
24
|
<link rel="stylesheet" crossorigin href="/item/assets/index-BWvMfSxu.css">
|
|
25
25
|
</head>
|
|
26
26
|
|
package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as w}from"./vendor-ui-CGT0cG1n.js";import{v as x,aA as h,a4 as y,ab as C,j as b,aO as r,r as _,ax as u,X as g,q as B,ap as k,af as I,g as S}from"./vendor-core-BKehvho7.js";import{_ as T}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";const q=x({inheritAttrs:!1,__name:"AuthCodeSendBtn",props:{type:{default:"primary"},disabled:{type:Boolean,default:!1},text:{default:""},countdownText:{default:""},duration:{default:60}},emits:["send","finish"],setup(o,{expose:d,emit:i}){const{t:c}=h(),a=o,s=i,e=I(0);let t=null;const f=S(()=>e.value>0?c(a.countdownText,{n:e.value.toString()}):a.text),l=()=>{e.value=a.duration,t=window.setInterval(()=>{e.value--,e.value<=0&&(clearInterval(t),t=null,s("finish"))},1e3)},p=async n=>{a.disabled||e.value>0||(n.start(),s("send",{end:n.end,startCountdown:l}))};return y(()=>{t&&(clearInterval(t),t=null)}),d({startCountdown:l,getCountdown:()=>e.value}),(n,A)=>(C(),b(u(T),null,{default:r(({instance:m,loading:v})=>[_(u(w),g(n.$attrs,{type:o.type??"default",loading:v,disabled:o.disabled||e.value>0,class:"whitespace-nowrap",onClick:$=>p(m)}),{default:r(()=>[B(k(f.value),1)]),_:1},16,["type","loading","disabled","onClick"])]),_:1}))}});export{q as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aC as n,q as c}from"./vendor-ui-
|
|
1
|
+
import{aC as n,q as c}from"./vendor-ui-CGT0cG1n.js";import{v as p,ab as m,j as u,al as l,B as f,ax as d,g,y as i}from"./vendor-core-BKehvho7.js";const y=p({__name:"BaseDialog",setup(_){const a=i(),t=n(),o={modal:!0,appendToBody:!0,draggable:!0},s=g(()=>({...o,...t}));function r(e){a&&(a.exposed=e||{},a.exposeProxy=e||{})}return(e,x)=>(m(),u(l(f(d(c),{...s.value,ref:r},e.$slots))))}});export{y as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as d}from"./vendor-ui-
|
|
1
|
+
import{V as d}from"./vendor-ui-CGT0cG1n.js";import{v as p,aB as i,ay as c,aE as f,ab as V,j as _,p as g,ah as v,aO as S,ai as B,_ as k,A as x,X as A,ax as t,g as P}from"./vendor-core-BKehvho7.js";const j=p({inheritAttrs:!1,__name:"BaseSegmented",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(o){const s=i(o,"modelValue"),r=c(),l=f(),n=P(()=>Object.keys(l));return(m,a)=>(V(),_(t(d),A({modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value=e)},t(r)),g({_:2},[v(n.value,e=>({name:e,fn:S(u=>[B(m.$slots,e,k(x(u)))])}))]),1040,["modelValue"]))}});export{j as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as w}from"./index-
|
|
1
|
+
import{M as w}from"./index-CdLdwW7r.js";import{ag as S,aF as m,aA as n}from"./vendor-ui-CGT0cG1n.js";import{v as g,aF as y,a7 as M,a9 as b,ab as T,l as D,i as _,af as R}from"./vendor-core-BKehvho7.js";const A={class:"w-full h-full"},P={ref:"canvas",class:"w-full h-full bg-[#333436]"},B=g({__name:"CanvasAnimation",setup(C){const d=y("canvas"),o=R(!1);let h=null;class x{rangeR;r;rSpeed;cvs;ctx;x;y;xSpeed;ySpeed;lastMoveTime;fillStyle;maxTimeDiff=100;constructor({cvs:t,ctx:i}){this.rangeR=[3,7],this.r=n(this.rangeR[0],this.rangeR[1]),this.rSpeed=n(-1,1),this.cvs=t,this.ctx=i,this.x=n(0+this.r,this.cvs.width-this.r),this.y=n(0+this.r,this.cvs.height-this.r),this.xSpeed=n(-10,10),this.ySpeed=n(-10,10),this.lastMoveTime=null,this.fillStyle=w.randomColor()}setLastMoveTime(t){this.lastMoveTime=t}draw(){if(this.lastMoveTime){const s=Date.now()-this.lastMoveTime,e=Math.min(s,this.maxTimeDiff)/1e3;let a=this.x+e*this.xSpeed,c=this.y+e*this.ySpeed,l=this.r+e*this.rSpeed;l<=this.rangeR[0]?(l=this.rangeR[0],this.rSpeed=Math.abs(this.rSpeed)):l>=this.rangeR[1]&&(l=this.rangeR[1],this.rSpeed=-Math.abs(this.rSpeed)),a-this.r<0?(a=this.r,this.xSpeed=Math.abs(this.xSpeed)):a+this.r>this.cvs.width&&(a=this.cvs.width-this.r,this.xSpeed=-Math.abs(this.xSpeed)),c-this.r<0?(c=this.r,this.ySpeed=Math.abs(this.ySpeed)):c+this.r>this.cvs.height&&(c=this.cvs.height-this.r,this.ySpeed=-Math.abs(this.ySpeed)),this.x=a,this.y=c,this.r=l}const t=Math.max(0,this.r);this.ctx.beginPath(),this.ctx.arc(this.x,this.y,t,0,2*Math.PI),this.ctx.fillStyle=this.fillStyle,this.ctx.fill(),this.lastMoveTime=Date.now()}}class u{points;maxDis;cvs;ctx;constructor({pointNumber:t=30,maxDis:i=100,cvs:s,ctx:e}){this.points=Array(t).fill(0).map(()=>new x({cvs:s,ctx:e})),this.maxDis=i,this.cvs=s,this.ctx=e}resetPointsTime(){const t=Date.now();this.points.forEach(i=>{i.setLastMoveTime(t)})}draw(){if(o.value){if(document.hidden){setTimeout(()=>this.draw(),100);return}requestAnimationFrame(()=>this.draw()),this.ctx.clearRect(0,0,this.cvs.width,this.cvs.height);for(const[t,i]of this.points.entries()){i.draw();for(const s of this.points.slice(t+1)){const e=Math.sqrt((i.x-s.x)**2+(i.y-s.y)**2);isNaN(e)||e>this.maxDis||(this.ctx.beginPath(),this.ctx.moveTo(i.x,i.y),this.ctx.lineTo(s.x,s.y),this.ctx.strokeStyle=`rgba(200,200,200,${Math.max(0,Math.min(1,1-e/this.maxDis))})`,this.ctx.stroke(),this.ctx.closePath())}}}}}function p(){if(!d.value)return;console.log("渲染动画"),o.value=!0;const r=window.innerWidth,t=110*window.innerWidth/r,i=80*window.innerWidth/r,s=d.value,e=s.getContext("2d");if(!e)return;const a=window.devicePixelRatio||1;s.width=window.innerWidth*a,s.height=window.innerHeight*a,h&&(h=null),h=new u({pointNumber:Math.floor(t),maxDis:Math.floor(i),cvs:s,ctx:e}),h.draw()}const f=S(p,200);function v(){document.hidden?o.value=!1:d.value&&h&&(o.value=!0,h.resetPointsTime(),h.draw())}return m(window,"resize",f),m(document,"visibilitychange",v),M(()=>{f()}),b(()=>{o.value=!1,h=null}),(r,t)=>(T(),D("div",A,[_("canvas",P,null,512)]))}});export{B as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as r}from"./vendor-ui-
|
|
1
|
+
import{w as r}from"./vendor-ui-CGT0cG1n.js";import{v as i,aA as p,ab as n,l as c,ai as s,j as m,ax as u,k as y,g as d}from"./vendor-core-BKehvho7.js";const B=i({__name:"EmptyStatusContainer",props:{isEmpty:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyDescription:{type:String,default:""}},setup(e){const a=e,{t:o}=p(),l=d(()=>a.emptyDescription||o("common.empty"));return(t,f)=>(n(),c("div",null,[e.isEmpty?s(t.$slots,"empty-content",{key:0},()=>[e.loading?y("",!0):(n(),m(u(r),{key:0,class:"flex justify-center items-center",description:l.value},null,8,["description"]))]):s(t.$slots,"default",{key:1})]))}});export{B as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as o,ai as r,af as s}from"./vendor-core-
|
|
1
|
+
import{v as o,ai as r,af as s}from"./vendor-core-BKehvho7.js";const u=o({__name:"LoadingWrapper",setup(f){const e=s(!1);function a(){e.value=!0}function n(){e.value=!1}return(t,i)=>r(t.$slots,"default",{instance:{start:a,end:n},loading:e.value})}});export{u as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as s,af as n,aN as l,ab as c,l as p,_ as u,A as f,ai as d}from"./vendor-core-
|
|
1
|
+
import{v as s,af as n,aN as l,ab as c,l as p,_ as u,A as f,ai as d}from"./vendor-core-BKehvho7.js";const m=s({__name:"PanelBackground",props:{bg:{type:String,default:""}},setup(t){const o=t,e=n(o.bg),r=a=>{e.value=a??""};return l(()=>{e.value=o.bg}),(a,i)=>(c(),p("div",u(f(a.$attrs)),[d(a.$slots,"default",{bg:e.value,updateColor:r})],16))}});export{m as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as o}from"./index-
|
|
1
|
+
import{I as o}from"./index-BoIy-5_p.js";import{ab as a,j as c,ax as h}from"./vendor-core-BKehvho7.js";const i='<path class="n-b8vgsez"/>',d={__name:"cloud-upload",props:["width","height"],setup(t){const e={width:24,height:24};return(n,s)=>(a(),c(h(o),{width:t.width,height:t.height,viewBox:e,content:i,fallback:"material-symbols:cloud-upload"},null,8,["width","height"]))}};export{d as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{am as Kt}from"./vendor-ui-DXwyveTF.js";var re,ve;function Ft(){if(ve)return re;ve=1;function ce(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],u=typeof i;(u==="object"||u==="function")&&!Object.isFrozen(i)&&ce(i)}),e}class oe{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ae(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function T(e,...t){const i=Object.create(null);for(const u in e)i[u]=e[u];return t.forEach(function(u){for(const b in u)i[b]=u[b]}),i}const Ce="</span>",le=e=>!!e.scope,Le=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class He{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=ae(t)}openNode(t){if(!le(t))return;const i=Le(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){le(t)&&(this.buffer+=Ce)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const ue=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Z{constructor(){this.rootNode=ue(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=ue({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(u=>this._walk(t,u)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{Z._collapse(i)}))}}class je extends Z{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const u=t.root;i&&(u.scope=`language:${i}`),this.add(u)}toHTML(){return new He(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function j(e){return e?typeof e=="string"?e:e.source:null}function fe(e){return D("(?=",e,")")}function Pe(e){return D("(?:",e,")*")}function Ue(e){return D("(?:",e,")?")}function D(...e){return e.map(i=>j(i)).join("")}function $e(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function J(...e){return"("+($e(e).capture?"":"?:")+e.map(u=>j(u)).join("|")+")"}function ge(e){return new RegExp(e.toString()+"|").exec("").length-1}function Ge(e,t){const i=e&&e.exec(t);return i&&i.index===0}const We=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function q(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let _=j(u),c="";for(;_.length>0;){const r=We.exec(_);if(!r){c+=_;break}c+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?c+="\\"+String(Number(r[1])+b):(c+=r[0],r[0]==="("&&i++)}return c}).map(u=>`(${u})`).join(t)}const Ke=/\b\B/,he="[a-zA-Z]\\w*",V="[a-zA-Z_]\\w*",pe="\\b\\d+(\\.\\d+)?",de="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ee="\\b(0b[01]+)",Fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ze=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=D(t,/.*\b/,e.binary,/\b.*/)),T({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},P={begin:"\\\\[\\s\\S]",relevance:0},Xe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},Ye={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},Ze={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(e,t,i={}){const u=T({scope:"comment",begin:e,end:t,contains:[]},i);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=J("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:D(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},Je=$("//","$"),qe=$("/\\*","\\*/"),Ve=$("#","$"),Qe={scope:"number",begin:pe,relevance:0},me={scope:"number",begin:de,relevance:0},et={scope:"number",begin:Ee,relevance:0},tt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]},nt={scope:"title",begin:he,relevance:0},it={scope:"title",begin:V,relevance:0},st={begin:"\\.\\s*"+V,relevance:0};var G=Object.freeze({__proto__:null,APOS_STRING_MODE:Xe,BACKSLASH_ESCAPE:P,BINARY_NUMBER_MODE:et,BINARY_NUMBER_RE:Ee,COMMENT:$,C_BLOCK_COMMENT_MODE:qe,C_LINE_COMMENT_MODE:Je,C_NUMBER_MODE:me,C_NUMBER_RE:de,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})},HASH_COMMENT_MODE:Ve,IDENT_RE:he,MATCH_NOTHING_RE:Ke,METHOD_GUARD:st,NUMBER_MODE:Qe,NUMBER_RE:pe,PHRASAL_WORDS_MODE:Ze,QUOTE_STRING_MODE:Ye,REGEXP_MODE:tt,RE_STARTERS_RE:Fe,SHEBANG:ze,TITLE_MODE:nt,UNDERSCORE_IDENT_RE:V,UNDERSCORE_TITLE_MODE:it});function rt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function ct(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ot(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=rt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function at(e,t){Array.isArray(e.illegal)&&(e.illegal=J(...e.illegal))}function lt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function ut(e,t){e.relevance===void 0&&(e.relevance=1)}const ft=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=i.keywords,e.begin=D(i.beforeMatch,fe(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},gt=["of","and","for","in","not","or","if","then","parent","list","value"],ht="keyword";function be(e,t,i=ht){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(_){Object.assign(u,be(e[_],t,_))}),u;function b(_,c){t&&(c=c.map(r=>r.toLowerCase())),c.forEach(function(r){const l=r.split("|");u[l[0]]=[_,pt(l[0],l[1])]})}}function pt(e,t){return t?Number(t):dt(e)?0:1}function dt(e){return gt.includes(e.toLowerCase())}const _e={},v=e=>{console.error(e)},Me=(e,...t)=>{console.log(`WARN: ${e}`,...t)},L=(e,t)=>{_e[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),_e[`${e}/${t}`]=!0)},W=new Error;function xe(e,t,{key:i}){let u=0;const b=e[i],_={},c={};for(let r=1;r<=t.length;r++)c[r+u]=b[r],_[r+u]=!0,u+=ge(t[r-1]);e[i]=c,e[i]._emit=_,e[i]._multi=!0}function Et(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw v("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),W;if(typeof e.beginScope!="object"||e.beginScope===null)throw v("beginScope must be object"),W;xe(e,e.begin,{key:"beginScope"}),e.begin=q(e.begin,{joinWith:""})}}function bt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw v("skip, excludeEnd, returnEnd not compatible with endScope: {}"),W;if(typeof e.endScope!="object"||e.endScope===null)throw v("endScope must be object"),W;xe(e,e.end,{key:"endScope"}),e.end=q(e.end,{joinWith:""})}}function _t(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Mt(e){_t(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Et(e),bt(e)}function xt(e){function t(c,r){return new RegExp(j(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=ge(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(q(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const w=l.findIndex((U,m)=>m>0&&U!==void 0),M=this.matchIndexes[w];return l.splice(0,w),Object.assign(l,M)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new i;return this.rules.slice(r).forEach(([w,M])=>l.addRule(w,M)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let w=l.exec(r);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,w=M.exec(r)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function b(c){const r=new u;return c.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&r.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&r.addRule(c.illegal,{type:"illegal"}),r}function _(c,r){const l=c;if(c.isCompiled)return l;[ct,lt,Mt,ft].forEach(M=>M(c,r)),e.compilerExtensions.forEach(M=>M(c,r)),c.__beforeBegin=null,[ot,at,ut].forEach(M=>M(c,r)),c.isCompiled=!0;let w=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),w=c.keywords.$pattern,delete c.keywords.$pattern),w=w||/\w+/,c.keywords&&(c.keywords=be(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(w,!0),r&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=j(l.end)||"",c.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+r.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(M){return wt(M==="self"?c:M)})),c.contains.forEach(function(M){_(M,l)}),c.starts&&_(c.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=T(e.classNameAliases||{}),_(e)}function we(e){return e?e.endsWithParent||we(e.starts):!1}function wt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return T(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:we(e)?T(e,{starts:e.starts?T(e.starts):null}):Object.isFrozen(e)?T(e):e}var Ot="11.11.1";class Rt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const Q=ae,Oe=T,Re=Symbol("nomatch"),yt=7,ye=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:je};function l(n){return r.noHighlightRe.test(n)}function w(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const d=I(h[1]);return d||(Me(_.replace("{}",h[1])),Me("Falling back to no-highlight mode for this block.",n)),d?h[1]:"no-highlight"}return a.split(/\s+/).find(d=>l(d)||I(d))}function M(n,a,h){let d="",x="";typeof a=="object"?(d=n,h=a.ignoreIllegals,x=a.language):(L("10.7.0","highlight(lang, code, ...args) has been deprecated."),L("10.7.0",`Please use highlight(code, options) instead.
|
|
1
|
+
import{am as Kt}from"./vendor-ui-CGT0cG1n.js";var re,ve;function Ft(){if(ve)return re;ve=1;function ce(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],u=typeof i;(u==="object"||u==="function")&&!Object.isFrozen(i)&&ce(i)}),e}class oe{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ae(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function T(e,...t){const i=Object.create(null);for(const u in e)i[u]=e[u];return t.forEach(function(u){for(const b in u)i[b]=u[b]}),i}const Ce="</span>",le=e=>!!e.scope,Le=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class He{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=ae(t)}openNode(t){if(!le(t))return;const i=Le(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){le(t)&&(this.buffer+=Ce)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const ue=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Z{constructor(){this.rootNode=ue(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=ue({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(u=>this._walk(t,u)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{Z._collapse(i)}))}}class je extends Z{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const u=t.root;i&&(u.scope=`language:${i}`),this.add(u)}toHTML(){return new He(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function j(e){return e?typeof e=="string"?e:e.source:null}function fe(e){return D("(?=",e,")")}function Pe(e){return D("(?:",e,")*")}function Ue(e){return D("(?:",e,")?")}function D(...e){return e.map(i=>j(i)).join("")}function $e(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function J(...e){return"("+($e(e).capture?"":"?:")+e.map(u=>j(u)).join("|")+")"}function ge(e){return new RegExp(e.toString()+"|").exec("").length-1}function Ge(e,t){const i=e&&e.exec(t);return i&&i.index===0}const We=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function q(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let _=j(u),c="";for(;_.length>0;){const r=We.exec(_);if(!r){c+=_;break}c+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?c+="\\"+String(Number(r[1])+b):(c+=r[0],r[0]==="("&&i++)}return c}).map(u=>`(${u})`).join(t)}const Ke=/\b\B/,he="[a-zA-Z]\\w*",V="[a-zA-Z_]\\w*",pe="\\b\\d+(\\.\\d+)?",de="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ee="\\b(0b[01]+)",Fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ze=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=D(t,/.*\b/,e.binary,/\b.*/)),T({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},P={begin:"\\\\[\\s\\S]",relevance:0},Xe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},Ye={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},Ze={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(e,t,i={}){const u=T({scope:"comment",begin:e,end:t,contains:[]},i);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=J("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:D(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},Je=$("//","$"),qe=$("/\\*","\\*/"),Ve=$("#","$"),Qe={scope:"number",begin:pe,relevance:0},me={scope:"number",begin:de,relevance:0},et={scope:"number",begin:Ee,relevance:0},tt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]},nt={scope:"title",begin:he,relevance:0},it={scope:"title",begin:V,relevance:0},st={begin:"\\.\\s*"+V,relevance:0};var G=Object.freeze({__proto__:null,APOS_STRING_MODE:Xe,BACKSLASH_ESCAPE:P,BINARY_NUMBER_MODE:et,BINARY_NUMBER_RE:Ee,COMMENT:$,C_BLOCK_COMMENT_MODE:qe,C_LINE_COMMENT_MODE:Je,C_NUMBER_MODE:me,C_NUMBER_RE:de,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})},HASH_COMMENT_MODE:Ve,IDENT_RE:he,MATCH_NOTHING_RE:Ke,METHOD_GUARD:st,NUMBER_MODE:Qe,NUMBER_RE:pe,PHRASAL_WORDS_MODE:Ze,QUOTE_STRING_MODE:Ye,REGEXP_MODE:tt,RE_STARTERS_RE:Fe,SHEBANG:ze,TITLE_MODE:nt,UNDERSCORE_IDENT_RE:V,UNDERSCORE_TITLE_MODE:it});function rt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function ct(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ot(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=rt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function at(e,t){Array.isArray(e.illegal)&&(e.illegal=J(...e.illegal))}function lt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function ut(e,t){e.relevance===void 0&&(e.relevance=1)}const ft=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=i.keywords,e.begin=D(i.beforeMatch,fe(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},gt=["of","and","for","in","not","or","if","then","parent","list","value"],ht="keyword";function be(e,t,i=ht){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(_){Object.assign(u,be(e[_],t,_))}),u;function b(_,c){t&&(c=c.map(r=>r.toLowerCase())),c.forEach(function(r){const l=r.split("|");u[l[0]]=[_,pt(l[0],l[1])]})}}function pt(e,t){return t?Number(t):dt(e)?0:1}function dt(e){return gt.includes(e.toLowerCase())}const _e={},v=e=>{console.error(e)},Me=(e,...t)=>{console.log(`WARN: ${e}`,...t)},L=(e,t)=>{_e[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),_e[`${e}/${t}`]=!0)},W=new Error;function xe(e,t,{key:i}){let u=0;const b=e[i],_={},c={};for(let r=1;r<=t.length;r++)c[r+u]=b[r],_[r+u]=!0,u+=ge(t[r-1]);e[i]=c,e[i]._emit=_,e[i]._multi=!0}function Et(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw v("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),W;if(typeof e.beginScope!="object"||e.beginScope===null)throw v("beginScope must be object"),W;xe(e,e.begin,{key:"beginScope"}),e.begin=q(e.begin,{joinWith:""})}}function bt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw v("skip, excludeEnd, returnEnd not compatible with endScope: {}"),W;if(typeof e.endScope!="object"||e.endScope===null)throw v("endScope must be object"),W;xe(e,e.end,{key:"endScope"}),e.end=q(e.end,{joinWith:""})}}function _t(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Mt(e){_t(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Et(e),bt(e)}function xt(e){function t(c,r){return new RegExp(j(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=ge(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(q(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const w=l.findIndex((U,m)=>m>0&&U!==void 0),M=this.matchIndexes[w];return l.splice(0,w),Object.assign(l,M)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new i;return this.rules.slice(r).forEach(([w,M])=>l.addRule(w,M)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let w=l.exec(r);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,w=M.exec(r)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function b(c){const r=new u;return c.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&r.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&r.addRule(c.illegal,{type:"illegal"}),r}function _(c,r){const l=c;if(c.isCompiled)return l;[ct,lt,Mt,ft].forEach(M=>M(c,r)),e.compilerExtensions.forEach(M=>M(c,r)),c.__beforeBegin=null,[ot,at,ut].forEach(M=>M(c,r)),c.isCompiled=!0;let w=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),w=c.keywords.$pattern,delete c.keywords.$pattern),w=w||/\w+/,c.keywords&&(c.keywords=be(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(w,!0),r&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=j(l.end)||"",c.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+r.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(M){return wt(M==="self"?c:M)})),c.contains.forEach(function(M){_(M,l)}),c.starts&&_(c.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=T(e.classNameAliases||{}),_(e)}function we(e){return e?e.endsWithParent||we(e.starts):!1}function wt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return T(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:we(e)?T(e,{starts:e.starts?T(e.starts):null}):Object.isFrozen(e)?T(e):e}var Ot="11.11.1";class Rt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const Q=ae,Oe=T,Re=Symbol("nomatch"),yt=7,ye=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:je};function l(n){return r.noHighlightRe.test(n)}function w(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const d=I(h[1]);return d||(Me(_.replace("{}",h[1])),Me("Falling back to no-highlight mode for this block.",n)),d?h[1]:"no-highlight"}return a.split(/\s+/).find(d=>l(d)||I(d))}function M(n,a,h){let d="",x="";typeof a=="object"?(d=n,h=a.ignoreIllegals,x=a.language):(L("10.7.0","highlight(lang, code, ...args) has been deprecated."),L("10.7.0",`Please use highlight(code, options) instead.
|
|
2
2
|
https://github.com/highlightjs/highlight.js/issues/2277`),x=n,d=a),h===void 0&&(h=!0);const S={code:d,language:x};F("before:highlight",S);const B=S.result?S.result:U(S.language,S.code,h);return B.code=S.code,F("after:highlight",B),B}function U(n,a,h,d){const x=Object.create(null);function S(s,o){return s.keywords[o]}function B(){if(!f.keywords){O.addText(E);return}let s=0;f.keywordPatternRe.lastIndex=0;let o=f.keywordPatternRe.exec(E),g="";for(;o;){g+=E.substring(s,o.index);const p=A.case_insensitive?o[0].toLowerCase():o[0],R=S(f,p);if(R){const[k,Gt]=R;if(O.addText(g),g="",x[p]=(x[p]||0)+1,x[p]<=yt&&(Y+=Gt),k.startsWith("_"))g+=o[0];else{const Wt=A.classNameAliases[k]||k;N(o[0],Wt)}}else g+=o[0];s=f.keywordPatternRe.lastIndex,o=f.keywordPatternRe.exec(E)}g+=E.substring(s),O.addText(g)}function z(){if(E==="")return;let s=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){O.addText(E);return}s=U(f.subLanguage,E,!0,De[f.subLanguage]),De[f.subLanguage]=s._top}else s=ee(E,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(Y+=s.relevance),O.__addSublanguage(s._emitter,s.language)}function y(){f.subLanguage!=null?z():B(),E=""}function N(s,o){s!==""&&(O.startScope(o),O.addText(s),O.endScope())}function ke(s,o){let g=1;const p=o.length-1;for(;g<=p;){if(!s._emit[g]){g++;continue}const R=A.classNameAliases[s[g]]||s[g],k=o[g];R?N(k,R):(E=k,B(),E=""),g++}}function Te(s,o){return s.scope&&typeof s.scope=="string"&&O.openNode(A.classNameAliases[s.scope]||s.scope),s.beginScope&&(s.beginScope._wrap?(N(E,A.classNameAliases[s.beginScope._wrap]||s.beginScope._wrap),E=""):s.beginScope._multi&&(ke(s.beginScope,o),E="")),f=Object.create(s,{parent:{value:f}}),f}function Ie(s,o,g){let p=Ge(s.endRe,g);if(p){if(s["on:end"]){const R=new oe(s);s["on:end"](o,R),R.isMatchIgnored&&(p=!1)}if(p){for(;s.endsParent&&s.parent;)s=s.parent;return s}}if(s.endsWithParent)return Ie(s.parent,o,g)}function Ht(s){return f.matcher.regexIndex===0?(E+=s[0],1):(se=!0,0)}function jt(s){const o=s[0],g=s.rule,p=new oe(g),R=[g.__beforeBegin,g["on:begin"]];for(const k of R)if(k&&(k(s,p),p.isMatchIgnored))return Ht(o);return g.skip?E+=o:(g.excludeBegin&&(E+=o),y(),!g.returnBegin&&!g.excludeBegin&&(E=o)),Te(g,s),g.returnBegin?0:o.length}function Pt(s){const o=s[0],g=a.substring(s.index),p=Ie(f,s,g);if(!p)return Re;const R=f;f.endScope&&f.endScope._wrap?(y(),N(o,f.endScope._wrap)):f.endScope&&f.endScope._multi?(y(),ke(f.endScope,s)):R.skip?E+=o:(R.returnEnd||R.excludeEnd||(E+=o),y(),R.excludeEnd&&(E=o));do f.scope&&O.closeNode(),!f.skip&&!f.subLanguage&&(Y+=f.relevance),f=f.parent;while(f!==p.parent);return p.starts&&Te(p.starts,s),R.returnEnd?0:o.length}function Ut(){const s=[];for(let o=f;o!==A;o=o.parent)o.scope&&s.unshift(o.scope);s.forEach(o=>O.openNode(o))}let X={};function Be(s,o){const g=o&&o[0];if(E+=s,g==null)return y(),0;if(X.type==="begin"&&o.type==="end"&&X.index===o.index&&g===""){if(E+=a.slice(o.index,o.index+1),!b){const p=new Error(`0 width match regex (${n})`);throw p.languageName=n,p.badRule=X.rule,p}return 1}if(X=o,o.type==="begin")return jt(o);if(o.type==="illegal"&&!h){const p=new Error('Illegal lexeme "'+g+'" for mode "'+(f.scope||"<unnamed>")+'"');throw p.mode=f,p}else if(o.type==="end"){const p=Pt(o);if(p!==Re)return p}if(o.type==="illegal"&&g==="")return E+=`
|
|
3
3
|
`,1;if(ie>1e5&&ie>o.index*3)throw new Error("potential infinite loop, way more iterations than matches");return E+=g,g.length}const A=I(n);if(!A)throw v(_.replace("{}",n)),new Error('Unknown language: "'+n+'"');const $t=xt(A);let ne="",f=d||$t;const De={},O=new r.__emitter(r);Ut();let E="",Y=0,C=0,ie=0,se=!1;try{if(A.__emitTokens)A.__emitTokens(a,O);else{for(f.matcher.considerAll();;){ie++,se?se=!1:f.matcher.considerAll(),f.matcher.lastIndex=C;const s=f.matcher.exec(a);if(!s)break;const o=a.substring(C,s.index),g=Be(o,s);C=s.index+g}Be(a.substring(C))}return O.finalize(),ne=O.toHTML(),{language:n,value:ne,relevance:Y,illegal:!1,_emitter:O,_top:f}}catch(s){if(s.message&&s.message.includes("Illegal"))return{language:n,value:Q(a),illegal:!0,relevance:0,_illegalBy:{message:s.message,index:C,context:a.slice(C-100,C+100),mode:s.mode,resultSoFar:ne},_emitter:O};if(b)return{language:n,value:Q(a),illegal:!1,relevance:0,errorRaised:s,_emitter:O,_top:f};throw s}}function m(n){const a={value:Q(n),illegal:!1,relevance:0,_top:c,_emitter:new r.__emitter(r)};return a._emitter.addText(n),a}function ee(n,a){a=a||r.languages||Object.keys(t);const h=m(n),d=a.filter(I).filter(Ae).map(y=>U(y,n,!1));d.unshift(h);const x=d.sort((y,N)=>{if(y.relevance!==N.relevance)return N.relevance-y.relevance;if(y.language&&N.language){if(I(y.language).supersetOf===N.language)return 1;if(I(N.language).supersetOf===y.language)return-1}return 0}),[S,B]=x,z=S;return z.secondBest=B,z}function St(n,a,h){const d=a&&i[a]||h;n.classList.add("hljs"),n.classList.add(`language-${d}`)}function te(n){let a=null;const h=w(n);if(l(h))return;if(F("before:highlightElement",{el:n,language:h}),n.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",n);return}if(n.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(n)),r.throwUnescapedHTML))throw new Rt("One of your code blocks includes unescaped HTML.",n.innerHTML);a=n;const d=a.textContent,x=h?M(d,{language:h,ignoreIllegals:!0}):ee(d);n.innerHTML=x.value,n.dataset.highlighted="yes",St(n,h,x.language),n.result={language:x.language,re:x.relevance,relevance:x.relevance},x.secondBest&&(n.secondBest={language:x.secondBest.language,relevance:x.secondBest.relevance}),F("after:highlightElement",{el:n,result:x,text:d})}function Nt(n){r=Oe(r,n)}const At=()=>{K(),L("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function kt(){K(),L("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Se=!1;function K(){function n(){K()}if(document.readyState==="loading"){Se||window.addEventListener("DOMContentLoaded",n,!1),Se=!0;return}document.querySelectorAll(r.cssSelector).forEach(te)}function Tt(n,a){let h=null;try{h=a(e)}catch(d){if(v("Language definition for '{}' could not be registered.".replace("{}",n)),b)v(d);else throw d;h=c}h.name||(h.name=n),t[n]=h,h.rawDefinition=a.bind(null,e),h.aliases&&Ne(h.aliases,{languageName:n})}function It(n){delete t[n];for(const a of Object.keys(i))i[a]===n&&delete i[a]}function Bt(){return Object.keys(t)}function I(n){return n=(n||"").toLowerCase(),t[n]||t[i[n]]}function Ne(n,{languageName:a}){typeof n=="string"&&(n=[n]),n.forEach(h=>{i[h.toLowerCase()]=a})}function Ae(n){const a=I(n);return a&&!a.disableAutodetect}function Dt(n){n["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=a=>{n["before:highlightBlock"](Object.assign({block:a.el},a))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=a=>{n["after:highlightBlock"](Object.assign({block:a.el},a))})}function vt(n){Dt(n),u.push(n)}function Ct(n){const a=u.indexOf(n);a!==-1&&u.splice(a,1)}function F(n,a){const h=n;u.forEach(function(d){d[h]&&d[h](a)})}function Lt(n){return L("10.7.0","highlightBlock will be removed entirely in v12.0"),L("10.7.0","Please use highlightElement now."),te(n)}Object.assign(e,{highlight:M,highlightAuto:ee,highlightAll:K,highlightElement:te,highlightBlock:Lt,configure:Nt,initHighlighting:At,initHighlightingOnLoad:kt,registerLanguage:Tt,unregisterLanguage:It,listLanguages:Bt,getLanguage:I,registerAliases:Ne,autoDetection:Ae,inherit:Oe,addPlugin:vt,removePlugin:Ct}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=Ot,e.regex={concat:D,lookahead:fe,either:J,optional:Ue,anyNumberOfTimes:Pe};for(const n in G)typeof G[n]=="object"&&ce(G[n]);return Object.assign(e,G),e},H=ye({});return H.newInstance=()=>ye({}),re=H,H.HighlightJS=H,H.default=H,re}var zt=Ft();const Zt=Kt(zt);export{Zt as H};
|
package/dist/website/main/assets/{el-table-column-8qfe8CVK.js → el-table-column-CGzXlVpD.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as n,J as i}from"./vendor-ui-
|
|
1
|
+
import{D as n,J as i}from"./vendor-ui-CGT0cG1n.js";import{v as p,aA as l,ab as d,l as m,ai as f,i as u,ap as a,r as x,ax as o,aO as y,q as w}from"./vendor-core-BKehvho7.js";const h=async e=>{if(!navigator.clipboard)throw new Error("剪贴板API不可用");try{await navigator.clipboard.writeText(e)}catch(t){throw console.error("复制失败:",t),new Error("无法复制文本")}},_={class:"flex items-center gap-[10px]"},E=p({__name:"CopyText",props:{text:{type:String,default:""}},setup(e){const{t}=l(),r=e;async function s(){await h(r.text),i.success(t("common.copySuccess"))}return(c,g)=>(d(),m("div",_,[f(c.$slots,"default",{},()=>[u("span",null,a(e.text),1)]),x(o(n),{type:"primary",href:"javascript:void(0)",onClick:s},{default:y(()=>[w(a(o(t)("common.copy")),1)]),_:1})]))}});export{E as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as o}from"./index-
|
|
1
|
+
import{I as o}from"./index-BoIy-5_p.js";import{ab as h,j as a,ax as n}from"./vendor-core-BKehvho7.js";const i='<path class="ox_sfhbjq"/>',l={__name:"home-rounded",props:["width","height"],setup(t){const e={width:24,height:24};return(c,s)=>(h(),a(n(o),{width:t.width,height:t.height,viewBox:e,content:i,fallback:"material-symbols:home-rounded"},null,8,["width","height"]))}};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ac as B,aF as he,A as ge,e as Te,U as Ce,a7 as Ee,D as Se,ar as we,J as le,K as ye,aJ as be,b as Le,W as Re,g as xe,f as Me}from"./vendor-ui-
|
|
1
|
+
import{ac as B,aF as he,A as ge,e as Te,U as Ce,a7 as Ee,D as Se,ar as we,J as le,K as ye,aJ as be,b as Le,W as Re,g as xe,f as Me}from"./vendor-ui-CGT0cG1n.js";import{V as Y,t as ae,j as ke,u as W,B as Ne}from"./index-CdLdwW7r.js";/* empty css *//* empty css */import{v as oe,aA as re,aF as de,aM as $,aj as Ie,ab as O,l as K,i as y,ap as b,ax as _,r as c,aO as f,q as V,aP as ie,aK as Oe,j as Pe,aQ as Ae,k as Ge,af as L,g as m,Y as ne,aC as De,aD as Be,ac as ce,a9 as $e,y as Ve,ao as Z}from"./vendor-core-BKehvho7.js";import{b as ue,c as Ke,a as Ue}from"./index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js";import{u as pe}from"./useTeamHeaders-DxHN7-t0.js";import{v as Fe}from"./v4-EwEgHOG0.js";import{u as He}from"./useKeyword-bWHMALoZ.js";import{u as je,I as C,a as ee,e as ze}from"./useMessage-BVw3M4ej.js";import"./index-BYC9CuLh.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useVscodeOpen-SZpyzVHG.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./useCacheOssStore-OAoLDVbw.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";const Je={class:"size-full flex flex-col overflow-auto"},We={class:"text-lg font-bold mb-2"},Ye={class:"flex gap-2"},Qe={class:"flex-1 flex flex-col gap-2 overflow-auto"},qe={class:"flex gap-1"},Xe={class:"flex items-center gap-1"},Ze={class:"custom-tree-node"},ea={key:1},aa={key:0},oa={class:"flex gap-2 items-center"},ta=oe({__name:"TreeMenu",setup(te){const{t:l}=re(),U={children:"children",label:"label",isLeaf:e=>!e.children||e.children.length===0},{headers:N,teamId:F}=pe(),t=ue(F)(),R=L(""),h=L([]),E=de("tree"),x=L({}),n=L([]),g=L("[]"),P=L({}),r=L(!1),T=m(()=>{const e=JSON.stringify(n.value),o=g.value;return e!==o||!we(t.selectedRowsToLeafNodeMap,P.value)}),A=m(()=>t.selectedRows.length>0),H=()=>({id:Fe(),label:l("team.defaultGroup"),children:[],isEdit:!1}),Q=(e,o)=>{e&&(x.value[o]=e)},j=e=>{h.value.includes(e)||(h.value=[...h.value,e])},q=e=>{const p=Y.getTreeAllChildren(n.value,e.id).map(i=>i.id).concat(e.id);h.value=h.value.filter(i=>!p.includes(i)),r.value=!1},X=e=>{j(e.id)},a=e=>{e.isEdit=!1},u=e=>{e.isEdit=!1},d=(e,o)=>e?o.label.includes(e):!0,S=()=>{const e={menuGroup:n.value,compIdInLeafNodeMap:t.selectedRowsToLeafNodeMap};ae.v1Team.teamcontrollerUpdatemenu(e,{headers:N}).then(()=>{le.success(l("message.success.save")),P.value=B(t.selectedRowsToLeafNodeMap),t.setTeamDetail({...t.teamDetail,menuGroup:B(n.value)})})},M=async e=>{e.isEdit=!0,await ne(),x.value[e.id]?.focus(),x.value[e.id]?.select()},G=async e=>{const o=H();e.children||(e.children=[]),e.children.push(o),n.value=[...n.value],await ne();const p={};for(const i in t.selectedRowsToLeafNodeMap)t.selectedRowsToLeafNodeMap[i]===e.id&&(p[i]=o.id);t.addSelectedRowsToLeafNodeMap(p),j(o.id)},I=async(e,o)=>{const D=Y.getTreeAllChildren(n.value,o.id).filter(s=>s.children?.length===0).map(s=>s.id).concat(o.id),k=[];for(const s in t.selectedRowsToLeafNodeMap)D.includes(t.selectedRowsToLeafNodeMap[s]??"")&&k.push(s);if(k?.length){if(await ye.confirm(l("team.deleteGroupConfirm"),l("common.info"),{confirmButtonText:l("common.delete"),cancelButtonText:l("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;t.delSelectedRowsToLeafNodeMap(k)}const z=e.parent,J=z?.data.children||z?.data,w=J.findIndex(s=>s.id===o.id);J.splice(w,1),n.value=[...n.value]},me=()=>{const e=H();n.value.push(e)},fe=()=>{if(!n.value.length)return;const e=n.value.map(o=>Y.getTreeAllChildren(n.value,o.id).map(i=>i.id)).reduce((o,p)=>o.concat(p),[]);e.length&&(h.value=e,r.value=!0)},_e=e=>{T.value&&e.preventDefault()},ve=e=>{const o=t.selectedRows.reduce((p,i)=>({...p,[i]:e.id}),{});t.addSelectedRowsToLeafNodeMap(o),t.setSelectedRows([]),le.success(l("team.addSuccess"))},se=e=>Object.values(t.selectedRowsToLeafNodeMap).filter(o=>o===e.id).length;return $(R,e=>{E.value.filter(e)}),$(()=>t.menuGroup,e=>{n.value=B(e),g.value=JSON.stringify(e)},{immediate:!0}),$(()=>JSON.stringify(n.value),()=>{t.setDataSourceCopy(B(n.value))},{immediate:!0}),$(()=>t.selectedRowsToLeafNodeMap,e=>{P.value=B(e)},{immediate:!0,once:!0}),$(()=>T.value,e=>{t.setCanSaveCopy(e)},{immediate:!0,deep:!0}),he(window,"beforeunload",_e),(e,o)=>{const p=ge,i=Te,D=Ie("Icon"),k=Se,z=Ee,J=Ce;return O(),K("div",Je,[y("h2",We,b(_(l)("team.groupConfig")),1),y("div",Ye,[c(p,{modelValue:R.value,"onUpdate:modelValue":o[0]||(o[0]=w=>R.value=w),class:"mb-2",placeholder:_(l)("team.pleaseInputGroupName")},null,8,["modelValue","placeholder"])]),y("div",Qe,[y("div",qe,[c(i,{size:"small",disabled:r.value,onClick:fe},{default:f(()=>[V(b(_(l)("team.expandAll")),1)]),_:1},8,["disabled"]),c(i,{type:"primary",size:"small",onClick:me},{default:f(()=>[V(b(_(l)("team.createGroup")),1)]),_:1}),y("div",Xe,[c(i,{type:"primary",disabled:!T.value,size:"small",onClick:S},{default:f(()=>[V(b(_(l)("common.save")),1)]),_:1},8,["disabled"]),ie(y("span",{class:"text-red-500 text-[12px]"},b(_(l)("team.unsaved")),513),[[Oe,T.value]])])]),c(J,{class:"flex-1"},{default:f(()=>[c(z,{ref:"tree",data:n.value,"default-expanded-keys":h.value,"expand-on-click-node":!1,"filter-node-method":d,props:U,"node-key":"id",onNodeExpand:X,onNodeCollapse:q},{default:f(({node:w,data:s})=>[y("div",Ze,[s.isEdit?(O(),Pe(p,{key:0,ref:v=>Q(v,s.id),modelValue:s.label,"onUpdate:modelValue":v=>s.label=v,autofocus:"",size:"small",onKeydown:Ae(v=>a(s),["enter"]),onBlur:v=>u(s),onChange:v=>a(s)},null,8,["modelValue","onUpdate:modelValue","onKeydown","onBlur","onChange"])):(O(),K("span",ea,[V(b(w.label)+" ",1),w.isLeaf&&se(s)>0?(O(),K("span",aa," ("+b(se(s))+") ",1)):Ge("",!0)])),y("div",oa,[c(k,{type:"info",link:"",onClick:v=>M(s)},{default:f(()=>[c(D,{icon:"material-symbols:edit-note"})]),_:1},8,["onClick"]),c(k,{type:"primary",link:"",onClick:v=>G(s)},{default:f(()=>[c(D,{icon:"material-symbols:add-box-rounded"})]),_:1},8,["onClick"]),c(k,{type:"danger",link:"",onClick:v=>I(w,s)},{default:f(()=>[c(D,{icon:"material-symbols:delete-rounded"})]),_:1},8,["onClick"]),c(i,{disabled:!w.isLeaf||!A.value,type:"primary",link:"",onClick:v=>ve(s)},{default:f(()=>[V(b(_(l)("team.addComp")),1)]),_:1},8,["disabled","onClick"])])])]),_:1},8,["data","default-expanded-keys"])]),_:1})])])}}}),sa=ke(ta,[["__scopeId","data-v-8a38bda5"]]),la=oe({__name:"CompGroupList",setup(te){const{t:l}=re(),U=Ve(),N=De(),{headers:F,teamId:t}=pe(),{sendMessageToTargetIframe:R,messageListener:h}=ze(),{addListener:E}=h(),x=je(!1,window.__GLOBAL_CONFIG__.subPort),n=Be(),g=Ke(`${N.path}_${W.SCOPE_ID_TEAM_COMP_GROUP_LIST}`)();ce(W.PROVIDE_KEY_COMP_LIST_STORE,g);const P=new Map;ce(W.PROVIDE_KEY_CALLBACKS,P);const r=ue(t)(),T=de("compIframeContainer"),A=L({data:[],search:{column:[{prop:"keyword",component:Z(Le),label:m(()=>l("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:m(()=>l("comp.keywordPlaceholder")),fetchSuggestions:Q,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}},{prop:"isGroup",label:m(()=>l("team.isGrouped")),component:Z(Re),value:"",attributes:{style:{width:"120px"},clearable:!0,options:m(()=>[{label:l("team.grouped"),value:"Yes"},{label:l("team.ungrouped"),value:"No"}])}},{prop:"group",component:Z(xe),label:m(()=>l("team.group")),value:"",attributes:{options:m(()=>r.menuGroup),clearable:!0,props:{value:"id",checkStrictly:!0}}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:j}),H=m(()=>A.value?.search?.column[0]?.value??"");He(H,T);function Q(a,u){if(a.length<=1)return u([]);ae.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:a,type:"compTeam"},{headers:F}).then(d=>{const{keywords:S=[]}=d.data||{};u(S)})}async function j(a){g.setLoading(!0);const{group:u=[]}=a||{};delete a.group;const d=u?.[u.length-1];if(d){let I=r.getSelectedGroupLeafNodes(d);I=I.length===0?[d]:I,a.leafNodeIds=I}const S=await ae.v1Team.teamcontrollerTeamcomps({...a,scene:"library"},{headers:F}),{rows:M,total:G}=S.data??{};g.renderList(M??[]),A.value.pagination.total=G||0,g.setLoading(!1)}function q(a){n.push({path:`/previewTeam/${t}/${a}`})}function X(a){const u=r.selectedRowsToLeafNodeMap[a];return u?Y.findTreeNodePathToRoot(r.dataSourceCopy,u).reverse().map(M=>M.label).join(" / "):""}return E(C.SELECTED_ROWS_TO_LEAF_NODE_MAP_GET,ee(m(()=>r.selectedRowsToLeafNodeMap),()=>{T.value?.sendMessageToTargetIframeByCompId(a=>{a&&R(a,C.SELECTED_ROWS_TO_LEAF_NODE_MAP_SET,r.selectedRowsToLeafNodeMap,x)})}).triggerCallback),E(C.SELECTED_ROWS_TO_LEAF_NODE_MAP_SET,a=>{r.setSelectedRowsToLeafNodeMap(a)}),E(C.SELECTED_ROWS_GET,ee(m(()=>r.selectedRows),()=>{T.value?.sendMessageToTargetIframeByCompId(a=>{a&&R(a,C.SELECTED_ROWS_SET,r.selectedRows,x)})}).triggerCallback),E(C.SELECTED_ROWS_SET,a=>{r.setSelectedRows(a)}),E(C.COMP_GROUP_PATH_GET,ee(m(()=>r.dataSourceCopy),a=>{const u=a.map(d=>({[d]:X(d)}));u.length>0&&T.value?.sendMessageToTargetIframeByCompId(d=>{if(d){const S=u.reduce((M,G)=>({...M,...G}),{});R(d,C.COMP_GROUP_PATH_SET,S,x)}})}).triggerCallback),E(C.COMP_GROUP_PATH_SET,a=>{r.setSelectedRowsToLeafNodeMap(a)}),$e(()=>{g.$reset()}),(a,u)=>{const d=be;return ie((O(),K("div",null,[c(_(Ne),{tableConfig:A.value},{table:f(()=>[c(Ue,{ref:"compIframeContainer",iuid:_(U)?.uid,compType:_(W).IFRAME_ROUTES.CONTAINER.TEAM_GROUP,onPreview:q},null,8,["iuid","compType"])]),_:1},8,["tableConfig"])])),[[d,_(g).loading]])}}}),na={class:"flex gap-3"},wa=oe({__name:"index",setup(te){return(l,U)=>{const N=Me;return O(),K("div",na,[c(N,{"body-class":"!p-0",class:"w-[400px] max-h-[60vh] overflow-hidden sticky top-10 p-2"},{default:f(()=>[c(sa)]),_:1}),c(N,{"body-class":"!p-0",class:"flex-1 p-2"},{default:f(()=>[c(la)]),_:1})])}}});export{wa as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aJ as k,U as D,b as L}from"./vendor-ui-CGT0cG1n.js";import{u as a,B as b,t as c,p as P}from"./index-CdLdwW7r.js";import{c as M,a as A}from"./index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js";import{_ as U}from"./index.vue_vue_type_style_index_0_lang-1ZphBFBL.js";import{c as x}from"./useCompEditStore-DI3vFtGm.js";import{v as K,aA as B,y as N,aC as Y,aD as $,ac as m,aF as _,a9 as F,aP as H,ax as i,ab as V,l as z,r as p,aO as w,af as Q,g as l,ao as G}from"./vendor-core-BKehvho7.js";import{u as J}from"./useKeyword-bWHMALoZ.js";import"./index-BYC9CuLh.js";import"./useCompMetaLocalStore-BKTMp_k8.js";/* empty css */import"./useVscodeOpen-SZpyzVHG.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useTeamHeaders-DxHN7-t0.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-BVw3M4ej.js";import"./v4-EwEgHOG0.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-BNPcBMvg.js";import"./core-CcVTMiBP.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";const W={class:"size-full p-[10px] pr-0"},ho=K({__name:"index",setup(j){const{t:u}=B(),C=N()?.uid,d=Y(),E=$(),e=M(d.path)();m(a.PROVIDE_KEY_COMP_LIST_STORE,e);const g=x(d.path,a.DIALOG_TYPE_EDIT)();m(a.PROVIDE_KEY_COMP_EDIT_STORE,g);const f=new Map;m(a.PROVIDE_KEY_CALLBACKS,f);const y=_("compUpdateDialog"),h=_("compIframeContainer"),n=Q({data:[],search:{column:[{prop:"keyword",component:G(L),label:l(()=>u("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:l(()=>u("comp.keywordPlaceholder")),fetchSuggestions:I,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:O}),v=l(()=>n.value?.search?.column[0]?.value??"");J(v,h);function I(o,t){if(o.length<=1)return t([]);c.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:o,type:"compMy"}).then(r=>{const{keywords:s=[]}=r.data||{};t(s)})}async function O(o){e.setLoading(!0),o.keyword&&window?.umami?.track(P.SEARCH_COMPONENT,{keyword:o.keyword,page:"mine"});const t=await c.v1Comp.compcontrollerMycomps(o),{rows:r,total:s}=t.data??{};e.renderList(r??[]),n.value.pagination.total=s??0,e.setLoading(!1)}function R(o){E.push({path:`/preview/${o}`})}async function S(o){y.value?.open(o)}function T(o){c.v1Comp.compcontrollerCompdetail({compId:o}).then(t=>{e.updateCompListItemById(o,t.data)})}return f.set(a.COMP_METHOD_KEY_AFTER_COMP_DEL,()=>{n.value.pagination.total--}),F(()=>{e.$reset()}),(o,t)=>{const r=D,s=k;return H((V(),z("div",W,[p(i(b),{tableConfig:n.value},{table:w(()=>[p(r,{always:"",wrapClass:"pr-[10px]"},{default:w(()=>[p(A,{ref:"compIframeContainer",iuid:i(C),compType:i(a).IFRAME_ROUTES.CONTAINER.MINE,onPreview:R,onUpdate:S},null,8,["iuid","compType"])]),_:1})]),_:1},8,["tableConfig"]),p(U,{ref:"compUpdateDialog",onUpdateSuccess:T},null,512)])),[[s,i(e).loading]])}}});export{ho as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as u,ab as d,l as _,r as n,ax as f,aC as L,ac as M,a7 as g,aO as w,af as P,g as m}from"./vendor-core-BKehvho7.js";import{c as T}from"./useCompMetaLocalStore-BKTMp_k8.js";import{u as v,q as r}from"./index-CdLdwW7r.js";import{_ as b}from"./index.vue_vue_type_script_setup_true_lang-DPbqR98S.js";import{_ as I}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./vendor-ui-CGT0cG1n.js";import"./useVscodeOpen-SZpyzVHG.js";import"./useMessage-BVw3M4ej.js";const O={class:"size-full"},R=u({__name:"index",props:{version:{},compAttrs:{}},setup(a){return(l,t)=>(d(),_("div",O,[n(b,{compAttrs:a.compAttrs,version:a.version,compType:f(v).IFRAME_ROUTES.ITEM.PREVIEW_LOCAL},null,8,["compAttrs","version","compType"])]))}}),k={class:"size-full"},j=u({__name:"index",setup(a){const l=L(),{compId:t}=l.params,e=T(t)(),h=new Map;M(v.PROVIDE_KEY_CALLBACKS,h);const o=P(!1),s=m(()=>e.detail),A=m(()=>Object.keys(s.value??{}).length>0);async function y(){if(!t)return;o.value=!0;const c=await r.v1Comp.compcontrollerLocalcompdetailbypathhash({fullPathHash:t}),i=await r.v1Comp.compcontrollerDep({compPath:c.data.path}),{thirdParty:p=[]}=i.data,C=p.map(x=>x.name),E=await r.v1Module.modulecontrollerPrebuild({deps:C}),{entryNameToFile:D={}}=E.data;e.setDetail(c.data),e.setDep(p),e.setDepToFile(D),o.value=!1}return g(async()=>{await y()}),(c,i)=>(d(),_("div",k,[n(f(I),{isEmpty:!A.value,loading:o.value,class:"size-full"},{default:w(()=>[n(R,{compAttrs:s.value,version:s.value.version},null,8,["compAttrs","version"])]),_:1},8,["isEmpty","loading"])]))}});export{j as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BqUY_Pbs.js","./vendor-ui-CGT0cG1n.js","./vendor-core-BKehvho7.js","./index-CdLdwW7r.js","./index-DIKKFNiV.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as Q,u as y,c as W,q as v,p as O,_ as ee,t as te}from"./index-CdLdwW7r.js";import{e as oe,aH as N,_ as ae,w as se,Z as ne,F as le,K as re,J as V}from"./vendor-ui-CGT0cG1n.js";/* empty css */import{u as ce,c as ie,C as me,_ as pe}from"./useCompEditStore-DI3vFtGm.js";import{v as j,aA as X,aj as Y,ab as h,j as F,aO as l,i as m,r as s,ax as p,ap as g,l as L,F as ue,ah as de,q as M,af as U,aD as _e,aC as fe,ac as Ee,aF as B,a9 as ve,Q as he,u as Ce,g as Se,Y as z}from"./vendor-core-BKehvho7.js";import{_ as ye}from"./index.vue_vue_type_script_setup_true_lang-DzvWwe2g.js";import{_ as ge}from"./index.vue_vue_type_style_index_0_lang-BNPcBMvg.js";import{_ as we}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import{_ as Pe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import{u as Te}from"./useTeamHeaders-DxHN7-t0.js";/* empty css *//* empty css */import"./index-BYC9CuLh.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./v4-EwEgHOG0.js";import"./useMessage-BVw3M4ej.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js";import"./core-CcVTMiBP.js";const xe={class:"flex flex-col items-center"},Re={class:"flex-1 overflow-hidden"},De={class:"text-center"},Oe={class:"text-blue-600 hover:text-blue-800 hover:underline cursor-pointer transition-colors"},Ie={class:"flex justify-end gap-[10px]"},ke=j({__name:"index",setup(q,{expose:I}){const{t:r}=X(),d=U(!1),w=U([]);let a;const{src:P}=ce("COMP_REPEAT.md");function e(c,f){w.value=c,d.value=!0,a=f}function T(){d.value=!1}function x(c){c.start(),a?.({end:c.end})}return I({open:e,close:T}),(c,f)=>{const _=Y("router-link"),R=oe;return h(),F(p(Pe),{modelValue:d.value,"onUpdate:modelValue":f[0]||(f[0]=i=>d.value=i),title:"",width:"660px"},{footer:l(()=>[m("div",Ie,[s(R,{onClick:T},{default:l(()=>[M(g(p(r)("common.cancel")),1)]),_:1}),s(p(we),null,{default:l(({instance:i,loading:C})=>[s(R,{loading:C,type:"primary",onClick:b=>x(i)},{default:l(()=>[M(g(p(r)("comp.uploadAnyway")),1)]),_:1},8,["loading","onClick"])]),_:1})])]),default:l(()=>[m("div",xe,[m("div",Re,[s(ge,{src:p(P)},null,8,["src"])]),m("div",De,[m("span",null,g(p(r)("comp.similar"))+":",1),(h(!0),L(ue,null,de(w.value,i=>(h(),F(_,{key:i._id,class:"inline-block ml-[5px] mr-[5px]",to:`/similarPreview/${i._id}`,target:"_blank"},{default:l(()=>[m("span",Oe,g(i.name),1)]),_:2},1032,["to"]))),128))])])]),_:1},8,["modelValue"])}}}),Ae={class:"size-full p-[10px]"},Fe={class:"overflow-hidden size-full"},Le={key:0,class:"cursor-not-allowed bg-gray-100 dark:bg-gray-800 absolute inset-0 flex items-center justify-center"},Ue={class:"text-gray-500"},ot=j({__name:"index",setup(q){const I=Ce(()=>ee(()=>import("./index-BqUY_Pbs.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),{t:r}=X(),d=_e(),w=fe(),{teamId:a}=Te(),P=N(Q,!1),e=ie(w.path,y.DIALOG_TYPE_ADD)();Ee(y.PROVIDE_KEY_COMP_EDIT_STORE,e);const T=B("dialogPutTreaty"),x=B("dialogCompRepeat"),c=N(W,330);c.value<=0&&(c.value=330);const f=U(""),_=Se(()=>e.selectedFolder?.path);async function R(t){const o=await v.v1Comp.compcontrollerDir({compPath:t}),{tree:n,files:u}=o.data;e.setOriginalDirectory(n),e.setOriginalDirectoryList(u);const E=n?.children||[];if(E?.length){const D=E.find(Z=>Z.name===y.COMP_CONFIG_FILENAME);if(!D)return"NOT_EXIST";const S=await v.v1Comp.compcontrollerFile({filePath:D.path}),{content:k}=S.data,A=JSON.parse(k).__id__;if(!A)return"NOT_EXIST";const G=await te.v1Comp.compcontrollerCheckcompexistbyid({compId:A}),{exist:J}=G.data;if(J)return f.value=A,"EXIST"}return"NOT_EXIST"}const i=async(t,o)=>{if(o()){if(e.$reset(),!P.value){T.value?.open(n=>{n&&(P.value=!0,C(t))});return}C(t)}};async function C(t){const o=le.service({fullscreen:!0}),n=await R(t.path);if(n==="NOT_EXIST"){const u=await v.v1Comp.compcontrollerDep({compPath:t.path}),{thirdParty:E}=u.data;e.setSelectedFolder(t),z(()=>{e.initPreviewCompList(),e.setCompDep(E),o.close()}),window?.umami?.track(O.UPLOAD_SELECT_FOLDER,{path:t.path})}else n==="EXIST"&&re.confirm(r("comp.compAlreadyUploaded"),r("common.warning"),{confirmButtonText:r("common.confirm"),cancelButtonText:r("common.cancel"),type:"warning"}).catch(()=>{}).finally(()=>{o.close()})}async function b({end:t}){try{const o=e.getCompSubmitParams(),n=await v.v1Comp.compcontrollerCheckcomprepeat({compPath:_.value,...a?{teamId:a}:{}}),{similarList:u=[]}=n.data;if(u.length){x.value?.open(u,H),t();return}await v.v1Comp.compcontrollerSubmit({...o,...a?{teamId:a}:{}}),V.success(r("message.success.upload")),window?.umami?.track(O.UPLOAD_SUCCESS,{compPath:_.value,teamId:a,isRepeat:!1}),await $(),e.$reset()}catch(o){console.error("上传失败:",o),window?.umami?.track(O.UPLOAD_FAILED,{compPath:_.value,teamId:a,error:String(o)})}finally{t()}}function H({end:t}){const o=e.getCompSubmitParams();v.v1Comp.compcontrollerSubmit({...o,...a?{teamId:a}:{}}).then(async()=>{x.value?.close(),await $(),e.$reset(),V.success(r("message.success.upload")),window?.umami?.track(O.UPLOAD_SUCCESS,{compPath:_.value,teamId:a,isRepeat:!0})}).finally(()=>{t()})}async function $(){a?await d.push({name:"team",params:{teamId:a},query:{[y.ROUTE_STATE_KEY_VERSION]:Date.now()}}):await d.push({name:"mine",query:{[y.ROUTE_STATE_KEY_VERSION]:Date.now()}})}async function K(){const t=e.selectedFolder;e.$reset(),await z(),C(t)}return ve(()=>{e.$reset()}),(t,o)=>{const n=ae,u=Y("Icon"),E=se,D=ne;return h(),L("div",Ae,[s(D,null,{default:l(()=>[s(n,{size:p(c),"onUpdate:size":o[0]||(o[0]=S=>he(c)?c.value=S:null),collapsible:"",max:"30%"},{default:l(()=>[m("div",Fe,[s(ye,null,{default:l(({isLogin:S})=>[s(p(I),{onSelect:k=>i(k,S)},null,8,["onSelect"])]),_:1})])]),_:1},8,["size"]),s(n,{class:"size-full rounded-sm relative !overflow-hidden"},{default:l(()=>[_.value?(h(),F(me,{key:1,onConfirmUpload:b,onReload:K})):(h(),L("div",Le,[s(E,null,{image:l(()=>[m("div",null,[s(u,{icon:"material-symbols:folder-info"})])]),description:l(()=>[m("span",Ue,g(p(r)("comp.pleaseSelectFolderFirst")),1)]),_:1})]))]),_:1})]),_:1}),s(pe,{ref:"dialogPutTreaty"},null,512),s(ke,{ref:"dialogCompRepeat"},null,512)])}}});export{ot as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a2 as R,e as $,W as H,L as F,b as q,K as z,J as C}from"./vendor-ui-CGT0cG1n.js";import{B as K,t as u,p as k}from"./index-CdLdwW7r.js";import"./el-table-column-CGzXlVpD.js";import{v as L,aA as Q,aD as W,a7 as j,ab as g,l as T,r as s,aO as r,_ as A,A as w,q as E,ap as v,ax as p,F as G,ah as J,j as X,i as Z,af as I,g as o,ao as ee}from"./vendor-core-BKehvho7.js";import{b as ae}from"./index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js";import{h as M}from"./moment-B-YVwB4U.js";import{u as te}from"./useTeamHeaders-DxHN7-t0.js";import{_ as oe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import"./index-BYC9CuLh.js";import"./useCompMetaLocalStore-BKTMp_k8.js";/* empty css */import"./useVscodeOpen-SZpyzVHG.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./useCacheOssStore-OAoLDVbw.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-BVw3M4ej.js";const ne={class:"size-full"},re={class:"text-gray-300"},Te=L({__name:"index",setup(le){const{t:a}=Q(),x=W(),{headers:i,teamId:f}=te(),_=ae(f)(),b=I([]),d=I({data:[],column:[{prop:"name",label:o(()=>a("comp.name")),align:"center"},{prop:"authorId.nickname",label:o(()=>a("common.author")),align:"center",formatter:e=>e.teamUserNickname||e.authorId?.nickname||"--"},{prop:"version",label:o(()=>a("comp.version")),align:"center"},{prop:"desc",label:o(()=>a("comp.desc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{prop:"createdAt",label:o(()=>a("team.createTime")),align:"center",formatter:e=>e.createdAt?M(e.createdAt).format("YYYY-MM-DD"):"--"},{prop:"updatedAt",label:o(()=>a("team.updateTime")),align:"center",formatter:e=>e.updatedAt?M(e.updatedAt).format("YYYY-MM-DD"):"--"},{slot:"canUpdateUsers",prop:"canUpdateUsers",label:o(()=>a("team.updateAuth")),align:"center"},{slot:"operation",prop:"operation",label:o(()=>a("common.operation")),align:"center"}],search:{column:[{prop:"keyword",component:ee(q),label:o(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:o(()=>a("comp.keywordPlaceholder")),fetchSuggestions:D,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0},fixedHeight:!1,fetchData:O}),B=o(()=>b.value.map(e=>({value:e._id,label:e.teamUserNickname||e.nickname||e.account})));function D(e,t){if(e.length<=1)return t([]);u.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeam"},{headers:i}).then(c=>{const{keywords:l=[]}=c.data||{};t(l)})}async function O(e){const t=await u.v1Team.teamcontrollerTeamcomps({...e,scene:"management"},{headers:i}),{rows:c,total:l}=t.data||{};d.value.data=c||[],d.value.pagination.total=l||0}async function N(e,t){t.start();try{if(await z.confirm(a("team.deleteCompConfirm",{name:e.name}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;await u.v1Team.teamcontrollerRemovecompfromteam({compIds:[e._id]},{headers:i}).then(()=>{C.success(a("message.success.delete")),d.value.data=d.value.data.filter(l=>l._id!==e._id),_.setTeamDetail({..._.teamDetail,compCount:_.teamDetail.compCount-1}),window?.umami?.track(k.TEAM_COMP_REMOVE,{teamId:f,compId:e._id,compName:e.name})})}finally{t.end()}}function S(e){x.push({path:`/previewTeam/${f}/${e._id}`})}function V(){u.v1Team.teamcontrollerAllmember({headers:i}).then(e=>{b.value=e.data?.rows||[]})}function Y(e){const t={compId:e._id,canUpdateUserIds:e.canUpdateUsers||[]};u.v1Team.teamcontrollerUpdatecompcanupdateusers(t,{headers:i}).then(()=>{C.success(a("message.success.update")),window?.umami?.track(k.TEAM_COMP_PERMISSION_CHANGE,{teamId:f,compId:e._id,userIds:t.canUpdateUserIds})})}return j(()=>{V()}),(e,t)=>{const c=F,l=H,U=R,y=$;return g(),T("div",ne,[s(p(K),{tableConfig:d.value,border:""},{canUpdateUsers:r(({col:h})=>[s(U,A(w(h)),{default:r(({row:m})=>[s(l,{modelValue:m.canUpdateUsers,"onUpdate:modelValue":n=>m.canUpdateUsers=n,multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:p(a)("team.selectCanUpdateUser"),onChange:n=>Y(m)},{header:r(()=>[Z("span",re,v(p(a)("team.authorAutoAuth")),1)]),default:r(()=>[(g(!0),T(G,null,J(B.value,n=>(g(),X(c,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:1},16)]),operation:r(({col:h})=>[s(U,A(w(h)),{default:r(({row:m})=>[s(y,{type:"primary",onClick:n=>S(m)},{default:r(()=>[E(v(p(a)("common.preview")),1)]),_:1},8,["onClick"]),s(p(oe),null,{default:r(({instance:n,loading:P})=>[s(y,{type:"danger",loading:P,onClick:se=>N(m,n)},{default:r(()=>[E(v(p(a)("common.delete")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)]),_:1},16)]),_:1},8,["tableConfig"])])}}});export{Te as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{r as T,a3 as A,U as V,w as R,f as D}from"./vendor-ui-
|
|
1
|
+
import{r as T,a3 as A,U as V,w as R,f as D}from"./vendor-ui-CGT0cG1n.js";import{z as G,F as P,t as F}from"./index-CdLdwW7r.js";/* empty css *//* empty css */import{_ as K}from"./index.vue_vue_type_script_setup_true_lang-CgaIiyg6.js";import{v as k,ab as r,l as u,i as p,q as c,g as z,aA as C,r as o,ax as t,aO as i,ap as l,k as w,a7 as q,aj as Q,F as x,j as E,ah as W,af as J}from"./vendor-core-BKehvho7.js";import{_ as Y}from"./CanvasAnimation.vue_vue_type_script_setup_true_lang-Xr4R8ONt.js";import{H as N}from"./core-CcVTMiBP.js";function Z(e){const s=e.regex,n={},d={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:s.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},d]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},m=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),h={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},f={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,a]};a.contains.push(f);const _={match:/\\"/},b={className:"string",begin:/'/,end:/'/},S={match:/\\'/},v={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},y=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=e.SHEBANG({binary:`(${y.join("|")})`,relevance:10}),H={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},L=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],U=["true","false"],B={match:/(\/[a-z._-]+)+/},I=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],$=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],O=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],M=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:L,literal:U,built_in:[...I,...$,"set","shopt",...O,...M]},contains:[g,e.SHEBANG(),H,v,m,h,B,f,_,b,S,n]}}const X={class:"code-container"},j={class:"hljs"},ee=["innerHTML"],te=k({__name:"CodeHighlight",props:{code:{},language:{}},setup(e){N.registerLanguage("bash",Z);const s=e,n=z(()=>s.code?N.highlight(`${s.code}`,{language:s.language}).value:"");return(d,a)=>(r(),u("div",X,[p("pre",j,[a[0]||(a[0]=c(" ",-1)),p("code",{innerHTML:n.value},null,8,ee),a[1]||(a[1]=c(`
|
|
2
2
|
`,-1))])]))}}),se={class:"flex items-center gap-[5px]"},ne={key:0},ae={class:"text-sm whitespace-pre-line leading-5"},oe=k({__name:"UpgradeItem",props:{version:{type:String,default:""},desc:{type:String,default:""},latestVersion:{type:String,default:""}},setup(e){const{t:s}=C(),n=e,d=z(()=>n.latestVersion===n.version.replace(/^[^0-9]+/,""));return(a,m)=>(r(),u("div",null,[o(t(T),{"content-position":"center"},{default:i(()=>[p("div",se,[o(t(A),{type:d.value?"primary":"info",round:"",size:"small"},{default:i(()=>[d.value?(r(),u("span",ne,l(t(s)("upgrade.current")),1)):w("",!0),c(" "+l(e.version),1)]),_:1},8,["type"])])]),_:1}),p("p",ae,l(e.desc),1)]))}}),re={class:"relative"},ie={class:"flex items-center gap-[5px]"},ce={key:0,class:"flex items-center justify-center"},le={class:"mb-[10px]"},de=`
|
|
3
3
|
# 全局安装最新版本
|
|
4
4
|
npm install comp-hub@latest -g
|
|
5
|
-
`,
|
|
5
|
+
`,Se=k({__name:"index",setup(e){const{t:s}=C(),n=J([]),d=G(),a=P();return q(async()=>{const m=await F.v1Upgrade.upgradecontrollerLogs();n.value=m.data.rows??[]}),(m,h)=>{const f=Q("router-link"),_=A,b=R,S=T,v=V,y=D;return r(),u("div",re,[o(t(Y)),o(y,{"body-class":"!p-0",class:"absolute inset-0 max-w-[1200px] mx-auto overflow-hidden"},{default:i(()=>[o(v,{"wrap-class":"p-[20px]"},{default:i(()=>[p("div",ie,[o(f,{to:"/"},{default:i(()=>[o(K)]),_:1}),o(_,{disableTransitions:"",type:"info",round:"",size:"small"},{default:i(()=>[c(l(t(d).compHubVersion),1)]),_:1})]),t(a).hasUpgrade?w("",!0):(r(),u("div",ce,[o(b,{description:t(s)("upgrade.noUpdate")},null,8,["description"])])),t(a).isUpgrade?(r(),u(x,{key:1},[o(S,{"content-position":"center"},{default:i(()=>[c(l(t(s)("upgrade.updateMethod")),1)]),_:1}),p("div",le,[c(l(t(s)("upgrade.title"))+" ",1),h[0]||(h[0]=p("span",{class:"font-bold"},"comp-hub",-1)),c(" "+l(t(s)("upgrade.openTerminalAndRun")),1)]),t(a).isForceUpgrade?(r(),E(_,{key:0,disableTransitions:"",type:"danger",round:"",size:"small"},{default:i(()=>[c(l(t(s)("upgrade.cannotIgnoreUpdate")),1)]),_:1})):(r(),E(_,{key:1,disableTransitions:"",type:"primary",round:"",size:"small"},{default:i(()=>[c(l(t(s)("upgrade.hasUpdate")),1)]),_:1})),o(t(te),{code:de,language:"bash",class:"mt-1"})],64)):w("",!0),p("div",null,[(r(!0),u(x,null,W(n.value,g=>(r(),E(t(oe),{key:g.version,version:g.version,desc:g.desc,latestVersion:t(a).latestVersion},null,8,["version","desc","latestVersion"]))),128))])]),_:1})]),_:1})])}}});export{Se as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aJ as L,U as C}from"./vendor-ui-CGT0cG1n.js";import{u as t,B as g,q as v}from"./index-CdLdwW7r.js";import{c as E,a as b}from"./index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js";import{v as w,aC as O,aD as h,ac as p,a9 as S,aP as T,ax as r,ab as P,l as R,r as n,aO as l,af as x}from"./vendor-core-BKehvho7.js";import"./index-BYC9CuLh.js";import"./useCompMetaLocalStore-BKTMp_k8.js";/* empty css */import"./useVscodeOpen-SZpyzVHG.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useTeamHeaders-DxHN7-t0.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-BVw3M4ej.js";const A={class:"size-full p-[10px] pr-0"},F=w({__name:"index",setup(I){const m=O(),_=h(),a=E(m.path,t.COMP_LIST_TYPE_LOCAL)();p(t.PROVIDE_KEY_COMP_LIST_STORE,a);const u=new Map;p(t.PROVIDE_KEY_CALLBACKS,u);const i=x({data:[],pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:f});async function f(o){a.setLoading(!0);const c=await v.v1Comp.compcontrollerLocalcomps(o),{rows:e,total:s}=c.data||{};a.renderList(e),i.value.pagination.total=s||0,a.setLoading(!1)}function d(o){_.push({path:`/previewLocal/${o}`})}return S(()=>{a.$reset()}),(o,c)=>{const e=C,s=L;return T((P(),R("div",A,[n(r(g),{tableConfig:i.value},{table:l(()=>[n(e,{always:"",wrapClass:"pr-[10px]"},{default:l(()=>[n(b,{compType:r(t).IFRAME_ROUTES.CONTAINER.LOCAL,onPreviewLocal:d},null,8,["compType"])]),_:1})]),_:1},8,["tableConfig"])])),[[s,r(a).loading]])}}});export{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as M}from"./vendor-core-
|
|
1
|
+
import{w as M}from"./vendor-core-BKehvho7.js";import{n as p,u as o}from"./index-CdLdwW7r.js";const P=(a="")=>{if(!a)throw new Error("createCompMetaStore scopeId is required");return M(`compMeta_${a}`,{state:()=>({detail:{},depEntryNameToFile:{},versionToFileAccessPath:{},localCompInfo:[],latestVersion:""}),getters:{isLocalExist:e=>e.localCompInfo.length!==0,latestVersionToFileAccessPath:e=>e.versionToFileAccessPath[e.latestVersion]??[]},actions:{setLatestVersion(e){this.$patch(t=>{t.latestVersion=e})},setLocalCompInfo(e){this.$patch(t=>{t.localCompInfo=e})},setDetail(e,t){this.$patch(r=>{r.detail[e]={...r.detail[e],...t}})},setDepEntryNameToFile(e,t){this.$patch(r=>{r.depEntryNameToFile[e]=t})},setVersionToFileAccessPath(e,t){this.$patch(r=>{r.versionToFileAccessPath[e]=t})}}})};function f(a,e){return a.filter(t=>{const r=e.find(l=>l.name===t.name||l.name===t.parent?.name);if(!r)return!1;const{match:h}=r,{major:s,minor:n,patch:m}=p.parseVersion(t.version),{major:i,minor:c,patch:T}=p.parseVersion(r.version);switch(h){case o.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case o.COMP_MATCH_TYPE_MAJOR_VERSION:return s===i;case o.COMP_MATCH_TYPE_MINOR_VERSION:return s===i&&n===c;case o.COMP_MATCH_TYPE_EXACT_VERSION:return s===i&&n===c&&m===T}})}export{P as c,f as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a2 as $,e as B,a3 as H,A as S,J as j}from"./vendor-ui-CGT0cG1n.js";import{B as z,t as C,p as h}from"./index-CdLdwW7r.js";import"./el-table-column-CGzXlVpD.js";import{b as M}from"./index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang-BYKlY94g.js";import{u as w}from"./useTeamHeaders-DxHN7-t0.js";import{v as D,aA as J,ab as u,l as d,r as o,p as L,ax as s,aO as r,_ as T,A as E,q as _,ap as f,af as N,g as c,ao as V}from"./vendor-core-BKehvho7.js";import{_ as Y}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import"./index-BYC9CuLh.js";import"./useCompMetaLocalStore-BKTMp_k8.js";/* empty css */import"./useVscodeOpen-SZpyzVHG.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./useCacheOssStore-OAoLDVbw.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-BVw3M4ej.js";const q={class:"size-full"},O={key:0},Q={key:1},ca=D({__name:"index",setup(F){const{t:a}=J(),{headers:v,teamId:g}=w(),I=M(g)(),i=N({data:[],column:[{slot:"avatar",prop:"userId.avatar",label:c(()=>a("user.avatar")),align:"center"},{prop:"userId.account",label:c(()=>a("user.account")),align:"center"},{prop:"userId.nickname",label:c(()=>a("user.nickname")),align:"center",formatter(e){return e.userId.nickname||"--"}},{slot:"operation",prop:"operation",label:c(()=>a("common.operation")),align:"center"}],pagination:{total:0},search:{column:[{prop:"keyword",component:V(S),value:"",autoQuery:!1,attributes:{placeholder:c(()=>`${a("user.account")}/${a("user.nickname")}`)}}]},fixedHeight:!1,fetchData:A});async function A(e){const l=await C.v1Team.teamcontrollerApplylist({...e},{headers:v}),{rows:n,total:t}=l.data||{};i.value.data=n||[],i.value.pagination.total=t||0}function y(e,l,n){n.start(),C.v1Team.teamcontrollerHandleapply({applyId:e._id,isAgree:l},{headers:v}).then(()=>{i.value.data=i.value.data?.map(t=>(t._id===e._id&&(t.status=l?"approved":"rejected"),t)),j.success(a("message.success.operation")),window?.umami?.track(l?h.TEAM_APPLY_ACCEPT:h.TEAM_APPLY_REJECT,{teamId:g,applyId:e._id})}).finally(()=>{n.end()})}return(e,l)=>{const n=$,t=B,x=H;return u(),d("div",q,[o(s(z),{tableConfig:i.value,border:""},L({avatar:r(({col:m})=>[o(n,T(E(m)),{default:r(({row:p})=>[o(R,{src:p.userId.avatar,size:40},null,8,["src"])]),_:1},16)]),_:2},[s(I).isCreator?{name:"operation",fn:r(({col:m})=>[o(n,T(E(m)),{default:r(({row:p})=>[p.status==="pending"?(u(),d("div",O,[o(s(Y),null,{default:r(({instance:b,loading:k})=>[o(t,{type:"danger",loading:k,onClick:P=>y(p,!1,b)},{default:r(()=>[_(f(s(a)("team.reject")),1)]),_:1},8,["loading","onClick"]),o(t,{type:"primary",loading:k,onClick:P=>y(p,!0,b)},{default:r(()=>[_(f(s(a)("team.agree")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)])):(u(),d("div",Q,[o(x,{type:"info"},{default:r(()=>[_(f(p.status==="approved"?s(a)("team.approved"):s(a)("team.rejected")),1)]),_:2},1024)]))]),_:1},16)]),key:"0"}:void 0]),1032,["tableConfig"])])}}});export{ca as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as V,aM as B,a9 as G,B as H,g as S,ao as _}from"./vendor-core-
|
|
1
|
+
import{v as V,aM as B,a9 as G,B as H,g as S,ao as _}from"./vendor-core-BKehvho7.js";const q=/\sid="(\S+)"/g,P=new Map;function K(t){t=t.replace(/[0-9]+$/,"")||"a";const s=P.get(t)||0;return P.set(t,s+1),s?`${t}${s}`:t}function Q(t){const s=[];let n;for(;n=q.exec(t);)s.push(n[1]);if(!s.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(e=>{const r=K(e),i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const U=Object.freeze({left:0,top:0,width:16,height:16}),I=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),k=Object.freeze({...U,...I}),W=Object.freeze({...k,body:"",hidden:!1}),J=/(-?[0-9.]*[0-9]+[0-9.]*)/g,X=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function x(t,s,n){if(s===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*s*n)/n;if(typeof t!="string")return t;const o=t.split(J);if(o===null||!o.length)return t;const e=[];let r=o.shift(),i=X.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?e.push(r):e.push(Math.ceil(c*s*n)/n)}else e.push(r);if(r=o.shift(),r===void 0)return e.join("");i=!i}}const Y=Object.freeze({width:null,height:null}),Z=Object.freeze({...Y,...I});function tt(t,s="defs"){let n="";const o=t.indexOf("<"+s);for(;o>=0;){const e=t.indexOf(">",o),r=t.indexOf("</"+s);if(e===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;n+=t.slice(e+1,r).trim(),t=t.slice(0,o).trim()+t.slice(i+1)}return{defs:n,content:t}}function et(t,s){return t?"<defs>"+t+"</defs>"+s:s}function nt(t,s,n){const o=tt(t);return et(o.defs,s+o.content+n)}const ot=t=>t==="unset"||t==="undefined"||t==="none";function st(t,s){const n={...k,...t},o={...Z,...s},e={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(d=>{const h=[],R=d.hFlip,C=d.vFlip;let m=d.rotate;R?C?m+=2:(h.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),h.push("scale(-1 1)"),e.top=e.left=0):C&&(h.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),h.push("scale(1 -1)"),e.top=e.left=0);let w;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:w=e.height/2+e.top,h.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:h.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:w=e.width/2+e.left,h.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}m%2===1&&(e.left!==e.top&&(w=e.left,e.left=e.top,e.top=w),e.width!==e.height&&(w=e.width,e.width=e.height,e.height=w)),h.length&&(r=nt(r,'<g transform="'+h.join(" ")+'">',"</g>"))});const i=o.width,c=o.height,a=e.width,f=e.height;let l,u;i===null?(u=c===null?"1em":c==="auto"?f:c,l=x(u,a/f)):(l=i==="auto"?a:i,u=c===null?x(l,f/a):c==="auto"?f:c);const p={},g=(d,h)=>{ot(h)||(p[d]=h.toString())};g("width",l),g("height",u);const b=[e.left,e.top,a,f];return p.viewBox=b.join(" "),{attributes:p,viewBox:b,body:r}}function T(t){return Q(typeof t=="string"?t:st(t).body)}function rt(t){return`${t.left??0} ${t.top??0} ${t.width} ${t.height}`}function it(t,s,n){const o=typeof n=="object"?rt(n):void 0,e=typeof n=="number"?n:n.width/n.height;return t&&s?{width:t,height:s,viewBox:o}:s?{width:x(s,e),height:s,viewBox:o}:t?{width:t,height:x(t,1/e),viewBox:o}:{viewBox:o}}const y=Object.create(null),ct=Object.create(null);function lt(t,s){y[t]=s}function at(t,s){return t?y[t]:ct[s]||y[""]}const v=new Set;let j=!1;function F(t){try{const s=t();s instanceof Promise&&s.catch(n=>{console.error(n)})}catch(s){console.error(s)}}function M(t,s=!1){if(s){F(t);return}v.add(t),j||(j=!0,setTimeout(()=>{j=!1;const n=Array.from(v);v.clear(),n.forEach(F)}))}function ut(){const t=new Set;let s=!1;const n=Object.create(null),o=new Set,e=new Set,r=[];function i(c,a){if(e.delete(c),a){if(n[c]===a)return;n[c]=a,o.delete(c)}else{if(o.has(c))return;delete n[c],o.add(c)}t.add(c),s||(s=!0,setTimeout(()=>{s=!1,r.forEach(f=>{for(const l of f.names)if(l==="*"||t.has(l)){M(f.callback);return}}),t.clear()}))}return{icons:n,missing:o,pending:e,subscribers:r,update:i}}const E=Object.create(null);function $(t,s){const n=E[t]||(E[t]=Object.create(null));return n[s]||(n[s]=ut())}function ft(t,s){const n={};!t.hFlip!=!s.hFlip&&(n.hFlip=!0),!t.vFlip!=!s.vFlip&&(n.vFlip=!0);const o=((t.rotate||0)+(s.rotate||0))%4;return o&&(n.rotate=o),n}function A(t,s){const n=ft(t,s);for(const o in W)o in I?o in t&&!(o in n)&&(n[o]=I[o]):o in s?n[o]=s[o]:o in t&&(n[o]=t[o]);return n}function ht(t,s){const n=t.icons,o=t.aliases||Object.create(null),e=Object.create(null);function r(i){if(n[i])return e[i]=[];if(!(i in e)){e[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(e[i]=[c].concat(a))}return e[i]}return Object.keys(n).concat(Object.keys(o)).forEach(r),e}function dt(t,s,n){const o=t.icons,e=t.aliases||Object.create(null);let r={};function i(c){r=A(o[c]||e[c],r)}return i(s),n.forEach(i),A(t,r)}function pt(t,s){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(e=>{s(e,null),n.push(e)});const o=ht(t);for(const e in o){const r=o[e];r&&(s(e,dt(t,e,r)),n.push(e))}return n}function gt(t,s=""){const n=new Set,o=$(s,t.prefix);return pt(t,(e,r)=>{o.update(e,r),n.add(e)}),n}const N=/^[a-z0-9]+(-[a-z0-9]+)*$/,z=(t,s,n,o="")=>{const e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;o=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){const c=e.pop(),a=e.pop();return{provider:e.length>0?e[0]:o,prefix:a,name:c}}const i=e[0].split("-");return i.length>1?{provider:o,prefix:i.shift(),name:i.join("-")}:null},L=new Map,bt=750;let wt=fetch;function mt(t,s,n,o){const e=t.join(","),r=L.get(e)||0,i=t.length;o=o||new AbortController,n=n||{},n.signal=o.signal;const c=[];for(let a=0;a<i;a++){const f=a,l=(r+f)%i,u=`${t[l]}${s}`,p=async()=>{for(let d=0;d<f;d++)if(await new Promise(h=>setTimeout(h,bt)),o.signal.aborted)throw new Error("Fetch aborted");const g=await wt(u,n);if(!g.ok)throw new Error(`HTTP error! status: ${g.status}`);const b=await g.json();return L.set(e,l),o.abort(),b};c.push(p())}return Promise.any(c)}function St(t,s,n=!0){const o=Array.isArray(t)?t:[t],e=n&&(typeof window>"u"||!window.document);return{maxCount:32,maxLength:480,validateNames:!0,hosts:o,loadIcons:async(r,i)=>e||!N.test(i)?{prefix:i,icons:Object.create(null),not_found:r}:await mt(o,`/${i}.json?icons=${r.join(",")}`,s)}}function It(t,s){for(const n in s){const o=s[n],e=t[n]||(t[n]=Object.create(null));for(const r in o){const i=o[r];e[r]?.length?e[r]=Array.from(new Set([...i,...e[r]])):e[r]=i.slice(0)}}}function xt(t,s){const n=Object.create(null);for(const o of t){const e=typeof o=="string"?z(o):o;if(e){const r=n[e.provider]||(n[e.provider]=Object.create(null)),i=r[e.prefix]||(r[e.prefix]=[]);i.includes(e.name)||i.push(e.name)}}return n}function vt(t,s){const{maxCount:n,maxLength:o}=s;t.sort((c,a)=>c.localeCompare(a));const e=[];let r=[],i=0;for(const c of t){const a=c.length+1;i&&(o&&i+a>o||n&&r.length>=n)&&(e.push(r),r=[],i=0),i+=a,r.push(c)}return r.length>0&&e.push(r),e}let O=Object.create(null);function jt(){const t=O;O=Object.create(null);for(const s in t){const n=t[s];for(const o in n){const e=n[o];if(e.length){const r=$(s,o),i=at(s,o),c=i?.allowReload??!1,a=i?.validateNames??!0,f=[];if(e.forEach(l=>{if(!r.pending.has(l)&&!((r.icons[l]||r.missing.has(l))&&!c)){if(!i||a&&!N.test(l)){r.update(l,null);return}f.push(l),r.pending.add(l)}}),i&&f.length){const l=[];if("loadIcon"in i)for(const u of f)l.push(new Promise(p=>{i.loadIcon(u,s,o).then(g=>{r.update(u,g),p()}).catch(()=>{r.update(u,null),p()})}));else{const u=vt(f,i);for(const p of u){const g=b=>{const d=b?gt(b,s):new Set;for(const h of p)d.has(h)||r.update(h,null)};l.push(new Promise(b=>{i.loadIcons(p,o,s).then(d=>{g(d),b()}).catch(()=>{g(),b()})}))}}Promise.all(l).catch(console.error)}}}}}function yt(t,s=!1){const n=Array.isArray(t)?xt(t):t;It(O,n),M(jt,s)}function D(t,s){const n=t.subscribers.findIndex(o=>o.key===s);n!==-1&&t.subscribers.splice(n,1)}function Ot(t,s,n,o){o&&D(t,o),o=o||Symbol();const e={key:o,names:new Set(s),callback:n};return t.subscribers.push(e),o}function Dt(t,s){const n=Symbol();let o=!1,e=!1,r=null,i=null,c;const a=()=>{if(!i||!r){c!==null&&(c=null,e&&s(null));return}const l=r.name,u=i.icons[l]||(i.missing.has(l)?null:void 0);u===void 0&&!i.pending.has(l)&&yt({[r.provider]:{[r.prefix]:[l]}}),c!==u&&(c=u,e&&s(c))},f=l=>{if(o)return;i&&D(i,n);const u=typeof l=="string"?z(l):{...l};if(u&&"body"in u){r=null,c=u,i=null;return}r=u,r?(i=$(r.provider,r.prefix),Ot(i,[r.name],a),a()):(i=null,a())};return f(t),e=!0,{unsubscribe:()=>{o=!0,i&&D(i,n)},change:f,data:c}}function $t(){try{return window.CSS.supports('d: path("M0 0")')}catch{return!0}}const Ct=$t();lt("",St(["https://api.iconify.design","https://api.simplesvg.com","https://api.unisvg.com"]));const Tt=V(t=>{const s=S(()=>T(t.content||"")),n=S(()=>Ct&&t.content?"":t.fallback||""),o=_(null),e=Dt(n.value,c=>{o.value=c});o.value=e.data,B(n,e.change),G(e.unsubscribe);const r=S(()=>{const c=o.value;return c?T(c):""}),i=S(()=>it(t.width,t.height,t.viewBox));return()=>H("svg",{xmlns:"http://www.w3.org/2000/svg",...i.value,innerHTML:r.value||s.value})},{props:["width","height","viewBox","content","fallback"]});export{Tt as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aH as k,aD as A,J as u}from"./vendor-ui-CGT0cG1n.js";import{S as D,d as L,u as c,o as w,x as R,G as y}from"./index-CdLdwW7r.js";import{v as N,aA as S,aC as B,af as o,a7 as G,aj as I,ab as f,l as z,j as T,X as V,k as $,g as d,Y as b}from"./vendor-core-BKehvho7.js";const j={class:"size-full"},X=N({__name:"index",emits:["select"],setup(H,{emit:v}){const{locale:m,t:l}=S(),h={zh:"zhCN",en:"en"},p=d(()=>h[m.value]),t=o(null),n=o(!0),_=B(),r=k(`${D}_${_.path}`,""),g=v,E=A(),F=`${R()}/api/v1/vuefinder`,P=new L({baseURL:F,url:{list:"/list"}}),i=o(r.value||c.FILE_MANAGER_DIRNAME),x=d(()=>({selectionMode:"single",driver:P,features:{search:!1,upload:!1,delete:!1,rename:!1,preview:!1,edit:!1,archive:!1,unarchive:!1,newfile:!1,newfolder:!1,fullscreen:!1,download:!1,language:!0,move:!1,copy:!1,history:!1,theme:!1,pinned:!1},contextMenuItems:[...y,{id:"select-folder",title:()=>l("file.select"),action:(a,e)=>{if(e.length>1){u.error(l("file.multiSelect"));return}const{type:s="dir"}=e[0];if(s!=="dir"){u.error(l("file.onlyDir"));return}g("select",e[0])},show:(a,e)=>{const{target:s,items:M}=e;return M.length>1?!1:s?.type==="dir"}}],config:{initialPath:i.value,theme:E.value?"valorite":"silver"}}));function C(a){r.value=a,!a&&t.value&&(n.value=!1,b(()=>{n.value=!0,i.value=c.FILE_MANAGER_DIRNAME,t.value?.refresh()}))}return G(()=>{t.value=w("vueFinder")}),(a,e)=>{const s=I("VueFinder");return f(),z("div",j,[n.value?(f(),T(s,V({key:0,id:"vueFinder",locale:p.value},x.value,{onPathChange:C}),null,16,["locale"])):$("",!0)])}}});export{X as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as $,l as O,D as R,e as T,U as B}from"./vendor-ui-CGT0cG1n.js";import{u as m,A as N,e as F,q as w}from"./index-CdLdwW7r.js";import{v as b,aA as k,ab as L,l as z,r as e,aO as a,i as t,ax as l,ap as f,q as x,ac as j,aC as U,aD as q,a7 as K,aj as W,j as G,af as H,g}from"./vendor-core-BKehvho7.js";import{c as X}from"./useCompMetaLocalStore-BKTMp_k8.js";import{B as Y,_ as J}from"./index.vue_vue_type_script_setup_true_lang-CCaH-GEy.js";/* empty css *//* empty css */import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang-DPbqR98S.js";import{u as Z}from"./useVscodeOpen-SZpyzVHG.js";import{_ as ee}from"./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js";import{_ as oe}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./index.vue_vue_type_style_index_0_lang-BNPcBMvg.js";import"./core-CcVTMiBP.js";import"./useTeamHeaders-DxHN7-t0.js";import"./index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js";import"./index-BYC9CuLh.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useMessage-BVw3M4ej.js";const te={class:"size-full overflow-hidden flex flex-col"},ae={class:"size-full"},se={class:"flex items-center"},ne={class:"flex-1"},le={class:"text-xs ml-auto"},ce=b({__name:"index",props:{version:{},compAttrs:{}},setup(s){const{openCompPathInVscode:v}=Z(),h=s,{t:p}=k();function C(){v(h.compAttrs.fullPath,`./${m.COMP_CONFIG_FILENAME}`)}return(P,c)=>{const r=$,i=O,o=R;return L(),z("div",te,[e(l(ee),{class:"size-full flex-1 shrink-0 flex flex-col gap-1",bg:s.compAttrs?.bgColor},{default:a(({bg:u,updateColor:d})=>[e(r,{"body-class":"!p-0 !overflow-visible",class:"flex-1 relative z-10"},{default:a(()=>[t("div",ae,[e(Q,{compAttrs:s.compAttrs,version:s.version,compType:l(m).IFRAME_ROUTES.ITEM.PREVIEW_LOCAL},null,8,["compAttrs","version","compType"])])]),_:1}),t("div",se,[t("div",ne,[t("span",null,f(s.compAttrs?.version),1)]),t("span",le,[t("span",null,f(l(p)("comp.bgPanel"))+":",1),e(i,{teleported:!0,modelValue:u,clearable:"",onChange:d,onActiveChange:d},null,8,["modelValue","onChange","onActiveChange"])])])]),_:1},8,["bg"]),t("div",null,[x(f(l(p)("comp.compLocation"))+": ",1),e(o,{href:"javascript:void(0)",type:"primary",underline:"always",onClick:C},{default:a(()=>[x(f(s.compAttrs.fullPath),1)]),_:1})])])}}}),re={class:"h-[50vh]"},Le=b({__name:"index",setup(s){const{t:v}=k(),h=new Map;j(m.PROVIDE_KEY_CALLBACKS,h);const p=U(),C=q(),P=N(),{compId:c}=p.params,r=X(c)(),i=H(!1),o=g(()=>r.detail),u=g(()=>Object.keys(o.value??{}).length>0),d=g(()=>{const n=F.getPreviewUrl(o.value.path,[`\\${m.COMP_README_FILENAME}`]);return`${m.COMP_PREVIEW_PREFIX_LOCAL}/${n}`});async function D(){if(!c)return;i.value=!0;const n=await w.v1Comp.compcontrollerLocalcompdetailbypathhash({fullPathHash:c}),y=await w.v1Comp.compcontrollerDep({compPath:n.data.path}),{thirdParty:_=[]}=y.data,A=_.map(S=>S.name),E=await w.v1Module.modulecontrollerPrebuild({deps:A}),{entryNameToFile:V={}}=E.data;r.setDetail(n.data),r.setDep(_),r.setDepToFile(V),i.value=!1}function I(){P.addPayLoad(`/previewLocal/${c}`,{name:`${o.value?.name??""}`})}function M(){const{href:n}=C.resolve({name:"previewLocalBlank",params:{compId:c}});window.open(n,"_blank")}return K(async()=>{u.value||await D(),I()}),(n,y)=>{const _=W("Icon"),A=T,E=B;return L(),G(E,{"wrap-class":"preview-container",class:"size-full p-[10px]"},{default:a(()=>[e(l(oe),{isEmpty:!u.value,loading:i.value},{default:a(()=>[t("div",re,[e(l(Y),{title:o.value?.name,actions:["maximize"]},{beforeActions:a(()=>[e(A,{type:"primary",circle:"",title:l(v)("common.newPage"),onClick:M},{default:a(()=>[e(_,{icon:"material-symbols:screen-share-rounded"})]),_:1},8,["title"])]),default:a(()=>[e(ce,{compAttrs:o.value,version:o.value.version},null,8,["compAttrs","version"])]),_:1},8,["title"])]),e(J,{mdSrc:d.value,scrollContainer:".preview-container",stickyTopDistance:0,showSimilarComp:!1},null,8,["mdSrc"])]),_:1},8,["isEmpty","loading"])]),_:1})}}});export{Le as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./index.vue_vue_type_style_index_0_lang-CwaGkvXy.js";import{v as o,ab as t,l as r,r as s}from"./vendor-core-BKehvho7.js";import"./vendor-xterm-DbWxaMay.js";import"./index-CdLdwW7r.js";import"./vendor-ui-CGT0cG1n.js";const a={class:"size-full"},d=o({__name:"index",setup(n){return(_,c)=>(t(),r("div",a,[s(e)]))}});export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-e00e8e6e] .el-input__wrapper{background-color:#1c1e23;border:1px solid #36363a;box-shadow:none}.login-content-container[data-v-69bff7ed]{aspect-ratio:16/9;width:45%;max-width:1000px;min-width:740px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./index-CdLdwW7r.js";import{ab as s,l as o,i as r,ap as c}from"./vendor-core-BKehvho7.js";import"./vendor-ui-CGT0cG1n.js";const a={},n={class:"size-full flex items-center justify-center"},i={class:"text-2xl font-bold"};function l(e,f){return s(),o("div",n,[r("div",i,c(e.$t("route.404")),1)])}const p=t(a,[["render",l]]);export{p as default};
|