@nuxt/devtools 0.2.5 → 0.3.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.
Files changed (134) hide show
  1. package/README.md +3 -3
  2. package/dist/chunks/module-main.mjs +692 -258
  3. package/dist/chunks/plugin-metrics.mjs +56 -0
  4. package/dist/chunks/vite-inspect.mjs +12 -13
  5. package/dist/chunks/vscode.mjs +44 -26
  6. package/dist/chunks/vue-inspector.mjs +2 -2
  7. package/dist/cli.mjs +5 -4
  8. package/dist/client/200.html +2 -2
  9. package/dist/client/404.html +2 -2
  10. package/dist/client/__inspecting/index.html +2 -2
  11. package/dist/client/_nuxt/Badge.ec308af3.js +1 -0
  12. package/dist/client/_nuxt/DrawerRight.vue.a85afa62.js +1 -0
  13. package/dist/client/_nuxt/DurationDisplay.vue.9b5b62d4.js +1 -0
  14. package/dist/client/_nuxt/FilepathItem.vue.178a1de3.js +1 -0
  15. package/dist/client/_nuxt/LaunchPage.vue.a0bbd67e.js +1 -0
  16. package/dist/client/_nuxt/NCheckbox.vue.4a02f339.js +1 -0
  17. package/dist/client/_nuxt/NCodeBlock.vue.593cb41f.js +1 -0
  18. package/dist/client/_nuxt/NIconButton.vue.a83f99ea.js +1 -0
  19. package/dist/client/_nuxt/NIconTitle.vue.ce90e41b.js +1 -0
  20. package/dist/client/_nuxt/NMarkdown.vue.11f68fad.js +1 -0
  21. package/dist/client/_nuxt/NSectionBlock.c955e75e.js +1 -0
  22. package/dist/client/_nuxt/NSelect.vue.e19311d6.js +1 -0
  23. package/dist/client/_nuxt/NSwitch.vue.76c93e66.js +1 -0
  24. package/dist/client/_nuxt/NTextInput.vue.d770ca6c.js +1 -0
  25. package/dist/client/_nuxt/NTip.vue.ac67cde4.js +1 -0
  26. package/dist/client/_nuxt/NpmVersionCheck.vue.0eab98c7.js +1 -0
  27. package/dist/client/_nuxt/{NuxtLogo.8111403f.js → NuxtLogo.38adb408.js} +1 -1
  28. package/dist/client/_nuxt/{PanelLeftRight.vue.56b5906c.js → PanelLeftRight.vue.90cdedcf.js} +1 -1
  29. package/dist/client/_nuxt/StateEditor.vue.c57dfe46.js +1 -0
  30. package/dist/client/_nuxt/{TabIcon.vue.30ae65eb.js → TabIcon.vue.8236980c.js} +1 -1
  31. package/dist/client/_nuxt/{__inspecting.8819ade8.js → __inspecting.143a746c.js} +1 -1
  32. package/dist/client/_nuxt/assets.d6a1ab2b.js +16 -0
  33. package/dist/client/_nuxt/components.1b7f02b2.js +1 -0
  34. package/dist/client/_nuxt/context.fe69916a.js +1 -0
  35. package/dist/client/_nuxt/custom-_name_.02ebd30e.js +1 -0
  36. package/dist/client/_nuxt/default.e6b60844.js +1 -0
  37. package/dist/client/_nuxt/editor.e10c09a2.js +1 -0
  38. package/dist/client/_nuxt/entry.216b69f8.js +259 -0
  39. package/dist/client/_nuxt/entry.654353dc.css +32 -0
  40. package/dist/client/_nuxt/error-404.51bdc645.js +1 -0
  41. package/dist/client/_nuxt/{error-500.8f6cefc5.js → error-500.15ac1dfe.js} +1 -1
  42. package/dist/client/_nuxt/error-component.0a7a48e4.js +3 -0
  43. package/dist/client/_nuxt/hooks.aa487478.js +1 -0
  44. package/dist/client/_nuxt/icons.43eaabec.js +1 -0
  45. package/dist/client/_nuxt/imports.01c0f8be.js +1 -0
  46. package/dist/client/_nuxt/{index.a6656ecb.js → index.3b3b7aca.js} +5 -5
  47. package/dist/client/_nuxt/index.517491fb.js +1 -0
  48. package/dist/client/_nuxt/index.c769634a.js +3 -0
  49. package/dist/client/_nuxt/layouts.e447e192.js +1 -0
  50. package/dist/client/_nuxt/middleware.e73473f1.js +1 -0
  51. package/dist/client/_nuxt/modules.304ea21e.js +1 -0
  52. package/dist/client/_nuxt/{none.394b52e6.js → none.3e2499ec.js} +1 -1
  53. package/dist/client/_nuxt/overview.b79bf694.js +1 -0
  54. package/dist/client/_nuxt/pages.fafa9fe0.js +1 -0
  55. package/dist/client/_nuxt/payload.ee430f3a.js +1 -0
  56. package/dist/client/_nuxt/plugins.5095ec46.js +1 -0
  57. package/dist/client/_nuxt/runtime-configs.b20fbeb6.js +1 -0
  58. package/dist/client/_nuxt/server-routes.7352d340.js +1 -0
  59. package/dist/client/_nuxt/settings.b6d3cae9.js +1 -0
  60. package/dist/client/_nuxt/storage.2e73159a.js +1 -0
  61. package/dist/client/_nuxt/terminals.4329aeb9.css +1 -0
  62. package/dist/client/_nuxt/terminals.65080a19.js +1 -0
  63. package/dist/client/_nuxt/{unocss-runtime.daeb320e.js → unocss-runtime.5708ce83.js} +2 -2
  64. package/dist/client/_nuxt/virtual-files.9eb05502.js +1 -0
  65. package/dist/client/index.html +2 -2
  66. package/dist/client/modules/assets/index.html +7 -0
  67. package/dist/client/modules/components/index.html +2 -2
  68. package/dist/client/modules/hooks/index.html +2 -2
  69. package/dist/client/modules/imports/index.html +2 -2
  70. package/dist/client/modules/layouts/index.html +2 -2
  71. package/dist/client/modules/middleware/index.html +2 -2
  72. package/dist/client/modules/modules/index.html +2 -2
  73. package/dist/client/modules/overview/index.html +2 -2
  74. package/dist/client/modules/pages/index.html +2 -2
  75. package/dist/client/modules/payload/index.html +2 -2
  76. package/dist/client/modules/plugins/index.html +2 -2
  77. package/dist/client/modules/runtime-configs/index.html +2 -2
  78. package/dist/client/modules/server-routes/index.html +2 -2
  79. package/dist/client/modules/storage/index.html +2 -2
  80. package/dist/client/modules/terminals/index.html +7 -0
  81. package/dist/client/modules/virtual-files/index.html +2 -2
  82. package/dist/client/settings/index.html +7 -0
  83. package/dist/dirs.mjs +2 -2
  84. package/dist/module.d.ts +3 -33
  85. package/dist/module.json +1 -1
  86. package/dist/module.mjs +2 -2
  87. package/dist/runtime/plugins/devtools.client.mjs +7 -1
  88. package/dist/shared/{devtools.258c6e2e.mjs → devtools.696fb428.mjs} +1 -1
  89. package/dist/types.d.ts +4 -337
  90. package/dist/types.mjs +1 -1
  91. package/package.json +36 -35
  92. package/dist/client/_nuxt/Badge.4f16da14.js +0 -1
  93. package/dist/client/_nuxt/FilepathItem.vue.235fa07d.js +0 -1
  94. package/dist/client/_nuxt/LaunchPage.vue.86f00e85.js +0 -1
  95. package/dist/client/_nuxt/NButton.a7fda268.css +0 -1
  96. package/dist/client/_nuxt/NButton.vue.76dccbb9.js +0 -100
  97. package/dist/client/_nuxt/NCheckbox.vue.60126ccb.js +0 -1
  98. package/dist/client/_nuxt/NMarkdown.vue.abb154b8.js +0 -1
  99. package/dist/client/_nuxt/NSectionBlock.58837776.js +0 -1
  100. package/dist/client/_nuxt/NSectionBlock.891fa081.css +0 -1
  101. package/dist/client/_nuxt/NTextInput.vue.1fd15b74.js +0 -1
  102. package/dist/client/_nuxt/StateEditor.vue.bdb7e5c8.js +0 -1
  103. package/dist/client/_nuxt/asyncData.103aad72.js +0 -1
  104. package/dist/client/_nuxt/client.9c41f495.js +0 -1
  105. package/dist/client/_nuxt/components.43dee80b.js +0 -1
  106. package/dist/client/_nuxt/context.55688cca.js +0 -1
  107. package/dist/client/_nuxt/custom-_name_.8832be9d.js +0 -1
  108. package/dist/client/_nuxt/default.c29c3e74.js +0 -1
  109. package/dist/client/_nuxt/editor.66e59505.js +0 -1
  110. package/dist/client/_nuxt/entry.3a404c59.css +0 -1
  111. package/dist/client/_nuxt/entry.883bcfe6.js +0 -11
  112. package/dist/client/_nuxt/error-404.d027ece6.js +0 -1
  113. package/dist/client/_nuxt/error-component.ee11a8ba.js +0 -3
  114. package/dist/client/_nuxt/hooks.427abdcd.js +0 -1
  115. package/dist/client/_nuxt/icons.7b11eba5.js +0 -1
  116. package/dist/client/_nuxt/imports.2dc7174b.js +0 -1
  117. package/dist/client/_nuxt/index.0d6abd2a.js +0 -1
  118. package/dist/client/_nuxt/json-editor-vue.a65019ca.js +0 -137
  119. package/dist/client/_nuxt/layouts.4db8e1e6.js +0 -1
  120. package/dist/client/_nuxt/middleware.c4f2a57b.js +0 -1
  121. package/dist/client/_nuxt/modules.a2209d2d.js +0 -1
  122. package/dist/client/_nuxt/nuxt-link.a34a1045.js +0 -1
  123. package/dist/client/_nuxt/overview.5053fd45.js +0 -1
  124. package/dist/client/_nuxt/pages.9a1a9ac3.js +0 -1
  125. package/dist/client/_nuxt/payload.ed4c5688.js +0 -1
  126. package/dist/client/_nuxt/plugins.95c9e3e6.js +0 -1
  127. package/dist/client/_nuxt/runtime-configs.7ebddf6f.js +0 -1
  128. package/dist/client/_nuxt/server-routes.5337ffc6.js +0 -1
  129. package/dist/client/_nuxt/state.1f523208.js +0 -1
  130. package/dist/client/_nuxt/storage.4459d7bf.js +0 -1
  131. package/dist/client/_nuxt/virtual-files.a15894d9.js +0 -3
  132. package/dist/iframe-client.d.ts +0 -15
  133. package/dist/iframe-client.mjs +0 -32
  134. package/iframe-client.d.ts +0 -1
