comp-hub 0.31.2 → 0.42.2
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/README.md +3 -2
- package/bin/lib/startup.js +1 -1
- package/dist/index.js +3 -3
- package/dist/master.js +23 -23
- package/dist/website/container/assets/{index-BR_ZVtEf.js → index-BF46-8S8.js} +13 -13
- package/dist/website/container/assets/{index-Y--RAA6W.css → index-DN-EG3Qh.css} +1 -1
- package/dist/website/container/index.html +3 -2
- package/dist/website/container/js/react-jsx-loader.js +233 -0
- package/dist/website/item/assets/index-C4D-8nqe.js +62 -0
- package/dist/website/item/assets/index-iYpmJN_Z.css +1 -0
- package/dist/website/item/index.html +2 -2
- package/dist/website/main/assets/{AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-C5to3ZQC.js → AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-XaDuBXZe.js} +1 -1
- package/dist/website/main/assets/{BaseBadge-DUuZfvYd.js → BaseBadge-CwPduDSy.js} +1 -1
- package/dist/website/main/assets/{BaseDialog.vue_vue_type_script_setup_true_lang-DhPHn879.js → BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js} +1 -1
- package/dist/website/main/assets/{BaseSegmented.vue_vue_type_script_setup_true_lang-D46cMrVi.js → BaseSegmented.vue_vue_type_script_setup_true_lang-QoRVS1cj.js} +1 -1
- package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-CisWACfW.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-C4ID6BIz.js} +1 -1
- package/dist/website/main/assets/{CodeMirrorEditor-Cqow8ROO-DMgFI1zV.js → CodeMirrorEditor-Cqow8ROO-Cb1F80wf.js} +3 -3
- package/dist/website/main/assets/{EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CAB4mEGu.js → EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js} +1 -1
- package/dist/website/main/assets/GithubCallback-CvYaECQV.js +1 -0
- package/dist/website/main/assets/ReplyForm.vue_vue_type_script_setup_true_lang-Cg6jGDaf.js +1 -0
- package/dist/website/main/assets/{core-DIlcfMir.js → core-yetgou6F.js} +1 -1
- package/dist/website/main/assets/{el-table-column-DUFMPIr5.js → el-table-column-BpgDq_WF.js} +1 -1
- package/dist/website/main/assets/index-3zCQDZnh.js +2 -0
- package/dist/website/main/assets/{index-72rReQ2I-sU_re5gS.js → index-72rReQ2I-BUkUG78x.js} +1 -1
- package/dist/website/main/assets/index-74ZEuWc8.js +1 -0
- package/dist/website/main/assets/index-9wcpsZe1.js +1 -0
- package/dist/website/main/assets/index-BCpgCtua.js +1 -0
- package/dist/website/main/assets/{index-HnLIbMTX.js → index-BJKOBdMx.js} +1 -1
- package/dist/website/main/assets/index-BMOsY3cQ.js +2 -0
- package/dist/website/main/assets/index-BMVmqejS.js +1 -0
- package/dist/website/main/assets/{index-BiQ2dJm4.js → index-BcfC5qCh.js} +1 -1
- package/dist/website/main/assets/{index-DwDo8mID.js → index-BnX30az1.js} +1 -1
- package/dist/website/main/assets/{index-Ct_U5I7y.js → index-BouHS9Ky.js} +1 -1
- package/dist/website/main/assets/index-Bp79GOY4.js +1 -0
- package/dist/website/main/assets/{index-Cbpqtmwk.js → index-BsZl8udl.js} +1 -1
- package/dist/website/main/assets/{index-B-fZjRMn.js → index-Bucicr-O.js} +1 -1
- package/dist/website/main/assets/index-CXKzXFNq.js +1 -0
- package/dist/website/main/assets/{index-DlU_hLR3.js → index-CbpqTP74.js} +1 -1
- package/dist/website/main/assets/{index-CxLzXF-b.js → index-CgJn84pE.js} +1 -1
- package/dist/website/main/assets/{index-CvGH1xqJ.css → index-CioMG7I6.css} +1 -1
- package/dist/website/main/assets/index-ClqLWOrM.js +1 -0
- package/dist/website/main/assets/index-CopP0_Oh.js +1 -0
- package/dist/website/main/assets/{index-Da5ZhB-r.js → index-CxeWFTBn.js} +1 -1
- package/dist/website/main/assets/index-CzxUr7HV.js +1 -0
- package/dist/website/main/assets/{index-CjE-geY_.css → index-D-8GYlU8.css} +1 -1
- package/dist/website/main/assets/{index-Jp4YN25a.js → index-D4WFMTSP.js} +1 -1
- package/dist/website/main/assets/{index-D76eWsZ1-BUecZt4E.js → index-D76eWsZ1-7KvuCuMg.js} +1 -1
- package/dist/website/main/assets/index-DCet9p8Y.js +1 -0
- package/dist/website/main/assets/{index-Cz3keLmq.js → index-DMO6XTC0.js} +1 -1
- package/dist/website/main/assets/{index-DKv4dFPY.js → index-DP0Xav0B.js} +1 -1
- package/dist/website/main/assets/index-DXY5BNS4.js +1 -0
- package/dist/website/main/assets/{index-Dms7ZQ2h-DY4-ZFKr.js → index-Dms7ZQ2h-BXeasSDQ.js} +1 -1
- package/dist/website/main/assets/{index-DqiFCfGx-BY8MJk0B.js → index-DqiFCfGx-4HZIi15Y.js} +1 -1
- package/dist/website/main/assets/{index-DxypSQ0K-CDh8t7kw.js → index-DxypSQ0K-DsBZbAQO.js} +1 -1
- package/dist/website/main/assets/{index-CnhaF7r3.js → index-FOvWqIoM.js} +1 -1
- package/dist/website/main/assets/{index-CQSvO48y.js → index-HvNFjpLq.js} +1 -1
- package/dist/website/main/assets/{index-Cu1aNpBv.js → index-KZ5xMbrf.js} +1 -1
- package/dist/website/main/assets/index-PtEeGBK6.js +1 -0
- package/dist/website/main/assets/{index-T76vWLBU-Bpnxnyfv.js → index-T76vWLBU-C2L4ZR6a.js} +1 -1
- package/dist/website/main/assets/{index-CnTuJQbj.js → index-YvDl_1WK.js} +23 -23
- package/dist/website/main/assets/{index-fZBcgzqR-QE1WZxps.js → index-fZBcgzqR-DZ4VEjtI.js} +1 -1
- package/dist/website/main/assets/{index-mqeGrL6B-DZ51JJUI.js → index-mqeGrL6B-zaO8HgOa.js} +1 -1
- package/dist/website/main/assets/{index-QDS7dx0M.js → index-rm7l2BT_.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-B5HoY3_0.js → index.vue_vue_type_script_setup_true_lang-2Z80ry6F.js} +1 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-C7h-Ycpm.js +1 -0
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BBmEjb-A.js → index.vue_vue_type_script_setup_true_lang-CHyooj4T.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-t73JgDYM.js → index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js} +2 -2
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Cy3ZPsfb.js +1 -0
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-87WT-7PF.js → index.vue_vue_type_script_setup_true_lang-DHWblo58.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-SpJl7c7B.js → index.vue_vue_type_style_index_0_lang-Bsi5S1XY.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-C30OZgOy.js → index.vue_vue_type_style_index_0_lang-DfBu8zdC.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-YYZCGIEM.js → index.vue_vue_type_style_index_0_lang-Digz_UdY.js} +1 -1
- package/dist/website/main/assets/{md5-BaIvdSuD.js → md5-CWhVn6LA.js} +1 -1
- package/dist/website/main/assets/{useCacheOssStore-B5wqgiBM.js → useCacheOssStore-KoEbWj57.js} +1 -1
- package/dist/website/main/assets/useCompEditStore-Ch5sDzy4.js +1 -0
- package/dist/website/main/assets/useCompEditStore-GUrodzAV.css +1 -0
- package/dist/website/main/assets/{useKeyword-BygMrCvJ.js → useKeyword-Bmq02ywx.js} +1 -1
- package/dist/website/main/assets/{useMessage-CHhLVawp.js → useMessage-BLwQdu5o.js} +1 -1
- package/dist/website/main/assets/{useTeamHeaders-a-XSRO3U.css → useTeamHeaders-BMHQzwDq.css} +1 -1
- package/dist/website/main/assets/{useTeamHeaders-C1Nwzx4f.js → useTeamHeaders-Bttl7tEb.js} +2 -2
- package/dist/website/main/assets/{useUnreadStore-D50CXC_9.js → useUnreadStore-kWR1ykK7.js} +1 -1
- package/dist/website/main/assets/{useVscodeOpen-CJ-3bg9h.js → useVscodeOpen-DyvB87xz.js} +1 -1
- package/dist/website/main/assets/{vendor-ui-BAx7vAkH.js → vendor-ui-KquZSIP0.js} +10 -10
- package/dist/website/main/index.html +3 -3
- package/package.json +1 -1
- package/dist/website/item/assets/index-BxlM4TBc.js +0 -60
- package/dist/website/item/assets/index-Cg5t9Ndz.css +0 -1
- package/dist/website/main/assets/GithubCallback-DP3YU9rH.js +0 -1
- package/dist/website/main/assets/ReplyForm.vue_vue_type_script_setup_true_lang-BnN1jBiO.js +0 -1
- package/dist/website/main/assets/index--J05rNIX.js +0 -1
- package/dist/website/main/assets/index-B2rWNHgy.js +0 -1
- package/dist/website/main/assets/index-B6fwGRmY.js +0 -1
- package/dist/website/main/assets/index-B8TdXR68.js +0 -1
- package/dist/website/main/assets/index-BBzEF7CC.js +0 -1
- package/dist/website/main/assets/index-BQKN7xQr.js +0 -2
- package/dist/website/main/assets/index-BWKB83Cd.js +0 -1
- package/dist/website/main/assets/index-BjKOeMxH.js +0 -1
- package/dist/website/main/assets/index-D03XtNqB.js +0 -1
- package/dist/website/main/assets/index-DEvtplax.js +0 -2
- package/dist/website/main/assets/index-DQTRYmEL.js +0 -1
- package/dist/website/main/assets/index-DRytU1Iu.js +0 -1
- package/dist/website/main/assets/index-DcfKevFQ.js +0 -1
- package/dist/website/main/assets/index-tSn-zTTf.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-C1EYwhRp.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Dl1KwcTe.js +0 -1
- package/dist/website/main/assets/useCompEditStore-Br3x5A7Q.css +0 -1
- package/dist/website/main/assets/useCompEditStore-rtFXUPNg.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a9 as r}from"./vendor-ui-
|
|
1
|
+
import{a9 as r}from"./vendor-ui-KquZSIP0.js";import{I as l,aA as p,O as o,P as c,S as n,Q as m,u,$ as d,m as y}from"./vendor-core-Do-oxgl9.js";const B=l({__name:"EmptyStatusContainer",props:{isEmpty:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyDescription:{type:String,default:""}},setup(e){const s=e,{t:a}=p(),i=y(()=>s.emptyDescription||a("common.empty"));return(t,f)=>(o(),c("div",null,[e.isEmpty?n(t.$slots,"empty-content",{},()=>[e.loading?d("",!0):(o(),m(u(r),{key:0,class:"flex justify-center items-center",description:i.value},null,8,["description"]))],void 0,0):n(t.$slots,"default",{},void 0,void 0,1)]))}});export{B as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as b,c as S}from"./vendor-ui-KquZSIP0.js";import{a as k,A as N,N as T,b as w,R as C}from"./index-YvDl_1WK.js";import{I as R,aA as y,aG as I,f as A,O as i,P as u,a2 as r,Y as m,u as n,R as h,a1 as _,$ as v,a0 as L,a as f}from"./vendor-core-Do-oxgl9.js";import{S as F}from"./index-BnX30az1.js";const H={class:"size-full flex items-center justify-center bg-[#0d0d0d]"},O={key:0,class:"text-center"},B={class:"text-white/60 text-sm"},G={key:1,class:"text-center max-w-md px-4"},K={class:"text-white/80 text-base mb-2"},V={key:0,class:"text-white/40 text-xs mb-6 break-all"},j=R({__name:"GithubCallback",setup(D){const{PersonIcon:g}=F,{t:e}=y(),p=I(),E=k(),c=f(!0),t=f(""),s=f("");return A(async()=>{const a=new URLSearchParams(window.location.search);if(a.get("error")){c.value=!1,t.value=e("user.githubLoginFailed")||"GitHub 登录失败",s.value=decodeURIComponent(a.get("detail")||"");return}const o=a.get(N),l=a.get(T.REFRESH_TOKEN_HEADER_NAME);if(!o||!l){c.value=!1,t.value=e("user.githubLoginFailed")||"GitHub 登录失败",s.value=e("user.missingToken")||"未获取到授权令牌";return}w(o),C(l);try{await E.fetchWhoAmI(),p.replace("/")}catch(x){c.value=!1,t.value=e("user.githubLoginFailed")||"获取用户信息失败",s.value=x?.message||""}}),(a,d)=>{const o=b,l=S;return i(),u("div",H,[c.value?(i(),u("div",O,[r(o,{class:"is-loading text-3xl text-white mb-4"},{default:m(()=>[r(n(g))]),_:1}),h("p",B,_(n(e)("user.githubLoggingIn")),1)])):t.value?(i(),u("div",G,[r(o,{class:"text-3xl text-[#f56c6c] mb-4"},{default:m(()=>[r(n(g))]),_:1}),h("p",K,_(t.value),1),s.value?(i(),u("p",V,_(s.value),1)):v("",!0),r(l,{type:"primary",onClick:d[0]||(d[0]=x=>n(p).replace("/login"))},{default:m(()=>[L(_(n(e)("user.returnToLogin")||"返回登录"),1)]),_:1})])):v("",!0)])}}});export{j as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as V,c as b}from"./vendor-ui-KquZSIP0.js";import"./index-YvDl_1WK.js";import{I as h,f as v,n as x,O as g,Q as B,a as k,aA as $,P as C,a2 as d,u as r,R as I,Y as c,a0 as f,a1 as p,m as S}from"./vendor-core-Do-oxgl9.js";const T=h({name:"CommentInput",__name:"CommentInput",props:{modelValue:{default:""},placeholder:{default:""},rows:{default:2},maxlength:{default:1e3},showWordLimit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1}},emits:["update:modelValue","submit"],setup(t,{emit:i}){const m=t,o=i,n=k(null);v(async()=>{m.autofocus&&(await x(),n.value?.focus())});function a(e){o("update:modelValue",e)}function l(e){e instanceof KeyboardEvent&&e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),o("submit"))}return(e,u)=>{const s=V;return g(),B(s,{ref_key:"inputRef",ref:n,"model-value":t.modelValue,type:"textarea",rows:t.rows,maxlength:t.maxlength,"show-word-limit":t.showWordLimit,placeholder:t.placeholder,disabled:t.disabled,resize:"none","onUpdate:modelValue":a,onKeydown:l},null,8,["model-value","rows","maxlength","show-word-limit","placeholder","disabled"])}}});function R(t){return function(m){if(!m)return"";const o=new Date(m),a=new Date().getTime()-o.getTime(),l=Math.floor(a/6e4),e=Math.floor(a/36e5),u=Math.floor(a/864e5);if(l<1)return t("comment.time.justNow");if(l<60)return t("comment.time.minutesAgo",{n:l});if(e<24)return t("comment.time.hoursAgo",{n:e});if(u<30)return t("comment.time.daysAgo",{n:u});const s=o.getFullYear(),w=String(o.getMonth()+1).padStart(2,"0"),y=String(o.getDate()).padStart(2,"0");return`${s}-${w}-${y}`}}const D={class:"mt-3 ml-10"},E={class:"flex mt-2 gap-2"},z=h({__name:"ReplyForm",props:{modelValue:{},placeholder:{default:""},loading:{type:Boolean,default:!1}},emits:["update:modelValue","submit","cancel"],setup(t,{emit:i}){const{t:m}=$(),o=t,n=i,a=S({get:()=>o.modelValue,set:l=>n("update:modelValue",l)});return(l,e)=>{const u=b;return g(),C("div",D,[d(r(T),{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=s=>a.value=s),"show-word-limit":"",autofocus:"",placeholder:t.placeholder,onSubmit:e[1]||(e[1]=s=>n("submit"))},null,8,["modelValue","placeholder"]),I("div",E,[d(u,{size:"small",onClick:e[2]||(e[2]=s=>n("cancel"))},{default:c(()=>[f(p(r(m)("common.cancel")),1)]),_:1}),d(u,{size:"small",type:"primary",loading:t.loading,disabled:!a.value.trim(),onClick:e[3]||(e[3]=s=>n("submit"))},{default:c(()=>[f(p(r(m)("comment.reply")),1)]),_:1},8,["loading","disabled"])])])}}});export{z as _,T as a,R as c};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{k as Kt}from"./vendor-ui-BAx7vAkH.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{k as Kt}from"./vendor-ui-KquZSIP0.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-DUFMPIr5.js → el-table-column-BpgDq_WF.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a7 as n,a5 as i}from"./vendor-ui-
|
|
1
|
+
import{a7 as n,a5 as i}from"./vendor-ui-KquZSIP0.js";import{I as p,aA as l,O as d,P as m,S as u,R as f,a1 as a,a2 as y,u as o,Y as x,a0 as w}from"./vendor-core-Do-oxgl9.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",_,[u(c.$slots,"default",{},()=>[f("span",null,a(e.text),1)]),y(o(n),{type:"primary",href:"javascript:void(0)",onClick:s},{default:x(()=>[w(a(o(t)("common.copy")),1)]),_:1})]))}});export{E as _};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CopP0_Oh.js","./vendor-ui-KquZSIP0.js","./vendor-core-Do-oxgl9.js","./index-YvDl_1WK.js","./index-D-8GYlU8.css","./index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js","./index-Bucicr-O.js","./useCompMetaLocalStore-DBe1Ldcg.js","./useCacheOssStore-KoEbWj57.js","./useVscodeOpen-DyvB87xz.js","./useTeamHeaders-Bttl7tEb.js","./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js","./useTeamHeaders-BMHQzwDq.css","./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js","./useMessage-BLwQdu5o.js","./el-link-CPQZ-olG.css","./useCompEditStore-Ch5sDzy4.js","./v4-EwEgHOG0.js","./index.vue_vue_type_style_index_0_lang-Digz_UdY.js","./core-yetgou6F.js","./index-Dj51p5I8.css","./PanelBackground.vue_vue_type_script_setup_true_lang-C8JwSZDA.js","./BaseSegmented.vue_vue_type_script_setup_true_lang-QoRVS1cj.js","./BaseBadge-CwPduDSy.js","./BaseBadge-ledSuDnX.css","./LoadingWrapper.vue_vue_type_script_setup_true_lang-DYO0UGlK.js","./useCompEditStore-GUrodzAV.css","./el-card-BAyktVMS.css","./index.vue_vue_type_style_index_0_lang-DfBu8zdC.js","./index-CdWXO9ks.css","./useKeyword-Bmq02ywx.js","./index-DP0Xav0B.js","./index-DFsl7Pen.css","./index-CxeWFTBn.js","./el-table-column-BpgDq_WF.js","./el-table-column-B3ZEEuPD.css","./moment-B-YVwB4U.js","./index-BJKOBdMx.js","./index-BsZl8udl.js","./index.vue_vue_type_script_setup_true_lang-2Z80ry6F.js","./index-DOlF0Z_P.css","./index-CgJn84pE.js","./index-FOvWqIoM.js","./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-XaDuBXZe.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as ce,B as q,N,T as J,z as P,I as L,i as me,w as de,m as pe,q as M}from"./index-YvDl_1WK.js";import{ak as ue,m as _e,g as fe,c as W,a8 as X,a6 as ve,al as he,F as ge,N as ye,a5 as be,aa as Z,am as we,s as Ce,a as xe,ae as Te,n as Ae}from"./vendor-ui-KquZSIP0.js";import{_ as Ee}from"./el-table-column-BpgDq_WF.js";/* empty css */import{_ as ke}from"./index.vue_vue_type_script_setup_true_lang-2Z80ry6F.js";import{I as $,O as g,P as B,R as r,a1 as f,S as G,m as i,ac as Ie,Q as E,u as e,W as ee,Y as s,aD as Le,a2 as a,_ as H,aA as z,am as De,an as Se,a0 as D,aJ as te,E as Y,aC as ae,w as oe,a7 as se,h as $e,n as Me,aF as ne,a as F,e as Q,aG as Oe,aQ as Re,aR as Ve,f as Ne,k as Pe,aL as O}from"./vendor-core-Do-oxgl9.js";import{c as Be,b as ze,d as K}from"./index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js";import{_ as Ue}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-DYO0UGlK.js";import{u as Fe}from"./useKeyword-Bmq02ywx.js";import{d as Ge,I as j,c as He}from"./useMessage-BLwQdu5o.js";import{u as le}from"./useTeamHeaders-Bttl7tEb.js";import{I as ie}from"./index-nNvVSsby.js";import{_ as Ke}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import{_ as Ye}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-QoRVS1cj.js";import"./useCacheOssStore-KoEbWj57.js";import"./index-Bucicr-O.js";import"./useCompMetaLocalStore-DBe1Ldcg.js";import"./useVscodeOpen-DyvB87xz.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js";const Qe={class:"flex items-center justify-center gap-[6px] leading-[15px]"},je={class:"text-xs leading-3 align-middle"},qe={class:"inline-block align-middle shrink-0"},Je=$({__name:"UserAvatar",props:{nickname:{type:String,default:""},teamUserNickname:{type:String,default:""}},setup(m){const t=m,o=i(()=>t.teamUserNickname||t.nickname||"--");return(c,w)=>(g(),B("div",Qe,[r("span",je,f(o.value),1),r("div",qe,[G(c.$slots,"avatar",{},void 0,!0)])]))}}),We=ce(Je,[["__scopeId","data-v-f90b87fa"]]),Xe=$({__name:"SkeletonContainer",setup(m){const t=Ie();return(o,c)=>(g(),E(e(ue),ee({rows:3,animated:""},e(t)),{default:s(()=>[G(o.$slots,"default")]),template:s(()=>[G(o.$slots,"template")]),_:3},16))}}),Ze='<path class="cdj_y1r7t"/>',et={__name:"grid-view-rounded",props:["width","height"],setup(m){const t={width:24,height:24};return(o,c)=>(g(),E(e(ie),{width:m.width,height:m.height,viewBox:t,content:Ze,fallback:"material-symbols:grid-view-rounded"},null,8,["width","height"]))}},tt='<path class="u2_fvl-wz"/>',at={__name:"view-list",props:["width","height"],setup(m){const t={width:24,height:24};return(o,c)=>(g(),E(e(ie),{width:m.width,height:m.height,viewBox:t,content:tt,fallback:"material-symbols:view-list"},null,8,["width","height"]))}},ot=$({__name:"ViewToggle",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(m){const t=Le(m,"modelValue"),o=i(()=>t.value==="grid"?at:et);function c(){t.value=t.value==="grid"?"list":"grid"}return(w,l)=>(g(),B("div",{class:"flex items-center rounded-sm cursor-pointer",onClick:c},[a(e(_e),{style:{"font-size":"25px"}},{default:s(()=>[(g(),E(H(o.value)))]),_:1})]))}}),st={class:"size-full overflow-hidden"},nt=$({__name:"ViewCompList",props:{data:{type:Array,default:()=>[]},selectedRows:{type:Array,default:()=>[]}},emits:["add-one-comp"],setup(m,{emit:t}){const{t:o}=z(),c=m,w=t,l=i(()=>({data:c.data,column:[{prop:"name",label:o("comp.name"),align:"center"},{prop:"version",label:o("comp.version"),align:"center"},{prop:"isAdd",label:o("team.added"),align:"center",formatter:d=>d.isAdd?o("common.yes"):o("common.no")},{prop:"desc",label:o("common.description"),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{slot:"operation",prop:"operation",label:o("common.operation"),align:"center"}],isPagination:!1,autoLoading:!1})),C=(d,p)=>{p.start(),w("add-one-comp",d._id,()=>{p.end()})};return(d,p)=>{const I=W,x=fe;return g(),B("div",st,[a(e(q),{ref:"baseTable",tableConfig:l.value,border:"",stripe:""},{operation:s(({col:T})=>[a(x,De(Se(T)),{default:s(({row:u})=>[r("div",null,[a(e(Ue),null,{default:s(({instance:n,loading:_})=>[a(I,{type:"primary",disabled:u.isAdd,loading:_,onClick:S=>C(u,n)},{default:s(()=>[D(f(u.isAdd?e(o)("team.added"):e(o)("common.add")),1)]),_:2},1032,["disabled","loading","onClick"])]),_:2},1024)])]),_:1},16)]),_:1},8,["tableConfig"])])}}}),lt={class:"size-full overflow-hidden"},it=$({__name:"ViewCompGrid",props:{data:{type:Array,default:()=>[]},keyword:{type:String,default:""}},emits:["add-one-comp"],setup(m,{emit:t}){const o=m,c=t,w=$e(),l=te(),{sendMessageToTargetIframe:C,messageListener:d}=He(),p=Ge(!1,window.__GLOBAL_CONFIG__.subPort),{addListener:I}=d(),x=Be(`${l.path}_${N.SCOPE_ID_TEAM_ADD_MY_COMP}`)();Y(N.PROVIDE_KEY_COMP_LIST_STORE,x);const T=new Map;Y(N.PROVIDE_KEY_CALLBACKS,T);const u=ae("compIframeContainer");Fe(i(()=>o.keyword),u);const n=async()=>{x.renderList([]),await Me(),x.setLoading(!0);const _=ve(o.data);x.renderList(_??[])};return I(j.ACTION_ADD_COMP_START_LOADING,_=>{c("add-one-comp",_,()=>{u.value?.sendMessageToTargetIframeByCompId(S=>{S&&C(S,j.ACTION_ADD_COMP_FINISH_LOADING,"",p)})})}),oe(()=>o.data,()=>n(),{immediate:!0,deep:!0}),se(()=>{x.$reset()}),(_,S)=>{const y=X;return g(),B("div",lt,[a(y,{always:"",wrapClass:"pr-[10px]"},{default:s(()=>[a(ze,{ref:"compIframeContainer",iuid:e(w)?.uid,compType:e(N).IFRAME_ROUTES.CONTAINER.TEAM_ADD},null,8,["iuid","compType"])]),_:1})])}}}),rt={class:"size-full flex flex-col overflow-auto overflow-x-hidden"},ct={class:"flex gap-2 pb-2"},mt=$({__name:"index",setup(m,{expose:t}){const{t:o}=z(),{headers:c,teamId:w}=le(),l=K(w)(),C=F(!1),d=F(""),p=F({data:[],search:{column:[{prop:"keyword",component:Q(ge),label:i(()=>o("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:i(()=>o("comp.keywordPlaceholder")),fetchSuggestions:x,triggerOnFocus:!1,style:"width: 350px",fitInputWidth:!0}},{prop:"status",label:i(()=>o("common.status")),component:Q(ye),value:"NotAdded",attributes:{style:{width:"120px"},clearable:!0,options:[{label:i(()=>o("team.added")),value:"Added"},{label:i(()=>o("team.notAdded")),value:"NotAdded"}]}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},fetchData:T}),I=i(()=>p.value?.search?.column[0]?.value??"");function x(y,b){if(y.length<=1)return b([]);P.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:y,type:"compMy"},{headers:c}).then(k=>{const{keywords:A=[]}=k.data||{};b(A)})}async function T(y){const b=await P.v1Team.teamcontrollerAddtoteammycomps({...y},{headers:c}),{rows:k,total:A}=b.data||{};p.value.data=k||[],p.value.pagination.total=A||0}function u(){C.value=!0}function n(){C.value=!1}function _(){d.value=d.value??"list"}function S(y,b){P.v1Team.teamcontrollerCopycomp({compIds:[y]},{headers:c}).then(()=>{p.value.data?.forEach(A=>{y===A._id&&(A.isAdd=!0)});const k=l.teamDetail.compCount+1;l.setTeamDetail({...l.teamDetail,compCount:k}),be.success(o("team.addSuccess"))}).finally(b)}return t({open:u,close:n}),(y,b)=>{const k=he;return g(),E(k,{modelValue:C.value,"onUpdate:modelValue":b[1]||(b[1]=A=>C.value=A),title:e(o)("team.addComp"),resizable:"","with-header":!1,size:"50%","append-to-body":"",onOpened:_},{default:s(()=>[r("div",rt,[a(e(q),{tableConfig:p.value},{tableBefore:s(()=>[r("div",ct,[a(e(ot),{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=A=>d.value=A),class:"ml-auto"},null,8,["modelValue"])])]),table:s(()=>[a(e(J),null,{default:s(()=>[(g(),E(ne,null,[(g(),E(H(d.value==="grid"?it:nt),{data:p.value.data,keyword:I.value,onAddOneComp:S},null,40,["data","keyword"]))],1024))]),_:1})]),_:1},8,["tableConfig"])])]),_:1},8,["modelValue","title"])}}}),dt={class:"size-full overflow-hidden flex items-center gap-6"},pt={class:"flex-shrink-0"},ut={class:"flex flex-1 flex-col gap-3 overflow-hidden"},_t={class:"flex items-center gap-3"},ft={class:"text-xl font-bold"},vt={class:"flex items-center gap-1 rounded-full px-3 py-0.5 text-xs"},ht={class:"flex flex-wrap items-center gap-3"},gt={class:"!flex items-center gap-1"},yt={class:"!flex items-center gap-1"},bt={class:"!flex items-center gap-1"},wt={class:"!flex items-center gap-1"},Ct={class:"!flex items-center gap-1"},xt={class:"flex items-center gap-3 flex-shrink-0"},Tt=$({__name:"index",setup(m){const{t}=z(),o=te(),c=Oe(),{teamId:w}=o.params,l=K(w)(),C=ae("teamAddCompDrawer");function d(){C.value?.open()}function p(){c.push({name:"uploadTeam",params:{teamId:w}})}return(I,x)=>{const T=we,u=Ce,n=W,_=Z;return g(),E(_,{"body-class":"!p-0",class:"size-full rounded-sm p-4"},{default:s(()=>[a(e(Xe),{rows:4,loading:e(l).loading},{default:s(()=>[r("div",dt,[r("div",pt,[a(T,{size:64,class:"bg-indigo-100"},{default:s(()=>[a(e(L),{icon:"material-symbols:layers-rounded",class:"text-3xl"})]),_:1})]),r("div",ut,[r("div",_t,[r("h2",ft,f(e(l).teamName),1),r("span",vt,[a(e(L),{icon:"material-symbols:check-circle-rounded",class:"text-green-500"}),D(" "+f(e(l).description),1)])]),r("div",ht,[a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",gt,[a(e(L),{icon:"material-symbols:person-rounded"}),D(" "+f(e(t)("team.creator"))+" ",1),a(e(We),ee(e(l).creator,{teamUserNickname:e(l).creatorNickname}),{avatar:s(()=>[a(ke,{size:15,src:e(l).creator?.avatar},null,8,["src"])]),_:1},16,["teamUserNickname"])])]),_:1}),a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",yt,[a(e(L),{icon:"material-symbols:tag-rounded"}),D(" "+f(e(t)("team.code"))+" ",1),a(e(Ee),{class:"text-xs",text:e(l).code},null,8,["text"])])]),_:1}),a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",bt,[a(e(L),{icon:"material-symbols:group-rounded"}),D(" "+f(e(t)("team.member"))+" "+f(e(l).memberCount)+" "+f(e(t)("common.person")),1)])]),_:1}),a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",wt,[a(e(L),{icon:"material-symbols:widgets-rounded"}),D(" "+f(e(t)("team.compCount"))+" "+f(e(l).compCount)+" "+f(e(t)("common.unit")),1)])]),_:1}),a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",Ct,[a(e(L),{icon:"material-symbols:download-rounded"}),D(" "+f(e(t)("team.downloadCount"))+" "+f(e(l).totalDownloadCount),1)])]),_:1})]),r("div",xt,[a(n,{class:"!rounded-full !px-5 !py-2 !h-auto",onClick:d},{default:s(()=>[a(e(L),{icon:"material-symbols:format-list-bulleted-rounded",class:"mr-1"}),D(" "+f(e(t)("team.addFromMine")),1)]),_:1}),a(n,{type:"primary",class:"!rounded-full !px-5 !py-2 !h-auto",onClick:p},{default:s(()=>[a(e(L),{icon:"material-symbols:upload-rounded",class:"mr-1"}),D(" "+f(e(t)("comp.upload")),1)]),_:1})])])])]),_:1},8,["loading"]),a(mt,{ref:"teamAddCompDrawer"},null,512)]),_:1})}}}),At={class:"mt-2"},Yt=$({__name:"index",setup(m){const{t}=z(),o=O(()=>M(()=>import("./index-CopP0_Oh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),c=O(()=>M(()=>import("./index-DP0Xav0B.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,30,32,27]),import.meta.url)),w=O(()=>M(()=>import("./index-CxeWFTBn.js"),__vite__mapDeps([33,1,2,3,4,34,35,5,6,7,8,9,10,11,12,13,14,15,36,25]),import.meta.url)),l=O(()=>M(()=>import("./index-BJKOBdMx.js"),__vite__mapDeps([37,1,2,3,4,10,11,12,5,6,7,8,9,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),C=O(()=>M(()=>import("./index-BsZl8udl.js"),__vite__mapDeps([38,1,2,3,4,34,35,5,6,7,8,9,10,11,12,13,14,15,39,40]),import.meta.url)),d=O(()=>M(()=>import("./index-CgJn84pE.js"),__vite__mapDeps([41,1,2,3,4,34,35,5,6,7,8,9,10,11,12,13,14,15,39,40,25]),import.meta.url)),p=O(()=>M(()=>import("./index-FOvWqIoM.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,43,25,27]),import.meta.url)),I=[{label:i(()=>t("team.compLib")),value:"TeamCompList",component:o,visible:()=>!0},{label:i(()=>t("team.groupConfig")),value:"TeamCompGroup",component:c,visible:()=>n.isCreator},{label:i(()=>t("team.compManage")),value:"TeamCompManage",component:w,visible:()=>n.isCreator},{label:i(()=>t("team.myCompList")),value:"TeamMyCompList",component:l,visible:()=>!0},{label:i(()=>t("team.member")),value:"TeamMemberList",component:C,visible:()=>!0},{label:i(()=>t("team.applyList")),value:"TeamApplyList",component:d,visible:()=>n.isCreator},{label:i(()=>t("common.setting")),value:"TeamSet",component:p,visible:()=>!0}],{headers:x,teamId:T}=le(),u=me(),n=K(T)(),_=xe(`${de}-${T}`,I[0]?.value),S=i(()=>Object.keys(n.teamDetail).length===0),y=i(()=>I.filter(v=>v.visible())),b=i(()=>y.value.find(h=>h.value===_.value)?.component||{render:()=>null}),k=async(v,h)=>{if(!n.canSaveCopy)return;const R=v.matched[v.matched.length-1],V=h.matched[h.matched.length-1];if(!(!R||!V)&&(!v.redirectedFrom||R.path===V.path)){const U={confirmButtonText:t("team.leave"),cancelButtonText:t("common.cancel"),type:"warning"};return await Ae.confirm(t("team.unsavedDataLeave"),t("common.info"),U).then(()=>!0).catch(()=>!1)}};function A(v,h){u.addPayLoad(`/team/${v}`,{name:h??""})}return Re(k),Ve(k),Ne(()=>{n.setLoading(!0),P.v1Team.teamcontrollerDetail({headers:x}).then(v=>{const{compIdInLeafNodeMap:h}=v.data;n.setTeamDetail(v.data),n.setSelectedRowsToLeafNodeMap(h||{}),A(T??"",n.teamDetail?.name??"")}).catch(()=>{n.$reset()}).finally(()=>{n.setLoading(!1)})}),oe(_,(v,h)=>{h&&v!==h&&window?.umami?.track(pe.TEAM_TAB_CHANGE,{teamId:T,from:h,to:v})}),se(()=>{n.$reset()}),(v,h)=>{const R=Z,V=Te,U=X;return g(),E(U,{"wrap-class":"team-container p-[10px] pt-0",class:"size-full overflow-x-hidden",always:""},{default:s(()=>[a(e(Ke),{isEmpty:S.value,loading:e(n).loading,emptyDescription:e(t)("team.noTeamInfo")},{default:s(()=>[a(Tt,{class:"mt-[10px]"}),a(R,{"body-class":"!p-0",class:"sticky top-0 w-full z-100 mt-1"},{default:s(()=>[a(e(Ye),{modelValue:e(_),"onUpdate:modelValue":h[0]||(h[0]=re=>Pe(_)?_.value=re:null),options:y.value},null,8,["modelValue","options"])]),_:1}),r("div",At,[a(e(J),null,{default:s(()=>[(g(),E(ne,null,[(g(),E(H(b.value)))],1024))]),_:1})]),a(V,{right:100,bottom:100,target:".team-container"})]),_:1},8,["isEmpty","loading","emptyDescription"])]),_:1})}}});export{Yt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as fe,k as rt,B as it,j as ot,h as Q,N as M,T as at,g as Ie,J as Be,x as lt,O as D,H as ht,E as v,r as R,d as ft,o as E,z as ut,s as ct,b as dt,Q as g,w as Te,y as pt,G as mt,c as gt,e as ue,P as kt}from"./CodeMirrorEditor-Cqow8ROO-DMgFI1zV.js";import{C as xt}from"./index-T76vWLBU-Bpnxnyfv.js";import{html as Lt,htmlCompletionSource as bt}from"./index-Dms7ZQ2h-DY4-ZFKr.js";import"./index-CnTuJQbj.js";import"./vendor-core-Do-oxgl9.js";import"./vendor-ui-BAx7vAkH.js";import"./index-DqiFCfGx-BY8MJk0B.js";import"./index-fZBcgzqR-QE1WZxps.js";class j{static create(e,n,s,r,i){let o=r+(r<<8)+e+(n<<4)|0;return new j(e,n,s,o,i,[],[])}constructor(e,n,s,r,i,o,a){this.type=e,this.value=n,this.from=s,this.hash=r,this.end=i,this.children=o,this.positions=a,this.hashProp=[[M.contextHash,r]]}addChild(e,n){e.prop(M.contextHash)!=this.hash&&(e=new E(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(n)}toTree(e,n=this.end){let s=this.children.length-1;return s>=0&&(n=Math.max(n,this.positions[s]+this.children[s].length+this.from)),new E(e.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(r,i,o)=>new E(Q.none,r,i,o,this.hashProp)})}}var u;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(u||(u={}));class St{constructor(e,n){this.start=e,this.content=n,this.marks=[],this.parsers=[]}}class Ct{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return O(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,n=0,s=0){for(let r=n;r<e;r++)s+=this.text.charCodeAt(r)==9?4-s%4:1;return s}findColumn(e){let n=0;for(let s=0;n<this.text.length&&s<e;n++)s+=this.text.charCodeAt(n)==9?4-s%4:1;return n}scrub(){if(!this.baseIndent)return this.text;let e="";for(let n=0;n<this.basePos;n++)e+=" ";return e+this.text.slice(this.basePos)}}function ce(t,e,n){if(n.pos==n.text.length||t!=e.block&&n.indent>=e.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let s=(t.type==u.OrderedList?oe:ie)(n,e,!1);return s>0&&(t.type!=u.BulletList||re(n,e,!1)<0)&&n.text.charCodeAt(n.pos+s-1)==t.value}const Ee={[u.Blockquote](t,e,n){return n.next!=62?!1:(n.markers.push(k(u.QuoteMark,e.lineStart+n.pos,e.lineStart+n.pos+1)),n.moveBase(n.pos+(w(n.text.charCodeAt(n.pos+1))?2:1)),t.end=e.lineStart+n.text.length,!0)},[u.ListItem](t,e,n){return n.indent<n.baseIndent+t.value&&n.next>-1?!1:(n.moveBaseColumn(n.baseIndent+t.value),!0)},[u.OrderedList]:ce,[u.BulletList]:ce,[u.Document](){return!0}};function w(t){return t==32||t==9||t==10||t==13}function O(t,e=0){for(;e<t.length&&w(t.charCodeAt(e));)e++;return e}function de(t,e,n){for(;e>n&&w(t.charCodeAt(e-1));)e--;return e}function ve(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(t.next==96){for(let n=e;n<t.text.length;n++)if(t.text.charCodeAt(n)==96)return-1}return e}function Me(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function re(t,e,n){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let s=1;for(let r=t.pos+1;r<t.text.length;r++){let i=t.text.charCodeAt(r);if(i==t.next)s++;else if(!w(i))return-1}return n&&t.next==45&&Ne(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(Xe.SetextHeading)>-1||s<3?-1:1}function He(t,e){for(let n=t.stack.length-1;n>=0;n--)if(t.stack[n].type==e)return!0;return!1}function ie(t,e,n){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||w(t.text.charCodeAt(t.pos+1)))&&(!n||He(e,u.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function oe(t,e,n){let s=t.pos,r=t.next;for(;r>=48&&r<=57;){if(s++,s==t.text.length)return-1;r=t.text.charCodeAt(s)}return s==t.pos||s>t.pos+9||r!=46&&r!=41||s<t.text.length-1&&!w(t.text.charCodeAt(s+1))||n&&!He(e,u.OrderedList)&&(t.skipSpace(s+1)==t.text.length||s>t.pos+1||t.next!=49)?-1:s+1-t.pos}function Pe(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==35;)e++;if(e<t.text.length&&t.text.charCodeAt(e)!=32)return-1;let n=e-t.pos;return n>6?-1:n}function Ne(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let n=e;for(;e<t.text.length&&w(t.text.charCodeAt(e));)e++;return e==t.text.length?n:-1}const W=/^[ \t]*$/,Oe=/-->/,$e=/\?>/,ee=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Oe],[/^\s*<\?/,$e],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,W],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,W]];function Re(t,e,n){if(t.next!=60)return-1;let s=t.text.slice(t.pos);for(let r=0,i=ee.length-(n?1:0);r<i;r++)if(ee[r][0].test(s))return r;return-1}function pe(t,e){let n=t.countIndent(e,t.pos,t.indent),s=t.countIndent(t.skipSpace(e),e,n);return s>=n+5?n+1:s}function y(t,e,n){let s=t.length-1;s>=0&&t[s].to==e&&t[s].type==u.CodeText?t[s].to=n:t.push(k(u.CodeText,e,n))}const q={LinkReference:void 0,IndentedCode(t,e){let n=e.baseIndent+4;if(e.indent<n)return!1;let s=e.findColumn(n),r=t.lineStart+s,i=t.lineStart+e.text.length,o=[],a=[];for(y(o,r,i);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){y(a,t.lineStart-1,t.lineStart);for(let l of e.markers)a.push(l)}else{if(e.indent<n)break;{if(a.length){for(let h of a)h.type==u.CodeText?y(o,h.from,h.to):o.push(h);a=[]}y(o,t.lineStart-1,t.lineStart);for(let h of e.markers)o.push(h);i=t.lineStart+e.text.length;let l=t.lineStart+e.findColumn(e.baseIndent+4);l<i&&y(o,l,i)}}return a.length&&(a=a.filter(l=>l.type!=u.CodeText),a.length&&(e.markers=a.concat(e.markers))),t.addNode(t.buffer.writeElements(o,-r).finish(u.CodeBlock,i-r),r),!0},FencedCode(t,e){let n=ve(e);if(n<0)return!1;let s=t.lineStart+e.pos,r=e.next,i=n-e.pos,o=e.skipSpace(n),a=de(e.text,e.text.length,o),l=[k(u.CodeMark,s,s+i)];o<a&&l.push(k(u.CodeInfo,t.lineStart+o,t.lineStart+a));for(let h=!0,f=!0,d=!1;t.nextLine()&&e.depth>=t.stack.length;h=!1){let c=e.pos;if(e.indent-e.baseIndent<4)for(;c<e.text.length&&e.text.charCodeAt(c)==r;)c++;if(c-e.pos>=i&&e.skipSpace(c)==e.text.length){for(let p of e.markers)l.push(p);f&&d&&y(l,t.lineStart-1,t.lineStart),l.push(k(u.CodeMark,t.lineStart+e.pos,t.lineStart+c)),t.nextLine();break}else{d=!0,h||(y(l,t.lineStart-1,t.lineStart),f=!1);for(let S of e.markers)l.push(S);let p=t.lineStart+e.basePos,m=t.lineStart+e.text.length;p<m&&(y(l,p,m),f=!1)}}return t.addNode(t.buffer.writeElements(l,-s).finish(u.FencedCode,t.prevLineEnd()-s),s),!0},Blockquote(t,e){let n=Me(e);return n<0?!1:(t.startContext(u.Blockquote,e.pos),t.addNode(u.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+n),null)},HorizontalRule(t,e){if(re(e,t,!1)<0)return!1;let n=t.lineStart+e.pos;return t.nextLine(),t.addNode(u.HorizontalRule,n),!0},BulletList(t,e){let n=ie(e,t,!1);if(n<0)return!1;t.block.type!=u.BulletList&&t.startContext(u.BulletList,e.basePos,e.next);let s=pe(e,e.pos+1);return t.startContext(u.ListItem,e.basePos,s-e.baseIndent),t.addNode(u.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(s),null},OrderedList(t,e){let n=oe(e,t,!1);if(n<0)return!1;t.block.type!=u.OrderedList&&t.startContext(u.OrderedList,e.basePos,e.text.charCodeAt(e.pos+n-1));let s=pe(e,e.pos+n);return t.startContext(u.ListItem,e.basePos,s-e.baseIndent),t.addNode(u.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(s),null},ATXHeading(t,e){let n=Pe(e);if(n<0)return!1;let s=e.pos,r=t.lineStart+s,i=de(e.text,e.text.length,s),o=i;for(;o>s&&e.text.charCodeAt(o-1)==e.next;)o--;(o==i||o==s||!w(e.text.charCodeAt(o-1)))&&(o=e.text.length);let a=t.buffer.write(u.HeaderMark,0,n).writeElements(t.parser.parseInline(e.text.slice(s+n+1,o),r+n+1),-r);o<e.text.length&&a.write(u.HeaderMark,o-s,i-s);let l=a.finish(u.ATXHeading1-1+n,e.text.length-s);return t.nextLine(),t.addNode(l,r),!0},HTMLBlock(t,e){let n=Re(e,t,!1);if(n<0)return!1;let s=t.lineStart+e.pos,r=ee[n][1],i=[],o=r!=W;for(;!r.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){o=!1;break}for(let h of e.markers)i.push(h)}o&&t.nextLine();let a=r==Oe?u.CommentBlock:r==$e?u.ProcessingInstructionBlock:u.HTMLBlock,l=t.prevLineEnd();return t.addNode(t.buffer.writeElements(i,-s).finish(a,l-s),s),!0},SetextHeading:void 0};class wt{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,n,s){if(this.stage==-1)return!1;let r=s.content+`
|
|
1
|
+
import{f as fe,k as rt,B as it,j as ot,h as Q,N as M,T as at,g as Ie,J as Be,x as lt,O as D,H as ht,E as v,r as R,d as ft,o as E,z as ut,s as ct,b as dt,Q as g,w as Te,y as pt,G as mt,c as gt,e as ue,P as kt}from"./CodeMirrorEditor-Cqow8ROO-Cb1F80wf.js";import{C as xt}from"./index-T76vWLBU-C2L4ZR6a.js";import{html as Lt,htmlCompletionSource as bt}from"./index-Dms7ZQ2h-BXeasSDQ.js";import"./index-YvDl_1WK.js";import"./vendor-core-Do-oxgl9.js";import"./vendor-ui-KquZSIP0.js";import"./index-DqiFCfGx-4HZIi15Y.js";import"./index-fZBcgzqR-DZ4VEjtI.js";class j{static create(e,n,s,r,i){let o=r+(r<<8)+e+(n<<4)|0;return new j(e,n,s,o,i,[],[])}constructor(e,n,s,r,i,o,a){this.type=e,this.value=n,this.from=s,this.hash=r,this.end=i,this.children=o,this.positions=a,this.hashProp=[[M.contextHash,r]]}addChild(e,n){e.prop(M.contextHash)!=this.hash&&(e=new E(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(n)}toTree(e,n=this.end){let s=this.children.length-1;return s>=0&&(n=Math.max(n,this.positions[s]+this.children[s].length+this.from)),new E(e.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(r,i,o)=>new E(Q.none,r,i,o,this.hashProp)})}}var u;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(u||(u={}));class St{constructor(e,n){this.start=e,this.content=n,this.marks=[],this.parsers=[]}}class Ct{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return O(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,n=0,s=0){for(let r=n;r<e;r++)s+=this.text.charCodeAt(r)==9?4-s%4:1;return s}findColumn(e){let n=0;for(let s=0;n<this.text.length&&s<e;n++)s+=this.text.charCodeAt(n)==9?4-s%4:1;return n}scrub(){if(!this.baseIndent)return this.text;let e="";for(let n=0;n<this.basePos;n++)e+=" ";return e+this.text.slice(this.basePos)}}function ce(t,e,n){if(n.pos==n.text.length||t!=e.block&&n.indent>=e.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let s=(t.type==u.OrderedList?oe:ie)(n,e,!1);return s>0&&(t.type!=u.BulletList||re(n,e,!1)<0)&&n.text.charCodeAt(n.pos+s-1)==t.value}const Ee={[u.Blockquote](t,e,n){return n.next!=62?!1:(n.markers.push(k(u.QuoteMark,e.lineStart+n.pos,e.lineStart+n.pos+1)),n.moveBase(n.pos+(w(n.text.charCodeAt(n.pos+1))?2:1)),t.end=e.lineStart+n.text.length,!0)},[u.ListItem](t,e,n){return n.indent<n.baseIndent+t.value&&n.next>-1?!1:(n.moveBaseColumn(n.baseIndent+t.value),!0)},[u.OrderedList]:ce,[u.BulletList]:ce,[u.Document](){return!0}};function w(t){return t==32||t==9||t==10||t==13}function O(t,e=0){for(;e<t.length&&w(t.charCodeAt(e));)e++;return e}function de(t,e,n){for(;e>n&&w(t.charCodeAt(e-1));)e--;return e}function ve(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(t.next==96){for(let n=e;n<t.text.length;n++)if(t.text.charCodeAt(n)==96)return-1}return e}function Me(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function re(t,e,n){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let s=1;for(let r=t.pos+1;r<t.text.length;r++){let i=t.text.charCodeAt(r);if(i==t.next)s++;else if(!w(i))return-1}return n&&t.next==45&&Ne(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(Xe.SetextHeading)>-1||s<3?-1:1}function He(t,e){for(let n=t.stack.length-1;n>=0;n--)if(t.stack[n].type==e)return!0;return!1}function ie(t,e,n){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||w(t.text.charCodeAt(t.pos+1)))&&(!n||He(e,u.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function oe(t,e,n){let s=t.pos,r=t.next;for(;r>=48&&r<=57;){if(s++,s==t.text.length)return-1;r=t.text.charCodeAt(s)}return s==t.pos||s>t.pos+9||r!=46&&r!=41||s<t.text.length-1&&!w(t.text.charCodeAt(s+1))||n&&!He(e,u.OrderedList)&&(t.skipSpace(s+1)==t.text.length||s>t.pos+1||t.next!=49)?-1:s+1-t.pos}function Pe(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==35;)e++;if(e<t.text.length&&t.text.charCodeAt(e)!=32)return-1;let n=e-t.pos;return n>6?-1:n}function Ne(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let n=e;for(;e<t.text.length&&w(t.text.charCodeAt(e));)e++;return e==t.text.length?n:-1}const W=/^[ \t]*$/,Oe=/-->/,$e=/\?>/,ee=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Oe],[/^\s*<\?/,$e],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,W],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,W]];function Re(t,e,n){if(t.next!=60)return-1;let s=t.text.slice(t.pos);for(let r=0,i=ee.length-(n?1:0);r<i;r++)if(ee[r][0].test(s))return r;return-1}function pe(t,e){let n=t.countIndent(e,t.pos,t.indent),s=t.countIndent(t.skipSpace(e),e,n);return s>=n+5?n+1:s}function y(t,e,n){let s=t.length-1;s>=0&&t[s].to==e&&t[s].type==u.CodeText?t[s].to=n:t.push(k(u.CodeText,e,n))}const q={LinkReference:void 0,IndentedCode(t,e){let n=e.baseIndent+4;if(e.indent<n)return!1;let s=e.findColumn(n),r=t.lineStart+s,i=t.lineStart+e.text.length,o=[],a=[];for(y(o,r,i);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){y(a,t.lineStart-1,t.lineStart);for(let l of e.markers)a.push(l)}else{if(e.indent<n)break;{if(a.length){for(let h of a)h.type==u.CodeText?y(o,h.from,h.to):o.push(h);a=[]}y(o,t.lineStart-1,t.lineStart);for(let h of e.markers)o.push(h);i=t.lineStart+e.text.length;let l=t.lineStart+e.findColumn(e.baseIndent+4);l<i&&y(o,l,i)}}return a.length&&(a=a.filter(l=>l.type!=u.CodeText),a.length&&(e.markers=a.concat(e.markers))),t.addNode(t.buffer.writeElements(o,-r).finish(u.CodeBlock,i-r),r),!0},FencedCode(t,e){let n=ve(e);if(n<0)return!1;let s=t.lineStart+e.pos,r=e.next,i=n-e.pos,o=e.skipSpace(n),a=de(e.text,e.text.length,o),l=[k(u.CodeMark,s,s+i)];o<a&&l.push(k(u.CodeInfo,t.lineStart+o,t.lineStart+a));for(let h=!0,f=!0,d=!1;t.nextLine()&&e.depth>=t.stack.length;h=!1){let c=e.pos;if(e.indent-e.baseIndent<4)for(;c<e.text.length&&e.text.charCodeAt(c)==r;)c++;if(c-e.pos>=i&&e.skipSpace(c)==e.text.length){for(let p of e.markers)l.push(p);f&&d&&y(l,t.lineStart-1,t.lineStart),l.push(k(u.CodeMark,t.lineStart+e.pos,t.lineStart+c)),t.nextLine();break}else{d=!0,h||(y(l,t.lineStart-1,t.lineStart),f=!1);for(let S of e.markers)l.push(S);let p=t.lineStart+e.basePos,m=t.lineStart+e.text.length;p<m&&(y(l,p,m),f=!1)}}return t.addNode(t.buffer.writeElements(l,-s).finish(u.FencedCode,t.prevLineEnd()-s),s),!0},Blockquote(t,e){let n=Me(e);return n<0?!1:(t.startContext(u.Blockquote,e.pos),t.addNode(u.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+n),null)},HorizontalRule(t,e){if(re(e,t,!1)<0)return!1;let n=t.lineStart+e.pos;return t.nextLine(),t.addNode(u.HorizontalRule,n),!0},BulletList(t,e){let n=ie(e,t,!1);if(n<0)return!1;t.block.type!=u.BulletList&&t.startContext(u.BulletList,e.basePos,e.next);let s=pe(e,e.pos+1);return t.startContext(u.ListItem,e.basePos,s-e.baseIndent),t.addNode(u.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(s),null},OrderedList(t,e){let n=oe(e,t,!1);if(n<0)return!1;t.block.type!=u.OrderedList&&t.startContext(u.OrderedList,e.basePos,e.text.charCodeAt(e.pos+n-1));let s=pe(e,e.pos+n);return t.startContext(u.ListItem,e.basePos,s-e.baseIndent),t.addNode(u.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(s),null},ATXHeading(t,e){let n=Pe(e);if(n<0)return!1;let s=e.pos,r=t.lineStart+s,i=de(e.text,e.text.length,s),o=i;for(;o>s&&e.text.charCodeAt(o-1)==e.next;)o--;(o==i||o==s||!w(e.text.charCodeAt(o-1)))&&(o=e.text.length);let a=t.buffer.write(u.HeaderMark,0,n).writeElements(t.parser.parseInline(e.text.slice(s+n+1,o),r+n+1),-r);o<e.text.length&&a.write(u.HeaderMark,o-s,i-s);let l=a.finish(u.ATXHeading1-1+n,e.text.length-s);return t.nextLine(),t.addNode(l,r),!0},HTMLBlock(t,e){let n=Re(e,t,!1);if(n<0)return!1;let s=t.lineStart+e.pos,r=ee[n][1],i=[],o=r!=W;for(;!r.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){o=!1;break}for(let h of e.markers)i.push(h)}o&&t.nextLine();let a=r==Oe?u.CommentBlock:r==$e?u.ProcessingInstructionBlock:u.HTMLBlock,l=t.prevLineEnd();return t.addNode(t.buffer.writeElements(i,-s).finish(a,l-s),s),!0},SetextHeading:void 0};class wt{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,n,s){if(this.stage==-1)return!1;let r=s.content+`
|
|
2
2
|
`+n.scrub(),i=this.advance(r);return i>-1&&i<r.length?this.complete(e,s,i):!1}finish(e,n){return(this.stage==2||this.stage==3)&&O(n.content,this.pos)==n.content.length?this.complete(e,n,n.content.length):!1}complete(e,n,s){return e.addLeafElement(n,k(u.LinkReference,this.start,this.start+s,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(Ze(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(k(u.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(_e(e,O(e,this.pos),this.start)))return-1}else if(this.stage==2){let n=O(e,this.pos),s=0;if(n>this.pos){let r=Qe(e,n,this.start);if(r){let i=V(e,r.to-this.start);i>0&&(this.nextStage(r),s=i)}}return s||(s=V(e,this.pos)),s>0&&s<e.length?s:-1}else return V(e,this.pos)}}}function V(t,e){for(;e<t.length;e++){let n=t.charCodeAt(e);if(n==10)break;if(!w(n))return-1}return e}class yt{nextLine(e,n,s){let r=n.depth<e.stack.length?-1:Ne(n),i=n.next;if(r<0)return!1;let o=k(u.HeaderMark,e.lineStart+n.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(s,k(i==61?u.SetextHeading1:u.SetextHeading2,s.start,e.prevLineEnd(),[...e.parser.parseInline(s.content,s.start),o])),!0}finish(){return!1}}const Xe={LinkReference(t,e){return e.content.charCodeAt(0)==91?new wt(e):null},SetextHeading(){return new yt}},At=[(t,e)=>Pe(e)>=0,(t,e)=>ve(e)>=0,(t,e)=>Me(e)>=0,(t,e)=>ie(e,t,!0)>=0,(t,e)=>oe(e,t,!0)>=0,(t,e)=>re(e,t,!0)>=0,(t,e)=>Re(e,t,!0)>=0],It={text:"",end:0};class Bt{constructor(e,n,s,r){this.parser=e,this.input=n,this.ranges=r,this.line=new Ct,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=j.create(u.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=s.length?new vt(s,n):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let s=0;;){let r=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;s<e.markers.length&&(!r||e.markers[s].from<r.end);){let i=e.markers[s++];this.addNode(i.type,i.from,i.to)}if(!r)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let s of this.parser.blockParsers)if(s){let r=s(this,e);if(r!=!1){if(r==!0)return null;e.forward();continue e}}break}let n=new St(this.lineStart+e.pos,e.text.slice(e.pos));for(let s of this.parser.leafBlockParsers)if(s){let r=s(this,n);r&&n.parsers.push(r)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let s of this.parser.endLeafBlock)if(s(this,e,n))break e}for(let s of n.parsers)if(s.nextLine(this,e,n))return null;n.content+=`
|
|
3
3
|
`+e.scrub();for(let s of e.markers)n.marks.push(s)}return this.finishLeaf(n),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let n=this.fragments.takeNodes(this);return n?(this.absoluteLineStart+=n,this.lineStart=Ve(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let n=It;if(n.end=e,e>=this.to)n.text="";else if(n.text=this.lineChunkAt(e),n.end+=n.text.length,this.ranges.length>1){let s=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<n.end;){r++;let i=this.ranges[r].from,o=this.lineChunkAt(i);n.end=i+o.length,n.text=n.text.slice(0,this.ranges[r-1].to-s)+o,s=n.end-n.text.length}}return n}readLine(){let{line:e}=this,{text:n,end:s}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=s,e.reset(n);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],i=this.parser.skipContextMarkup[r.type];if(!i)throw new Error("Unhandled block context "+u[r.type]);let o=this.line.markers.length;if(!i(r,this,e)){this.line.markers.length>o&&(r.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let n=this.input.chunk(e),s;if(this.input.lineChunks)s=n==`
|
|
4
4
|
`?"":n;else{let r=n.indexOf(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as _,O as v,P as E,a2 as c,u as m,aJ as D,E as M,f as P,Y as R,$ as x,a as N,m as k}from"./vendor-core-Do-oxgl9.js";import{c as z,p as O}from"./index-Bucicr-O.js";import{N as C,c as V,z as $,E as f}from"./index-YvDl_1WK.js";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang-C7h-Ycpm.js";import{_ as B}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./vendor-ui-KquZSIP0.js";import"./useMessage-BLwQdu5o.js";const L={class:"size-full"},j=_({__name:"index",props:{version:{type:String,default:""},compAttrs:{type:Object,default:()=>({})}},setup(e){return(p,a)=>(v(),E("div",L,[c(F,{compAttrs:e.compAttrs,version:e.version,bgColor:e.compAttrs?.bgColor,compType:m(C).IFRAME_ROUTES.ITEM.PREVIEW_REMOTE},null,8,["compAttrs","version","bgColor","compType"])]))}}),K={key:0,class:"size-full"},Q=_({__name:"index",setup(e){const p=D(),a=V(),A=new Map;M(C.PROVIDE_KEY_CALLBACKS,A);const{compId:t,version:r=""}=p.params,l=N(!1),o=z(t)(),d=k(()=>o.detail[r]);async function y(){if(await a.initSetting(),!t)throw new Error("compId is required");const n=await $.v1Comp.compcontrollerCompdetail({compId:t,version:r}),{objectId:u,version:s,files:g,dep:b}=n.data,w={objectId:u,version:s,files:g.map(i=>i.path)},S=await f.comp.compcontrollerCompfilesosssignedurl(w),h=O(b,a.deps).map(i=>i.name),I=await f.module.modulecontrollerPrebuild({deps:h}),{entryNameToFile:T={}}=I.data;o.setDetail(s,{...n.data,_id:t}),o.setDepEntryNameToFile(s,T),o.setVersionToFileAccessPath(s,S.data.signedUrls)}return P(async()=>{await y(),l.value=!0}),(n,u)=>l.value?(v(),E("div",K,[c(m(B),{isEmpty:!d.value,class:"size-full"},{default:R(()=>[c(j,{compAttrs:d.value,version:m(r)},null,8,["compAttrs","version"])]),_:1},8,["isEmpty"])])):x("",!0)}});export{Q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as P,a8 as A,F as x,N}from"./vendor-ui-KquZSIP0.js";import{N as s,B as K,z as c,m as U}from"./index-YvDl_1WK.js";import{c as B,b as Y}from"./index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js";import{_ as F}from"./index.vue_vue_type_style_index_0_lang-DfBu8zdC.js";import{c as z}from"./useCompEditStore-Ch5sDzy4.js";import{I as H,aA as V,h as $,aJ as Q,aG as G,E as d,aC as E,a7 as j,Z as J,u as l,O as W,P as Z,a2 as m,Y as h,a as f,m as n,e as y,n as X}from"./vendor-core-Do-oxgl9.js";import{u as q}from"./useKeyword-Bmq02ywx.js";import"./index-Bucicr-O.js";import"./useCompMetaLocalStore-DBe1Ldcg.js";import"./useCacheOssStore-KoEbWj57.js";import"./useVscodeOpen-DyvB87xz.js";import"./useTeamHeaders-Bttl7tEb.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js";/* empty css */import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./useMessage-BLwQdu5o.js";import"./v4-EwEgHOG0.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-Digz_UdY.js";import"./core-yetgou6F.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-C8JwSZDA.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-QoRVS1cj.js";import"./BaseBadge-CwPduDSy.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-DYO0UGlK.js";const ee={class:"size-full p-[10px] pr-0"},Se=H({__name:"index",setup(te){const{t:i}=V(),C=$()?.uid,_=Q(),v=G(),a=B(_.path)();d(s.PROVIDE_KEY_COMP_LIST_STORE,a);const I=z(_.path,s.DIALOG_TYPE_EDIT)();d(s.PROVIDE_KEY_COMP_EDIT_STORE,I);const g=new Map;d(s.PROVIDE_KEY_CALLBACKS,g);const O=E("compUpdateDialog"),T=E("compIframeContainer"),w=f([]),u=f(!1);async function S(e){u.value=!0;const r=(await c.v1Comp.compcontrollerTags({keyword:e})).data?.rows??[];w.value=r.map(o=>({value:o,label:o})),u.value=!1}const p=f({data:[],search:{column:[{prop:"keyword",component:y(x),label:n(()=>i("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:n(()=>i("comp.keywordPlaceholder")),fetchSuggestions:k,triggerOnFocus:!1,style:"width: 350px",fitInputWidth:!0}},{prop:"tags",component:y(N),label:n(()=>i("comp.tags")),value:[],autoQuery:!1,attributes:{multiple:!0,filterable:!0,remote:!0,clearable:!0,reserveKeyword:!1,defaultFirstOption:!0,placeholder:n(()=>i("comp.pleaseInputTags")),remoteMethod:S,loading:u,options:w,style:"width: 240px"}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:R}),b=n(()=>p.value?.search?.column[0]?.value??"");q(b,T);function k(e,t){if(e.length<=1)return t([]);c.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compMy"}).then(r=>{const{keywords:o=[]}=r.data||{};t(o)})}async function R(e){a.renderList([]),await X(),a.setLoading(!0),e.keyword&&window?.umami?.track(U.SEARCH_COMPONENT,{keyword:e.keyword,page:"mine"});const t=await c.v1Comp.compcontrollerMycomps({...e,tags:Array.isArray(e.tags)?e.tags.join(","):e.tags||""}),{rows:r,total:o}=t.data??{};a.renderList(r??[]),p.value.pagination.total=o??0}function L(e){v.push({path:`/preview/${e}`})}async function D(e){O.value?.open(e)}function M(e){c.v1Comp.compcontrollerCompdetail({compId:e}).then(t=>{a.updateCompListItemById(e,t.data)})}return g.set(s.COMP_METHOD_KEY_AFTER_COMP_DEL,()=>{p.value.pagination.total--}),j(()=>{a.$reset()}),(e,t)=>{const r=A,o=P;return J((W(),Z("div",ee,[m(l(K),{tableConfig:p.value},{table:h(()=>[m(r,{always:"",wrapClass:"pr-[10px]"},{default:h(()=>[m(Y,{ref:"compIframeContainer",iuid:l(C),compType:l(s).IFRAME_ROUTES.CONTAINER.MINE,onPreview:L,onUpdate:D},null,8,["iuid","compType"])]),_:1})]),_:1},8,["tableConfig"]),m(F,{ref:"compUpdateDialog",onUpdateSuccess:M},null,512)])),[[o,l(a).loading]])}}});export{Se as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./index.vue_vue_type_style_index_0_lang-Bsi5S1XY.js";import{I as o,O as t,P as s,a2 as a}from"./vendor-core-Do-oxgl9.js";import"./vendor-xterm-mNFjEaKn.js";import"./index-YvDl_1WK.js";import"./vendor-ui-KquZSIP0.js";const r={class:"size-full"},d=o({__name:"index",setup(n){return(_,c)=>(t(),s("div",r,[a(e)]))}});export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as k,F as U,N as $}from"./vendor-ui-
|
|
1
|
+
import{v as k,F as U,N as $}from"./vendor-ui-KquZSIP0.js";import{N as a,B as x,z as p}from"./index-YvDl_1WK.js";import{I as K,aA as Y,aG as N,aJ as B,E as u,aC as C,a7 as F,Z as V,u as l,O as z,P as H,a2 as d,Y as Q,h as G,a as f,m as n,e as T,n as j}from"./vendor-core-Do-oxgl9.js";import{u as J}from"./useTeamHeaders-Bttl7tEb.js";import{c as W,b as Z}from"./index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js";import{c as X}from"./useCompEditStore-Ch5sDzy4.js";import{_ as q}from"./index.vue_vue_type_style_index_0_lang-DfBu8zdC.js";import{u as ee}from"./useKeyword-Bmq02ywx.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js";import"./index-Bucicr-O.js";import"./useCompMetaLocalStore-DBe1Ldcg.js";import"./useCacheOssStore-KoEbWj57.js";import"./useVscodeOpen-DyvB87xz.js";/* empty css */import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./useMessage-BLwQdu5o.js";/* empty css */import"./v4-EwEgHOG0.js";import"./index.vue_vue_type_style_index_0_lang-Digz_UdY.js";import"./core-yetgou6F.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-C8JwSZDA.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-QoRVS1cj.js";import"./BaseBadge-CwPduDSy.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-DYO0UGlK.js";const te={class:"size-full"},Me=K({__name:"index",setup(ae){const{t:i}=Y(),v=G(),w=N(),_=B(),{headers:g,teamId:y}=J(),o=W(`${_.path}_${a.SCOPE_ID_TEAM_MY_COMP_LIST}`)();u(a.PROVIDE_KEY_COMP_LIST_STORE,o);const I=X(`${_.path}_${a.SCOPE_ID_TEAM_MY_COMP_UPDATE}`,a.DIALOG_TYPE_EDIT)();u(a.PROVIDE_KEY_COMP_EDIT_STORE,I);const h=new Map;u(a.PROVIDE_KEY_CALLBACKS,h);const O=C("compUpdateDialog"),S=C("compIframeContainer"),E=f([]),m=f(!1);async function M(e){m.value=!0;const r=(await p.v1Comp.compcontrollerTags({keyword:e})).data?.rows??[];E.value=r.map(s=>({value:s,label:s})),m.value=!1}const c=f({data:[],search:{column:[{prop:"keyword",component:T(U),label:n(()=>i("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:n(()=>i("comp.keywordPlaceholder")),fetchSuggestions:D,triggerOnFocus:!1,style:"width: 350px",fitInputWidth:!0}},{prop:"tags",component:T($),label:n(()=>i("comp.tags")),value:[],autoQuery:!1,attributes:{multiple:!0,filterable:!0,remote:!0,clearable:!0,reserveKeyword:!1,defaultFirstOption:!0,placeholder:n(()=>i("comp.pleaseInputTags")),remoteMethod:M,loading:m,options:E,style:"width: 240px"}}]},pagination:{total:0},fixedHeight:!1,autoLoading:!1,fetchData:L}),P=n(()=>c.value?.search?.column[0]?.value??"");ee(P,S);function D(e,t){if(e.length<=1)return t([]);p.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeamMy"},{headers:g}).then(r=>{const{keywords:s=[]}=r.data||{};t(s)})}async function L(e){o.renderList([]),await j(),o.setLoading(!0);const t=await p.v1Team.teamcontrollerMyteamcomps({...e,tags:Array.isArray(e.tags)?e.tags.join(","):e.tags||""},{headers:g}),{rows:r,total:s}=t.data??{};o.renderList(r??[]),c.value.pagination.total=s??0}function R(e){w.push({path:`/previewTeam/${y}/${e}`})}async function b(e){O.value?.open(e)}function A(e){p.v1Comp.compcontrollerCompdetail({compId:e}).then(t=>{o.updateCompListItemById(e,t.data)})}return h.set(a.COMP_METHOD_KEY_AFTER_COMP_DEL,()=>{c.value.pagination.total--}),F(()=>{o.$reset()}),(e,t)=>{const r=k;return V((z(),H("div",te,[d(l(x),{tableConfig:c.value,border:""},{table:Q(()=>[d(Z,{ref:"compIframeContainer",iuid:l(v)?.uid,compType:l(a).IFRAME_ROUTES.CONTAINER.TEAM_MINE,onPreview:R,onUpdate:b},null,8,["iuid","compType"])]),_:1},8,["tableConfig"]),d(q,{ref:"compUpdateDialog",onUpdateSuccess:A},null,512)])),[[r,l(o).loading]])}}});export{Me as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BMVmqejS.js","./vendor-ui-KquZSIP0.js","./vendor-core-Do-oxgl9.js","./index-YvDl_1WK.js","./index-D-8GYlU8.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{l as oe,N as d,n as ae,q as te,E as T,m as V,z as re}from"./index-YvDl_1WK.js";import{a8 as le,af as se,ag as ne,c as ie,a as B,t as ce,a9 as me,w as de,ad as pe,n as ue,a5 as z}from"./vendor-ui-KquZSIP0.js";/* empty css */import{u as _e,c as fe,C as he,_ as ge}from"./useCompEditStore-Ch5sDzy4.js";import{I as q,aA as J,ak as K,O as v,Q as O,Y as s,a2 as n,R as o,a1 as p,u as i,U as P,$ as X,P as j,H as ve,af as ye,a0 as H,a as D,l as be,aG as Ee,aJ as Ce,E as xe,aC as Y,a7 as Se,k as we,aL as Te,m as Pe,n as G}from"./vendor-core-Do-oxgl9.js";import{_ as ke}from"./index.vue_vue_type_script_setup_true_lang-DHWblo58.js";import{_ as Re}from"./index.vue_vue_type_style_index_0_lang-Digz_UdY.js";import{_ as Oe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js";import{u as Ie}from"./useTeamHeaders-Bttl7tEb.js";/* empty css *//* empty css */import"./index-Bucicr-O.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./v4-EwEgHOG0.js";import"./useMessage-BLwQdu5o.js";import"./useVscodeOpen-DyvB87xz.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-C8JwSZDA.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-QoRVS1cj.js";import"./BaseBadge-CwPduDSy.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-DYO0UGlK.js";import"./core-yetgou6F.js";const De={class:"flex items-center gap-2"},Ne={class:"text-sm font-semibold"},Ae={class:"px-1 pb-3"},Le={class:"text-sm leading-relaxed mb-1"},Ue={class:"text-xs leading-relaxed mb-4 opacity-60"},Fe={class:"flex flex-col gap-2"},Me={class:"text-sm font-medium"},$e={class:"text-sm font-medium"},Ve={class:"flex items-center gap-2"},ze={class:"text-sm font-semibold"},He={class:"px-1 pb-3"},Ke={class:"text-[13px] leading-relaxed mb-3"},je={class:"flex items-center flex-wrap gap-1.5 pt-2 border-t border-gray-200 dark:border-gray-700"},Be={class:"text-xs font-medium opacity-50"},Xe={class:"flex justify-end items-center gap-2.5"},Ye=q({__name:"index",setup(Q,{expose:N}){const{t}=J(),f=D(!1),h=be({similarList:[],needRename:!1,editedName:"",folderName:""}),r=D(!0),C=D(["rename"]);let l=null,k=null;const{src:I}=_e("COMP_REPEAT.md");function y(x){return Object.assign(h,x),r.value=!0,C.value=x.needRename?["rename"]:x.similarList.length?["duplicate"]:[],f.value=!0,new Promise((c,b)=>{l=c,k=b})}function A(){k?.()}function g(){f.value=!1,k?.()}function L(){f.value=!1,l?.({shouldRename:r.value})}return N({open:y,close:g}),(x,c)=>{const b=K("Icon"),R=ne,U=K("router-link"),F=se,M=le,a=ie;return v(),O(i(Oe),{modelValue:f.value,"onUpdate:modelValue":c[3]||(c[3]=e=>f.value=e),title:i(t)("comp.uploadConfirmTitle"),width:"1000px",top:"10vh",onClosed:A},{footer:s(()=>[o("div",Xe,[n(a,{onClick:g},{default:s(()=>[H(p(i(t)("common.cancel")),1)]),_:1}),n(a,{type:"primary",onClick:L},{default:s(()=>[H(p(i(t)("common.confirm")),1)]),_:1})])]),default:s(()=>[n(M,{class:"!h-[70vh] pr-5"},{default:s(()=>[n(F,{modelValue:C.value,"onUpdate:modelValue":c[2]||(c[2]=e=>C.value=e),class:"!border-none"},{default:s(()=>[h.needRename?(v(),O(R,{key:0,name:"rename"},{title:s(()=>[o("div",De,[n(b,{icon:"material-symbols:drive-file-rename-outline-rounded",width:"18",height:"18"}),o("span",Ne,p(i(t)("comp.renameFolderTitle")),1)])]),default:s(()=>[o("div",Ae,[o("p",Le,p(i(t)("comp.renameFolderTip",{editedName:h.editedName,folderName:h.folderName})),1),o("p",Ue,p(i(t)("comp.renameFolderQuestion")),1),o("div",Fe,[o("label",{class:P(["flex items-center gap-3 px-3.5 py-3 rounded-lg border cursor-pointer transition-all duration-200",r.value?"border-[var(--el-color-primary)] bg-[var(--el-color-primary-light-9)] dark:bg-[var(--el-color-primary-light-3)]/15":"border-gray-200 dark:border-gray-700 hover:border-[var(--el-color-primary-light-5)]"]),onClick:c[0]||(c[0]=e=>r.value=!0)},[o("span",{class:P(["flex items-center justify-center w-5 h-5 rounded-full border-1.5 flex-shrink-0 transition-all duration-200",r.value?"border-[var(--el-color-primary)] bg-[var(--el-color-primary)]":"border-gray-300 dark:border-gray-600"])},[o("span",{class:P(["w-2 h-2 rounded-full bg-white transition-transform duration-200",r.value?"scale-100":"scale-0"])},null,2)],2),o("span",Me,p(i(t)("comp.renameSyncYes")),1)],2),o("label",{class:P(["flex items-center gap-3 px-3.5 py-3 rounded-lg border cursor-pointer transition-all duration-200",r.value?"border-gray-200 dark:border-gray-700 hover:border-[var(--el-color-primary-light-5)]":"border-[var(--el-color-primary)] bg-[var(--el-color-primary-light-9)] dark:bg-[var(--el-color-primary-light-3)]/15"]),onClick:c[1]||(c[1]=e=>r.value=!1)},[o("span",{class:P(["flex items-center justify-center w-5 h-5 rounded-full border-1.5 flex-shrink-0 transition-all duration-200",r.value?"border-gray-300 dark:border-gray-600":"border-[var(--el-color-primary)] bg-[var(--el-color-primary)]"])},[o("span",{class:P(["w-2 h-2 rounded-full bg-white transition-transform duration-200",r.value?"scale-0":"scale-100"])},null,2)],2),o("span",$e,p(i(t)("comp.renameSyncNo")),1)],2)])])]),_:1})):X("",!0),h.similarList.length?(v(),O(R,{key:1,name:"duplicate"},{title:s(()=>[o("div",Ve,[n(b,{icon:"material-symbols:warning-rounded",width:"18",height:"18"}),o("span",ze,p(i(t)("comp.similarFound")),1)])]),default:s(()=>[o("div",He,[o("div",Ke,[n(Re,{src:i(I)},null,8,["src"])]),o("div",je,[o("span",Be,p(i(t)("comp.similar"))+":",1),(v(!0),j(ve,null,ye(h.similarList,e=>(v(),O(U,{key:e._id,to:`/similarPreview/${e._id}`,target:"_blank",class:"inline-flex items-center gap-0.5 text-xs font-medium no-underline text-[var(--el-color-primary)] bg-[var(--el-color-primary-light-9)] dark:bg-[var(--el-color-primary-light-3)]/15 hover:bg-[var(--el-color-primary-light-7)] dark:hover:bg-[var(--el-color-primary-light-3)]/25 px-2.5 py-1 rounded-full transition-colors duration-150"},{default:s(()=>[H(p(e.name)+" ",1),n(b,{icon:"material-symbols:open-in-new-rounded",width:"12",height:"12",class:"opacity-50"})]),_:2},1032,["to"]))),128))])])]),_:1})):X("",!0)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue","title"])}}}),Ge={class:"size-full p-[10px]"},qe={class:"overflow-hidden size-full"},Je={key:0,class:"cursor-not-allowed bg-gray-100 dark:bg-gray-800 absolute inset-0 flex items-center justify-center"},Qe={class:"text-gray-500"},Eo=q({__name:"index",setup(Q){const N=Te(()=>te(()=>import("./index-BMVmqejS.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),{t}=J(),f=Ee(),h=Ce(),{teamId:r}=Ie(),C=B(oe,!1),l=fe(h.path,d.DIALOG_TYPE_ADD)();xe(d.PROVIDE_KEY_COMP_EDIT_STORE,l);const k=Y("dialogPutTreaty"),I=Y("dialogUploadConfirmRef"),y=B(ae,330);y.value<=0&&(y.value=330);const A=D(""),g=Pe(()=>l.selectedFolder?.path);async function L(a){const e=await T.comp.compcontrollerDir({compPath:a}),{tree:m,files:u}=e.data;l.setOriginalDirectory(m),l.setOriginalDirectoryList(u);const _=m?.children||[];if(_?.length){const E=_.find(ee=>ee.name===d.COMP_CONFIG_FILENAME);if(!E)return d.COMP_CHECK_STATUS_NOT_EXIST;const S=await T.comp.compcontrollerFile({filePath:E.path}),{content:w}=S.data,$=JSON.parse(w)[d.COMP_FIELD_COMP_ID];if(!$)return d.COMP_CHECK_STATUS_NOT_EXIST;const Z=await re.v1Comp.compcontrollerCheckcompexistbyid({compId:$}),{exist:W}=Z.data;if(W)return A.value=$,d.COMP_CHECK_STATUS_EXIST}return d.COMP_CHECK_STATUS_NOT_EXIST}const x=async(a,e)=>{if(e()){if(l.$reset(),!C.value){k.value?.open(m=>{m&&(C.value=!0,c(a))});return}c(a)}};async function c(a){const e=pe.service({fullscreen:!0}),m=await L(a.path);if(m===d.COMP_CHECK_STATUS_NOT_EXIST){const u=await T.comp.compcontrollerDep({compPath:a.path}),{thirdParty:_}=u.data;l.setSelectedFolder(a),G(()=>{l.initPreviewCompList(),l.setCompDep(_),e.close()}),window?.umami?.track(V.UPLOAD_SELECT_FOLDER,{path:a.path})}else m===d.COMP_CHECK_STATUS_EXIST&&ue.confirm(t("comp.compAlreadyUploaded"),t("common.warning"),{confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),type:"warning"}).catch(()=>{}).finally(()=>{e.close()})}async function b(){const a=l.extraInfo.name;try{await T.comp.compcontrollerRenamedir({compPath:g.value,newName:a}),z.success(t("message.success.renameFolder"))}catch{z.warning(t("message.error.renameFolder"))}}async function R({shouldRename:a}){const e=l.getCompSubmitParams();await T.comp.compcontrollerSubmit({...e,...r?{teamId:r}:{}}),z.success(t("message.success.upload")),window?.umami?.track(V.UPLOAD_SUCCESS,{compPath:g.value,teamId:r}),a&&await b(),await F(),l.$reset()}async function U({end:a}){try{const e=await T.comp.compcontrollerCheckcomprepeat({compPath:g.value,...r?{teamId:r}:{}}),{similarList:m=[]}=e.data,u=l.extraInfo.name,_=l.selectedFolder.basename,E=!!(u&&u!==_);if(!(m.length>0)&&!E){await R({shouldRename:!1}),a();return}const w=await I.value.open({similarList:m,needRename:E,editedName:u,folderName:_}).catch(()=>null);if(w===null)return;await R({shouldRename:w.shouldRename})}catch(e){console.error("上传失败:",e),window?.umami?.track(V.UPLOAD_FAILED,{compPath:g.value,teamId:r,error:String(e)})}finally{a()}}async function F(){r?await f.push({name:"team",params:{teamId:r},query:{[d.ROUTE_STATE_KEY_VERSION]:Date.now()}}):await f.push({name:"mine",query:{[d.ROUTE_STATE_KEY_VERSION]:Date.now()}})}async function M(){const a=l.selectedFolder;l.$reset(),await G(),c(a)}return Se(()=>{l.$reset()}),(a,e)=>{const m=ce,u=K("Icon"),_=me,E=de;return v(),j("div",Ge,[n(E,null,{default:s(()=>[n(m,{size:i(y),"onUpdate:size":e[0]||(e[0]=S=>we(y)?y.value=S:null),collapsible:"",max:"30%"},{default:s(()=>[o("div",qe,[n(ke,null,{default:s(({isLogin:S})=>[n(i(N),{onSelect:w=>x(w,S)},null,8,["onSelect"])]),_:1})])]),_:1},8,["size"]),n(m,{class:"size-full rounded-sm relative !overflow-hidden"},{default:s(()=>[g.value?(v(),O(he,{key:1,onConfirmUpload:U,onReload:M})):(v(),j("div",Je,[n(_,null,{image:s(()=>[o("div",null,[n(u,{icon:"material-symbols:folder-info"})])]),description:s(()=>[o("span",Qe,p(i(t)("comp.pleaseSelectFolderFirst")),1)]),_:1})]))]),_:1})]),_:1}),n(ge,{ref:"dialogPutTreaty"},null,512),n(Ye,{ref_key:"dialogUploadConfirmRef",ref:I},null,512)])}}});export{Eo as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as A,u as L,a5 as u}from"./vendor-ui-KquZSIP0.js";import{W as N,X as w,N as c,Y as C,Z as D,$ as R}from"./index-YvDl_1WK.js";import{I as y,aA as I,aJ as $,a as o,f as B,ak as S,O as f,P as T,Q as z,W as V,$ as q,m as d,n as G}from"./vendor-core-Do-oxgl9.js";const O={class:"size-full"},U=y({__name:"index",emits:["select"],setup(W,{emit:v}){const{locale:m,t:l}=I(),h={zh:"zhCN",en:"en"},p=d(()=>h[m.value]),t=o(null),n=o(!0),_=$(),r=A(`${N}_${_.path}`,""),g=v,E=L(),P=`${D()}/api/vuefinder`,F=new w({baseURL:P,url:{list:"/list"}}),i=o(r.value||c.FILE_MANAGER_DIRNAME),M=d(()=>({selectionMode:"single",driver:F,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:[...R,{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:x}=e;return x.length>1?!1:s?.type==="dir"}}],config:{initialPath:i.value,theme:E.value?"valorite":"silver"}}));function k(a){r.value=a,!a&&t.value&&(n.value=!1,G(()=>{n.value=!0,i.value=c.FILE_MANAGER_DIRNAME,t.value?.refresh()}))}return B(()=>{t.value=C("vueFinder")}),(a,e)=>{const s=S("VueFinder");return f(),T("div",O,[n.value?(f(),z(s,V({key:0,id:"vueFinder",locale:p.value},M.value,{onPathChange:k}),null,16,["locale"])):q("",!0)])}}});export{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as N,a7 as j,c as J,a5 as T,a8 as L,a as W,aa as X}from"./vendor-ui-
|
|
1
|
+
import{s as N,a7 as j,c as J,a5 as T,a8 as L,a as W,aa as X}from"./vendor-ui-KquZSIP0.js";import{a as Z,z as V,h as I,B as U,M as q,T as ee}from"./index-YvDl_1WK.js";/* empty css */import{I as R,aA as $,O as t,P as p,R as r,a2 as C,a1 as i,u as o,Q as _,Y as v,a0 as E,$ as x,H as S,aG as te,af as B,a as k,m as z,f as ae,k as se,aF as ne,_ as oe}from"./vendor-core-Do-oxgl9.js";import{u as D}from"./useUnreadStore-kWR1ykK7.js";/* empty css */import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang-2Z80ry6F.js";import{c as F,_ as le}from"./ReplyForm.vue_vue_type_script_setup_true_lang-Cg6jGDaf.js";import{_ as re}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-QoRVS1cj.js";import{B as ie}from"./BaseBadge-CwPduDSy.js";import"./useCacheOssStore-KoEbWj57.js";const ce={class:"flex items-center gap-2"},me={class:"text-sm font-medium"},de={class:"text-xs text-[var(--el-color-danger)] font-medium"},ue={class:"text-xs text-[var(--el-text-color-placeholder)]"},pe={class:"text-sm break-words whitespace-pre-wrap ml-10",style:{color:"var(--el-text-color-regular)"}},fe=R({__name:"ReplyItem",props:{reply:{},isSelf:{type:Boolean}},setup(e){const{t:d}=$(),n=F(d);return(f,s)=>{const b=N;return t(),p("div",null,[r("div",ce,[C(Y,{size:32,src:e.reply.userId?.avatar,text:e.reply.userId?.nickname?.[0]||""},null,8,["src","text"]),r("span",me,i(e.reply.userId?.nickname||o(d)("comment.anonymous")),1),e.isSelf?(t(),_(b,{key:0,"disable-transitions":"",size:"small",type:"primary",effect:"plain"},{default:v(()=>[E(i(o(d)("comment.self")),1)]),_:1})):x("",!0),e.reply.isNew?(t(),p(S,{key:1},[s[0]||(s[0]=r("span",{class:"size-[8px] rounded-full bg-red-500 inline-block shrink-0"},null,-1)),r("span",de,i(o(d)("comment.new")),1)],64)):x("",!0),r("span",ue,i(o(n)(e.reply.createdAt)),1)]),r("div",pe,i(e.reply.content),1)])}}}),ve={class:"border border-[var(--el-border-color-lighter)] rounded-lg p-4"},ye={key:0,class:"flex items-center gap-1 mb-2"},_e={class:"text-xs text-[var(--el-color-danger)]"},xe={class:"flex items-center gap-2 mb-2"},ge={class:"font-medium"},he={class:"flex items-center gap-2 mb-1"},be={class:"text-sm font-medium"},Ce={class:"text-xs text-[var(--el-text-color-placeholder)]"},ke={class:"ml-10 text-sm break-words whitespace-pre-wrap",style:{color:"var(--el-text-color-regular)"}},Ie={key:1,class:"mt-3 ml-10 p-3 bg-[var(--el-fill-color-light)] rounded-md space-y-3"},we={key:0,class:"pt-1"},O=R({__name:"CommentCard",props:{item:{},showReply:{type:Boolean}},emits:["reply-added"],setup(e,{emit:d}){const{t:n}=$(),f=te(),s=Z(),b=F(n),c=e,u=d,l=k(!1),a=k(""),y=k(!1),M=k(!1),H=z(()=>{const g=c.item.replies||[];return M.value?g:g.slice(0,3)});function w(g){return String(g)===String(s.userId)}function G(g){f.push({name:"preview",params:{compId:g}})}async function K(){const g=a.value;if(!(!g?.trim()||y.value)){y.value=!0;try{const m=await V.v1Comment.commentcontrollerCreate({compId:c.item.compId,targetType:I.TargetType.GLOBAL,content:g.trim(),parentId:c.item._id,rootId:c.item.rootId||c.item._id});T.success(n("comment.replySuccess")),a.value="",l.value=!1,u("reply-added",{itemId:c.item._id,reply:m.data})}catch{T.error(n("comment.replyError"))}finally{y.value=!1}}}return(g,m)=>{const P=j,Q=N,A=J;return t(),p("div",ve,[e.item.isNew?(t(),p("div",ye,[m[6]||(m[6]=r("span",{class:"size-[8px] rounded-full bg-red-500 inline-block"},null,-1)),r("span",_e,i(o(n)("comment.new")),1)])):x("",!0),r("div",xe,[C(P,{type:"primary",underline:"never",onClick:m[0]||(m[0]=h=>G(e.item.compId))},{default:v(()=>[r("span",ge,i(e.item.compName),1)]),_:1})]),r("div",null,[r("div",he,[C(Y,{size:32,src:e.item.userId?.avatar,text:e.item.userId?.nickname?.[0]||""},null,8,["src","text"]),r("span",be,i(e.item.userId?.nickname||o(n)("comment.anonymous")),1),r("span",Ce,i(o(b)(e.item.createdAt)),1),w(e.item.userId?._id)?(t(),_(Q,{key:0,"disable-transitions":"",size:"small",type:"primary",effect:"plain"},{default:v(()=>[E(i(o(n)("comment.self")),1)]),_:1})):x("",!0),e.showReply&&!w(e.item.userId?._id)&&!l.value?(t(),_(A,{key:1,link:"",size:"small",type:"primary",onClick:m[1]||(m[1]=h=>l.value=!0)},{default:v(()=>[E(i(o(n)("comment.reply")),1)]),_:1})):x("",!0),e.showReply&&!w(e.item.userId?._id)&&l.value?(t(),_(A,{key:2,link:"",size:"small",type:"primary",onClick:m[2]||(m[2]=h=>l.value=!1)},{default:v(()=>[E(i(o(n)("comment.cancelReply")),1)]),_:1})):x("",!0)]),r("div",ke,i(e.item.content),1),e.showReply&&!w(e.item.userId?._id)&&l.value?(t(),_(le,{key:0,modelValue:a.value,"onUpdate:modelValue":m[3]||(m[3]=h=>a.value=h),loading:y.value,placeholder:o(n)("comment.replyTo",{name:e.item.userId?.nickname||""}),onSubmit:K,onCancel:m[4]||(m[4]=h=>l.value=!1)},null,8,["modelValue","loading","placeholder"])):x("",!0),e.item.replies?.length?(t(),p("div",Ie,[(t(!0),p(S,null,B(H.value,h=>(t(),_(fe,{key:h._id,reply:h,"is-self":w(h.userId?._id)},null,8,["reply","is-self"]))),128)),e.item.replies.length>3&&!M.value?(t(),p("div",we,[r("div",{class:"text-xs text-[var(--el-color-primary)] cursor-pointer hover:underline",onClick:m[5]||(m[5]=h=>M.value=!0)},i(o(n)("comment.viewAllReplies",{count:e.item.replies.length})),1)])):x("",!0)])):x("",!0)])])}}}),Ee={key:0,class:"space-y-3 pb-4 pr-3"},Re={key:1,class:"text-center py-20 text-sm text-[var(--el-text-color-placeholder)]"},$e=R({componentName:"ReceivedComments",__name:"ReceivedComments",setup(e){const{t:d}=$(),n=D(),f=k(!1),s=k({data:[],pagination:{total:0,attributes:{pageSizes:[10,20,50]}},fixedHeight:!1,fetchData:c});function b({itemId:u,reply:l}){const a=s.value.data.find(y=>y._id===u);a&&(a.replies||(a.replies=[]),a.replies=[l,...a.replies])}async function c(u){const l=u.page??1,a=u.pageSize??10;s.value.data=[];try{const y=await V.v1Comment.commentcontrollerMycompscomments({page:l,pageSize:a,type:I.MyCommentTab.RECEIVED});s.value.data=y.data.rows||[],s.value.pagination.total=y.data.total||0,f.value=!0}catch{T.error(d("comment.loadError"))}n.markAsRead(I.MyCommentTab.RECEIVED)}return(u,l)=>{const a=L;return t(),_(o(U),{key:u.$options.componentName,tableConfig:s.value,class:"flex-1 min-h-0"},{table:v(()=>[C(a,{class:"size-full"},{default:v(()=>[s.value.data.length?(t(),p("div",Ee,[(t(!0),p(S,null,B(s.value.data,y=>(t(),_(O,{key:y._id,item:y,"show-reply":!0,onReplyAdded:b},null,8,["item"]))),128))])):f.value?(t(),p("div",Re,i(o(d)("comment.noReceivedComments")),1)):x("",!0)]),_:1})]),_:1},8,["tableConfig"])}}}),Te={key:0,class:"space-y-3 pb-4 pr-3"},Se={key:1,class:"text-center py-20 text-sm text-[var(--el-text-color-placeholder)]"},Me=R({componentName:"MyDiscussions",__name:"MyDiscussions",setup(e){const{t:d}=$(),n=D(),f=k(!1),s=k({data:[],pagination:{total:0,attributes:{pageSizes:[10,20,50]}},fixedHeight:!1,fetchData:b});async function b(c){const u=c.page??1,l=c.pageSize??10;s.value.data=[];try{const a=await V.v1Comment.commentcontrollerMycompscomments({page:u,pageSize:l,type:I.MyCommentTab.MY});s.value.data=a.data.rows||[],s.value.pagination.total=a.data.total||0,f.value=!0}catch{T.error(d("comment.loadError"))}n.markAsRead(I.MyCommentTab.MY)}return(c,u)=>{const l=L;return t(),_(o(U),{key:c.$options.componentName,tableConfig:s.value,class:"flex-1 min-h-0"},{table:v(()=>[C(l,{class:"size-full"},{default:v(()=>[s.value.data.length?(t(),p("div",Te,[(t(!0),p(S,null,B(s.value.data,a=>(t(),_(O,{key:a._id,item:a,"show-reply":!1},null,8,["item"]))),128))])):f.value?(t(),p("div",Se,i(o(d)("comment.noMyDiscussions")),1)):x("",!0)]),_:1})]),_:1},8,["tableConfig"])}}}),ze={class:"size-full p-[10px] flex flex-col overflow-hidden"},Ve={class:"flex-1 min-h-0 mt-[10px]"},Ke=R({__name:"index",setup(e){const{t:d}=$(),n=D(),f=W(q,I.MyCommentTab.RECEIVED),s=z(()=>[{label:d("comment.tabReceived"),value:I.MyCommentTab.RECEIVED,component:$e,isDot:n.receivedCount>0},{label:d("comment.myCommentsTitle"),value:I.MyCommentTab.MY,component:Me,isDot:n.myCount>0}]),b=z(()=>s.value.find(c=>c.value===f.value)?.component);return ae(()=>{n.fetchUnreadCounts()}),(c,u)=>{const l=X;return t(),p("div",ze,[C(l,{"body-class":"!p-0",class:"sticky top-0 w-full z-10 shrink-0"},{default:v(()=>[C(o(re),{modelValue:o(f),"onUpdate:modelValue":u[0]||(u[0]=a=>se(f)?f.value=a:null),options:s.value},{default:v(({item:a})=>[C(o(ie),{"is-dot":a.isDot},{default:v(()=>[E(i(a.label),1)]),_:2},1032,["is-dot"])]),_:1},8,["modelValue","options"])]),_:1}),r("div",Ve,[C(o(ee),null,{default:v(()=>[(t(),_(ne,null,[(t(),_(oe(b.value)))],1024))]),_:1})])])}}});export{Ke as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as n}from"./index-
|
|
1
|
+
import{_ as n}from"./index-YvDl_1WK.js";import{O as r,P as t,R as c}from"./vendor-core-Do-oxgl9.js";const s={},_={viewBox:"0 0 24 24",fill:"currentColor"};function i(e,o){return r(),t("svg",_,[...o[0]||(o[0]=[c("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"},null,-1)])])}const l=n(s,[["render",i]]),f={},a={viewBox:"0 0 24 24",fill:"currentColor"};function d(e,o){return r(),t("svg",a,[...o[0]||(o[0]=[c("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"},null,-1)])])}const m=n(f,[["render",d]]),x={GithubIcon:l,PersonIcon:m};export{x as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as T,s as A,a8 as R,a9 as V,aa as D}from"./vendor-ui-
|
|
1
|
+
import{y as T,s as A,a8 as R,a9 as V,aa as D}from"./vendor-ui-KquZSIP0.js";import{c as P,d as G,z as K}from"./index-YvDl_1WK.js";/* empty css *//* empty css */import{_ as q}from"./index.vue_vue_type_script_setup_true_lang-BN3PGbF8.js";import{I as k,O as r,P as u,R as p,a0 as c,m as z,aA as H,a2 as o,u as t,Y as i,a1 as l,$ as w,f as F,ak as Q,H as N,Q as E,af as W,a as Y}from"./vendor-core-Do-oxgl9.js";import{_ as J}from"./CanvasAnimation.vue_vue_type_script_setup_true_lang-C4ID6BIz.js";import{H as x}from"./core-yetgou6F.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:/'/},y={match:/\\'/},S={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},v=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=e.SHEBANG({binary:`(${v.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},I=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],L=["true","false"],$={match:/(\/[a-z._-]+)+/},B=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],U=["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:I,literal:L,built_in:[...B,...U,"set","shopt",...O,...M]},contains:[g,e.SHEBANG(),C,S,m,h,$,f,_,b,y,n]}}const X={class:"code-container"},j={class:"hljs"},ee=["innerHTML"],te=k({__name:"CodeHighlight",props:{code:{},language:{}},setup(e){x.registerLanguage("bash",Z);const s=e,n=z(()=>s.code?x.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}=H(),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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as i}from"./vendor-ui-KquZSIP0.js";import{c as u,d,_}from"./index-YvDl_1WK.js";import{I as l,aA as m,aG as g,O as f,Q as S,Y as h,R as x,U as C,u as a,a1 as t,m as U}from"./vendor-core-Do-oxgl9.js";const b=l({__name:"index",setup(k){const{t:e}=m(),o=u(),s=d(),r=g(),n=U(()=>s.isUpgrade?e("upgrade.hasUpdate"):e("upgrade.betaVersion"));function c(){r.push({name:"upgrade"})}return(V,y)=>{const p=i;return f(),S(p,{type:"primary",round:"",class:"cursor-pointer","disable-transitions":"",onClick:c},{default:h(()=>[x("span",{class:C({"is-upgrade":a(s).isUpgrade})},t(n.value)+" "+t(a(o).compHubVersion),3)]),_:1})}}}),R=_(b,[["__scopeId","data-v-7cb44021"]]);export{R as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as j,c as D,s as L,B as U,m as Q,n as Y,a5 as x}from"./vendor-ui-
|
|
1
|
+
import{g as j,c as D,s as L,B as U,m as Q,n as Y,a5 as x}from"./vendor-ui-KquZSIP0.js";import{a as q,B as F,z as b,m as G}from"./index-YvDl_1WK.js";import"./el-table-column-BpgDq_WF.js";import{I as J,aA as W,aC as X,ak as Z,O as i,P as E,a2 as c,ae as w,u,Y as n,am as k,an as v,Q as y,a0 as M,a1 as g,$ as C,R as N,ar as ee,a as S,m as s,e as ae,n as te}from"./vendor-core-Do-oxgl9.js";import{d as ne}from"./index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang-2Z80ry6F.js";import{u as ce}from"./useTeamHeaders-Bttl7tEb.js";import"./index-Bucicr-O.js";import"./useCompMetaLocalStore-DBe1Ldcg.js";import"./useCacheOssStore-KoEbWj57.js";import"./useVscodeOpen-DyvB87xz.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./useMessage-BLwQdu5o.js";const se={class:"size-full"},re={class:"flex items-center justify-center gap-2"},me={key:1},le={class:"flex items-center justify-center gap-2"},Te=J({__name:"index",setup(ie){const{t:a}=W(),V=q(),{headers:h,teamId:B}=ce(),$=ne(B)(),K=X("nicknameInput"),p=S({data:[],column:[{slot:"avatar",prop:"avatar",label:s(()=>a("user.avatar")),align:"center"},{prop:"type",label:s(()=>a("common.type")),align:"center",formatter(e){return{user:a("team.normalUser"),creator:a("team.creator")}[e.type]||"--"}},{prop:"nickname",label:s(()=>a("user.username")),align:"center",formatter(e){return e.nickname||"--"}},{slot:"teamUserNickname",prop:"teamUserNickname",label:s(()=>a("team.teamUserNickname")),align:"center"},{slot:"operation",prop:"operation",label:s(()=>a("common.operation")),align:"center"}],pagination:{total:0},search:{column:[{prop:"keyword",component:ae(U),value:"",autoQuery:!1,attributes:{placeholder:s(()=>`${a("user.account")}/${a("user.nickname")}`)}}]},fixedHeight:!1,fetchData:R}),_=S({}),I=s(()=>V.userInfo?.account);async function R(e){const d=await b.v1Team.teamcontrollerMember({...e},{headers:h}),{rows:r,total:m}=d.data||{};p.value.data=r||[],p.value.pagination.total=m||0}function z(e){return e.nickname?.[0]||e.account?.[0]||""}function O(e){Y.confirm(a("team.kickOutConfirm",{name:e.nickname||e.account}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning",beforeClose:(d,r,m)=>{d==="confirm"?(r.confirmButtonLoading=!0,b.v1Team.teamcontrollerKickout({userId:e._id},{headers:h}).then(()=>{x.success(a("team.kickOutSuccess")),p.value.data=p.value.data?.filter(l=>l._id!==e._id)||[],window?.umami?.track(G.TEAM_KICK_MEMBER,{teamId:B,userId:e._id}),m()}).finally(()=>{r.confirmButtonLoading=!1})):m()}}).catch(()=>{})}async function A(e){_.value[e._id]=!0,await te(),K.value?.focus()}async function T(e){if(!e.teamUserNickname){delete _.value[e._id];return}b.v1Team.teamcontrollerUpdateteamusernickname({userId:e._id,teamUserNickname:e.teamUserNickname},{headers:h}).then(()=>{x.success(a("message.success.update")),delete _.value[e._id]})}return(e,d)=>{const r=Z("Icon"),m=Q,l=j,H=L,P=D;return i(),E("div",se,[c(u(F),{tableConfig:p.value,border:""},w({teamUserNickname:n(({col:o})=>[c(l,k(v(o)),{default:n(({row:t})=>[N("div",re,[_.value[t._id]?(i(),y(u(U),{key:0,ref:"nicknameInput",modelValue:t.teamUserNickname,"onUpdate:modelValue":f=>t.teamUserNickname=f,placeholder:u(a)("team.pleaseInputTeamNickname"),onKeyup:ee(f=>T(t),["enter"]),onBlur:f=>T(t)},null,8,["modelValue","onUpdate:modelValue","placeholder","onKeyup","onBlur"])):(i(),E("span",me,g(t.teamUserNickname||"--"),1)),t.account===I.value?(i(),y(m,{key:2,class:"cursor-pointer",onClick:f=>A(t)},{default:n(()=>[c(r,{icon:"material-symbols:edit-note"})]),_:1},8,["onClick"])):C("",!0)])]),_:1},16)]),account:n(({col:o})=>[c(l,k(v(o)),{default:n(({row:t})=>[N("div",le,[N("span",null,g(t.account),1),t.account===I.value?(i(),y(H,{key:0,type:"info"},{default:n(()=>[M(g(u(a)("common.me")),1)]),_:1})):C("",!0)])]),_:1},16)]),avatar:n(({col:o})=>[c(l,k(v(o)),{default:n(({row:t})=>[c(oe,{src:t.avatar,size:40,text:z(t)},null,8,["src","text"])]),_:1},16)]),_:2},[u($).isCreator?{name:"operation",fn:n(({col:o})=>[c(l,k(v(o)),{default:n(({row:t})=>[t.type==="user"?(i(),y(P,{key:0,onClick:f=>O(t)},{default:n(()=>[M(g(u(a)("team.kickOut")),1)]),_:1},8,["onClick"])):C("",!0)]),_:1},16)]),key:"0"}:void 0]),1032,["tableConfig"])])}}});export{Te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aB as _}from"./vendor-core-Do-oxgl9.js";import{p,
|
|
1
|
+
import{aB as _}from"./vendor-core-Do-oxgl9.js";import{p,N as a}from"./index-YvDl_1WK.js";const P=(s="")=>{if(!s)throw new Error("createCompMetaStore scopeId is required");return _(`compMeta_${s}`,{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 u(s,e){return s.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:o,minor:n,patch:m}=p.parseVersion(t.version),{major:i,minor:c,patch:T}=p.parseVersion(r.version);switch(h){case a.COMP_MATCH_TYPE_AUTO:return!0;case a.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case a.COMP_MATCH_TYPE_MAJOR_VERSION:return o===i;case a.COMP_MATCH_TYPE_MINOR_VERSION:return o===i&&n===c;case a.COMP_MATCH_TYPE_EXACT_VERSION:return o===i&&n===c&&m===T}})}export{P as c,u as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as I,a8 as R,F as S,N as A}from"./vendor-ui-KquZSIP0.js";import{N as l,B as P,z as m,m as x}from"./index-YvDl_1WK.js";import{c as M,b as N}from"./index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js";import{I as K,aA as B,h as D,aJ as F,aG as z,E as _,aC as Y,a7 as Q,Z as V,u as i,O as $,P as H,a2 as u,Y as g,a as d,m as r,e as C,n as U}from"./vendor-core-Do-oxgl9.js";import{u as j}from"./useKeyword-Bmq02ywx.js";import"./index-Bucicr-O.js";import"./useCompMetaLocalStore-DBe1Ldcg.js";import"./useCacheOssStore-KoEbWj57.js";import"./useVscodeOpen-DyvB87xz.js";import"./useTeamHeaders-Bttl7tEb.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js";/* empty css */import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./useMessage-BLwQdu5o.js";const G={class:"size-full p-[10px] pr-0"},pe=K({__name:"index",setup(J){const{t:n}=B(),h=D()?.uid,y=F(),v=z(),a=M(y.path)();_(l.PROVIDE_KEY_COMP_LIST_STORE,a);const f=new Map;_(l.PROVIDE_KEY_CALLBACKS,f);const E=Y("compIframeContainer"),w=d([]),c=d(!1);async function L(e){c.value=!0;const o=(await m.v1Comp.compcontrollerTags({keyword:e})).data?.rows??[];w.value=o.map(t=>({value:t,label:t})),c.value=!1}const p=d({data:[],search:{column:[{prop:"keyword",component:C(S),label:r(()=>n("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:r(()=>n("comp.keywordPlaceholder")),fetchSuggestions:T,triggerOnFocus:!1,style:"width: 350px",fitInputWidth:!0}},{prop:"tags",component:C(A),label:r(()=>n("comp.tags")),value:[],autoQuery:!1,attributes:{multiple:!0,filterable:!0,remote:!0,clearable:!0,reserveKeyword:!1,defaultFirstOption:!0,placeholder:r(()=>n("comp.pleaseInputTags")),remoteMethod:L,loading:c,options:w,style:"width: 240px"}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:b}),O=r(()=>p.value?.search?.column[0]?.value??"");j(O,E);function T(e,s){if(e.length<=1)return s([]);m.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compMyCollect"}).then(o=>{const{keywords:t=[]}=o.data||{};s(t)})}async function b(e){a.renderList([]),await U(),a.setLoading(!0),e.keyword&&window?.umami?.track(x.SEARCH_COMPONENT,{keyword:e.keyword,page:"collect"});const s=await m.v1Comp.compcontrollerCollectedcomps({...e,tags:Array.isArray(e.tags)?e.tags.join(","):e.tags||""}),{rows:o,total:t}=s.data??{};a.renderList(o??[]),p.value.pagination.total=t??0}function k(e){v.push({path:`/preview/${e}`})}return f.set(l.COMP_METHOD_KEY_AFTER_COMP_CANCEL_COLLECT,e=>{a.delCompListById(e)}),Q(()=>{a.$reset()}),(e,s)=>{const o=R,t=I;return V(($(),H("div",G,[u(i(P),{tableConfig:p.value},{table:g(()=>[u(o,{always:"",wrapClass:"pr-[10px]"},{default:g(()=>[u(N,{ref:"compIframeContainer",iuid:i(h),compType:i(l).IFRAME_ROUTES.CONTAINER.COLLECT,onPreview:k},null,8,["iuid","compType"])]),_:1})]),_:1},8,["tableConfig"])])),[[t,i(a).loading]])}}});export{pe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aa as $,S as
|
|
1
|
+
import{aa as $,S as N,a7 as O,c as R,a8 as T}from"./vendor-ui-KquZSIP0.js";import{N as m,i as B,o as F,E as A}from"./index-YvDl_1WK.js";import{I as b,aA as k,O as L,P as z,a2 as e,Y as a,R as t,u as l,a1 as f,a0 as x,E as j,aJ as G,aG as K,f as U,ak as W,Q as Y,a as H,m as P}from"./vendor-core-Do-oxgl9.js";import{c as J}from"./useCompMetaLocalStore-DBe1Ldcg.js";import{B as Q,_ as X}from"./index.vue_vue_type_script_setup_true_lang-Cy3ZPsfb.js";/* empty css *//* empty css */import{_ as q}from"./index.vue_vue_type_script_setup_true_lang-CHyooj4T.js";import{u as Z}from"./useVscodeOpen-DyvB87xz.js";import{_ as ee}from"./PanelBackground.vue_vue_type_script_setup_true_lang-C8JwSZDA.js";import{_ as oe}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./index.vue_vue_type_style_index_0_lang-Digz_UdY.js";import"./core-yetgou6F.js";import"./useTeamHeaders-Bttl7tEb.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js";import"./index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js";import"./index-Bucicr-O.js";import"./useCacheOssStore-KoEbWj57.js";import"./useMessage-BLwQdu5o.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 E(){v(h.compAttrs.fullPath,`./${m.COMP_CONFIG_FILENAME}`)}return(g,c)=>{const r=$,i=N,o=O;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:E},{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=G(),E=K(),g=B(),{compId:c}=p.params,r=J(c)(),i=H(!1),o=P(()=>r.detail),u=P(()=>Object.keys(o.value??{}).length>0),d=P(()=>{const n=F.getPreviewUrl(o.value.path,[`\\${m.COMP_README_FILENAME}`]);return`${m.COMP_PREVIEW_PREFIX_LOCAL}/${n}`});async function I(){if(!c)return;i.value=!0;const n=await A.comp.compcontrollerLocalcompdetailbypathhash({fullPathHash:c}),y=await A.comp.compcontrollerDep({compPath:n.data.path}),{thirdParty:_=[]}=y.data,C=_.map(M=>M.name),w=await A.module.modulecontrollerPrebuild({deps:C}),{entryNameToFile:D={}}=w.data;r.setDetail(n.data),r.setDep(_),r.setDepToFile(D),i.value=!1}function S(){g.addPayLoad(`/previewLocal/${c}`,{name:`${o.value?.name??""}`})}function V(){const{href:n}=E.resolve({name:"previewLocalBlank",params:{compId:c}});window.open(n,"_blank")}return U(async()=>{u.value||await I(),S()}),(n,y)=>{const _=W("Icon"),C=R,w=T;return L(),Y(w,{"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(Q),{title:o.value?.name,actions:["maximize"]},{beforeActions:a(()=>[e(C,{type:"primary",circle:"",title:l(v)("common.newPage"),onClick:V},{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(X,{mdSrc:d.value,scrollContainer:".preview-container",stickyTopDistance:0,showSimilarComp:!1},null,8,["mdSrc"])]),_:1},8,["isEmpty","loading"])]),_:1})}}});export{Le as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as B,c as $,s as z,B as H,a5 as S}from"./vendor-ui-
|
|
1
|
+
import{g as B,c as $,s as z,B as H,a5 as S}from"./vendor-ui-KquZSIP0.js";import{B as j,z as b,m as h}from"./index-YvDl_1WK.js";import"./el-table-column-BpgDq_WF.js";import{d as M}from"./index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang-2Z80ry6F.js";import{u as Y}from"./useTeamHeaders-Bttl7tEb.js";import{I as w,aA as D,O as u,P as d,a2 as o,ae as L,u as s,Y as n,am as T,an as E,a0 as _,a1 as f,a as N,m as p,e as V}from"./vendor-core-Do-oxgl9.js";import{_ as J}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-DYO0UGlK.js";import"./index-Bucicr-O.js";import"./useCompMetaLocalStore-DBe1Ldcg.js";import"./useCacheOssStore-KoEbWj57.js";import"./useVscodeOpen-DyvB87xz.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./useMessage-BLwQdu5o.js";const O={class:"size-full"},Q={key:0},q={key:1},pa=w({__name:"index",setup(F){const{t:a}=D(),{headers:v,teamId:g}=Y(),I=M(g)(),c=N({data:[],column:[{slot:"avatar",prop:"userId.avatar",label:p(()=>a("user.avatar")),align:"center"},{prop:"userId.account",label:p(()=>a("user.account")),align:"center"},{prop:"userId.nickname",label:p(()=>a("user.nickname")),align:"center",formatter(e){return e.userId.nickname||"--"}},{slot:"operation",prop:"operation",label:p(()=>a("common.operation")),align:"center"}],pagination:{total:0},search:{column:[{prop:"keyword",component:V(H),value:"",autoQuery:!1,attributes:{placeholder:p(()=>`${a("user.account")}/${a("user.nickname")}`)}}]},fixedHeight:!1,fetchData:P});async function P(e){const l=await b.v1Team.teamcontrollerApplylist({...e},{headers:v}),{rows:r,total:t}=l.data||{};c.value.data=r||[],c.value.pagination.total=t||0}function y(e,l,r){r.start(),b.v1Team.teamcontrollerHandleapply({applyId:e._id,isAgree:l},{headers:v}).then(()=>{c.value.data=c.value.data?.map(t=>(t._id===e._id&&(t.status=l?"approved":"rejected"),t)),S.success(a("message.success.operation")),window?.umami?.track(l?h.TEAM_APPLY_ACCEPT:h.TEAM_APPLY_REJECT,{teamId:g,applyId:e._id})}).finally(()=>{r.end()})}return(e,l)=>{const r=B,t=$,x=z;return u(),d("div",O,[o(s(j),{tableConfig:c.value,border:""},L({avatar:n(({col:m})=>[o(r,T(E(m)),{default:n(({row:i})=>[o(R,{src:i.userId.avatar,size:40},null,8,["src"])]),_:1},16)]),_:2},[s(I).isCreator?{name:"operation",fn:n(({col:m})=>[o(r,T(E(m)),{default:n(({row:i})=>[i.status==="pending"?(u(),d("div",Q,[o(s(J),null,{default:n(({instance:k,loading:C})=>[o(t,{type:"danger",loading:C,onClick:A=>y(i,!1,k)},{default:n(()=>[_(f(s(a)("team.reject")),1)]),_:1},8,["loading","onClick"]),o(t,{type:"primary",loading:C,onClick:A=>y(i,!0,k)},{default:n(()=>[_(f(s(a)("team.agree")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)])):(u(),d("div",q,[o(x,{type:"info"},{default:n(()=>[_(f(i.status==="approved"?s(a)("team.approved"):s(a)("team.rejected")),1)]),_:2},1024)]))]),_:1},16)]),key:"0"}:void 0]),1032,["tableConfig"])])}}});export{pa as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-26ff3f93] .el-input__wrapper{background-color:#1c1e23;border:1px solid #36363a;box-shadow:none}[data-v-26ff3f93] .el-divider__text{background-color:#0d0d0d}.login-content-container[data-v-78f66c71]{aspect-ratio:16/9;width:45%;max-width:1000px;min-width:740px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u,O as d,P as _,a2 as r,u as f,aJ as P,E as w,f as x,Y as I,a as M,m as p}from"./vendor-core-Do-oxgl9.js";import{c as T}from"./useCompMetaLocalStore-DBe1Ldcg.js";import{N as v,E as n}from"./index-YvDl_1WK.js";import{_ as g}from"./index.vue_vue_type_script_setup_true_lang-CHyooj4T.js";import{_ as N}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./vendor-ui-KquZSIP0.js";import"./useVscodeOpen-DyvB87xz.js";import"./useMessage-BLwQdu5o.js";const O={class:"size-full"},R=u({__name:"index",props:{version:{},compAttrs:{}},setup(a){return(l,t)=>(d(),_("div",O,[r(g,{compAttrs:a.compAttrs,version:a.version,compType:f(v).IFRAME_ROUTES.ITEM.PREVIEW_LOCAL},null,8,["compAttrs","version","compType"])]))}}),b={class:"size-full"},Y=u({__name:"index",setup(a){const l=P(),{compId:t}=l.params,e=T(t)(),h=new Map;w(v.PROVIDE_KEY_CALLBACKS,h);const o=M(!1),s=p(()=>e.detail),E=p(()=>Object.keys(s.value??{}).length>0);async function A(){if(!t)return;o.value=!0;const c=await n.comp.compcontrollerLocalcompdetailbypathhash({fullPathHash:t}),i=await n.comp.compcontrollerDep({compPath:c.data.path}),{thirdParty:m=[]}=i.data,y=m.map(L=>L.name),D=await n.module.modulecontrollerPrebuild({deps:y}),{entryNameToFile:C={}}=D.data;e.setDetail(c.data),e.setDep(m),e.setDepToFile(C),o.value=!1}return x(async()=>{await A()}),(c,i)=>(d(),_("div",b,[r(f(N),{isEmpty:!E.value,loading:o.value,class:"size-full"},{default:I(()=>[r(R,{compAttrs:s.value,version:s.value.version},null,8,["compAttrs","version"])]),_:1},8,["isEmpty","loading"])]))}});export{Y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as K,F as $,C as G,N as F,ad as Y,n as z}from"./vendor-ui-KquZSIP0.js";import{N as i,B as H,z as c,m as y}from"./index-YvDl_1WK.js";import{I as V,h as Q,aA as j,aJ as J,aG as W,E as _,aC as I,a7 as Z,Z as X,u as m,O as q,P as ee,a2 as h,Y as te,a as w,m as n,e as T,n as oe}from"./vendor-core-Do-oxgl9.js";import{c as ae,d as re,b as se}from"./index.vue_vue_type_script_setup_true_lang-ChXDjhzT.js";import{c as ne}from"./useCompEditStore-Ch5sDzy4.js";import{_ as ie}from"./index.vue_vue_type_style_index_0_lang-DfBu8zdC.js";import{u as ce}from"./useTeamHeaders-Bttl7tEb.js";import{u as le}from"./useKeyword-Bmq02ywx.js";import"./index-Bucicr-O.js";import"./useCompMetaLocalStore-DBe1Ldcg.js";import"./useCacheOssStore-KoEbWj57.js";import"./useVscodeOpen-DyvB87xz.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-CkNHSg5g.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-D9ipEmGE.js";import"./useMessage-BLwQdu5o.js";/* empty css */import"./v4-EwEgHOG0.js";import"./index.vue_vue_type_style_index_0_lang-Digz_UdY.js";import"./core-yetgou6F.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-C8JwSZDA.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-QoRVS1cj.js";import"./BaseBadge-CwPduDSy.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-DYO0UGlK.js";const me={class:"size-full overflow-hidden"},Ue=V({__name:"index",setup(pe){const S=Q()?.uid,{t:a}=j(),v=J(),k=W(),{headers:p,teamId:u}=ce(),s=ae(`${v.path}_${i.SCOPE_ID_TEAM_COMP_LIST}`)();_(i.PROVIDE_KEY_COMP_LIST_STORE,s);const L=new Map;_(i.PROVIDE_KEY_CALLBACKS,L);const O=ne(v.path,i.DIALOG_TYPE_EDIT)();_(i.PROVIDE_KEY_COMP_EDIT_STORE,O);const E=re(u)(),b=I("compUpdateDialog"),R=I("compIframeContainer"),C=w([]),d=w(!1);async function P(e){d.value=!0;const o=(await c.v1Comp.compcontrollerTags({keyword:e})).data?.rows??[];C.value=o.map(r=>({value:r,label:r})),d.value=!1}const f=w({data:[],search:{column:[{prop:"keyword",component:T($),label:n(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:n(()=>a("comp.keywordPlaceholder")),fetchSuggestions:D,triggerOnFocus:!1,style:"width: 350px",fitInputWidth:!0}},{prop:"group",component:T(G),label:n(()=>a("team.group")),value:"",attributes:{options:n(()=>E.menuGroup),clearable:!0,props:{value:"id",checkStrictly:!0}}},{prop:"tags",component:T(F),label:n(()=>a("comp.tags")),value:[],autoQuery:!1,attributes:{multiple:!0,filterable:!0,remote:!0,clearable:!0,reserveKeyword:!1,defaultFirstOption:!0,placeholder:n(()=>a("comp.pleaseInputTags")),remoteMethod:P,loading:d,options:C,style:"width: 240px"}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:M}),A=n(()=>f.value?.search?.column[0]?.value??"");le(A,R);function D(e,t){if(e.length<=1)return t([]);c.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeam"},{headers:p}).then(o=>{const{keywords:r=[]}=o.data||{};t(r)})}async function M(e){s.renderList([]),await oe(),s.setLoading(!0),e.keyword&&window?.umami?.track(y.SEARCH_COMPONENT,{keyword:e.keyword,page:"team"});const{group:t=[]}=e||{};delete e.group,t.length&&window?.umami?.track(y.TEAM_FILTER_GROUP,{teamId:u,group:t});const o=t?.[t.length-1];if(o){let l=E.getSelectedGroupLeafNodes(o);l=l.length===0?[o]:l,e.leafNodeIds=l}const r=await c.v1Team.teamcontrollerTeamcomps({...e,tags:Array.isArray(e.tags)?e.tags.join(","):e.tags||"",scene:"library"},{headers:p}),{rows:g,total:B}=r.data??{};s.renderList(g??[]),f.value.pagination.total=B??0}function N(e){k.push({path:`/previewTeam/${u}/${e}`})}async function U(e){const t=Y.service({fullscreen:!0});try{const o=e,r=await c.v1Team.teamcontrollerCheckcompupdatepermission({compId:o},{headers:p}),{result:g}=r.data||{};if(g==="cannot_update"){z.confirm(a("message.noUpdatePermission"),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).finally(()=>{});return}b.value?.open(o)}finally{t.close()}}function x(e){c.v1Comp.compcontrollerCompdetail({compId:e}).then(t=>{s.updateCompListItemById(e,t.data)})}return Z(()=>{s.$reset()}),(e,t)=>{const o=K;return X((q(),ee("div",me,[h(m(H),{tableConfig:f.value},{table:te(()=>[h(se,{ref:"compIframeContainer",iuid:m(S),compType:m(i).IFRAME_ROUTES.CONTAINER.TEAM_ALL,onPreview:N,onUpdate:U},null,8,["iuid","compType"])]),_:1},8,["tableConfig"]),h(ie,{ref:"compUpdateDialog",onUpdateSuccess:x},null,512)])),[[o,m(s).loading]])}}});export{Ue as default};
|