@nuxt/devtools 1.5.2 → 1.6.1
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 +11 -11
- package/dist/client/404.html +11 -11
- package/dist/client/_nuxt/__blank-9iu4tv0f.js +1 -0
- package/dist/client/_nuxt/{analyze-build-e425i59x.js → analyze-build-nqeql2rs.js} +1 -1
- package/dist/client/_nuxt/{assets-hqqei3nw.js → assets-jvf69cxf.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/ab41567e-1b8e-4e48-840c-591dd62a1246.json +1 -0
- package/dist/client/_nuxt/{client-klf75x38.js → client-dgt05ivb.js} +1 -1
- package/dist/client/_nuxt/{code-diff.vue-o4wbvlx4.js → code-diff.vue-i05ynbel.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-6i6xi2fc.js → code-snippets.vue-17pri79b.js} +1 -1
- package/dist/client/_nuxt/components-d1yojeh6.js +1 -0
- package/dist/client/_nuxt/components-tree-gcdwuwyn.js +1 -0
- package/dist/client/_nuxt/{composable-item.vue-cqngk4q9.js → composable-item.vue-ihurs8kc.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-i973a0f7.js → custom-_name_-ik277266.js} +1 -1
- package/dist/client/_nuxt/{default-fs6fj1ox.js → default-c97elafe.js} +1 -1
- package/dist/client/_nuxt/{duration-display.vue-h3qa2740.js → duration-display.vue-n7a3864v.js} +1 -1
- package/dist/client/_nuxt/entry.css-kzp9yj98.css +1 -0
- package/dist/client/_nuxt/{error-404-jekwr9cc.js → error-404-chhw212o.js} +1 -1
- package/dist/client/_nuxt/{error-500-lr6gdpzz.js → error-500-oi6j6wh4.js} +1 -1
- package/dist/client/_nuxt/{error-md1r8lso.js → error-kcw3c5n2.js} +1 -1
- package/dist/client/_nuxt/{filepath-item.vue-glmdqa10.js → filepath-item.vue-jp3k05dh.js} +1 -1
- package/dist/client/_nuxt/full-j1e8c0fm.js +1 -0
- package/dist/client/_nuxt/{help-fab.vue-mlzwn30w.js → help-fab.vue-kqlhhn29.js} +1 -1
- package/dist/client/_nuxt/{hooks-bnzchi0i.js → hooks-bbeec6rm.js} +1 -1
- package/dist/client/_nuxt/{imports-cbtnfkhl.js → imports-cadcbs1b.js} +1 -1
- package/dist/client/_nuxt/index-f7gtpn4a.js +2 -0
- package/dist/client/_nuxt/{index-k00iz3rh.js → index-h6urifqi.js} +1 -1
- package/dist/client/_nuxt/{launch-page.vue-bhrsn8uh.js → launch-page.vue-opmg26gw.js} +1 -1
- package/dist/client/_nuxt/{modules-igokqzrs.js → modules-dckgmu9u.js} +1 -1
- package/dist/client/_nuxt/nbadge-ggvrch1r.js +1 -0
- package/dist/client/_nuxt/{ncheckbox.vue-o2hwupki.js → ncheckbox.vue-ir8t2t9x.js} +1 -1
- package/dist/client/_nuxt/{ncode-block.vue-bfbbo3c9.js → ncode-block.vue-d334f2dp.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-gbh2xlxa.js → ndrawer.vue-fdnlfvql.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-imy4j1ut.js → ndropdown.vue-haoov59z.js} +1 -1
- package/dist/client/_nuxt/{nicon-title.vue-g9trlv29.js → nicon-title.vue-ef3vf9hr.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-m9a9g2nu.js → nlink.vue-eq8gk3iz.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown.vue-nnge8mex.js → nmarkdown.vue-bwv440ol.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-bkzsmqvi.js → nnavbar.vue-jap952ju.js} +1 -1
- package/dist/client/_nuxt/none-oo3u4xub.js +1 -0
- package/dist/client/_nuxt/{nsection-block-mvl3r2lh.js → nsection-block-hjiyf44n.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs.vue-ge5b0l6l.js → nselect-tabs.vue-ctgj28x2.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-hy8ki6lu.js → nselect.vue-kb4ychx8.js} +1 -1
- package/dist/client/_nuxt/nxp3p1l5.js +16 -0
- package/dist/client/_nuxt/{open-graph-fhyacqfw.js → open-graph-fwcucpwr.js} +1 -1
- package/dist/client/_nuxt/{overview-a4a4nxuz.js → overview-du74wcc9.js} +1 -1
- package/dist/client/_nuxt/{pages-fd0qp29y.js → pages-m3ksw3nx.js} +1 -1
- package/dist/client/_nuxt/{payload-lyo3aps3.js → payload-np4rk8uw.js} +1 -1
- package/dist/client/_nuxt/pinia-n87t5bm8.js +1 -0
- package/dist/client/_nuxt/{plugins-mp5sfawa.js → plugins-jcz0d5g6.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-drd2xc4c.js → runtime-configs-h7di7gvu.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-cpfletr7.js → server-route-inputs.vue-hs0k8usl.js} +1 -1
- package/dist/client/_nuxt/{server-routes-k7mom6xb.js → server-routes-chengpen.js} +2 -2
- package/dist/client/_nuxt/{server-tasks-j2bmgi2v.js → server-tasks-il5b1l64.js} +1 -1
- package/dist/client/_nuxt/{settings-ec9icdbe.js → settings-k964fibj.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list.vue-f3syfbv2.js → stacktrace-list.vue-n51hjl65.js} +1 -1
- package/dist/client/_nuxt/{state-components-g80e8udz.js → state-components-j9dsopcn.js} +1 -1
- package/dist/client/_nuxt/{state-editor.vue-ctg6fpme.js → state-editor.vue-eev8247c.js} +1 -1
- package/dist/client/_nuxt/{state-modules-oudtqotm.js → state-modules-jx57qxz7.js} +1 -1
- package/dist/client/_nuxt/{storage-nlw2wtfd.js → storage-c7x4faia.js} +1 -1
- package/dist/client/_nuxt/{terminals-c2ntm7go.js → terminals-lb2z98e5.js} +1 -1
- package/dist/client/_nuxt/{timeline-n8xue6f8.js → timeline-bpt56wqz.js} +1 -1
- package/dist/client/_nuxt/vendor/{json-editor-vue-mdfcgt41.js → json-editor-vue-f126ciji.js} +1 -1
- package/dist/client/_nuxt/vendor/shiki-hhqxa887.js +161 -0
- package/dist/client/_nuxt/{virtual-files-fzfc1yfq.js → virtual-files-o77aoqwj.js} +1 -1
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-k82i9hy2.js → vue-virtual-scroller.esm-dbbmx9wu.js} +1 -1
- package/dist/client/index.html +11 -11
- package/dist/module.json +1 -1
- package/package.json +10 -11
- package/dist/client/_nuxt/__blank-c3ogaker.js +0 -1
- package/dist/client/_nuxt/builds/meta/1abe169c-5f5f-4262-855f-eb2f24078f3d.json +0 -1
- package/dist/client/_nuxt/components-o21b86sj.js +0 -1
- package/dist/client/_nuxt/components-tree-i1yu90tr.js +0 -1
- package/dist/client/_nuxt/entry.css-bgn3dvs3.css +0 -1
- package/dist/client/_nuxt/full-c1620jm2.js +0 -1
- package/dist/client/_nuxt/hbekkx0o.js +0 -16
- package/dist/client/_nuxt/index-2d59tk7c.js +0 -2
- package/dist/client/_nuxt/nbadge-kwevoygl.js +0 -1
- package/dist/client/_nuxt/none-6fpb4ffh.js +0 -1
- package/dist/client/_nuxt/pinia-bjbyk980.js +0 -1
- package/dist/client/_nuxt/vendor/shiki-fpe2sz4h.js +0 -87
- package/module.cjs +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,u as i,a as u}from"./
|
|
1
|
+
import{_ as a,u as i,a as u}from"./nxp3p1l5.js";import{Q as c,S as l,U as e,a5 as r,a0 as d,$ as p,a6 as f}from"./vendor/json-editor-vue-f126ciji.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=u;return c(),l("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},N=a(y,[["__scopeId","data-v-32b3a4ae"]]);export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s,u as i}from"./
|
|
1
|
+
import{_ as s,u as i}from"./nxp3p1l5.js";import{Q as a,S as u,U as e,a5 as o}from"./vendor/json-editor-vue-f126ciji.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return i({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(a(),u("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},y=s(f,[["__scopeId","data-v-b5787423"]]);export{y as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as E,w as x}from"./
|
|
1
|
+
import{Q as E,w as x}from"./nxp3p1l5.js";import{_ as N}from"./stacktrace-list.vue-n51hjl65.js";import{k as y,l as m,S as u,a0 as w,$ as C,U as f,a5 as d,W as _,O as S,Q as i,a6 as $}from"./vendor/json-editor-vue-f126ciji.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";import"./filepath-item.vue-jp3k05dh.js";const O=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,R=/^(eval@)?(\[native code\])?$/;function F(e,a){if(typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u")return V(e);if(e.stack&&e.stack.match(h))return I(e);if(e.stack)return A(e);throw new Error("Cannot parse given Error object")}function v(e){if(!e.includes(":"))return[e,void 0,void 0];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[r[1],r[2]||void 0,r[3]||void 0]}function p(e,a){return e}function I(e,a){return b(e.stack)}function b(e,a){return p(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 o=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const n=o.match(/ (\(.+\)$)/);o=n?o.replace(n[0],""):o;const c=v(n?n[1]:o),s=n&&o||void 0,l=["eval","<anonymous>"].includes(c[0])?void 0:c[0];return{function:s,file:l,line:c[1]?+c[1]:void 0,col:c[2]?+c[2]:void 0,raw:t}})}function A(e,a){return T(e.stack)}function T(e,a){return p(e.split(`
|
|
3
3
|
`).filter(t=>!t.match(R))).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 o=/(([^\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(o),c=n&&n[1]?n[1]:void 0,s=v(t.replace(o,""));return{function:c,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:t}}})}function V(e,a){return!e.stacktrace||e.message.includes(`
|
|
4
4
|
`)&&e.message.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as d,H as h,ax as f}from"./
|
|
1
|
+
import{J as d,H as h,ax as f}from"./nxp3p1l5.js";import{k as v,l as c,Q as o,O as k,$ as y,S as t,F as l,a6 as i,a5 as s,U as B,W as C,Y as N,u as g,a7 as b}from"./vendor/json-editor-vue-f126ciji.js";const w={key:0,op50:""},I=v({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(u){const n=u,m=d(),r=h(),a=c(()=>n.filepath&&r.value?f(n.filepath,r.value.rootDir):{path:n.filepath||""});return(e,p)=>(o(),k(b(e.filepath?"button":"span"),{class:N([e.filepath?"hover:underline":"",e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath,onClick:p[0]||(p[0]=D=>e.filepath&&g(m)(e.filepath))},{default:y(()=>[e.override?(o(),t(l,{key:0},[i(s(e.override),1)],64)):a.value.moduleName?(o(),t(l,{key:1},[B("span",null,s(a.value.moduleName),1),e.subpath?(o(),t("span",w,s(a.value.path.slice(a.value.moduleName.length)),1)):C("",!0)],64)):(o(),t(l,{key:2},[i(s(a.value.path),1)],64))]),_:1},8,["class","title"]))}});export{I as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"./nxp3p1l5.js";import{S as e,V as r,Q as s}from"./vendor/json-editor-vue-f126ciji.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";const c={},n={"h-full":"","of-auto":""};function a(o,f){return s(),e("div",n,[r(o.$slots,"default")])}const d=t(c,[["render",a]]);export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as f,e as m}from"./
|
|
1
|
+
import{b as f,e as m}from"./nxp3p1l5.js";import{k as v,b as c,u as k,S as o,U as n,a0 as s,$ as i,ad as u,F as g,W as a,Q as l,V as x}from"./vendor/json-editor-vue-f126ciji.js";const _={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":""},h=v({__name:"HelpFab",setup(w){const t=c(!1),{showHelpButtons:b}=f("ui");return(d,e)=>{const p=m;return k(b)?(l(),o(g,{key:0},[n("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]=r=>t.value=!t.value)},e[3]||(e[3]=[n("div",{"i-ri:question-mark":""},null,-1)])),s(u,{name:"fade-in"},{default:i(()=>[t.value?(l(),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]=r=>t.value=!1)})):a("",!0)]),_:1}),s(u,{name:"slide-in"},{default:i(()=>[t.value?(l(),o("div",_,[x(d.$slots,"default"),s(p,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=r=>t.value=!1)})])):a("",!0)]),_:3})],64)):a("",!0)}}});export{h as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./duration-display.vue-
|
|
1
|
+
import{_ as S}from"./duration-display.vue-n7a3864v.js";import{a6 as T,a7 as F,Q as B}from"./nxp3p1l5.js";import{k as $,b as H,l as w,Q as u,S as h,U as o,a6 as l,Y as p,F as y,ab as V,a5 as m,X as D,u as x,a0 as _,O as C,$ as f,W as N}from"./vendor/json-editor-vue-f126ciji.js";import{_ as O}from"./nsection-block-hjiyf44n.js";import{_ as P}from"./help-fab.vue-kqlhhn29.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";import"./nicon-title.vue-ef3vf9hr.js";const E={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},Y={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},z={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},Q={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},U={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},R={"text-sm":""},W={"ws-nowrap":""},X={"text-sm":""},q={"w-0":"","text-center":"","text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-right":"","text-sm":""},K=$({__name:"HooksTable",props:{hooks:{}},setup(k){const a=k,r=H("duration"),n=H("asc"),c={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=c[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function d(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",E,[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",Y,[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",z,[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",A,[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",Q,[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,V(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",U,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:D({color:("getHashColorFromString"in e?e.getHashColorFromString:x(T))(d(s.name))})},[o("code",R,m(d(s.name)),1)],4),o("td",W,[o("code",X,m(v(s.name)),1)]),o("td",q,m(s.listeners),1),o("td",G,m(s.executions.length+1),1),o("td",J,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),M={class:"markdown-body"},Z={__name:"hooks",setup(k,{expose:a}){return a({frontmatter:{}}),(n,c)=>(u(),h("div",M,c[0]||(c[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)])))}},tt=Z,ut=$({__name:"hooks",setup(k){const a=F(),r=B(),n=w(()=>r.value?.metrics.clientHooks());return(c,g)=>{const b=K,d=O,v=tt,i=P;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(d,{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(d,{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{ut as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a8 as B,Z as A,a9 as F,H as z,M as T,Y as E,D as j}from"./
|
|
1
|
+
import{a8 as B,Z as A,a9 as F,H as z,M as T,Y as E,D as j}from"./nxp3p1l5.js";import{_ as L}from"./nselect-tabs.vue-ctgj28x2.js";import{_ as P}from"./nnavbar.vue-jap952ju.js";import{_ as U}from"./filepath-item.vue-jp3k05dh.js";import{_ as Y}from"./composable-item.vue-ihurs8kc.js";import{k as N,Q as a,S as l,F as y,ab as M,a0 as i,U as _,O as x,u as d,W as b,l as g,a5 as O,b as S,$ as h}from"./vendor/json-editor-vue-f126ciji.js";import{_ as Q}from"./nsection-block-hjiyf44n.js";import{_ as W}from"./help-fab.vue-kqlhhn29.js";import{D}from"./constants-b32h69zq.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";import"./nmarkdown.vue-bwv440ol.js";import"./client-dgt05ivb.js";import"./nicon-title.vue-ef3vf9hr.js";const X={flex:"~ wrap gap2",p2:"",pl4:""},Z=N({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup($){return(n,p)=>{const s=U,e=Y;return a(),l("div",null,[(a(!0),l(y,null,M(n.map.entries(),([o,v])=>(a(),l("div",{key:o},[i(s,{filepath:o,op50:"","hover:underline":""},null,8,["filepath"]),_("div",X,[(a(!0),l(y,null,M(v,w=>(a(),x(e,{key:w.as,item:w,metadata:n.metadata,filepath:o.match(/^[\w@]/)?void 0:o},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),q={key:0,flex:"~ col gap-2 items-start"},G=N({__name:"HelpImportsDirs",setup($){const n=B();return(p,s)=>{const e=U;return d(n)?.dirs?(a(),l("div",q,[(a(!0),l(y,null,M(d(n).dirs,o=>(a(),x(e,{key:o,filepath:o,"text-primary":""},null,8,["filepath"]))),128))])):b("",!0)}}}),J={flex:"~ gap-2 wrap",mb6:""},K=N({__name:"HelpImportsModules",setup($){const n=B(),p=g(()=>[...new Set(n.value?.imports.map(s=>A(s.from)).filter(s=>!!s&&!F(s)))]);return(s,e)=>(a(),l("div",J,[(a(!0),l(y,null,M(p.value,o=>(a(),l("code",{key:o,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},O(o),1))),128))]))}}),R={class:"markdown-body"},ee={__name:"imports",setup($,{expose:n}){return n({frontmatter:{}}),(s,e)=>{const o=G,v=K;return a(),l("div",R,[e[0]||(e[0]=_("h1",null,"Auto imports",-1)),e[1]||(e[1]=_("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]=_("hr",null,null,-1)),e[3]||(e[3]=_("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),i(o),e[4]||(e[4]=_("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),i(v),e[5]||(e[5]=_("hr",null,null,-1)),e[6]||(e[6]=_("p",null,[_("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},oe=ee,te={key:0,relative:"","h-full":"","of-auto":""},ae={key:0,flex:"~ gap-2 items-center"},he=N({__name:"imports",setup($){const n=z(),p=S("all"),s=S(""),e=B(),o=g(()=>e.value?.metadata),v=g(()=>e.value?.imports.filter(m=>m.as||m.name).sort((m,u)=>(m.as||m.name).localeCompare(u.as||u.name))||[]),w=g(()=>new T(v.value,{keys:["from","as","name"]})),r=g(()=>{const m=new Map,u=new Map,k=new Map;let f=s.value?w.value.search(s.value).map(t=>t.item):v.value;p.value==="using"&&o.value?f=f.filter(t=>(t.as||t.name)in o.value.injectionUsage):p.value==="not-used"&&o.value&&(f=f.filter(t=>!((t.as||t.name)in o.value.injectionUsage)));const I={user:0,lib:0,builtin:0};return f.forEach(t=>{const c=E(t.from)?F(A(t.from))?k:u:m;c.has(t.from)||c.set(t.from,[]),c.get(t.from).push(t),I[c===m?"user":c===u?"lib":"builtin"]++}),{user:m,lib:u,builtin:k,count:I}});return(m,u)=>{const k=j,f=L,I=P,t=Z,c=Q,V=oe,H=W;return a(),l(y,null,[d(n)?(a(),l("div",te,[i(I,{search:s.value,"onUpdate:search":u[1]||(u[1]=C=>s.value=C),pb3:""},{default:h(()=>[o.value?(a(),l("div",ae,[i(k,{icon:"carbon-filter",op50:""}),i(f,{modelValue:p.value,"onUpdate:modelValue":u[0]||(u[0]=C=>p.value=C),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])):b("",!0)]),_:1},8,["search"]),r.value.user.size?(a(),x(c,{key:0,open:r.value.count.user<=d(D),icon:"carbon-function",text:"User composables",description:`${r.value.count.user} composables from ${r.value.user.size} modules`},{default:h(()=>[i(t,{map:r.value.user,root:d(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),r.value.builtin.size?(a(),x(c,{key:1,open:r.value.count.builtin<=d(D),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${r.value.count.builtin} composables`},{default:h(()=>[i(t,{map:r.value.builtin,root:d(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),r.value.lib.size?(a(),x(c,{key:2,open:r.value.count.lib<=d(D),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${r.value.count.lib} composables from ${r.value.lib.size} packages`},{default:h(()=>[i(t,{map:r.value.lib,root:d(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0)])):b("",!0),i(H,null,{default:h(()=>[i(V)]),_:1})],64)}}});export{he as default};
|