@nuxt/devtools-nightly 2.1.1-29011967.946dd03 → 2.1.3-29016968.a91a07c
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 +22 -22
- package/dist/client/404.html +22 -22
- package/dist/client/_nuxt/__blank-dudv6g9d.js +1 -0
- package/dist/client/_nuxt/{analyze-build-bbyx6d48.js → analyze-build-i0mf9ibb.js} +1 -1
- package/dist/client/_nuxt/assets-dsnwxh0z.js +16 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/ccfa44e1-ad86-42ed-b099-e1003f257b72.json +1 -0
- package/dist/client/_nuxt/{client-edufhzwa.js → client-gsjyqe32.js} +1 -1
- package/dist/client/_nuxt/code-diff.vue-stcvl670.js +8 -0
- package/dist/client/_nuxt/code-snippets.vue-jez3ixjc.js +1 -0
- package/dist/client/_nuxt/{components-hahb9omk.js → components-cm2rdj0u.js} +1 -1
- package/dist/client/_nuxt/composable-item.vue-i0hzo2zi.js +1 -0
- package/dist/client/_nuxt/custom-_name_-y0xnxmum.js +1 -0
- package/dist/client/_nuxt/data-schema-button.vue-kc4ene6y.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-ntlnl1c8.js +2 -0
- package/dist/client/_nuxt/default-equa8hpl.js +1 -0
- package/dist/client/_nuxt/{duration-display.vue-gu7el5x3.js → duration-display.vue-h9mqvgci.js} +1 -1
- package/dist/client/_nuxt/error-404-odgovrnc.js +1 -0
- package/dist/client/_nuxt/error-404.css-hufc5r2t.css +1 -0
- package/dist/client/_nuxt/error-500-joc37wuq.js +1 -0
- package/dist/client/_nuxt/error-500.css-iibxggy2.css +1 -0
- package/dist/client/_nuxt/{error-g3n67c2a.js → error-b43b4kfx.js} +6 -6
- package/dist/client/_nuxt/{filepath-item.vue-jywmf4hm.js → filepath-item.vue-dwl8a8iu.js} +1 -1
- package/dist/client/_nuxt/full-l2wnm6sf.js +1 -0
- package/dist/client/_nuxt/help-fab.vue-m2hxka4y.js +1 -0
- package/dist/client/_nuxt/{hooks-zs4sbuc4.js → hooks-jnx6qp6w.js} +1 -1
- package/dist/client/_nuxt/imports-gczgz3xe.js +1 -0
- package/dist/client/_nuxt/index-cxl85m2v.js +1 -0
- package/dist/client/_nuxt/index-jc4yj4to.js +1 -0
- package/dist/client/_nuxt/launch-page.vue-hfyfe4o0.js +1 -0
- package/dist/client/_nuxt/mdjwfyf1.js +17 -0
- package/dist/client/_nuxt/{modules-k9nw297u.js → modules-e0uqq79j.js} +1 -1
- package/dist/client/_nuxt/nbadge-nrj8ts3z.js +1 -0
- package/dist/client/_nuxt/ncheckbox.vue-o1qauqkh.js +1 -0
- package/dist/client/_nuxt/{ncode-block.vue-msaaoy71.js → ncode-block.vue-bir2wz4z.js} +2 -2
- package/dist/client/_nuxt/ndrawer.vue-czyspcc7.js +1 -0
- package/dist/client/_nuxt/ndropdown.vue-jlb6fs2z.js +1 -0
- package/dist/client/_nuxt/nicon-title.vue-dsf9ygne.js +1 -0
- package/dist/client/_nuxt/nlink.vue-jhrzaqra.js +1 -0
- package/dist/client/_nuxt/nmarkdown.vue-iw2voruc.js +1 -0
- package/dist/client/_nuxt/nnavbar.vue-b1xmcmcp.js +1 -0
- package/dist/client/_nuxt/none-oin6gw5m.js +1 -0
- package/dist/client/_nuxt/nsection-block-ujr6ckr5.js +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-ka2pg1fx.js +1 -0
- package/dist/client/_nuxt/nselect.vue-ohtm6ck8.js +1 -0
- package/dist/client/_nuxt/{nswitch.vue-l8xqfho0.js → nswitch.vue-jbyu7ls8.js} +1 -1
- package/dist/client/_nuxt/{open-graph-bhigu87e.js → open-graph-d5ra83rc.js} +2 -2
- package/dist/client/_nuxt/overview-d0r6q4kr.js +1 -0
- package/dist/client/_nuxt/pages-o4vngeym.js +1 -0
- package/dist/client/_nuxt/payload-1crhjx4q.js +1 -0
- package/dist/client/_nuxt/pinia-eiqkhwrq.js +1 -0
- package/dist/client/_nuxt/{plugins-lycdogtx.js → plugins-g87u7uvf.js} +1 -1
- package/dist/client/_nuxt/render-tree-hwhu26cj.js +1 -0
- package/dist/client/_nuxt/runtime-configs-j1arrc8h.js +1 -0
- package/dist/client/_nuxt/server-discovery-hlqsekuz.js +1 -0
- package/dist/client/_nuxt/{server-route-inputs.vue-ed7p149x.js → server-route-inputs.vue-c1clpfry.js} +1 -1
- package/dist/client/_nuxt/{server-routes-cmns8xyn.js → server-routes-lij8bngl.js} +3 -3
- package/dist/client/_nuxt/{server-tasks-is4he0vd.js → server-tasks-j3hljcm7.js} +1 -1
- package/dist/client/_nuxt/{settings-jl3au3y5.js → settings-myqjgffi.js} +1 -1
- package/dist/client/_nuxt/stacktrace-list.vue-jny4xr7u.js +1 -0
- package/dist/client/_nuxt/{state-components-bg7emq01.js → state-components-fh6orzui.js} +1 -1
- package/dist/client/_nuxt/state-editor.vue-mes2tgki.js +1 -0
- package/dist/client/_nuxt/state-modules-bs59oqcs.js +1 -0
- package/dist/client/_nuxt/storage-n56ya41c.js +1 -0
- package/dist/client/_nuxt/terminals-bciguept.js +1 -0
- package/dist/client/_nuxt/{timeline-imh2u0ad.js → timeline-fs725il4.js} +2 -2
- package/dist/client/_nuxt/{unocss-runtime-fzjefjlm.js → unocss-runtime-l2otbg6e.js} +1 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-llkaejaf.js +3819 -0
- package/dist/client/_nuxt/vendor/{quicktype-core-i8ym98gu.js → quicktype-core-o2aektoq.js} +83 -83
- package/dist/client/_nuxt/vendor/{shiki-ej2em068.js → shiki-kdj4mcqm.js} +30 -38
- package/dist/client/_nuxt/vendor/unocss-mvzv9iuf.js +2 -0
- package/dist/client/_nuxt/vendor/vis-7ar5f2fs.js +98 -0
- package/dist/client/_nuxt/vendor/{xterm-b1jefe3j.js → xterm-dbpzgj7s.js} +7 -7
- package/dist/client/_nuxt/virtual-files-dgkd7w9w.js +1 -0
- package/dist/client/_nuxt/{vue-devtools-ill7tdvh.js → vue-devtools-b6nk7e30.js} +2 -2
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-guzt9iin.js → vue-virtual-scroller.esm-gnguvd0a.js} +2 -2
- package/dist/client/index.html +22 -22
- package/dist/module.json +1 -1
- package/package.json +12 -12
- package/dist/client/_nuxt/__blank-ld6vcstp.js +0 -1
- package/dist/client/_nuxt/assets-ezhwtw4n.js +0 -16
- package/dist/client/_nuxt/builds/meta/d9cd5dce-0076-49b4-a14f-897c8d40cbbd.json +0 -1
- package/dist/client/_nuxt/cco50vfc.js +0 -17
- package/dist/client/_nuxt/code-diff.vue-esvcved6.js +0 -8
- package/dist/client/_nuxt/code-snippets.vue-n2k48x1d.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-gy1krk37.js +0 -1
- package/dist/client/_nuxt/custom-_name_-e2csi8ll.js +0 -1
- package/dist/client/_nuxt/data-schema-button.vue-k9rqf4fn.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-dr0t6jh1.js +0 -2
- package/dist/client/_nuxt/default-dfw02wxu.js +0 -1
- package/dist/client/_nuxt/error-404-l30uf0y1.js +0 -1
- package/dist/client/_nuxt/error-404.css-c4cbwrmc.css +0 -1
- package/dist/client/_nuxt/error-500-dfm5cmo3.js +0 -1
- package/dist/client/_nuxt/error-500.css-k70rrah0.css +0 -1
- package/dist/client/_nuxt/full-f6fuzge6.js +0 -1
- package/dist/client/_nuxt/help-fab.vue-gttgicih.js +0 -1
- package/dist/client/_nuxt/imports-gz28imf5.js +0 -1
- package/dist/client/_nuxt/index-lakcd7p2.js +0 -1
- package/dist/client/_nuxt/index-obsucz0g.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-j86a1c7h.js +0 -1
- package/dist/client/_nuxt/nbadge-c64mcnik.js +0 -1
- package/dist/client/_nuxt/ncheckbox.vue-l7pfajtr.js +0 -1
- package/dist/client/_nuxt/ndrawer.vue-nswzsez9.js +0 -1
- package/dist/client/_nuxt/ndropdown.vue-c8hjhpbm.js +0 -1
- package/dist/client/_nuxt/nicon-title.vue-j1ceohu1.js +0 -1
- package/dist/client/_nuxt/nlink.vue-htpi1lbr.js +0 -1
- package/dist/client/_nuxt/nmarkdown.vue-oxfi26vk.js +0 -1
- package/dist/client/_nuxt/nnavbar.vue-m0dzh334.js +0 -1
- package/dist/client/_nuxt/none-fhj9bkje.js +0 -1
- package/dist/client/_nuxt/nsection-block-h34q4gf5.js +0 -1
- package/dist/client/_nuxt/nselect-tabs.vue-jxzrd6co.js +0 -1
- package/dist/client/_nuxt/nselect.vue-gzbz5npv.js +0 -1
- package/dist/client/_nuxt/overview-ec6pz8rg.js +0 -1
- package/dist/client/_nuxt/pages-hy6wj1ma.js +0 -1
- package/dist/client/_nuxt/payload-mopnfxha.js +0 -1
- package/dist/client/_nuxt/pinia-bcs8katy.js +0 -1
- package/dist/client/_nuxt/render-tree-mlbdtv01.js +0 -1
- package/dist/client/_nuxt/runtime-configs-v3crvvwz.js +0 -1
- package/dist/client/_nuxt/server-discovery-itbbhivk.js +0 -1
- package/dist/client/_nuxt/stacktrace-list.vue-pb6nvom9.js +0 -1
- package/dist/client/_nuxt/state-editor.vue-lpd02u92.js +0 -1
- package/dist/client/_nuxt/state-modules-mm258b3b.js +0 -1
- package/dist/client/_nuxt/storage-nfiv2p1f.js +0 -1
- package/dist/client/_nuxt/terminals-ma41rn3h.js +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-npezbdce.js +0 -3818
- package/dist/client/_nuxt/vendor/unocss-jzxuon8q.js +0 -2
- package/dist/client/_nuxt/vendor/vis-fzckz0r6.js +0 -98
- package/dist/client/_nuxt/virtual-files-koazqihs.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{f as E,A as x}from"./
|
|
1
|
+
import{f as E,A as x}from"./mdjwfyf1.js";import{_ as N}from"./stacktrace-list.vue-jny4xr7u.js";import{p as y,q as v,P as l,a1 as i,a3 as C,Q as f,R as _,a2 as S,a9 as w,a8 as p,S as R}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./filepath-item.vue-dwl8a8iu.js";const $=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,O=/^(eval@)?(\[native code\])?$/;function A(e,a){if(typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u")return T(e);if(e.stack&&e.stack.match(h))return F(e);if(e.stack)return b(e);throw new Error("Cannot parse given Error object")}function m(e){if(!e.includes(":"))return[e,void 0,void 0];const o=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[o[1],o[2]||void 0,o[3]||void 0]}function d(e,a){return e}function F(e,a){return I(e.stack)}function I(e,a){return d(e.split(`
|
|
2
2
|
`).filter(t=>!!t.match(h))).map(t=>{t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const n=r.match(/ (\(.+\)$)/);r=n?r.replace(n[0],""):r;const c=m(n?n[1]:r),s=n&&r||void 0,u=["eval","<anonymous>"].includes(c[0])?void 0:c[0];return{function:s,file:u,line:c[1]?+c[1]:void 0,col:c[2]?+c[2]:void 0,raw:t}})}function b(e,a){return P(e.stack)}function P(e,a){return d(e.split(`
|
|
3
|
-
`).filter(t=>!t.match(
|
|
3
|
+
`).filter(t=>!t.match(O))).map(t=>{if(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":"))return{function:t};{const r=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(r),c=n&&n[1]?n[1]:void 0,s=m(t.replace(r,""));return{function:c,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:t}}})}function T(e,a){return!e.stacktrace||e.message.includes(`
|
|
4
4
|
`)&&e.message.split(`
|
|
5
5
|
`).length>e.stacktrace.split(`
|
|
6
|
-
`).length?V(e):e.stack?
|
|
7
|
-
`),r=[];for(let n=2,c=t.length;n<c;n+=2){const s=o.exec(t[n]);s&&r.push({file:s[2],line:+s[1],raw:t[n]})}return d(r)}function
|
|
8
|
-
`),r=[];for(let n=0,c=t.length;n<c;n+=2){const s=o.exec(t[n]);s&&r.push({function:s[3]||void 0,file:s[2],line:s[1]?+s[1]:void 0,raw:t[n]})}return d(r)}function
|
|
9
|
-
`).filter(t=>!!t.match(
|
|
6
|
+
`).length?V(e):e.stack?L(e):B(e)}function V(e,a){const o=/Line (\d+).*script (?:in )?(\S+)/i,t=e.message.split(`
|
|
7
|
+
`),r=[];for(let n=2,c=t.length;n<c;n+=2){const s=o.exec(t[n]);s&&r.push({file:s[2],line:+s[1],raw:t[n]})}return d(r)}function B(e,a){const o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,t=e.stacktrace.split(`
|
|
8
|
+
`),r=[];for(let n=0,c=t.length;n<c;n+=2){const s=o.exec(t[n]);s&&r.push({function:s[3]||void 0,file:s[2],line:s[1]?+s[1]:void 0,raw:t[n]})}return d(r)}function L(e,a){return d(e.stack.split(`
|
|
9
|
+
`).filter(t=>!!t.match($)&&!t.match(/^Error created at/))).map(t=>{const r=t.split("@"),n=m(r.pop()),c=r.shift()||"",s=c.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;let u;c.match(/\(([^)]*)\)/)&&(u=c.replace(/^[^(]+\(([^)]*)\)$/,"$1"));const k=u===void 0||u==="[arguments not available]"?void 0:u.split(",");return{function:s,args:k,file:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:t}})}function X(e){return e.map(a=>({functionName:a.function,args:a.args,fileName:a.file,lineNumber:a.line,columnNumber:a.col,source:a.raw}))}function g(e,a){return X(A(e))}const D={p6:""},G={key:0},M={"text-6xl":""},K={key:0,op75:""},j={my4:"","text-xl":"","text-red":""},q={key:1,"of-auto":"",rounded:"","bg-active":"",p2:""},z=["textContent"],H={key:1,op50:""},ee=y({__name:"error",setup(e){const a=E(),o=v(()=>{const r=a.value?.nuxt?.payload?.error;return r&&(console.error("[Nuxt DevTools] Error in payload:"),console.error(r),console.error({...r})),r}),t=v(()=>{if(!o.value?.stack)return[];try{return o.value.stack.startsWith("<pre>")?g({stack:o.value.stack.replace(/<.*?>/g,"")}):g(o.value)}catch(r){return console.error(r),[]}});return(r,n)=>{const c=x,s=N;return i(),l("div",D,[o.value?(i(),l("div",G,[C(c,{n:"red",icon:"i-carbon-warning-alt-filled",mb5:""},{default:S(()=>n[0]||(n[0]=[w(" Error occurred in this page ")])),_:1}),f("div",M,p(o.value.statusCode||"Client Error"),1),o.value.statusMessage?(i(),l("div",K,p(o.value.statusMessage),1)):_("",!0),f("div",j,p(o.value.message||o.value.description||"Unknown error"),1),t.value.length||o.value.stack?(i(),l("div",q,[n[1]||(n[1]=f("div",{px1:"",op50:""}," Stacktrace ",-1)),t.value.length?(i(),R(s,{key:0,px2:"",stacktrace:t.value},null,8,["stacktrace"])):(i(),l("pre",{key:1,textContent:p(o.value.stack)},null,8,z))])):_("",!0)])):(i(),l("div",H," No error "))])}}});export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as k,a as c,J as g,av as C}from"./
|
|
1
|
+
import{K as k,a as c,J as g,av as C}from"./mdjwfyf1.js";import{p as b,q as B,P as t,a1 as a,Q as s,U as N,R as u,X as E,F as l,a9 as d,a8 as r,u as m}from"./vendor/json-editor-vue-llkaejaf.js";const F={flex:"~ gap-2 items-center",class:"group"},I=["title"],S={key:0,op50:""},V={key:0,flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},D=b({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(f){const p=f,v=k(),h=c(),i=g(),n=B(()=>p.filepath&&i.value?C(p.filepath,i.value.rootDir):{path:p.filepath||""});return(e,o)=>(a(),t("span",F,[s("span",{class:E([e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath},[e.override?(a(),t(l,{key:0},[d(r(e.override),1)],64)):n.value.moduleName?(a(),t(l,{key:1},[s("span",null,r(n.value.moduleName),1),e.subpath?(a(),t("span",S,r(n.value.path.slice(n.value.moduleName.length)),1)):u("",!0)],64)):(a(),t(l,{key:2},[d(r(n.value.path),1)],64))],10,I),N(e.$slots,"default"),e.filepath?(a(),t("div",V,[s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:o[0]||(o[0]=y=>m(v)(e.filepath))},o[2]||(o[2]=[s("div",{"i-carbon-script-reference":""},null,-1)])),s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:o[1]||(o[1]=y=>m(h)(e.filepath))},o[3]||(o[3]=[s("div",{"i-carbon-copy":""},null,-1)]))])):u("",!0)]))}});export{D as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as t}from"./mdjwfyf1.js";import{P as e,a1 as r,U as s}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const a={},c={"h-full":"","of-auto":""};function n(o,f){return r(),e("div",c,[s(o.$slots,"default")])}const d=t(a,[["render",n]]);export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as f,_ as m}from"./mdjwfyf1.js";import{p as v,f as c,P as o,R as s,u as g,a1 as a,F as k,Q as r,a3 as l,M as u,a2 as i,U as _}from"./vendor/json-editor-vue-llkaejaf.js";const x={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},y=v({__name:"HelpFab",setup(w){const t=c(!1),{showHelpButtons:p}=f("ui");return(d,e)=>{const b=m;return g(p)?(a(),o(k,{key:0},[r("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:e[0]||(e[0]=n=>t.value=!t.value)},e[3]||(e[3]=[r("div",{"i-ri:question-mark":""},null,-1)])),l(u,{name:"fade-in"},{default:i(()=>[t.value?(a(),o("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:e[1]||(e[1]=n=>t.value=!1)})):s("",!0)]),_:1}),l(u,{name:"slide-in"},{default:i(()=>[t.value?(a(),o("div",x,[_(d.$slots,"default"),l(b,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=n=>t.value=!1)})])):s("",!0)]),_:3})],64)):s("",!0)}}});export{y as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./duration-display.vue-
|
|
1
|
+
import{_ as S}from"./duration-display.vue-h9mqvgci.js";import{a4 as T,a5 as F,f as V}from"./mdjwfyf1.js";import{p as $,f as H,q as w,P as h,a1 as u,Q as o,a9 as l,X as p,F as y,ae as B,a8 as m,V as P,u as x,a3 as _,S as C,R as N,a2 as f}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as D}from"./nsection-block-ujr6ckr5.js";import{_ as E}from"./help-fab.vue-m2hxka4y.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nicon-title.vue-dsf9ygne.js";const O={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},R={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},Y={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},q={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},Q={"text-sm":""},U={"ws-nowrap":""},X={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__name:"HooksTable",props:{hooks:{}},setup(k){const a=k,r=H("duration"),n=H("asc"),d={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},g=w(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=w(()=>{const e=d[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function c(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function v(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?n.value=n.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=S;return u(),h("table",O,[o("thead",j,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=s=>i("start"))},[t[5]||(t[5]=l(" Order ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="start"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[1]||(t[1]=s=>i("name"))},[t[6]||(t[6]=l(" Hook name ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="name"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[2]||(t[2]=s=>i("listener"))},[t[7]||(t[7]=l(" Listeners ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="listener"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",R,[o("button",{onClick:t[3]||(t[3]=s=>i("executions"))},[t[8]||(t[8]=l(" Executions ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="executions"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",Y,[o("button",{onClick:t[4]||(t[4]=s=>i("duration"))},[t[9]||(t[9]=l(" Duration ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="duration"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),h(y,null,B(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",q,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:P({color:("getHashColorFromString"in e?e.getHashColorFromString:x(T))(c(s.name))})},[o("code",Q,m(c(s.name)),1)],4),o("td",U,[o("code",X,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",J,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),W={class:"markdown-body"},Z={__name:"hooks",setup(k,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",W,d[0]||(d[0]=[o("h1",null,"Hooks",-1),o("p",null,[l("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1)])))}},it=$({__name:"hooks",setup(k){const a=F(),r=V(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=M,c=D,v=Z,i=E;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(c,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n.value.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:n.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),x(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${x(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:x(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{it as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a6 as T,X as A,a7 as S,J as P,N as j,W as X,E as q}from"./mdjwfyf1.js";import{_ as J}from"./nselect-tabs.vue-ka2pg1fx.js";import{_ as Q}from"./nnavbar.vue-b1xmcmcp.js";import{_ as U}from"./filepath-item.vue-dwl8a8iu.js";import{_ as R}from"./composable-item.vue-i0hzo2zi.js";import{p as C,P as u,a1 as a,F as k,ae as M,a3 as c,Q as i,S as w,R as x,u as f,q as _,a8 as W,f as B,a2 as $}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as Y}from"./nsection-block-ujr6ckr5.js";import{_ as G}from"./help-fab.vue-m2hxka4y.js";import{D as V}from"./constants-b32h69zq.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nmarkdown.vue-iw2voruc.js";import"./client-gsjyqe32.js";import"./index-jc4yj4to.js";import"./nicon-title.vue-dsf9ygne.js";const K={flex:"~ wrap gap2",p2:"",pl4:""},O=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=U,e=R;return a(),u("div",null,[(a(!0),u(k,null,M(r.map.entries(),([l,m])=>(a(),u("div",{key:l},[c(o,{filepath:l,op50:"","hover:underline":""},null,8,["filepath"]),i("div",K,[(a(!0),u(k,null,M(m,g=>(a(),w(e,{key:g.as,item:g,metadata:r.metadata,"is-directive":g.meta?.vueDirective===!0,filepath:l.match(/^[\w@]/)?void 0:l},null,8,["item","metadata","is-directive","filepath"]))),128))])]))),128))])}}}),Z={key:0,flex:"~ col gap-2 items-start"},ee=C({__name:"HelpImportsDirs",setup(D){const r=T();return(v,o)=>{const e=U;return f(r)?.dirs?(a(),u("div",Z,[(a(!0),u(k,null,M(f(r).dirs,l=>(a(),w(e,{key:l,filepath:l,"text-primary":""},null,8,["filepath"]))),128))])):x("",!0)}}}),te={flex:"~ gap-2 wrap",mb6:""},oe=C({__name:"HelpImportsModules",setup(D){const r=T(),v=_(()=>[...new Set(r.value?.imports.map(o=>A(o.from)).filter(o=>!!o&&!S(o)))]);return(o,e)=>(a(),u("div",te,[(a(!0),u(k,null,M(v.value,l=>(a(),u("code",{key:l,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},W(l),1))),128))]))}}),se={class:"markdown-body"},ae={__name:"imports",setup(D,{expose:r}){return r({frontmatter:{}}),(o,e)=>{const l=ee,m=oe;return a(),u("div",se,[e[0]||(e[0]=i("h1",null,"Auto imports",-1)),e[1]||(e[1]=i("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=i("hr",null,null,-1)),e[3]||(e[3]=i("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),c(l),e[4]||(e[4]=i("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),c(m),e[5]||(e[5]=i("hr",null,null,-1)),e[6]||(e[6]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)),e[7]||(e[7]=i("h2",null,"Directives",-1)),e[8]||(e[8]=i("p",null,"Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1)),e[9]||(e[9]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/directory-structure/directives",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},le={key:0,relative:"","h-full":"","of-auto":""},re={key:0,flex:"~ gap-2 items-center lt-sm:col lt-sm:items-start"},$e=C({__name:"imports",setup(D){const r=P(),v=B("all"),o=B("all"),e=B(""),l=T(),m=_(()=>l.value?.metadata),g=_(()=>l.value?.imports.filter(d=>d.as||d.name).sort((d,n)=>(d.as||d.name).localeCompare(n.as||n.name))||[]),z=_(()=>new j(g.value,{keys:["from","as","name"]})),s=_(()=>{const d=new Map,n=new Map,I=new Map;let p=e.value?z.value.search(e.value).map(t=>t.item):g.value;const N=o.value;N==="composables"?p=p.filter(t=>t.meta?.vueDirective!==!0):N==="directives"&&(p=p.filter(t=>t.meta?.vueDirective===!0)),v.value==="using"&&m.value?p=p.filter(t=>(t.as||t.name)in m.value.injectionUsage):v.value==="not-used"&&m.value&&(p=p.filter(t=>!((t.as||t.name)in m.value.injectionUsage)));const h={user:0,lib:0,builtin:0};return p.forEach(t=>{const b=X(t.from)?S(A(t.from))?I:n:d;b.has(t.from)||b.set(t.from,[]),b.get(t.from).push(t),h[b===d?"user":b===n?"lib":"builtin"]++}),{user:d,lib:n,builtin:I,count:h}}),F=_(()=>o.value==="directives"?`${s.value.count.user} directives from ${s.value.user.size} modules`:`${s.value.count.user} composables from ${s.value.user.size} modules`),E=_(()=>o.value==="directives"?`${s.value.count.builtin} directives`:`${s.value.count.builtin} composables`),H=_(()=>o.value==="directives"?`${s.value.count.lib} directives from ${s.value.lib.size} packages`:`${s.value.count.lib} composables from ${s.value.lib.size} packages`);return(d,n)=>{const I=q,p=J,N=Q,h=O,t=Y,b=ae,L=G;return a(),u(k,null,[f(r)?(a(),u("div",le,[c(N,{search:e.value,"onUpdate:search":n[2]||(n[2]=y=>e.value=y),pb3:""},{default:$(()=>[m.value?(a(),u("div",re,[c(I,{icon:"carbon-filter",op50:""}),c(p,{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=y=>v.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"]),c(p,{modelValue:o.value,"onUpdate:modelValue":n[1]||(n[1]=y=>o.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Composables",value:"composables"},{label:"Directives",value:"directives"}]},null,8,["modelValue"])])):x("",!0)]),_:1},8,["search"]),s.value.user.size?(a(),w(t,{key:0,open:s.value.count.user<=f(V),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:F.value},{default:$(()=>[c(h,{map:s.value.user,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","icon","text","description"])):x("",!0),s.value.builtin.size?(a(),w(t,{key:1,open:s.value.count.builtin<=f(V),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:E.value},{default:$(()=>[c(h,{map:s.value.builtin,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0),s.value.lib.size?(a(),w(t,{key:2,open:s.value.count.lib<=f(V),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:H.value},{default:$(()=>[c(h,{map:s.value.lib,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0)])):x("",!0),c(L,null,{default:$(()=>[c(b)]),_:1})],64)}}});export{$e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as y,g,h as N,_ as b,i as k,t as h,j as w}from"./mdjwfyf1.js";import{_ as C}from"./nlink.vue-jhrzaqra.js";import{_ as V}from"./ncheckbox.vue-o1qauqkh.js";import{p as B,f as L,S as u,a1 as m,a2 as o,Q as t,a3 as n,R as T,a9 as l,u as j}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const D={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},P={"max-w-190":"","text-lg":""},S={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},U=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){h.value=s.value,w.value=!1}function _(){a.value=!1,p.value.devtools.close()}return($,e)=>{const f=N,r=C,i=b,x=V,v=k;return m(),u(v,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",D,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",P,[n(f,{"mr-0.5":"","inline-block":"","h-5":"","translate-y--1.1":"","align-mid":""}),e[1]||(e[1]=l(" is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!")),e[2]||(e[2]=t("br",null,null,-1))]),t("p",S,[e[4]||(e[4]=l(" Learn more at ")),n(r,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:o(()=>e[3]||(e[3]=[l(" devtools.nuxt.com ")])),_:1})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1}),j(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:_},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1})):T("",!0)]),t("div",E,[t("div",F,[n(x,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.value=c),n:"green6"},{default:o(()=>[e[8]||(e[8]=t("span",{op50:""},"Send anonymous statistics, help us improving DevTools",-1)),n(r,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op35:"",textContent:"Learn more"})]),_:1},8,["modelValue"])])])]),_:1})}}});export{U as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const l=/\d/,C=["-","_","/","."];function h(e=""){if(!l.test(e))return e!==e.toLowerCase()}function c(e,p){const i=C,n=[];if(!e||typeof e!="string")return n;let t="",s,a;for(const r of e){const u=i.includes(r);if(u===!0){n.push(t),t="",s=void 0;continue}const o=h(r);if(a===!1){if(s===!1&&o===!0){n.push(t),t=r,s=o;continue}if(s===!0&&o===!1&&t.length>1){const f=t.at(-1);n.push(t.slice(0,Math.max(0,t.length-1))),t=f+r,s=o;continue}}t+=r,s=o,a=u}return n.push(t),n}function y(e){return e?e[0].toUpperCase()+e.slice(1):""}function A(e,p){return e?(Array.isArray(e)?e:c(e)).map(i=>y(i)).join(""):""}function R(e,p){return e?(Array.isArray(e)?e:c(e)).map(i=>i.toLowerCase()).join("-"):""}export{R as k,A as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as w,U as y,bm as B,_ as C,E as P,B as V}from"./mdjwfyf1.js";import{_ as $}from"./nmarkdown.vue-iw2voruc.js";import{p as v,S as a,a1 as n,a2 as o,a3 as c,Q as i,R as m,a8 as _,P as E,F,ae as I,a4 as L,a9 as S}from"./vendor/json-editor-vue-llkaejaf.js";const T={"text-xl":""},D={flex:"~ gap2 wrap"},U=v({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(l,{emit:p}){const d=l,u=p;function f(e,s){V("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const g=B,k=$,b=P,h=C,N=y,x=w;return n(),a(x,null,{default:o(()=>[c(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[c(g,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",T,_(e.title),1),e.description?(n(),a(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):m("",!0),i("div",D,[(n(!0),E(F,null,I(e.actions,(t,r)=>(n(),a(h,L({key:r,n:"solid primary",disabled:t.pending,to:t.src,target:t.src?"_blank":void 0,ref_for:!0},t.attrs,{onClick:G=>f(t,r)}),{default:o(()=>[t.pending?(n(),a(b,{key:0,icon:"carbon-circle-dash","animate-spin":""})):m("",!0),S(" "+_(t.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{U as _};
|