@nuxt/devtools-nightly 2.0.0-beta.3-28953211.7c51e75 → 2.0.0-beta.3-28963581.45c0e2d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +58 -18
- package/dist/client/200.html +14 -14
- package/dist/client/404.html +14 -14
- package/dist/client/_nuxt/__blank-ohgur088.js +1 -0
- package/dist/client/_nuxt/analyze-build-j0ebcau7.js +1 -0
- package/dist/client/_nuxt/{assets-h1tj0s1g.js → assets-ncyhkh7r.js} +3 -3
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/75b10d99-a82f-45a8-b31c-8befa8b33c5a.json +1 -0
- package/dist/client/_nuxt/{client-bnemmvey.js → client-bvu6p7m4.js} +1 -1
- package/dist/client/_nuxt/{code-diff.vue-mj0c13w4.js → code-diff.vue-jc3c9o1p.js} +4 -4
- package/dist/client/_nuxt/code-snippets.vue-dnmstgq8.js +1 -0
- package/dist/client/_nuxt/components-lo3mq6y9.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-dgxtjaf8.js +1 -0
- package/dist/client/_nuxt/custom-_name_-pduhuu9r.js +1 -0
- package/dist/client/_nuxt/d41h1x7t.js +17 -0
- package/dist/client/_nuxt/{default-ewfwae93.js → default-cnhydmlv.js} +1 -1
- package/dist/client/_nuxt/{duration-display.vue-jvaccd8v.js → duration-display.vue-onla0yr8.js} +1 -1
- package/dist/client/_nuxt/error-404-m6dwmafk.js +1 -0
- package/dist/client/_nuxt/error-404.css-cl514xfg.css +1 -0
- package/dist/client/_nuxt/{error-500-nh7s0luv.js → error-500-9wvbqziq.js} +1 -1
- package/dist/client/_nuxt/error-500.css-m79ojnxd.css +1 -0
- package/dist/client/_nuxt/{error-oggqrpfp.js → error-bp3u9vvx.js} +7 -7
- package/dist/client/_nuxt/{filepath-item.vue-mq316w1o.js → filepath-item.vue-fxaqezvw.js} +1 -1
- package/dist/client/_nuxt/full-bn257ljv.js +1 -0
- package/dist/client/_nuxt/{help-fab.vue-b2lnj6u8.js → help-fab.vue-dib0u490.js} +1 -1
- package/dist/client/_nuxt/hooks-bs377zwu.js +1 -0
- package/dist/client/_nuxt/imports-e4dk8scn.js +1 -0
- package/dist/client/_nuxt/{index-nw3z7zlk.js → index-cl3mehlu.js} +2 -2
- package/dist/client/_nuxt/index-d1d8bsq0.js +1 -0
- package/dist/client/_nuxt/launch-page.vue-k9suzodb.js +1 -0
- package/dist/client/_nuxt/{modules-h8xxxh7p.js → modules-hbz103wg.js} +1 -1
- package/dist/client/_nuxt/nbadge-ot616wdl.js +1 -0
- package/dist/client/_nuxt/{ncheckbox.vue-krtydjy4.js → ncheckbox.vue-c9bavwky.js} +1 -1
- package/dist/client/_nuxt/{ncode-block.vue-c2t0anp9.js → ncode-block.vue-bazndqbc.js} +2 -2
- package/dist/client/_nuxt/ndrawer.vue-b6cdk9y8.js +1 -0
- package/dist/client/_nuxt/ndropdown.vue-fzoyv3zc.js +1 -0
- package/dist/client/_nuxt/{nicon-title.vue-hch1agon.js → nicon-title.vue-evdbm4ef.js} +1 -1
- package/dist/client/_nuxt/nlink.vue-osj159jg.js +1 -0
- package/dist/client/_nuxt/nmarkdown.vue-ffthu1ys.js +1 -0
- package/dist/client/_nuxt/{nnavbar.vue-875x11vf.js → nnavbar.vue-ky8j5cdr.js} +1 -1
- package/dist/client/_nuxt/none-jo30kydw.js +1 -0
- package/dist/client/_nuxt/nsection-block-cbbvy04f.js +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-jb48kq2v.js +1 -0
- package/dist/client/_nuxt/{nselect.vue-krraptle.js → nselect.vue-o2d5zfs5.js} +1 -1
- package/dist/client/_nuxt/{open-graph-cngkmqq1.js → open-graph-e4y8ndkp.js} +2 -2
- package/dist/client/_nuxt/overview-gsz8vjjo.js +1 -0
- package/dist/client/_nuxt/pages-wdrdai4k.js +1 -0
- package/dist/client/_nuxt/payload-ewhdcsbh.js +1 -0
- package/dist/client/_nuxt/pinia-kegwgo0c.js +1 -0
- package/dist/client/_nuxt/plugins-hbobfmd4.js +1 -0
- package/dist/client/_nuxt/render-tree-fyx4bf1z.js +1 -0
- package/dist/client/_nuxt/runtime-configs-b4ga7nqx.js +1 -0
- package/dist/client/_nuxt/server-discovery-jllsz7kp.js +1 -0
- package/dist/client/_nuxt/server-route-inputs.vue-bxkuny0t.js +1 -0
- package/dist/client/_nuxt/{server-routes-ewwf8684.js → server-routes-he5hx793.js} +1 -1
- package/dist/client/_nuxt/server-tasks-df83dyrk.js +1 -0
- package/dist/client/_nuxt/settings-gippgsnw.js +1 -0
- package/dist/client/_nuxt/stacktrace-list.vue-7c1u8lmo.js +1 -0
- package/dist/client/_nuxt/{state-components-b5c86qak.js → state-components-lq4erpch.js} +1 -1
- package/dist/client/_nuxt/{state-editor.vue-n8ulkaqf.js → state-editor.vue-g5t0h5pi.js} +1 -1
- package/dist/client/_nuxt/state-modules-c4q0vk65.js +1 -0
- package/dist/client/_nuxt/storage-br9x9mkz.js +1 -0
- package/dist/client/_nuxt/terminals-k58bpy99.js +1 -0
- package/dist/client/_nuxt/timeline-kin9hf5p.js +31 -0
- package/dist/client/_nuxt/unocss-runtime-abddx8lv.js +1 -0
- package/dist/client/_nuxt/vendor/{json-editor-vue-fw81xiot.js → json-editor-vue-hrh84odz.js} +1 -1
- package/dist/client/_nuxt/vendor/{shiki-j4jbxo4i.js → shiki-gvafmef1.js} +19 -18
- package/dist/client/_nuxt/vendor/unocss-cbkcukyd.js +2 -0
- package/dist/client/_nuxt/virtual-files-eygv3kkf.js +1 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-luvj44av.js → vue-virtual-scroller.esm-btin7frf.js} +2 -2
- package/dist/client/discovery/index.html +1 -1
- package/dist/client/index.html +14 -14
- package/dist/module.json +2 -2
- package/package.json +31 -31
- package/dist/client/_nuxt/__blank-mzki7hds.js +0 -1
- package/dist/client/_nuxt/analyze-build-g08tlxae.js +0 -1
- package/dist/client/_nuxt/builds/meta/167b82ed-5384-439e-aebd-be5b6f4ac5c9.json +0 -1
- package/dist/client/_nuxt/code-snippets.vue-d9z3ybct.js +0 -1
- package/dist/client/_nuxt/components-n0zh4rhf.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-o31ipih1.js +0 -1
- package/dist/client/_nuxt/custom-_name_-klo913dr.js +0 -1
- package/dist/client/_nuxt/error-404-9858gy78.js +0 -1
- package/dist/client/_nuxt/error-404.css-lmmxplpx.css +0 -1
- package/dist/client/_nuxt/error-500.css-u0boq89r.css +0 -1
- package/dist/client/_nuxt/full-kbkt73bd.js +0 -1
- package/dist/client/_nuxt/hooks-htqv94rx.js +0 -1
- package/dist/client/_nuxt/imports-dnryigiw.js +0 -1
- package/dist/client/_nuxt/index-idddq45s.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-gzpdhm5x.js +0 -1
- package/dist/client/_nuxt/n62idpyb.js +0 -17
- package/dist/client/_nuxt/nbadge-cmt5bsvz.js +0 -1
- package/dist/client/_nuxt/ndrawer.vue-j7phytya.js +0 -1
- package/dist/client/_nuxt/ndropdown.vue-kjyvfldg.js +0 -1
- package/dist/client/_nuxt/nlink.vue-qjy4vvh6.js +0 -1
- package/dist/client/_nuxt/nmarkdown.vue-lym2fx3e.js +0 -1
- package/dist/client/_nuxt/none-hy7wr0lr.js +0 -1
- package/dist/client/_nuxt/nsection-block-b1awjws9.js +0 -1
- package/dist/client/_nuxt/nselect-tabs.vue-jgtbxiy9.js +0 -1
- package/dist/client/_nuxt/overview-fbqn2u32.js +0 -1
- package/dist/client/_nuxt/pages-d5yw0iwc.js +0 -1
- package/dist/client/_nuxt/payload-ik21n5qp.js +0 -1
- package/dist/client/_nuxt/pinia-j2uv7j0l.js +0 -1
- package/dist/client/_nuxt/plugins-pd806ggb.js +0 -1
- package/dist/client/_nuxt/render-tree-i4xe3ipt.js +0 -1
- package/dist/client/_nuxt/runtime-configs-igx6anwa.js +0 -1
- package/dist/client/_nuxt/server-discovery-lgjc77qk.js +0 -1
- package/dist/client/_nuxt/server-route-inputs.vue-hhnzxp7p.js +0 -1
- package/dist/client/_nuxt/server-tasks-ligwln3w.js +0 -1
- package/dist/client/_nuxt/settings-k0xj6wc9.js +0 -1
- package/dist/client/_nuxt/stacktrace-list.vue-hrhcfcvj.js +0 -1
- package/dist/client/_nuxt/state-modules-fa2d1ib3.js +0 -1
- package/dist/client/_nuxt/storage-k1n1tm0m.js +0 -1
- package/dist/client/_nuxt/terminals-d2xlb0dk.js +0 -1
- package/dist/client/_nuxt/timeline-mdm5zzm3.js +0 -31
- package/dist/client/_nuxt/unocss-runtime-eltx4hvu.js +0 -1
- package/dist/client/_nuxt/vendor/unocss-dypm4cev.js +0 -2
- package/dist/client/_nuxt/virtual-files-ia9bmzwg.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as P,h as J,r as S,j as R,f as U,k as X,l as h,m as ee,n as ne,o as te,p as le,q as ie,s as oe,v as C,w as re,x as ue,y as se,d as ae}from"./n62idpyb.js";import{_ as de}from"./filepath-item.vue-mq316w1o.js";import{k as E,l as V,b as F,Q as i,S as u,U as e,F as p,ab as G,Y as j,a5 as v,W as x,u as c,a0 as d,$ as a,a6 as f,a8 as A,a9 as I,M as k}from"./vendor/json-editor-vue-fw81xiot.js";import{_ as me}from"./ncode-block.vue-c2t0anp9.js";import{_ as pe}from"./ncheckbox.vue-krtydjy4.js";import{_ as ve}from"./help-fab.vue-b2lnj6u8.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";import"./client-bnemmvey.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ye={flex:"~ wrap","w-full":""},be=["onClick"],ce={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},ge={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},xe=E({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(N){const y=N,$=`${J().app.baseURL}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),b=V(()=>{const l=[{name:"Overview",id:"overview"}];return y.current.features.bundleClient&&l.push({name:"Client Bundle",id:"bundle-client"}),y.current.features.bundleNitro&&l.push({name:"Nitro Bundle",id:"bundle-nitro"}),y.current.features.viteInspect&&l.push({name:"Vite Inspect",id:"vite-inspect"}),l}),o=F(b.value[0]);function z(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}function m(l){return l<1024?`${l}B`:l<1024*1024?`${(l/1024).toFixed(1)}KB`:l<1024*1024*1024?`${(l/1024/1024).toFixed(1)}MB`:`${(l/1024/1024/1024).toFixed(1)}GB`}async function T(l){return S.clearAnalyzeBuilds(await R(),[l])}return(l,n)=>{const D=de,B=U;return i(),u("div",fe,[e("div",ye,[(i(!0),u(p,null,G(b.value,(r,t)=>(i(),u("button",{key:t,px4:"",py2:"",border:"r base",hover:"bg-active",class:j(r.id===o.value.id?"":"border-b"),onClick:_=>o.value=r},[e("div",{class:j(r.id===o.value.id?"":"op30")},v(r.name),3)],10,be))),128)),n[1]||(n[1]=e("div",{border:"b base","flex-auto":""},null,-1))]),o.value.id==="overview"?(i(),u("div",ce,[n[15]||(n[15]=e("div",{"flex-auto":""},null,-1)),e("div",ge,[n[10]||(n[10]=e("div",{"i-carbon-commit":"","text-xl":""},null,-1)),e("div",null,[n[2]||(n[2]=e("div",{"text-sm":"",op50:""}," Name ",-1)),e("div",null,v(l.current.name),1)]),n[11]||(n[11]=e("div",{"i-carbon-time":"","text-xl":""},null,-1)),e("div",null,[n[3]||(n[3]=e("div",{"text-sm":"",op50:""}," Build duration ",-1)),e("div",null,v(z(l.current)),1)]),l.current.size?.clientBundle?(i(),u(p,{key:0},[n[5]||(n[5]=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1)),e("div",null,[n[4]||(n[4]=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1)),e("div",null,v(m(l.current.size.clientBundle)),1)])],64)):x("",!0),l.current.size.nitroBundle?(i(),u(p,{key:1},[n[7]||(n[7]=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1)),e("div",null,[n[6]||(n[6]=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1)),e("div",null,v(m(l.current.size.nitroBundle)),1)])],64)):x("",!0),n[12]||(n[12]=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1)),e("div",null,[n[8]||(n[8]=e("div",{"text-sm":"",op50:""}," Built ",-1)),e("div",null,v(c(P)(new Date(l.current.endTime))),1)]),n[13]||(n[13]=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1)),e("div",null,[n[9]||(n[9]=e("div",{"text-sm":"",op50:""}," Report Path ",-1)),d(D,{filepath:l.current.analyzeDir},null,8,["filepath"])])]),n[16]||(n[16]=e("div",{"flex-auto":""},null,-1)),d(B,{n:"rose",icon:"carbon-delete",onClick:n[0]||(n[0]=r=>T(l.current.name))},{default:a(()=>n[14]||(n[14]=[f(" Delete this report ")])),_:1})])):x("",!0),n._lazyshow1||o.value.id==="bundle-client"?(n._lazyshow1=!0,i(),u(p,null,[A(e("iframe",{src:`${c($)}${l.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="bundle-client"]])],64)):x("v-show-if",!0),n._lazyshow2||o.value.id==="bundle-nitro"?(n._lazyshow2=!0,i(),u(p,null,[A(e("iframe",{src:`${c($)}${l.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="bundle-nitro"]])],64)):x("v-show-if",!0),n._lazyshow3||o.value.id==="vite-inspect"?(n._lazyshow3=!0,i(),u(p,null,[A(e("iframe",{src:`${c($)}${l.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="vite-inspect"]])],64)):x("v-show-if",!0)])}}}),we={class:"markdown-body"},$e={__name:"analyze-build",setup(N,{expose:y}){return y({frontmatter:{}}),($,b)=>(i(),u("div",we,b[0]||(b[0]=[e("h1",null,"Build Analyze",-1),e("p",null,[f("DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command "),e("code",null,"nuxt build --analyze"),f(" and present the output data directly in DevTools for easy browsing and comparing.")],-1)])))}},ze={flex:"~ col"},_e=["onClick"],ke={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},Be={flex:"~ items-center justify-center wrap",p4:""},Ce={flex:"~ col gap-1","w-250":"",p4:""},Ne={flex:"~ gap-3",mt2:"","justify-end":""},Re=E({__name:"analyze-build",setup(N){const y=X(),w=h(),$=ee(),b=ne("analyze-build:slug",""),o=V(()=>w.value?.builds.find(r=>r.slug===b.value)??w.value?.builds[0]),z=F(!1),m=F(""),T=V(()=>w.value?.builds.some(r=>r.name===m.value.trim()));async function l(){m.value=await S.generateAnalyzeBuildName(),await y.start()&&(oe("analyze-build:start"),C.value={name:m.value,processId:await S.startAnalyzeBuild(await R(),m.value)},z.value&&B())}const n=te();function D(r){return`${((r.endTime-r.startTime)/1e3).toFixed(1)}s`}function B(){C.value?.processId&&(n.value=C.value.processId,$.push("/modules/terminals"))}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:l}]),(r,t)=>{const _=U,L=xe,M=ae,O=ie,W=re,Y=ue,q=me,H=pe,K=se,Q=$e,Z=ve;return i(),u(p,null,[d(O,{"left-size":30},{left:a(()=>[e("div",ze,[(i(!0),u(p,null,G(c(w)?.builds,s=>(i(),u(p,{key:s.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:j(s.slug===o.value?.slug?"text-primary bg-active":""),onClick:g=>b.value=s.slug},[e("code",null,v(s.name),1),e("div",ke,[t[4]||(t[4]=e("div",{"i-carbon-time":""},null,-1)),e("span",null,v(D(s)),1),t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("span",null,v(c(P)(new Date(s.endTime))),1)])],10,_e),t[6]||(t[6]=e("div",{"x-divider":""},null,-1))],64))),128)),e("div",Be,[c(C)?(i(),k(_,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:t[1]||(t[1]=s=>B())},{default:a(()=>t[8]||(t[8]=[f(" Building... ")])),_:1})):(i(),k(_,{key:0,n:"primary",icon:"carbon-edge-node",onClick:t[0]||(t[0]=s=>l())},{default:a(()=>t[7]||(t[7]=[f(" Start a new build ")])),_:1}))])])]),right:a(()=>[o.value?(i(),k(L,{key:0,current:o.value},null,8,["current"])):(i(),k(M,{key:1}))]),_:1}),d(c(y),null,{default:a(({resolve:s})=>[d(K,{"model-value":!0,onClose:g=>s(!1)},{default:a(()=>[e("div",Ce,[t[13]||(t[13]=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1)),t[14]||(t[14]=e("p",{op50:""}," Enter the name of the build: ",-1)),d(W,{modelValue:m.value,"onUpdate:modelValue":t[2]||(t[2]=g=>m.value=g),placeholder:"Build name"},null,8,["modelValue"]),T.value?(i(),k(Y,{key:0,"n-orange":""},{default:a(()=>t[9]||(t[9]=[f(" A build with the same name already exists, continue would overrides the previous build result. ")])),_:1})):x("",!0),t[15]||(t[15]=e("div",{my3:"","x-divider":""},null,-1)),t[16]||(t[16]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),d(q,{code:`npx nuxi analyze --no-serve --name=${m.value}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),d(H,{modelValue:z.value,"onUpdate:modelValue":t[3]||(t[3]=g=>z.value=g),mt2:"",n:"primary"},{default:a(()=>t[10]||(t[10]=[f(" Navigate to terminal ")])),_:1},8,["modelValue"]),e("div",Ne,[d(_,{onClick:g=>s(!1)},{default:a(()=>t[11]||(t[11]=[f(" Cancel ")])),_:2},1032,["onClick"]),d(_,{n:"solid primary",onClick:g=>s(!0)},{default:a(()=>t[12]||(t[12]=[f(" Start ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),d(Z,null,{default:a(()=>[d(Q)]),_:1})],64)}}});export{Re as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"167b82ed-5384-439e-aebd-be5b6f4ac5c9","timestamp":1737192661292,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as g}from"./ncode-block.vue-c2t0anp9.js";import{J as C,f as S}from"./n62idpyb.js";import{k as w,j as x,l as B,w as N,Q as a,S as n,U as s,F as d,ab as $,Y as i,a5 as V,a0 as u,$ as v,a6 as m,u as T,M as h,W as r}from"./vendor/json-editor-vue-fw81xiot.js";const D={key:0,relative:"","n-code-block":""},E={flex:"~ wrap","w-full":""},F=["onClick"],L={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},Q=w({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(f){const l=f,e=x(l.codeSnippets[0]),_=C(),b=B(()=>e.value?.lang||"text");return N(()=>{l.codeSnippets.includes(e.value)||(e.value=l.codeSnippets[0])}),(p,o)=>{const k=g,c=S;return p.codeSnippets.length?(a(),n("div",D,[s("div",E,[(a(!0),n(d,null,$(p.codeSnippets,(t,y)=>(a(),n("button",{key:y,px4:"",py2:"",border:"r base",hover:"bg-active",class:i(t===e.value?"":"border-b"),onClick:j=>e.value=t},[s("div",{class:i(t===e.value?"":"op30"),"font-mono":""},V(t.name),3)],10,F))),128)),o[1]||(o[1]=s("div",{border:"b base","flex-auto":""},null,-1))]),e.value?(a(),n(d,{key:0},[u(k,{code:e.value.code,lang:b.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),s("div",L,[u(c,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>T(_)(e.value.code,p.eventType||`code-snippet-${e.value.name}`))},{default:v(()=>o[2]||(o[2]=[m(" Copy ")])),_:1}),e.value?.docs?(a(),h(c,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:v(()=>o[3]||(o[3]=[m(" Docs ")])),_:1},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{Q as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{J as ie,f as X,Q as pe,R as re,I as ue,S as de,c as Y,T as ce,U as me,V as fe,N as ve,W as _e,X as he,E as be,b as ge}from"./n62idpyb.js";import{Q as t,S as _,U as n,k as R,l as S,a6 as Q,a5 as W,a0 as v,u as N,M as x,W as k,F as T,ab as B,V as H,b as L,j as ye,x as we,c as xe,$ as b,y as E,R as ke,Y as Ce,a1 as z,ae as $e,a7 as Ne,a8 as J}from"./vendor/json-editor-vue-fw81xiot.js";import{_ as Ve}from"./help-fab.vue-b2lnj6u8.js";import{_ as Se}from"./ncheckbox.vue-krtydjy4.js";import{_ as K}from"./nnavbar.vue-875x11vf.js";import{_ as Z}from"./nbadge-cmt5bsvz.js";import{_ as ee}from"./filepath-item.vue-mq316w1o.js";import{_ as Pe}from"./ndrawer.vue-j7phytya.js";import{N as De}from"./vendor/vis-fzckz0r6.js";import{_ as Te}from"./nselect-tabs.vue-jgtbxiy9.js";import{_ as Ue}from"./nsection-block-b1awjws9.js";import{_ as Me}from"./nicon-title.vue-hch1agon.js";import{D as O}from"./constants-b32h69zq.js";import{u as Be,a as Le}from"./state-components-b5c86qak.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";const Re={class:"markdown-body"},Ie={__name:"components",setup(r,{expose:s}){return s({frontmatter:{}}),(a,i)=>(t(),_("div",Re,i[0]||(i[0]=[n("h1",null,"Components",-1),n("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),n("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Fe=/\d/,Ge=["-","_","/","."];function Ee(r=""){if(!Fe.test(r))return r!==r.toLowerCase()}function Ae(r,s){const c=Ge,a=[];if(!r||typeof r!="string")return a;let i="",o,p;for(const m of r){const u=c.includes(m);if(u===!0){a.push(i),i="",o=void 0;continue}const f=Ee(m);if(p===!1){if(o===!1&&f===!0){a.push(i),i=m,o=f;continue}if(o===!0&&f===!1&&i.length>1){const g=i.at(-1);a.push(i.slice(0,Math.max(0,i.length-1))),i=g+m,o=f;continue}}i+=m,o=f,p=u}return a.push(i),a}function ze(r){return r?r[0].toUpperCase()+r.slice(1):""}function ne(r,s){return r?(Array.isArray(r)?r:Ae(r)).map(c=>ze(c)).join(""):""}const We={"text-sm":"","font-mono":""},oe=R({__name:"ComponentName",props:{component:{}},setup(r){const s=r,c=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||""));return(a,i)=>(t(),_("code",We,[i[0]||(i[0]=n("span",{mr1:"",op20:""},"<",-1)),Q(W(c.value),1),i[1]||(i[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),He={flex:"~ col gap1","items-start":"","of-hidden":""},je={flex:"~ gap2",px3:""},Oe={px3:"",pb2:""},Qe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Xe={"text-sm":""},qe={"text-primary":""},Je={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Ye={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ke={"text-sm":""},Ze={"text-primary":""},en={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},te=R({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,c=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||"")),a=S(()=>s.component.filePath||s.component.file||s.component.__file||""),i=ie();return(o,p)=>{const m=oe,u=X,f=Z,g=ee;return t(),_("div",He,[n("div",je,[v(m,{component:o.component},null,8,["component"]),v(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:p[0]||(p[0]=h=>N(i)(`<${c.value}></${c.value}>`,"component-name"))}),o.component.global?(t(),x(f,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0)]),n("div",Oe,[a.value?(t(),x(g,{key:0,filepath:a.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)]),o.dependents?(t(),_("div",Qe,[n("div",Xe,[n("strong",qe,W(o.dependents.length),1),p[1]||(p[1]=n("span",{op50:""}," references",-1))]),o.dependents.length?(t(),_("div",Je,[(t(!0),_(T,null,B(o.dependents,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),o.dependencies?(t(),_("div",Ye,[n("div",Ke,[n("strong",Ze,W(o.dependencies.length),1),p[2]||(p[2]=n("span",{op50:""}," dependencies",-1))]),o.dependencies.length?(t(),_("div",en,[(t(!0),_(T,null,B(o.dependencies,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),H(o.$slots,"default")])}}}),nn={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},on={relative:"","h-full":"","w-full":""},tn={key:0,py4:"",pt4:"",flex:"~ col"},sn={border:"t base",p4:""},ln=R({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(r){const s=r,c=L(),a=L(),i=pe(),o=ye(),p=re(),m=ue(),u=de(),{componentsGraphShowNodeModules:f,componentsGraphShowGlobalComponents:g,componentsGraphShowPages:h,componentsGraphShowLayouts:V,componentsGraphShowWorkspace:y}=Y("ui"),C=L(),d=L(""),I=ce(d,300),F=S(()=>{const P=s.relationships||[];if(C.value){let e=function($){!$||l.has($)||(l.add($),$.deps.forEach(U=>{e(P.find(M=>M.id===U))}))};const l=new Set;return e(C.value),Array.from(l)}return P}),A=S(()=>{const P=F.value.map(l=>{const $=s.components.find(G=>G.filePath===l.id),U=p.value?.find(G=>G.file===l.id),M=u.value?.find(G=>G.file===l.id),j=l.id.replace(/\?.*$/,"").replace(/#.*$/,""),D=l.id.includes("/node_modules/")?"lib":$?$.global?"global":"user":M?"layout":U?"page":"unknown";if(!f.value&&D==="lib"||!h.value&&D==="page"||!V.value&&D==="layout"||!y.value&&D==="user"&&m.value&&!l.id.startsWith(m.value.rootDir)||!g.value&&D==="global")return null;const w=D==="layout"?"hexagon":D==="page"?"square":"dot",q=I.value&&!l.id.toLowerCase().includes(I.value.toLowerCase());return{id:l.id,label:j.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:D,shape:w,size:15+Math.min(l.deps.length/2,8),font:{color:q?"#8885":i.value==="dark"?"white":"black"},color:q?"#8885":C.value?.id===l.id?"#82c742":void 0,extra:{id:l.id,component:$,page:U,layout:M,relationship:l}}}).filter(l=>!!l),e=F.value.flatMap(l=>l.deps.map($=>({from:l.id,to:$,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:P,edges:e}}),se=S(()=>o.value?.component?s.relationships?.find(e=>e.id===o.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(l=>l.id===e)?.id).filter(Boolean):[]),le=S(()=>o.value?.component?s.relationships?.filter(e=>e.deps.includes(o.value.component.filePath))?.map(e=>s.relationships?.find(l=>l.id===e.id)?.id).filter(Boolean):[]);we(()=>{const P={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},e=new De(c.value,A.value,P);e.on("click",l=>{const $=l.nodes?.[0],U=A.value.nodes?.find(M=>M.id===$)?.extra;U&&(o.value=U)}),xe(A,()=>{e.setData(A.value)})});function ae(){C.value=o.value?.relationship,o.value=void 0}return(P,e)=>{const l=Se,$=K,U=me,M=te,j=X,D=Pe;return t(),_(T,null,[v($,{ref_key:"navbar",ref:a,search:d.value,"onUpdate:search":e[6]||(e[6]=w=>d.value=w),absolute:"","left-0":"","right-0":"","top-0":""},{actions:b(()=>[n("div",nn,[v(l,{modelValue:N(h),"onUpdate:modelValue":e[0]||(e[0]=w=>E(h)?h.value=w:null),n:"primary sm"},{default:b(()=>e[9]||(e[9]=[n("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(V),"onUpdate:modelValue":e[1]||(e[1]=w=>E(V)?V.value=w:null),n:"primary sm"},{default:b(()=>e[10]||(e[10]=[n("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(y),"onUpdate:modelValue":e[2]||(e[2]=w=>E(y)?y.value=w:null),n:"primary sm"},{default:b(()=>e[11]||(e[11]=[n("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(f),"onUpdate:modelValue":e[3]||(e[3]=w=>E(f)?f.value=w:null),n:"primary sm"},{default:b(()=>e[12]||(e[12]=[n("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(g),"onUpdate:modelValue":e[4]||(e[4]=w=>E(g)?g.value=w:null),n:"primary sm"},{default:b(()=>e[13]||(e[13]=[n("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),C.value?(t(),_("button",{key:0,flex:"~ gap-1","flex-none":"","items-center":"","rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:e[5]||(e[5]=w=>C.value=void 0)},e[14]||(e[14]=[Q(" Clear filter "),n("div",{"i-carbon-close":""},null,-1)]))):k("",!0),e[15]||(e[15]=n("div",{"flex-auto":""},null,-1)),H(P.$slots,"default")]),_:3},8,["search"]),n("div",on,[n("div",{ref_key:"container",ref:c,"h-full":"","w-full":""},null,512),v(U,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:b(()=>e[16]||(e[16]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])),_:1}),v(D,{"model-value":!!(o.value&&o.value.component),top:a.value,border:"t l base","w-80":"",onClose:e[8]||(e[8]=w=>o.value=void 0)},{default:b(()=>[o.value&&o.value.component?(t(),_("div",tn,[v(M,{component:o.value.component,dependencies:se.value,dependents:le.value},null,8,["component","dependencies","dependents"]),n("div",sn,[v(j,{n:"primary solid",onClick:e[7]||(e[7]=w=>ae())},{default:b(()=>e[17]||(e[17]=[Q(" Filter to this component ")])),_:1})])])):k("",!0)]),_:1},8,["model-value","top"])])],64)}}}),an={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},pn={key:0,"ml--1":"","text-primary":""},rn=R({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,c=S(()=>s.component.filePath||s.component.file||s.component.__file||"");return(a,i)=>{const o=oe,p=te,m=ke("VDropdown"),u=Z,f=ee;return t(),_("div",an,[v(m,null,{popper:b(()=>[v(p,{component:a.component,dependencies:a.dependencies,dependents:a.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:b(()=>[n("button",{"hover:text-primary":"",class:Ce(a.dependents&&a.dependents.length===0?"op50":"")},[v(o,{component:a.component},null,8,["component"])],2)]),_:1}),a.dependents?.length?(t(),_("sup",pn," x"+W(a.dependents?.length),1)):k("",!0),a.component.global?(t(),x(u,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0),H(a.$slots,"default"),c.value?(t(),x(f,{key:2,filepath:c.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)])}}}),un={flex:"~ gap-2 items-center"},dn={pl4:""},cn=R({__name:"ComponentsList",props:{components:{},relationships:{}},setup(r){const s=r,c=L(""),a=L("all"),i=S(()=>{const m=s.components.map(u=>fe(u,s.relationships));return a.value==="using"?m.filter(u=>u.dependents?.length):a.value==="not-used"?m.filter(u=>!u.dependents?.length):m}),o=S(()=>new ve(i.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),p=S(()=>{const m=[],u=new Map,f=[],g=[],h={user:0,lib:0,builtin:0,runtime:0};return(c.value?o.value.search(c.value).map(y=>y.item):i.value).forEach(y=>{const C=y.component;if(C.filePath&&_e(C.filePath)){const d=he(C.filePath);if(!d)return;d==="nuxt"?(f.push(y),h.builtin++):(u.has(d)||u.set(d,[]),u.get(d).push(y),h.lib++)}else C.global&&!C.filePath?(g.push(y),h.runtime++):(m.push(y),h.user++)}),{count:h,user:m,builtin:f,lib:u,runtime:g}});return(m,u)=>{const f=be,g=Te,h=K,V=rn,y=Ue,C=Me;return t(),_(T,null,[v(h,{search:c.value,"onUpdate:search":u[1]||(u[1]=d=>c.value=d),pb3:""},{actions:b(()=>[H(m.$slots,"default")]),default:b(()=>[n("div",un,[v(f,{icon:"carbon-filter",op50:""}),v(g,{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value=d),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),p.value.user.length?(t(),x(y,{key:0,icon:"carbon-nominal",text:"User components",open:p.value.user.length<=N(O),description:`Total components: ${p.value.count.user}`},{default:b(()=>[(t(!0),_(T,null,B(p.value.user,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.runtime.length?(t(),x(y,{key:1,icon:"carbon-load-balancer-global",open:p.value.runtime.length<=N(O),text:"Runtime components",description:`Total components: ${p.value.count.runtime}`},{default:b(()=>[(t(!0),_(T,null,B(p.value.runtime,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.builtin.length?(t(),x(y,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${p.value.count.builtin}`},{default:b(()=>[(t(!0),_(T,null,B(p.value.builtin,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["description"])):k("",!0),p.value.lib.size?(t(),x(y,{key:3,open:p.value.count.lib<=N(O),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:b(()=>[(t(!0),_(T,null,B(p.value.lib.entries(),([d,I])=>(t(),_("div",{key:d,"ml-2":""},[v(C,{text:`${d} (${I.length})`,py1:"",op50:""},null,8,["text"]),n("div",dn,[(t(!0),_(T,null,B(I,F=>(t(),x(V,z({key:F.component.filePath,ref_for:!0},F),null,16))),128))])]))),128))]),_:1},8,["open","description"])):k("",!0)],64)}}}),mn={relative:"","h-full":"","of-auto":""},fn={"flex-none":"",flex:"~ gap3"},Tn=R({__name:"components",setup(r){const s=ge(),c=Be(),a=Le(),{componentsView:i}=Y("ui");function o(){s.value?.inspector?.instance&&s.value.inspector.enable()}function p(){i.value=i.value==="list"?"graph":"list"}return(m,u)=>{const f=X,g=Ie,h=Ve,V=$e("tooltip");return t(),_(T,null,[n("div",mn,[(t(),x(Ne(N(i)==="list"?cn:ln),{components:N(c),relationships:N(a)},{default:b(()=>[n("div",fn,[J(v(f,{"text-lg":"",border:!1,icon:N(i)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:p},null,8,["icon"]),[[V,"Toggle View",void 0,{"bottom-end":!0}]]),N(s)?.inspector?.instance?J((t(),x(f,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:o},null,512)),[[V,"Inspect Vue components",void 0,{"bottom-end":!0}]]):k("",!0)])]),_:1},8,["components","relationships"]))]),v(h,null,{default:b(()=>[v(g)]),_:1})],64)}}});export{Tn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as I}from"./nmarkdown.vue-lym2fx3e.js";import{J as U,K as V,f as $}from"./n62idpyb.js";import{_ as D}from"./filepath-item.vue-mq316w1o.js";import{C as y}from"./constants-b32h69zq.js";import{k as E,l,R as F,Q as s,M as r,$ as i,U as o,W as u,a0 as S,u as k,a6 as d,S as c,F as x,a5 as v,ab as j,Y as M}from"./vendor/json-editor-vue-fw81xiot.js";const W={"hover:text-primary":""},z={key:0,"text-primary":""},J={"max-w-100":""},K={px4:"",py3:"","text-sm":""},L={flex:"~ gap2",n:"primary xs"},O={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},Q={"text-sm":""},R={"text-primary":""},T={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Y={key:1,"text-sm":"",op50:""},X=E({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(b){const t=b,g=U(),C=V(),m=l(()=>t.item.as||t.item.name),n=l(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),h=l(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),_=l(()=>t.item.meta?.docsUrl?t.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(t.item.from)?y.nuxt[t.item.name]:t.item.from==="vue"?y.vue[t.item.name]:null);return(a,e)=>{const w=I,f=$,N=D,B=F("VDropdown");return s(),r(B,{disabled:!t.metadata},{popper:i(()=>[o("div",J,[o("div",K,[a.item.meta?.description?(s(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):u("",!0),o("div",L,[S(f,{icon:"carbon-copy",onClick:e[0]||(e[0]=p=>k(g)(m.value,"imports-name"))},{default:i(()=>e[2]||(e[2]=[d(" Copy ")])),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:e[1]||(e[1]=p=>a.filepath&&k(C)(a.filepath))},{default:i(()=>e[3]||(e[3]=[d(" Source ")])),_:1})):u("",!0),_.value?(s(),r(f,{key:1,icon:"carbon-catalog",to:_.value,target:"_blank"},{default:i(()=>e[4]||(e[4]=[d(" Docs ")])),_:1},8,["to"])):u("",!0)])]),o("div",O,[n.value?(s(),c(x,{key:0},[o("div",Q,[e[5]||(e[5]=o("span",{op50:""},"It has been referenced ",-1)),o("strong",R,v(n.value),1),e[6]||(e[6]=o("span",{op50:""}," times by:",-1))]),o("div",T,[(s(!0),c(x,null,j(h.value,p=>(s(),r(N,{key:p,filepath:p},null,8,["filepath"]))),128))])],64)):(s(),c("div",Y," Not in use via auto import. "))])])]),default:i(()=>[o("button",W,[o("code",{rounded:"","font-mono":"",class:M([a.metadata&&!n.value?"op30 hover:op100":"",a.classes])},[d(v(m.value)+" ",1),n.value&&a.counter?(s(),c("sup",z,"x"+v(n.value),1)):u("",!0)],2)])]),_:1},8,["disabled"])}}});export{X as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Q as q,Y as N,Z as j,$ as B,m as E,a0 as V,a1 as k,a2 as D,d as I,r as L,U as P,a3 as S}from"./n62idpyb.js";import{k as T,b as C,l as x,r as U,x as M,n as W,w as b,G as O,S as R,Q as n,M as u,$ as y,u as A,a7 as F,U as r,a6 as w,a5 as $,a0 as G}from"./vendor/json-editor-vue-fw81xiot.js";import{_ as Q}from"./launch-page.vue-gzpdhm5x.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";import"./nmarkdown.vue-lym2fx3e.js";import"./client-bnemmvey.js";const h=new Map,X=T({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=q(),d=C(),s=x(()=>m.tab.name),e=C(),t=U(N(d));M(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(s.value)&&l)e.value=h.get(s.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(s.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),i(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),W(p)}setTimeout(i,100)}),b(p),b(i),b(v),O(()=>{e.value&&(e.value.style.visibility="hidden")});function i(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",c.value==="dark"),o?.classList.toggle("light",c.value==="dark"),new MutationObserver(()=>{c.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(o,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=j();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function p(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(o,l)=>(n(),R("div",{ref_key:"anchor",ref:d,"h-full":"","w-full":""},null,512))}}),Y={flex:"~ col gap2",mxa:"","items-center":""},Z={"text-xl":""},z={"text-rose":""},ne=T({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=B(),d=E(),s=x(()=>m.name??c.params.name),e=V(),t=x(()=>e.value.find(i=>i.name===s.value));return M(()=>{t.value?t.value.requireAuth&&!k.value&&D():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(i,a)=>{const v=I,p=S,o=X,l=Q,_=P;return t.value?t.value.requireAuth&&!A(k)?(n(),u(p,{key:1})):t.value.view.type==="iframe"?(n(),u(o,{key:2,tab:t.value},null,8,["tab"])):t.value.view.type==="vnode"?(n(),u(F(t.value.view.vnode),{key:3})):t.value.view.type==="launch"?(n(),u(l,{key:4,name:`custom-${t.value.name}`,icon:t.value.view.icon||t.value.icon,title:t.value.view.title||t.value.title,description:t.value.view.description,actions:t.value.view.actions,onAction:a[0]||(a[0]=g=>A(L).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[G(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+$(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",Y,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",Z,[a[1]||(a[1]=w(" Tab ")),r("code",z,$(s.value),1),a[2]||(a[2]=w(" not found "))]),a[4]||(a[4]=r("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=r("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as a,u as i,a as u}from"./n62idpyb.js";import{Q as c,S as l,U as e,a5 as r,a0 as d,$ as p,a6 as f}from"./vendor/json-editor-vue-fw81xiot.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=u;return c(),l("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},N=a(y,[["__scopeId","data-v-641f8061"]]);export{N as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-641f8061]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-641f8061]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-641f8061]{background-color:#ffffff4d}.gradient-border[data-v-641f8061]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-641f8061]{background-color:#1414144d}.gradient-border[data-v-641f8061]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-641f8061]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-641f8061]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-641f8061]{position:fixed}.left-0[data-v-641f8061]{left:0}.right-0[data-v-641f8061]{right:0}.z-10[data-v-641f8061]{z-index:10}.z-20[data-v-641f8061]{z-index:20}.grid[data-v-641f8061]{display:grid}.mb-16[data-v-641f8061]{margin-bottom:4rem}.mb-8[data-v-641f8061]{margin-bottom:2rem}.max-w-520px[data-v-641f8061]{max-width:520px}.min-h-screen[data-v-641f8061]{min-height:100vh}.w-full[data-v-641f8061]{width:100%}.flex[data-v-641f8061]{display:flex}.cursor-pointer[data-v-641f8061]{cursor:pointer}.place-content-center[data-v-641f8061]{place-content:center}.items-center[data-v-641f8061]{align-items:center}.justify-center[data-v-641f8061]{justify-content:center}.overflow-hidden[data-v-641f8061]{overflow:hidden}.bg-white[data-v-641f8061]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-641f8061]{padding-left:1rem;padding-right:1rem}.px-8[data-v-641f8061]{padding-left:2rem;padding-right:2rem}.py-2[data-v-641f8061]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-641f8061]{text-align:center}.text-8xl[data-v-641f8061]{font-size:6rem;line-height:1}.text-xl[data-v-641f8061]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-641f8061]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-641f8061]{font-weight:300}.font-medium[data-v-641f8061]{font-weight:500}.leading-tight[data-v-641f8061]{line-height:1.25}.font-sans[data-v-641f8061]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-641f8061]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-641f8061]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-641f8061]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-641f8061]{padding-left:0;padding-right:0}.sm\:px-6[data-v-641f8061]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-641f8061]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-641f8061]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-641f8061]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-ecfde95e]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-ecfde95e]{position:fixed}.-bottom-1\/2[data-v-ecfde95e]{bottom:-50%}.left-0[data-v-ecfde95e]{left:0}.right-0[data-v-ecfde95e]{right:0}.grid[data-v-ecfde95e]{display:grid}.mb-16[data-v-ecfde95e]{margin-bottom:4rem}.mb-8[data-v-ecfde95e]{margin-bottom:2rem}.h-1\/2[data-v-ecfde95e]{height:50%}.max-w-520px[data-v-ecfde95e]{max-width:520px}.min-h-screen[data-v-ecfde95e]{min-height:100vh}.place-content-center[data-v-ecfde95e]{place-content:center}.overflow-hidden[data-v-ecfde95e]{overflow:hidden}.bg-white[data-v-ecfde95e]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-ecfde95e]{padding-left:2rem;padding-right:2rem}.text-center[data-v-ecfde95e]{text-align:center}.text-8xl[data-v-ecfde95e]{font-size:6rem;line-height:1}.text-xl[data-v-ecfde95e]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-ecfde95e]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-ecfde95e]{font-weight:300}.font-medium[data-v-ecfde95e]{font-weight:500}.leading-tight[data-v-ecfde95e]{line-height:1.25}.font-sans[data-v-ecfde95e]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-ecfde95e]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-ecfde95e]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-ecfde95e]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-ecfde95e]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-ecfde95e]{font-size:2.25rem;line-height:2.5rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t}from"./n62idpyb.js";import{Q as e,S as r,V as s}from"./vendor/json-editor-vue-fw81xiot.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";const c={},n={"h-full":"","of-auto":""};function a(o,f){return e(),r("div",n,[s(o.$slots,"default")])}const d=t(c,[["render",a]]);export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as S}from"./duration-display.vue-jvaccd8v.js";import{a4 as T,a5 as F,b as B}from"./n62idpyb.js";import{k as $,b as H,l as w,Q as u,S as h,U as o,a6 as l,Y as p,F as y,ab as V,a5 as m,X as D,u as k,a0 as _,M as C,$ as f,W as N}from"./vendor/json-editor-vue-fw81xiot.js";import{_ as P}from"./nsection-block-b1awjws9.js";import{_ as E}from"./help-fab.vue-b2lnj6u8.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";import"./nicon-title.vue-hch1agon.js";const O={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},Y={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},z={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},U={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},M={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},Q={"text-sm":""},R={"ws-nowrap":""},W={"text-sm":""},X={"w-0":"","text-center":"","text-sm":""},q={"w-0":"","text-center":"","text-sm":""},G={"w-0":"","text-right":"","text-sm":""},J=$({__name:"HooksTable",props:{hooks:{}},setup(x){const a=x,r=H("duration"),n=H("asc"),d={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},g=w(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=w(()=>{const e=d[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function c(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function v(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?n.value=n.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=S;return u(),h("table",O,[o("thead",j,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=s=>i("start"))},[t[5]||(t[5]=l(" Order ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="start"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",Y,[o("button",{onClick:t[1]||(t[1]=s=>i("name"))},[t[6]||(t[6]=l(" Hook name ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="name"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[2]||(t[2]=s=>i("listener"))},[t[7]||(t[7]=l(" Listeners ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="listener"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[3]||(t[3]=s=>i("executions"))},[t[8]||(t[8]=l(" Executions ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="executions"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",U,[o("button",{onClick:t[4]||(t[4]=s=>i("duration"))},[t[9]||(t[9]=l(" Duration ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="duration"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),h(y,null,V(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",M,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:D({color:("getHashColorFromString"in e?e.getHashColorFromString:k(T))(c(s.name))})},[o("code",Q,m(c(s.name)),1)],4),o("td",R,[o("code",W,m(v(s.name)),1)]),o("td",X,m(s.listeners),1),o("td",q,m(s.executions.length+1),1),o("td",G,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),K={class:"markdown-body"},Z={__name:"hooks",setup(x,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",K,d[0]||(d[0]=[o("h1",null,"Hooks",-1),o("p",null,[l("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1)])))}},it=$({__name:"hooks",setup(x){const a=F(),r=B(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=J,c=P,v=Z,i=E;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(c,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n.value.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:n.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),k(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${k(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:k(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{it as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a6 as D,X as A,a7 as F,I as E,N as H,W as T,E as j}from"./n62idpyb.js";import{_ as L}from"./nselect-tabs.vue-jgtbxiy9.js";import{_ as P}from"./nnavbar.vue-875x11vf.js";import{_ as U}from"./filepath-item.vue-mq316w1o.js";import{_ as W}from"./composable-item.vue-o31ipih1.js";import{k as N,Q as a,S as l,F as y,ab as M,a0 as i,U as d,M as x,u as _,W as b,l as g,a5 as X,b as S,$ as h}from"./vendor/json-editor-vue-fw81xiot.js";import{_ as Q}from"./nsection-block-b1awjws9.js";import{_ as Y}from"./help-fab.vue-b2lnj6u8.js";import{D as B}from"./constants-b32h69zq.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";import"./nmarkdown.vue-lym2fx3e.js";import"./client-bnemmvey.js";import"./nicon-title.vue-hch1agon.js";const q={flex:"~ wrap gap2",p2:"",pl4:""},G=N({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup($){return(n,p)=>{const s=U,e=W;return a(),l("div",null,[(a(!0),l(y,null,M(n.map.entries(),([o,v])=>(a(),l("div",{key:o},[i(s,{filepath:o,op50:"","hover:underline":""},null,8,["filepath"]),d("div",q,[(a(!0),l(y,null,M(v,w=>(a(),x(e,{key:w.as,item:w,metadata:n.metadata,filepath:o.match(/^[\w@]/)?void 0:o},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),J={key:0,flex:"~ col gap-2 items-start"},K=N({__name:"HelpImportsDirs",setup($){const n=D();return(p,s)=>{const e=U;return _(n)?.dirs?(a(),l("div",J,[(a(!0),l(y,null,M(_(n).dirs,o=>(a(),x(e,{key:o,filepath:o,"text-primary":""},null,8,["filepath"]))),128))])):b("",!0)}}}),O={flex:"~ gap-2 wrap",mb6:""},R=N({__name:"HelpImportsModules",setup($){const n=D(),p=g(()=>[...new Set(n.value?.imports.map(s=>A(s.from)).filter(s=>!!s&&!F(s)))]);return(s,e)=>(a(),l("div",O,[(a(!0),l(y,null,M(p.value,o=>(a(),l("code",{key:o,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},X(o),1))),128))]))}}),Z={class:"markdown-body"},ee={__name:"imports",setup($,{expose:n}){return n({frontmatter:{}}),(s,e)=>{const o=K,v=R;return a(),l("div",Z,[e[0]||(e[0]=d("h1",null,"Auto imports",-1)),e[1]||(e[1]=d("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=d("hr",null,null,-1)),e[3]||(e[3]=d("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),i(o),e[4]||(e[4]=d("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),i(v),e[5]||(e[5]=d("hr",null,null,-1)),e[6]||(e[6]=d("p",null,[d("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},oe={key:0,relative:"","h-full":"","of-auto":""},te={key:0,flex:"~ gap-2 items-center"},be=N({__name:"imports",setup($){const n=E(),p=S("all"),s=S(""),e=D(),o=g(()=>e.value?.metadata),v=g(()=>e.value?.imports.filter(m=>m.as||m.name).sort((m,u)=>(m.as||m.name).localeCompare(u.as||u.name))||[]),w=g(()=>new H(v.value,{keys:["from","as","name"]})),r=g(()=>{const m=new Map,u=new Map,I=new Map;let f=s.value?w.value.search(s.value).map(t=>t.item):v.value;p.value==="using"&&o.value?f=f.filter(t=>(t.as||t.name)in o.value.injectionUsage):p.value==="not-used"&&o.value&&(f=f.filter(t=>!((t.as||t.name)in o.value.injectionUsage)));const k={user:0,lib:0,builtin:0};return f.forEach(t=>{const c=T(t.from)?F(A(t.from))?I:u:m;c.has(t.from)||c.set(t.from,[]),c.get(t.from).push(t),k[c===m?"user":c===u?"lib":"builtin"]++}),{user:m,lib:u,builtin:I,count:k}});return(m,u)=>{const I=j,f=L,k=P,t=G,c=Q,V=ee,z=Y;return a(),l(y,null,[_(n)?(a(),l("div",oe,[i(k,{search:s.value,"onUpdate:search":u[1]||(u[1]=C=>s.value=C),pb3:""},{default:h(()=>[o.value?(a(),l("div",te,[i(I,{icon:"carbon-filter",op50:""}),i(f,{modelValue:p.value,"onUpdate:modelValue":u[0]||(u[0]=C=>p.value=C),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])):b("",!0)]),_:1},8,["search"]),r.value.user.size?(a(),x(c,{key:0,open:r.value.count.user<=_(B),icon:"carbon-function",text:"User composables",description:`${r.value.count.user} composables from ${r.value.user.size} modules`},{default:h(()=>[i(t,{map:r.value.user,root:_(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),r.value.builtin.size?(a(),x(c,{key:1,open:r.value.count.builtin<=_(B),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${r.value.count.builtin} composables`},{default:h(()=>[i(t,{map:r.value.builtin,root:_(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),r.value.lib.size?(a(),x(c,{key:2,open:r.value.count.lib<=_(B),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${r.value.count.lib} composables from ${r.value.lib.size} packages`},{default:h(()=>[i(t,{map:r.value.lib,root:_(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0)])):b("",!0),i(z,null,{default:h(()=>[i(V)]),_:1})],64)}}});export{be as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as y,c as g,d as b,t as k,i as N,e as w,f as h}from"./n62idpyb.js";import{_ as C}from"./nlink.vue-qjy4vvh6.js";import{_ as V}from"./ncheckbox.vue-krtydjy4.js";import{k as B,b as L,M as u,$ as o,Q as m,U as t,a0 as n,a6 as l,u as T,W as $}from"./vendor/json-editor-vue-fw81xiot.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";const D={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},P={"max-w-190":"","text-lg":""},j={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},W=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){k.value=s.value,N.value=!1}function f(){a.value=!1,p.value.devtools.close()}return(M,e)=>{const _=w,r=C,i=h,x=V,v=b;return m(),u(v,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",D,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",P,[n(_,{"mr-0.5":"","inline-block":"","h-5":"","translate-y--1.1":"","align-mid":""}),e[1]||(e[1]=l(" is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!")),e[2]||(e[2]=t("br",null,null,-1))]),t("p",j,[e[4]||(e[4]=l(" Learn more at ")),n(r,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:o(()=>e[3]||(e[3]=[l(" devtools.nuxt.com ")])),_:1})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1}),T(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:f},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1})):$("",!0)]),t("div",E,[t("div",F,[n(x,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.value=c),n:"green6"},{default:o(()=>[e[8]||(e[8]=t("span",{op50:""},"Send anonymous statistics, help us improving DevTools",-1)),n(r,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op35:"",textContent:"Learn more"})]),_:1},8,["modelValue"])])])]),_:1})}}});export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as w,s as y,bj as C,E as $,f as B,U as V}from"./n62idpyb.js";import{_ as P}from"./nmarkdown.vue-lym2fx3e.js";import{k as v,M as a,$ as o,Q as t,a0 as c,U as i,a5 as m,W as l,S as E,ab as F,a1 as I,a6 as L,F as M}from"./vendor/json-editor-vue-fw81xiot.js";const S={"text-xl":""},T={flex:"~ gap2 wrap"},Q=v({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(_,{emit:p}){const d=_,u=p;function f(e,s){y("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const k=C,g=P,b=$,h=B,N=V,x=w;return t(),a(x,null,{default:o(()=>[c(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[c(k,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",S,m(e.title),1),e.description?(t(),a(g,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):l("",!0),i("div",T,[(t(!0),E(M,null,F(e.actions,(n,r)=>(t(),a(h,I({key:r,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0,ref_for:!0},n.attrs,{onClick:U=>f(n,r)}),{default:o(()=>[n.pending?(t(),a(b,{key:0,icon:"carbon-circle-dash","animate-spin":""})):l("",!0),L(" "+m(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{Q as _};
|