@@ -1 +0,0 @@
1
- import{_ as a}from"./nuxt-link.a34a1045.js";import{a2 as n,al as r,o as l,f as d,h as e,t as s,i as c,w as p,k as f,a4 as m,a5 as h}from"./entry.883bcfe6.js";const x=t=>(m("data-v-bf1556d5"),t=t(),h(),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=x(()=>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 r({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=a;return l(),d("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,[c(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:p(()=>[f(s(t.backHome),1)]),_:1})])])])}}},C=n(S,[["__scopeId","data-v-bf1556d5"]]);export{C as default};
@@ -1,3 +0,0 @@
1
- import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.883bcfe6.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.d027ece6.js"),["./error-404.d027ece6.js","./nuxt-link.a34a1045.js","./entry.883bcfe6.js","./entry.3a404c59.css","./error-404.2618a69f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.8f6cefc5.js"),["./error-500.8f6cefc5.js","./entry.883bcfe6.js","./entry.3a404c59.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};
@@ -1 +0,0 @@
1
- import{a as $,q as C,l as w,o as p,f as m,h as e,k as i,N as l,u as n,F as B,A as F,t as c,O as T,b as V,c as D,w as H,m as L,i as _}from"./entry.883bcfe6.js";import{_ as O}from"./NSectionBlock.58837776.js";import{f as z}from"./state.1f523208.js";/* empty css */import"./asyncData.103aad72.js";const A={"w-full":""},E={border:"b base"},I={p1:"","ws-nowrap":"","select-none":"","text-right":"","font-bold":""},j={colspan:"2","font-bold":"",p1:"","text-left":"",pl5:""},q={p1:"","text-center":"","font-bold":"","ws-nowrap":""},M={p1:"","text-center":"","font-bold":"","ws-nowrap":""},P={p1:"","text-right":"","font-bold":"","ws-nowrap":""},R={"text-center":"","ws-nowrap":"","text-sm":"",op25:"","w-0":""},G={"text-sm":""},J={"ws-nowrap":""},K={"text-sm":""},Q={"text-center":"","text-sm":"","w-0":""},U={"text-center":"","text-sm":"","w-0":""},W=e("span",{op50:"","text-xs":"","ml-1":""},"ms",-1),X=$({__name:"HooksTable",props:{hooks:null},setup(b){const d=b,a=C("duration"),r=C("asc"),k={duration:(t,o)=>(o.duration??1/0)-(t.duration??1/0),name:(t,o)=>t.name.localeCompare(o.name),listener:(t,o)=>o.listeners-t.listeners,start:(t,o)=>o.start-t.start,executions:(t,o)=>o.executions.length-t.executions.length},g=w(()=>d.hooks.map(t=>t.start).sort((t,o)=>t-o)),x=w(()=>{const t=k[a.value],o=[...d.hooks].sort(t);return r.value==="desc"&&o.reverse(),o});function h(t){return t?t<1?"<1":t.toFixed(2):"-"}function v(t){const o=t.split(":");return o.length===1?"":`${o[0]}:`}function y(t){const o=t.split(":");return o.length===1?t:o.slice(1).join(":")}function N(t){return t?t<.5?"text-gray:50":t>1e3?"text-red-400":t>500?"text-orange-400":t>200?"text-yellow-400":"":"text-gray-400"}function S(t){let o=0;for(let f=0;f<t.length;f++)o=t.charCodeAt(f)+((o<<5)-o);return`hsl(${o%360}, 65%, 50%)`}function u(t){a.value===t?r.value=r.value==="asc"?"desc":"asc":a.value=t}return(t,o)=>(p(),m("table",A,[e("thead",E,[e("tr",null,[e("th",I,[e("button",{onClick:o[0]||(o[0]=s=>u("start"))},[i(" Order "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="start"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",j,[e("button",{onClick:o[1]||(o[1]=s=>u("name"))},[i(" Hook name "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="name"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",q,[e("button",{onClick:o[2]||(o[2]=s=>u("listener"))},[i(" Listeners "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="listener"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",M,[e("button",{onClick:o[3]||(o[3]=s=>u("executions"))},[i(" Executions "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="executions"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",P,[e("button",{onClick:o[4]||(o[4]=s=>u("duration"))},[i(" Duration "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="duration"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),e("tbody",null,[(p(!0),m(B,null,F(n(x),s=>(p(),m("tr",{key:s.name,border:"b dashed transparent hover:base"},[e("td",R,c(n(g).indexOf(s.start)),1),e("td",{"text-right":"","w-0":"","ws-nowrap":"",style:T({color:S(v(s.name))})},[e("code",G,c(v(s.name)),1)],4),e("td",J,[e("code",K,c(y(s.name)),1)]),e("td",Q,c(s.listeners),1),e("td",U,c(s.executions.length+1),1),e("td",{"text-right":"","text-sm":"","w-0":"",class:l(N(s.duration))},[i(c(h(s.duration)),1),W],2)]))),128))])]))}}),nt=$({__name:"hooks",setup(b){const d=z(),a=V(),r=w(()=>a.value?.getClientHooksMetrics());return(k,g)=>{const x=X,h=O;return p(),m("div",null,[n(r)?.length?(p(),D(h,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n(r).length}`,padding:"pl4 pr6"},{default:H(()=>[_(x,{hooks:n(r)},null,8,["hooks"])]),_:1},8,["description"])):L("",!0),_(h,{icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${n(d).length}`,padding:"pl4 pr6"},{default:H(()=>[_(x,{hooks:n(d)},null,8,["hooks"])]),_:1},8,["description"])])}}});export{nt as default};