@nuxt/devtools 0.2.4 → 0.3.0
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/README.md +3 -3
- package/dist/chunks/module-main.mjs +693 -207
- package/dist/chunks/plugin-metrics.mjs +54 -0
- package/dist/chunks/vite-inspect.mjs +12 -13
- package/dist/chunks/vscode.mjs +44 -26
- package/dist/chunks/vue-inspector.mjs +2 -2
- package/dist/cli.mjs +5 -4
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/Badge.0f8d5f6f.js +1 -0
- package/dist/client/_nuxt/DrawerRight.vue.6b933252.js +1 -0
- package/dist/client/_nuxt/DurationDisplay.vue.5c57289e.js +1 -0
- package/dist/client/_nuxt/FilepathItem.vue.e8c3a52c.js +1 -0
- package/dist/client/_nuxt/LaunchPage.vue.87f21877.js +1 -0
- package/dist/client/_nuxt/NCheckbox.vue.4b9ea1cc.js +1 -0
- package/dist/client/_nuxt/NCodeBlock.vue.431c1fae.js +1 -0
- package/dist/client/_nuxt/NIconButton.vue.9bdc7adc.js +1 -0
- package/dist/client/_nuxt/NIconTitle.vue.f40c1405.js +1 -0
- package/dist/client/_nuxt/NMarkdown.vue.725d1f67.js +1 -0
- package/dist/client/_nuxt/NSectionBlock.aae79980.js +1 -0
- package/dist/client/_nuxt/NSelect.vue.b136ef78.js +1 -0
- package/dist/client/_nuxt/NSwitch.vue.73a2b8d5.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.543d16d0.js +1 -0
- package/dist/client/_nuxt/NTip.vue.130b714b.js +1 -0
- package/dist/client/_nuxt/NpmVersionCheck.vue.b49a7a81.js +1 -0
- package/dist/client/_nuxt/NuxtLogo.18339464.js +1 -0
- package/dist/client/_nuxt/PanelLeftRight.vue.b026a23a.js +1 -0
- package/dist/client/_nuxt/StateEditor.vue.dae03388.js +1 -0
- package/dist/client/_nuxt/TabIcon.vue.d87fc756.js +1 -0
- package/dist/client/_nuxt/{__inspecting.3eb70499.js → __inspecting.9a5a53c2.js} +1 -1
- package/dist/client/_nuxt/assets.a9e5a6b0.js +16 -0
- package/dist/client/_nuxt/components.70b3c3a4.js +1 -0
- package/dist/client/_nuxt/context.c8f67be1.js +1 -0
- package/dist/client/_nuxt/custom-_name_.54344ca3.js +1 -0
- package/dist/client/_nuxt/default.a8c4c373.js +1 -0
- package/dist/client/_nuxt/editor.e302ec86.js +1 -0
- package/dist/client/_nuxt/entry.654353dc.css +32 -0
- package/dist/client/_nuxt/entry.91db41b9.js +259 -0
- package/dist/client/_nuxt/error-404.6d04f9a0.js +1 -0
- package/dist/client/_nuxt/error-500.44287dc0.js +1 -0
- package/dist/client/_nuxt/error-component.a0e84e89.js +3 -0
- package/dist/client/_nuxt/hooks.784bc58b.js +1 -0
- package/dist/client/_nuxt/icons.43eaabec.js +1 -0
- package/dist/client/_nuxt/imports.2e67f433.js +1 -0
- package/dist/client/_nuxt/{index.a6656ecb.js → index.3b3b7aca.js} +5 -5
- package/dist/client/_nuxt/index.4213289c.js +1 -0
- package/dist/client/_nuxt/index.c769634a.js +3 -0
- package/dist/client/_nuxt/layouts.3ece608d.js +1 -0
- package/dist/client/_nuxt/middleware.c0b48cbf.js +1 -0
- package/dist/client/_nuxt/modules.b85b1f76.js +1 -0
- package/dist/client/_nuxt/none.d95ed4cd.js +1 -0
- package/dist/client/_nuxt/overview.c2dfff9d.js +1 -0
- package/dist/client/_nuxt/pages.c8f066b4.js +1 -0
- package/dist/client/_nuxt/payload.299d8527.js +1 -0
- package/dist/client/_nuxt/plugins.4b3cd1e3.js +1 -0
- package/dist/client/_nuxt/runtime-configs.0f55338b.js +1 -0
- package/dist/client/_nuxt/server-routes.e48a8508.js +1 -0
- package/dist/client/_nuxt/settings.b70bc182.js +1 -0
- package/dist/client/_nuxt/storage.adf41f3f.js +1 -0
- package/dist/client/_nuxt/terminals.2f58f3e7.js +1 -0
- package/dist/client/_nuxt/terminals.4329aeb9.css +1 -0
- package/dist/client/_nuxt/{unocss-runtime.6f823b2d.js → unocss-runtime.f654b492.js} +2 -2
- package/dist/client/_nuxt/virtual-files.dbe38c70.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/modules/assets/index.html +7 -0
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/storage/index.html +7 -0
- package/dist/client/modules/terminals/index.html +7 -0
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +7 -0
- package/dist/dirs.mjs +2 -2
- package/dist/module.d.ts +3 -31
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/plugins/devtools.client.mjs +7 -1
- package/dist/shared/{devtools.b6178134.mjs → devtools.30090c6e.mjs} +1 -1
- package/dist/types.d.ts +5 -326
- package/dist/types.mjs +1 -1
- package/package.json +38 -37
- package/dist/client/_nuxt/Badge.35e3d75f.js +0 -1
- package/dist/client/_nuxt/FilepathItem.vue.70457130.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.15ef3f8b.js +0 -1
- package/dist/client/_nuxt/NButton.a7fda268.css +0 -1
- package/dist/client/_nuxt/NButton.vue.1aeb67fb.js +0 -113
- package/dist/client/_nuxt/NCheckbox.vue.7252d00f.js +0 -1
- package/dist/client/_nuxt/NIcon.vue.6416325d.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.7c35c1a8.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.891fa081.css +0 -1
- package/dist/client/_nuxt/NTextInput.vue.0fd513ee.js +0 -1
- package/dist/client/_nuxt/NuxtLogo.3b286105.js +0 -1
- package/dist/client/_nuxt/StateEditor.ce27b0a9.css +0 -1
- package/dist/client/_nuxt/StateEditor.vue.4b3d62c1.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.b4b0d299.js +0 -137
- package/dist/client/_nuxt/TabIcon.vue.dd710d5f.js +0 -1
- package/dist/client/_nuxt/_plugin-vue_export-helper.c27b6911.js +0 -1
- package/dist/client/_nuxt/asyncData.f4eab2cf.js +0 -1
- package/dist/client/_nuxt/components.b8fa7f92.js +0 -1
- package/dist/client/_nuxt/composables.8ff5f6b6.js +0 -1
- package/dist/client/_nuxt/context.c1f50e17.js +0 -1
- package/dist/client/_nuxt/custom-_name_.681ffd04.js +0 -1
- package/dist/client/_nuxt/default.2963fb37.js +0 -1
- package/dist/client/_nuxt/editor.b5249ede.js +0 -1
- package/dist/client/_nuxt/entry.27ee4abf.css +0 -1
- package/dist/client/_nuxt/entry.53ee6248.js +0 -5
- package/dist/client/_nuxt/error-404.4d908286.js +0 -1
- package/dist/client/_nuxt/error-500.e65c4924.js +0 -1
- package/dist/client/_nuxt/error-component.1a84e289.js +0 -3
- package/dist/client/_nuxt/hooks.b85de4f3.js +0 -1
- package/dist/client/_nuxt/icons.7b11eba5.js +0 -1
- package/dist/client/_nuxt/imports.48d7ddd5.js +0 -1
- package/dist/client/_nuxt/index.747f17a4.js +0 -1
- package/dist/client/_nuxt/layouts.8029422d.js +0 -1
- package/dist/client/_nuxt/middleware.671f87b6.js +0 -1
- package/dist/client/_nuxt/modules.56768ce2.js +0 -1
- package/dist/client/_nuxt/none.fa32461d.js +0 -1
- package/dist/client/_nuxt/nuxt-link.bdfe480b.js +0 -1
- package/dist/client/_nuxt/overview.71ae3521.js +0 -1
- package/dist/client/_nuxt/pages.611146bd.js +0 -1
- package/dist/client/_nuxt/payload.e24f2347.js +0 -1
- package/dist/client/_nuxt/plugins.a24c21cb.js +0 -1
- package/dist/client/_nuxt/runtime-configs.9225ca28.js +0 -1
- package/dist/client/_nuxt/server-routes.7c4496d9.js +0 -1
- package/dist/client/_nuxt/state.647f0c35.js +0 -1
- package/dist/client/_nuxt/virtual-files.33ac3fab.js +0 -9
- package/dist/iframe-client.d.ts +0 -13
- package/dist/iframe-client.mjs +0 -30
- package/iframe-client.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aj as a,aT as n,o as r,f as l,h as e,t as s,i as d,w as c,l as p,af as f,aB as h,aC as x}from"./entry.91db41b9.js";const m=t=>(h("data-v-bf1556d5"),t=t(),x(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=m(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__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 o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,v)=>{const i=f;return r(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[d(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},C=a(S,[["__scopeId","data-v-bf1556d5"]]);export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aj as i,aT as a,o as r,f as n,h as e,t as s,aB as l,aC as d}from"./entry.91db41b9.js";const c=t=>(l("data-v-583914b6"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],b={__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 o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(x,u)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(b,[["__scopeId","data-v-583914b6"]]);export{w as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.91db41b9.js";const g={__name:"nuxt-error-page",props:{error:Object},setup(c){const{error:t}=c;(t.stack||"").split(`
|
|
2
|
+
`).splice(1).map(e=>({text:e.replace("webpack:/","").replace(".vue",".js").trim(),internal:e.includes("node_modules")&&!e.includes(".cache")||e.includes("internal")||e.includes("new Promise")})).map(e=>`<span class="stack${e.internal?" internal":""}">${e.text}</span>`).join(`
|
|
3
|
+
`);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.6d04f9a0.js"),["./error-404.6d04f9a0.js","./entry.91db41b9.js","./entry.654353dc.css","./error-404.2618a69f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.44287dc0.js"),["./error-500.44287dc0.js","./entry.91db41b9.js","./entry.654353dc.css","./error-500.12a2683b.css"],import.meta.url).then(e=>e.default||e));return(e,d)=>(l(),m(s(_),E(f({statusCode:s(r),statusMessage:s(u),description:s(i),stack:s(p)})),null,16))}},x=g;export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as N}from"./DurationDisplay.vue.5c57289e.js";import{a as y,E as v,m as w,o as _,f as m,h as e,l as d,x as u,u as s,F as S,v as B,t as p,q as T,i as x,a9 as F,b as D,c as V,w as C,y as E}from"./entry.91db41b9.js";import{_ as z}from"./NSectionBlock.aae79980.js";import"./NIconTitle.vue.f40c1405.js";const I={"w-full":""},L={border:"b base"},O={"select-none":"",p1:"","ws-nowrap":"","text-right":"","font-bold":""},j={colspan:"2","font-bold":"",p1:"","text-left":"",pl5:""},q={p1:"","font-bold":"","ws-nowrap":"","text-center":""},A={p1:"","text-center":"","font-bold":"","ws-nowrap":""},M={p1:"","text-right":"","font-bold":"","ws-nowrap":""},P={"text-center":"","ws-nowrap":"","text-sm":"",op25:"","w-0":""},R={"text-sm":""},G={"ws-nowrap":""},J={"text-sm":""},K={"text-center":"","text-sm":"","w-0":""},Q={"text-center":"","text-sm":"","w-0":""},U={"text-right":"","text-sm":"","w-0":""},W=y({__name:"HooksTable",props:{hooks:null},setup(b){const l=b,a=v("duration"),r=v("asc"),f={duration:(o,t)=>(t.duration??1/0)-(o.duration??1/0),name:(o,t)=>o.name.localeCompare(t.name),listener:(o,t)=>t.listeners-o.listeners,start:(o,t)=>t.start-o.start,executions:(o,t)=>t.executions.length-o.executions.length},k=w(()=>l.hooks.map(o=>o.start).sort((o,t)=>o-t)),h=w(()=>{const o=f[a.value],t=[...l.hooks].sort(o);return r.value==="desc"&&t.reverse(),t});function i(o){const t=o.split(":");return t.length===1?"":`${t[0]}:`}function $(o){const t=o.split(":");return t.length===1?o:t.slice(1).join(":")}function H(o){let t=0;for(let n=0;n<o.length;n++)t=o.charCodeAt(n)+((t<<5)-t);return`hsl(${t%360}, 65%, 50%)`}function c(o){a.value===o?r.value=r.value==="asc"?"desc":"asc":a.value=o}return(o,t)=>{const g=N;return _(),m("table",I,[e("thead",L,[e("tr",null,[e("th",O,[e("button",{onClick:t[0]||(t[0]=n=>c("start"))},[d(" Order "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="start"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",j,[e("button",{onClick:t[1]||(t[1]=n=>c("name"))},[d(" Hook name "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="name"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",q,[e("button",{onClick:t[2]||(t[2]=n=>c("listener"))},[d(" Listeners "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="listener"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",A,[e("button",{onClick:t[3]||(t[3]=n=>c("executions"))},[d(" Executions "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="executions"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",M,[e("button",{onClick:t[4]||(t[4]=n=>c("duration"))},[d(" Duration "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="duration"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),e("tbody",null,[(_(!0),m(S,null,B(s(h),n=>(_(),m("tr",{key:n.name,border:"b dashed transparent hover:base"},[e("td",P,p(s(k).indexOf(n.start)),1),e("td",{"text-right":"","w-0":"","ws-nowrap":"",style:T({color:H(i(n.name))})},[e("code",R,p(i(n.name)),1)],4),e("td",G,[e("code",J,p($(n.name)),1)]),e("td",K,p(n.listeners),1),e("td",Q,p(n.executions.length+1),1),e("td",U,[x(g,{duration:n.duration},null,8,["duration"])])]))),128))])])}}}),ot=y({__name:"hooks",setup(b){const l=F(),a=D(),r=w(()=>a.value?.getClientHooksMetrics());return(f,k)=>{const h=W,i=z;return _(),m("div",null,[s(r)?.length?(_(),V(i,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${s(r).length}`,padding:"pl4 pr6"},{default:C(()=>[x(h,{hooks:s(r)},null,8,["hooks"])]),_:1},8,["description"])):E("",!0),x(i,{icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${s(l).length}`,padding:"pl4 pr6"},{default:C(()=>[x(h,{hooks:s(l)},null,8,["hooks"])]),_:1},8,["description"])])}}});export{ot as default};
|