@nuxt/devtools-nightly 2.4.0-29076820.77ef5ce → 2.4.0-29088294.f8eed63
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 +1 -1
- package/dist/client/200.html +12 -12
- package/dist/client/404.html +12 -12
- package/dist/client/_nuxt/{analyze-build-htq015xe.js → analyze-build-mjw085zy.js} +1 -1
- package/dist/client/_nuxt/{assets-6zlewzlg.js → assets-gvztgc99.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/68e34e79-1622-4691-908b-029fb5828f2c.json +1 -0
- package/dist/client/_nuxt/{code-diff.vue-fq49u5ys.js → code-diff.vue-lfhaxvue.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-fd7f71b4.js → code-snippets.vue-cki09aok.js} +1 -1
- package/dist/client/_nuxt/{components-he8hskpf.js → components-gnxavumr.js} +1 -1
- package/dist/client/_nuxt/{composable-item.vue-emb6bo2v.js → composable-item.vue-bedg3hvy.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-e3h9nkbf.js → custom-_name_-i1fgyoo5.js} +1 -1
- package/dist/client/_nuxt/{data-schema-button.vue-k5b1sg93.js → data-schema-button.vue-l7ui1gzd.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-okewg4bl.js → data-schema-drawer-jgbpbp8t.js} +1 -1
- package/dist/client/_nuxt/{debug-o7mqrf08.js → debug-emvge4wj.js} +1 -1
- package/dist/client/_nuxt/{default-vcnoa56y.js → default-ezndin3a.js} +1 -1
- package/dist/client/_nuxt/{error-404-bg1xrxck.js → error-404-oofakzsp.js} +1 -1
- package/dist/client/_nuxt/{error-500-kogxhgx8.js → error-500-olipae97.js} +1 -1
- package/dist/client/_nuxt/{error-obfmn72w.js → error-l3aq1v9q.js} +1 -1
- package/dist/client/_nuxt/{filepath-item.vue-ctzpaoq2.js → filepath-item.vue-frs7t30a.js} +1 -1
- package/dist/client/_nuxt/{full-flmbd7rs.js → full-k1080d8o.js} +1 -1
- package/dist/client/_nuxt/{help-fab.vue-ocjwejqw.js → help-fab.vue-eeex0j61.js} +1 -1
- package/dist/client/_nuxt/{hooks-b3ixs3wm.js → hooks-iz5t1dje.js} +1 -1
- package/dist/client/_nuxt/{imports-k9r019ie.js → imports-i6lced4i.js} +1 -1
- package/dist/client/_nuxt/{index-gs7l1dwr.js → index-nwwkrwyg.js} +1 -1
- package/dist/client/_nuxt/{launch-page.vue-mt5s952y.js → launch-page.vue-d78v84wo.js} +1 -1
- package/dist/client/_nuxt/{modules-lf32o2fx.js → modules-bpg8m6l2.js} +1 -1
- package/dist/client/_nuxt/{nbadge-o71ofupc.js → nbadge-dshajbvb.js} +1 -1
- package/dist/client/_nuxt/{ncheckbox.vue-o76f31rv.js → ncheckbox.vue-e5bn4q3z.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-j6sn120g.js → ndrawer.vue-lnee6zwn.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-bkl8mxyw.js → ndropdown.vue-g4945g80.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-k8oq6v3c.js → nlink.vue-mddy4qv8.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-kt2cr0ku.js → nnavbar.vue-dj3ve1g6.js} +1 -1
- package/dist/client/_nuxt/{none-mx6td3lj.js → none-dfz0qg60.js} +1 -1
- package/dist/client/_nuxt/{nsection-block-m7fz9si8.js → nsection-block-mjz70f32.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs.vue-c5332j4f.js → nselect-tabs.vue-nd1lfb58.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-klxbcgw6.js → nselect.vue-ke8ksccp.js} +1 -1
- package/dist/client/_nuxt/{open-graph-ewkyyghk.js → open-graph-mmkycv60.js} +1 -1
- package/dist/client/_nuxt/{overview-n8yolg1y.js → overview-bzrbw13d.js} +1 -1
- package/dist/client/_nuxt/{pages-l3mklhkd.js → pages-rm68gcnc.js} +1 -1
- package/dist/client/_nuxt/{payload-kyswwhv3.js → payload-lb9oei05.js} +1 -1
- package/dist/client/_nuxt/{pinia-me703l26.js → pinia-ii9dc9vg.js} +1 -1
- package/dist/client/_nuxt/{plugins-bi1kiflp.js → plugins-dwpnqfi5.js} +1 -1
- package/dist/client/_nuxt/{render-tree-izuhn9c5.js → render-tree-o5er97s7.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-leusuwys.js → runtime-configs-f3u89wgk.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-lvb1gbwu.js → server-discovery-mkw9ct3e.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-fu36idaq.js → server-route-inputs.vue-nnn3yn85.js} +1 -1
- package/dist/client/_nuxt/{server-routes-fxs0a4sv.js → server-routes-kc7bm7w2.js} +1 -1
- package/dist/client/_nuxt/{server-tasks-bxdgyia7.js → server-tasks-ne6a0kma.js} +1 -1
- package/dist/client/_nuxt/{settings-brpeivab.js → settings-h83jve8r.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list.vue-b5w5dd09.js → stacktrace-list.vue-j4dajfvt.js} +1 -1
- package/dist/client/_nuxt/{state-components-l6lnc48a.js → state-components-l6mhjbe8.js} +1 -1
- package/dist/client/_nuxt/state-editor.vue-k6x3mo95.js +1 -0
- package/dist/client/_nuxt/{state-modules-h0solttr.js → state-modules-jeu9k768.js} +1 -1
- package/dist/client/_nuxt/{storage-dzfhursq.js → storage-qxd3bek4.js} +1 -1
- package/dist/client/_nuxt/{terminals-k3tujt3v.js → terminals-oqakpz4r.js} +1 -1
- package/dist/client/_nuxt/{timeline-2btb6dbh.js → timeline-clrta60n.js} +1 -1
- package/dist/client/_nuxt/{iq4jktzn.js → u0zosatb.js} +4 -4
- package/dist/client/_nuxt/{virtual-files-iwpaa1s5.js → virtual-files-djn8pi3z.js} +1 -1
- package/dist/client/_nuxt/{vue-devtools-jcpqztau.js → vue-devtools-fkgcgs0u.js} +1 -1
- package/dist/client/index.html +12 -12
- package/dist/module.json +1 -1
- package/package.json +4 -4
- package/dist/client/_nuxt/builds/meta/6f27ba33-461c-4c49-bc16-c728920dbe3e.json +0 -1
- package/dist/client/_nuxt/state-editor.vue-mmwb2w2b.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./duration-display.vue-hy8s2ai6.js";import{g as T}from"./color-mt9xuhgy.js";import{p as $,k as H,q as w,P as h,a1 as u,Q as o,a9 as l,X as p,F as y,ae as F,a8 as m,V,u as k,a3 as _,S as C,R as N,a2 as f}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as B}from"./nsection-block-
|
|
1
|
+
import{_ as S}from"./duration-display.vue-hy8s2ai6.js";import{g as T}from"./color-mt9xuhgy.js";import{p as $,k as H,q as w,P as h,a1 as u,Q as o,a9 as l,X as p,F as y,ae as F,a8 as m,V,u as k,a3 as _,S as C,R as N,a2 as f}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as B}from"./nsection-block-mjz70f32.js";import{_ as P}from"./help-fab.vue-eeex0j61.js";import{s as D,f as E}from"./u0zosatb.js";import"./nicon-title.vue-m2ftlsrz.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";const O={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},R={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},Y={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},q={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},Q={"text-sm":""},U={"ws-nowrap":""},X={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__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",z,[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",A,[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",R,[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",Y,[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,F(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",q,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:V({color:("getHslColorFromStringHash"in e?e.getHslColorFromStringHash:k(T))(c(s.name))})},[o("code",Q,m(c(s.name)),1)],4),o("td",U,[o("code",X,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",J,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),W={class:"markdown-body"},Z={__name:"hooks",setup(x,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",W,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)])))}},ut=$({__name:"hooks",setup(x){const a=D(),r=E(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=M,c=B,v=Z,i=P;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{ut as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as A,W as S,X as T,A as P,S as j,Y as X,I as Y}from"./
|
|
1
|
+
import{V as A,W as S,X as T,A as P,S as j,Y as X,I as Y}from"./u0zosatb.js";import{_ as q}from"./nselect-tabs.vue-nd1lfb58.js";import{_ as Q}from"./nnavbar.vue-dj3ve1g6.js";import{_ as U}from"./filepath-item.vue-frs7t30a.js";import{_ as R}from"./composable-item.vue-bedg3hvy.js";import{p as C,P as u,a1 as a,F as k,ae as M,a3 as c,Q as i,S as w,R as x,u as f,q as _,a8 as W,k as V,a2 as $}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as G}from"./nsection-block-mjz70f32.js";import{_ as J}from"./help-fab.vue-eeex0j61.js";import{D as B}from"./constants-b32h69zq.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";import"./nmarkdown.vue-hrdikzmp.js";import"./client-jvnhv8ra.js";import"./index-jc4yj4to.js";import"./nicon-title.vue-m2ftlsrz.js";const K={flex:"~ wrap gap2",p2:"",pl4:""},O=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=U,e=R;return a(),u("div",null,[(a(!0),u(k,null,M(r.map.entries(),([l,m])=>(a(),u("div",{key:l},[c(o,{filepath:l,op50:"","hover:underline":""},null,8,["filepath"]),i("div",K,[(a(!0),u(k,null,M(m,g=>(a(),w(e,{key:g.as,item:g,metadata:r.metadata,"is-directive":g.meta?.vueDirective===!0,filepath:l.match(/^[\w@]/)?void 0:l},null,8,["item","metadata","is-directive","filepath"]))),128))])]))),128))])}}}),Z={key:0,flex:"~ col gap-2 items-start"},ee=C({__name:"HelpImportsDirs",setup(D){const r=A();return(v,o)=>{const e=U;return f(r)?.dirs?(a(),u("div",Z,[(a(!0),u(k,null,M(f(r).dirs,l=>(a(),w(e,{key:l,filepath:l,"text-primary":""},null,8,["filepath"]))),128))])):x("",!0)}}}),te={flex:"~ gap-2 wrap",mb6:""},oe=C({__name:"HelpImportsModules",setup(D){const r=A(),v=_(()=>[...new Set(r.value?.imports.map(o=>S(o.from)).filter(o=>!!o&&!T(o)))]);return(o,e)=>(a(),u("div",te,[(a(!0),u(k,null,M(v.value,l=>(a(),u("code",{key:l,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},W(l),1))),128))]))}}),se={class:"markdown-body"},ae={__name:"imports",setup(D,{expose:r}){return r({frontmatter:{}}),(o,e)=>{const l=ee,m=oe;return a(),u("div",se,[e[0]||(e[0]=i("h1",null,"Auto imports",-1)),e[1]||(e[1]=i("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]=i("hr",null,null,-1)),e[3]||(e[3]=i("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),c(l),e[4]||(e[4]=i("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),c(m),e[5]||(e[5]=i("hr",null,null,-1)),e[6]||(e[6]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)),e[7]||(e[7]=i("h2",null,"Directives",-1)),e[8]||(e[8]=i("p",null,"Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1)),e[9]||(e[9]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/directory-structure/directives",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},le={key:0,relative:"","h-full":"","of-auto":""},re={key:0,flex:"~ gap-2 items-center lt-sm:col lt-sm:items-start"},$e=C({__name:"imports",setup(D){const r=P(),v=V("all"),o=V("all"),e=V(""),l=A(),m=_(()=>l.value?.metadata),g=_(()=>l.value?.imports.filter(d=>d.as||d.name).sort((d,n)=>(d.as||d.name).localeCompare(n.as||n.name))||[]),z=_(()=>new j(g.value,{keys:["from","as","name"]})),s=_(()=>{const d=new Map,n=new Map,I=new Map;let p=e.value?z.value.search(e.value).map(t=>t.item):g.value;const N=o.value;N==="composables"?p=p.filter(t=>t.meta?.vueDirective!==!0):N==="directives"&&(p=p.filter(t=>t.meta?.vueDirective===!0)),v.value==="using"&&m.value?p=p.filter(t=>(t.as||t.name)in m.value.injectionUsage):v.value==="not-used"&&m.value&&(p=p.filter(t=>!((t.as||t.name)in m.value.injectionUsage)));const h={user:0,lib:0,builtin:0};return p.forEach(t=>{const b=X(t.from)?T(S(t.from))?I:n:d;b.has(t.from)||b.set(t.from,[]),b.get(t.from).push(t),h[b===d?"user":b===n?"lib":"builtin"]++}),{user:d,lib:n,builtin:I,count:h}}),F=_(()=>o.value==="directives"?`${s.value.count.user} directives from ${s.value.user.size} modules`:`${s.value.count.user} composables from ${s.value.user.size} modules`),E=_(()=>o.value==="directives"?`${s.value.count.builtin} directives`:`${s.value.count.builtin} composables`),H=_(()=>o.value==="directives"?`${s.value.count.lib} directives from ${s.value.lib.size} packages`:`${s.value.count.lib} composables from ${s.value.lib.size} packages`);return(d,n)=>{const I=Y,p=q,N=Q,h=O,t=G,b=ae,L=J;return a(),u(k,null,[f(r)?(a(),u("div",le,[c(N,{search:e.value,"onUpdate:search":n[2]||(n[2]=y=>e.value=y),pb3:""},{default:$(()=>[m.value?(a(),u("div",re,[c(I,{icon:"carbon-filter",op50:""}),c(p,{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=y=>v.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"]),c(p,{modelValue:o.value,"onUpdate:modelValue":n[1]||(n[1]=y=>o.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Composables",value:"composables"},{label:"Directives",value:"directives"}]},null,8,["modelValue"])])):x("",!0)]),_:1},8,["search"]),s.value.user.size?(a(),w(t,{key:0,open:s.value.count.user<=f(B),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:F.value},{default:$(()=>[c(h,{map:s.value.user,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","icon","text","description"])):x("",!0),s.value.builtin.size?(a(),w(t,{key:1,open:s.value.count.builtin<=f(B),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:E.value},{default:$(()=>[c(h,{map:s.value.builtin,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0),s.value.lib.size?(a(),w(t,{key:2,open:s.value.count.lib<=f(B),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:H.value},{default:$(()=>[c(h,{map:s.value.lib,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0)])):x("",!0),c(L,null,{default:$(()=>[c(b)]),_:1})],64)}}});export{$e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as y,g,h as k,_ as N,i as b,t as h,j as w}from"./
|
|
1
|
+
import{f as y,g,h as k,_ as N,i as b,t as h,j as w}from"./u0zosatb.js";import{_ as C}from"./nlink.vue-mddy4qv8.js";import{_ as V}from"./ncheckbox.vue-e5bn4q3z.js";import{p as B,k as L,S as u,a1 as m,a2 as o,Q as t,a3 as n,R as T,a9 as l,u as j}from"./vendor/json-editor-vue-exjsfanq.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";const D={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},P={"max-w-190":"","text-lg":""},S={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},U=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){h.value=s.value,w.value=!1}function _(){a.value=!1,p.value.devtools.close()}return($,e)=>{const f=k,r=C,i=N,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(f,{"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",S,[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}),j(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:_},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1})):T("",!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{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as w,n as y,o as C,_ as B,I as P,M as V}from"./
|
|
1
|
+
import{i as w,n as y,o as C,_ as B,I as P,M as V}from"./u0zosatb.js";import{_ as $}from"./nmarkdown.vue-hrdikzmp.js";import{p as v,S as o,a1 as t,a2 as a,a3 as c,Q as i,R as m,a8 as _,P as I,F,ae as L,a4 as M,a9 as S}from"./vendor/json-editor-vue-exjsfanq.js";const T={"text-xl":""},D={flex:"~ gap2 wrap"},j=v({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(l,{emit:p}){const d=l,u=p;function f(e,s){V("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const g=C,k=$,h=P,N=B,b=y,x=w;return t(),o(x,null,{default:a(()=>[c(b,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:a(()=>[c(g,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",T,_(e.title),1),e.description?(t(),o(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):m("",!0),i("div",D,[(t(!0),I(F,null,L(e.actions,(n,r)=>(t(),o(N,M({key:r,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0,ref_for:!0},n.attrs,{onClick:E=>f(n,r)}),{default:a(()=>[n.pending?(t(),o(h,{key:0,icon:"carbon-circle-dash","animate-spin":""})):m("",!0),S(" "+_(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{j as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as oe}from"./filepath-item.vue-ctzpaoq2.js";import{w as Y,n as G,e as O,I as H,Z as R,_ as U,r as q,E,M as ne,$ as X,a0 as Z,S as se,A as le,Q as ae,q as ie,a1 as re}from"./iq4jktzn.js";import{_ as ue,u as F,a as de}from"./state-modules-h0solttr.js";import{_ as me}from"./duration-display.vue-hy8s2ai6.js";import{p as P,q as M,S as $,a1 as o,a2 as r,Q as e,U as T,P as p,R as v,a9 as k,a8 as g,u as j,X as S,a3 as s,F as B,ae as A,al as pe,k as D,M as Q}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as ce}from"./nsection-block-m7fz9si8.js";import{_ as _e}from"./nicon-title.vue-m2ftlsrz.js";import{_ as J}from"./ndropdown.vue-bkl8mxyw.js";import{_ as fe}from"./ncheckbox.vue-o76f31rv.js";import{_ as ve}from"./nnavbar.vue-kt2cr0ku.js";import{_ as ge}from"./nbadge-o71ofupc.js";import{s as xe}from"./vue-virtual-scroller.esm-iodr444e.js";import{_ as be}from"./ncode-block.vue-8qivpy1q.js";import{_ as ke}from"./nlink.vue-k8oq6v3c.js";import{_ as he}from"./code-diff.vue-fq49u5ys.js";import{_ as ye}from"./help-fab.vue-ocjwejqw.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";import"./client-jvnhv8ra.js";const $e={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},we={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},Ce={key:2},Ie={key:1,flex:"~ gap-2",title:"Documentation"},Me={key:2,flex:"~ gap-2"},Ne={key:0,flex:"~ gap-4 items-center"},Be={flex:"~ gap-2 items-center",op50:""},je={flex:"~ gap-2 items-center",op50:""},Pe={key:1},De={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Se={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Ue=["src"],ze={flex:"","justify-end":""},Le="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Oe="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",Fe="https://github.com/",Ve="https://www.npmjs.com/package/",V=P({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const f=N,i=M(()=>({...f.mod?.meta,...f.mod,...f.info})),x=Y();return(m,t)=>{const l=O,u=H,h=me,w=G;return o(),$(w,{p4:"",flex:"~ gap2"},{default:r(()=>[e("div",$e,[T(m.$slots,"main",{},()=>[e("div",we,[m.mod.isPackageModule?(o(),$(l,{key:0,to:Ve+(i.value.npm||i.value.name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[k(g(i.value.name),1)]),_:1},8,["to"])):m.mod.entryPath?(o(),p("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=c=>j(x)(m.mod.entryPath))},g(i.value.name),1)):(o(),p("span",Ce,g(i.value.name),1)),T(m.$slots,"badge")]),i.value.description?(o(),p("div",{key:0,class:S(m.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},g(i.value.description),3)):v("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),i.value.website?(o(),p("div",Ie,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):v("",!0),i.value.github?(o(),p("div",Me,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):v("",!0)]),T(m.$slots,"items"),i.value.stats?(o(),p("div",Ne,[e("div",Be,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,g(i.value.stats.stars),1)]),e("div",je,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,g(i.value.stats.downloads),1)])])):v("",!0),m.mod.timings?.setup?(o(),p("div",Pe,[s(h,{title:"Module Setup Time",flex:"~ items-center",duration:m.mod.timings.setup,factor:.5},{before:r(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):v("",!0)]),e("div",De,[i.value.icon||m.mod.isPackageModule?(o(),p("div",Ae,[i.value.icon?(o(),p("img",{key:0,src:Le+i.value.icon,alt:m.mod.name,ma:""},null,8,Te)):v("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):v("",!0),i.value.maintainers?.length&&m.maintainers?(o(),p("div",Se,[(o(!0),p(B,null,A(i.value.maintainers,c=>(o(),$(l,{key:c.name,target:"_blank",to:Fe+c.github,title:c.name},{default:r(()=>[e("img",{src:Oe+c.github,"h-6":"","w-6":"","rounded-full":""},null,8,Ue)]),_:2},1032,["to","title"]))),128))])):v("",!0),m.$slots.actions?(o(),p(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",ze,[T(m.$slots,"actions")])],64)):v("",!0)])]),_:3})}}}),qe={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ee={key:1,"mx--2":""},Qe=["onClick"],Ye={key:2,"mx--2":""},Ge=["onClick"],He={op50:""},Re={"text-green":""},Xe={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Ze={"text-sm":"",op50:""},Je=P({__name:"ModuleItem",props:{mod:{}},setup(N){const f=N,i=M(()=>f.mod.info),x=M(()=>({...f.mod?.meta,...f.mod,...i.value})),m=R();return(t,l)=>{const u=oe,h=O,w=ue,c=V;return o(),$(c,{mod:t.mod,info:i.value},{items:r(()=>[t.mod.entryPath?(o(),p("div",qe,[l[0]||(l[0]=e("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1)),s(u,{filepath:t.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):v("",!0),x.value.npm?(o(),$(w,{key:x.value.npm,"package-name":x.value.npm,options:{dev:!0}},{default:r(({info:d,update:C,state:b,id:a,restart:n})=>[b==="running"?(o(),$(h,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:a?"/modules/terminals":void 0,onClick:y=>a?m.value=a:void 0},{default:r(()=>l[1]||(l[1]=[e("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])),_:2},1032,["to","onClick"])):b==="updated"?(o(),p("div",Ee,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},l[2]||(l[2]=[e("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)]),8,Qe)])):d?.needsUpdate?(o(),p("div",Ye,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:y=>C()},[l[3]||(l[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",He,"v"+g(d.current),1),l[4]||(l[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Re,"v"+g(d.latest),1)],8,Ge)])):d?.latest?(o(),p("div",Xe,[l[5]||(l[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",Ze,"v"+g(d.current),1)])):v("",!0)]),_:1},8,["package-name"])):v("",!0)]),_:1},8,["mod","info"])}}}),Ke=P({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:f}){const i=N,x=f,m=F(),t=M(()=>m.value.find(c=>c.name===i.item.npm)),l=M(()=>t.value&&t.value.isPackageModule),u=M(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function h(c,d){const C=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,b=await C(await E(),c.npm,!0);ne(`modules:${d}`,{moduleName:c.npm}),b.commands&&await X.start(c,b,d)&&(Z.value.push({name:c.npm,info:c,processId:b.processId}),x("start"),await C(await E(),c.npm,!1))}const w={};return(c,d)=>{const C=ge,b=U,a=J,n=V;return o(),$(n,{mod:w,role:l.value?"":"button",info:c.item,mb2:"","h-full":"",class:S(l.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=y=>l.value?null:h(c.item,"install"))},pe({_:2},[l.value?{name:"badge",fn:r(()=>[s(C,{n:"green",textContent:"Installed"}),u.value?(o(),$(a,{key:0,n:"sm green"},{trigger:r(({click:y})=>[s(b,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:_=>y()},null,8,["onClick"])]),default:r(()=>[s(b,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=y=>h(c.item,"uninstall"))},{default:r(()=>d[2]||(d[2]=[k(" Uninstall ")])),_:1})]),_:1})):v("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),We={"h-full":"",flex:"~ col gap-4"},et={flex:"~ items-center"},tt={flex:"~ col","w-30":"","of-auto":""},ot={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},nt={flex:"~ items-center gap-2"},st={flex:"~ gap1","text-sm":"",op50:""},lt={key:0},at={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},it=P({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:f}){const i=f,x=de(),m=F(),t=["downloads","stars","updated","created"],l=D(!1),u=D(t[0]),h=D(!0),w={downloads:(a,n)=>a.stats.downloads-n.stats.downloads,stars:(a,n)=>a.stats.stars-n.stats.stars,created:(a,n)=>a.stats.createdAt-n.stats.createdAt,updated:(a,n)=>a.stats.publishedAt-n.stats.publishedAt},c=M(()=>x.value?.toSorted((a,n)=>w[u.value](a,n)*(l.value?1:-1))),d=D(""),C=M(()=>new se(x.value||[],{keys:["name","description","npm","category"],sortFn:(a,n)=>{const y=x.value?.[a.idx],_=x.value?.[n.idx];return y&&_?w[u.value](y,_)*(l.value?1:-1):a.score-n.score},threshold:.2})),b=M(()=>{let a=c.value;return h.value&&(a=(a||[]).filter(n=>!m.value.some(y=>y.name===n.name))),d.value?C.value.search(d.value).map(n=>n.item).filter(n=>a?.includes(n)):a});return(a,n)=>{const y=_e,_=U,z=H,K=J,W=fe,ee=ve,te=Ke;return o(),p("div",We,[s(y,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),s(ee,{search:d.value,"onUpdate:search":n[2]||(n[2]=I=>d.value=I),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:r(()=>[s(K,{direction:"end",n:"sm primary"},{trigger:r(({click:I})=>[e("div",et,[s(_,{icon:l.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=L=>l.value=!l.value)},null,8,["icon"]),s(_,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:L=>I()},{default:r(()=>[k(g(u.value)+" ",1),s(z,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:r(()=>[e("div",tt,[(o(),p(B,null,A(t,I=>s(_,{key:I,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:L=>u.value=I},{default:r(()=>[e("span",ot,[k(g(I)+" ",1),u.value===I?(o(),$(z,{key:0,icon:"carbon:checkmark"})):v("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:r(()=>[e("div",nt,[s(W,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=I=>h.value=I),n:"primary md"},{default:r(()=>n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])),_:1},8,["modelValue"]),e("div",st,[d.value||h.value?(o(),p("span",lt,g(b.value?.length)+" matched · ",1)):v("",!0),e("span",null,g(j(x)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",at,[s(j(xe),{class:"scroller",items:b.value,"item-size":200,"key-field":"name"},{default:r(({item:I})=>[s(te,{item:I,onStart:n[3]||(n[3]=L=>i("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),rt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ut={capitalize:""},dt={op50:""},mt={flex:"~ gap-3",mt2:"","justify-end":""},pt=P({__name:"ModuleActionDialog",setup(N){const f=le(),i=Y(),x={};return(m,t)=>{const l=V,u=be,h=ke,w=he,c=ie,d=U,C=ae;return o(),$(j(X),null,{default:r(({resolve:b,args:a})=>[s(C,{"model-value":!0,onClose:n=>b(!1)},{default:r(()=>[s(l,{mod:x,info:a[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",rt,[e("h2",{"text-xl":"",class:S(a[2]==="install"?"text-primary":"text-red")},[e("span",ut,g(a[2]),1),t[1]||(t[1]=k()),e("code",null,g(a[0].name),1),t[2]||(t[2]=k("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:a[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",dt,[t[3]||(t[3]=k(" Then your ")),s(h,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=n=>j(i)(j(f)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=k(" will be updated as: "))]),s(w,{from:a[1].configOriginal,to:a[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),t[8]||(t[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),k(". ")],-1)),e("div",mt,[s(c,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>t[5]||(t[5]=[k(" Please make sure to backup your project first. ")])),_:1}),s(d,{onClick:n=>b(!1)},{default:r(()=>t[6]||(t[6]=[k(" Cancel ")])),_:2},1032,["onClick"]),s(d,{n:"solid",capitalize:"",class:S(a[2]==="install"?"n-primary":"n-red"),onClick:n=>b(!0)},{default:r(()=>[k(g(a[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),ct={class:"markdown-body"},_t={__name:"modules",setup(N,{expose:f}){return f({frontmatter:{}}),(x,m)=>(o(),p("div",ct,m[0]||(m[0]=[e("h1",null,"Modules",-1),e("p",null,[k("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),e("code",null,"nuxt.config"),k(".")],-1),e("p",null,[k("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),k(" or install them directly inside the DevTools.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},ft={"h-full":"","w-full":"","of-auto":""},vt={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},gt=["src","alt"],xt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},bt={op75:""},kt={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},ht="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Vt=P({__name:"modules",setup(N){const f=D(!1),i=F(),x=R(),m=M(()=>i.value.filter(l=>l.isPackageModule)),t=M(()=>i.value.filter(l=>!l.isPackageModule));return re(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{f.value=!0}}]),(l,u)=>{const h=Je,w=G,c=O,d=ce,C=U,b=it,a=pt,n=_t,y=ye;return o(),p(B,null,[e("div",ft,[s(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${m.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(m.value,_=>(o(),$(h,{key:_.name,mod:_},null,8,["mod"]))),128)),(o(!0),p(B,null,A("processInstallingModules"in l?l.processInstallingModules:j(Z),_=>(o(),$(c,{key:_.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:z=>x.value=_.processId},{default:r(()=>[s(w,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:r(()=>[e("div",vt,[e("img",{src:ht+_.info.icon,alt:_.info.name,ma:""},null,8,gt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",xt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",bt,"Installing "+g(_.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(w,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:u[0]||(u[0]=_=>f.value=!0)},{default:r(()=>u[6]||(u[6]=[e("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),e("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])),_:1})]),_:1},8,["description"]),t.value.length?(o(),$(d,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${t.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(t.value,_=>(o(),p(B,{key:_.meta?.name||_.entryPath},[_.meta?.name||_.entryPath?(o(),$(h,{key:0,mod:_},null,8,["mod"])):v("",!0)],64))),128))]),_:1},8,["description"])):v("",!0),s(Q,{name:"fade-in"},{default:r(()=>[f.value?(o(),p("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=_=>f.value=!1)})):v("",!0)]),_:1}),s(Q,{name:"slide-in"},{default:r(()=>[f.value?(o(),p("div",kt,[s(C,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=_=>f.value=!1)}),s(b,{onClose:u[3]||(u[3]=_=>f.value=!1)})])):v("",!0)]),_:1}),s(a)]),s(y,null,{default:r(()=>[s(n)]),_:1})],64)}}});export{Vt as default};
|
|
1
|
+
import{_ as oe}from"./filepath-item.vue-frs7t30a.js";import{w as Y,n as G,e as O,I as H,Z as R,_ as U,r as q,E,M as ne,$ as X,a0 as Z,S as se,A as le,Q as ae,q as ie,a1 as re}from"./u0zosatb.js";import{_ as ue,u as F,a as de}from"./state-modules-jeu9k768.js";import{_ as me}from"./duration-display.vue-hy8s2ai6.js";import{p as P,q as M,S as $,a1 as o,a2 as r,Q as e,U as T,P as p,R as v,a9 as k,a8 as g,u as j,X as S,a3 as s,F as B,ae as A,al as pe,k as D,M as Q}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as ce}from"./nsection-block-mjz70f32.js";import{_ as _e}from"./nicon-title.vue-m2ftlsrz.js";import{_ as J}from"./ndropdown.vue-g4945g80.js";import{_ as fe}from"./ncheckbox.vue-e5bn4q3z.js";import{_ as ve}from"./nnavbar.vue-dj3ve1g6.js";import{_ as ge}from"./nbadge-dshajbvb.js";import{s as xe}from"./vue-virtual-scroller.esm-iodr444e.js";import{_ as be}from"./ncode-block.vue-8qivpy1q.js";import{_ as ke}from"./nlink.vue-mddy4qv8.js";import{_ as he}from"./code-diff.vue-lfhaxvue.js";import{_ as ye}from"./help-fab.vue-eeex0j61.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";import"./client-jvnhv8ra.js";const $e={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},we={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},Ce={key:2},Ie={key:1,flex:"~ gap-2",title:"Documentation"},Me={key:2,flex:"~ gap-2"},Ne={key:0,flex:"~ gap-4 items-center"},Be={flex:"~ gap-2 items-center",op50:""},je={flex:"~ gap-2 items-center",op50:""},Pe={key:1},De={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Se={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Ue=["src"],ze={flex:"","justify-end":""},Le="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Oe="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",Fe="https://github.com/",Ve="https://www.npmjs.com/package/",V=P({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const f=N,i=M(()=>({...f.mod?.meta,...f.mod,...f.info})),x=Y();return(m,t)=>{const l=O,u=H,h=me,w=G;return o(),$(w,{p4:"",flex:"~ gap2"},{default:r(()=>[e("div",$e,[T(m.$slots,"main",{},()=>[e("div",we,[m.mod.isPackageModule?(o(),$(l,{key:0,to:Ve+(i.value.npm||i.value.name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[k(g(i.value.name),1)]),_:1},8,["to"])):m.mod.entryPath?(o(),p("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=c=>j(x)(m.mod.entryPath))},g(i.value.name),1)):(o(),p("span",Ce,g(i.value.name),1)),T(m.$slots,"badge")]),i.value.description?(o(),p("div",{key:0,class:S(m.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},g(i.value.description),3)):v("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),i.value.website?(o(),p("div",Ie,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):v("",!0),i.value.github?(o(),p("div",Me,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):v("",!0)]),T(m.$slots,"items"),i.value.stats?(o(),p("div",Ne,[e("div",Be,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,g(i.value.stats.stars),1)]),e("div",je,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,g(i.value.stats.downloads),1)])])):v("",!0),m.mod.timings?.setup?(o(),p("div",Pe,[s(h,{title:"Module Setup Time",flex:"~ items-center",duration:m.mod.timings.setup,factor:.5},{before:r(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):v("",!0)]),e("div",De,[i.value.icon||m.mod.isPackageModule?(o(),p("div",Ae,[i.value.icon?(o(),p("img",{key:0,src:Le+i.value.icon,alt:m.mod.name,ma:""},null,8,Te)):v("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):v("",!0),i.value.maintainers?.length&&m.maintainers?(o(),p("div",Se,[(o(!0),p(B,null,A(i.value.maintainers,c=>(o(),$(l,{key:c.name,target:"_blank",to:Fe+c.github,title:c.name},{default:r(()=>[e("img",{src:Oe+c.github,"h-6":"","w-6":"","rounded-full":""},null,8,Ue)]),_:2},1032,["to","title"]))),128))])):v("",!0),m.$slots.actions?(o(),p(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",ze,[T(m.$slots,"actions")])],64)):v("",!0)])]),_:3})}}}),qe={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ee={key:1,"mx--2":""},Qe=["onClick"],Ye={key:2,"mx--2":""},Ge=["onClick"],He={op50:""},Re={"text-green":""},Xe={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Ze={"text-sm":"",op50:""},Je=P({__name:"ModuleItem",props:{mod:{}},setup(N){const f=N,i=M(()=>f.mod.info),x=M(()=>({...f.mod?.meta,...f.mod,...i.value})),m=R();return(t,l)=>{const u=oe,h=O,w=ue,c=V;return o(),$(c,{mod:t.mod,info:i.value},{items:r(()=>[t.mod.entryPath?(o(),p("div",qe,[l[0]||(l[0]=e("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1)),s(u,{filepath:t.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):v("",!0),x.value.npm?(o(),$(w,{key:x.value.npm,"package-name":x.value.npm,options:{dev:!0}},{default:r(({info:d,update:C,state:b,id:a,restart:n})=>[b==="running"?(o(),$(h,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:a?"/modules/terminals":void 0,onClick:y=>a?m.value=a:void 0},{default:r(()=>l[1]||(l[1]=[e("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])),_:2},1032,["to","onClick"])):b==="updated"?(o(),p("div",Ee,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},l[2]||(l[2]=[e("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)]),8,Qe)])):d?.needsUpdate?(o(),p("div",Ye,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:y=>C()},[l[3]||(l[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",He,"v"+g(d.current),1),l[4]||(l[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Re,"v"+g(d.latest),1)],8,Ge)])):d?.latest?(o(),p("div",Xe,[l[5]||(l[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",Ze,"v"+g(d.current),1)])):v("",!0)]),_:1},8,["package-name"])):v("",!0)]),_:1},8,["mod","info"])}}}),Ke=P({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:f}){const i=N,x=f,m=F(),t=M(()=>m.value.find(c=>c.name===i.item.npm)),l=M(()=>t.value&&t.value.isPackageModule),u=M(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function h(c,d){const C=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,b=await C(await E(),c.npm,!0);ne(`modules:${d}`,{moduleName:c.npm}),b.commands&&await X.start(c,b,d)&&(Z.value.push({name:c.npm,info:c,processId:b.processId}),x("start"),await C(await E(),c.npm,!1))}const w={};return(c,d)=>{const C=ge,b=U,a=J,n=V;return o(),$(n,{mod:w,role:l.value?"":"button",info:c.item,mb2:"","h-full":"",class:S(l.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=y=>l.value?null:h(c.item,"install"))},pe({_:2},[l.value?{name:"badge",fn:r(()=>[s(C,{n:"green",textContent:"Installed"}),u.value?(o(),$(a,{key:0,n:"sm green"},{trigger:r(({click:y})=>[s(b,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:_=>y()},null,8,["onClick"])]),default:r(()=>[s(b,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=y=>h(c.item,"uninstall"))},{default:r(()=>d[2]||(d[2]=[k(" Uninstall ")])),_:1})]),_:1})):v("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),We={"h-full":"",flex:"~ col gap-4"},et={flex:"~ items-center"},tt={flex:"~ col","w-30":"","of-auto":""},ot={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},nt={flex:"~ items-center gap-2"},st={flex:"~ gap1","text-sm":"",op50:""},lt={key:0},at={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},it=P({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:f}){const i=f,x=de(),m=F(),t=["downloads","stars","updated","created"],l=D(!1),u=D(t[0]),h=D(!0),w={downloads:(a,n)=>a.stats.downloads-n.stats.downloads,stars:(a,n)=>a.stats.stars-n.stats.stars,created:(a,n)=>a.stats.createdAt-n.stats.createdAt,updated:(a,n)=>a.stats.publishedAt-n.stats.publishedAt},c=M(()=>x.value?.toSorted((a,n)=>w[u.value](a,n)*(l.value?1:-1))),d=D(""),C=M(()=>new se(x.value||[],{keys:["name","description","npm","category"],sortFn:(a,n)=>{const y=x.value?.[a.idx],_=x.value?.[n.idx];return y&&_?w[u.value](y,_)*(l.value?1:-1):a.score-n.score},threshold:.2})),b=M(()=>{let a=c.value;return h.value&&(a=(a||[]).filter(n=>!m.value.some(y=>y.name===n.name))),d.value?C.value.search(d.value).map(n=>n.item).filter(n=>a?.includes(n)):a});return(a,n)=>{const y=_e,_=U,z=H,K=J,W=fe,ee=ve,te=Ke;return o(),p("div",We,[s(y,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),s(ee,{search:d.value,"onUpdate:search":n[2]||(n[2]=I=>d.value=I),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:r(()=>[s(K,{direction:"end",n:"sm primary"},{trigger:r(({click:I})=>[e("div",et,[s(_,{icon:l.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=L=>l.value=!l.value)},null,8,["icon"]),s(_,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:L=>I()},{default:r(()=>[k(g(u.value)+" ",1),s(z,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:r(()=>[e("div",tt,[(o(),p(B,null,A(t,I=>s(_,{key:I,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:L=>u.value=I},{default:r(()=>[e("span",ot,[k(g(I)+" ",1),u.value===I?(o(),$(z,{key:0,icon:"carbon:checkmark"})):v("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:r(()=>[e("div",nt,[s(W,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=I=>h.value=I),n:"primary md"},{default:r(()=>n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])),_:1},8,["modelValue"]),e("div",st,[d.value||h.value?(o(),p("span",lt,g(b.value?.length)+" matched · ",1)):v("",!0),e("span",null,g(j(x)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",at,[s(j(xe),{class:"scroller",items:b.value,"item-size":200,"key-field":"name"},{default:r(({item:I})=>[s(te,{item:I,onStart:n[3]||(n[3]=L=>i("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),rt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ut={capitalize:""},dt={op50:""},mt={flex:"~ gap-3",mt2:"","justify-end":""},pt=P({__name:"ModuleActionDialog",setup(N){const f=le(),i=Y(),x={};return(m,t)=>{const l=V,u=be,h=ke,w=he,c=ie,d=U,C=ae;return o(),$(j(X),null,{default:r(({resolve:b,args:a})=>[s(C,{"model-value":!0,onClose:n=>b(!1)},{default:r(()=>[s(l,{mod:x,info:a[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",rt,[e("h2",{"text-xl":"",class:S(a[2]==="install"?"text-primary":"text-red")},[e("span",ut,g(a[2]),1),t[1]||(t[1]=k()),e("code",null,g(a[0].name),1),t[2]||(t[2]=k("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:a[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",dt,[t[3]||(t[3]=k(" Then your ")),s(h,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=n=>j(i)(j(f)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=k(" will be updated as: "))]),s(w,{from:a[1].configOriginal,to:a[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),t[8]||(t[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),k(". ")],-1)),e("div",mt,[s(c,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>t[5]||(t[5]=[k(" Please make sure to backup your project first. ")])),_:1}),s(d,{onClick:n=>b(!1)},{default:r(()=>t[6]||(t[6]=[k(" Cancel ")])),_:2},1032,["onClick"]),s(d,{n:"solid",capitalize:"",class:S(a[2]==="install"?"n-primary":"n-red"),onClick:n=>b(!0)},{default:r(()=>[k(g(a[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),ct={class:"markdown-body"},_t={__name:"modules",setup(N,{expose:f}){return f({frontmatter:{}}),(x,m)=>(o(),p("div",ct,m[0]||(m[0]=[e("h1",null,"Modules",-1),e("p",null,[k("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),e("code",null,"nuxt.config"),k(".")],-1),e("p",null,[k("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),k(" or install them directly inside the DevTools.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},ft={"h-full":"","w-full":"","of-auto":""},vt={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},gt=["src","alt"],xt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},bt={op75:""},kt={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},ht="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Vt=P({__name:"modules",setup(N){const f=D(!1),i=F(),x=R(),m=M(()=>i.value.filter(l=>l.isPackageModule)),t=M(()=>i.value.filter(l=>!l.isPackageModule));return re(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{f.value=!0}}]),(l,u)=>{const h=Je,w=G,c=O,d=ce,C=U,b=it,a=pt,n=_t,y=ye;return o(),p(B,null,[e("div",ft,[s(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${m.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(m.value,_=>(o(),$(h,{key:_.name,mod:_},null,8,["mod"]))),128)),(o(!0),p(B,null,A("processInstallingModules"in l?l.processInstallingModules:j(Z),_=>(o(),$(c,{key:_.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:z=>x.value=_.processId},{default:r(()=>[s(w,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:r(()=>[e("div",vt,[e("img",{src:ht+_.info.icon,alt:_.info.name,ma:""},null,8,gt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",xt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",bt,"Installing "+g(_.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(w,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:u[0]||(u[0]=_=>f.value=!0)},{default:r(()=>u[6]||(u[6]=[e("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),e("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])),_:1})]),_:1},8,["description"]),t.value.length?(o(),$(d,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${t.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(t.value,_=>(o(),p(B,{key:_.meta?.name||_.entryPath},[_.meta?.name||_.entryPath?(o(),$(h,{key:0,mod:_},null,8,["mod"])):v("",!0)],64))),128))]),_:1},8,["description"])):v("",!0),s(Q,{name:"fade-in"},{default:r(()=>[f.value?(o(),p("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=_=>f.value=!1)})):v("",!0)]),_:1}),s(Q,{name:"slide-in"},{default:r(()=>[f.value?(o(),p("div",kt,[s(C,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=_=>f.value=!1)}),s(b,{onClose:u[3]||(u[3]=_=>f.value=!1)})])):v("",!0)]),_:1}),s(a)]),s(y,null,{default:r(()=>[s(n)]),_:1})],64)}}});export{Vt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"./
|
|
1
|
+
import{b as o}from"./u0zosatb.js";import{P as n,a1 as s,U as t}from"./vendor/json-editor-vue-exjsfanq.js";const r={},c={class:"n-badge"};function _(e,a){return s(),n("span",c,[t(e.$slots,"default")])}const m=o(r,[["render",_]]);export{m as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as i,I as r}from"./
|
|
1
|
+
import{G as i,I as r}from"./u0zosatb.js";import{p,P as b,a1 as u,aa as h,Q as n,aq as m,u as a,W as k,j as f,a3 as v,U as _,X as x}from"./vendor/json-editor-vue-exjsfanq.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},I=p({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(t,{emit:c}){const e=i(t,"modelValue",c,{passive:!0});return(o,s)=>{const d=r;return u(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:a(e)||null,disabled:o.disabled||null},[h(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>f(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:o.disabled,onKeypress:s[1]||(s[1]=k(l=>e.value=!a(e),["enter"]))},null,40,y),[[m,a(e)]]),n("span",B,[v(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:x([a(e)?"":"op50","n-transition"])},[_(o.$slots,"default")],2)],8,V)}}});export{I as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bk as n,a2 as b,_ as g}from"./
|
|
1
|
+
import{bk as n,a2 as b,_ as g}from"./u0zosatb.js";import{p as h,k as y,S as v,a1 as l,a2 as k,P as B,R as C,a4 as i,u as o,a3 as _,Q as $,U as w,M as V}from"./vendor/json-editor-vue-exjsfanq.js";const x=["border"],N={relative:"","h-full":"","w-full":"","of-auto":""},P=h({__name:"NDrawer",props:{modelValue:{type:Boolean},top:{},left:{},autoClose:{type:Boolean},transition:{default:"right"}},emits:["close"],setup(m,{emit:c}){const e=m,f=c,a=y(),{height:u}=n(()=>e.top,void 0,{box:"border-box"}),s=typeof e.left=="string"&&e.left.startsWith("#")?document.querySelector(e.left)?.getBoundingClientRect().width:n(()=>e.left,void 0,{box:"border-box"}).width;b(a,()=>{e.modelValue&&e.autoClose&&f("close")},{ignore:["a","button","summary",'[role="dialog"]']});const d={right:{"enter-from-class":"transform translate-x-1/1","leave-to-class":"transform translate-x-1/1"},top:{"enter-from-class":"transform translate-y--1/1","leave-to-class":"transform translate-y--1/1"},bottom:{"enter-from-class":"transform translate-y-1/1","leave-to-class":"transform translate-y-1/1"}};return(t,r)=>{const p=g;return l(),v(V,i(d[t.transition],{"enter-active-class":"duration-200 ease-in","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100"}),{default:k(()=>[t.modelValue?(l(),B("div",i({key:0,ref_key:"el",ref:a,border:`${t.transition==="right"?"l":t.transition==="bottom"?"t":"b"} base`,flex:"~ col gap-1",class:{"right-0":t.transition==="right"||t.transition==="bottom"},absolute:"","bottom-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","n-glass-effect":"",style:{top:t.transition==="bottom"?"auto":`${o(u)}px`,left:t.transition==="right"&&!o(s)?"auto":`${o(s)}px`}},t.$attrs),[_(p,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",border:!1,onClick:r[0]||(r[0]=z=>t.$emit("close"))}),$("div",N,[w(t.$slots,"default")])],16,x)):C("",!0)]),_:3},16)}}});export{P as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as i,a2 as p,_ as u}from"./
|
|
1
|
+
import{G as i,a2 as p,_ as u}from"./u0zosatb.js";import{p as m,k as c,P as f,a1 as v,U as n,Q as _,a3 as b,u as t,a2 as k,a9 as V,X as B}from"./vendor/json-editor-vue-exjsfanq.js";const $=m({__name:"NDropdown",props:{modelValue:{type:Boolean},direction:{default:"start"}},setup(r,{emit:l}){const e=i(r,"modelValue",l,{passive:!0}),s=c();return p(s,()=>{e.value=!1}),(a,o)=>{const d=u;return v(),f("div",{ref_key:"el",ref:s,class:"relative"},[n(a.$slots,"trigger",{enabled:t(e),click:()=>e.value=!t(e)},()=>[b(d,{onClick:o[0]||(o[0]=g=>e.value=!t(e))},{default:k(()=>o[1]||(o[1]=[V(" Dropdown ")])),_:1})]),_("div",{class:B(["absolute z-10 border n-border-base rounded shadow n-transition n-bg-base",[t(e)?"op-100":"op0 pointer-events-none -translate-y-1",a.direction==="end"?"right-0":"left-0"]])},[n(a.$slots,"default")],2)],512)}}});export{$ as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as s}from"./
|
|
1
|
+
import{e as s}from"./u0zosatb.js";import{p as l,q as i,S as p,a1 as r,a4 as u,a2 as c,U as m,P as _,R as k}from"./vendor/json-editor-vue-exjsfanq.js";const d={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},v=l({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(a){const t=a,n=i(()=>t.href||t.to);return(e,f)=>{const o=s;return r(),p(o,u(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:c(()=>[m(e.$slots,"default"),n.value&&e.target==="_blank"?(r(),_("div",d)):k("",!0)]),_:3},16,["class"])}}});export{v as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as l}from"./
|
|
1
|
+
import{v as l}from"./u0zosatb.js";import{p,P as i,a1 as s,X as o,Q as d,U as a,S as m,R as u}from"./vendor/json-editor-vue-exjsfanq.js";const f={flex:"~ gap4 wrap","items-center":""},b=p({__name:"NNavbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(h,{emit:n}){const r=n;function t(e){r("update:search",e.target.value)}return(e,v)=>{const c=l;return s(),i("div",{flex:"~ col gap2 wrap",border:"b base","flex-1":"","n-navbar-glass":"",class:o([{p4:!e.noPadding}])},[d("div",f,[a(e.$slots,"search",{},()=>[e.search!==void 0?(s(),m(c,{key:0,placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:o({"px-3 py-2":!e.noPadding}),value:e.search,onInput:t},null,8,["class","value"])):u("",!0)]),a(e.$slots,"actions")]),a(e.$slots,"default")],2)}}});export{b as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"./
|
|
1
|
+
import{b as o}from"./u0zosatb.js";import{P as t,a1 as r,U as n}from"./vendor/json-editor-vue-exjsfanq.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";const s={},a={relative:"","w-full":""};function c(e,l){return r(),t("div",a,[n(e.$slots,"default")])}const d=o(s,[["render",c]]);export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as $,I as b,b as B}from"./
|
|
1
|
+
import{G as $,I as b,b as B}from"./u0zosatb.js";import{_ as C}from"./nicon-title.vue-m2ftlsrz.js";import{p as h,P as l,a1 as n,F as u,Q as s,R as p,X as r,a3 as w,u as i,a2 as N,U as t,S as k,a9 as c,a8 as f,aa as S,ab as _}from"./vendor/json-editor-vue-exjsfanq.js";const V=["open"],x={"text-base":""},I={key:0,"text-sm":"",op50:""},T=h({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(v){const a=$(v,"open",void 0,{passive:!0});function d(e){a.value=e.target.open}return(e,o)=>{const m=b,g=C;return n(),l(u,null,[s("details",{open:i(a),onToggle:o[0]||(o[0]=(...y)=>d&&d(...y))},[s("summary",{class:r(["cursor-pointer select-none hover:bg-active p4",e.collapse?"":"pointer-events-none"])},[w(g,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:r([i(a)?"op100":"op60",e.headerClass])},{default:N(()=>[s("div",null,[s("div",x,[t(e.$slots,"text",{},()=>[c(f(e.text),1)],!0)]),e.description||e.$slots.description?(n(),l("div",I,[t(e.$slots,"description",{},()=>[c(f(e.description),1)],!0)])):p("",!0)]),o[1]||(o[1]=s("div",{class:"flex-auto"},null,-1)),t(e.$slots,"actions",{},void 0,!0),e.collapse?(n(),k(m,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):p("",!0)]),_:3},8,["icon","text","class"])],2),o._lazyshow1||i(a)?(o._lazyshow1=!0,n(),l(u,null,[S(s("div",{class:r(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[t(e.$slots,"details",{},void 0,!0),s("div",{class:r([e.containerClass,"mt1"])},[t(e.$slots,"default",{},void 0,!0)],2),t(e.$slots,"footer",{},void 0,!0)],2),[[_,i(a)]])],64)):p("v-show-if",!0)],40,V),o[2]||(o[2]=s("div",{class:"x-divider"},null,-1))],64)}}}),G=B(T,[["__scopeId","data-v-bae9fa8d"]]);export{G as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as m,P as l,a1 as t,F as c,ae as v,X as r,u as o,Q as d,aa as f,a8 as _,au as g,j as y}from"./vendor/json-editor-vue-exjsfanq.js";import{G as V}from"./
|
|
1
|
+
import{p as m,P as l,a1 as t,F as c,ae as v,X as r,u as o,Q as d,aa as f,a8 as _,au as g,j as y}from"./vendor/json-editor-vue-exjsfanq.js";import{G as V}from"./u0zosatb.js";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},x=["disabled","title"],B=["disabled","value","title"],F=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(i,{emit:p}){const a=V(i,"modelValue",p,{passive:!0});return(s,n)=>(t(),l("fieldset",h,[(t(!0),l(c,null,v(s.options,(e,u)=>(t(),l("label",{key:e.label,disabled:s.disabled,class:r(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[u?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[d("div",{class:r([e.value===o(a)?"":"op35"])},_(e.label),3),f(d("input",{"onUpdate:modelValue":n[0]||(n[0]=b=>y(a)?a.value=b:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,B),[[g,o(a)]])],10,x))),128))]))}});export{F as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as p,I as m}from"./
|
|
1
|
+
import{G as p,I as m}from"./u0zosatb.js";import{p as f,P as l,a1 as s,X as n,U as t,aa as b,S as h,R as d,aA as v,u as y,Q as V,j as k,a8 as B}from"./vendor/json-editor-vue-exjsfanq.js";const S=["disabled"],g={key:0,value:"",disabled:"",hidden:""},$=f({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const o=p(i,"modelValue",r,{passive:!0});return(e,a)=>{const c=m;return s(),l("div",{class:n(["n-select flex flex items-center border rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base",e.disabled?"border-gray:10":"n-border-base"])},[t(e.$slots,"icon",{},()=>[e.icon?(s(),h(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):d("",!0)]),b(V("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>k(o)?o.value=u:null),disabled:e.disabled,class:n(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(s(),l("option",g,B(e.placeholder),1)):d("",!0),t(e.$slots,"default")],10,S),[[v,y(o)]])],2)}}});export{$ as _};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{at as oe,a as ae,w as H,n as P,_ as G,au as J,av as ne,aw as se,ax as re,b as ie,ay as le,az as ce,c as de,y as pe,z as ue,C as me,aA as E,v as ge}from"./
|
|
1
|
+
import{at as oe,a as ae,w as H,n as P,_ as G,au as J,av as ne,aw as se,ax as re,b as ie,ay as le,az as ce,c as de,y as pe,z as ue,C as me,aA as E,v as ge}from"./u0zosatb.js";import{_ as he}from"./nnavbar.vue-dj3ve1g6.js";import{_ as U}from"./nlink.vue-mddy4qv8.js";import{_ as q}from"./nsection-block-mjz70f32.js";import{_ as _e}from"./ncode-block.vue-8qivpy1q.js";import{p as N,q as C,k as I,S as A,R as y,a1 as t,a2 as h,Q as e,P as n,F as S,ae as B,X as O,a8 as u,a3 as p,a9 as $,u as g,V as R,ak as fe,z as ve,ag as be,aa as D,W as we}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as xe}from"./help-fab.vue-eeex0j61.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";import"./nicon-title.vue-m2ftlsrz.js";import"./client-jvnhv8ra.js";const K=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"optional",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"optional",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"optional",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"optional",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],ye={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},ke=["onClick"],$e={key:0,"x-divider":""},Te={key:1,"x-divider":""},Se={flex:"~ gap-1 items-center",class:"px2 pt2",lg:"px4 py2"},Ce={"w-full":"",p2:"",op75:""},Ne={key:1,m4:"",flex:"~ col gap-2"},Me={flex:"~ gap-1 wrap items-center"},Oe={key:1},Ae={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Ie=N({__name:"OpenGraphMissingTabs",props:{tags:{},matchedRouteFilepath:{}},setup(v){const s=v,l=C(()=>K.filter(d=>!s.tags?.some(o=>o.name===d.name))),a=C(()=>{let d={};const o={};l.value.forEach(m=>{m.seoMeta?Object.assign(o,m.seoMeta):d=oe(d,m.head)});const w=[];if(Object.keys(o).length){const m=JSON.stringify(o,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");w.push(`useSeoMeta(${m})`)}if(Object.keys(d).length){const m=JSON.stringify(d,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");w.push(`useHead(${m})`)}return w.join(`
|
|
2
2
|
|
|
3
3
|
`)}),c=ae(),k=H(),b=["Missing Tags","Code Snippet"],_=I(b[0]);return(d,o)=>{const w=U,m=P,T=G,M=_e,L=q;return l.value.length?(t(),A(L,{key:0,text:"Missing Tags",description:`${l.value.length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:h(()=>[e("div",ye,[(t(),n(S,null,B(b,(r,i)=>e("button",{key:i,px4:"",py2:"",border:"r t base",hover:"bg-active",class:O(r===_.value?"":"border-b"),onClick:f=>_.value=r},[e("div",{class:O(r===_.value?"":"op30"),capitalize:""},u(r),3)],10,ke)),64)),o[3]||(o[3]=e("div",{border:"b base","flex-auto":""},null,-1))]),_.value===b[0]?(t(),A(m,{key:0,grid:"~ cols-[1fr] lg:cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:h(()=>[(t(!0),n(S,null,B(l.value,(r,i)=>(t(),n(S,{key:i},[i?(t(),n("div",$e)):y("",!0),i?(t(),n("div",Te)):y("",!0),e("div",Se,[o[4]||(o[4]=e("div",{"i-carbon-warning":"","text-orange":""},null,-1)),p(w,{"op-50":"",href:r.docs,target:"_blank",n:"orange"},{default:h(()=>[$(u(r.name),1)]),_:2},1032,["href"])]),e("div",Ce,u(r.description),1)],64))),128))]),_:1})):(t(),n("div",Ne,[e("p",Me,[p(T,{icon:"carbon-copy",n:"xs","px-2":"",onClick:o[0]||(o[0]=r=>g(c)(a.value,"open-graph-suggestion"))},{default:h(()=>o[5]||(o[5]=[$(" Copy ")])),_:1}),o[7]||(o[7]=$(" the following code snippet and paste it into your ")),d.matchedRouteFilepath?(t(),A(T,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:o[1]||(o[1]=r=>g(k)(d.matchedRouteFilepath))},{default:h(()=>o[6]||(o[6]=[$(" page component ")])),_:1})):(t(),n("span",Oe,"page component")),o[8]||(o[8]=$(" to full fill the missing tags. "))]),p(m,{relative:"","n-code-block":""},{default:h(()=>[p(M,{code:a.value,lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),e("div",Ae,[p(T,{icon:"carbon-copy",onClick:o[2]||(o[2]=r=>g(c)(a.value,"open-graph-suggestion"))},{default:h(()=>o[9]||(o[9]=[$(" Copy ")])),_:1})])]),_:1})]))]),_:1},8,["description"])):y("",!0)}}}),Be={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},Re={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Le={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},ze={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},Fe={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},je={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},De=N({__name:"SocialFacebook",props:{card:{}},setup(v){return(s,l)=>(t(),n("div",Be,[e("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",Re,[e("div",Le,u(s.card.url),1),e("div",ze,[e("div",Fe,u(s.card.title),1),e("div",je,u(s.card.description),1)])])]))}}),Ve={class:"max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1",style:{"font-family":"TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"}},Ee={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},He={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},Pe={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},Ge={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},Je=N({__name:"SocialTwitter",props:{tags:{}},setup(v){const s=v,l=C(()=>J(s.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),a=C(()=>l.value.image?s.tags.find(c=>c.tag==="meta"&&c.name==="twitter:card")?.value||"summary_large_image":"summary");return(c,k)=>(t(),n("div",Ve,[e("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",a.value==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[a.value==="summary_large_image"?(t(),n("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(l.value.image)})`})},null,4)):(t(),n("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(l.value.image)})`})},null,4)),e("div",Ee,[e("div",He,u(l.value.url),1),e("div",Pe,u(l.value.title),1),e("div",Ge,u(l.value.description),1)])],2)]))}}),Ue={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] shadow-md bg-base"},qe={class:"break-words p-[10px] antialiased"},Ke={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},We={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},Qe={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},Xe=N({__name:"SocialLinkedin",props:{card:{}},setup(v){return(s,l)=>(t(),n("div",Ue,[e("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",qe,[e("div",Ke,[e("div",We,u(s.card.title),1),e("div",Qe,u(s.card.url),1)])])]))}}),Ye={class:"relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26] bg-base"},Ze={class:"pl-[10px] pr-[8px]"},et={class:"text-[#3390ec] leading-normal underline"},tt={class:"quote w-full flex"},ot={class:"flex flex-col gap-1"},at={key:0,class:"my-[3px] overflow-hidden rounded"},nt=["src"],st={class:"cursor-pointer text-sm text-[#3390ec]"},rt={class:"cursor-pointer text-sm"},it={class:"cursor-pointer text-sm"},lt={class:"flex justify-end text-xs text-[#707579]"},ct=N({__name:"SocialTelegram",props:{card:{}},setup(v){const s=ne(),l=se(re(),"HH:mm");return(a,c)=>(t(),n("div",Ye,[e("div",Ze,[e("div",et,u(a.card.url),1),e("div",tt,[e("div",ot,[a.card.image?(t(),n("div",at,[e("img",{class:"h-full max-w-full w-full rounded object-cover",src:a.card.image},null,8,nt)])):y("",!0),e("div",st,[e("strong",null,u(g(s).hostname),1)]),e("div",rt,[e("strong",null,u(a.card.title),1)]),e("div",it,u(a.card.description),1)])]),e("div",lt,[e("span",null,u(g(l)),1)])]),c[0]||(c[0]=e("svg",{width:"11",height:"20",viewBox:"0 0 11 20",xmlns:"http://www.w3.org/2000/svg",class:"absolute bottom-0 ml-[-8.4px] translate-y-px text-white"},[e("g",{transform:"translate(9 -14)","fill-rule":"evenodd"},[e("path",{id:"corner-fill",d:"M-6 16h6v17c-.193-2.84-.876-5.767-2.05-8.782-.904-2.325-2.446-4.485-4.625-6.48A1 1 0 01-6 16z",transform:"matrix(1 0 0 -1 0 49)",fill:"currentColor"})])],-1))]))}}),dt=ie(ct,[["__scopeId","data-v-cc2245a1"]]),pt={flex:"~ col","w-full":""},ut={flex:"~ wrap","w-full":"","flex-none":""},mt=["onClick"],gt={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},ht={key:0},_t={key:1},ft={key:2},vt={key:3},bt=N({__name:"SocialPreviewGroup",props:{tags:{}},setup(v){const s=v,l=["twitter","facebook","linkedin","telegram"],a=le("nuxt-devtools-social-preview-tab",l[0]),c=C(()=>J(s.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return(k,b)=>{const _=De,d=Je,o=Xe,w=dt;return t(),n("div",pt,[e("div",ut,[(t(),n(S,null,B(l,(m,T)=>e("button",{key:T,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(m===g(a)?"":"border-b"),onClick:M=>a.value=m},[e("div",{class:O(m===g(a)?"":"op30"),capitalize:""},u(m),3)],10,mt)),64)),b[0]||(b[0]=e("div",{border:"b base","flex-auto":""},null,-1))]),e("div",gt,[g(a)==="facebook"?(t(),n("div",ht,[p(_,{card:c.value},null,8,["card"])])):g(a)==="twitter"?(t(),n("div",_t,[p(d,{tags:k.tags},null,8,["tags"])])):g(a)==="linkedin"?(t(),n("div",ft,[p(o,{card:c.value},null,8,["card"])])):g(a)==="telegram"?(t(),n("div",vt,[p(w,{card:c.value},null,8,["card"])])):y("",!0)])])}}}),wt={class:"markdown-body"},xt={__name:"open-graph",setup(v,{expose:s}){return s({frontmatter:{}}),(a,c)=>(t(),n("div",wt,c[0]||(c[0]=[fe('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6)])))}},yt={grid:"~ lg:cols-2","h-full":"","w-full":"","of-hidden":""},kt={"flex-auto":"","of-auto":""},$t={"flex-none":"",flex:"~ gap2 items-center"},Tt={flex:"~ col"},St={key:0,"x-divider":""},Ct={key:1,"x-divider":""},Nt={mr2:"",px4:"",py2:""},Vt=N({__name:"open-graph",setup(v){const s=I(0),l=ce(),a=de(async()=>(s.value,(await l.value?.resolveTags()).map(i=>{const f=i.props||{};return i.tag==="htmlAttrs"&&f.lang?{tag:"html",name:"lang",value:f.lang}:f.charset?{tag:"meta",name:"charset",value:f.charset}:{tag:i.tag,name:f.property??f.name??f.rel??i.tag,value:f.content??f.href??i.textContent??JSON.stringify(f)}})),[]),c=I(!0);function k(){s.value+=1}const b=pe(),_=ue(),d=I(""),o=me(),w=H();async function m(){d.value!==_.value.path&&b.value.push(d.value||"/")}const T=C(()=>d.value===_.value.path?[]:b.value.resolve(d.value||"/").matched),M=C(()=>{const r=o.value.find(i=>i.path===_.value?.matched?.[0]?.path);return r?.file||r?.meta?.file});function L(r){return K.find(i=>i.name===r.name)?.docs}return E(_).toBeTruthy().then(r=>{d.value=r.path}),E(b).toBeTruthy().then(r=>{r.afterEach(()=>{ve(()=>{d.value=_.value.path,setTimeout(k,200),setTimeout(k,800)})})}),(r,i)=>{const f=ge,z=G,W=he,V=U,Q=P,X=q,Y=Ie,Z=bt,ee=xt,te=xe,F=be("tooltip");return t(),n(S,null,[e("div",yt,[e("div",kt,[p(W,null,{search:h(()=>[p(f,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=x=>d.value=x),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:O(["px-5 py-2",g(_)?.path===d.value?"":T.value.length?"text-green":"text-orange"]),onKeydown:we(m,["enter"])},null,8,["modelValue","class"])]),actions:h(()=>[e("div",$t,[M.value?D((t(),A(z,{key:0,"text-lg":"",border:!1,icon:"carbon:launch",title:"Open file in editor",onClick:i[1]||(i[1]=x=>g(w)(M.value))},null,512)),[[F,"Open file in editor"]]):y("",!0),D(p(z,{"text-lg":"",border:!1,icon:"carbon:reset",title:"Refresh Data",onClick:k},null,512),[[F,"Refresh Data"]]),D(p(z,{"text-lg":"",border:!1,icon:c.value?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:i[2]||(i[2]=x=>c.value=!c.value)},null,8,["icon"]),[[F,"Toggle Preview"]])])]),_:1}),e("div",Tt,[p(X,{text:"Tags",icon:"carbon:tag-group"},{default:h(()=>[p(Q,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:h(()=>[(t(!0),n(S,null,B(g(a),(x,j)=>(t(),n(S,{key:j},[j?(t(),n("div",St)):y("",!0),j?(t(),n("div",Ct)):y("",!0),e("div",Nt,[p(V,{op50:"",href:L(x),target:"_blank",n:"primary"},{default:h(()=>[$(u(x.name),1)]),_:2},1032,["href"])]),p(V,{href:String(x.value).match(/^https?:\/\//)?x.value:void 0,target:"_blank","w-full":"",p2:"","font-mono":"",n:"primary"},{default:h(()=>[$(u(x.value),1)]),_:2},1032,["href"])],64))),128))]),_:1})]),_:1}),p(Y,{tags:g(a),"matched-route-filepath":M.value},null,8,["tags","matched-route-filepath"])])]),c.value&&g(a)?.length?(t(),A(Z,{key:0,tags:g(a),"flex-none":"","border-base":"","lt-lg":"border-t",lg:"h-full w-140 border-l"},null,8,["tags"])):y("",!0)]),p(te,null,{default:h(()=>[p(ee)]),_:1})],64)}}});export{Vt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as M,A as P,V as z,ab as E,ac as O,a6 as F,e as $,h as q,ad as g,ae as k,af as G,q as H,ag as K,_ as Q,i as U,j as W,E as J}from"./
|
|
1
|
+
import{f as M,A as P,V as z,ab as E,ac as O,a6 as F,e as $,h as q,ad as g,ae as k,af as G,q as H,ag as K,_ as Q,i as U,j as W,E as J}from"./u0zosatb.js";import{u as X,_ as Y}from"./state-modules-jeu9k768.js";import{u as Z}from"./state-components-l6mhjbe8.js";import{p as h,q as A,S as v,a1 as s,a2 as n,P as p,u as o,Q as e,a3 as i,a8 as a,R as u,F as f,a9 as l}from"./vendor/json-editor-vue-exjsfanq.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";import"./nbadge-dshajbvb.js";import"./ncode-block.vue-8qivpy1q.js";import"./client-jvnhv8ra.js";import"./ncheckbox.vue-e5bn4q3z.js";const c="2.4.0-29088294.f8eed63",tt={key:0},et={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p5:"",px5:"","md:px20":""},ot={flex:"~ col","mt-5":"","items-center":"","md:mt-20":""},nt={op40:""},st={flex:"~ gap2 wrap"},lt={key:5,"pointer-events-none":"","min-w-40":"",p4:"","theme-card-lime":"",flex:"~ auto gap-6"},it={grid:"~ cols-[auto_auto] gap-x-5 items-center"},ut={"text-right":""},rt={"text-right":""},at={"text-right":""},dt={"text-right":""},pt={flex:"~ col gap2"},mt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},xt={flex:"col gap-2",mxa:"",hidden:"","w-100":"","text-sm":"",op50:"","md:flex":""},vt={flex:"~ gap-1","items-center":""},ft={flex:"~ gap-1","items-center":""},jt=h({__name:"overview",setup(gt){const b=M(),m=P(),D=Z(),y=z(),j=X(),V=E(),w=O(),B=F();function I(){W.value=!0,B.push("/")}const _=A(()=>b.value?.nuxt.vueApp.version),r=A(()=>b.value?.metrics.loading());function R(){J()}return(S,t)=>{const L=q,x=$,C=Y,N=H,d=Q,T=U;return s(),v(T,{"h-screen":"","w-full":"",flex:""},{default:n(()=>[o(m)?(s(),p("div",et,[t[40]||(t[40]=e("div",{"flex-auto":""},null,-1)),e("div",ot,[i(x,{flex:"~","mt--10":"","items-center":"","justify-center":"",to:"https://devtools.nuxt.com/",target:"_blank"},{default:n(()=>[i(L,{"h-10":""})]),_:1}),e("button",{mb6:"",mt3:"","text-center":"","text-sm":"",flex:"~ gap-1 wrap",onClick:I},[t[0]||(t[0]=e("span",{op40:""}," Nuxt DevTools ",-1)),e("code",nt,"v"+a(o(c)),1),i(C,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),e("div",st,[i(x,{to:"https://nuxt.com",target:"_blank",p4:"","theme-card-green":"",flex:"~ col auto"},{default:n(()=>[t[1]||(t[1]=e("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1)),i(C,{"package-name":"nuxt",options:{dev:!0}})]),_:1}),_.value?(s(),v(x,{key:0,to:"https://vuejs.org",target:"_blank",p4:"","theme-card-green":"",flex:"~ col auto"},{default:n(()=>[t[2]||(t[2]=e("div",{"logos-vue":"","text-3xl":""},null,-1)),e("code",null,"v"+a(_.value),1)]),_:1})):u("",!0),o(m)?(s(),p(f,{key:1},[o(m)&&o(m).pages&&o(b)?(s(),v(x,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:n(()=>[t[3]||(t[3]=e("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(V).length,"page")),1)]),_:1})):u("",!0),o(m)?(s(),v(x,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:n(()=>[t[4]||(t[4]=e("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(D).length,"component")),1)]),_:1})):u("",!0),o(m)&&o(y)?(s(),v(x,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:n(()=>[t[5]||(t[5]=e("div",{"carbon-function":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(y).imports.length,"import")),1)]),_:1})):u("",!0),o(m)?(s(),v(x,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:n(()=>[t[6]||(t[6]=e("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(j).length,"module")),1)]),_:1})):u("",!0),o(m)?(s(),v(x,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:n(()=>[t[7]||(t[7]=e("div",{"carbon-plug":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(m).plugins.length,"plugin")),1)]),_:1})):u("",!0),r.value?(s(),p("div",lt,[t[12]||(t[12]=e("div",{"i-carbon-time-plot":"","flex-none":"","text-3xl":""},null,-1)),e("div",it,[r.value.ssrStart?(s(),p(f,{key:0},[t[8]||(t[8]=e("div",{"text-sm":""}," SSR to full load ",-1)),e("div",ut,a(o(k)(r.value.appLoad-r.value.ssrStart)),1)],64)):u("",!0),t[10]||(t[10]=e("div",{"text-sm":""}," Page load ",-1)),e("div",rt,a(o(k)(r.value.appLoad-r.value.appInit)),1),t[11]||(t[11]=e("div",{"text-sm":""}," Navigation ",-1)),e("div",at,a(o(k)(r.value.pageEnd-r.value.pageStart)),1),r.value.hmrStart?(s(),p(f,{key:1},[t[9]||(t[9]=e("div",{"text-sm":""}," HMR ",-1)),e("div",dt,a(o(k)(r.value.hmrEnd-r.value.hmrStart)),1)],64)):u("",!0)])])):u("",!0)],64)):u("",!0)]),e("div",pt,[o(G)?(s(),v(N,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:n(()=>t[13]||(t[13]=[l(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")])),_:1})):u("",!0),e("button",{title:"Authorize",onClick:R},[("isDevAuthed"in S?S.isDevAuthed:o(K))?u("",!0):(s(),v(N,{key:0,n:"orange5",icon:"i-carbon-locked","justify-center":""},{default:n(()=>t[14]||(t[14]=[l(" Access from an untrusted browser, some features are limited. Click to authorize now. ")])),_:1}))])]),e("div",mt,[t[16]||(t[16]=e("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[e("div",{"i-carbon-star":""}),l(" Star on GitHub ")],-1)),t[17]||(t[17]=e("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[e("div",{"i-carbon-data-enrichment":""}),l(" Ideas & Suggestions ")],-1)),t[18]||(t[18]=e("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[e("div",{"i-carbon-plan":""}),l(" Project Roadmap ")],-1)),t[19]||(t[19]=e("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[e("div",{"i-carbon-debug":""}),l(" Bug Reports ")],-1)),i(x,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:n(()=>t[15]||(t[15]=[e("div",{"i-carbon-settings-adjust":""},null,-1),l(" Settings ")])),_:1})]),t[41]||(t[41]=e("div",{"flex-auto":""},null,-1)),e("div",xt,[e("div",vt,[o(w)?(s(),p(f,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>t[20]||(t[20]=[l(" ⌘ Cmd ")])),_:1}),t[22]||(t[22]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>t[21]||(t[21]=[l(" K ")])),_:1})],64)):(s(),p(f,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>t[23]||(t[23]=[l(" Ctrl ")])),_:1}),t[25]||(t[25]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>t[24]||(t[24]=[l(" K ")])),_:1})],64)),t[26]||(t[26]=e("div",{"flex-auto":""},null,-1)),t[27]||(t[27]=l(" Open Command Palette "))]),e("div",ft,[o(w)?(s(),p(f,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>t[28]||(t[28]=[l(" ⇧ Shift ")])),_:1}),t[31]||(t[31]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>t[29]||(t[29]=[l(" ⌥ Option ")])),_:1}),t[32]||(t[32]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>t[30]||(t[30]=[l(" D ")])),_:1})],64)):(s(),p(f,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>t[33]||(t[33]=[l(" Shift ")])),_:1}),t[36]||(t[36]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>t[34]||(t[34]=[l(" Alt ")])),_:1}),t[37]||(t[37]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>t[35]||(t[35]=[l(" D ")])),_:1})],64)),t[38]||(t[38]=e("div",{"flex-auto":""},null,-1)),t[39]||(t[39]=e("div",null,"Toggle DevTools",-1))])])])):(s(),p("div",tt," Loading... "))]),_:1})}}});export{jt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as S,_ as H,w as Q,x as j,a as X,y as Y,z as G,A as J,B as Z,C as ee,D as te,r as oe,E as ne}from"./
|
|
1
|
+
import{v as S,_ as H,w as Q,x as j,a as X,y as Y,z as G,A as J,B as Z,C as ee,D as te,r as oe,E as ne}from"./u0zosatb.js";import{_ as F}from"./nbadge-dshajbvb.js";import{p as L,k as A,q as x,Y as ae,P as a,S as k,a1 as t,Q as e,a8 as C,a2 as $,F as g,ae as I,X as M,aj as se,R as N,a3 as _,a9 as E,u as c,E as re,W as le}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as z}from"./filepath-item.vue-frs7t30a.js";import{_ as ue}from"./nsection-block-mjz70f32.js";import{_ as ie}from"./launch-page.vue-d78v84wo.js";import{_ as pe}from"./help-fab.vue-eeex0j61.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";import"./nicon-title.vue-m2ftlsrz.js";import"./nmarkdown.vue-hrdikzmp.js";import"./client-jvnhv8ra.js";const de={block:"","cursor-pointer":""},ce={p2:""},me=["onSubmit"],ve={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},he={key:1},_e=L({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const v=V,R=i,m=A([]),f=x(()=>{const r=w(v.route.path);return m.value=Array.from({length:r.length},()=>""),r});function w(r){return r.split(/(:\w+[?*]?(?:\(\))?)/).filter(Boolean).map(d=>d[0]===":"?d.replace(/\(\)$/,"?"):d)}const y=x(()=>f.value.map((r,d)=>r[0]===":"?m.value[d]:r).join("").replace(/\/+/g,"/")),o=x(()=>v.route.path.includes(":"));function s(){R("navigate",y.value)}return(r,d)=>{const h=S,n=H,l=ae("VDropdown");return o.value?(t(),k(l,{key:1},{popper:$(({hide:b})=>[e("div",ce,[e("form",{flex:"~ col",onSubmit:se(()=>{s(),b()},["prevent"])},[o.value?(t(),a(g,{key:0},[d[0]||(d[0]=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),e("div",ve,[(t(!0),a(g,null,I(f.value,(u,p)=>(t(),a(g,{key:p},[u[0]===":"?(t(),k(h,{key:0,modelValue:m.value[p],"onUpdate:modelValue":B=>m.value[p]=B,"w-20":"","n-sm":"",placeholder:u.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(t(),a("span",he,C(u),1))],64))),128))])],64)):N("",!0),_(n,{type:"submit",block:"",n:"primary"},{default:$(()=>d[1]||(d[1]=[E(" Navigate ")])),_:1})],40,me)])]),default:$(()=>[e("code",de,[(t(!0),a(g,null,I(f.value,(b,u)=>(t(),a("span",{key:u,class:M(b[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},C(b[0]===":"?b.slice(1):b),3))),128))])]),_:1})):(t(),a("button",{key:0,onClick:s},[e("code",null,C(r.route.path),1)]))}}}),fe={"max-w-full":"","of-auto":""},ge={"w-full":""},ye={"w-20":"","pr-1":""},be={flex:"","items-center":"","justify-end":""},xe={"text-sm":""},ke={flex:"inline gap3","items-center":""},we={flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},$e=["onClick"],Ce=["onClick"],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Pe={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Ve={key:0},Ee=["onClick"],Ie=L({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,v=Q(),R=j(),m=X(),f=x(()=>[...i.pages].sort((o,s)=>o.path.localeCompare(s.path)));function w(o){const s=i.layouts.find(r=>r.name===o);s&&v(s.file)}function y(o){if(typeof o=="string")return R.value?.middleware.find(s=>s.name===o)?.path}return(o,s)=>{const r=F,d=_e,h=z;return t(),a("div",fe,[e("table",ge,[s[4]||(s[4]=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1)),e("tbody",null,[(t(!0),a(g,null,I(f.value,n=>(t(),a("tr",{key:n.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ye,[e("div",be,[o.matched.find(l=>l.name===n.name)?(t(),k(r,{key:0,n:"green",title:"active",textContent:"active"})):o.matchedPending.find(l=>l.name===n.name)?(t(),k(r,{key:1,n:"teal",title:"next",textContent:"next"})):N("",!0)])]),e("td",xe,[e("div",ke,[_(d,{route:n,class:M(o.matched.find(l=>l.name===n.name)?"text-primary":o.matchedPending.find(l=>l.name===n.name)?"text-teal":""),"ws-nowrap":"",onNavigate:s[0]||(s[0]=l=>o.$emit("navigate",l))},null,8,["route","class"]),e("div",we,[n.file||n.meta?.file?(t(),a("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>c(v)(n.file||n.meta?.file)},s[2]||(s[2]=[e("div",{"i-carbon-script-reference":""},null,-1)]),8,$e)):N("",!0),n.file||n.meta?.file?(t(),a("button",{key:1,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:l=>c(m)(n.file||n.meta?.file)},s[3]||(s[3]=[e("div",{"i-carbon-copy":""},null,-1)]),8,Ce)):N("",!0)])])]),e("td",Ne,C(n.name),1),e("td",Re,[_(h,{filepath:y(n.meta.middleware),override:`${n.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Pe,[n.meta.layout===!1?(t(),a("span",Ve,"-")):n.meta.layout?(t(),a("button",{key:1,onClick:l=>w(n.meta.layout)},C(n.meta.layout),9,Ee)):(t(),a("button",{key:2,"text-sm":"",op15:"",onClick:s[1]||(s[1]=l=>w("default"))}," (default) "))])]))),128))])])])}}}),Be={class:"markdown-body"},Te={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),(R,m)=>(t(),a("div",Be,m[0]||(m[0]=[e("h1",null,"Pages",-1),e("p",null,[E("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),E(" directory.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),e("hr",null,null,-1),e("h1",null,"Middlewares",-1),e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Ae={key:0,"h-full":"","of-auto":""},Le={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Me={"font-mono":""},De={key:1,op50:""},Se={key:0,"text-orange":"",op75:""},je={key:1,op50:""},Fe={"min-h-14":""},ze={key:1,class:"py-4 text-center"},Ue={"w-full":""},We={mr1:""},ot=L({__name:"pages",setup(V){const i=Y(),v=G(),R=J(),m=j(),f=Z(),w=ee(),y=x(()=>m.value?.middleware||[]),o=A(""),s=A(0),r=x(()=>(y.value,o.value,f.value,s.value,i.value?.currentRoute?.value?.path));re(()=>{v.value&&(o.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(u=>{o.value=u.fullPath}),i.value?.afterEach(u=>{o.value=u.fullPath})});async function d(){o.value!==i.value?.currentRoute?.value?.path&&i.value.push(o.value||"/")}const h=x(()=>i.value.resolve(o.value||"/").matched);function n(u){i.value.push(u),o.value=u}const l=te(),b=x(()=>`./${l===4?"app/":""}pages/index.vue`);return(u,p)=>{const B=S,D=Ie,T=ue,U=F,W=z,K=ie,O=Te,q=pe;return t(),a(g,null,[c(R)?.pages&&c(i)?(t(),a("div",Ae,[e("div",Le,[e("div",null,[r.value!==o.value?(t(),a(g,{key:0},[p[1]||(p[1]=e("span",{op50:""},"Navigate from ",-1)),e("span",Me,C(r.value),1),p[2]||(p[2]=e("span",{op50:""}," to ",-1))],64)):(t(),a("span",De,"Current route"))]),_(B,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=P=>o.value=P),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:M(r.value===o.value?"":h.value.length?"text-green":"text-orange"),onKeydown:le(d,["enter"])},null,8,["modelValue","class"]),e("div",null,[r.value!==o.value?(t(),a(g,{key:0},[p[3]||(p[3]=e("span",null,[E("Press "),e("b",{"font-bold":""},"Enter"),E(" to navigate")],-1)),h.value.length?N("",!0):(t(),a("span",Se," (no match)"))],64)):(t(),a("span",je,"Edit path above to navigate"))])]),_(T,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:$(()=>[e("div",Fe,[h.value.length?(t(),k(D,{key:0,pages:h.value,layouts:c(f)||[],matched:c(v).matched,"matched-pending":h.value,onNavigate:n},null,8,["pages","layouts","matched","matched-pending"])):(t(),a("div",ze,p[4]||(p[4]=[e("span",{op50:""},"No routes matched",-1)])))])]),_:1}),_(T,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${c(w).length} routes registered in your application`,padding:"pr5"},{default:$(()=>[_(D,{pages:c(w),layouts:c(f)||[],matched:c(v).matched,"matched-pending":h.value,onNavigate:n},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),y.value.length?(t(),k(T,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${y.value.length} middleware registered in your application`,padding:"px13"},{default:$(()=>[e("table",Ue,[p[5]||(p[5]=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1)),(t(!0),a(g,null,I(y.value,P=>(t(),a("tr",{key:P.path,"h-7":""},[e("td",null,[e("span",We,C(P.name),1),P.global?(t(),k(U,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):N("",!0)]),e("td",null,[_(W,{filepath:P.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):N("",!0)])):(t(),k(K,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:`Create ${b.value} to enable routing`,actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in u?u.rpc:c(oe)).runWizard(await("ensureDevAuthToken"in u?u.ensureDevAuthToken:c(ne))(),"enablePages")}}]},null,8,["description","actions"])),_(q,null,{default:$(()=>[_(O)]),_:1})],64)}}});export{ot as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as x}from"./state-editor.vue-
|
|
1
|
+
import{_ as x}from"./state-editor.vue-k6x3mo95.js";import{p as b,P as i,a1 as e,F as $,ae as N,S as d,a2 as a,U as B,a4 as w,Q as h,q as k,ag as F,R as _,a3 as o,u as O,aa as P,a9 as R}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as V}from"./nsection-block-mjz70f32.js";import{f as E,_ as j}from"./u0zosatb.js";import{_ as A}from"./help-fab.vue-eeex0j61.js";import"./data-schema-button.vue-l7ui1gzd.js";import"./nicon-title.vue-m2ftlsrz.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";const G={key:0,flex:"~ col gap-1"},H={key:1,mt2:"",px4:"",italic:"",op35:""},K=b({__name:"StateGroup",props:{state:{},revision:{},prefix:{default:""}},setup(f){return(t,n)=>{const c=x;return e(),i("div",null,[t.state&&Object.keys(t.state).length>0?(e(),i("div",G,[(e(!0),i($,null,N(t.state,(s,r)=>(e(),d(c,{key:r,revision:t.revision,state:s,name:r.startsWith(t.prefix)?r.slice(t.prefix.length):r},{actions:a(l=>[B(t.$slots,"actions",w({ref_for:!0},l))]),_:2},1032,["revision","state","name"]))),128))])):(e(),i("div",H," No data "))])}}}),T={class:"markdown-body"},q={__name:"payload",setup(f,{expose:t}){return t({frontmatter:{}}),(c,s)=>(e(),i("div",T,s[0]||(s[0]=[h("h1",null,"State & Async Data",-1),h("p",null,"// TODO",-1)])))}},L={key:0},tt=b({__name:"payload",setup(f){const t=E(),n=k(()=>t.value?.nuxt.payload),c=k(()=>t.value?.revision.value);async function s(r){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",r)}return(r,l)=>{const m=K,p=V,v=j,S=x,g=q,D=A,C=F("tooltip");return e(),i($,null,[O(t)?(e(),i("div",L,[o(p,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[o(m,{state:n.value.state,revision:c.value,prefix:"$s"},null,8,["state","revision"])]),_:1}),o(p,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[o(v,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:l[0]||(l[0]=y=>s())},{default:a(()=>l[1]||(l[1]=[R(" Re-fetch all data ")])),_:1})]),default:a(()=>[o(m,{state:n.value.data,revision:c.value},{actions:a(({isOpen:y,name:u})=>[y&&u?P((e(),d(v,{key:0,title:`Re-fetch '${u}'`,icon:"carbon-recycle",border:!1,onClick:Q=>s([u])},null,8,["title","onClick"])),[[C,`Re-fetch '${u}'`,void 0,{bottom:!0}]]):_("",!0)]),_:1},8,["state","revision"])]),_:1}),n.value.functions&&Object.keys(n.value.functions).length?(e(),d(p,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions"},{default:a(()=>[o(S,{"ml--6":"",state:n.value.functions,revision:c.value},null,8,["state","revision"])]),_:1})):_("",!0)])):_("",!0),o(D,null,{default:a(()=>[o(g)]),_:1})],64)}}});export{tt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as r}from"./
|
|
1
|
+
import{F as r}from"./u0zosatb.js";import{u as c,v as p}from"./vue-devtools-fkgcgs0u.js";import{p as i,P as m,a1 as e,S as o,u as n,a2 as _,a9 as u}from"./vendor/json-editor-vue-exjsfanq.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";import"./vue-virtual-scroller.esm-iodr444e.js";const l={class:"h-full w-full"},h=i({__name:"pinia",setup(f){const{connected:a}=c();return(d,t)=>{const s=r;return e(),m("div",l,[n(a)?(e(),o(n(p),{key:0})):(e(),o(s,{key:1},{default:_(()=>t[0]||(t[0]=[u(" Connecting.... ")])),_:1}))])}}});export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as T}from"./nbadge-
|
|
1
|
+
import{_ as T}from"./nbadge-dshajbvb.js";import{_ as w}from"./filepath-item.vue-frs7t30a.js";import{_ as k}from"./duration-display.vue-hy8s2ai6.js";import{A as D,a3 as B,I,b as V,x as F,f as H}from"./u0zosatb.js";import{p as v,q as h,P as _,a1 as s,Q as e,a3 as c,R as d,a8 as C,a2 as f,S as p,Y as E,U as P,a9 as x,F as b,ae as W,X as A}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as L}from"./nsection-block-mjz70f32.js";import{_ as M}from"./help-fab.vue-eeex0j61.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";import"./nicon-title.vue-m2ftlsrz.js";const R={flex:"~ gap2","items-center":""},Y={w8:"","text-right":"","text-sm":"",op25:""},j={key:0,"flex-auto":"","text-right":""},q=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(m){const n=m,r=D(),a=h(()=>B(n.plugin.src,r.value?.rootDir||"").path);return(t,l)=>{const o=T,u=w,i=k;return s(),_("div",R,[e("div",Y,C(t.index),1),c(u,{filepath:n.plugin.src,subpath:!0},{default:f(()=>[e("div",null,[a.value.startsWith("#")?(s(),p(o,{key:0,n:"rose",textContent:"virtual"})):a.value.startsWith(".")?d("",!0):(s(),p(o,{key:1,n:"gray",textContent:"module"})),t.plugin.mode==="server"?(s(),p(o,{key:2,n:"teal",textContent:"server"})):d("",!0),t.plugin.mode==="client"?(s(),p(o,{key:3,n:"orange",textContent:"client"})):d("",!0)])]),_:1},8,["filepath"]),t.plugin.metric?.duration!=null?(s(),_("div",j,[c(i,{duration:t.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),z={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},Q={flex:"~ items-center gap-1","font-bold":""},U=v({__name:"HelpTip",props:{title:{},icon:{}},setup(m){return(n,r)=>{const a=I,t=E("ContentSlot");return s(),_("div",z,[e("div",Q,[n.icon?(s(),p(a,{key:0,icon:n.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),e("div",null,C(n.title),1)]),e("div",null,[P(n.$slots,"default",{},()=>[c(t,{use:n.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),X={};function G(m,n){const r=U;return s(),p(r,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:f(()=>[P(m.$slots,"default")]),_:3})}const J=V(X,[["render",G]]),K={class:"markdown-body"},O={__name:"plugins",setup(m,{expose:n}){return n({frontmatter:{}}),(a,t)=>{const l=J;return s(),_("div",K,[t[1]||(t[1]=e("h1",null,"Plugins",-1)),t[2]||(t[2]=e("p",null,[x("Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the "),e("code",null,"plugins/"),x(" directory and they will be automatically imported and registered.")],-1)),c(l,null,{default:f(()=>t[0]||(t[0]=[x(" Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. ")])),_:1}),t[3]||(t[3]=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},Z={pt4:""},tt={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},pt=v({__name:"plugins",setup(m){const n=F(),r=H(),a=h(()=>{const l=n.value?.plugins||[],o=r.value?.metrics.clientPlugins()||[];return l.map(u=>{const i=typeof u=="string"?{src:u}:u;return{...i,metric:o.find(g=>g.src===i.src||g.src.startsWith(i.src))}})}),t=h(()=>{const l=r.value?.metrics.clientPlugins()||[],o=Math.min(...l.map(i=>i.start));return Math.max(...l.map(i=>i.end))-o});return(l,o)=>{const u=q,i=k,g=L,N=O,S=M;return s(),_(b,null,[c(g,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${a.value.length}`},{default:f(()=>[e("div",Z,[(s(!0),_(b,null,W(a.value,(y,$)=>(s(),p(u,{key:y.src,plugin:y,index:$+1,"ml--4":"","border-base":"",py2:"",class:A($?"border-t":"")},null,8,["plugin","index","class"]))),128)),e("div",tt,[o[0]||(o[0]=e("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1)),o[1]||(o[1]=e("span",{op50:""},"Total execution time:",-1)),c(i,{duration:t.value,factor:10},null,8,["duration"])])])]),_:1},8,["description"]),c(S,null,{default:f(()=>[c(N)]),_:1})],64)}}});export{pt as default};
|