@nuxt/devtools-nightly 2.0.0-beta.3-28972031.403fef8 → 2.0.0-beta.4-28972036.a28ca5b
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 +8 -8
- package/dist/client/404.html +8 -8
- package/dist/client/_nuxt/__blank-ohgur088.js +1 -0
- package/dist/client/_nuxt/{analyze-build-pway1hch.js → analyze-build-k4mk9yun.js} +1 -1
- package/dist/client/_nuxt/{assets-g4yxc97c.js → assets-l2ksml1j.js} +1 -1
- package/dist/client/_nuxt/{fiw3s689.js → b02f8h4y.js} +4 -4
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/0b18b2cb-e292-49a5-84bc-8034f148e947.json +1 -0
- package/dist/client/_nuxt/{code-diff.vue-lxaki98w.js → code-diff.vue-mke5i5ht.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-kbzole92.js → code-snippets.vue-kz39ylf7.js} +1 -1
- package/dist/client/_nuxt/{components-i71jc8k5.js → components-5jpwg4jr.js} +1 -1
- package/dist/client/_nuxt/{composable-item.vue-hy35rlkh.js → composable-item.vue-krvb1hx6.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-yf3zqlr9.js → custom-_name_-e39sqimm.js} +1 -1
- package/dist/client/_nuxt/{default-o622i9sm.js → default-okvqvker.js} +1 -1
- package/dist/client/_nuxt/{error-404-hxtl4wre.js → error-404-donj9nx3.js} +1 -1
- package/dist/client/_nuxt/{error-500-c04xup7p.js → error-500-guu8hu4a.js} +1 -1
- package/dist/client/_nuxt/{error-ngasr43o.js → error-h4c4ee89.js} +1 -1
- package/dist/client/_nuxt/{filepath-item.vue-gmzn8s13.js → filepath-item.vue-f3958elb.js} +1 -1
- package/dist/client/_nuxt/{full-kysu2iy8.js → full-p3k4lso2.js} +1 -1
- package/dist/client/_nuxt/{help-fab.vue-lrz4xcqy.js → help-fab.vue-kjnf5h3g.js} +1 -1
- package/dist/client/_nuxt/{hooks-m9yf1w5h.js → hooks-m100lq90.js} +1 -1
- package/dist/client/_nuxt/{imports-lwdua5az.js → imports-lgznszn5.js} +1 -1
- package/dist/client/_nuxt/{index-gwg5ctef.js → index-jwebz8s6.js} +1 -1
- package/dist/client/_nuxt/{index-buoz1yoz.js → index-og3vi7fw.js} +1 -1
- package/dist/client/_nuxt/{launch-page.vue-jlqqswv3.js → launch-page.vue-fzp5jez3.js} +1 -1
- package/dist/client/_nuxt/{modules-ce9idhjf.js → modules-gzb89d9p.js} +1 -1
- package/dist/client/_nuxt/{nbadge-csqvsp3v.js → nbadge-le6qglrd.js} +1 -1
- package/dist/client/_nuxt/{ncheckbox.vue-isxawe7u.js → ncheckbox.vue-mnhptb1i.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-xi01arq4.js → ndrawer.vue-xvdipzno.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-pae17h5n.js → ndropdown.vue-nlyuq8dr.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-cl98zhv4.js → nlink.vue-l5e2nrsl.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-nhdeoj0o.js → nnavbar.vue-med0h49f.js} +1 -1
- package/dist/client/_nuxt/{none-gl3dzs4v.js → none-d4srol4h.js} +1 -1
- package/dist/client/_nuxt/{nsection-block-lso0oeix.js → nsection-block-mwhk66gw.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs.vue-bh9ih6po.js → nselect-tabs.vue-lw6b1oce.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-db1gf0tg.js → nselect.vue-cpd2bgtt.js} +1 -1
- package/dist/client/_nuxt/{open-graph-fslvz0yj.js → open-graph-lnevntcs.js} +1 -1
- package/dist/client/_nuxt/{overview-iu75tlq1.js → overview-lggw2g8n.js} +1 -1
- package/dist/client/_nuxt/{pages-fxtp25q8.js → pages-cmfmwr2p.js} +1 -1
- package/dist/client/_nuxt/{payload-l5bhdajq.js → payload-cxg8buvj.js} +1 -1
- package/dist/client/_nuxt/{pinia-f3g6f7jp.js → pinia-nc122g2e.js} +1 -1
- package/dist/client/_nuxt/{plugins-is5viwrw.js → plugins-emvg7eig.js} +1 -1
- package/dist/client/_nuxt/{render-tree-iffxpbgt.js → render-tree-k13q5r2i.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-f3e8636o.js → runtime-configs-joak20f6.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-k73f9a7s.js → server-discovery-gfxffs3t.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-k3l42kyt.js → server-route-inputs.vue-cci8vi7h.js} +1 -1
- package/dist/client/_nuxt/{server-routes-nncwo6rv.js → server-routes-mxv29exp.js} +1 -1
- package/dist/client/_nuxt/{server-tasks-cmo5wrbb.js → server-tasks-i6n4zfmj.js} +1 -1
- package/dist/client/_nuxt/{settings-dzqr7uyw.js → settings-hb6178w8.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list.vue-dajk3t0s.js → stacktrace-list.vue-mbkojt56.js} +1 -1
- package/dist/client/_nuxt/{state-components-c6tnjjnu.js → state-components-fb7dlw2d.js} +1 -1
- package/dist/client/_nuxt/{state-editor.vue-lavdoegi.js → state-editor.vue-n8pkn9an.js} +1 -1
- package/dist/client/_nuxt/{state-modules-86r59dx6.js → state-modules-h8uf7h8d.js} +1 -1
- package/dist/client/_nuxt/{storage-nfjxyaw5.js → storage-dbjnpbvw.js} +1 -1
- package/dist/client/_nuxt/{terminals-cl55vs6z.js → terminals-m00yl3x9.js} +1 -1
- package/dist/client/_nuxt/{timeline-ct6iiep4.js → timeline-m1v5ujmi.js} +1 -1
- package/dist/client/_nuxt/{virtual-files-pcqpkbbz.js → virtual-files-mvbbim6p.js} +1 -1
- package/dist/client/index.html +8 -8
- package/dist/module.json +1 -1
- package/package.json +4 -4
- package/dist/client/_nuxt/__blank-nxv8wi3k.js +0 -1
- package/dist/client/_nuxt/builds/meta/ab6d0648-130f-4f64-862e-45cf8c98ee16.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as y,c as g,d as N,t as b,i as k,e as w,f as V}from"./
|
|
1
|
+
import{b as y,c as g,d as N,t as b,i as k,e as w,f as V}from"./b02f8h4y.js";import{_ as h}from"./nlink.vue-l5e2nrsl.js";import{_ as C}from"./ncheckbox.vue-mnhptb1i.js";import{l as B,c as L,N as u,a0 as o,R as m,V as t,a1 as n,a7 as l,u as T,X as D}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const P={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},$={"max-w-190":"","text-lg":""},j={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},X=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){b.value=s.value,k.value=!1}function f(){a.value=!1,p.value.devtools.close()}return(S,e)=>{const _=w,r=h,i=V,x=C,c=N;return m(),u(c,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",P,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",$,[n(_,{"mr-0.5":"","inline-block":"","h-5":"","translate-y--1.1":"","align-mid":""}),e[1]||(e[1]=l(" is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!")),e[2]||(e[2]=t("br",null,null,-1))]),t("p",j,[e[4]||(e[4]=l(" Learn more at ")),n(r,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:o(()=>e[3]||(e[3]=[l(" devtools.nuxt.com ")])),_:1})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1}),T(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:f},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1})):D("",!0)]),t("div",E,[t("div",F,[n(x,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=v=>s.value=v),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{X as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as w,s as y,bj as C,E as B,f as V,U as $}from"./
|
|
1
|
+
import{d as w,s as y,bj as C,E as B,f as V,U as $}from"./b02f8h4y.js";import{_ as P}from"./nmarkdown.vue-ffthu1ys.js";import{l as v,N as a,a0 as o,R as t,a1 as c,V as i,a6 as m,X as l,U as E,ac as F,a2 as I,a7 as L,F as T}from"./vendor/json-editor-vue-hrh84odz.js";const U={"text-xl":""},j={flex:"~ gap2 wrap"},S=v({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(_,{emit:p}){const d=_,u=p;function f(e,s){y("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const g=C,k=P,N=B,b=V,h=$,x=w;return t(),a(x,null,{default:o(()=>[c(h,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[c(g,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",U,m(e.title),1),e.description?(t(),a(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):l("",!0),i("div",j,[(t(!0),E(T,null,F(e.actions,(n,r)=>(t(),a(b,I({key:r,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0,ref_for:!0},n.attrs,{onClick:D=>f(n,r)}),{default:o(()=>[n.pending?(t(),a(N,{key:0,icon:"carbon-circle-dash","animate-spin":""})):l("",!0),L(" "+m(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{S as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as Q}from"./filepath-item.vue-gmzn8s13.js";import{K as Y,a as O,E as G,U as H,o as J,r as V,j as q,s as ee,a8 as K,a9 as R,f as z,N as te,I as oe,x as ne,y as se,p as le}from"./fiw3s689.js";import{_ as ae,u as W,a as ie}from"./state-modules-86r59dx6.js";import{_ as re}from"./duration-display.vue-onla0yr8.js";import{l as D,m as C,R as o,N as $,a0 as i,V as e,W as T,a7 as x,a6 as k,U as m,u as j,Z as U,X as g,a1 as s,F as B,ac as P,ai as ue,c as A,J as E}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as de}from"./nsection-block-lso0oeix.js";import{_ as pe}from"./nicon-title.vue-evdbm4ef.js";import{_ as X}from"./ndropdown.vue-pae17h5n.js";import{_ as me}from"./nnavbar.vue-nhdeoj0o.js";import{_ as ce}from"./nbadge-csqvsp3v.js";import{s as _e}from"./vue-virtual-scroller.esm-btin7frf.js";import{_ as fe}from"./ncode-block.vue-bazndqbc.js";import{_ as ve}from"./nlink.vue-cl98zhv4.js";import{_ as ge}from"./code-diff.vue-lxaki98w.js";import{_ as xe}from"./help-fab.vue-lrz4xcqy.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./ncheckbox.vue-isxawe7u.js";import"./client-bvu6p7m4.js";const be={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},ke={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},he={key:2},ye={key:1,flex:"~ gap-2",title:"Documentation"},$e={key:2,flex:"~ gap-2"},we={key:0,flex:"~ gap-4 items-center"},Ce={flex:"~ gap-2 items-center",op50:""},Ie={flex:"~ gap-2 items-center",op50:""},Me={key:1},Ne={flex:"~ col","items-end":""},Be={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},je=["src","alt"],De={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Pe=["src"],Te={flex:"","justify-end":""},Ae="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Ue="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",ze="https://github.com/",Le="https://www.npmjs.com/package/",S=D({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const _=N,a=C(()=>({..._.mod?.meta,..._.mod,..._.info})),b=Y();return(r,t)=>{const n=O,u=G,w=re,y=H;return o(),$(y,{p4:"",flex:"~ gap2"},{default:i(()=>[e("div",be,[T(r.$slots,"main",{},()=>[e("div",ke,[r.mod.isPackageModule?(o(),$(n,{key:0,to:Le+(a.value.npm||a.value.name),target:"_blank",hover:"underline text-primary"},{default:i(()=>[x(k(a.value.name),1)]),_:1},8,["to"])):r.mod.entryPath?(o(),m("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=d=>j(b)(r.mod.entryPath))},k(a.value.name),1)):(o(),m("span",he,k(a.value.name),1)),T(r.$slots,"badge")]),a.value.description?(o(),m("div",{key:0,class:U(r.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},k(a.value.description),3)):g("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),a.value.website?(o(),m("div",ye,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(n,{to:a.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:i(()=>[x(k(a.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):g("",!0),a.value.github?(o(),m("div",$e,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(n,{to:a.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:i(()=>[x(k(a.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):g("",!0)]),T(r.$slots,"items"),a.value.stats?(o(),m("div",we,[e("div",Ce,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,k(a.value.stats.stars),1)]),e("div",Ie,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,k(a.value.stats.downloads),1)])])):g("",!0),r.mod.timings?.setup?(o(),m("div",Me,[s(w,{title:"Module Setup Time",flex:"~ items-center",duration:r.mod.timings.setup*1e3,factor:.5},{before:i(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):g("",!0)]),e("div",Ne,[a.value.icon||r.mod.isPackageModule?(o(),m("div",Be,[a.value.icon?(o(),m("img",{key:0,src:Ae+a.value.icon,alt:r.mod.name,ma:""},null,8,je)):g("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):g("",!0),a.value.maintainers?.length&&r.maintainers?(o(),m("div",De,[(o(!0),m(B,null,P(a.value.maintainers,d=>(o(),$(n,{key:d.name,target:"_blank",to:ze+d.github,title:d.name},{default:i(()=>[e("img",{src:Ue+d.github,"h-6":"","w-6":"","rounded-full":""},null,8,Pe)]),_:2},1032,["to","title"]))),128))])):g("",!0),r.$slots.actions?(o(),m(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",Te,[T(r.$slots,"actions")])],64)):g("",!0)])]),_:3})}}}),Oe={key:0,flex:"~ gap-2",title:"Open on filesystem"},Se={key:1,"mx--2":""},Fe=["onClick"],Ve={key:2,"mx--2":""},qe=["onClick"],Ee={op50:""},Ye={"text-green":""},Ge={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},He={"text-sm":"",op50:""},Je=D({__name:"ModuleItem",props:{mod:{}},setup(N){const _=N,a=C(()=>_.mod.info),b=C(()=>({..._.mod?.meta,..._.mod,...a.value})),r=J();return(t,n)=>{const u=Q,w=O,y=ae,d=S;return o(),$(d,{mod:t.mod,info:a.value},{items:i(()=>[t.mod.entryPath?(o(),m("div",Oe,[n[0]||(n[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"])])):g("",!0),b.value.npm?(o(),$(y,{key:b.value.npm,"package-name":b.value.npm,options:{dev:!0}},{default:i(({info:c,update:p,state:l,id:f,restart:h})=>[l==="running"?(o(),$(w,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:f?"/modules/terminals":void 0,onClick:I=>f?r.value=f:void 0},{default:i(()=>n[1]||(n[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"])):l==="updated"?(o(),m("div",Se,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:h},n[2]||(n[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,Fe)])):c?.needsUpdate?(o(),m("div",Ve,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:I=>p()},[n[3]||(n[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",Ee,"v"+k(c.current),1),n[4]||(n[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Ye,"v"+k(c.latest),1)],8,qe)])):c?.latest?(o(),m("div",Ge,[n[5]||(n[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",He,"v"+k(c.current),1)])):g("",!0)]),_:1},8,["package-name"])):g("",!0)]),_:1},8,["mod","info"])}}}),Ke=D({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:_}){const a=N,b=_,r=W(),t=C(()=>r.value.find(d=>d.name===a.item.npm)),n=C(()=>t.value&&t.value.isPackageModule),u=C(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function w(d,c){const p=c==="install"?V.installNuxtModule:V.uninstallNuxtModule,l=await p(await q(),d.npm,!0);ee(`modules:${c}`,{moduleName:d.npm}),l.commands&&await K.start(d,l,c)&&(R.value.push({name:d.npm,info:d,processId:l.processId}),b("start"),await p(await q(),d.npm,!1))}const y={};return(d,c)=>{const p=ce,l=z,f=X,h=S;return o(),$(h,{mod:y,role:n.value?"":"button",info:d.item,mb2:"","h-full":"",class:U(n.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:c[1]||(c[1]=I=>n.value?null:w(d.item,"install"))},ue({_:2},[n.value?{name:"badge",fn:i(()=>[s(p,{n:"green",textContent:"Installed"}),u.value?(o(),$(f,{key:0,n:"sm green"},{trigger:i(({click:I})=>[s(l,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:v=>I()},null,8,["onClick"])]),default:i(()=>[s(l,{icon:"carbon-trash-can",n:"red",onClick:c[0]||(c[0]=I=>w(d.item,"uninstall"))},{default:i(()=>c[2]||(c[2]=[x(" Uninstall ")])),_:1})]),_:1})):g("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),Re={"h-full":"",flex:"~ col gap-4"},We={flex:"~ items-center"},Xe={flex:"~ col","w-30":"","of-auto":""},Ze={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},Qe={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},et=D({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:_}){const a=_,b=ie(),r=["downloads","stars","updated","created"],t=A(!1),n=A(r[0]),u={downloads:(p,l)=>p.stats.downloads-l.stats.downloads,stars:(p,l)=>p.stats.stars-l.stats.stars,created:(p,l)=>p.stats.createdAt-l.stats.createdAt,updated:(p,l)=>p.stats.publishedAt-l.stats.publishedAt},w=C(()=>b.value?.toSorted((p,l)=>u[n.value](p,l)*(t.value?1:-1))),y=A(""),d=C(()=>new te(b.value||[],{keys:["name","description","npm","category"],sortFn:(p,l)=>{const f=b.value?.[p.idx],h=b.value?.[l.idx];return f&&h?u[n.value](f,h)*(t.value?1:-1):p.score-l.score},threshold:.2})),c=C(()=>y.value?d.value.search(y.value).map(p=>p.item):w.value);return(p,l)=>{const f=pe,h=z,I=G,v=X,F=me,Z=Ke;return o(),m("div",Re,[s(f,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),s(F,{search:y.value,"onUpdate:search":l[1]||(l[1]=M=>y.value=M),"no-padding":"","px-6":"","pb-5":"","pt-2":""},{actions:i(()=>[s(v,{direction:"end",n:"sm primary"},{trigger:i(({click:M})=>[e("div",We,[s(h,{icon:t.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:l[0]||(l[0]=L=>t.value=!t.value)},null,8,["icon"]),s(h,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:L=>M()},{default:i(()=>[x(k(n.value)+" ",1),s(I,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:i(()=>[e("div",Xe,[(o(),m(B,null,P(r,M=>s(h,{key:M,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:L=>n.value=M},{default:i(()=>[e("span",Ze,[x(k(M)+" ",1),n.value===M?(o(),$(I,{key:0,icon:"carbon:checkmark"})):g("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),_:1},8,["search"]),e("div",Qe,[s(j(_e),{class:"scroller",items:c.value,"item-size":200,"key-field":"name"},{default:i(({item:M})=>[s(Z,{item:M,onStart:l[2]||(l[2]=L=>a("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),tt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ot={capitalize:""},nt={op50:""},st={flex:"~ gap-3",mt2:"","justify-end":""},lt=D({__name:"ModuleActionDialog",setup(N){const _=oe(),a=Y(),b={};return(r,t)=>{const n=S,u=fe,w=ve,y=ge,d=ne,c=z,p=se;return o(),$(j(K),null,{default:i(({resolve:l,args:f})=>[s(p,{"model-value":!0,onClose:h=>l(!1)},{default:i(()=>[s(n,{mod:b,info:f[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",tt,[e("h2",{"text-xl":"",class:U(f[2]==="install"?"text-primary":"text-red")},[e("span",ot,k(f[2]),1),t[1]||(t[1]=x()),e("code",null,k(f[0].name),1),t[2]||(t[2]=x("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:f[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",nt,[t[3]||(t[3]=x(" Then your ")),s(w,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=h=>j(a)(j(_)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=x(" will be updated as: "))]),s(y,{from:f[1].configOriginal,to:f[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"),x(". ")],-1)),e("div",st,[s(d,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:i(()=>t[5]||(t[5]=[x(" Please make sure to backup your project first. ")])),_:1}),s(c,{onClick:h=>l(!1)},{default:i(()=>t[6]||(t[6]=[x(" Cancel ")])),_:2},1032,["onClick"]),s(c,{n:"solid",capitalize:"",class:U(f[2]==="install"?"n-primary":"n-red"),onClick:h=>l(!0)},{default:i(()=>[x(k(f[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),at={class:"markdown-body"},it={__name:"modules",setup(N,{expose:_}){return _({frontmatter:{}}),(b,r)=>(o(),m("div",at,r[0]||(r[0]=[e("h1",null,"Modules",-1),e("p",null,[x("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"),x(".")],-1),e("p",null,[x("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),x(" 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)])))}},rt={"h-full":"","w-full":"","of-auto":""},ut={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},dt=["src","alt"],pt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},mt={op75:""},ct={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},_t="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",At=D({__name:"modules",setup(N){const _=A(!1),a=W(),b=J(),r=C(()=>a.value.filter(n=>n.isPackageModule)),t=C(()=>a.value.filter(n=>!n.isPackageModule));return le(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{_.value=!0}}]),(n,u)=>{const w=Je,y=H,d=O,c=de,p=z,l=et,f=lt,h=it,I=xe;return o(),m(B,null,[e("div",rt,[s(c,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${r.value.length}`},{default:i(()=>[(o(!0),m(B,null,P(r.value,v=>(o(),$(w,{key:v.name,mod:v},null,8,["mod"]))),128)),(o(!0),m(B,null,P("processInstallingModules"in n?n.processInstallingModules:j(R),v=>(o(),$(d,{key:v.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:F=>b.value=v.processId},{default:i(()=>[s(y,{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:i(()=>[e("div",ut,[e("img",{src:_t+v.info.icon,alt:v.info.name,ma:""},null,8,dt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",pt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",mt,"Installing "+k(v.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(y,{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]=v=>_.value=!0)},{default:i(()=>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(),$(c,{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:i(()=>[(o(!0),m(B,null,P(t.value,v=>(o(),m(B,{key:v.meta?.name||v.entryPath},[v.meta?.name||v.entryPath?(o(),$(w,{key:0,mod:v},null,8,["mod"])):g("",!0)],64))),128))]),_:1},8,["description"])):g("",!0),s(E,{name:"fade-in"},{default:i(()=>[_.value?(o(),m("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]=v=>_.value=!1)})):g("",!0)]),_:1}),s(E,{name:"slide-in"},{default:i(()=>[_.value?(o(),m("div",ct,[s(p,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=v=>_.value=!1)}),s(l,{onClose:u[3]||(u[3]=v=>_.value=!1)})])):g("",!0)]),_:1}),s(f)]),s(I,null,{default:i(()=>[s(h)]),_:1})],64)}}});export{At as default};
|
|
1
|
+
import{_ as Q}from"./filepath-item.vue-f3958elb.js";import{K as Y,a as O,E as G,U as H,o as J,r as V,j as q,s as ee,a8 as K,a9 as R,f as z,N as te,I as oe,x as ne,y as se,p as le}from"./b02f8h4y.js";import{_ as ae,u as W,a as ie}from"./state-modules-h8uf7h8d.js";import{_ as re}from"./duration-display.vue-onla0yr8.js";import{l as D,m as C,R as o,N as $,a0 as i,V as e,W as T,a7 as x,a6 as k,U as m,u as j,Z as U,X as g,a1 as s,F as B,ac as P,ai as ue,c as A,J as E}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as de}from"./nsection-block-mwhk66gw.js";import{_ as pe}from"./nicon-title.vue-evdbm4ef.js";import{_ as X}from"./ndropdown.vue-nlyuq8dr.js";import{_ as me}from"./nnavbar.vue-med0h49f.js";import{_ as ce}from"./nbadge-le6qglrd.js";import{s as _e}from"./vue-virtual-scroller.esm-btin7frf.js";import{_ as fe}from"./ncode-block.vue-bazndqbc.js";import{_ as ve}from"./nlink.vue-l5e2nrsl.js";import{_ as ge}from"./code-diff.vue-mke5i5ht.js";import{_ as xe}from"./help-fab.vue-kjnf5h3g.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./ncheckbox.vue-mnhptb1i.js";import"./client-bvu6p7m4.js";const be={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},ke={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},he={key:2},ye={key:1,flex:"~ gap-2",title:"Documentation"},$e={key:2,flex:"~ gap-2"},we={key:0,flex:"~ gap-4 items-center"},Ce={flex:"~ gap-2 items-center",op50:""},Ie={flex:"~ gap-2 items-center",op50:""},Me={key:1},Ne={flex:"~ col","items-end":""},Be={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},je=["src","alt"],De={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Pe=["src"],Te={flex:"","justify-end":""},Ae="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Ue="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",ze="https://github.com/",Le="https://www.npmjs.com/package/",S=D({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const _=N,a=C(()=>({..._.mod?.meta,..._.mod,..._.info})),b=Y();return(r,t)=>{const n=O,u=G,w=re,y=H;return o(),$(y,{p4:"",flex:"~ gap2"},{default:i(()=>[e("div",be,[T(r.$slots,"main",{},()=>[e("div",ke,[r.mod.isPackageModule?(o(),$(n,{key:0,to:Le+(a.value.npm||a.value.name),target:"_blank",hover:"underline text-primary"},{default:i(()=>[x(k(a.value.name),1)]),_:1},8,["to"])):r.mod.entryPath?(o(),m("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=d=>j(b)(r.mod.entryPath))},k(a.value.name),1)):(o(),m("span",he,k(a.value.name),1)),T(r.$slots,"badge")]),a.value.description?(o(),m("div",{key:0,class:U(r.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},k(a.value.description),3)):g("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),a.value.website?(o(),m("div",ye,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(n,{to:a.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:i(()=>[x(k(a.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):g("",!0),a.value.github?(o(),m("div",$e,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(n,{to:a.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:i(()=>[x(k(a.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):g("",!0)]),T(r.$slots,"items"),a.value.stats?(o(),m("div",we,[e("div",Ce,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,k(a.value.stats.stars),1)]),e("div",Ie,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,k(a.value.stats.downloads),1)])])):g("",!0),r.mod.timings?.setup?(o(),m("div",Me,[s(w,{title:"Module Setup Time",flex:"~ items-center",duration:r.mod.timings.setup*1e3,factor:.5},{before:i(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):g("",!0)]),e("div",Ne,[a.value.icon||r.mod.isPackageModule?(o(),m("div",Be,[a.value.icon?(o(),m("img",{key:0,src:Ae+a.value.icon,alt:r.mod.name,ma:""},null,8,je)):g("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):g("",!0),a.value.maintainers?.length&&r.maintainers?(o(),m("div",De,[(o(!0),m(B,null,P(a.value.maintainers,d=>(o(),$(n,{key:d.name,target:"_blank",to:ze+d.github,title:d.name},{default:i(()=>[e("img",{src:Ue+d.github,"h-6":"","w-6":"","rounded-full":""},null,8,Pe)]),_:2},1032,["to","title"]))),128))])):g("",!0),r.$slots.actions?(o(),m(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",Te,[T(r.$slots,"actions")])],64)):g("",!0)])]),_:3})}}}),Oe={key:0,flex:"~ gap-2",title:"Open on filesystem"},Se={key:1,"mx--2":""},Fe=["onClick"],Ve={key:2,"mx--2":""},qe=["onClick"],Ee={op50:""},Ye={"text-green":""},Ge={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},He={"text-sm":"",op50:""},Je=D({__name:"ModuleItem",props:{mod:{}},setup(N){const _=N,a=C(()=>_.mod.info),b=C(()=>({..._.mod?.meta,..._.mod,...a.value})),r=J();return(t,n)=>{const u=Q,w=O,y=ae,d=S;return o(),$(d,{mod:t.mod,info:a.value},{items:i(()=>[t.mod.entryPath?(o(),m("div",Oe,[n[0]||(n[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"])])):g("",!0),b.value.npm?(o(),$(y,{key:b.value.npm,"package-name":b.value.npm,options:{dev:!0}},{default:i(({info:c,update:p,state:l,id:f,restart:h})=>[l==="running"?(o(),$(w,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:f?"/modules/terminals":void 0,onClick:I=>f?r.value=f:void 0},{default:i(()=>n[1]||(n[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"])):l==="updated"?(o(),m("div",Se,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:h},n[2]||(n[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,Fe)])):c?.needsUpdate?(o(),m("div",Ve,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:I=>p()},[n[3]||(n[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",Ee,"v"+k(c.current),1),n[4]||(n[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Ye,"v"+k(c.latest),1)],8,qe)])):c?.latest?(o(),m("div",Ge,[n[5]||(n[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",He,"v"+k(c.current),1)])):g("",!0)]),_:1},8,["package-name"])):g("",!0)]),_:1},8,["mod","info"])}}}),Ke=D({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:_}){const a=N,b=_,r=W(),t=C(()=>r.value.find(d=>d.name===a.item.npm)),n=C(()=>t.value&&t.value.isPackageModule),u=C(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function w(d,c){const p=c==="install"?V.installNuxtModule:V.uninstallNuxtModule,l=await p(await q(),d.npm,!0);ee(`modules:${c}`,{moduleName:d.npm}),l.commands&&await K.start(d,l,c)&&(R.value.push({name:d.npm,info:d,processId:l.processId}),b("start"),await p(await q(),d.npm,!1))}const y={};return(d,c)=>{const p=ce,l=z,f=X,h=S;return o(),$(h,{mod:y,role:n.value?"":"button",info:d.item,mb2:"","h-full":"",class:U(n.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:c[1]||(c[1]=I=>n.value?null:w(d.item,"install"))},ue({_:2},[n.value?{name:"badge",fn:i(()=>[s(p,{n:"green",textContent:"Installed"}),u.value?(o(),$(f,{key:0,n:"sm green"},{trigger:i(({click:I})=>[s(l,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:v=>I()},null,8,["onClick"])]),default:i(()=>[s(l,{icon:"carbon-trash-can",n:"red",onClick:c[0]||(c[0]=I=>w(d.item,"uninstall"))},{default:i(()=>c[2]||(c[2]=[x(" Uninstall ")])),_:1})]),_:1})):g("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),Re={"h-full":"",flex:"~ col gap-4"},We={flex:"~ items-center"},Xe={flex:"~ col","w-30":"","of-auto":""},Ze={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},Qe={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},et=D({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:_}){const a=_,b=ie(),r=["downloads","stars","updated","created"],t=A(!1),n=A(r[0]),u={downloads:(p,l)=>p.stats.downloads-l.stats.downloads,stars:(p,l)=>p.stats.stars-l.stats.stars,created:(p,l)=>p.stats.createdAt-l.stats.createdAt,updated:(p,l)=>p.stats.publishedAt-l.stats.publishedAt},w=C(()=>b.value?.toSorted((p,l)=>u[n.value](p,l)*(t.value?1:-1))),y=A(""),d=C(()=>new te(b.value||[],{keys:["name","description","npm","category"],sortFn:(p,l)=>{const f=b.value?.[p.idx],h=b.value?.[l.idx];return f&&h?u[n.value](f,h)*(t.value?1:-1):p.score-l.score},threshold:.2})),c=C(()=>y.value?d.value.search(y.value).map(p=>p.item):w.value);return(p,l)=>{const f=pe,h=z,I=G,v=X,F=me,Z=Ke;return o(),m("div",Re,[s(f,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),s(F,{search:y.value,"onUpdate:search":l[1]||(l[1]=M=>y.value=M),"no-padding":"","px-6":"","pb-5":"","pt-2":""},{actions:i(()=>[s(v,{direction:"end",n:"sm primary"},{trigger:i(({click:M})=>[e("div",We,[s(h,{icon:t.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:l[0]||(l[0]=L=>t.value=!t.value)},null,8,["icon"]),s(h,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:L=>M()},{default:i(()=>[x(k(n.value)+" ",1),s(I,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:i(()=>[e("div",Xe,[(o(),m(B,null,P(r,M=>s(h,{key:M,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:L=>n.value=M},{default:i(()=>[e("span",Ze,[x(k(M)+" ",1),n.value===M?(o(),$(I,{key:0,icon:"carbon:checkmark"})):g("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),_:1},8,["search"]),e("div",Qe,[s(j(_e),{class:"scroller",items:c.value,"item-size":200,"key-field":"name"},{default:i(({item:M})=>[s(Z,{item:M,onStart:l[2]||(l[2]=L=>a("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),tt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ot={capitalize:""},nt={op50:""},st={flex:"~ gap-3",mt2:"","justify-end":""},lt=D({__name:"ModuleActionDialog",setup(N){const _=oe(),a=Y(),b={};return(r,t)=>{const n=S,u=fe,w=ve,y=ge,d=ne,c=z,p=se;return o(),$(j(K),null,{default:i(({resolve:l,args:f})=>[s(p,{"model-value":!0,onClose:h=>l(!1)},{default:i(()=>[s(n,{mod:b,info:f[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",tt,[e("h2",{"text-xl":"",class:U(f[2]==="install"?"text-primary":"text-red")},[e("span",ot,k(f[2]),1),t[1]||(t[1]=x()),e("code",null,k(f[0].name),1),t[2]||(t[2]=x("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:f[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",nt,[t[3]||(t[3]=x(" Then your ")),s(w,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=h=>j(a)(j(_)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=x(" will be updated as: "))]),s(y,{from:f[1].configOriginal,to:f[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"),x(". ")],-1)),e("div",st,[s(d,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:i(()=>t[5]||(t[5]=[x(" Please make sure to backup your project first. ")])),_:1}),s(c,{onClick:h=>l(!1)},{default:i(()=>t[6]||(t[6]=[x(" Cancel ")])),_:2},1032,["onClick"]),s(c,{n:"solid",capitalize:"",class:U(f[2]==="install"?"n-primary":"n-red"),onClick:h=>l(!0)},{default:i(()=>[x(k(f[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),at={class:"markdown-body"},it={__name:"modules",setup(N,{expose:_}){return _({frontmatter:{}}),(b,r)=>(o(),m("div",at,r[0]||(r[0]=[e("h1",null,"Modules",-1),e("p",null,[x("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"),x(".")],-1),e("p",null,[x("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),x(" 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)])))}},rt={"h-full":"","w-full":"","of-auto":""},ut={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},dt=["src","alt"],pt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},mt={op75:""},ct={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},_t="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",At=D({__name:"modules",setup(N){const _=A(!1),a=W(),b=J(),r=C(()=>a.value.filter(n=>n.isPackageModule)),t=C(()=>a.value.filter(n=>!n.isPackageModule));return le(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{_.value=!0}}]),(n,u)=>{const w=Je,y=H,d=O,c=de,p=z,l=et,f=lt,h=it,I=xe;return o(),m(B,null,[e("div",rt,[s(c,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${r.value.length}`},{default:i(()=>[(o(!0),m(B,null,P(r.value,v=>(o(),$(w,{key:v.name,mod:v},null,8,["mod"]))),128)),(o(!0),m(B,null,P("processInstallingModules"in n?n.processInstallingModules:j(R),v=>(o(),$(d,{key:v.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:F=>b.value=v.processId},{default:i(()=>[s(y,{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:i(()=>[e("div",ut,[e("img",{src:_t+v.info.icon,alt:v.info.name,ma:""},null,8,dt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",pt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",mt,"Installing "+k(v.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(y,{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]=v=>_.value=!0)},{default:i(()=>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(),$(c,{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:i(()=>[(o(!0),m(B,null,P(t.value,v=>(o(),m(B,{key:v.meta?.name||v.entryPath},[v.meta?.name||v.entryPath?(o(),$(w,{key:0,mod:v},null,8,["mod"])):g("",!0)],64))),128))]),_:1},8,["description"])):g("",!0),s(E,{name:"fade-in"},{default:i(()=>[_.value?(o(),m("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]=v=>_.value=!1)})):g("",!0)]),_:1}),s(E,{name:"slide-in"},{default:i(()=>[_.value?(o(),m("div",ct,[s(p,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=v=>_.value=!1)}),s(l,{onClose:u[3]||(u[3]=v=>_.value=!1)})])):g("",!0)]),_:1}),s(f)]),s(I,null,{default:i(()=>[s(h)]),_:1})],64)}}});export{At as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./
|
|
1
|
+
import{_ as o}from"./b02f8h4y.js";import{R as n,U as s,W as t}from"./vendor/json-editor-vue-hrh84odz.js";const r={},_={class:"n-badge"};function c(e,a){return n(),s("span",_,[t(e.$slots,"default")])}const m=o(r,[["render",c]]);export{m as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as i,E as r}from"./
|
|
1
|
+
import{z as i,E as r}from"./b02f8h4y.js";import{l as p,R as b,U as u,a9 as h,ay as m,u as o,V as n,y as k,$ as f,a1 as v,W as _,Z as x}from"./vendor/json-editor-vue-hrh84odz.js";const y=["checked","disabled"],V=["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"},z=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(a,s)=>{const d=r;return b(),u("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:o(e)||null,disabled:a.disabled||null},[h(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>k(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:s[1]||(s[1]=f(l=>e.value=!o(e),["enter"]))},null,40,V),[[m,o(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([o(e)?"":"op50","n-transition"])},[_(a.$slots,"default")],2)],8,y)}}});export{z as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bk as n,aa as b,f as g}from"./
|
|
1
|
+
import{bk as n,aa as b,f as g}from"./b02f8h4y.js";import{l as h,c as y,N as v,a0 as k,a2 as l,J as B,R as i,U as C,a1 as $,V,W as w,u as o,X as N}from"./vendor/json-editor-vue-hrh84odz.js";const x=["border"],z={relative:"","h-full":"","w-full":"","of-auto":""},R=h({__name:"NDrawer",props:{modelValue:{type:Boolean},top:{},left:{},autoClose:{type:Boolean},transition:{default:"right"}},emits:["close"],setup(f,{emit:m}){const e=f,c=m,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&&c("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 i(),v(B,l(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?(i(),C("div",l({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]=_=>t.$emit("close"))}),V("div",z,[w(t.$slots,"default")])],16,x)):N("",!0)]),_:3},16)}}});export{R as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as d,aa as p,f as u}from"./
|
|
1
|
+
import{z as d,aa as p,f as u}from"./b02f8h4y.js";import{l as c,c as m,R as f,U as v,W as n,a1 as b,a0 as V,a7 as k,u as a,V as _,Z as B}from"./vendor/json-editor-vue-hrh84odz.js";const y=c({__name:"NDropdown",props:{modelValue:{type:Boolean},direction:{default:"start"}},setup(r,{emit:l}){const e=d(r,"modelValue",l,{passive:!0}),t=m();return p(t,()=>{e.value=!1}),(s,o)=>{const i=u;return f(),v("div",{ref_key:"el",ref:t,class:"relative"},[n(s.$slots,"trigger",{enabled:a(e),click:()=>e.value=!a(e)},()=>[b(i,{onClick:o[0]||(o[0]=g=>e.value=!a(e))},{default:V(()=>o[1]||(o[1]=[k(" Dropdown ")])),_:1})]),_("div",{class:B(["absolute z-10 border n-border-base rounded shadow n-transition n-bg-base",[a(e)?"op-100":"op0 pointer-events-none -translate-y-1",s.direction==="end"?"right-0":"left-0"]])},[n(s.$slots,"default")],2)],512)}}});export{y as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./
|
|
1
|
+
import{a as s}from"./b02f8h4y.js";import{l,m as i,R as r,N as p,a0 as u,W as c,U as m,X as _,a2 as k}from"./vendor/json-editor-vue-hrh84odz.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,k(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:u(()=>[c(e.$slots,"default"),n.value&&e.target==="_blank"?(r(),m("div",d)):_("",!0)]),_:3},16,["class"])}}});export{v as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as c}from"./
|
|
1
|
+
import{w as c}from"./b02f8h4y.js";import{l as p,U as d,V as i,W as a,Z as s,R as o,N as m,X as u}from"./vendor/json-editor-vue-hrh84odz.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,_)=>{const l=c;return o(),d("div",{flex:"~ col gap2 wrap",border:"b base","flex-1":"","n-navbar-glass":"",class:s([{p4:!e.noPadding}])},[i("div",f,[a(e.$slots,"search",{},()=>[e.search!==void 0?(o(),m(l,{key:0,placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:s({"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{_ as o}from"./
|
|
1
|
+
import{_ as o}from"./b02f8h4y.js";import{R as t,U as r,W as n}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const s={},c={relative:"","w-full":""};function a(e,l){return t(),r("div",c,[n(e.$slots,"default")])}const d=o(s,[["render",a]]);export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as $,E as B,_ as C}from"./
|
|
1
|
+
import{z as $,E as B,_ as C}from"./b02f8h4y.js";import{_ as N}from"./nicon-title.vue-evdbm4ef.js";import{l as h,U as i,V as s,Z as a,a1 as w,a0 as _,u as l,F as p,a9 as b,aa as k,W as t,X as d,R as r,a7 as u,a6 as c,N as V}from"./vendor/json-editor-vue-hrh84odz.js";const S=["open"],x={"text-base":""},z={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(f){const n=$(f,"open",void 0,{passive:!0});function m(e){n.value=e.target.open}return(e,o)=>{const v=B,g=N;return r(),i(p,null,[s("details",{open:l(n),onToggle:o[0]||(o[0]=(...y)=>m(...y))},[s("summary",{class:a(["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:a([l(n)?"op100":"op60",e.headerClass])},{default:_(()=>[s("div",null,[s("div",x,[t(e.$slots,"text",{},()=>[u(c(e.text),1)],!0)]),e.description||e.$slots.description?(r(),i("div",z,[t(e.$slots,"description",{},()=>[u(c(e.description),1)],!0)])):d("",!0)]),o[1]||(o[1]=s("div",{class:"flex-auto"},null,-1)),t(e.$slots,"actions",{},void 0,!0),e.collapse?(r(),V(v,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):d("",!0)]),_:3},8,["icon","text","class"])],2),o._lazyshow1||l(n)?(o._lazyshow1=!0,r(),i(p,null,[b(s("div",{class:a(["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:a([e.containerClass,"mt1"])},[t(e.$slots,"default",{},void 0,!0)],2),t(e.$slots,"footer",{},void 0,!0)],2),[[k,l(n)]])],64)):d("v-show-if",!0)],40,S),o[2]||(o[2]=s("div",{class:"x-divider"},null,-1))],64)}}}),M=C(T,[["__scopeId","data-v-bae9fa8d"]]);export{M as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as m,R as l,U as t,F as c,ac as f,Z as d,u as o,V as r,a6 as v,a9 as _,am as y,y as V}from"./vendor/json-editor-vue-hrh84odz.js";import{z as g}from"./
|
|
1
|
+
import{l as m,R as l,U as t,F as c,ac as f,Z as d,u as o,V as r,a6 as v,a9 as _,am as y,y as V}from"./vendor/json-editor-vue-hrh84odz.js";import{z as g}from"./b02f8h4y.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"],C=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(i,{emit:u}){const a=g(i,"modelValue",u,{passive:!0});return(s,n)=>(l(),t("fieldset",h,[(l(!0),t(c,null,f(s.options,(e,b)=>(l(),t("label",{key:e.label,disabled:s.disabled,class:d(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[b?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[r("div",{class:d([e.value===o(a)?"":"op35"])},v(e.label),3),_(r("input",{"onUpdate:modelValue":n[0]||(n[0]=p=>V(a)?a.value=p:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,B),[[y,o(a)]])],10,x))),128))]))}});export{C as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as p,E as m}from"./
|
|
1
|
+
import{z as p,E as m}from"./b02f8h4y.js";import{l as f,R as o,U as l,W as n,N as b,X as t,a9 as h,az as y,u as V,V as v,a6 as k,y as B,Z as d}from"./vendor/json-editor-vue-hrh84odz.js";const N=["disabled"],g={key:0,value:"",disabled:"",hidden:""},C=f({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const s=p(i,"modelValue",r,{passive:!0});return(e,a)=>{const c=m;return o(),l("div",{class:d(["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"])},[n(e.$slots,"icon",{},()=>[e.icon?(o(),b(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):t("",!0)]),h(v("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>B(s)?s.value=u:null),disabled:e.disabled,class:d(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(o(),l("option",g,k(e.placeholder),1)):t("",!0),n(e.$slots,"default")],10,N),[[y,V(s)]])],2)}}});export{C as _};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{ab as oe,J as ae,K as z,U as E,f as J,ac as G,ad as ne,ae as se,af as re,_ as ie,ag as le,ah as ce,H as de,ai as pe,aj as ue,ak as me,al as V,w as ge}from"./
|
|
1
|
+
import{ab as oe,J as ae,K as z,U as E,f as J,ac as G,ad as ne,ae as se,af as re,_ as ie,ag as le,ah as ce,H as de,ai as pe,aj as ue,ak as me,al as V,w as ge}from"./b02f8h4y.js";import{_ as he}from"./nnavbar.vue-med0h49f.js";import{_ as P}from"./nlink.vue-l5e2nrsl.js";import{_ as q}from"./nsection-block-mwhk66gw.js";import{_ as _e}from"./ncode-block.vue-bazndqbc.js";import{l as N,m as C,c as I,N as A,a0 as h,X as y,R as t,V as e,U as n,ac as B,Z as O,a6 as u,F as S,a1 as p,a7 as $,u as g,Y as R,ah as fe,n as ve,ae as be,$ as we,a9 as H}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as xe}from"./help-fab.vue-kjnf5h3g.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nicon-title.vue-evdbm4ef.js";import"./client-bvu6p7m4.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=z(),b=["Missing Tags","Code Snippet"],_=I(b[0]);return(d,o)=>{const w=P,m=E,T=J,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"},je={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]"},De={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"}},He=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",je,[e("div",Fe,u(s.card.title),1),e("div",De,u(s.card.description),1)])])]))}}),Ue={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"}},Ve={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},ze={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},Ee={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},Je={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},Ge=N({__name:"SocialTwitter",props:{tags:{}},setup(v){const s=v,l=C(()=>G(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",Ue,[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",Ve,[e("div",ze,u(l.value.url),1),e("div",Ee,u(l.value.title),1),e("div",Je,u(l.value.description),1)])],2)]))}}),Pe={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"}},Ye={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},We={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",Pe,[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",Ye,u(s.card.title),1),e("div",We,u(s.card.url),1)])])]))}}),Ze={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"},Qe={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",Ze,[e("div",Qe,[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(()=>G(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 _=He,d=Ge,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:""},Ut=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=z();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 V(_).toBeTruthy().then(r=>{d.value=r.path}),V(b).toBeTruthy().then(r=>{r.afterEach(()=>{ve(()=>{d.value=_.value.path,setTimeout(k,200),setTimeout(k,800)})})}),(r,i)=>{const f=ge,j=J,Y=he,U=P,W=E,X=q,Z=Ie,Q=bt,ee=xt,te=xe,F=be("tooltip");return t(),n(S,null,[e("div",yt,[e("div",kt,[p(Y,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?H((t(),A(j,{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),H(p(j,{"text-lg":"",border:!1,icon:"carbon:reset",title:"Refresh Data",onClick:k},null,512),[[F,"Refresh Data"]]),H(p(j,{"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(W,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:h(()=>[(t(!0),n(S,null,B(g(a),(x,D)=>(t(),n(S,{key:D},[D?(t(),n("div",St)):y("",!0),D?(t(),n("div",Ct)):y("",!0),e("div",Nt,[p(U,{op50:"",href:L(x),target:"_blank",n:"primary"},{default:h(()=>[$(u(x.name),1)]),_:2},1032,["href"])]),p(U,{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(Z,{tags:g(a),"matched-route-filepath":M.value},null,8,["tags","matched-route-filepath"])])]),c.value&&g(a)?.length?(t(),A(Q,{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{Ut as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as M,I as z,a6 as O,am as P,an as $,m as E,d as F,ao as g,ap as k,aq as G,a1 as H,i as K,j as U,e as q,a as W,x as X,f as J}from"./
|
|
1
|
+
import{b as M,I as z,a6 as O,am as P,an as $,m as E,d as F,ao as g,ap as k,aq as G,a1 as H,i as K,j as U,e as q,a as W,x as X,f as J}from"./b02f8h4y.js";import{u as Q,_ as Y}from"./state-modules-h8uf7h8d.js";import{u as Z}from"./state-components-fb7dlw2d.js";import{l as h,m as A,N as v,a0 as n,R as s,u as o,U as p,V as e,a1 as i,a6 as r,X as u,F as f,a7 as l}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nbadge-le6qglrd.js";import"./ncode-block.vue-bazndqbc.js";import"./client-bvu6p7m4.js";import"./ncheckbox.vue-mnhptb1i.js";const c="2.0.0-beta.4-28972036.a28ca5b",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":""},at={"text-right":""},rt={"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=z(),D=Z(),y=O(),j=Q(),I=P(),w=$(),V=E();function B(){K.value=!0,V.push("/")}const S=A(()=>b.value?.nuxt.vueApp.version),a=A(()=>b.value?.metrics.loading());function R(){U()}return(C,t)=>{const L=q,x=W,_=Y,N=X,d=J,T=F;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:B},[t[0]||(t[0]=e("span",{op40:""}," Nuxt DevTools ",-1)),e("code",nt,"v"+r(o(c)),1),i(_,{"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(_,{"package-name":"nuxt",options:{dev:!0}})]),_:1}),S.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"+r(S.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,r(o(g)(o(I).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,r(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,r(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,r(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,r(o(g)(o(m).plugins.length,"plugin")),1)]),_:1})):u("",!0),a.value?(s(),p("div",lt,[t[12]||(t[12]=e("div",{"i-carbon-time-plot":"","flex-none":"","text-3xl":""},null,-1)),e("div",it,[a.value.ssrStart?(s(),p(f,{key:0},[t[8]||(t[8]=e("div",{"text-sm":""}," SSR to full load ",-1)),e("div",ut,r(o(k)(a.value.appLoad-a.value.ssrStart)),1)],64)):u("",!0),t[10]||(t[10]=e("div",{"text-sm":""}," Page load ",-1)),e("div",at,r(o(k)(a.value.appLoad-a.value.appInit)),1),t[11]||(t[11]=e("div",{"text-sm":""}," Navigation ",-1)),e("div",rt,r(o(k)(a.value.pageEnd-a.value.pageStart)),1),a.value.hmrStart?(s(),p(f,{key:1},[t[9]||(t[9]=e("div",{"text-sm":""}," HMR ",-1)),e("div",dt,r(o(k)(a.value.hmrEnd-a.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 C?C.isDevAuthed:o(H))?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{w as j,f as J,K as X,aw as D,J as Z,ai as q,aj as G,I as Q,S as Y,ak as ee,ax as te,r as oe,j as ne}from"./
|
|
1
|
+
import{w as j,f as J,K as X,aw as D,J as Z,ai as q,aj as G,I as Q,S as Y,ak as ee,ax as te,r as oe,j as ne}from"./b02f8h4y.js";import{_ as F}from"./nbadge-le6qglrd.js";import{l as M,c as L,m as x,S as ae,R as t,U as a,V as e,a6 as C,N as k,a0 as $,ag as se,F as g,ac as T,X as N,a1 as f,a7 as I,Z as A,u as c,x as re,$ as le}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as z}from"./filepath-item.vue-f3958elb.js";import{_ as ue}from"./nsection-block-mwhk66gw.js";import{_ as ie}from"./launch-page.vue-fzp5jez3.js";import{_ as pe}from"./help-fab.vue-kjnf5h3g.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nicon-title.vue-evdbm4ef.js";import"./nmarkdown.vue-ffthu1ys.js";import"./client-bvu6p7m4.js";const de={block:"","cursor-pointer":""},ce={p2:""},me=["onSubmit"],ve={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},he={key:1},fe=M({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(P,{emit:i}){const v=P,R=i,m=L([]),_=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(()=>_.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=j,n=J,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,T(_.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),f(n,{type:"submit",block:"",n:"primary"},{default:$(()=>d[1]||(d[1]=[I(" Navigate ")])),_:1})],40,me)])]),default:$(()=>[e("code",de,[(t(!0),a(g,null,T(_.value,(b,u)=>(t(),a("span",{key:u,class:A(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)]))}}}),_e={"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:""},Ve={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ie=["onClick"],Te=M({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(P){const i=P,v=X(),R=D(),m=Z(),_=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=fe,h=z;return t(),a("div",_e,[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,T(_.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,[f(d,{route:n,class:A(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,[f(h,{filepath:y(n.meta.middleware),override:`${n.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ve,[n.meta.layout===!1?(t(),a("span",Pe,"-")):n.meta.layout?(t(),a("button",{key:1,onClick:l=>w(n.meta.layout)},C(n.meta.layout),9,Ie)):(t(),a("button",{key:2,"text-sm":"",op15:"",onClick:s[1]||(s[1]=l=>w("default"))}," (default) "))])]))),128))])])])}}}),Be={class:"markdown-body"},Ee={__name:"pages",setup(P,{expose:i}){return i({frontmatter:{}}),(R,m)=>(t(),a("div",Be,m[0]||(m[0]=[e("h1",null,"Pages",-1),e("p",null,[I("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/"),I(" 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)])))}},Le={key:0,"h-full":"","of-auto":""},Me={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Ae={"font-mono":""},Se={key:1,op50:""},je={key:0,"text-orange":"",op75:""},De={key:1,op50:""},Fe={"min-h-14":""},ze={key:1,class:"py-4 text-center"},Ue={"w-full":""},Ke={mr1:""},ot=M({__name:"pages",setup(P){const i=q(),v=G(),R=Q(),m=D(),_=Y(),w=ee(),y=x(()=>m.value?.middleware||[]),o=L(""),s=L(0),r=x(()=>(y.value,o.value,_.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=j,S=Te,E=ue,U=F,K=z,O=ie,W=Ee,H=pe;return t(),a(g,null,[c(R)?.pages&&c(i)?(t(),a("div",Le,[e("div",Me,[e("div",null,[r.value!==o.value?(t(),a(g,{key:0},[p[1]||(p[1]=e("span",{op50:""},"Navigate from ",-1)),e("span",Ae,C(r.value),1),p[2]||(p[2]=e("span",{op50:""}," to ",-1))],64)):(t(),a("span",Se,"Current route"))]),f(B,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=V=>o.value=V),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:A(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,[I("Press "),e("b",{"font-bold":""},"Enter"),I(" to navigate")],-1)),h.value.length?N("",!0):(t(),a("span",je," (no match)"))],64)):(t(),a("span",De,"Edit path above to navigate"))])]),f(E,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:$(()=>[e("div",Fe,[h.value.length?(t(),k(S,{key:0,pages:h.value,layouts:c(_)||[],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}),f(E,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${c(w).length} routes registered in your application`,padding:"pr5"},{default:$(()=>[f(S,{pages:c(w),layouts:c(_)||[],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(E,{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,T(y.value,V=>(t(),a("tr",{key:V.path,"h-7":""},[e("td",null,[e("span",Ke,C(V.name),1),V.global?(t(),k(U,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):N("",!0)]),e("td",null,[f(K,{filepath:V.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):N("",!0)])):(t(),k(O,{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"])),f(H,null,{default:$(()=>[f(W)]),_:1})],64)}}});export{ot as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as k}from"./state-editor.vue-
|
|
1
|
+
import{_ as k}from"./state-editor.vue-n8pkn9an.js";import{l as x,R as e,U as i,F as $,ac as C,N as d,a0 as a,W as B,a2 as V,V as b,m as h,ae as w,u as F,a1 as o,X as _,a7 as O,a9 as R}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as E}from"./nsection-block-mwhk66gw.js";import{b as P,f as j}from"./b02f8h4y.js";import{_ as A}from"./help-fab.vue-kjnf5h3g.js";import"./nicon-title.vue-evdbm4ef.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const G={key:0,flex:"~ col gap-1"},H={key:1,mt2:"",px4:"",italic:"",op35:""},K=x({__name:"StateGroup",props:{state:{},revision:{},prefix:{default:""}},setup(f){return(t,n)=>{const c=k;return e(),i("div",null,[t.state&&Object.keys(t.state).length>0?(e(),i("div",G,[(e(!0),i($,null,C(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",V({ref_for:!0},l))]),_:2},1032,["revision","state","name"]))),128))])):(e(),i("div",H," No data "))])}}}),T={class:"markdown-body"},W={__name:"payload",setup(f,{expose:t}){return t({frontmatter:{}}),(c,s)=>(e(),i("div",T,s[0]||(s[0]=[b("h1",null,"State & Async Data",-1),b("p",null,"// TODO",-1)])))}},L={key:0},Z=x({__name:"payload",setup(f){const t=P(),n=h(()=>t.value?.nuxt.payload),c=h(()=>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=E,v=j,S=k,g=W,D=A,N=w("tooltip");return e(),i($,null,[F(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]=[O(" Re-fetch all data ")])),_:1})]),default:a(()=>[o(m,{state:n.value.data,revision:c.value},{actions:a(({isOpen:y,name:u})=>[y&&u?R((e(),d(v,{key:0,title:`Re-fetch '${u}'`,icon:"carbon-recycle",border:!1,onClick:U=>s([u])},null,8,["title","onClick"])),[[N,`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{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ay as r,az as c}from"./
|
|
1
|
+
import{ay as r,az as c}from"./b02f8h4y.js";import{v as i}from"./index-jwebz8s6.js";import{l as m,U as p,u as o,N as n,a0 as _,R as t,a7 as l}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./vue-virtual-scroller.esm-btin7frf.js";const u={class:"h-full w-full"},N=m({__name:"pinia",setup(f){const{connected:a}=r();return(d,e)=>{const s=c;return t(),p("div",u,[o(a)?(t(),n(o(i),{key:0})):(t(),n(s,{key:1},{default:_(()=>e[0]||(e[0]=[l(" Connecting.... ")])),_:1}))])}}});export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./nbadge-
|
|
1
|
+
import{_ as S}from"./nbadge-le6qglrd.js";import{_ as T}from"./filepath-item.vue-f3958elb.js";import{_ as k}from"./duration-display.vue-onla0yr8.js";import{I as D,av as B,E as V,_ as I,aw as E,b as F}from"./b02f8h4y.js";import{l as v,m as h,R as s,U as _,V as n,a6 as C,a1 as u,a0 as f,N as p,X as d,S as H,W as P,a7 as x,F as b,ac as W,Z as L}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as M}from"./nsection-block-mwhk66gw.js";import{_ as R}from"./help-fab.vue-kjnf5h3g.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nicon-title.vue-evdbm4ef.js";const j={flex:"~ gap2","items-center":""},z={w8:"","text-right":"","text-sm":"",op25:""},A={key:0,"flex-auto":"","text-right":""},U=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(m){const e=m,r=D(),a=h(()=>B(e.plugin.src,r.value?.rootDir||"").path);return(t,l)=>{const o=S,c=T,i=k;return s(),_("div",j,[n("div",z,C(t.index),1),u(c,{filepath:e.plugin.src,subpath:!0},{default:f(()=>[n("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",A,[u(i,{duration:t.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),X={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},Y={flex:"~ items-center gap-1","font-bold":""},Z=v({__name:"HelpTip",props:{title:{},icon:{}},setup(m){return(e,r)=>{const a=V,t=H("ContentSlot");return s(),_("div",X,[n("div",Y,[e.icon?(s(),p(a,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),n("div",null,C(e.title),1)]),n("div",null,[P(e.$slots,"default",{},()=>[u(t,{use:e.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),q={};function G(m,e){const r=Z;return s(),p(r,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:f(()=>[P(m.$slots,"default")]),_:3})}const J=I(q,[["render",G]]),K={class:"markdown-body"},O={__name:"plugins",setup(m,{expose:e}){return e({frontmatter:{}}),(a,t)=>{const l=J;return s(),_("div",K,[t[1]||(t[1]=n("h1",null,"Plugins",-1)),t[2]||(t[2]=n("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 "),n("code",null,"plugins/"),x(" directory and they will be automatically imported and registered.")],-1)),u(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]=n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},Q={pt4:""},tt={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},pt=v({__name:"plugins",setup(m){const e=E(),r=F(),a=h(()=>{const l=e.value?.plugins||[],o=r.value?.metrics.clientPlugins()||[];return l.map(c=>{const i=typeof c=="string"?{src:c}:c;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 c=U,i=k,g=M,N=O,w=R;return s(),_(b,null,[u(g,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${a.value.length}`},{default:f(()=>[n("div",Q,[(s(!0),_(b,null,W(a.value,(y,$)=>(s(),p(c,{key:y.src,plugin:y,index:$+1,"ml--4":"","border-base":"",py2:"",class:L($?"border-t":"")},null,8,["plugin","index","class"]))),128)),n("div",tt,[o[0]||(o[0]=n("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1)),o[1]||(o[1]=n("span",{op50:""},"Total execution time:",-1)),u(i,{duration:t.value,factor:10},null,8,["duration"])])])]),_:1},8,["description"]),u(w,null,{default:f(()=>[u(N)]),_:1})],64)}}});export{pt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ay as m,b as d,K as c,az as f}from"./
|
|
1
|
+
import{ay as m,b as d,K as c,az as f}from"./b02f8h4y.js";import{p as _}from"./index-jwebz8s6.js";import{l as v,U as C,u as n,N as a,a0 as E,R as o,a7 as I}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./vue-virtual-scroller.esm-btin7frf.js";const k={class:"h-full w-full"},S=v({__name:"render-tree",setup(x){const{connected:l}=m(),t=d(),p=c();function s(r){r?t.value.devtools.open():t.value.devtools.close()}return(r,e)=>{const i=f;return o(),C("div",k,[n(l)?(o(),a(n(_),{key:0,onOnInspectComponentStart:e[0]||(e[0]=u=>s(!1)),onOnInspectComponentEnd:e[1]||(e[1]=u=>s(!0)),onOpenInEditor:n(p)},null,8,["onOpenInEditor"])):(o(),a(i,{key:1},{default:E(()=>e[2]||(e[2]=[I(" Connecting.... ")])),_:1}))])}}});export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as x}from"./state-editor.vue-
|
|
1
|
+
import{_ as x}from"./state-editor.vue-n8pkn9an.js";import{_ as b}from"./nsection-block-mwhk66gw.js";import{R as u,U as l,V as o,a7 as d,l as y,m as c,u as f,a1 as e,a0 as a,X as C,F as k}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as w}from"./help-fab.vue-kjnf5h3g.js";import{b as N,b3 as R}from"./b02f8h4y.js";import"./nicon-title.vue-evdbm4ef.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const T={class:"markdown-body"},V={__name:"runtime-configs",setup(_,{expose:t}){return t({frontmatter:{}}),(m,n)=>(u(),l("div",T,n[0]||(n[0]=[o("h1",null,"Runtime Configs",-1),o("p",null,"Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables.",-1),o("p",null,[d("In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your "),o("code",null,"nuxt.config.js"),d(" file, or check more details in the documentation.")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},B={key:0},H=y({__name:"runtime-configs",setup(_){const t=N(),p=R(),m=c(()=>t.value?.nuxt.payload),n=c(()=>t.value?.revision.value),g=c(()=>{const i={...p.value};return delete i.public,delete i.app,i});return(i,$)=>{const s=x,r=b,v=V,h=w;return u(),l(k,null,[f(t)?(u(),l("div",B,[e(r,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:a(()=>[e(s,{state:f(t).app.appConfig,revision:n.value},null,8,["state","revision"])]),_:1}),e(r,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:a(()=>[e(s,{state:m.value.config?.public,revision:n.value},null,8,["state","revision"])]),_:1}),e(r,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:a(()=>[e(s,{state:g.value,revision:n.value,readonly:""},null,8,["state","revision"])]),_:1})])):C("",!0),e(h,null,{default:a(()=>[e(v)]),_:1})],64)}}});export{H as default};
|