comp-hub 0.1.18 → 0.1.19

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.
Files changed (39) hide show
  1. package/dist/website/dist/assets/{atom-one-dark-DaKCeli0.js → atom-one-dark-k3s8nS4Q.js} +1 -1
  2. package/dist/website/dist/assets/{index-DBvas-y2.js → index-B08_yIdo.js} +1 -1
  3. package/dist/website/dist/assets/{index-BoHsrwck.js → index-B6bJejXz.js} +1 -1
  4. package/dist/website/dist/assets/{index-Cg5tYaaJ.js → index-BCju3w1f.js} +2 -2
  5. package/dist/website/dist/assets/{index-DMoUzjSX.js → index-BPH0o3O-.js} +1 -1
  6. package/dist/website/dist/assets/{index-CP0aBF8i.js → index-Bg1sSD0h.js} +1 -1
  7. package/dist/website/dist/assets/{index-CFV42Y_E.js → index-BlL2Tdlj.js} +1 -1
  8. package/dist/website/dist/assets/{index-B22RDKbu.js → index-BmdNO1MZ.js} +1 -1
  9. package/dist/website/dist/assets/{index-BnB32Ro9.js → index-BnJyLrXy.js} +1 -1
  10. package/dist/website/dist/assets/{index-CRBXbZDI.js → index-BulG_yUH.js} +1 -1
  11. package/dist/website/dist/assets/{index-C73x0f6L.js → index-BwfgYRqy.js} +1 -1
  12. package/dist/website/dist/assets/{index-DKoDSCVP.js → index-BzYZrqYN.js} +1 -1
  13. package/dist/website/dist/assets/{index-DiscR8nA.js → index-C5AGoQL2.js} +1 -1
  14. package/dist/website/dist/assets/{index-CJKsmxmW.js → index-CwOHeTUF.js} +1 -1
  15. package/dist/website/dist/assets/{index-xm1Yd9S3.js → index-D3Uaxo2f.js} +1 -1
  16. package/dist/website/dist/assets/{index-NCe1bOPR.js → index-DCQCk6Lt.js} +1 -1
  17. package/dist/website/dist/assets/{index-Dw87Gdio.js → index-Gk0AmvhA.js} +1 -1
  18. package/dist/website/dist/assets/{index-CyyX--pb.js → index-eLdJqQqm.js} +1 -1
  19. package/dist/website/dist/assets/index-gOrnUHC4.js +1 -0
  20. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-CnpXawsg.js → index.vue_vue_type_script_setup_true_lang-B6qjGW9b.js} +1 -1
  21. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-EA2vbOKr.js → index.vue_vue_type_script_setup_true_lang-BcrKTT6J.js} +1 -1
  22. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-BbAIbHBw.js → index.vue_vue_type_script_setup_true_lang-Cdma1D5V.js} +1 -1
  23. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-BalQl2B-.js → index.vue_vue_type_script_setup_true_lang-CpnHQFlL.js} +1 -1
  24. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-DpkZmowp.js → index.vue_vue_type_script_setup_true_lang-DZ8ULnqr.js} +1 -1
  25. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-DpO50vhc.js → index.vue_vue_type_script_setup_true_lang-DZI9cQ6F.js} +1 -1
  26. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-DDAGjvUI.js → index.vue_vue_type_script_setup_true_lang-KBVOs3Yx.js} +1 -1
  27. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-BosJ7ja_.js → index.vue_vue_type_script_setup_true_lang-mv_g4rJC.js} +1 -1
  28. package/dist/website/dist/assets/{index.vue_vue_type_style_index_0_lang-BnHuZh3W.js → index.vue_vue_type_style_index_0_lang-C9MO6ZTW.js} +1 -1
  29. package/dist/website/dist/assets/{index.vue_vue_type_style_index_0_lang-CYK4UZZC.js → index.vue_vue_type_style_index_0_lang-D5mLFRCT.js} +1 -1
  30. package/dist/website/dist/assets/{index.vue_vue_type_style_index_0_lang-D2TO0bNe.js → index.vue_vue_type_style_index_0_lang-DZzA4x8F.js} +1 -1
  31. package/dist/website/dist/assets/{md5-CnuFqbuY.js → md5-gsIWVbtJ.js} +1 -1
  32. package/dist/website/dist/assets/{moment-DzYjZP69.js → moment-Q0xdD-i8.js} +1 -1
  33. package/dist/website/dist/assets/{useCompEditStore-DsmNqPiJ.js → useCompEditStore-DxIY6W80.js} +1 -1
  34. package/dist/website/dist/assets/{useTeamHeaders-C9_IL2Bb.js → useTeamHeaders-3AldZ0JH.js} +1 -1
  35. package/dist/website/dist/assets/{v1Keyword-C5T2aAkq.js → v1Keyword-CTrvQOnq.js} +1 -1
  36. package/dist/website/dist/assets/{v1Module-BMO4-eIJ.js → v1Module-BPYVWmkw.js} +1 -1
  37. package/dist/website/dist/index.html +1 -1
  38. package/package.json +1 -1
  39. package/dist/website/dist/assets/index-CYs8hR-i.js +0 -1
