@nuxt/devtools-nightly 2.4.0-29091142.bbfd37e → 2.4.1-29150090.ad8f305
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 +16 -54
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +23 -23
- package/dist/client/404.html +23 -23
- package/dist/client/_nuxt/__blank-mumgdw29.js +1 -0
- package/dist/client/_nuxt/analyze-build-f2qpp6jm.js +1 -0
- package/dist/client/_nuxt/assets-hnuh0mae.js +16 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/c48bebdc-b199-49c2-8188-dedb2e144aa9.json +1 -0
- package/dist/client/_nuxt/{client-jvnhv8ra.js → client-jlcyzfwz.js} +1 -1
- package/dist/client/_nuxt/code-diff.vue-b5lbtsap.js +8 -0
- package/dist/client/_nuxt/code-snippets.vue-b6zmibe7.js +1 -0
- package/dist/client/_nuxt/components-boqbn6wn.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-e5jvlwop.js +1 -0
- package/dist/client/_nuxt/{custom-_name_-o7dv9kij.js → custom-_name_-btzoigcx.js} +1 -1
- package/dist/client/_nuxt/data-schema-button.vue-l4lxzyij.js +1 -0
- package/dist/client/_nuxt/{data-schema-drawer-nra0hqyp.js → data-schema-drawer-hd9tzog6.js} +2 -2
- package/dist/client/_nuxt/debug-9fwp3ytg.js +1 -0
- package/dist/client/_nuxt/{default-iucf9a1s.js → default-b7912fqb.js} +1 -1
- package/dist/client/_nuxt/{duration-display.vue-hy8s2ai6.js → duration-display.vue-l7hutejt.js} +1 -1
- package/dist/client/_nuxt/entry.css-gmgc8zz6.css +1 -0
- package/dist/client/_nuxt/{error-404-h1qekzux.js → error-404-j3kvqc8z.js} +1 -1
- package/dist/client/_nuxt/error-404.css-elh6uwdu.css +1 -0
- package/dist/client/_nuxt/{error-500-t2ub6siu.js → error-500-fpytr659.js} +1 -1
- package/dist/client/_nuxt/error-500.css-bxkdntg7.css +1 -0
- package/dist/client/_nuxt/{error-nc04qshe.js → error-h96ha3l5.js} +5 -5
- package/dist/client/_nuxt/{filepath-item.vue-ifezcc65.js → filepath-item.vue-pjacbi6e.js} +1 -1
- package/dist/client/_nuxt/full-ndf2cbnb.js +1 -0
- package/dist/client/_nuxt/{help-fab.vue-l40wc2st.js → help-fab.vue-gg941gpi.js} +1 -1
- package/dist/client/_nuxt/hooks-g9epqvqv.js +1 -0
- package/dist/client/_nuxt/{imports-ks2ns1wf.js → imports-o8fie52q.js} +1 -1
- package/dist/client/_nuxt/index-orgvtm8y.js +1 -0
- package/dist/client/_nuxt/kcxntt4c.js +15 -0
- package/dist/client/_nuxt/launch-page.vue-n602viwk.js +1 -0
- package/dist/client/_nuxt/modules-c754c74x.js +1 -0
- package/dist/client/_nuxt/nbadge-g97w4htj.js +1 -0
- package/dist/client/_nuxt/ncheckbox.vue-e9xa2wmo.js +1 -0
- package/dist/client/_nuxt/{ncode-block.vue-8qivpy1q.js → ncode-block.vue-lge6rogf.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-milk9g16.js → ndrawer.vue-k1x9j44v.js} +1 -1
- package/dist/client/_nuxt/ndropdown.vue-eqr6jtxu.js +1 -0
- package/dist/client/_nuxt/nicon-title.vue-d27ih16g.js +1 -0
- package/dist/client/_nuxt/{nlink.vue-hz7xx99l.js → nlink.vue-gv0kxm0q.js} +1 -1
- package/dist/client/_nuxt/nmarkdown.vue-isat7p33.js +1 -0
- package/dist/client/_nuxt/{nnavbar.vue-fyzefa7j.js → nnavbar.vue-npkjfqtu.js} +1 -1
- package/dist/client/_nuxt/none-no6wpjfq.js +1 -0
- package/dist/client/_nuxt/nsection-block-h8ljvdgq.js +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-f7fjeew6.js +1 -0
- package/dist/client/_nuxt/{nselect.vue-cspgavw4.js → nselect.vue-eg36z7xq.js} +1 -1
- package/dist/client/_nuxt/{nswitch.vue-n63sh5rf.js → nswitch.vue-f07mzo8x.js} +1 -1
- package/dist/client/_nuxt/open-graph-s33h1caw.js +3 -0
- package/dist/client/_nuxt/overview-etc49gqj.js +1 -0
- package/dist/client/_nuxt/pages-n09nkqmg.js +1 -0
- package/dist/client/_nuxt/payload-c7whkfb0.js +1 -0
- package/dist/client/_nuxt/pinia-birzn67w.js +1 -0
- package/dist/client/_nuxt/plugins-kam33ffh.js +1 -0
- package/dist/client/_nuxt/render-tree-o0447cew.js +1 -0
- package/dist/client/_nuxt/{runtime-configs-ecl9pb0m.js → runtime-configs-f07iylm6.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-c7lnu84n.js → server-discovery-ekped2dy.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-byqawym7.js → server-route-inputs.vue-o9uv8sv5.js} +1 -1
- package/dist/client/_nuxt/{server-routes-jvxbktct.js → server-routes-ogw7poz3.js} +2 -2
- package/dist/client/_nuxt/server-tasks-o7f787bg.js +1 -0
- package/dist/client/_nuxt/settings-l57gc40v.js +1 -0
- package/dist/client/_nuxt/{stacktrace-list.vue-dsmfsr8d.js → stacktrace-list.vue-o9lrdclf.js} +1 -1
- package/dist/client/_nuxt/{state-components-dgy5t44w.js → state-components-lhda2i5c.js} +1 -1
- package/dist/client/_nuxt/state-editor.vue-f0gmtda7.js +1 -0
- package/dist/client/_nuxt/state-modules-ddtb2zpx.js +1 -0
- package/dist/client/_nuxt/storage-nfmfy7yx.js +1 -0
- package/dist/client/_nuxt/terminals-nz3pdt0w.js +1 -0
- package/dist/client/_nuxt/{timeline-n7qrr0h5.js → timeline-fntkjvvs.js} +2 -2
- package/dist/client/_nuxt/{unocss-runtime-kct8zzpi.js → unocss-runtime-n76zvjc0.js} +1 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-pb6xqf2y.js +3857 -0
- package/dist/client/_nuxt/vendor/{quicktype-core-d6crrn92.js → quicktype-core-lhaz4hgj.js} +57 -57
- package/dist/client/_nuxt/vendor/shiki-hjqm7vcp.js +152 -0
- package/dist/client/_nuxt/vendor/unocss-k776m6tm.js +2 -0
- package/dist/client/_nuxt/vendor/{vis-fth2qiu5.js → vis-gqe7ml2e.js} +2 -2
- package/dist/client/_nuxt/{virtual-files-ej2c9mxq.js → virtual-files-bx330vdo.js} +1 -1
- package/dist/client/_nuxt/vue-devtools-f2t5s0pw.js +2 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-iodr444e.js → vue-virtual-scroller.esm-nuoya9vo.js} +2 -2
- package/dist/client/index.html +23 -23
- package/dist/module.d.mts +1 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/view/client.d.ts +2 -1
- package/dist/runtime/plugins/view/client.js +57 -28
- package/dist/runtime/plugins/view/state.d.ts +1 -3
- package/dist/runtime/plugins/view/state.js +0 -3
- package/dist/runtime/plugins/view/utils.d.ts +0 -28
- package/dist/runtime/plugins/view/utils.js +1 -125
- package/dist/runtime/shared/hooks.d.ts +1 -0
- package/dist/shared/{devtools-nightly.c069f83f.mjs → devtools-nightly.Dlu0WIXO.mjs} +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/webcomponents/index.d.mts +20 -0
- package/dist/webcomponents/index.mjs +1543 -0
- package/package.json +46 -38
- package/types.d.ts +1 -1
- package/dist/client/_nuxt/__blank-catci4by.js +0 -1
- package/dist/client/_nuxt/analyze-build-jttd63ji.js +0 -1
- package/dist/client/_nuxt/assets-gglzn90t.js +0 -16
- package/dist/client/_nuxt/builds/meta/4a9bdca8-5c22-4fc7-8398-437f588e3c32.json +0 -1
- package/dist/client/_nuxt/code-diff.vue-k7idjz3p.js +0 -8
- package/dist/client/_nuxt/code-snippets.vue-g128u5r5.js +0 -1
- package/dist/client/_nuxt/components-kigyj3j5.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-h5elegyf.js +0 -1
- package/dist/client/_nuxt/data-schema-button.vue-nju1b5wx.js +0 -1
- package/dist/client/_nuxt/debug-kjznaoju.js +0 -1
- package/dist/client/_nuxt/entry.css-kd26hpr1.css +0 -1
- package/dist/client/_nuxt/error-404.css-itl1ee4a.css +0 -1
- package/dist/client/_nuxt/error-500.css-biq96mi6.css +0 -1
- package/dist/client/_nuxt/full-ezcyueqe.js +0 -1
- package/dist/client/_nuxt/h41qhlrg.js +0 -15
- package/dist/client/_nuxt/hooks-fg8blpj2.js +0 -1
- package/dist/client/_nuxt/index-naevprq0.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-es9mw8wq.js +0 -1
- package/dist/client/_nuxt/modules-n545sb0n.js +0 -1
- package/dist/client/_nuxt/nbadge-mvj0vtjl.js +0 -1
- package/dist/client/_nuxt/ncheckbox.vue-pl5ui7lh.js +0 -1
- package/dist/client/_nuxt/ndropdown.vue-pboodvft.js +0 -1
- package/dist/client/_nuxt/nicon-title.vue-m2ftlsrz.js +0 -1
- package/dist/client/_nuxt/nmarkdown.vue-hrdikzmp.js +0 -1
- package/dist/client/_nuxt/none-f4uo5y2t.js +0 -1
- package/dist/client/_nuxt/nsection-block-bs869psm.js +0 -1
- package/dist/client/_nuxt/nselect-tabs.vue-nnsdw54y.js +0 -1
- package/dist/client/_nuxt/open-graph-l849l3tf.js +0 -3
- package/dist/client/_nuxt/overview-bnjjyc0t.js +0 -1
- package/dist/client/_nuxt/pages-i5hb56o1.js +0 -1
- package/dist/client/_nuxt/payload-bnkrkjeo.js +0 -1
- package/dist/client/_nuxt/pinia-mobxec2a.js +0 -1
- package/dist/client/_nuxt/plugins-l1mazldj.js +0 -1
- package/dist/client/_nuxt/render-tree-h4kavos7.js +0 -1
- package/dist/client/_nuxt/server-tasks-jf5t32u9.js +0 -1
- package/dist/client/_nuxt/settings-hnydc4hu.js +0 -1
- package/dist/client/_nuxt/state-editor.vue-o6mvc5yx.js +0 -1
- package/dist/client/_nuxt/state-modules-mpfbsfka.js +0 -1
- package/dist/client/_nuxt/storage-chuzvi78.js +0 -1
- package/dist/client/_nuxt/terminals-7kdtt06d.js +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-exjsfanq.js +0 -3872
- package/dist/client/_nuxt/vendor/shiki-hjrnbayr.js +0 -289
- package/dist/client/_nuxt/vendor/unocss-n30bmhn8.js +0 -2
- package/dist/client/_nuxt/vue-devtools-c54ommx5.js +0 -2
- package/dist/dirs.d.ts +0 -7
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -8
- package/dist/runtime/plugins/view/FrameBox.vue +0 -167
- package/dist/runtime/plugins/view/Main.vue +0 -432
- package/dist/shared/devtools-nightly.427ec2e8.d.ts +0 -57
- package/dist/types.d.ts +0 -41
- /package/dist/shared/{devtools-nightly.427ec2e8.d.mts → devtools-nightly.C1a10l_c.d.mts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,d as i,e as u}from"./
|
|
1
|
+
import{b as a,d as i,e as u}from"./kcxntt4c.js";import{J as c,a3 as l,S as e,aa as r,a5 as d,a4 as p,ab as f}from"./vendor/json-editor-vue-pb6xqf2y.js";import"./vendor/unocss-k776m6tm.js";import"./vendor/shiki-hjqm7vcp.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"},b=["textContent"],h=["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:[{innerHTML:`!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:[{innerHTML:'*,: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 l(),c("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,b),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,h),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-1b107fdd"]]);export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-1b107fdd]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-1b107fdd]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-1b107fdd]{background-color:#ffffff4d}.gradient-border[data-v-1b107fdd]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-1b107fdd]{background-color:#1414144d}.gradient-border[data-v-1b107fdd]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-1b107fdd]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-1b107fdd]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-1b107fdd]{position:fixed}.left-0[data-v-1b107fdd]{left:0}.right-0[data-v-1b107fdd]{right:0}.z-10[data-v-1b107fdd]{z-index:10}.z-20[data-v-1b107fdd]{z-index:20}.grid[data-v-1b107fdd]{display:grid}.mb-16[data-v-1b107fdd]{margin-bottom:4rem}.mb-8[data-v-1b107fdd]{margin-bottom:2rem}.max-w-520px[data-v-1b107fdd]{max-width:520px}.min-h-screen[data-v-1b107fdd]{min-height:100vh}.w-full[data-v-1b107fdd]{width:100%}.flex[data-v-1b107fdd]{display:flex}.cursor-pointer[data-v-1b107fdd]{cursor:pointer}.place-content-center[data-v-1b107fdd]{place-content:center}.items-center[data-v-1b107fdd]{align-items:center}.justify-center[data-v-1b107fdd]{justify-content:center}.overflow-hidden[data-v-1b107fdd]{overflow:hidden}.bg-white[data-v-1b107fdd]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-1b107fdd]{padding-left:1rem;padding-right:1rem}.px-8[data-v-1b107fdd]{padding-left:2rem;padding-right:2rem}.py-2[data-v-1b107fdd]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-1b107fdd]{text-align:center}.text-8xl[data-v-1b107fdd]{font-size:6rem;line-height:1}.text-xl[data-v-1b107fdd]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-1b107fdd]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-1b107fdd]{font-weight:300}.font-medium[data-v-1b107fdd]{font-weight:500}.leading-tight[data-v-1b107fdd]{line-height:1.25}.font-sans[data-v-1b107fdd]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-1b107fdd]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-1b107fdd]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-1b107fdd]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-1b107fdd]{padding-left:0;padding-right:0}.sm\:px-6[data-v-1b107fdd]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-1b107fdd]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-1b107fdd]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-1b107fdd]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s,d as a}from"./
|
|
1
|
+
import{b as s,d as a}from"./kcxntt4c.js";import{J as i,a3 as u,S as e,aa as o}from"./vendor/json-editor-vue-pb6xqf2y.js";import"./vendor/unocss-k776m6tm.js";import"./vendor/shiki-hjqm7vcp.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 a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{innerHTML:`!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:[{innerHTML:'*,: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)=>(u(),i("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-4cd7cb52"]]);export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-4cd7cb52]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-4cd7cb52]{position:fixed}.-bottom-1\/2[data-v-4cd7cb52]{bottom:-50%}.left-0[data-v-4cd7cb52]{left:0}.right-0[data-v-4cd7cb52]{right:0}.grid[data-v-4cd7cb52]{display:grid}.mb-16[data-v-4cd7cb52]{margin-bottom:4rem}.mb-8[data-v-4cd7cb52]{margin-bottom:2rem}.h-1\/2[data-v-4cd7cb52]{height:50%}.max-w-520px[data-v-4cd7cb52]{max-width:520px}.min-h-screen[data-v-4cd7cb52]{min-height:100vh}.place-content-center[data-v-4cd7cb52]{place-content:center}.overflow-hidden[data-v-4cd7cb52]{overflow:hidden}.bg-white[data-v-4cd7cb52]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-4cd7cb52]{padding-left:2rem;padding-right:2rem}.text-center[data-v-4cd7cb52]{text-align:center}.text-8xl[data-v-4cd7cb52]{font-size:6rem;line-height:1}.text-xl[data-v-4cd7cb52]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-4cd7cb52]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-4cd7cb52]{font-weight:300}.font-medium[data-v-4cd7cb52]{font-weight:500}.leading-tight[data-v-4cd7cb52]{line-height:1.25}.font-sans[data-v-4cd7cb52]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-4cd7cb52]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-4cd7cb52]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-4cd7cb52]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-4cd7cb52]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-4cd7cb52]{font-size:2.25rem;line-height:2.5rem}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{f as E,q as x}from"./
|
|
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
|
|
3
|
-
`).filter(t=>!t.match(
|
|
1
|
+
import{f as E,q as x}from"./kcxntt4c.js";import{_ as N}from"./stacktrace-list.vue-o9lrdclf.js";import{p as y,q as _,J as l,a3 as i,a5 as C,S as f,U as v,a4 as S,ab as w,aa as p,V as $}from"./vendor/json-editor-vue-pb6xqf2y.js";import"./vendor/unocss-k776m6tm.js";import"./vendor/shiki-hjqm7vcp.js";import"./filepath-item.vue-pjacbi6e.js";const O=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,R=/^(eval@)?(\[native code\])?$/;function b(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 V(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
|
+
`).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 V(e,a){return A(e.stack)}function A(e,a){return d(e.split(`
|
|
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 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?
|
|
6
|
+
`).length?P(e):e.stack?L(e):B(e)}function P(e,a){const o=/Line (\d+).*script (?:in )?(\S+)/i,t=e.message.split(`
|
|
7
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
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(
|
|
9
|
+
`).filter(t=>!!t.match(O)&&!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(b(e))}const D={p6:""},G={key:0},M={"text-6xl":""},q={key:0,op75:""},K={my4:"","text-xl":"","text-red":""},U={key:1,"of-auto":"",rounded:"","bg-active":"",p2:""},j=["textContent"],z={key:1,op50:""},ee=y({__name:"error",setup(e){const a=E(),o=_(()=>{const r=a.value?.nuxt?.payload?.error;return r&&(console.error("[Nuxt DevTools] Error in payload:"),console.error(r),console.error({...r})),r}),t=_(()=>{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,__:[0]}),f("div",M,p(o.value.statusCode||"Client Error"),1),o.value.statusMessage?(i(),l("div",q,p(o.value.statusMessage),1)):v("",!0),f("div",K,p(o.value.message||o.value.description||"Unknown error"),1),t.value.length||o.value.stack?(i(),l("div",U,[n[1]||(n[1]=f("div",{px1:"",op50:""}," Stacktrace ",-1)),t.value.length?(i(),$(s,{key:0,px2:"",stacktrace:t.value},null,8,["stacktrace"])):(i(),l("pre",{key:1,textContent:p(o.value.stack)},null,8,j))])):v("",!0)])):(i(),l("div",z," No error "))])}}});export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as k,a as c,A as g,a3 as
|
|
1
|
+
import{w as k,a as c,A as g,a3 as b}from"./kcxntt4c.js";import{p as C,q as B,J as t,a3 as a,S as s,W as N,U as u,F as l,ab as d,aa as r,Z as S,u as m}from"./vendor/json-editor-vue-pb6xqf2y.js";const w={flex:"~ gap-2 items-center",class:"group"},E=["title"],F={key:0,op50:""},I={key:0,flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},D=C({__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?b(p.filepath,i.value.rootDir):{path:p.filepath||""});return(e,o)=>(a(),t("span",w,[s("span",{class:S([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",F,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,E),N(e.$slots,"default"),e.filepath?(a(),t("div",I,[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"./kcxntt4c.js";import{J as e,a3 as r,W as s}from"./vendor/json-editor-vue-pb6xqf2y.js";import"./vendor/unocss-k776m6tm.js";import"./vendor/shiki-hjqm7vcp.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as f,_ as m}from"./
|
|
1
|
+
import{g as f,_ as m}from"./kcxntt4c.js";import{p as v,k as c,J as o,U as s,u as k,a3 as a,F as g,S as r,a5 as l,H as u,a4 as i,W as _}from"./vendor/json-editor-vue-pb6xqf2y.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 k(p)?(a(),o(g,{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 _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as S}from"./duration-display.vue-l7hutejt.js";import{g as T}from"./color-mt9xuhgy.js";import{p as $,k as H,q as w,J as h,a3 as u,S as o,ab as l,Z as p,F as y,ag as F,aa as m,X as V,u as k,a5 as _,V as C,U as N,a4 as f}from"./vendor/json-editor-vue-pb6xqf2y.js";import{_ as B}from"./nsection-block-h8ljvdgq.js";import{_ as D}from"./help-fab.vue-gg941gpi.js";import{s as P,f as E}from"./kcxntt4c.js";import"./nicon-title.vue-d27ih16g.js";import"./vendor/unocss-k776m6tm.js";import"./vendor/shiki-hjqm7vcp.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":""},U={"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:""},J={"text-sm":""},R={"ws-nowrap":""},X={"text-sm":""},Z={"w-0":"","text-center":"","text-sm":""},G={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__name:"HooksTable",props:{hooks:{}},setup(x){const a=x,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",U,[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,F(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:V({color:("getHslColorFromStringHash"in e?e.getHslColorFromStringHash:k(T))(c(s.name))})},[o("code",J,m(c(s.name)),1)],4),o("td",R,[o("code",X,m(v(s.name)),1)]),o("td",Z,m(s.listeners),1),o("td",G,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),Q={class:"markdown-body"},W={__name:"hooks",setup(x,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",Q,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)])))}},ut=$({__name:"hooks",setup(x){const a=P(),r=E(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=M,c=B,v=W,i=D;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),k(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${k(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:k(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{ut as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as A,W as S,X as T,A as
|
|
1
|
+
import{V as A,W as S,X as T,A as j,S as P,Y as X,I as Y}from"./kcxntt4c.js";import{_ as q}from"./nselect-tabs.vue-f7fjeew6.js";import{_ as J}from"./nnavbar.vue-npkjfqtu.js";import{_ as U}from"./filepath-item.vue-pjacbi6e.js";import{_ as W}from"./composable-item.vue-e5jvlwop.js";import{p as C,J as u,a3 as a,F as k,ag as M,a5 as c,S as i,V as w,U as x,u as f,q as _,aa as G,k as V,a4 as $}from"./vendor/json-editor-vue-pb6xqf2y.js";import{_ as K}from"./nsection-block-h8ljvdgq.js";import{_ as O}from"./help-fab.vue-gg941gpi.js";import{D as B}from"./constants-b32h69zq.js";import"./vendor/unocss-k776m6tm.js";import"./vendor/shiki-hjqm7vcp.js";import"./nmarkdown.vue-isat7p33.js";import"./client-jlcyzfwz.js";import"./index-jc4yj4to.js";import"./nicon-title.vue-d27ih16g.js";const Q={flex:"~ wrap gap2",p2:"",pl4:""},R=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=U,e=W;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",Q,[(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=A();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=A(),v=_(()=>[...new Set(r.value?.imports.map(o=>S(o.from)).filter(o=>!!o&&!T(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":""},G(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=j(),v=V("all"),o=V("all"),e=V(""),l=A(),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 P(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)?T(S(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=Y,p=q,N=J,h=R,t=K,b=ae,L=O;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(B),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(B),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(B),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 b,_ as k,i as N,t as h,j as w}from"./kcxntt4c.js";import{_ as V}from"./nlink.vue-gv0kxm0q.js";import{_ as C}from"./ncheckbox.vue-e9xa2wmo.js";import{p as B,k as L,V as u,a3 as m,a4 as o,S as t,a5 as n,U as T,ab as l,u as j}from"./vendor/json-editor-vue-pb6xqf2y.js";import"./vendor/unocss-k776m6tm.js";import"./vendor/shiki-hjqm7vcp.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:""},z=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function _(){h.value=s.value,w.value=!1}function d(){a.value=!1,p.value.devtools.close()}return(U,e)=>{const f=b,r=V,i=k,x=C,v=N;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,__:[3]})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:_},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1,__:[5]}),j(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:d},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1,__:[6]})):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]},8,["modelValue"])])])]),_:1})}}});export{z as default};
|