@nuxt/devtools-nightly 3.2.4-29562007.6edb6d3 → 3.2.4-29562036.34d136f
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 +75 -104
- package/dist/chunks/timeline.mjs +0 -1
- package/dist/chunks/vscode.mjs +14 -41
- package/dist/chunks/vue-devtools.mjs +0 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/d2d46a75-49ca-480e-b7d1-e84ddfa8d8d2.json +1 -0
- package/dist/client/_nuxt/{nh1c97z2.js → jdttf2bd.js} +2 -2
- package/dist/client/_nuxt/{overview-nd5zi3nu.js → overview-ioughj1v.js} +1 -1
- package/dist/client/_nuxt/{pages-okkqwdpu.js → pages-hixgzm0j.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/dirs.d.mts +1 -2
- package/dist/dirs.mjs +1 -21
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -5
- package/dist/shared/{devtools-nightly.CT6XRG-F.mjs → devtools-nightly.D8UuYYYu.mjs} +1 -7
- package/package.json +3 -6
- package/cli.mjs +0 -2
- package/dist/client/_nuxt/builds/meta/bbb0a778-4089-45a7-a6b3-246c726e08a4.json +0 -1
|
@@ -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-eojr4v24.js";import{_ as p}from"./ready-dadbdj5i.js";import{d as m,r as h,t as g,v as _,w as v}from"./utils-jupbrzo6.js";import{n as y,r as b}from"./client-nwyjxodt.js";import{n as x,r as S}from"./dev-auth-he0eye7r.js";import"./vendor/shiki-lqo1hg2n.js";import"./storage-options-nzog3hhp.js";import{t as C}from"./nuxt-link-bumooa9d.js";import"./nicon-m1crov2l.js";import{t as w}from"./nbutton-gygn07c2.js";import"./ncard-ludmyw2u.js";import"./state-routes-jownks2o.js";import"./telemetry-c77tnag3.js";import{n as ee}from"./state-tabs-mtxv3h6t.js";import{t as te}from"./npanel-grids-onrho735.js";import{T as ne,i as T,p as E}from"#entry";import"./client-im47u3kz.js";import"./ncode-block-figzf35k.js";import{t as D}from"./composables-b2ccklz4.js";import"./ncheckbox-ep01n5y1.js";import"./nbadge-f1bvtlf5.js";import{t as O}from"./state-components-ii0yssci.js";import{r as k,t as A}from"./state-modules-m990wfjb.js";var j=`3.2.4-
|
|
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-eojr4v24.js";import{_ as p}from"./ready-dadbdj5i.js";import{d as m,r as h,t as g,v as _,w as v}from"./utils-jupbrzo6.js";import{n as y,r as b}from"./client-nwyjxodt.js";import{n as x,r as S}from"./dev-auth-he0eye7r.js";import"./vendor/shiki-lqo1hg2n.js";import"./storage-options-nzog3hhp.js";import{t as C}from"./nuxt-link-bumooa9d.js";import"./nicon-m1crov2l.js";import{t as w}from"./nbutton-gygn07c2.js";import"./ncard-ludmyw2u.js";import"./state-routes-jownks2o.js";import"./telemetry-c77tnag3.js";import{n as ee}from"./state-tabs-mtxv3h6t.js";import{t as te}from"./npanel-grids-onrho735.js";import{T as ne,i as T,p as E}from"#entry";import"./client-im47u3kz.js";import"./ncode-block-figzf35k.js";import{t as D}from"./composables-b2ccklz4.js";import"./ncheckbox-ep01n5y1.js";import"./nbadge-f1bvtlf5.js";import{t as O}from"./state-components-ii0yssci.js";import{r as k,t as A}from"./state-modules-m990wfjb.js";var j=`3.2.4-29562036.34d136f`,M={key:0},N={key:1,flex:`~ col gap2`,ma:``,"h-full":``,"max-w-300":``,"w-full":``,p5:``,px5:``,"md:px20":``},P={flex:`~ col`,"mt-5":``,"items-center":``,"md:mt-20":``},F={op40:``},I={flex:`~ gap2 wrap`},L={key:5,"pointer-events-none":``,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ auto gap-6`},R={grid:`~ cols-[auto_auto] gap-x-5 items-center`},z={"text-right":``},B={"text-right":``},re={"text-right":``},V={"text-right":``},H={flex:`~ col gap2`},U={flex:`~ gap-6 wrap`,"mt-5":``,"items-center":``,"justify-center":``},W={flex:`col gap-2`,mxa:``,hidden:``,"w-100":``,"text-sm":``,op50:``,"md:flex":``},G={flex:`~ gap-1`,"items-center":``},K={flex:`~ gap-1`,"items-center":``},q=t({__name:`overview`,setup(t){D({icon:`carbon-information`,title:`Overview`,order:-100});let q=b(),J=v(),Y=O(),X=_(),ie=A(),ae=ee(),Z=h(),oe=p();function se(){ne.value=!0,oe.push(`/`)}let Q=l(()=>q.value?.nuxt.vueApp.version),$=l(()=>q.value?.metrics.loading());function ce(){x()}return(t,l)=>{let p=T,h=C,_=k,v=E,b=w,x=te;return r(),s(x,{"h-screen":``,"w-full":``,flex:``},{default:o(()=>[n(J)?(r(),d(`div`,N,[l[40]||=c(`div`,{"flex-auto":``},null,-1),c(`div`,P,[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:se},[l[0]||=c(`span`,{op40:``},` Nuxt DevTools `,-1),c(`code`,F,`v`+u(n(j)),1),f(_,{"package-name":`@nuxt/devtools`,options:{dev:!0},"show-version":!1})])]),c(`div`,I,[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(_,{"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(J)?(r(),d(a,{key:1},[n(J)&&n(J).pages&&n(q)?(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(ae).length,`page`)),1)]),_:1})):i(``,!0),n(J)?(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(Y).length,`component`)),1)]),_:1})):i(``,!0),n(J)&&n(X)?(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(X).imports.length,`import`)),1)]),_:1})):i(``,!0),n(J)?(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(ie).length,`module`)),1)]),_:1})):i(``,!0),n(J)?(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(J).plugins.length,`plugin`)),1)]),_:1})):i(``,!0),$.value?(r(),d(`div`,L,[l[12]||=c(`div`,{"i-carbon-time-plot":``,"flex-none":``,"text-3xl":``},null,-1),c(`div`,R,[$.value.ssrStart?(r(),d(a,{key:0},[l[8]||=c(`div`,{"text-sm":``},` SSR to full load `,-1),c(`div`,z,u(n(g)($.value.appLoad-$.value.ssrStart)),1)],64)):i(``,!0),l[10]||=c(`div`,{"text-sm":``},` Page load `,-1),c(`div`,B,u(n(g)($.value.appLoad-$.value.appInit)),1),l[11]||=c(`div`,{"text-sm":``},` Navigation `,-1),c(`div`,re,u(n(g)($.value.pageEnd-$.value.pageStart)),1),$.value.hmrStart?(r(),d(a,{key:1},[l[9]||=c(`div`,{"text-sm":``},` HMR `,-1),c(`div`,V,u(n(g)($.value.hmrEnd-$.value.hmrStart)),1)],64)):i(``,!0)])])):i(``,!0)],64)):i(``,!0)]),c(`div`,H,[n(y)?(r(),s(v,{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:ce},[(`isDevAuthed`in t?t.isDevAuthed:n(S))?i(``,!0):(r(),s(v,{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`,U,[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`,W,[c(`div`,G,[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`,K,[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`,M,` Loading... `))]),_:1})}}});export{q 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-eojr4v24.js";import{M as v,j as y}from"./ready-dadbdj5i.js";import{C as b,b as x,h as S,w as C,x as w}from"./utils-jupbrzo6.js";import{a as T,l as E,o as D,r as O}from"./client-nwyjxodt.js";import{n as ee}from"./dev-auth-he0eye7r.js";import"./vendor/shiki-lqo1hg2n.js";import"./storage-options-nzog3hhp.js";import"./nuxt-link-bumooa9d.js";import{t as k}from"./_plugin-vue_export-helper-n58akrbk.js";import"./nicon-m1crov2l.js";import{t as A}from"./nbutton-gygn07c2.js";import"./ncard-ludmyw2u.js";import"./state-routes-jownks2o.js";import"./telemetry-c77tnag3.js";import"./npanel-grids-onrho735.js";import{t as j}from"./ntext-input-e8iut2en.js";import{d as M,u as N}from"#entry";import"./client-im47u3kz.js";import{t as P}from"./composables-b2ccklz4.js";import{t as F}from"./filepath-item-h3i1tz3s.js";import{t as te}from"./help-fab-oeo4c53s.js";import"./nicon-title-kbrt9te7.js";import{t as I}from"./nsection-block-ibsk9arc.js";import{t as L}from"./nbadge-f1bvtlf5.js";import"./nmarkdown-ciogo2e3.js";import{t as R}from"./launch-page-h3hu9uqw.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,y=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(){y(`navigate`,E.value)}return(t,r)=>{let a=j,m=A,y=c(`VDropdown`);return D.value?(o(),f(y,{key:1},{popper:d(({hide:t})=>[p(`div`,B,[p(`form`,{flex:`~ col`,onSubmit:v(()=>{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=b(),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=O();return()=>!!e.value},order:1});let c=D(),v=T(),k=C(),A=b(),M=x(),N=w(),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(()=>{v.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=S(),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:y(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(v).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(v).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(E)).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-eojr4v24.js";import{M as v,j as y}from"./ready-dadbdj5i.js";import{C as b,b as x,h as S,w as C,x as w}from"./utils-jupbrzo6.js";import{a as T,l as E,o as D,r as O}from"./client-nwyjxodt.js";import{n as ee}from"./dev-auth-he0eye7r.js";import"./vendor/shiki-lqo1hg2n.js";import"./storage-options-nzog3hhp.js";import"./nuxt-link-bumooa9d.js";import{t as k}from"./_plugin-vue_export-helper-n58akrbk.js";import"./nicon-m1crov2l.js";import{t as A}from"./nbutton-gygn07c2.js";import"./ncard-ludmyw2u.js";import"./state-routes-jownks2o.js";import"./telemetry-c77tnag3.js";import"./npanel-grids-onrho735.js";import{t as j}from"./ntext-input-e8iut2en.js";import{d as M,u as N}from"#entry";import"./client-im47u3kz.js";import{t as P}from"./composables-b2ccklz4.js";import{t as F}from"./filepath-item-h3i1tz3s.js";import{t as te}from"./help-fab-oeo4c53s.js";import"./nicon-title-kbrt9te7.js";import{t as I}from"./nsection-block-ibsk9arc.js";import{t as L}from"./nbadge-f1bvtlf5.js";import"./nmarkdown-ciogo2e3.js";import{t as R}from"./launch-page-h3hu9uqw.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,y=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(){y(`navigate`,E.value)}return(t,r)=>{let a=j,m=A,y=c(`VDropdown`);return D.value?(o(),f(y,{key:1},{popper:d(({hide:t})=>[p(`div`,B,[p(`form`,{flex:`~ col`,onSubmit:v(()=>{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=b(),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=O();return()=>!!e.value},order:1});let c=D(),v=T(),k=C(),A=b(),M=x(),N=w(),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(()=>{v.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=S(),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:y(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(v).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(v).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(E)).enablePages(await(`ensureDevAuthToken`in t?t.ensureDevAuthToken:r(ee))())}}]},null,8,[`description`,`actions`])),_(T,null,{default:d(()=>[_(w)]),_:1})],64)}}});export{we as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/jdttf2bd.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-hn1q325i.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lkbe0qhh.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-3gd0e2sv.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/jdttf2bd.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-n58akrbk.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rolldown-runtime-oipoa1or.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-eojr4v24.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/utils-jupbrzo6.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-dadbdj5i.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-mnod32r1.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-otp6bp04.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue-router-jbnxw7nb.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-nwyjxodt.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-lqo1hg2n.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-k727ub0h.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-link-bumooa9d.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-duc3zu0y.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/splitpanes.es-gcsn48te.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dev-auth-he0eye7r.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nbutton-gygn07c2.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nicon-m1crov2l.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncard-ludmyw2u.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npanel-grids-onrho735.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntext-input-e8iut2en.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-routes-jownks2o.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-tabs-mtxv3h6t.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-nzog3hhp.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/telemetry-c77tnag3.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/jdttf2bd.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"d2d46a75-49ca-480e-b7d1-e84ddfa8d8d2",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1773722245233,false]</script></body></html>
|
package/dist/dirs.d.mts
CHANGED
|
@@ -2,6 +2,5 @@ declare const packageDir: string;
|
|
|
2
2
|
declare const distDir: string;
|
|
3
3
|
declare const runtimeDir: string;
|
|
4
4
|
declare const clientDir: string;
|
|
5
|
-
declare function isGlobalInstall(): boolean;
|
|
6
5
|
|
|
7
|
-
export { clientDir, distDir,
|
|
6
|
+
export { clientDir, distDir, packageDir, runtimeDir };
|
package/dist/dirs.mjs
CHANGED
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
import { resolve } from 'node:path';
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
|
-
import isInstalledGlobally from 'is-installed-globally';
|
|
4
3
|
|
|
5
4
|
const packageDir = resolve(fileURLToPath(import.meta.url), "../..");
|
|
6
5
|
const distDir = resolve(fileURLToPath(import.meta.url), "..");
|
|
7
|
-
const BACKSLASH_RE = /\\/g;
|
|
8
6
|
const runtimeDir = resolve(distDir, "runtime");
|
|
9
7
|
const clientDir = resolve(distDir, "client");
|
|
10
|
-
const globalInstallMatch = [
|
|
11
|
-
"/yarn/global/",
|
|
12
|
-
"/pnpm/global/",
|
|
13
|
-
"/npm/global/",
|
|
14
|
-
"/.nvm/",
|
|
15
|
-
"/.volta/",
|
|
16
|
-
"/.fnm/",
|
|
17
|
-
// On Windows
|
|
18
|
-
"/nvm/versions/",
|
|
19
|
-
"/n/versions/"
|
|
20
|
-
// TODO: More info for other package managers
|
|
21
|
-
];
|
|
22
|
-
function isGlobalInstall() {
|
|
23
|
-
if (isInstalledGlobally === true || isInstalledGlobally.default === true)
|
|
24
|
-
return true;
|
|
25
|
-
const dir = packageDir.replace(BACKSLASH_RE, "/");
|
|
26
|
-
return globalInstallMatch.some((i) => dir.includes(i));
|
|
27
|
-
}
|
|
28
8
|
|
|
29
|
-
export { clientDir, distDir,
|
|
9
|
+
export { clientDir, distDir, packageDir, runtimeDir };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineNuxtModule } from '@nuxt/kit';
|
|
2
|
-
import { isGlobalInstall } from '../dirs.mjs';
|
|
3
2
|
|
|
4
3
|
const e=globalThis.process?.env||Object.create(null),t=globalThis.process||{env:e},n=t!==void 0&&t.env&&t.env.NODE_ENV||void 0,r=[[`claude`,[`CLAUDECODE`,`CLAUDE_CODE`]],[`replit`,[`REPL_ID`]],[`gemini`,[`GEMINI_CLI`]],[`codex`,[`CODEX_SANDBOX`,`CODEX_THREAD_ID`]],[`opencode`,[`OPENCODE`]],[`pi`,[i(`PATH`,/\.pi[\\/]agent/)]],[`auggie`,[`AUGMENT_AGENT`]],[`goose`,[`GOOSE_PROVIDER`]],[`devin`,[i(`EDITOR`,/devin/)]],[`cursor`,[`CURSOR_AGENT`]],[`kiro`,[i(`TERM_PROGRAM`,/kiro/)]]];function i(t,n){return ()=>{let r=e[t];return r?n.test(r):false}}function a(){let t=e.AI_AGENT;if(t)return {name:t.toLowerCase()};for(let[t,n]of r)for(let r of n)if(typeof r==`string`?e[r]:r())return {name:t};return {}}const o=a();o.name;!!o.name;const l=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:true}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:true}],[`CLOUDFLARE_WORKERS`,`WORKERS_CI`,{ci:true}],[`GOOGLE_CLOUDRUN`,`K_SERVICE`],[`GOOGLE_CLOUDRUN_JOB`,`CLOUD_RUN_JOB`],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`JENKINS`,`JENKINS_URL`],[`HUDSON`,`HUDSON_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:false}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:false}],[`VERCEL`,`VERCEL_ENV`,{ci:false}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:false}],[`CODESANDBOX`,`CODESANDBOX_HOST`,{ci:false}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:true}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOY`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:true}]];function u(){for(let t of l)if(e[t[1]||t[0]])return {name:t[0].toLowerCase(),...t[2]};return e.SHELL===`/bin/jsh`&&t.versions?.webcontainer?{name:`stackblitz`,ci:false}:{name:``,ci:false}}const d=u(),f=d.name,p=t.platform||``,m=!!e.CI||d.ci!==false,h=!!t.stdout?.isTTY;!!e.DEBUG;const v=n===`test`||!!e.TEST;n===`production`||e.MODE===`production`;n===`dev`||n===`development`||e.MODE===`development`;!!e.MINIMAL||m||v||!h;const S=/^win/i.test(p);!e.NO_COLOR&&(!!e.FORCE_COLOR||(h||S)&&e.TERM!==`dumb`||m);const E=(t.versions?.node||``).replace(/^v/,``)||null;Number(E?.split(`.`)[0])||null;const O=!!t?.versions?.node,k=`Bun`in globalThis,A=`Deno`in globalThis,j=`fastly`in globalThis,M=`Netlify`in globalThis,N=`EdgeRuntime`in globalThis,P=globalThis.navigator?.userAgent===`Cloudflare-Workers`,F=[[M,`netlify`],[N,`edge-light`],[P,`workerd`],[j,`fastly`],[A,`deno`],[k,`bun`],[O,`node`]];function I(){let e=F.find(e=>e[0]);if(e)return {name:e[1]}}const L=I();L?.name||``;
|
|
5
4
|
|
|
@@ -110,12 +109,7 @@ const module$1 = defineNuxtModule({
|
|
|
110
109
|
options = { enabled: options };
|
|
111
110
|
if (options.enabled === false)
|
|
112
111
|
return;
|
|
113
|
-
|
|
114
|
-
const globalOptions = nuxt.options.devtoolsGlobal || {};
|
|
115
|
-
if (options.enabled !== true && !globalOptions.projects?.includes(nuxt.options.rootDir))
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
return import('../chunks/module-main.mjs').then(function (n) { return n.m; }).then(({ enableModule }) => enableModule(options, nuxt));
|
|
112
|
+
return import('../chunks/module-main.mjs').then(({ enableModule }) => enableModule(options, nuxt));
|
|
119
113
|
}
|
|
120
114
|
});
|
|
121
115
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-nightly",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.2.4-
|
|
4
|
+
"version": "3.2.4-29562036.34d136f",
|
|
5
5
|
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devtools.nuxt.com",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"./*": "./*"
|
|
26
26
|
},
|
|
27
27
|
"types": "./dist/module.d.mts",
|
|
28
|
-
"bin": "./cli.mjs",
|
|
29
28
|
"files": [
|
|
30
29
|
"*.cjs",
|
|
31
30
|
"*.d.ts",
|
|
@@ -42,8 +41,7 @@
|
|
|
42
41
|
}
|
|
43
42
|
},
|
|
44
43
|
"dependencies": {
|
|
45
|
-
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@3.2.4-
|
|
46
|
-
"@nuxt/devtools-wizard": "npm:@nuxt/devtools-wizard-nightly@3.2.4-29562007.6edb6d3",
|
|
44
|
+
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@3.2.4-29562036.34d136f",
|
|
47
45
|
"@nuxt/kit": "^4.4.2",
|
|
48
46
|
"@vue/devtools-core": "^8.1.0",
|
|
49
47
|
"@vue/devtools-kit": "^8.1.0",
|
|
@@ -51,12 +49,10 @@
|
|
|
51
49
|
"consola": "^3.4.2",
|
|
52
50
|
"destr": "^2.0.5",
|
|
53
51
|
"error-stack-parser-es": "^1.0.5",
|
|
54
|
-
"execa": "^8.0.1",
|
|
55
52
|
"fast-npm-meta": "^1.4.2",
|
|
56
53
|
"get-port-please": "^3.2.0",
|
|
57
54
|
"hookable": "^6.1.0",
|
|
58
55
|
"image-meta": "^0.2.2",
|
|
59
|
-
"is-installed-globally": "^1.0.0",
|
|
60
56
|
"launch-editor": "^2.13.1",
|
|
61
57
|
"local-pkg": "^1.1.2",
|
|
62
58
|
"magicast": "^0.5.2",
|
|
@@ -69,6 +65,7 @@
|
|
|
69
65
|
"simple-git": "^3.33.0",
|
|
70
66
|
"sirv": "^3.0.2",
|
|
71
67
|
"structured-clone-es": "^2.0.0",
|
|
68
|
+
"tinyexec": "^1.0.4",
|
|
72
69
|
"tinyglobby": "^0.2.15",
|
|
73
70
|
"vite-plugin-inspect": "^11.3.3",
|
|
74
71
|
"vite-plugin-vue-tracer": "^1.3.0",
|
package/cli.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"bbb0a778-4089-45a7-a6b3-246c726e08a4","timestamp":1773720446537,"prerendered":[]}
|