@nuxt/devtools-nightly 3.2.2-29550552.77c32d4 → 3.2.3-29553253.114aa17
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 +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/{analyze-build-bnq2cil8.js → analyze-build-ljo7pnko.js} +1 -1
- package/dist/client/_nuxt/{assets-fjp0hrmh.js → assets-k2vv50yo.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/17246141-8f04-431a-b2ab-e667889adef2.json +1 -0
- package/dist/client/_nuxt/{components-peth8amc.js → components-gknc84zh.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-lfwzilnd.js → custom-_name_-cy8ty1c8.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-dqe6w00i.js → data-schema-drawer-hsehr6nq.js} +1 -1
- package/dist/client/_nuxt/{debug-itzra6gt.js → debug-en6i7ix1.js} +1 -1
- package/dist/client/_nuxt/dev-auth-i6naz7u3.js +1 -0
- package/dist/client/_nuxt/{error-404-c73bftho.js → error-404-mits3oga.js} +1 -1
- package/dist/client/_nuxt/error-404.css-d57ay7br.css +1 -0
- package/dist/client/_nuxt/{error-500-75llnfh8.js → error-500-hybzsj2d.js} +1 -1
- package/dist/client/_nuxt/error-500.css-dwox7x4t.css +1 -0
- package/dist/client/_nuxt/{error-isnb18yz.js → error-jx3v44ex.js} +1 -1
- package/dist/client/_nuxt/{imports-ia8eldh8.js → imports-f8i10416.js} +1 -1
- package/dist/client/_nuxt/{launch-page-kf0w74wk.js → launch-page-ehgep7ys.js} +1 -1
- package/dist/client/_nuxt/{modules-obwfskfp.js → modules-nfc5e87f.js} +1 -1
- package/dist/client/_nuxt/{open-graph-m7wd1sxi.js → open-graph-il8d2wo4.js} +1 -1
- package/dist/client/_nuxt/{overview-fauwb2xr.js → overview-jsevswca.js} +1 -1
- package/dist/client/_nuxt/{pages-gnfgydad.js → pages-a3jv0tqb.js} +1 -1
- package/dist/client/_nuxt/{pages-izgjpbm4.js → pages-gwsib7gh.js} +1 -1
- package/dist/client/_nuxt/{kzt4clis.js → pc5lq4ko.js} +3 -3
- package/dist/client/_nuxt/{plugins-mswypwe4.js → plugins-wcre0iyu.js} +1 -1
- package/dist/client/_nuxt/{render-tree-hec27xi7.js → render-tree-oa2z70xn.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-cjcj8emm.js → server-discovery-cq2bz03s.js} +1 -1
- package/dist/client/_nuxt/{server-routes-e0uqj8di.js → server-routes-o1of0bg4.js} +1 -1
- package/dist/client/_nuxt/{server-tasks-izz5mcrk.js → server-tasks-dus3bone.js} +1 -1
- package/dist/client/_nuxt/{settings-dhxjcakv.js → settings-jqdx3lgd.js} +1 -1
- package/dist/client/_nuxt/{state-modules-ehax0fup.js → state-modules-gvepguo2.js} +1 -1
- package/dist/client/_nuxt/{storage-hdyfvofj.js → storage-azpxt6ha.js} +1 -1
- package/dist/client/_nuxt/{telemetry-bagjjni2.js → telemetry-grwafx07.js} +1 -1
- package/dist/client/_nuxt/{terminals-hem69799.js → terminals-oghzysn4.js} +1 -1
- package/dist/client/_nuxt/{timeline-luryae8h.js → timeline-opoxiqwk.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/package.json +5 -5
- package/dist/client/_nuxt/builds/meta/b4ea867d-556a-40bd-b899-5018491fcc2d.json +0 -1
- package/dist/client/_nuxt/dev-auth-j4vxv6a1.js +0 -1
- package/dist/client/_nuxt/error-404.css-pazrj6fo.css +0 -1
- package/dist/client/_nuxt/error-500.css-hlldh6hu.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,X as o,Y as s,_ as c,c as l,dt as u,g as d,h as f,m as p,tn as m,v as h,w as g,x as _}from"./vendor/json-editor-vue-hkofgjf7.js";import{b as v}from"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{c as y}from"./state-dkywakbf.js";import{u as b}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{n as x,u as S}from"./dev-auth-j4vxv6a1.js";import{t as C}from"./nuxt-link-mev16ngd.js";import{t as w}from"./_plugin-vue_export-helper-dp8rxgcg.js";import{t as T}from"./nicon-m5br9nvg.js";import{t as E}from"./nbutton-oi1rfqiz.js";import{t as D}from"./ncard-ech06vlh.js";import{r as O}from"./state-routes-m6gv5n9v.js";import{t as k}from"./telemetry-bagjjni2.js";import"./state-tabs-mo8r9nzk.js";import"./ntext-input-ngomk0u2.js";import{d as A,f as ee,n as j,o as M,p as te,s as ne}from"#entry";import{t as N}from"./ndropdown-moy416uy.js";import"./client-lh91kcpv.js";import{t as P}from"./ncode-block-coc4sua0.js";import{t as F}from"./composables-cwesk2q8.js";import{t as I}from"./nlink-dmk2d6qc.js";import{t as L}from"./ncheckbox-k9nxqa1w.js";import{t as R}from"./filepath-item-fnp9jxof.js";import{t as z}from"./help-fab-oc1qudll.js";import{t as B}from"./nnavbar-n3j7iul1.js";import{t as V}from"./nicon-title-e35pdr21.js";import{t as H}from"./nsection-block-l0c6dpg8.js";import{t as U}from"./nbadge-hpznun17.js";import{t as W}from"./duration-display-20xlusue.js";import{n as G,r as K,t as q}from"./state-modules-ehax0fup.js";import{t as J}from"./vue-virtual-scroller.esm-d0igfpwe.js";import{t as Y}from"./code-diff-cb7twqkt.js";var X={flex:`~ col gap2`,"flex-auto":``,"of-hidden":``,px1:``},Z={"gap-1t":``,flex:``,"items-center":``,"text-ellipsis":``,"ws-nowrap":``,"text-lg":``},re={key:2},ie={key:1,flex:`~ gap-2`,title:`Documentation`},ae={key:2,flex:`~ gap-2`},oe={key:0,flex:`~ gap-4 items-center`},se={key:0,flex:`~ gap-2 items-center`,op50:``},ce={key:1,flex:`~ gap-2 items-center`,op50:``},le={key:1},ue={flex:`~ col`,"items-end":``},de={key:0,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p4:``},fe=[`src`,`alt`],pe={key:1,"i-carbon-cube":``,ma:``,"flex-none":``,"text-4xl":``,op30:``},me={key:1,flex:`~`,mt2:``,"flex-auto":``,"items-end":``,"justify-end":``},he=[`src`],ge={flex:``,"justify-end":``},_e=`https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/`,ve=`https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/`,ye=`https://github.com/`,be=`https://www.npmjs.com/package/`,xe=n({__name:`ModuleItemBase`,props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(t){let n=t,_=p(()=>({...n.mod?.meta,...n.mod,...n.info})),{format:v}=Intl.NumberFormat(navigator.language||`en`,{notation:`compact`,maximumFractionDigits:1}),y=p(()=>v(_.value.stats?.stars||0)),b=p(()=>v(_.value.stats?.downloads||0)),x=A();return(n,p)=>{let v=C,S=T,w=W,E=D;return a(),d(E,{p4:``,flex:`~ gap2`},{default:u(()=>[f(`div`,X,[o(n.$slots,`main`,{},()=>[f(`div`,Z,[t.mod.isPackageModule?(a(),d(v,{key:0,to:be+(_.value.npm||_.value.name),target:`_blank`,hover:`underline text-primary`},{default:u(()=>[e(m(_.value.name),1)]),_:1},8,[`to`])):t.mod.entryPath?(a(),h(`button`,{key:1,role:`button`,hover:`underline text-primary`,onClick:p[0]||=e=>r(x)(t.mod.entryPath)},m(_.value.name),1)):(a(),h(`span`,re,m(_.value.name),1)),o(n.$slots,`badge`)]),_.value.description?(a(),h(`div`,{key:0,class:i(t.compact?`ws-nowrap of-hidden truncate`:`line-clamp-2`),"mt--1":``,"text-sm":``,op50:``},m(_.value.description),3)):c(``,!0),p[3]||=f(`div`,{"flex-auto":``},null,-1),_.value.website?(a(),h(`div`,ie,[p[1]||=f(`span`,{"i-carbon-link":``,"flex-none":``,"text-lg":``,op50:``},null,-1),g(v,{to:_.value.website,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:u(()=>[e(m(_.value.website.replace(/^https?:\/\//,``)),1)]),_:1},8,[`to`])])):c(``,!0),_.value.github?(a(),h(`div`,ae,[p[2]||=f(`span`,{"i-carbon-logo-github":``,"flex-none":``,"text-lg":``,op50:``},null,-1),g(v,{to:_.value.github,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:u(()=>[e(m(_.value.github.replace(/^https?:\/\/github.com\//,``)),1)]),_:1},8,[`to`])])):c(``,!0)]),o(n.$slots,`items`),_.value.stats?(a(),h(`div`,oe,[_.value.stats.stars?(a(),h(`div`,se,[g(S,{icon:`carbon-star`,"flex-none":``,"text-lg":``}),f(`span`,null,m(y.value),1)])):c(``,!0),_.value.stats.downloads?(a(),h(`div`,ce,[g(S,{icon:`carbon-download`,"flex-none":``,"text-lg":``}),f(`span`,null,m(b.value),1)])):c(``,!0)])):c(``,!0),t.mod.timings?.setup?(a(),h(`div`,le,[g(w,{title:`Module Setup Time`,flex:`~ items-center`,duration:t.mod.timings.setup,factor:.5},{before:u(()=>[g(S,{icon:`carbon-time`,mr2:``,"flex-none":``,"text-lg":``,op50:``})]),_:1},8,[`duration`])])):c(``,!0)]),f(`div`,ue,[_.value.icon||t.mod.isPackageModule?(a(),h(`div`,de,[_.value.icon?(a(),h(`img`,{key:0,src:_e+_.value.icon,alt:t.mod.name,ma:``},null,8,fe)):(a(),h(`div`,pe))])):c(``,!0),_.value.maintainers?.length&&t.maintainers?(a(),h(`div`,me,[(a(!0),h(l,null,s(_.value.maintainers,e=>(a(),d(v,{key:e.name,target:`_blank`,to:ye+e.github,title:e.name},{default:u(()=>[f(`img`,{src:ve+e.github,"h-6":``,"w-6":``,"rounded-full":``},null,8,he)]),_:2},1032,[`to`,`title`]))),128))])):c(``,!0),n.$slots.actions?(a(),h(l,{key:2},[p[4]||=f(`div`,{"flex-auto":``},null,-1),f(`div`,ge,[o(n.$slots,`actions`)])],64)):c(``,!0)])]),_:3})}}}),Q=Object.assign(xe,{__name:`ModuleItemBase`}),Se={key:0,flex:`~ gap-2`,title:`Open on filesystem`},Ce={key:1,"mx--2":``},we=[`onClick`],Te={key:2,"mx--2":``},Ee=[`onClick`],De={op50:``},Oe={"text-green":``},ke={key:3,flex:`~ gap-2`,"items-center":``,title:`NPM`},Ae={"text-sm":``,op50:``},je=n({__name:`ModuleItem`,props:{mod:{}},setup(e){let t=e,n=p(()=>t.mod.info),r=p(()=>({...t.mod?.meta,...t.mod,...n.value})),i=O();return(t,o)=>{let s=R,l=C,p=K,_=Q;return a(),d(_,{mod:e.mod,info:n.value},{items:u(()=>[e.mod.entryPath?(a(),h(`div`,Se,[o[0]||=f(`span`,{"i-carbon-folder-move-to":``,"flex-none":``,"text-lg":``,op50:``},null,-1),g(s,{filepath:e.mod.entryPath,"text-sm":``,op50:``,hover:`text-primary op100`},null,8,[`filepath`])])):c(``,!0),r.value.npm?(a(),d(p,{key:r.value.npm,"package-name":r.value.npm,options:{dev:!0}},{default:u(({info:e,update:t,state:n,id:r,restart:s})=>[n===`running`?(a(),d(l,{key:0,flex:`~ gap-2`,"animate-pulse":``,"items-center":``,to:r?`/modules/terminals`:void 0,onClick:e=>r?i.value=r:void 0},{default:u(()=>[...o[1]||=[f(`span`,{"i-carbon-circle-dash":``,"flex-none":``,"animate-spin":``,"text-lg":``,op50:``},null,-1),f(`code`,{"text-sm":``,op50:``},`Upgrading...`,-1)]]),_:1},8,[`to`,`onClick`])):n===`updated`?(a(),h(`div`,Ce,[f(`button`,{flex:`~ gap-2`,hover:`bg-primary/20`,"items-center":``,rounded:``,"bg-primary:10":``,px2:``,"text-sm":``,"text-primary":``,onClick:s},[...o[2]||=[f(`span`,{"i-carbon-intent-request-active":``,"flex-none":``,"text-lg":``,"text-primary":``},null,-1),f(`code`,{"text-xs":``},`Update installed, click to restart`,-1)]],8,we)])):e?.needsUpdate?(a(),h(`div`,Te,[f(`button`,{flex:`~ gap-2`,title:`Click to upgrade`,"items-center":``,rounded:``,px2:``,"text-sm":``,hover:`bg-active`,onClick:e=>t()},[o[3]||=f(`span`,{"i-carbon-intent-request-upgrade":``,"flex-none":``,"text-lg":``,op50:``},null,-1),f(`code`,De,`v`+m(e.current),1),o[4]||=f(`div`,{"i-carbon-arrow-right":``,op50:``},null,-1),f(`code`,Oe,`v`+m(e.latest),1)],8,Ee)])):e?.latest?(a(),h(`div`,ke,[o[5]||=f(`span`,{"i-carbon-cube":``,"flex-none":``,"text-lg":``,op50:``},null,-1),f(`code`,Ae,`v`+m(e.current),1)])):c(``,!0)]),_:1},8,[`package-name`])):c(``,!0)]),_:1},8,[`mod`,`info`])}}}),Me=Object.assign(je,{__name:`ModuleItem`}),Ne=n({__name:`ModuleItemInstall`,props:{item:{}},emits:[`start`],setup(t,{emit:n}){let r=t,o=n,s=q(),l=p(()=>s.value.find(e=>e.name===r.item.npm)),f=p(()=>l.value&&l.value.isPackageModule),m=p(()=>l.value&&l.value.isPackageModule&&l.value.isUninstallable);async function h(e,t){let n=t===`install`?b.installNuxtModule:b.uninstallNuxtModule,r=await n(await x(),e.npm,!0);k(`modules:${t}`,{moduleName:e.npm}),r.commands&&await S.start(e,r,t)&&(j.value.push({name:e.npm,info:e,processId:r.processId}),o(`start`),await n(await x(),e.npm,!1))}let v={};return(n,r)=>{let o=U,s=E,l=N,p=Q;return a(),d(p,{mod:v,role:f.value?``:`button`,info:t.item,mb2:``,"h-full":``,class:i(f.value?`border-dashed op75`:`hover:bg-active!`),compact:!0,onClick:r[1]||=e=>f.value?null:h(t.item,`install`)},_({_:2},[f.value?{name:`badge`,fn:u(()=>[g(o,{n:`green`,textContent:`Installed`}),m.value?(a(),d(l,{key:0,n:`sm green`},{trigger:u(({click:e})=>[g(s,{icon:`carbon-overflow-menu-vertical`,border:!1,onClick:t=>e()},null,8,[`onClick`])]),default:u(()=>[g(s,{icon:`carbon-trash-can`,n:`red`,onClick:r[0]||=e=>h(t.item,`uninstall`)},{default:u(()=>[...r[2]||=[e(` Uninstall `,-1)]]),_:1})]),_:1})):c(``,!0)]),key:`0`}:void 0]),1032,[`role`,`info`,`class`])}}}),Pe=Object.assign(Ne,{__name:`ModuleItemInstall`}),Fe={"h-full":``,flex:`~ col gap-4`},Ie={flex:`~ items-center`},Le={flex:`~ col`,"w-30":``,"of-auto":``},Re={flex:`~ justify-between`,"w-full":``,"text-xs":``,capitalize:``,op75:``},ze={flex:`~ items-center gap-2`},Be={flex:`~ gap1`,"text-sm":``,op50:``},Ve={key:0},He={"flex-auto":``,"of-auto":``,flex:`~ col gap-2`,pl6:``,pr4:``},Ue=n({__name:`ModuleInstallList`,emits:[`close`],setup(n,{emit:i}){let o=i,_=G(),v=q(),y=[`downloads`,`stars`,`updated`,`created`],b=t(!1),x=t(y[0]),S=t(!0),C={downloads:(e,t)=>e.stats.downloads-t.stats.downloads,stars:(e,t)=>e.stats.stars-t.stats.stars,created:(e,t)=>e.stats.createdAt-t.stats.createdAt,updated:(e,t)=>e.stats.publishedAt-t.stats.publishedAt},w=p(()=>_.value?.toSorted((e,t)=>C[x.value](e,t)*(b.value?1:-1))),D=t(``),O=p(()=>new ne(_.value||[],{keys:[`name`,`description`,`npm`,`category`],sortFn:(e,t)=>{let n=_.value?.[e.idx],r=_.value?.[t.idx];return n&&r?C[x.value](n,r)*(b.value?1:-1):e.score-t.score},threshold:.2})),k=p(()=>{let e=w.value;return S.value&&(e=(e||[]).filter(e=>!v.value.some(t=>t.name===e.name))),D.value?O.value.search(D.value).map(e=>e.item).filter(t=>e?.includes(t)):e});return(t,n)=>{let i=V,p=E,v=T,C=N,w=L,O=B,A=Pe;return a(),h(`div`,Fe,[g(i,{mx6:``,mt6:``,"text-xl":``,op75:``,icon:`i-carbon-intent-request-create`,text:`Install Module`}),g(O,{search:D.value,"onUpdate:search":n[2]||=e=>D.value=e,"no-padding":``,"px-6":``,"pb-3":``,"pt-2":``},{actions:u(()=>[g(C,{direction:`end`,n:`sm primary`},{trigger:u(({click:t})=>[f(`div`,Ie,[g(p,{icon:b.value?`tabler:sort-ascending`:`tabler:sort-descending`,"h-full":``,"rounded-r-none":``,onClick:n[0]||=e=>b.value=!b.value},null,8,[`icon`]),g(p,{flex:`~ justify-between`,"min-w-30":``,"border-l-0":``,"rounded-l-none":``,"px-2":``,capitalize:``,hover:`border-l-1`,onClick:e=>t()},{default:u(()=>[e(m(x.value)+` `,1),g(v,{icon:`carbon:chevron-down`})]),_:1},8,[`onClick`])])]),default:u(()=>[f(`div`,Le,[(a(),h(l,null,s(y,t=>g(p,{key:t,border:!1,p2:``,hover:`n-checkbox-hover text-green`,onClick:e=>x.value=t},{default:u(()=>[f(`span`,Re,[e(m(t)+` `,1),x.value===t?(a(),d(v,{key:0,icon:`carbon:checkmark`})):c(``,!0)])]),_:2},1032,[`onClick`])),64))])]),_:1})]),default:u(()=>[f(`div`,ze,[g(w,{modelValue:S.value,"onUpdate:modelValue":n[1]||=e=>S.value=e,n:`primary md`},{default:u(()=>[...n[4]||=[f(`span`,{op75:``},`Exclude installed modules`,-1)]]),_:1},8,[`modelValue`]),f(`div`,Be,[D.value||S.value?(a(),h(`span`,Ve,m(k.value?.length)+` matched · `,1)):c(``,!0),f(`span`,null,m(r(_)?.length)+` modules in total`,1)])])]),_:1},8,[`search`]),f(`div`,He,[g(r(J),{class:`scroller`,items:k.value,"item-size":200,"key-field":`name`},{default:u(({item:e})=>[g(A,{item:e,onStart:n[3]||=e=>o(`close`)},null,8,[`item`])]),_:1},8,[`items`])])])}}}),We=Object.assign(Ue,{__name:`ModuleInstallList`}),Ge={flex:`~ col gap-2`,"w-150":``,p4:``,border:`t base`},Ke={capitalize:``},qe={op50:``},Je={flex:`~ gap-3`,mt2:``,"justify-end":``},$=n({__name:`ModuleActionDialog`,setup(t){let n=y(),o=A(),s={};return(t,c)=>{let l=Q,p=P,h=I,_=Y,v=te,y=E,b=ee;return a(),d(r(S),null,{default:u(({resolve:t,args:a})=>[g(b,{"model-value":!0,onClose:e=>t(!1)},{default:u(()=>[g(l,{mod:s,info:a[0],border:`none`,"w-150":``,"n-panel-grids":``},null,8,[`info`]),f(`div`,Ge,[f(`h2`,{"text-xl":``,class:i(a[2]===`install`?`text-primary`:`text-red`)},[f(`span`,Ke,m(a[2]),1),c[1]||=e(),f(`code`,null,m(a[0].name),1),c[2]||=e(`? `,-1)],2),c[7]||=f(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),g(p,{code:a[1].commands.join(` `),lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),f(`p`,qe,[c[3]||=e(` Then your `,-1),g(h,{role:`button`,n:`primary`,underline:``,onClick:c[0]||=e=>r(o)(r(n)?._nuxtConfigFile),textContent:`Nuxt config`}),c[4]||=e(` will be updated as: `,-1)]),g(_,{from:a[1].configOriginal,to:a[1].configGenerated,"max-h-80":``,"of-auto":``,py2:``,border:`~ base rounded`,lang:`ts`},null,8,[`from`,`to`]),c[8]||=f(`p`,null,[f(`span`,{op50:``},`After that, Nuxt will `),f(`span`,{"text-orange":``},`restart automatically`),e(`. `)],-1),f(`div`,Je,[g(v,{n:`sm amber`,"flex-auto":``,icon:`i-carbon-data-backup`},{default:u(()=>[...c[5]||=[e(` Please make sure to backup your project first. `,-1)]]),_:1}),g(y,{onClick:e=>t(!1)},{default:u(()=>[...c[6]||=[e(` Cancel `,-1)]]),_:1},8,[`onClick`]),g(y,{n:`solid`,capitalize:``,class:i(a[2]===`install`?`n-primary`:`n-red`),onClick:e=>t(!0)},{default:u(()=>[e(m(a[2]),1)]),_:2},1032,[`class`,`onClick`])])])]),_:2},1032,[`onClose`])]),_:1})}}}),Ye=Object.assign($,{__name:`ModuleActionDialog`}),Xe={},Ze={class:`markdown-body`};function Qe(t,n){return a(),h(`div`,Ze,[...n[0]||=[f(`template`,null,[f(`div`,{class:`markdown-body`},[f(`h1`,null,`Modules`),f(`p`,null,[e(`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 `),f(`code`,{"v-pre":``},`nuxt.config`),e(`.`)]),f(`p`,null,[e(`You can explore the list of modules on `),f(`a`,{href:`https://nuxt.com/modules`,target:`_blank`,rel:`noopener`},`nuxt.com/modules`),e(` or install them directly inside the DevTools.`)]),f(`p`,null,[f(`a`,{href:`https://nuxt.com/docs/guide/concepts/modules`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var $e=w(Xe,[[`render`,Qe]]),et={"h-full":``,"w-full":``,"of-auto":``},tt={relative:``,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p3:``},nt=[`src`,`alt`],rt={"text-lg":``,"group-hover":`text-primary`,transition:``,flex:`~ gap-2 items-center`},it={op75:``},at={key:0,border:`l base`,pos:`fixed bottom-0 right-0 top-0`,"z-200":``,"w-150":``,"bg-base":``},ot=`https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/`,st=n({__name:`modules`,setup(e){F({icon:`carbon-3d-mpr-toggle`,title:`Modules`,order:5});let n=t(!1),i=q(),o=O(),_=p(()=>i.value.filter(e=>e.isPackageModule)),y=p(()=>i.value.filter(e=>!e.isPackageModule));return M(()=>[{id:`action:modules:install`,title:`Install a new module`,icon:`i-carbon-intent-request-create `,action:()=>{n.value=!0}}]),(e,t)=>{let i=Me,p=D,b=C,x=H,S=E,w=We,T=Ye,O=$e,k=z;return a(),h(l,null,[f(`div`,et,[g(x,{icon:`carbon-3d-mpr-toggle`,text:`Installed Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${_.value.length}`},{default:u(()=>[(a(!0),h(l,null,s(_.value,e=>(a(),d(i,{key:e.name,mod:e},null,8,[`mod`]))),128)),(a(!0),h(l,null,s(`processInstallingModules`in e?e.processInstallingModules:r(j),e=>(a(),d(b,{key:e.processId,block:``,"min-h-30":``,to:`/modules/terminals`,onClick:t=>o.value=e.processId},{default:u(()=>[g(p,{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:u(()=>[f(`div`,tt,[f(`img`,{src:ot+e.info.icon,alt:e.info.name,ma:``},null,8,nt),t[4]||=f(`div`,{"i-carbon-cube":``,ma:``,"text-4xl":``,op30:``},null,-1)]),f(`div`,rt,[t[5]||=f(`div`,{"i-carbon-circle-dash":``,"animate-spin":``,"text-xl":``,op75:``},null,-1),f(`span`,it,`Installing `+m(e.name)+`...`,1)])]),_:2},1024)]),_:2},1032,[`onClick`]))),128)),g(p,{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:t[0]||=e=>n.value=!0},{default:u(()=>[...t[6]||=[f(`div`,{"i-carbon-intent-request-create":``,"text-4xl":``,op40:``,"group-hover":`op75 text-primary`,transition:``},null,-1),f(`div`,{"text-lg":``,op40:``,"group-hover":`op75 text-primary`,transition:``},` Install New Module `,-1)]]),_:1})]),_:1},8,[`description`]),y.value.length?(a(),d(x,{key:0,icon:`carbon-3d-mpr-toggle`,text:`User Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${y.value.length}`},{default:u(()=>[(a(!0),h(l,null,s(y.value,e=>(a(),h(l,{key:e.meta?.name||e.entryPath},[e.meta?.name||e.entryPath?(a(),d(i,{key:0,mod:e},null,8,[`mod`])):c(``,!0)],64))),128))]),_:1},8,[`description`])):c(``,!0),g(v,{name:`fade-in`},{default:u(()=>[n.value?(a(),h(`div`,{key:0,class:`fixed bottom-0 left-0 right-0 top-0 z-100`,"bg-black:20":``,"backdrop-blur-2":``,onClick:t[1]||=e=>n.value=!1})):c(``,!0)]),_:1}),g(v,{name:`slide-in`},{default:u(()=>[n.value?(a(),h(`div`,at,[g(S,{icon:`carbon-close`,pos:`absolute top-3 right-3 z-10`,"rounded-full":``,"text-xl":``,border:!1,onClick:t[2]||=e=>n.value=!1}),g(w,{onClose:t[3]||=e=>n.value=!1})])):c(``,!0)]),_:1}),g(T)]),g(k,null,{default:u(()=>[g(O)]),_:1})],64)}}});export{st as default};
|
|
1
|
+
import{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,X as o,Y as s,_ as c,c as l,dt as u,g as d,h as f,m as p,tn as m,v as h,w as g,x as _}from"./vendor/json-editor-vue-hkofgjf7.js";import{b as v}from"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{c as y}from"./state-dkywakbf.js";import{u as b}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{n as x,u as S}from"./dev-auth-i6naz7u3.js";import{t as C}from"./nuxt-link-mev16ngd.js";import{t as w}from"./_plugin-vue_export-helper-dp8rxgcg.js";import{t as T}from"./nicon-m5br9nvg.js";import{t as E}from"./nbutton-oi1rfqiz.js";import{t as D}from"./ncard-ech06vlh.js";import{r as O}from"./state-routes-m6gv5n9v.js";import{t as k}from"./telemetry-grwafx07.js";import"./state-tabs-mo8r9nzk.js";import"./ntext-input-ngomk0u2.js";import{d as A,f as ee,n as j,o as M,p as te,s as ne}from"#entry";import{t as N}from"./ndropdown-moy416uy.js";import"./client-lh91kcpv.js";import{t as P}from"./ncode-block-coc4sua0.js";import{t as F}from"./composables-cwesk2q8.js";import{t as I}from"./nlink-dmk2d6qc.js";import{t as L}from"./ncheckbox-k9nxqa1w.js";import{t as R}from"./filepath-item-fnp9jxof.js";import{t as z}from"./help-fab-oc1qudll.js";import{t as B}from"./nnavbar-n3j7iul1.js";import{t as V}from"./nicon-title-e35pdr21.js";import{t as H}from"./nsection-block-l0c6dpg8.js";import{t as U}from"./nbadge-hpznun17.js";import{t as W}from"./duration-display-20xlusue.js";import{n as G,r as K,t as q}from"./state-modules-gvepguo2.js";import{t as J}from"./vue-virtual-scroller.esm-d0igfpwe.js";import{t as Y}from"./code-diff-cb7twqkt.js";var X={flex:`~ col gap2`,"flex-auto":``,"of-hidden":``,px1:``},Z={"gap-1t":``,flex:``,"items-center":``,"text-ellipsis":``,"ws-nowrap":``,"text-lg":``},re={key:2},ie={key:1,flex:`~ gap-2`,title:`Documentation`},ae={key:2,flex:`~ gap-2`},oe={key:0,flex:`~ gap-4 items-center`},se={key:0,flex:`~ gap-2 items-center`,op50:``},ce={key:1,flex:`~ gap-2 items-center`,op50:``},le={key:1},ue={flex:`~ col`,"items-end":``},de={key:0,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p4:``},fe=[`src`,`alt`],pe={key:1,"i-carbon-cube":``,ma:``,"flex-none":``,"text-4xl":``,op30:``},me={key:1,flex:`~`,mt2:``,"flex-auto":``,"items-end":``,"justify-end":``},he=[`src`],ge={flex:``,"justify-end":``},_e=`https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/`,ve=`https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/`,ye=`https://github.com/`,be=`https://www.npmjs.com/package/`,xe=n({__name:`ModuleItemBase`,props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(t){let n=t,_=p(()=>({...n.mod?.meta,...n.mod,...n.info})),{format:v}=Intl.NumberFormat(navigator.language||`en`,{notation:`compact`,maximumFractionDigits:1}),y=p(()=>v(_.value.stats?.stars||0)),b=p(()=>v(_.value.stats?.downloads||0)),x=A();return(n,p)=>{let v=C,S=T,w=W,E=D;return a(),d(E,{p4:``,flex:`~ gap2`},{default:u(()=>[f(`div`,X,[o(n.$slots,`main`,{},()=>[f(`div`,Z,[t.mod.isPackageModule?(a(),d(v,{key:0,to:be+(_.value.npm||_.value.name),target:`_blank`,hover:`underline text-primary`},{default:u(()=>[e(m(_.value.name),1)]),_:1},8,[`to`])):t.mod.entryPath?(a(),h(`button`,{key:1,role:`button`,hover:`underline text-primary`,onClick:p[0]||=e=>r(x)(t.mod.entryPath)},m(_.value.name),1)):(a(),h(`span`,re,m(_.value.name),1)),o(n.$slots,`badge`)]),_.value.description?(a(),h(`div`,{key:0,class:i(t.compact?`ws-nowrap of-hidden truncate`:`line-clamp-2`),"mt--1":``,"text-sm":``,op50:``},m(_.value.description),3)):c(``,!0),p[3]||=f(`div`,{"flex-auto":``},null,-1),_.value.website?(a(),h(`div`,ie,[p[1]||=f(`span`,{"i-carbon-link":``,"flex-none":``,"text-lg":``,op50:``},null,-1),g(v,{to:_.value.website,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:u(()=>[e(m(_.value.website.replace(/^https?:\/\//,``)),1)]),_:1},8,[`to`])])):c(``,!0),_.value.github?(a(),h(`div`,ae,[p[2]||=f(`span`,{"i-carbon-logo-github":``,"flex-none":``,"text-lg":``,op50:``},null,-1),g(v,{to:_.value.github,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:u(()=>[e(m(_.value.github.replace(/^https?:\/\/github.com\//,``)),1)]),_:1},8,[`to`])])):c(``,!0)]),o(n.$slots,`items`),_.value.stats?(a(),h(`div`,oe,[_.value.stats.stars?(a(),h(`div`,se,[g(S,{icon:`carbon-star`,"flex-none":``,"text-lg":``}),f(`span`,null,m(y.value),1)])):c(``,!0),_.value.stats.downloads?(a(),h(`div`,ce,[g(S,{icon:`carbon-download`,"flex-none":``,"text-lg":``}),f(`span`,null,m(b.value),1)])):c(``,!0)])):c(``,!0),t.mod.timings?.setup?(a(),h(`div`,le,[g(w,{title:`Module Setup Time`,flex:`~ items-center`,duration:t.mod.timings.setup,factor:.5},{before:u(()=>[g(S,{icon:`carbon-time`,mr2:``,"flex-none":``,"text-lg":``,op50:``})]),_:1},8,[`duration`])])):c(``,!0)]),f(`div`,ue,[_.value.icon||t.mod.isPackageModule?(a(),h(`div`,de,[_.value.icon?(a(),h(`img`,{key:0,src:_e+_.value.icon,alt:t.mod.name,ma:``},null,8,fe)):(a(),h(`div`,pe))])):c(``,!0),_.value.maintainers?.length&&t.maintainers?(a(),h(`div`,me,[(a(!0),h(l,null,s(_.value.maintainers,e=>(a(),d(v,{key:e.name,target:`_blank`,to:ye+e.github,title:e.name},{default:u(()=>[f(`img`,{src:ve+e.github,"h-6":``,"w-6":``,"rounded-full":``},null,8,he)]),_:2},1032,[`to`,`title`]))),128))])):c(``,!0),n.$slots.actions?(a(),h(l,{key:2},[p[4]||=f(`div`,{"flex-auto":``},null,-1),f(`div`,ge,[o(n.$slots,`actions`)])],64)):c(``,!0)])]),_:3})}}}),Q=Object.assign(xe,{__name:`ModuleItemBase`}),Se={key:0,flex:`~ gap-2`,title:`Open on filesystem`},Ce={key:1,"mx--2":``},we=[`onClick`],Te={key:2,"mx--2":``},Ee=[`onClick`],De={op50:``},Oe={"text-green":``},ke={key:3,flex:`~ gap-2`,"items-center":``,title:`NPM`},Ae={"text-sm":``,op50:``},je=n({__name:`ModuleItem`,props:{mod:{}},setup(e){let t=e,n=p(()=>t.mod.info),r=p(()=>({...t.mod?.meta,...t.mod,...n.value})),i=O();return(t,o)=>{let s=R,l=C,p=K,_=Q;return a(),d(_,{mod:e.mod,info:n.value},{items:u(()=>[e.mod.entryPath?(a(),h(`div`,Se,[o[0]||=f(`span`,{"i-carbon-folder-move-to":``,"flex-none":``,"text-lg":``,op50:``},null,-1),g(s,{filepath:e.mod.entryPath,"text-sm":``,op50:``,hover:`text-primary op100`},null,8,[`filepath`])])):c(``,!0),r.value.npm?(a(),d(p,{key:r.value.npm,"package-name":r.value.npm,options:{dev:!0}},{default:u(({info:e,update:t,state:n,id:r,restart:s})=>[n===`running`?(a(),d(l,{key:0,flex:`~ gap-2`,"animate-pulse":``,"items-center":``,to:r?`/modules/terminals`:void 0,onClick:e=>r?i.value=r:void 0},{default:u(()=>[...o[1]||=[f(`span`,{"i-carbon-circle-dash":``,"flex-none":``,"animate-spin":``,"text-lg":``,op50:``},null,-1),f(`code`,{"text-sm":``,op50:``},`Upgrading...`,-1)]]),_:1},8,[`to`,`onClick`])):n===`updated`?(a(),h(`div`,Ce,[f(`button`,{flex:`~ gap-2`,hover:`bg-primary/20`,"items-center":``,rounded:``,"bg-primary:10":``,px2:``,"text-sm":``,"text-primary":``,onClick:s},[...o[2]||=[f(`span`,{"i-carbon-intent-request-active":``,"flex-none":``,"text-lg":``,"text-primary":``},null,-1),f(`code`,{"text-xs":``},`Update installed, click to restart`,-1)]],8,we)])):e?.needsUpdate?(a(),h(`div`,Te,[f(`button`,{flex:`~ gap-2`,title:`Click to upgrade`,"items-center":``,rounded:``,px2:``,"text-sm":``,hover:`bg-active`,onClick:e=>t()},[o[3]||=f(`span`,{"i-carbon-intent-request-upgrade":``,"flex-none":``,"text-lg":``,op50:``},null,-1),f(`code`,De,`v`+m(e.current),1),o[4]||=f(`div`,{"i-carbon-arrow-right":``,op50:``},null,-1),f(`code`,Oe,`v`+m(e.latest),1)],8,Ee)])):e?.latest?(a(),h(`div`,ke,[o[5]||=f(`span`,{"i-carbon-cube":``,"flex-none":``,"text-lg":``,op50:``},null,-1),f(`code`,Ae,`v`+m(e.current),1)])):c(``,!0)]),_:1},8,[`package-name`])):c(``,!0)]),_:1},8,[`mod`,`info`])}}}),Me=Object.assign(je,{__name:`ModuleItem`}),Ne=n({__name:`ModuleItemInstall`,props:{item:{}},emits:[`start`],setup(t,{emit:n}){let r=t,o=n,s=q(),l=p(()=>s.value.find(e=>e.name===r.item.npm)),f=p(()=>l.value&&l.value.isPackageModule),m=p(()=>l.value&&l.value.isPackageModule&&l.value.isUninstallable);async function h(e,t){let n=t===`install`?b.installNuxtModule:b.uninstallNuxtModule,r=await n(await x(),e.npm,!0);k(`modules:${t}`,{moduleName:e.npm}),r.commands&&await S.start(e,r,t)&&(j.value.push({name:e.npm,info:e,processId:r.processId}),o(`start`),await n(await x(),e.npm,!1))}let v={};return(n,r)=>{let o=U,s=E,l=N,p=Q;return a(),d(p,{mod:v,role:f.value?``:`button`,info:t.item,mb2:``,"h-full":``,class:i(f.value?`border-dashed op75`:`hover:bg-active!`),compact:!0,onClick:r[1]||=e=>f.value?null:h(t.item,`install`)},_({_:2},[f.value?{name:`badge`,fn:u(()=>[g(o,{n:`green`,textContent:`Installed`}),m.value?(a(),d(l,{key:0,n:`sm green`},{trigger:u(({click:e})=>[g(s,{icon:`carbon-overflow-menu-vertical`,border:!1,onClick:t=>e()},null,8,[`onClick`])]),default:u(()=>[g(s,{icon:`carbon-trash-can`,n:`red`,onClick:r[0]||=e=>h(t.item,`uninstall`)},{default:u(()=>[...r[2]||=[e(` Uninstall `,-1)]]),_:1})]),_:1})):c(``,!0)]),key:`0`}:void 0]),1032,[`role`,`info`,`class`])}}}),Pe=Object.assign(Ne,{__name:`ModuleItemInstall`}),Fe={"h-full":``,flex:`~ col gap-4`},Ie={flex:`~ items-center`},Le={flex:`~ col`,"w-30":``,"of-auto":``},Re={flex:`~ justify-between`,"w-full":``,"text-xs":``,capitalize:``,op75:``},ze={flex:`~ items-center gap-2`},Be={flex:`~ gap1`,"text-sm":``,op50:``},Ve={key:0},He={"flex-auto":``,"of-auto":``,flex:`~ col gap-2`,pl6:``,pr4:``},Ue=n({__name:`ModuleInstallList`,emits:[`close`],setup(n,{emit:i}){let o=i,_=G(),v=q(),y=[`downloads`,`stars`,`updated`,`created`],b=t(!1),x=t(y[0]),S=t(!0),C={downloads:(e,t)=>e.stats.downloads-t.stats.downloads,stars:(e,t)=>e.stats.stars-t.stats.stars,created:(e,t)=>e.stats.createdAt-t.stats.createdAt,updated:(e,t)=>e.stats.publishedAt-t.stats.publishedAt},w=p(()=>_.value?.toSorted((e,t)=>C[x.value](e,t)*(b.value?1:-1))),D=t(``),O=p(()=>new ne(_.value||[],{keys:[`name`,`description`,`npm`,`category`],sortFn:(e,t)=>{let n=_.value?.[e.idx],r=_.value?.[t.idx];return n&&r?C[x.value](n,r)*(b.value?1:-1):e.score-t.score},threshold:.2})),k=p(()=>{let e=w.value;return S.value&&(e=(e||[]).filter(e=>!v.value.some(t=>t.name===e.name))),D.value?O.value.search(D.value).map(e=>e.item).filter(t=>e?.includes(t)):e});return(t,n)=>{let i=V,p=E,v=T,C=N,w=L,O=B,A=Pe;return a(),h(`div`,Fe,[g(i,{mx6:``,mt6:``,"text-xl":``,op75:``,icon:`i-carbon-intent-request-create`,text:`Install Module`}),g(O,{search:D.value,"onUpdate:search":n[2]||=e=>D.value=e,"no-padding":``,"px-6":``,"pb-3":``,"pt-2":``},{actions:u(()=>[g(C,{direction:`end`,n:`sm primary`},{trigger:u(({click:t})=>[f(`div`,Ie,[g(p,{icon:b.value?`tabler:sort-ascending`:`tabler:sort-descending`,"h-full":``,"rounded-r-none":``,onClick:n[0]||=e=>b.value=!b.value},null,8,[`icon`]),g(p,{flex:`~ justify-between`,"min-w-30":``,"border-l-0":``,"rounded-l-none":``,"px-2":``,capitalize:``,hover:`border-l-1`,onClick:e=>t()},{default:u(()=>[e(m(x.value)+` `,1),g(v,{icon:`carbon:chevron-down`})]),_:1},8,[`onClick`])])]),default:u(()=>[f(`div`,Le,[(a(),h(l,null,s(y,t=>g(p,{key:t,border:!1,p2:``,hover:`n-checkbox-hover text-green`,onClick:e=>x.value=t},{default:u(()=>[f(`span`,Re,[e(m(t)+` `,1),x.value===t?(a(),d(v,{key:0,icon:`carbon:checkmark`})):c(``,!0)])]),_:2},1032,[`onClick`])),64))])]),_:1})]),default:u(()=>[f(`div`,ze,[g(w,{modelValue:S.value,"onUpdate:modelValue":n[1]||=e=>S.value=e,n:`primary md`},{default:u(()=>[...n[4]||=[f(`span`,{op75:``},`Exclude installed modules`,-1)]]),_:1},8,[`modelValue`]),f(`div`,Be,[D.value||S.value?(a(),h(`span`,Ve,m(k.value?.length)+` matched · `,1)):c(``,!0),f(`span`,null,m(r(_)?.length)+` modules in total`,1)])])]),_:1},8,[`search`]),f(`div`,He,[g(r(J),{class:`scroller`,items:k.value,"item-size":200,"key-field":`name`},{default:u(({item:e})=>[g(A,{item:e,onStart:n[3]||=e=>o(`close`)},null,8,[`item`])]),_:1},8,[`items`])])])}}}),We=Object.assign(Ue,{__name:`ModuleInstallList`}),Ge={flex:`~ col gap-2`,"w-150":``,p4:``,border:`t base`},Ke={capitalize:``},qe={op50:``},Je={flex:`~ gap-3`,mt2:``,"justify-end":``},$=n({__name:`ModuleActionDialog`,setup(t){let n=y(),o=A(),s={};return(t,c)=>{let l=Q,p=P,h=I,_=Y,v=te,y=E,b=ee;return a(),d(r(S),null,{default:u(({resolve:t,args:a})=>[g(b,{"model-value":!0,onClose:e=>t(!1)},{default:u(()=>[g(l,{mod:s,info:a[0],border:`none`,"w-150":``,"n-panel-grids":``},null,8,[`info`]),f(`div`,Ge,[f(`h2`,{"text-xl":``,class:i(a[2]===`install`?`text-primary`:`text-red`)},[f(`span`,Ke,m(a[2]),1),c[1]||=e(),f(`code`,null,m(a[0].name),1),c[2]||=e(`? `,-1)],2),c[7]||=f(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),g(p,{code:a[1].commands.join(` `),lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),f(`p`,qe,[c[3]||=e(` Then your `,-1),g(h,{role:`button`,n:`primary`,underline:``,onClick:c[0]||=e=>r(o)(r(n)?._nuxtConfigFile),textContent:`Nuxt config`}),c[4]||=e(` will be updated as: `,-1)]),g(_,{from:a[1].configOriginal,to:a[1].configGenerated,"max-h-80":``,"of-auto":``,py2:``,border:`~ base rounded`,lang:`ts`},null,8,[`from`,`to`]),c[8]||=f(`p`,null,[f(`span`,{op50:``},`After that, Nuxt will `),f(`span`,{"text-orange":``},`restart automatically`),e(`. `)],-1),f(`div`,Je,[g(v,{n:`sm amber`,"flex-auto":``,icon:`i-carbon-data-backup`},{default:u(()=>[...c[5]||=[e(` Please make sure to backup your project first. `,-1)]]),_:1}),g(y,{onClick:e=>t(!1)},{default:u(()=>[...c[6]||=[e(` Cancel `,-1)]]),_:1},8,[`onClick`]),g(y,{n:`solid`,capitalize:``,class:i(a[2]===`install`?`n-primary`:`n-red`),onClick:e=>t(!0)},{default:u(()=>[e(m(a[2]),1)]),_:2},1032,[`class`,`onClick`])])])]),_:2},1032,[`onClose`])]),_:1})}}}),Ye=Object.assign($,{__name:`ModuleActionDialog`}),Xe={},Ze={class:`markdown-body`};function Qe(t,n){return a(),h(`div`,Ze,[...n[0]||=[f(`template`,null,[f(`div`,{class:`markdown-body`},[f(`h1`,null,`Modules`),f(`p`,null,[e(`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 `),f(`code`,{"v-pre":``},`nuxt.config`),e(`.`)]),f(`p`,null,[e(`You can explore the list of modules on `),f(`a`,{href:`https://nuxt.com/modules`,target:`_blank`,rel:`noopener`},`nuxt.com/modules`),e(` or install them directly inside the DevTools.`)]),f(`p`,null,[f(`a`,{href:`https://nuxt.com/docs/guide/concepts/modules`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var $e=w(Xe,[[`render`,Qe]]),et={"h-full":``,"w-full":``,"of-auto":``},tt={relative:``,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p3:``},nt=[`src`,`alt`],rt={"text-lg":``,"group-hover":`text-primary`,transition:``,flex:`~ gap-2 items-center`},it={op75:``},at={key:0,border:`l base`,pos:`fixed bottom-0 right-0 top-0`,"z-200":``,"w-150":``,"bg-base":``},ot=`https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/`,st=n({__name:`modules`,setup(e){F({icon:`carbon-3d-mpr-toggle`,title:`Modules`,order:5});let n=t(!1),i=q(),o=O(),_=p(()=>i.value.filter(e=>e.isPackageModule)),y=p(()=>i.value.filter(e=>!e.isPackageModule));return M(()=>[{id:`action:modules:install`,title:`Install a new module`,icon:`i-carbon-intent-request-create `,action:()=>{n.value=!0}}]),(e,t)=>{let i=Me,p=D,b=C,x=H,S=E,w=We,T=Ye,O=$e,k=z;return a(),h(l,null,[f(`div`,et,[g(x,{icon:`carbon-3d-mpr-toggle`,text:`Installed Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${_.value.length}`},{default:u(()=>[(a(!0),h(l,null,s(_.value,e=>(a(),d(i,{key:e.name,mod:e},null,8,[`mod`]))),128)),(a(!0),h(l,null,s(`processInstallingModules`in e?e.processInstallingModules:r(j),e=>(a(),d(b,{key:e.processId,block:``,"min-h-30":``,to:`/modules/terminals`,onClick:t=>o.value=e.processId},{default:u(()=>[g(p,{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:u(()=>[f(`div`,tt,[f(`img`,{src:ot+e.info.icon,alt:e.info.name,ma:``},null,8,nt),t[4]||=f(`div`,{"i-carbon-cube":``,ma:``,"text-4xl":``,op30:``},null,-1)]),f(`div`,rt,[t[5]||=f(`div`,{"i-carbon-circle-dash":``,"animate-spin":``,"text-xl":``,op75:``},null,-1),f(`span`,it,`Installing `+m(e.name)+`...`,1)])]),_:2},1024)]),_:2},1032,[`onClick`]))),128)),g(p,{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:t[0]||=e=>n.value=!0},{default:u(()=>[...t[6]||=[f(`div`,{"i-carbon-intent-request-create":``,"text-4xl":``,op40:``,"group-hover":`op75 text-primary`,transition:``},null,-1),f(`div`,{"text-lg":``,op40:``,"group-hover":`op75 text-primary`,transition:``},` Install New Module `,-1)]]),_:1})]),_:1},8,[`description`]),y.value.length?(a(),d(x,{key:0,icon:`carbon-3d-mpr-toggle`,text:`User Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${y.value.length}`},{default:u(()=>[(a(!0),h(l,null,s(y.value,e=>(a(),h(l,{key:e.meta?.name||e.entryPath},[e.meta?.name||e.entryPath?(a(),d(i,{key:0,mod:e},null,8,[`mod`])):c(``,!0)],64))),128))]),_:1},8,[`description`])):c(``,!0),g(v,{name:`fade-in`},{default:u(()=>[n.value?(a(),h(`div`,{key:0,class:`fixed bottom-0 left-0 right-0 top-0 z-100`,"bg-black:20":``,"backdrop-blur-2":``,onClick:t[1]||=e=>n.value=!1})):c(``,!0)]),_:1}),g(v,{name:`slide-in`},{default:u(()=>[n.value?(a(),h(`div`,at,[g(S,{icon:`carbon-close`,pos:`absolute top-3 right-3 z-10`,"rounded-full":``,"text-xl":``,border:!1,onClick:t[2]||=e=>n.value=!1}),g(w,{onClose:t[3]||=e=>n.value=!1})])):c(``,!0)]),_:1}),g(T)]),g(k,null,{default:u(()=>[g(O)]),_:1})],64)}}});export{st as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,F as r,Mt as i,Q as a,Qt as o,W as s,Y as c,_ as l,c as u,dt as d,en as f,ft as p,g as m,h,m as g,tn as _,v,w as y}from"./vendor/json-editor-vue-hkofgjf7.js";import{A as b,y as x}from"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{C as S,a as C}from"./state-dkywakbf.js";import{A as w,B as T,S as E,V as D,a as O,h as k,i as A,k as j,o as M,r as N}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import"./dev-auth-
|
|
1
|
+
import{C as e,Ct as t,E as n,F as r,Mt as i,Q as a,Qt as o,W as s,Y as c,_ as l,c as u,dt as d,en as f,ft as p,g as m,h,m as g,tn as _,v,w as y}from"./vendor/json-editor-vue-hkofgjf7.js";import{A as b,y as x}from"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{C as S,a as C}from"./state-dkywakbf.js";import{A as w,B as T,S as E,V as D,a as O,h as k,i as A,k as j,o as M,r as N}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import"./dev-auth-i6naz7u3.js";import"./nuxt-link-mev16ngd.js";import{t as P}from"./_plugin-vue_export-helper-dp8rxgcg.js";import"./nicon-m5br9nvg.js";import{t as F}from"./nbutton-oi1rfqiz.js";import{t as I}from"./ncard-ech06vlh.js";import"./state-routes-m6gv5n9v.js";import"./telemetry-grwafx07.js";import{t as ee}from"./ntext-input-ngomk0u2.js";import{d as L,u as R}from"#entry";import"./client-lh91kcpv.js";import{t as z}from"./ncode-block-coc4sua0.js";import{t as te}from"./composables-cwesk2q8.js";import{t as B}from"./nlink-dmk2d6qc.js";import{t as V}from"./help-fab-oc1qudll.js";import{t as H}from"./nnavbar-n3j7iul1.js";import"./nicon-title-e35pdr21.js";import{t as U}from"./nsection-block-l0c6dpg8.js";const W=[{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.`}];var G={flex:`~ wrap`,"mt--2":``,"w-full":``,"flex-none":``},K=[`onClick`],q={key:0,"x-divider":``},J={key:1,"x-divider":``},Y={flex:`~ gap-1 items-center`,class:`px2 pt2`,lg:`px4 py2`},X={"w-full":``,p2:``,op75:``},Z={key:1,m4:``,flex:`~ col gap-2`},Q={flex:`~ gap-1 wrap items-center`},ne={key:1},re={flex:`~ gap-2`,n:`sm primary`,absolute:``,"right-2":``,"top-2":``},ie=n({__name:`OpenGraphMissingTabs`,props:{tags:{},matchedRouteFilepath:{}},setup(n){let r=n,a=/"([^"]+)":/g,f=/"/g,p=g(()=>W.filter(e=>!r.tags?.some(t=>t.name===e.name))),b=g(()=>{let e={},t={};p.value.forEach(n=>{n.seoMeta?Object.assign(t,n.seoMeta):e=x(e,n.head)});let n=[];if(Object.keys(t).length){let e=JSON.stringify(t,null,2).replace(a,`$1:`).replace(f,`'`);n.push(`useSeoMeta(${e})`)}if(Object.keys(e).length){let t=JSON.stringify(e,null,2).replace(a,`$1:`).replace(f,`'`);n.push(`useHead(${t})`)}return n.join(`
|
|
2
2
|
|
|
3
3
|
`)}),S=R(),C=L(),w=[`Missing Tags`,`Code Snippet`],T=t(w[0]);return(t,r)=>{let a=B,f=I,g=F,x=z,E=U;return p.value.length?(s(),m(E,{key:0,text:`Missing Tags`,description:`${p.value.length} missing tags`,icon:`carbon:warning-other`,"header-class":`text-orange op100! [[open]_&]:text-inherit`,padding:!1},{default:d(()=>[h(`div`,G,[(s(),v(u,null,c(w,(e,t)=>h(`button`,{key:t,px4:``,py2:``,border:`r t base`,hover:`bg-active`,class:o(e===T.value?``:`border-b`),onClick:t=>T.value=e},[h(`div`,{class:o(e===T.value?``:`op30`),capitalize:``},_(e),3)],10,K)),64)),r[3]||=h(`div`,{border:`b base`,"flex-auto":``},null,-1)]),T.value===w[0]?(s(),m(f,{key:0,grid:`~ cols-[1fr] lg:cols-[max-content_1fr]`,m4:``,"items-center":``,"justify-between":``,"of-hidden":``},{default:d(()=>[(s(!0),v(u,null,c(p.value,(t,n)=>(s(),v(u,{key:n},[n?(s(),v(`div`,q)):l(``,!0),n?(s(),v(`div`,J)):l(``,!0),h(`div`,Y,[r[4]||=h(`div`,{"i-carbon-warning":``,"text-orange":``},null,-1),y(a,{"op-50":``,href:t.docs,target:`_blank`,n:`orange`},{default:d(()=>[e(_(t.name),1)]),_:2},1032,[`href`])]),h(`div`,X,_(t.description),1)],64))),128))]),_:1})):(s(),v(`div`,Z,[h(`p`,Q,[y(g,{icon:`carbon-copy`,n:`xs`,"px-2":``,onClick:r[0]||=e=>i(S)(b.value,`open-graph-suggestion`)},{default:d(()=>[...r[5]||=[e(` Copy `,-1)]]),_:1}),r[7]||=e(` the following code snippet and paste it into your `,-1),n.matchedRouteFilepath?(s(),m(g,{key:0,icon:`carbon-launch`,n:`xs`,"px-2":``,onClick:r[1]||=e=>i(C)(n.matchedRouteFilepath)},{default:d(()=>[...r[6]||=[e(` page component `,-1)]]),_:1})):(s(),v(`span`,ne,`page component`)),r[8]||=e(` to full fill the missing tags. `,-1)]),y(f,{relative:``,"n-code-block":``},{default:d(()=>[y(x,{code:b.value,lang:`ts`,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`]),h(`div`,re,[y(g,{icon:`carbon-copy`,onClick:r[2]||=e=>i(S)(b.value,`open-graph-suggestion`)},{default:d(()=>[...r[9]||=[e(` Copy `,-1)]]),_:1})])]),_:1})]))]),_:1},8,[`description`])):l(``,!0)}}}),ae=Object.assign(ie,{__name:`OpenGraphMissingTabs`}),oe={class:`max-w-[524px] min-w-[524px] cursor-pointer bg-base`},se={class:`break-words border border-base px-[12px] py-[10px] antialiased`},ce={class:`overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50`},le={class:`block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left`,style:{"border-spacing":`0px`}},ue={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`}},fe=n({__name:`SocialFacebook`,props:{card:{}},setup(e){return(t,n)=>(s(),v(`div`,oe,[h(`div`,{class:`h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat`,style:f({backgroundImage:`url(${JSON.stringify(e.card.image)})`})},null,4),h(`div`,se,[h(`div`,ce,_(e.card.url),1),h(`div`,le,[h(`div`,ue,_(e.card.title),1),h(`div`,de,_(e.card.description),1)])])]))}}),pe=Object.assign(fe,{__name:`SocialFacebook`}),me={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`}},he={class:`break-words border-base p-[0.75em] antialiased`,flex:`~ col justify-center gap-[2px]`},ge={class:`overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50`},_e={class:`m-0 truncate text-[15px] font-semibold leading-[20px]`},ve={class:`line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50`},ye=n({__name:`SocialTwitter`,props:{tags:{}},setup(e){let t=e,n=g(()=>S(t.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`}]})),r=g(()=>n.value.image?t.tags.find(e=>e.tag===`meta`&&e.name===`twitter:card`)?.value||`summary_large_image`:`summary`);return(e,t)=>(s(),v(`div`,me,[h(`div`,{class:o([`cursor-pointer overflow-hidden leading-[1.3em]`,r.value===`summary_large_image`?``:`flex`]),hover:`bg-[#88888805]`},[r.value===`summary_large_image`?(s(),v(`div`,{key:0,class:`h-[220px] border-b border-base bg-cover bg-center bg-no-repeat`,style:f({backgroundImage:`url(${JSON.stringify(n.value.image)})`})},null,4)):(s(),v(`div`,{key:1,class:`h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat`,style:f({backgroundImage:`url(${JSON.stringify(n.value.image)})`})},null,4)),h(`div`,he,[h(`div`,ge,_(n.value.url),1),h(`div`,_e,_(n.value.title),1),h(`div`,ve,_(n.value.description),1)])],2)]))}}),be=Object.assign(ye,{__name:`SocialTwitter`}),xe={class:`max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] bg-base shadow-md`},Se={class:`break-words p-[10px] antialiased`},Ce={class:`block h-auto max-h-[50px] border-separate select-none break-words text-left`,style:{"border-spacing":`0px`}},we={class:`pb-[2px] text-[16px] font-semibold leading-[24px]`},Te={class:`overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85`},Ee=n({__name:`SocialLinkedin`,props:{card:{}},setup(e){return(t,n)=>(s(),v(`div`,xe,[h(`div`,{class:`h-[270px] border-b border-base bg-cover bg-center bg-no-repeat`,style:f({backgroundImage:`url(${JSON.stringify(e.card.image)})`})},null,4),h(`div`,Se,[h(`div`,Ce,[h(`div`,we,_(e.card.title),1),h(`div`,Te,_(e.card.url),1)])])]))}}),De=Object.assign(Ee,{__name:`SocialLinkedin`}),Oe={class:`relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 bg-base py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26]`},ke={class:`pl-[10px] pr-[8px]`},Ae={class:`text-[#3390ec] leading-normal underline`},je={class:`quote w-full flex`},Me={class:`flex flex-col gap-1`},Ne={key:0,class:`my-[3px] overflow-hidden rounded`},Pe=[`src`],Fe={class:`cursor-pointer text-sm text-[#3390ec]`},Ie={class:`cursor-pointer text-sm`},Le={class:`cursor-pointer text-sm`},Re={class:`flex justify-end text-xs text-[#707579]`},ze=n({__name:`SocialTelegram`,props:{card:{}},setup(e){let t=E(),n=D(w(),`HH:mm`);return(r,a)=>(s(),v(`div`,Oe,[h(`div`,ke,[h(`div`,Ae,_(e.card.url),1),h(`div`,je,[h(`div`,Me,[e.card.image?(s(),v(`div`,Ne,[h(`img`,{class:`h-full max-w-full w-full rounded object-cover`,src:e.card.image},null,8,Pe)])):l(``,!0),h(`div`,Fe,[h(`strong`,null,_(i(t).hostname),1)]),h(`div`,Ie,[h(`strong`,null,_(e.card.title),1)]),h(`div`,Le,_(e.card.description),1)])]),h(`div`,Re,[h(`span`,null,_(i(n)),1)])]),a[0]||=h(`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`},[h(`g`,{transform:`translate(9 -14)`,"fill-rule":`evenodd`},[h(`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)]))}}),Be=Object.assign(P(ze,[[`__scopeId`,`data-v-4566448e`]]),{__name:`SocialTelegram`}),Ve={flex:`~ col`,"w-full":``},He={flex:`~ wrap`,"w-full":``,"flex-none":``},Ue=[`onClick`],We={flex:`~ items-center justify-center`,"flex-auto":``,p4:``,"n-panel-grids":``},Ge={key:0},Ke={key:1},qe={key:2},Je={key:3},$=n({__name:`SocialPreviewGroup`,props:{tags:{}},setup(e){let t=e,n=[`twitter`,`facebook`,`linkedin`,`telegram`],r=j(`nuxt-devtools-social-preview-tab`,n[0]),a=g(()=>S(t.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(t,d)=>{let f=pe,p=be,m=De,g=Be;return s(),v(`div`,Ve,[h(`div`,He,[(s(),v(u,null,c(n,(e,t)=>h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:o(e===i(r)?``:`border-b`),onClick:t=>r.value=e},[h(`div`,{class:o(e===i(r)?``:`op30`),capitalize:``},_(e),3)],10,Ue)),64)),d[0]||=h(`div`,{border:`b base`,"flex-auto":``},null,-1)]),h(`div`,We,[i(r)===`facebook`?(s(),v(`div`,Ge,[y(f,{card:a.value},null,8,[`card`])])):i(r)===`twitter`?(s(),v(`div`,Ke,[y(p,{tags:e.tags},null,8,[`tags`])])):i(r)===`linkedin`?(s(),v(`div`,qe,[y(m,{card:a.value},null,8,[`card`])])):i(r)===`telegram`?(s(),v(`div`,Je,[y(g,{card:a.value},null,8,[`card`])])):l(``,!0)])])}}}),Ye=Object.assign($,{__name:`SocialPreviewGroup`}),Xe={},Ze={class:`markdown-body`};function Qe(t,n){return s(),v(`div`,Ze,[...n[0]||=[h(`template`,null,[h(`div`,{class:`markdown-body`},[h(`h1`,null,`Open Graph`),h(`p`,null,[e(`Nuxt provides several different ways to manage your meta tags using `),h(`a`,{href:`https://unhead.harlanzw.com/`,target:`_blank`,rel:`noopener`},[h(`code`,{"v-pre":``},`unhead`)]),e(`. Improve your Nuxt app’s SEO with powerful head config, composables and components.`)]),h(`p`,null,[h(`a`,{href:`https://nuxt.com/docs/getting-started/seo-meta`,target:`_blank`,rel:`noopener`},`Learn more on the documentation`)]),h(`hr`),h(`p`,null,`You can also find how open graph specs are defined in:`),h(`ul`,null,[h(`li`,null,[h(`a`,{href:`https://ogp.me/`,target:`_blank`,rel:`noopener`},`The Open Graph protocol`)]),h(`li`,null,[h(`a`,{href:`https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started`,target:`_blank`,rel:`noopener`},`Twitter Cards`)])])])],-1)]])}var $e=P(Xe,[[`render`,Qe]]),et={grid:`~ lg:cols-2`,"h-full":``,"w-full":``,"of-hidden":``},tt={"flex-auto":``,"of-auto":``},nt={"flex-none":``,flex:`~ gap2 items-center`},rt={flex:`~ col`},it={key:0,"x-divider":``},at={key:1,"x-divider":``},ot={mr2:``,px4:``,py2:``},st=n({__name:`open-graph`,setup(n){te({icon:`carbon:image-search`,title:`Open Graph`,layout:`full`,category:`analyze`,show:()=>{let e=N();return()=>!!e.value}});let f=t(0),x=A(),S=k(async()=>(f.value,(await x.value?.resolveTags()).map(e=>{let t=e.props||{};return e.tag===`htmlAttrs`&&t.lang?{tag:`html`,name:`lang`,value:t.lang}:t.charset?{tag:`meta`,name:`charset`,value:t.charset}:{tag:e.tag,name:t.property??t.name??t.rel??e.tag,value:t.content??t.href??e.textContent??JSON.stringify(t)}})),[]),w=t(!0);function E(){f.value+=1}let D=M(),j=O(),P=t(``),R=C(),z=L();async function G(){P.value!==j.value.path&&D.value.push(P.value||`/`)}let K=g(()=>P.value===j.value.path?[]:D.value.resolve(P.value||`/`).matched),q=g(()=>{let e=R.value.find(e=>e.path===j.value?.matched?.[0]?.path);return e?.file||e?.meta?.file});function J(e){return W.find(t=>t.name===e.name)?.docs}return T(j).toBeTruthy().then(e=>{P.value=e.path}),T(D).toBeTruthy().then(e=>{e.afterEach(()=>{r(()=>{P.value=j.value.path,setTimeout(E,200),setTimeout(E,800)})})}),(t,n)=>{let r=ee,f=F,g=H,x=B,C=I,T=U,D=ae,O=Ye,k=$e,A=V,M=a(`tooltip`);return s(),v(u,null,[h(`div`,et,[h(`div`,tt,[y(g,null,{search:d(()=>[y(r,{modelValue:P.value,"onUpdate:modelValue":n[0]||=e=>P.value=e,placeholder:`Route`,icon:`carbon-direction-right-01 scale-y--100`,n:`primary`,"flex-auto":``,"font-mono":``,class:o([`px-5 py-2`,i(j)?.path===P.value?``:K.value.length?`text-green`:`text-orange`]),onKeydown:b(G,[`enter`])},null,8,[`modelValue`,`class`])]),actions:d(()=>[h(`div`,nt,[q.value?p((s(),m(f,{key:0,"text-lg":``,border:!1,icon:`carbon:launch`,title:`Open file in editor`,onClick:n[1]||=e=>i(z)(q.value)},null,512)),[[M,`Open file in editor`]]):l(``,!0),p(y(f,{"text-lg":``,border:!1,icon:`carbon:reset`,title:`Refresh Data`,onClick:E},null,512),[[M,`Refresh Data`]]),p(y(f,{"text-lg":``,border:!1,icon:w.value?`carbon:side-panel-open`:`carbon:open-panel-right`,title:`Toggle Preview`,onClick:n[2]||=e=>w.value=!w.value},null,8,[`icon`]),[[M,`Toggle Preview`]])])]),_:1}),h(`div`,rt,[y(T,{text:`Tags`,icon:`carbon:tag-group`},{default:d(()=>[y(C,{grid:`~ cols-[max-content_1fr]`,"items-center":``,"justify-between":``,"of-hidden":``},{default:d(()=>[(s(!0),v(u,null,c(i(S),(t,n)=>(s(),v(u,{key:n},[n?(s(),v(`div`,it)):l(``,!0),n?(s(),v(`div`,at)):l(``,!0),h(`div`,ot,[y(x,{op50:``,href:J(t),target:`_blank`,n:`primary`},{default:d(()=>[e(_(t.name),1)]),_:2},1032,[`href`])]),y(x,{href:String(t.value).match(/^https?:\/\//)?t.value:void 0,target:`_blank`,"w-full":``,p2:``,"font-mono":``,n:`primary`},{default:d(()=>[e(_(t.value),1)]),_:2},1032,[`href`])],64))),128))]),_:1})]),_:1}),y(D,{tags:i(S),"matched-route-filepath":q.value},null,8,[`tags`,`matched-route-filepath`])])]),w.value&&i(S)?.length?(s(),m(O,{key:0,tags:i(S),"flex-none":``,"border-base":``,"lt-lg":`border-t`,lg:`h-full w-140 border-l`},null,8,[`tags`])):l(``,!0)]),y(A,null,{default:d(()=>[y(k)]),_:1})],64)}}});export{st as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,E as t,Mt as n,W as r,_ as i,c as a,dt as o,g as s,h as c,m as l,tn as u,v as d,w as f}from"./vendor/json-editor-vue-hkofgjf7.js";import{g as p}from"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{O as m,b as h,c as g,n as _,v}from"./state-dkywakbf.js";import{n as y,r as b}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{n as x,r as S}from"./dev-auth-
|
|
1
|
+
import{C as e,E as t,Mt as n,W as r,_ as i,c as a,dt as o,g as s,h as c,m as l,tn as u,v as d,w as f}from"./vendor/json-editor-vue-hkofgjf7.js";import{g as p}from"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{O as m,b as h,c as g,n as _,v}from"./state-dkywakbf.js";import{n as y,r as b}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{n as x,r as S}from"./dev-auth-i6naz7u3.js";import{t as C}from"./nuxt-link-mev16ngd.js";import"./nicon-m5br9nvg.js";import{t as w}from"./nbutton-oi1rfqiz.js";import"./ncard-ech06vlh.js";import"./state-routes-m6gv5n9v.js";import"./telemetry-grwafx07.js";import{n as ee}from"./state-tabs-mo8r9nzk.js";import{t as te}from"./npanel-grids-bl37sfq7.js";import{T as ne,i as T,p as E}from"#entry";import"./client-lh91kcpv.js";import"./ncode-block-coc4sua0.js";import{t as D}from"./composables-cwesk2q8.js";import"./ncheckbox-k9nxqa1w.js";import"./nbadge-hpznun17.js";import{t as O}from"./state-components-mnfvrbtw.js";import{r as k,t as A}from"./state-modules-gvepguo2.js";var j={key:0},M={key:1,flex:`~ col gap2`,ma:``,"h-full":``,"max-w-300":``,"w-full":``,p5:``,px5:``,"md:px20":``},N={flex:`~ col`,"mt-5":``,"items-center":``,"md:mt-20":``},P={op40:``},F={flex:`~ gap2 wrap`},I={key:5,"pointer-events-none":``,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ auto gap-6`},L={grid:`~ cols-[auto_auto] gap-x-5 items-center`},R={"text-right":``},z={"text-right":``},B={"text-right":``},re={"text-right":``},V={flex:`~ col gap2`},H={flex:`~ gap-6 wrap`,"mt-5":``,"items-center":``,"justify-center":``},U={flex:`col gap-2`,mxa:``,hidden:``,"w-100":``,"text-sm":``,op50:``,"md:flex":``},W={flex:`~ gap-1`,"items-center":``},G={flex:`~ gap-1`,"items-center":``},K=t({__name:`overview`,setup(t){D({icon:`carbon-information`,title:`Overview`,order:-100});let K=b(),q=g(),J=O(),Y=_(),X=A(),ie=ee(),Z=h(),ae=p();function oe(){ne.value=!0,ae.push(`/`)}let Q=l(()=>K.value?.nuxt.vueApp.version),$=l(()=>K.value?.metrics.loading());function se(){x()}return(t,l)=>{let p=T,h=C,g=k,_=E,b=w,x=te;return r(),s(x,{"h-screen":``,"w-full":``,flex:``},{default:o(()=>[n(q)?(r(),d(`div`,M,[l[40]||=c(`div`,{"flex-auto":``},null,-1),c(`div`,N,[f(h,{flex:`~`,"mt--10":``,"items-center":``,"justify-center":``,to:`https://devtools.nuxt.com/`,target:`_blank`},{default:o(()=>[f(p,{"h-10":``})]),_:1}),c(`button`,{mb6:``,mt3:``,"text-center":``,"text-sm":``,flex:`~ gap-1 wrap`,onClick:oe},[l[0]||=c(`span`,{op40:``},` Nuxt DevTools `,-1),c(`code`,P,`v`+u(n(`3.2.3-29553253.114aa17`)),1),f(g,{"package-name":`@nuxt/devtools`,options:{dev:!0},"show-version":!1})])]),c(`div`,F,[f(h,{to:`https://nuxt.com`,target:`_blank`,"theme-card-green":``,p4:``,flex:`~ col auto`},{default:o(()=>[l[1]||=c(`div`,{"logos-nuxt-icon":``,"text-3xl":``},null,-1),f(g,{"package-name":`nuxt`,options:{dev:!0}})]),_:1}),Q.value?(r(),s(h,{key:0,to:`https://vuejs.org`,target:`_blank`,"theme-card-green":``,p4:``,flex:`~ col auto`},{default:o(()=>[l[2]||=c(`div`,{"logos-vue":``,"text-3xl":``},null,-1),c(`code`,null,`v`+u(Q.value),1)]),_:1})):i(``,!0),n(q)?(r(),d(a,{key:1},[n(q)&&n(q).pages&&n(K)?(r(),s(h,{key:0,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ col auto`,to:`/modules/pages`},{default:o(()=>[l[3]||=c(`div`,{"carbon-tree-view-alt":``,"text-3xl":``},null,-1),c(`div`,null,u(n(m)(n(ie).length,`page`)),1)]),_:1})):i(``,!0),n(q)?(r(),s(h,{key:1,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ col auto`,to:`/modules/components`},{default:o(()=>[l[4]||=c(`div`,{"i-carbon-assembly-cluster":``,"text-3xl":``},null,-1),c(`div`,null,u(n(m)(n(J).length,`component`)),1)]),_:1})):i(``,!0),n(q)&&n(Y)?(r(),s(h,{key:2,"min-w-40":``,"theme-card-yellow":``,p4:``,flex:`~ col auto`,to:`/modules/imports`},{default:o(()=>[l[5]||=c(`div`,{"carbon-function":``,"text-3xl":``},null,-1),c(`div`,null,u(n(m)(n(Y).imports.length,`import`)),1)]),_:1})):i(``,!0),n(q)?(r(),s(h,{key:3,"min-w-40":``,"theme-card-purple":``,p4:``,flex:`~ col auto`,to:`/modules/modules`},{default:o(()=>[l[6]||=c(`div`,{"carbon-3d-mpr-toggle":``,"text-3xl":``},null,-1),c(`div`,null,u(n(m)(n(X).length,`module`)),1)]),_:1})):i(``,!0),n(q)?(r(),s(h,{key:4,"min-w-40":``,"theme-card-teal":``,p4:``,flex:`~ col auto`,to:`/modules/plugins`},{default:o(()=>[l[7]||=c(`div`,{"carbon-plug":``,"text-3xl":``},null,-1),c(`div`,null,u(n(m)(n(q).plugins.length,`plugin`)),1)]),_:1})):i(``,!0),$.value?(r(),d(`div`,I,[l[12]||=c(`div`,{"i-carbon-time-plot":``,"flex-none":``,"text-3xl":``},null,-1),c(`div`,L,[$.value.ssrStart?(r(),d(a,{key:0},[l[8]||=c(`div`,{"text-sm":``},` SSR to full load `,-1),c(`div`,R,u(n(v)($.value.appLoad-$.value.ssrStart)),1)],64)):i(``,!0),l[10]||=c(`div`,{"text-sm":``},` Page load `,-1),c(`div`,z,u(n(v)($.value.appLoad-$.value.appInit)),1),l[11]||=c(`div`,{"text-sm":``},` Navigation `,-1),c(`div`,B,u(n(v)($.value.pageEnd-$.value.pageStart)),1),$.value.hmrStart?(r(),d(a,{key:1},[l[9]||=c(`div`,{"text-sm":``},` HMR `,-1),c(`div`,re,u(n(v)($.value.hmrEnd-$.value.hmrStart)),1)],64)):i(``,!0)])])):i(``,!0)],64)):i(``,!0)]),c(`div`,V,[n(y)?(r(),s(_,{key:0,n:`yellow5`,icon:`carbon-unlink`,"justify-center":``},{default:o(()=>[...l[13]||=[e(` Not connected to the client app, showing server-side data only. Use the embedded mode for full features. `,-1)]]),_:1})):i(``,!0),c(`button`,{title:`Authorize`,onClick:se},[(`isDevAuthed`in t?t.isDevAuthed:n(S))?i(``,!0):(r(),s(_,{key:0,n:`orange5`,icon:`i-carbon-locked`,"justify-center":``},{default:o(()=>[...l[14]||=[e(` Access from an untrusted browser, some features are limited. Click to authorize now. `,-1)]]),_:1}))])]),c(`div`,H,[l[16]||=c(`a`,{href:`https://github.com/nuxt/devtools`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-blue`,transition:``},[c(`div`,{"i-carbon-star":``}),e(` Star on GitHub `)],-1),l[17]||=c(`a`,{href:`https://github.com/nuxt/devtools/discussions/29`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-yellow`,transition:``},[c(`div`,{"i-carbon-data-enrichment":``}),e(` Ideas & Suggestions `)],-1),l[18]||=c(`a`,{href:`https://github.com/nuxt/devtools/discussions/31`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-lime`,transition:``},[c(`div`,{"i-carbon-plan":``}),e(` Project Roadmap `)],-1),l[19]||=c(`a`,{href:`https://github.com/nuxt/devtools/issues`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-rose`,transition:``},[c(`div`,{"i-carbon-debug":``}),e(` Bug Reports `)],-1),f(h,{to:`/settings`,flex:`~ gap1`,"inline-block":``,"items-center":``,op50:``,"hover:op80":``},{default:o(()=>[...l[15]||=[c(`div`,{"i-carbon-settings-adjust":``},null,-1),e(` Settings `,-1)]]),_:1})]),l[41]||=c(`div`,{"flex-auto":``},null,-1),c(`div`,U,[c(`div`,W,[n(Z)?(r(),d(a,{key:0},[f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[20]||=[e(` ⌘ Cmd `,-1)]]),_:1}),l[22]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[21]||=[e(` K `,-1)]]),_:1})],64)):(r(),d(a,{key:1},[f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[23]||=[e(` Ctrl `,-1)]]),_:1}),l[25]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[24]||=[e(` K `,-1)]]),_:1})],64)),l[26]||=c(`div`,{"flex-auto":``},null,-1),l[27]||=e(` Open Command Palette `,-1)]),c(`div`,G,[n(Z)?(r(),d(a,{key:0},[f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[28]||=[e(` ⇧ Shift `,-1)]]),_:1}),l[31]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[29]||=[e(` ⌥ Option `,-1)]]),_:1}),l[32]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[30]||=[e(` D `,-1)]]),_:1})],64)):(r(),d(a,{key:1},[f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[33]||=[e(` Shift `,-1)]]),_:1}),l[36]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[34]||=[e(` Alt `,-1)]]),_:1}),l[37]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[35]||=[e(` D `,-1)]]),_:1})],64)),l[38]||=c(`div`,{"flex-auto":``},null,-1),l[39]||=c(`div`,null,`Toggle DevTools`,-1)])])])):(r(),d(`div`,j,` Loading... `))]),_:1})}}});export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,Mt as r,Qt as i,V as a,W as o,Y as s,Z as c,_ as l,c as u,dt as d,g as f,h as p,m,tn as h,v as g,w as _}from"./vendor/json-editor-vue-hkofgjf7.js";import{A as v,j as y}from"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{M as b,a as x,c as S,i as C,s as w}from"./state-dkywakbf.js";import{a as T,o as E,r as D,u as O}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{n as ee}from"./dev-auth-j4vxv6a1.js";import"./nuxt-link-mev16ngd.js";import{t as k}from"./_plugin-vue_export-helper-dp8rxgcg.js";import"./nicon-m5br9nvg.js";import{t as A}from"./nbutton-oi1rfqiz.js";import"./ncard-ech06vlh.js";import"./state-routes-m6gv5n9v.js";import"./telemetry-bagjjni2.js";import"./npanel-grids-bl37sfq7.js";import{t as j}from"./ntext-input-ngomk0u2.js";import{d as M,u as N}from"#entry";import"./client-lh91kcpv.js";import{t as P}from"./composables-cwesk2q8.js";import{t as F}from"./filepath-item-fnp9jxof.js";import{t as te}from"./help-fab-oc1qudll.js";import"./nicon-title-e35pdr21.js";import{t as I}from"./nsection-block-l0c6dpg8.js";import{t as L}from"./nbadge-hpznun17.js";import"./nmarkdown-nct1w6kn.js";import{t as R}from"./launch-page-kf0w74wk.js";var z={block:``,"cursor-pointer":``},B={p2:``},V=[`onSubmit`],H={flex:`~`,"items-center":``,p2:``,"text-sm":``,"font-mono":``},U={key:1},W=n({__name:`RoutePathItem`,props:{route:{}},emits:[`navigate`],setup(n,{emit:r}){let a=n,v=r,b=/(:\w+[?*]?(?:\(\))?)/,x=/\(\)$/,S=/\/+/g,C=t([]),w=m(()=>{let e=T(a.route.path);return C.value=Array.from({length:e.length}).fill(``),e});function T(e){return e.split(b).filter(Boolean).map(e=>e[0]===`:`?e.replace(x,`?`):e)}let E=m(()=>w.value.map((e,t)=>e[0]===`:`?C.value[t]:e).join(``).replace(S,`/`)),D=m(()=>a.route.path.includes(`:`));function O(){v(`navigate`,E.value)}return(t,r)=>{let a=j,m=A,v=c(`VDropdown`);return D.value?(o(),f(v,{key:1},{popper:d(({hide:t})=>[p(`div`,B,[p(`form`,{flex:`~ col`,onSubmit:y(()=>{O(),t()},[`prevent`])},[D.value?(o(),g(u,{key:0},[r[0]||=p(`div`,{px2:``,"text-sm":``,op50:``},` Fill params and navigate: `,-1),p(`div`,H,[(o(!0),g(u,null,s(w.value,(e,t)=>(o(),g(u,{key:t},[e[0]===`:`?(o(),f(a,{key:0,modelValue:C.value[t],"onUpdate:modelValue":e=>C.value[t]=e,"w-20":``,"n-sm":``,placeholder:e.slice(1)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`])):(o(),g(`span`,U,h(e),1))],64))),128))])],64)):l(``,!0),_(m,{type:`submit`,block:``,n:`primary`},{default:d(()=>[...r[1]||=[e(` Navigate `,-1)]]),_:1})],40,V)])]),default:d(()=>[p(`code`,z,[(o(!0),g(u,null,s(w.value,(e,t)=>(o(),g(`span`,{key:t,class:i(e[0]===`:`?`text-gray border border-dashed rounded border-gray:50 px1`:``)},h(e[0]===`:`?e.slice(1):e),3))),128))])]),_:1})):(o(),g(`button`,{key:0,onClick:O},[p(`code`,null,h(n.route.path),1)]))}}}),G=Object.assign(W,{__name:`RoutePathItem`}),K={"max-w-full":``,"of-auto":``},q={"w-full":``},J={"w-20":``,"pr-1":``},Y={flex:``,"items-center":``,"justify-end":``},X={"text-sm":``},Z={flex:`inline gap3`,"items-center":``},Q={flex:`~ gap1`,pr2:``,op0:``,"group-hover:op100":``},ne=[`onClick`],re=[`onClick`],ie={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-left":``,"text-sm":``,"font-mono":``,op50:``},ae={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-center":``,"text-sm":``,"font-mono":``,op50:``},oe={"w-0":``,"ws-nowrap":``,"text-center":``,"text-sm":``,"font-mono":``},se={key:0},ce=[`onClick`],le=n({__name:`RoutesTable`,props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:[`navigate`],setup(e){let t=e,n=M(),a=w(),c=N(),d=m(()=>t.pages.toSorted((e,t)=>e.path.localeCompare(t.path)));function v(e){let r=t.layouts.find(t=>t.name===e);r&&n(r.file)}function y(e){if(typeof e==`string`)return a.value?.middleware.find(t=>t.name===e)?.path}return(t,a)=>{let m=L,b=G,x=F;return o(),g(`div`,K,[p(`table`,q,[a[4]||=p(`thead`,{border:`b base`},[p(`tr`,null,[p(`th`,{"text-left":``}),p(`th`,{"text-left":``},` Route Path `),p(`th`,{"text-left":``},` Name `),p(`th`,{"text-left":``},` Middleware `),p(`th`,null,` Layout `)])],-1),p(`tbody`,null,[(o(!0),g(u,null,s(d.value,s=>(o(),g(`tr`,{key:s.name,class:`group`,"h-7":``,border:`b dashed transparent hover:base`},[p(`td`,J,[p(`div`,Y,[e.matched.find(e=>e.name===s.name)?(o(),f(m,{key:0,n:`green`,title:`active`,textContent:`active`})):e.matchedPending.find(e=>e.name===s.name)?(o(),f(m,{key:1,n:`teal`,title:`next`,textContent:`next`})):l(``,!0)])]),p(`td`,X,[p(`div`,Z,[_(b,{route:s,class:i(e.matched.find(e=>e.name===s.name)?`text-primary`:e.matchedPending.find(e=>e.name===s.name)?`text-teal`:``),"ws-nowrap":``,onNavigate:a[0]||=e=>t.$emit(`navigate`,e)},null,8,[`route`,`class`]),p(`div`,Q,[s.file||s.meta?.file?(o(),g(`button`,{key:0,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Open in editor`,onClick:e=>r(n)(s.file||s.meta?.file)},[...a[2]||=[p(`div`,{"i-carbon-script-reference":``},null,-1)]],8,ne)):l(``,!0),s.file||s.meta?.file?(o(),g(`button`,{key:1,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Copy path`,onClick:e=>r(c)(s.file||s.meta?.file)},[...a[3]||=[p(`div`,{"i-carbon-copy":``},null,-1)]],8,re)):l(``,!0)])])]),p(`td`,ie,h(s.name),1),p(`td`,ae,[_(x,{filepath:y(s.meta.middleware),override:`${s.meta.middleware||`-`}`},null,8,[`filepath`,`override`])]),p(`td`,oe,[s.meta.layout===!1?(o(),g(`span`,se,`-`)):s.meta.layout?(o(),g(`button`,{key:1,onClick:e=>v(s.meta.layout)},h(s.meta.layout),9,ce)):(o(),g(`button`,{key:2,"text-sm":``,op15:``,onClick:a[1]||=e=>v(`default`)},` (default) `))])]))),128))])])])}}}),ue=Object.assign(le,{__name:`RoutesTable`}),de={},fe={class:`markdown-body`};function pe(t,n){return o(),g(`div`,fe,[...n[0]||=[p(`template`,null,[p(`div`,{class:`markdown-body`},[p(`h1`,null,`Pages`),p(`p`,null,[e(`Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your `),p(`code`,{"v-pre":``},`~/pages/`),e(` directory.`)]),p(`p`,null,[p(`a`,{href:`https://nuxt.com/docs/getting-started/routing`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)]),p(`hr`),p(`h2`,null,`Middlewares`),p(`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.`),p(`p`,null,[p(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/middleware`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var me=k(de,[[`render`,pe]]),he={key:0,"h-full":``,"of-auto":``},ge={border:`b base`,flex:`~ col gap1`,"n-navbar-glass":``,px4:``,py3:``},_e={"font-mono":``},$={key:1,op50:``},ve={key:0,"text-orange":``,op75:``},ye={key:1,op50:``},be={"min-h-14":``},xe={key:1,class:`py-4 text-center`},Se={"w-full":``},Ce={mr1:``},we=n({__name:`pages`,setup(n){P({icon:`carbon-tree-view-alt`,title:`Pages`,show:()=>{let e=D();return()=>!!e.value},order:1});let c=E(),y=T(),k=S(),A=w(),M=C(),N=x(),z=m(()=>A.value?.middleware||[]),B=t(``),V=t(0),H=m(()=>(z.value,B.value,M.value,V.value,c.value?.currentRoute?.value?.path));a(()=>{y.value&&(B.value=c.value?.currentRoute?.value?.path),c.value?.beforeEach(e=>{B.value=e.fullPath}),c.value?.afterEach(e=>{B.value=e.fullPath})});async function U(){B.value!==c.value?.currentRoute?.value?.path&&c.value.push(B.value||`/`)}let W=m(()=>c.value.resolve(B.value||`/`).matched);function G(e){c.value.push(e),B.value=e}let K=b(),q=m(()=>`./${K===4?`app/`:``}pages/index.vue`);return(t,n)=>{let a=j,m=ue,b=I,x=L,S=F,C=R,w=me,T=te;return o(),g(u,null,[r(k)?.pages&&r(c)?(o(),g(`div`,he,[p(`div`,ge,[p(`div`,null,[H.value===B.value?(o(),g(`span`,$,`Current route`)):(o(),g(u,{key:0},[n[1]||=p(`span`,{op50:``},`Navigate from `,-1),p(`span`,_e,h(H.value),1),n[2]||=p(`span`,{op50:``},` to `,-1)],64))]),_(a,{modelValue:B.value,"onUpdate:modelValue":n[0]||=e=>B.value=e,"font-mono":``,icon:`carbon-direction-right-01 scale-y--100`,class:i(H.value===B.value?``:W.value.length?`text-green`:`text-orange`),onKeydown:v(U,[`enter`])},null,8,[`modelValue`,`class`]),p(`div`,null,[H.value===B.value?(o(),g(`span`,ye,`Edit path above to navigate`)):(o(),g(u,{key:0},[n[3]||=p(`span`,null,[e(`Press `),p(`b`,{"font-bold":``},`Enter`),e(` to navigate`)],-1),W.value.length?l(``,!0):(o(),g(`span`,ve,` (no match)`))],64))])]),_(b,{icon:`carbon-tree-view`,text:`Matched Routes`,padding:!1},{default:d(()=>[p(`div`,be,[W.value.length?(o(),f(m,{key:0,pages:W.value,layouts:r(M)||[],matched:r(y).matched,"matched-pending":W.value,onNavigate:G},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])):(o(),g(`div`,xe,[...n[4]||=[p(`span`,{op50:``},`No routes matched`,-1)]]))])]),_:1}),_(b,{icon:`carbon-tree-view-alt`,text:`All Routes`,description:`${r(N).length} routes registered in your application`,padding:`pr5`},{default:d(()=>[_(m,{pages:r(N),layouts:r(M)||[],matched:r(y).matched,"matched-pending":W.value,onNavigate:G},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])]),_:1},8,[`description`]),z.value.length?(o(),f(b,{key:0,icon:`carbon:ibm-watson-studio`,text:`Middleware`,description:`${z.value.length} middleware registered in your application`,padding:`px13`},{default:d(()=>[p(`table`,Se,[n[5]||=p(`thead`,{border:`b base`,"h-7":``},[p(`tr`,null,[p(`th`,{"text-left":``},` Name `),p(`th`,{"text-left":``},` Path `)])],-1),(o(!0),g(u,null,s(z.value,e=>(o(),g(`tr`,{key:e.path,"h-7":``},[p(`td`,null,[p(`span`,Ce,h(e.name),1),e.global?(o(),f(x,{key:0,n:`green`,title:`Registered at runtime as a global component`,textContent:`global`})):l(``,!0)]),p(`td`,null,[_(S,{filepath:e.path},null,8,[`filepath`])])]))),128))])]),_:1},8,[`description`])):l(``,!0)])):(o(),f(C,{key:1,icon:`carbon-tree-view-alt`,name:`wizard-pages`,title:`Nuxt Routing`,description:`Create ${q.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 t?t.rpc:r(O)).runWizard(await(`ensureDevAuthToken`in t?t.ensureDevAuthToken:r(ee))(),`enablePages`)}}]},null,8,[`description`,`actions`])),_(T,null,{default:d(()=>[_(w)]),_:1})],64)}}});export{we as default};
|
|
1
|
+
import{C as e,Ct as t,E as n,Mt as r,Qt as i,V as a,W as o,Y as s,Z as c,_ as l,c as u,dt as d,g as f,h as p,m,tn as h,v as g,w as _}from"./vendor/json-editor-vue-hkofgjf7.js";import{A as v,j as y}from"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{M as b,a as x,c as S,i as C,s as w}from"./state-dkywakbf.js";import{a as T,o as E,r as D,u as O}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{n as ee}from"./dev-auth-i6naz7u3.js";import"./nuxt-link-mev16ngd.js";import{t as k}from"./_plugin-vue_export-helper-dp8rxgcg.js";import"./nicon-m5br9nvg.js";import{t as A}from"./nbutton-oi1rfqiz.js";import"./ncard-ech06vlh.js";import"./state-routes-m6gv5n9v.js";import"./telemetry-grwafx07.js";import"./npanel-grids-bl37sfq7.js";import{t as j}from"./ntext-input-ngomk0u2.js";import{d as M,u as N}from"#entry";import"./client-lh91kcpv.js";import{t as P}from"./composables-cwesk2q8.js";import{t as F}from"./filepath-item-fnp9jxof.js";import{t as te}from"./help-fab-oc1qudll.js";import"./nicon-title-e35pdr21.js";import{t as I}from"./nsection-block-l0c6dpg8.js";import{t as L}from"./nbadge-hpznun17.js";import"./nmarkdown-nct1w6kn.js";import{t as R}from"./launch-page-ehgep7ys.js";var z={block:``,"cursor-pointer":``},B={p2:``},V=[`onSubmit`],H={flex:`~`,"items-center":``,p2:``,"text-sm":``,"font-mono":``},U={key:1},W=n({__name:`RoutePathItem`,props:{route:{}},emits:[`navigate`],setup(n,{emit:r}){let a=n,v=r,b=/(:\w+[?*]?(?:\(\))?)/,x=/\(\)$/,S=/\/+/g,C=t([]),w=m(()=>{let e=T(a.route.path);return C.value=Array.from({length:e.length}).fill(``),e});function T(e){return e.split(b).filter(Boolean).map(e=>e[0]===`:`?e.replace(x,`?`):e)}let E=m(()=>w.value.map((e,t)=>e[0]===`:`?C.value[t]:e).join(``).replace(S,`/`)),D=m(()=>a.route.path.includes(`:`));function O(){v(`navigate`,E.value)}return(t,r)=>{let a=j,m=A,v=c(`VDropdown`);return D.value?(o(),f(v,{key:1},{popper:d(({hide:t})=>[p(`div`,B,[p(`form`,{flex:`~ col`,onSubmit:y(()=>{O(),t()},[`prevent`])},[D.value?(o(),g(u,{key:0},[r[0]||=p(`div`,{px2:``,"text-sm":``,op50:``},` Fill params and navigate: `,-1),p(`div`,H,[(o(!0),g(u,null,s(w.value,(e,t)=>(o(),g(u,{key:t},[e[0]===`:`?(o(),f(a,{key:0,modelValue:C.value[t],"onUpdate:modelValue":e=>C.value[t]=e,"w-20":``,"n-sm":``,placeholder:e.slice(1)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`])):(o(),g(`span`,U,h(e),1))],64))),128))])],64)):l(``,!0),_(m,{type:`submit`,block:``,n:`primary`},{default:d(()=>[...r[1]||=[e(` Navigate `,-1)]]),_:1})],40,V)])]),default:d(()=>[p(`code`,z,[(o(!0),g(u,null,s(w.value,(e,t)=>(o(),g(`span`,{key:t,class:i(e[0]===`:`?`text-gray border border-dashed rounded border-gray:50 px1`:``)},h(e[0]===`:`?e.slice(1):e),3))),128))])]),_:1})):(o(),g(`button`,{key:0,onClick:O},[p(`code`,null,h(n.route.path),1)]))}}}),G=Object.assign(W,{__name:`RoutePathItem`}),K={"max-w-full":``,"of-auto":``},q={"w-full":``},J={"w-20":``,"pr-1":``},Y={flex:``,"items-center":``,"justify-end":``},X={"text-sm":``},Z={flex:`inline gap3`,"items-center":``},Q={flex:`~ gap1`,pr2:``,op0:``,"group-hover:op100":``},ne=[`onClick`],re=[`onClick`],ie={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-left":``,"text-sm":``,"font-mono":``,op50:``},ae={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-center":``,"text-sm":``,"font-mono":``,op50:``},oe={"w-0":``,"ws-nowrap":``,"text-center":``,"text-sm":``,"font-mono":``},se={key:0},ce=[`onClick`],le=n({__name:`RoutesTable`,props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:[`navigate`],setup(e){let t=e,n=M(),a=w(),c=N(),d=m(()=>t.pages.toSorted((e,t)=>e.path.localeCompare(t.path)));function v(e){let r=t.layouts.find(t=>t.name===e);r&&n(r.file)}function y(e){if(typeof e==`string`)return a.value?.middleware.find(t=>t.name===e)?.path}return(t,a)=>{let m=L,b=G,x=F;return o(),g(`div`,K,[p(`table`,q,[a[4]||=p(`thead`,{border:`b base`},[p(`tr`,null,[p(`th`,{"text-left":``}),p(`th`,{"text-left":``},` Route Path `),p(`th`,{"text-left":``},` Name `),p(`th`,{"text-left":``},` Middleware `),p(`th`,null,` Layout `)])],-1),p(`tbody`,null,[(o(!0),g(u,null,s(d.value,s=>(o(),g(`tr`,{key:s.name,class:`group`,"h-7":``,border:`b dashed transparent hover:base`},[p(`td`,J,[p(`div`,Y,[e.matched.find(e=>e.name===s.name)?(o(),f(m,{key:0,n:`green`,title:`active`,textContent:`active`})):e.matchedPending.find(e=>e.name===s.name)?(o(),f(m,{key:1,n:`teal`,title:`next`,textContent:`next`})):l(``,!0)])]),p(`td`,X,[p(`div`,Z,[_(b,{route:s,class:i(e.matched.find(e=>e.name===s.name)?`text-primary`:e.matchedPending.find(e=>e.name===s.name)?`text-teal`:``),"ws-nowrap":``,onNavigate:a[0]||=e=>t.$emit(`navigate`,e)},null,8,[`route`,`class`]),p(`div`,Q,[s.file||s.meta?.file?(o(),g(`button`,{key:0,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Open in editor`,onClick:e=>r(n)(s.file||s.meta?.file)},[...a[2]||=[p(`div`,{"i-carbon-script-reference":``},null,-1)]],8,ne)):l(``,!0),s.file||s.meta?.file?(o(),g(`button`,{key:1,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Copy path`,onClick:e=>r(c)(s.file||s.meta?.file)},[...a[3]||=[p(`div`,{"i-carbon-copy":``},null,-1)]],8,re)):l(``,!0)])])]),p(`td`,ie,h(s.name),1),p(`td`,ae,[_(x,{filepath:y(s.meta.middleware),override:`${s.meta.middleware||`-`}`},null,8,[`filepath`,`override`])]),p(`td`,oe,[s.meta.layout===!1?(o(),g(`span`,se,`-`)):s.meta.layout?(o(),g(`button`,{key:1,onClick:e=>v(s.meta.layout)},h(s.meta.layout),9,ce)):(o(),g(`button`,{key:2,"text-sm":``,op15:``,onClick:a[1]||=e=>v(`default`)},` (default) `))])]))),128))])])])}}}),ue=Object.assign(le,{__name:`RoutesTable`}),de={},fe={class:`markdown-body`};function pe(t,n){return o(),g(`div`,fe,[...n[0]||=[p(`template`,null,[p(`div`,{class:`markdown-body`},[p(`h1`,null,`Pages`),p(`p`,null,[e(`Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your `),p(`code`,{"v-pre":``},`~/pages/`),e(` directory.`)]),p(`p`,null,[p(`a`,{href:`https://nuxt.com/docs/getting-started/routing`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)]),p(`hr`),p(`h2`,null,`Middlewares`),p(`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.`),p(`p`,null,[p(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/middleware`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var me=k(de,[[`render`,pe]]),he={key:0,"h-full":``,"of-auto":``},ge={border:`b base`,flex:`~ col gap1`,"n-navbar-glass":``,px4:``,py3:``},_e={"font-mono":``},$={key:1,op50:``},ve={key:0,"text-orange":``,op75:``},ye={key:1,op50:``},be={"min-h-14":``},xe={key:1,class:`py-4 text-center`},Se={"w-full":``},Ce={mr1:``},we=n({__name:`pages`,setup(n){P({icon:`carbon-tree-view-alt`,title:`Pages`,show:()=>{let e=D();return()=>!!e.value},order:1});let c=E(),y=T(),k=S(),A=w(),M=C(),N=x(),z=m(()=>A.value?.middleware||[]),B=t(``),V=t(0),H=m(()=>(z.value,B.value,M.value,V.value,c.value?.currentRoute?.value?.path));a(()=>{y.value&&(B.value=c.value?.currentRoute?.value?.path),c.value?.beforeEach(e=>{B.value=e.fullPath}),c.value?.afterEach(e=>{B.value=e.fullPath})});async function U(){B.value!==c.value?.currentRoute?.value?.path&&c.value.push(B.value||`/`)}let W=m(()=>c.value.resolve(B.value||`/`).matched);function G(e){c.value.push(e),B.value=e}let K=b(),q=m(()=>`./${K===4?`app/`:``}pages/index.vue`);return(t,n)=>{let a=j,m=ue,b=I,x=L,S=F,C=R,w=me,T=te;return o(),g(u,null,[r(k)?.pages&&r(c)?(o(),g(`div`,he,[p(`div`,ge,[p(`div`,null,[H.value===B.value?(o(),g(`span`,$,`Current route`)):(o(),g(u,{key:0},[n[1]||=p(`span`,{op50:``},`Navigate from `,-1),p(`span`,_e,h(H.value),1),n[2]||=p(`span`,{op50:``},` to `,-1)],64))]),_(a,{modelValue:B.value,"onUpdate:modelValue":n[0]||=e=>B.value=e,"font-mono":``,icon:`carbon-direction-right-01 scale-y--100`,class:i(H.value===B.value?``:W.value.length?`text-green`:`text-orange`),onKeydown:v(U,[`enter`])},null,8,[`modelValue`,`class`]),p(`div`,null,[H.value===B.value?(o(),g(`span`,ye,`Edit path above to navigate`)):(o(),g(u,{key:0},[n[3]||=p(`span`,null,[e(`Press `),p(`b`,{"font-bold":``},`Enter`),e(` to navigate`)],-1),W.value.length?l(``,!0):(o(),g(`span`,ve,` (no match)`))],64))])]),_(b,{icon:`carbon-tree-view`,text:`Matched Routes`,padding:!1},{default:d(()=>[p(`div`,be,[W.value.length?(o(),f(m,{key:0,pages:W.value,layouts:r(M)||[],matched:r(y).matched,"matched-pending":W.value,onNavigate:G},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])):(o(),g(`div`,xe,[...n[4]||=[p(`span`,{op50:``},`No routes matched`,-1)]]))])]),_:1}),_(b,{icon:`carbon-tree-view-alt`,text:`All Routes`,description:`${r(N).length} routes registered in your application`,padding:`pr5`},{default:d(()=>[_(m,{pages:r(N),layouts:r(M)||[],matched:r(y).matched,"matched-pending":W.value,onNavigate:G},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])]),_:1},8,[`description`]),z.value.length?(o(),f(b,{key:0,icon:`carbon:ibm-watson-studio`,text:`Middleware`,description:`${z.value.length} middleware registered in your application`,padding:`px13`},{default:d(()=>[p(`table`,Se,[n[5]||=p(`thead`,{border:`b base`,"h-7":``},[p(`tr`,null,[p(`th`,{"text-left":``},` Name `),p(`th`,{"text-left":``},` Path `)])],-1),(o(!0),g(u,null,s(z.value,e=>(o(),g(`tr`,{key:e.path,"h-7":``},[p(`td`,null,[p(`span`,Ce,h(e.name),1),e.global?(o(),f(x,{key:0,n:`green`,title:`Registered at runtime as a global component`,textContent:`global`})):l(``,!0)]),p(`td`,null,[_(S,{filepath:e.path},null,8,[`filepath`])])]))),128))])]),_:1},8,[`description`])):l(``,!0)])):(o(),f(C,{key:1,icon:`carbon-tree-view-alt`,name:`wizard-pages`,title:`Nuxt Routing`,description:`Create ${q.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 t?t.rpc:r(O)).runWizard(await(`ensureDevAuthToken`in t?t.ensureDevAuthToken:r(ee))(),`enablePages`)}}]},null,8,[`description`,`actions`])),_(T,null,{default:d(()=>[_(w)]),_:1})],64)}}});export{we as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,Mt as r,W as i,_ as a,dt as o,g as s,h as c,w as l}from"./vendor/json-editor-vue-hkofgjf7.js";import"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import{r as u}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import{t as d}from"./storage-options-owy2vf04.js";import"./dev-auth-
|
|
1
|
+
import{C as e,Ct as t,E as n,Mt as r,W as i,_ as a,dt as o,g as s,h as c,w as l}from"./vendor/json-editor-vue-hkofgjf7.js";import"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import{r as u}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import{t as d}from"./storage-options-owy2vf04.js";import"./dev-auth-i6naz7u3.js";import"./nuxt-link-mev16ngd.js";import"./nicon-m5br9nvg.js";import{t as f}from"./nbutton-oi1rfqiz.js";import{n as p}from"./telemetry-grwafx07.js";import{t as m}from"./npanel-grids-bl37sfq7.js";import{T as h,i as g}from"#entry";import{t as _}from"./composables-cwesk2q8.js";import{t as v}from"./nlink-dmk2d6qc.js";import{t as y}from"./ncheckbox-k9nxqa1w.js";var b={flex:`~ auto col gap3`,"items-center":``,"justify-center":``,"text-center":``},x={"max-w-190":``,"text-lg":``},S={mb6:``,op50:``},C={p4:``},w={flex:`~ col gap-2`,mxa:``},T=n({__name:`index`,setup(n){_({layout:`none`});let T=u(),E=t(!0),{showPanel:D}=d(`ui`);function O(){p.value=E.value,h.value=!1}function k(){D.value=!1,T.value.devtools.close()}return(t,n)=>{let u=g,d=v,p=f,h=y,_=m;return i(),s(_,{flex:`~ col`,relative:``,"h-screen":``,"w-full":``},{default:o(()=>[c(`div`,b,[n[7]||=c(`p`,{my2:``,"text-3em":``,"text-primary":``,"font-bold":``,"font-stylish":``},` 👋 Hi there, welcome to Nuxt DevTools! `,-1),c(`p`,x,[l(u,{"mr-0.5":``,"inline-block":``,"h-5":``,"translate-y--1.1":``,"align-mid":``}),n[1]||=e(` is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!`,-1),n[2]||=c(`br`,null,null,-1)]),c(`p`,S,[n[4]||=e(` Learn more at `,-1),l(d,{href:`https://devtools.nuxt.com/`,target:`_blank`,rel:`noopener noreferrer`,n:`primary`},{default:o(()=>[...n[3]||=[e(` devtools.nuxt.com `,-1)]]),_:1})]),l(p,{to:`/modules/overview`,n:`lg primary`,onClick:O},{default:o(()=>[...n[5]||=[c(`span`,null,`Get Started`,-1)]]),_:1}),r(D)===!1?a(``,!0):(i(),s(p,{key:0,n:`borderless orange`,onClick:k},{default:o(()=>[...n[6]||=[c(`span`,null,`Always hide the floating panel`,-1)]]),_:1}))]),c(`div`,C,[c(`div`,w,[l(h,{modelValue:E.value,"onUpdate:modelValue":n[0]||=e=>E.value=e,n:`green6`},{default:o(()=>[n[8]||=c(`span`,{op50:``},`Send anonymous statistics, help us improving DevTools`,-1),l(d,{href:`https://github.com/nuxt/devtools#anonymous-usage-analytics`,target:`_blank`,ml1:``,op35:``,textContent:`Learn more`})]),_:1},8,[`modelValue`])])])]),_:1})}}});export{T as default};
|