@@ -1 +1 @@
1
- import{d as b,ac as N,g as j,k as L,m as h,ad as z,J as A,y as U,x as W,r as P,c as y,F as T,b as l,a as n,u as r,w as i,B as $,p as K,Z as M,ae as X,t as x,f as g,af as Y,o as p,a6 as G,i as J,Y as Z,N as q,a5 as w,G as H,D as Q,W as ee,X as te,ag as ae,a4 as E}from"./index-Cg5tYaaJ.js";import{B as oe}from"./index-DKoDSCVP.js";import{_ as se,a as ne}from"./index.vue_vue_type_style_index_0_lang-BnHuZh3W.js";import{c as le}from"./index-BnB32Ro9.js";import{a as re,C as ie,u as ce,c as pe}from"./index-NCe1bOPR.js";import{m as ue}from"./v1Module-BMO4-eIJ.js";const de={class:"flex justify-end items-center"},me={class:"flex-1"},_e={class:"text-xs"},fe={class:"text-xs mt-1 flex justify-between items-center"},ve=b({__name:"Item",setup(k){const e=N(),s=j(),u=re(e._id)(),{openCompPathInVscode:d,handlePath:m}=z(),o=L([]),c=L({}),_=h(()=>Object.keys(c.value??{}).length>0),C=h(()=>m(e.fullPath,1)),S=h(()=>e.previewConfigs.filter(a=>a.miniPath?.length).slice(0,3).map(a=>{const t=le(e.path,a.miniPath);return{finalEntryUrl:`${A}/${t}`}})),V=h(()=>{const a=S.value.length===1?"none":"";return{previews:S.value,dep:o.value,depToFile:c.value,indicatorPosition:a}});async function B(){const a=await Y({compPath:e.path}),{thirdParty:t}=a.data;o.value=t,u.setDep(t)}async function R(){const a=o.value.map(v=>v.name),t=await ue({deps:a}),{entryNameToFile:f={}}=t.data;c.value=f,u.setDepToFile(f)}function O(){d(e.fullPath,"./comp.json")}function F(){s.push({path:`/previewLocal/${e._id}`})}return U(o,async a=>{a.length&&await R()}),W(()=>{B()}),(a,t)=>{const f=P("el-color-picker"),v=P("el-link");return p(),y(T,null,[l(se,{class:"flex flex-col gap-1 h-[280px] overflow-hidden",bg:r(e).bgColor},{default:i(({bg:D,updateColor:I})=>[n("div",{class:"border border-[#e4e7ed] rounded-sm flex-1",style:X({backgroundColor:D})},[_.value?(p(),$(ie,M({key:0},V.value,{autoplay:""}),null,16)):K("",!0)],4),n("div",de,[n("div",me,[n("span",null,x(r(e).version),1)]),n("span",_e,[t[0]||(t[0]=g("背景板:",-1)),l(f,{modelValue:D,onChange:I,clearable:""},null,8,["modelValue","onChange"])])])]),_:1},8,["bg"]),n("div",null,[n("div",null,x(r(e).name),1),n("div",fe,[n("div",null,[t[1]||(t[1]=g(" 组件位置: ",-1)),l(v,{href:"javascript:void(0)",type:"primary",underline:"always",title:r(e).fullPath,onClick:O},{default:i(()=>[g(x(C.value),1)]),_:1},8,["title"])]),l(v,{type:"primary",onClick:F},{default:i(()=>[...t[2]||(t[2]=[g("预览",-1)])]),_:1})])])],64)}}}),he={class:"size-full overflow-x-hidden",ref:"compList"},ge=b({__name:"index",setup(k){const e=G(w.COMP_LIST_STORE),s=J("compList");return ce(s),(u,d)=>{const m=P("el-card");return p(),y("div",he,[l(Z,{isEmpty:r(e).isEmpty,class:"size-full"},{default:i(()=>[l(ne,{itemMinWidth:310},{default:i(()=>[(p(!0),y(T,null,q(r(e).localList,o=>(p(),$(m,{key:o._id,"body-style":"padding: 5px"},{default:i(()=>[l(ve,M({ref_for:!0},o),null,16)]),_:2},1024))),128))]),_:1})]),_:1},8,["isEmpty"])],512)}}}),ye={class:"size-full"},ke=b({__name:"index",setup(k){const e=H(),s=pe(e.path)();E(w.COMP_LIST_STORE,s);const u=new Map;E(w.CALLBACKS,u);const d=L({data:[],pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:m});async function m(o){s.setLoading(!0);const c=await ae(o),{rows:_,total:C}=c.data||{};s.renderLocalList(_),d.value.pagination.total=C||0}return Q(()=>{s.$reset()}),(o,c)=>{const _=ee("loading");return te((p(),y("div",ye,[l(oe,{tableConfig:d.value},{table:i(()=>[l(ge,{class:"overflow-y-scroll"})]),_:1},8,["tableConfig"])])),[[_,r(s).loading]])}}});export{ke as default};
1
+ import{d as b,ac as N,g as j,k as L,m as h,ad as z,J as A,y as U,x as W,r as P,c as y,F as T,b as l,a as n,u as r,w as i,B as $,p as K,Z as M,ae as X,t as x,f as g,af as Y,o as p,a6 as G,i as J,Y as Z,N as q,a5 as w,G as H,D as Q,W as ee,X as te,ag as ae,a4 as E}from"./index-BCju3w1f.js";import{B as oe}from"./index-BzYZrqYN.js";import{_ as se,a as ne}from"./index.vue_vue_type_style_index_0_lang-C9MO6ZTW.js";import{c as le}from"./index-BnJyLrXy.js";import{a as re,C as ie,u as ce,c as pe}from"./index-DCQCk6Lt.js";import{m as ue}from"./v1Module-BPYVWmkw.js";const de={class:"flex justify-end items-center"},me={class:"flex-1"},_e={class:"text-xs"},fe={class:"text-xs mt-1 flex justify-between items-center"},ve=b({__name:"Item",setup(k){const e=N(),s=j(),u=re(e._id)(),{openCompPathInVscode:d,handlePath:m}=z(),o=L([]),c=L({}),_=h(()=>Object.keys(c.value??{}).length>0),C=h(()=>m(e.fullPath,1)),S=h(()=>e.previewConfigs.filter(a=>a.miniPath?.length).slice(0,3).map(a=>{const t=le(e.path,a.miniPath);return{finalEntryUrl:`${A}/${t}`}})),V=h(()=>{const a=S.value.length===1?"none":"";return{previews:S.value,dep:o.value,depToFile:c.value,indicatorPosition:a}});async function B(){const a=await Y({compPath:e.path}),{thirdParty:t}=a.data;o.value=t,u.setDep(t)}async function R(){const a=o.value.map(v=>v.name),t=await ue({deps:a}),{entryNameToFile:f={}}=t.data;c.value=f,u.setDepToFile(f)}function O(){d(e.fullPath,"./comp.json")}function F(){s.push({path:`/previewLocal/${e._id}`})}return U(o,async a=>{a.length&&await R()}),W(()=>{B()}),(a,t)=>{const f=P("el-color-picker"),v=P("el-link");return p(),y(T,null,[l(se,{class:"flex flex-col gap-1 h-[280px] overflow-hidden",bg:r(e).bgColor},{default:i(({bg:D,updateColor:I})=>[n("div",{class:"border border-[#e4e7ed] rounded-sm flex-1",style:X({backgroundColor:D})},[_.value?(p(),$(ie,M({key:0},V.value,{autoplay:""}),null,16)):K("",!0)],4),n("div",de,[n("div",me,[n("span",null,x(r(e).version),1)]),n("span",_e,[t[0]||(t[0]=g("背景板:",-1)),l(f,{modelValue:D,onChange:I,clearable:""},null,8,["modelValue","onChange"])])])]),_:1},8,["bg"]),n("div",null,[n("div",null,x(r(e).name),1),n("div",fe,[n("div",null,[t[1]||(t[1]=g(" 组件位置: ",-1)),l(v,{href:"javascript:void(0)",type:"primary",underline:"always",title:r(e).fullPath,onClick:O},{default:i(()=>[g(x(C.value),1)]),_:1},8,["title"])]),l(v,{type:"primary",onClick:F},{default:i(()=>[...t[2]||(t[2]=[g("预览",-1)])]),_:1})])])],64)}}}),he={class:"size-full overflow-x-hidden",ref:"compList"},ge=b({__name:"index",setup(k){const e=G(w.COMP_LIST_STORE),s=J("compList");return ce(s),(u,d)=>{const m=P("el-card");return p(),y("div",he,[l(Z,{isEmpty:r(e).isEmpty,class:"size-full"},{default:i(()=>[l(ne,{itemMinWidth:310},{default:i(()=>[(p(!0),y(T,null,q(r(e).localList,o=>(p(),$(m,{key:o._id,"body-style":"padding: 5px"},{default:i(()=>[l(ve,M({ref_for:!0},o),null,16)]),_:2},1024))),128))]),_:1})]),_:1},8,["isEmpty"])],512)}}}),ye={class:"size-full"},ke=b({__name:"index",setup(k){const e=H(),s=pe(e.path)();E(w.COMP_LIST_STORE,s);const u=new Map;E(w.CALLBACKS,u);const d=L({data:[],pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:m});async function m(o){s.setLoading(!0);const c=await ae(o),{rows:_,total:C}=c.data||{};s.renderLocalList(_),d.value.pagination.total=C||0}return Q(()=>{s.$reset()}),(o,c)=>{const _=ee("loading");return te((p(),y("div",ye,[l(oe,{tableConfig:d.value},{table:i(()=>[l(ge,{class:"overflow-y-scroll"})]),_:1},8,["tableConfig"])])),[[_,r(s).loading]])}}});export{ke as default};
@@ -1 +1 @@
1
- import{d as B,G as L,V as b,m as n,ad as F,J as h,x as M,r as N,c as R,b as r,w as c,a as p,O as I,P as O,B as A,p as j,o as v,f as z,t as U,Y as G,aG as K,af as Y,a4 as H,a5 as J}from"./index-Cg5tYaaJ.js";import{a as W,C as X,_ as q}from"./index.vue_vue_type_script_setup_true_lang-DpO50vhc.js";import{a as Q}from"./index-NCe1bOPR.js";import{h as Z,c as _}from"./index-BnB32Ro9.js";import{m as ee}from"./v1Module-BMO4-eIJ.js";import{C as ae}from"./index.vue_vue_type_script_setup_true_lang-CnpXawsg.js";import"./index.vue_vue_type_style_index_0_lang-BnHuZh3W.js";import"./index.vue_vue_type_style_index_0_lang-CYK4UZZC.js";import"./atom-one-dark-DaKCeli0.js";import"./useTeamHeaders-C9_IL2Bb.js";import"./index.vue_vue_type_script_setup_true_lang-BalQl2B-.js";const te={class:"preview-container size-full overflow-x-hidden overflow-y-scroll"},oe={class:"h-[50vh]"},se={class:"w-full flex flex-col gap-1"},le={class:"text-xs flex items-center"},Pe=B({__name:"index",setup(ne){const P=new Map;H(J.CALLBACKS,P);const w=L(),C=b(),{openCompPathInVscode:g,handlePath:y}=F(),{compId:i}=w.params,o=Q(i)(),u=n(()=>Z(o.dep??[])),D=n(()=>y(t.value.fullPath,1)),t=n(()=>o.detail),d=n(()=>Object.keys(t.value??{}).length>0),f=n(()=>{const e=t.value?.previewConfigs??[];if(!e.length)return[];const s=a=>{const m=_(t.value.path,a);return`${h}/${m}`},l=e.filter(a=>a.fullPath?.length);return l.length?l.map(a=>({finalEntryUrl:s(a.fullPath??[])})):e.filter(a=>a.miniPath?.length).map(a=>({finalEntryUrl:s(a.miniPath??[])}))}),x=n(()=>{const e=f.value.length===1?"none":"";return{previews:f.value,dep:o.dep,depToFile:o.depToFile,indicatorPosition:e,bgColor:t.value.bgColor??"#fff"}}),E=n(()=>{const e=_(t.value.path,["\\README.md"]);return`${h}/${e}`});function V(){g(t.value.fullPath,"./comp.json")}async function k(){if(!i)return;const e=await K({fullPathHash:i}),s=await Y({compPath:e.data.path}),{thirdParty:l=[]}=s.data,a=l.map($=>$.name),m=await ee({deps:a}),{entryNameToFile:T={}}=m.data;o.setDetail(e.data),o.setDep(l),o.setDepToFile(T)}function S(){C.addPayLoad(`/previewLocal/${i}`,{name:`本地组件:${t.value?.name??""}`})}return M(async()=>{d.value||await k(),S()}),(e,s)=>{const l=N("el-link");return v(),R("div",te,[r(G,{isEmpty:!d.value},{default:c(()=>[p("div",oe,[r(W,{title:t.value?.name,actions:["maximize"]},{default:c(()=>[r(X,I(O(x.value)),{compToolBar:c(()=>[p("div",se,[u.value.length>0?(v(),A(ae,{key:0,compDeps:u.value},null,8,["compDeps"])):j("",!0),p("div",le,[s[0]||(s[0]=p("span",null,"组件位置:",-1)),r(l,{href:"javascript:void(0)",type:"primary",underline:"always",title:t.value.fullPath,onClick:V},{default:c(()=>[z(U(D.value),1)]),_:1},8,["title"])])])]),_:1},16)]),_:1},8,["title"])]),r(q,{mdSrc:E.value,scrollContainer:".preview-container",stickyTopDistance:0,showSimilarComp:!1},null,8,["mdSrc"])]),_:1},8,["isEmpty"])])}}});export{Pe as default};
1
+ import{d as B,G as L,V as b,m as n,ad as F,J as h,x as M,r as N,c as R,b as r,w as c,a as p,O as I,P as O,B as A,p as j,o as v,f as z,t as U,Y as G,aG as K,af as Y,a4 as H,a5 as J}from"./index-BCju3w1f.js";import{a as W,C as X,_ as q}from"./index.vue_vue_type_script_setup_true_lang-DZI9cQ6F.js";import{a as Q}from"./index-DCQCk6Lt.js";import{h as Z,c as _}from"./index-BnJyLrXy.js";import{m as ee}from"./v1Module-BPYVWmkw.js";import{C as ae}from"./index.vue_vue_type_script_setup_true_lang-B6qjGW9b.js";import"./index.vue_vue_type_style_index_0_lang-C9MO6ZTW.js";import"./index.vue_vue_type_style_index_0_lang-D5mLFRCT.js";import"./atom-one-dark-k3s8nS4Q.js";import"./useTeamHeaders-3AldZ0JH.js";import"./index.vue_vue_type_script_setup_true_lang-CpnHQFlL.js";const te={class:"preview-container size-full overflow-x-hidden overflow-y-scroll"},oe={class:"h-[50vh]"},se={class:"w-full flex flex-col gap-1"},le={class:"text-xs flex items-center"},Pe=B({__name:"index",setup(ne){const P=new Map;H(J.CALLBACKS,P);const w=L(),C=b(),{openCompPathInVscode:g,handlePath:y}=F(),{compId:i}=w.params,o=Q(i)(),u=n(()=>Z(o.dep??[])),D=n(()=>y(t.value.fullPath,1)),t=n(()=>o.detail),d=n(()=>Object.keys(t.value??{}).length>0),f=n(()=>{const e=t.value?.previewConfigs??[];if(!e.length)return[];const s=a=>{const m=_(t.value.path,a);return`${h}/${m}`},l=e.filter(a=>a.fullPath?.length);return l.length?l.map(a=>({finalEntryUrl:s(a.fullPath??[])})):e.filter(a=>a.miniPath?.length).map(a=>({finalEntryUrl:s(a.miniPath??[])}))}),x=n(()=>{const e=f.value.length===1?"none":"";return{previews:f.value,dep:o.dep,depToFile:o.depToFile,indicatorPosition:e,bgColor:t.value.bgColor??"#fff"}}),E=n(()=>{const e=_(t.value.path,["\\README.md"]);return`${h}/${e}`});function V(){g(t.value.fullPath,"./comp.json")}async function k(){if(!i)return;const e=await K({fullPathHash:i}),s=await Y({compPath:e.data.path}),{thirdParty:l=[]}=s.data,a=l.map($=>$.name),m=await ee({deps:a}),{entryNameToFile:T={}}=m.data;o.setDetail(e.data),o.setDep(l),o.setDepToFile(T)}function S(){C.addPayLoad(`/previewLocal/${i}`,{name:`本地组件:${t.value?.name??""}`})}return M(async()=>{d.value||await k(),S()}),(e,s)=>{const l=N("el-link");return v(),R("div",te,[r(G,{isEmpty:!d.value},{default:c(()=>[p("div",oe,[r(W,{title:t.value?.name,actions:["maximize"]},{default:c(()=>[r(X,I(O(x.value)),{compToolBar:c(()=>[p("div",se,[u.value.length>0?(v(),A(ae,{key:0,compDeps:u.value},null,8,["compDeps"])):j("",!0),p("div",le,[s[0]||(s[0]=p("span",null,"组件位置:",-1)),r(l,{href:"javascript:void(0)",type:"primary",underline:"always",title:t.value.fullPath,onClick:V},{default:c(()=>[z(U(D.value),1)]),_:1},8,["title"])])])]),_:1},16)]),_:1},8,["title"])]),r(q,{mdSrc:E.value,scrollContainer:".preview-container",stickyTopDistance:0,showSimilarComp:!1},null,8,["mdSrc"])]),_:1},8,["isEmpty"])])}}});export{Pe as default};