@nuxt/devtools 1.0.8 → 1.1.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 (170) hide show
  1. package/README.md +2 -2
  2. package/dist/chunks/module-main.mjs +99 -34
  3. package/dist/chunks/vite-inspect.mjs +1 -1
  4. package/dist/chunks/vscode.mjs +1 -1
  5. package/dist/chunks/vue-devtools.mjs +30 -0
  6. package/dist/client/200.html +35 -35
  7. package/dist/client/404.html +35 -35
  8. package/dist/client/_nuxt/2bKi2e5w.js +1 -0
  9. package/dist/client/_nuxt/8EggbMwu.js +1 -0
  10. package/dist/client/_nuxt/9xk-6Ftp.js +1 -0
  11. package/dist/client/_nuxt/A1WiD9SJ.js +1 -0
  12. package/dist/client/_nuxt/B9hwBRIe.js +1 -0
  13. package/dist/client/_nuxt/BDWyeyq_.js +30 -0
  14. package/dist/client/_nuxt/BEjaWloH.js +1 -0
  15. package/dist/client/_nuxt/BIG-xU8F.js +1 -0
  16. package/dist/client/_nuxt/BMDCUlkj.js +1 -0
  17. package/dist/client/_nuxt/BOnTdqFq.js +1 -0
  18. package/dist/client/_nuxt/BVYSsK7b.js +1 -0
  19. package/dist/client/_nuxt/BZ4OC5-6.js +1 -0
  20. package/dist/client/_nuxt/BZ5b_UHE.js +1 -0
  21. package/dist/client/_nuxt/Ba4DdyWR.js +1 -0
  22. package/dist/client/_nuxt/Bdtkoq5_.js +1 -0
  23. package/dist/client/_nuxt/BgkphNq2.js +1 -0
  24. package/dist/client/_nuxt/{open-graph.ibydGna7.js → BkuzPiAP.js} +2 -2
  25. package/dist/client/_nuxt/Blr6EMNg.js +16 -0
  26. package/dist/client/_nuxt/BnqTDRTQ.js +1 -0
  27. package/dist/client/_nuxt/{components.bafJJWkk.js → Buf8bEqg.js} +1 -1
  28. package/dist/client/_nuxt/{terminals.WAexfEk0.js → C3QlK_7B.js} +1 -1
  29. package/dist/client/_nuxt/C54XRc8l.js +2 -0
  30. package/dist/client/_nuxt/C5gCGmDW.js +200 -0
  31. package/dist/client/_nuxt/C6khTLBN.js +2 -0
  32. package/dist/client/_nuxt/{modules.7QVx6VBW.js → C9nlvRuE.js} +2 -2
  33. package/dist/client/_nuxt/CB59kvvk.js +1 -0
  34. package/dist/client/_nuxt/CD_YezWg.js +1 -0
  35. package/dist/client/_nuxt/CMLG2-wm.js +1 -0
  36. package/dist/client/_nuxt/CXHl10-y.js +1 -0
  37. package/dist/client/_nuxt/CXNvZAmn.js +1 -0
  38. package/dist/client/_nuxt/CXiebJPP.js +1 -0
  39. package/dist/client/_nuxt/CY8m9THH.js +1 -0
  40. package/dist/client/_nuxt/C_MnmfmV.js +1 -0
  41. package/dist/client/_nuxt/CbViG2Xw.js +74 -0
  42. package/dist/client/_nuxt/{css.a-KJtBLB.js → CbYhyuC0.js} +347 -347
  43. package/dist/client/_nuxt/{vue.c6DnC5ch.js → Cd6DbZRp.js} +1518 -1518
  44. package/dist/client/_nuxt/ChqQx1p4.js +1 -0
  45. package/dist/client/_nuxt/CrUxNsPP.js +1 -0
  46. package/dist/client/_nuxt/{onig.mBJmD8D5.js → CsTmP73Z.js} +1 -1
  47. package/dist/client/_nuxt/CtILACI6.js +48 -0
  48. package/dist/client/_nuxt/CtdhE1f3.js +1 -0
  49. package/dist/client/_nuxt/CupVZNk8.js +25 -0
  50. package/dist/client/_nuxt/CwIrUz6t.js +9 -0
  51. package/dist/client/_nuxt/CyGasit_.js +1 -0
  52. package/dist/client/_nuxt/D4f0f7UU.js +1 -0
  53. package/dist/client/_nuxt/D89IPr06.js +1 -0
  54. package/dist/client/_nuxt/DBpZLuBg.js +1 -0
  55. package/dist/client/_nuxt/{typescript.b1Nw_bQe.js → DC8MraHL.js} +489 -489
  56. package/dist/client/_nuxt/DDNphti6.js +16 -0
  57. package/dist/client/_nuxt/DDu9F5dm.js +1 -0
  58. package/dist/client/_nuxt/DE14FQNr.js +2 -0
  59. package/dist/client/_nuxt/DEHAvi9d.js +982 -0
  60. package/dist/client/_nuxt/DN9uS3r9.js +1 -0
  61. package/dist/client/_nuxt/DRyh6x-M.js +1 -0
  62. package/dist/client/_nuxt/DW-UQrvA.js +4 -0
  63. package/dist/client/_nuxt/DZNF9_Ts.js +1 -0
  64. package/dist/client/_nuxt/D_qxg9CZ.js +1 -0
  65. package/dist/client/_nuxt/{javascript.Of8SnKfU.js → Dch3xQiY.js} +509 -509
  66. package/dist/client/_nuxt/DdbkFw3c.js +1 -0
  67. package/dist/client/_nuxt/DfFJQbG4.js +8 -0
  68. package/dist/client/_nuxt/DggdVF2v.js +1 -0
  69. package/dist/client/_nuxt/DnNA5yXt.js +1 -0
  70. package/dist/client/_nuxt/DnXIYXpO.js +1 -0
  71. package/dist/client/_nuxt/DwPRkQcZ.js +1 -0
  72. package/dist/client/_nuxt/Elk39DYk.js +1 -0
  73. package/dist/client/_nuxt/LysmJLvR.js +1 -0
  74. package/dist/client/_nuxt/QRQ0ln8W.js +1 -0
  75. package/dist/client/_nuxt/Z8_3SdCx.js +1 -0
  76. package/dist/client/_nuxt/builds/latest.json +1 -1
  77. package/dist/client/_nuxt/builds/meta/ca0a12b4-0fff-4e13-ae05-41075030e4de.json +1 -0
  78. package/dist/client/_nuxt/{error.U9HBYLgA.js → e8Aij11V.js} +1 -1
  79. package/dist/client/_nuxt/entry.C4Fmc-BV.css +1 -0
  80. package/dist/client/_nuxt/hRYdrzP_.js +1 -0
  81. package/dist/client/_nuxt/pinia.uD6MMfzP.css +1 -0
  82. package/dist/client/_nuxt/tH7Oq52e.js +1 -0
  83. package/dist/client/_nuxt/ud_P3M-F.js +1 -0
  84. package/dist/client/_nuxt/vzR1DB7b.js +105 -0
  85. package/dist/client/_nuxt/z8NVlzAs.js +1 -0
  86. package/dist/client/index.html +35 -35
  87. package/dist/module.json +1 -1
  88. package/dist/module.mjs +1 -1
  89. package/dist/runtime/plugins/view/FrameBox.vue +26 -25
  90. package/dist/runtime/plugins/view/client.mjs +1 -5
  91. package/dist/runtime/vue-devtools/overlay.d.mts +1 -0
  92. package/dist/runtime/vue-devtools/overlay.mjs +6 -0
  93. package/dist/shared/{devtools.fc176ede.mjs → devtools.68e43ed6.mjs} +10 -0
  94. package/package.json +45 -41
  95. package/dist/client/_nuxt/CodeDiff.vue.yvGsYwMX.js +0 -3
  96. package/dist/client/_nuxt/ComposableItem.vue.T22_QMe3.js +0 -1
  97. package/dist/client/_nuxt/DataSchemaButton.vue.kfghTUAM.js +0 -1
  98. package/dist/client/_nuxt/DataSchemaDrawer.pFnTVL_R.js +0 -1000
  99. package/dist/client/_nuxt/DurationDisplay.vue.zHxKl3h_.js +0 -1
  100. package/dist/client/_nuxt/FilepathItem.vue.e1n0RyHZ.js +0 -1
  101. package/dist/client/_nuxt/HelpFab.vue.9P-8iMDH.js +0 -1
  102. package/dist/client/_nuxt/LaunchPage.vue.Mrnd5FUf.js +0 -1
  103. package/dist/client/_nuxt/NBadge.02P0N0hm.js +0 -1
  104. package/dist/client/_nuxt/NCheckbox.vue.m1__cenQ.js +0 -1
  105. package/dist/client/_nuxt/NCodeBlock.vue.D7jhLEjr.js +0 -2
  106. package/dist/client/_nuxt/NDrawer.vue.biTr62KW.js +0 -1
  107. package/dist/client/_nuxt/NDropdown.vue.sigVLPdp.js +0 -1
  108. package/dist/client/_nuxt/NIconTitle.vue.B_Ui7cce.js +0 -1
  109. package/dist/client/_nuxt/NLink.vue.Bj0qXc3J.js +0 -1
  110. package/dist/client/_nuxt/NMarkdown.vue.Ej8wmZFm.js +0 -1
  111. package/dist/client/_nuxt/NNavbar.vue.VnwEajb6.js +0 -1
  112. package/dist/client/_nuxt/NSectionBlock.vAf-kGVD.js +0 -1
  113. package/dist/client/_nuxt/NSelect.vue.zI1gfDpy.js +0 -1
  114. package/dist/client/_nuxt/NSelectTabs.vue.AydEyuDp.js +0 -1
  115. package/dist/client/_nuxt/NSwitch.vue.b9xL28U5.js +0 -1
  116. package/dist/client/_nuxt/StacktraceList.vue.K3UX7GrW.js +0 -1
  117. package/dist/client/_nuxt/StateEditor.vue.XC13TBO8.js +0 -1
  118. package/dist/client/_nuxt/__blank.4nEfHodO.js +0 -1
  119. package/dist/client/_nuxt/analyze-build.PnmanOmc.js +0 -1
  120. package/dist/client/_nuxt/assets.4NpI16LC.js +0 -16
  121. package/dist/client/_nuxt/builds/meta/6a0559dc-da71-46a5-8a3c-8d631ecd5320.json +0 -1
  122. package/dist/client/_nuxt/client.UdRQ7dYn.js +0 -1
  123. package/dist/client/_nuxt/custom-_name_.i-QCiHcq.js +0 -1
  124. package/dist/client/_nuxt/default.64CCr6pQ.js +0 -1
  125. package/dist/client/_nuxt/entry.AC_HBPW1.css +0 -1
  126. package/dist/client/_nuxt/entry.Li7bMdxw.js +0 -48
  127. package/dist/client/_nuxt/error-404.uYSk40lm.js +0 -1
  128. package/dist/client/_nuxt/error-500._o_7fJYd.js +0 -1
  129. package/dist/client/_nuxt/full.WnKVk-q6.js +0 -1
  130. package/dist/client/_nuxt/hooks.5KumR8Qp.js +0 -1
  131. package/dist/client/_nuxt/html.0DSFJ4KV.js +0 -74
  132. package/dist/client/_nuxt/imports.-jRZwNS0.js +0 -1
  133. package/dist/client/_nuxt/index.9SQHhWq3.js +0 -16
  134. package/dist/client/_nuxt/index._ARgFaAV.js +0 -1
  135. package/dist/client/_nuxt/json-editor-vue.qZEps2wJ.js +0 -105
  136. package/dist/client/_nuxt/json.t1qiHl76.js +0 -25
  137. package/dist/client/_nuxt/none.du_ft3bP.js +0 -1
  138. package/dist/client/_nuxt/overview.Vfo3spsD.js +0 -1
  139. package/dist/client/_nuxt/pages.OsyANSwf.js +0 -1
  140. package/dist/client/_nuxt/payload.LvslHyQ-.js +0 -1
  141. package/dist/client/_nuxt/plugins.-waaP_qB.js +0 -1
  142. package/dist/client/_nuxt/runtime-configs.6C1y42GJ.js +0 -1
  143. package/dist/client/_nuxt/server-routes.8nS5VL6V.js +0 -9
  144. package/dist/client/_nuxt/settings.Aj2LNb0U.js +0 -1
  145. package/dist/client/_nuxt/shellscript.h1L64xId.js +0 -4
  146. package/dist/client/_nuxt/state-components.PdQ1tKRe.js +0 -1
  147. package/dist/client/_nuxt/state-modules.ZsAhN2-A.js +0 -1
  148. package/dist/client/_nuxt/storage-options.-PhoDnIp.js +0 -1
  149. package/dist/client/_nuxt/storage.4TsT27Mw.js +0 -1
  150. package/dist/client/_nuxt/timeline.M76ZIEAr.js +0 -30
  151. package/dist/client/_nuxt/unocss-runtime.PEXBUXPL.js +0 -2
  152. package/dist/client/_nuxt/vanilla-picker-NKbIFE8h.vtyeXros.js +0 -8
  153. package/dist/client/_nuxt/virtual-files.NKByCwiv.js +0 -1
  154. package/dist/client/_nuxt/vitesse-dark.5VceXvs6.js +0 -1
  155. package/dist/client/_nuxt/vitesse-light.HOMMxGxw.js +0 -1
  156. package/dist/client/_nuxt/vue-html.KfgsLQjp.js +0 -1
  157. package/dist/client/_nuxt/yaml.FtfhlYqU.js +0 -200
  158. /package/dist/client/_nuxt/{constants.jFgWOlQV.js → BcJws1i5.js} +0 -0
  159. /package/dist/client/_nuxt/{nuxt-docs.83FO1Cbd.js → D5r6TWiw.js} +0 -0
  160. /package/dist/client/_nuxt/{diff.-l9-nN5b.js → DvyTQcux.js} +0 -0
  161. /package/dist/client/_nuxt/{HelpFab.x07F_IqA.css → HelpFab.DHTsX8io.css} +0 -0
  162. /package/dist/client/_nuxt/{NCodeBlock.XH4dGkTz.css → NCodeBlock.Bcfh0aRP.css} +0 -0
  163. /package/dist/client/_nuxt/{NSectionBlock.a3MwpCxg.css → NSectionBlock.BrczCkLG.css} +0 -0
  164. /package/dist/client/_nuxt/{assets.xk970LH3.css → assets.DGT3vQsf.css} +0 -0
  165. /package/dist/client/_nuxt/{error-404.m36D2jj-.css → error-404.CbfoPaOP.css} +0 -0
  166. /package/dist/client/_nuxt/{error-500.oAiyMzGs.css → error-500.CgCLIzMa.css} +0 -0
  167. /package/dist/client/_nuxt/{open-graph.PgUMoob_.css → open-graph.-BQyihv8.css} +0 -0
  168. /package/dist/client/_nuxt/{terminals.GzwV8rXv.css → terminals.bPBXyte9.css} +0 -0
  169. /package/dist/client/_nuxt/{timeline.7wyW2pbe.css → timeline.DvDJbalt.css} +0 -0
  170. /package/dist/client/_nuxt/{virtual-files.lmRDNyeH.css → virtual-files.CWZEM3J4.css} +0 -0
@@ -0,0 +1 @@
1
+ import{d as B,r as T,a as k,aq as W,f as t,o,m as s,k as e,t as $,h as y,j as x,bg as q,F as v,n as M,p as P,i as h,v as L,G as E,X as A,_ as G,ac as H,bh as D,b2 as X,b3 as J,ab as Q,an as Y,b4 as Z,ao as ee,l as te,ae as oe,L as ne,M as ae}from"./CtILACI6.js";import{_ as j}from"./BIG-xU8F.js";import{_ as F}from"./BOnTdqFq.js";import{_ as se}from"./DRyh6x-M.js";import{_ as re}from"./BEjaWloH.js";import{_ as le}from"./9xk-6Ftp.js";import"./DwPRkQcZ.js";import"./2bKi2e5w.js";import"./D_qxg9CZ.js";const ie={block:"","cursor-pointer":""},ue={p2:""},ce=["onSubmit"],de=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),pe={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},_e={key:1},he=B({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const d=V,w=i,m=T([]),p=k(()=>{const u=N(d.route.path);return m.value=Array.from({length:u.length},()=>""),u});function N(u){return u.split(/(:\w+[\?\*]?(?:\(\))?)/).filter(Boolean).map(_=>_[0]===":"?_.replace(/\(\)$/,"?"):_)}const r=k(()=>p.value.map((u,_)=>u[0]===":"?m.value[_]:u).join("").replace(/\/+/g,"/")),n=k(()=>d.route.path.includes(":"));function f(){w("navigate",r.value)}return(u,_)=>{const a=A,l=G,c=W("VDropdown");return t(n)?(o(),y(c,{key:1},{popper:x(({hide:g})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:q(()=>{f(),g()},["prevent"])},[t(n)?(o(),s(v,{key:0},[de,e("div",pe,[(o(!0),s(v,null,M(t(p),(b,R)=>(o(),s(v,{key:R},[b[0]===":"?(o(),y(a,{key:0,modelValue:t(m)[R],"onUpdate:modelValue":I=>t(m)[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",_e,$(b),1))],64))),128))])],64)):P("",!0),h(l,{block:"",n:"primary"},{default:x(()=>[L(" Navigate ")]),_:1})],40,ce)])]),default:x(()=>[e("code",ie,[(o(!0),s(v,null,M(t(p),(g,b)=>(o(),s("span",{key:b,class:E(g[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(g[0]===":"?g.slice(1):g),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:f},[e("code",null,$(u.route.path),1)]))}}}),me={"w-full":""},fe=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),ge={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},ye={"text-sm":""},be={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},ke=["onClick"],$e=e("div",{"i-carbon-script-reference":""},null,-1),we=[$e],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ve=["onClick"],Ie=B({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,d=H(),w=D(),m=k(()=>[...i.pages].sort((r,n)=>r.path.localeCompare(n.path)));function p(r){const n=i.layouts.find(f=>f.name===r);n&&d(n.file)}function N(r){if(typeof r=="string")return w.value?.middleware.find(n=>n.name===r)?.path}return(r,n)=>{const f=j,u=he,_=F;return o(),s("div",null,[e("table",me,[fe,e("tbody",null,[(o(!0),s(v,null,M(t(m),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ge,[e("div",ve,[r.matched.find(l=>l.name===a.name)?(o(),y(f,{key:0,n:"green",title:"active",textContent:"active"})):r.matchedPending.find(l=>l.name===a.name)?(o(),y(f,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",ye,[e("div",be,[h(u,{route:a,class:E(r.matched.find(l=>l.name===a.name)?"text-primary":r.matchedPending.find(l=>l.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(d)(a.file||a.meta?.file)},we,8,ke)):P("",!0)])])]),e("td",Ne,$(a.name),1),e("td",Re,[h(_,{filepath:N(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ce,[a.meta.layout===!1?(o(),s("span",Pe,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:l=>p(a.meta.layout)},$(a.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=l=>p("default"))}," (default) "))])]))),128))])])])}}}),Le={class:"markdown-body"},Me=e("h1",null,"Pages",-1),Te=e("p",null,[L("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),L(" directory.")],-1),Be=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Ee=e("hr",null,null,-1),Ae=e("h1",null,"Middlewares",-1),De=e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),je=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Fe=[Me,Te,Be,Ee,Ae,De,je],Se={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),(w,m)=>(o(),s("div",Le,Fe))}},ze={key:0,"h-full":"","of-auto":""},Ue={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Ke=e("span",{op50:""},"Navigate from ",-1),Oe={"font-mono":""},We=e("span",{op50:""}," to ",-1),qe={key:1,op50:""},Ge=e("span",null,[L("Press "),e("b",{"font-bold":""},"Enter"),L(" to navigate")],-1),He={key:0,"text-orange":"",op75:""},Xe={key:1,op50:""},Je={"min-h-14":""},Qe={key:1,class:"py-4 text-center"},Ye=e("span",{op50:""},"No routes matched",-1),Ze=[Ye],et={"w-full":""},tt=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),ot={mr1:""},pt=B({__name:"pages",setup(V){const i=X(),d=J(),w=Q(),m=D(),p=Y(),N=Z(),r=k(()=>m.value?.middleware||[]),n=T(""),f=T(0),u=k(()=>(r.value,n.value,p.value,f.value,i.value?.currentRoute?.value?.path));ee(()=>{d.value&&(n.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(c=>{n.value=c.fullPath}),i.value?.afterEach(c=>{n.value=c.fullPath})});async function _(){n.value!==i.value?.currentRoute?.value?.path&&i.value.push(n.value||"/")}const a=k(()=>i.value.resolve(n.value||"/").matched);function l(c){i.value.push(c),n.value=c}return(c,g)=>{const b=A,R=Ie,I=se,S=j,z=F,U=re,K=Se,O=le;return o(),s(v,null,[t(w)?.pages&&t(i)?(o(),s("div",ze,[e("div",Ue,[e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ke,e("span",Oe,$(t(u)),1),We],64)):(o(),s("span",qe,"Current route"))]),h(b,{modelValue:t(n),"onUpdate:modelValue":g[0]||(g[0]=C=>te(n)?n.value=C:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(t(u)===t(n)?"":t(a).length?"text-green":"text-orange"),onKeydown:oe(_,["enter"])},null,8,["modelValue","class"]),e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ge,t(a).length?P("",!0):(o(),s("span",He," (no match)"))],64)):(o(),s("span",Xe,"Edit path above to navigate"))])]),h(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Je,[t(a).length?(o(),y(R,{key:0,pages:t(a),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])):(o(),s("div",Qe,Ze))])]),_:1}),h(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[h(R,{pages:t(N),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",et,[tt,(o(!0),s(v,null,M(t(r),C=>(o(),s("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",ot,$(C.name),1),C.global?(o(),y(S,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[h(z,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(o(),y(U,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in c?c.rpc:t(ne)).runWizard(await("ensureDevAuthToken"in c?c.ensureDevAuthToken:t(ae))(),"enablePages")}}]},null,8,["actions"])),h(O,null,{default:x(()=>[h(K)]),_:1})],64)}}});export{pt as default};
@@ -1,38 +1,38 @@
1
1
  <!DOCTYPE html><html><head><meta charset="utf-8">
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1">
3
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.AC_HBPW1.css">
4
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.Li7bMdxw.js">
5
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/index.9SQHhWq3.js">
6
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/onig.mBJmD8D5.js">
7
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vitesse-dark.5VceXvs6.js">
8
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vitesse-light.HOMMxGxw.js">
9
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/json.t1qiHl76.js">
10
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/yaml.FtfhlYqU.js">
11
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/css.a-KJtBLB.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/javascript.Of8SnKfU.js">
13
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/typescript.b1Nw_bQe.js">
14
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue.c6DnC5ch.js">
15
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/html.0DSFJ4KV.js">
16
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue-html.KfgsLQjp.js">
17
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/diff.-l9-nN5b.js">
18
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/shellscript.h1L64xId.js">
19
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default.64CCr6pQ.js">
20
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full.WnKVk-q6.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none.du_ft3bP.js">
22
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-docs.83FO1Cbd.js">
23
- <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.XH4dGkTz.css">
24
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DataSchemaDrawer.pFnTVL_R.js">
25
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NSelect.vue.zI1gfDpy.js">
26
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NSwitch.vue.b9xL28U5.js">
27
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NDropdown.vue.sigVLPdp.js">
28
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.vue.D7jhLEjr.js">
29
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client.UdRQ7dYn.js">
30
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NDrawer.vue.biTr62KW.js">
31
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime.PEXBUXPL.js">
32
- <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.m36D2jj-.css">
33
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.uYSk40lm.js">
34
- <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.oAiyMzGs.css">
35
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500._o_7fJYd.js">
36
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.Li7bMdxw.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window&&window.localStorage&&window.localStorage.getItem&&window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?d():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:d,addColorScheme:i,removeColorScheme:f};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function f(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function d(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
37
- </script></head><body><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
3
+ <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.C4Fmc-BV.css">
4
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CtILACI6.js">
5
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Blr6EMNg.js">
6
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DggdVF2v.js">
7
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/A1WiD9SJ.js">
8
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CupVZNk8.js">
9
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C5gCGmDW.js">
10
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbYhyuC0.js">
11
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dch3xQiY.js">
12
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DC8MraHL.js">
13
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Cd6DbZRp.js">
14
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbViG2Xw.js">
15
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DnNA5yXt.js">
16
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DvyTQcux.js">
17
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BVYSsK7b.js">
18
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CsTmP73Z.js">
19
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CXHl10-y.js">
20
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DN9uS3r9.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DDu9F5dm.js">
22
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D5r6TWiw.js">
23
+ <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.Bcfh0aRP.css">
24
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DEHAvi9d.js">
25
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DBpZLuBg.js">
26
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/8EggbMwu.js">
27
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/QRQ0ln8W.js">
28
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C6khTLBN.js">
29
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D_qxg9CZ.js">
30
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Bdtkoq5_.js">
31
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C54XRc8l.js">
32
+ <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.CbfoPaOP.css">
33
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Ba4DdyWR.js">
34
+ <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.CgCLIzMa.css">
35
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZ5b_UHE.js">
36
+ <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/CtILACI6.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
37
+ </script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
38
38
  <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "configKey": "devtools",
4
- "version": "1.0.8"
4
+ "version": "1.1.1"
5
5
  }
package/dist/module.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import '@nuxt/kit';
2
- export { m as default } from './shared/devtools.fc176ede.mjs';
2
+ export { m as default } from './shared/devtools.68e43ed6.mjs';
3
3
  import './dirs.mjs';
4
4
  import 'node:path';
5
5
  import 'node:url';
@@ -57,10 +57,8 @@ useEventListener(window, 'mousedown', (e: MouseEvent) => {
57
57
  state.value.open = false
58
58
  })
59
59
 
60
- useEventListener(window, 'mousemove', (e: MouseEvent) => {
61
- if (!isResizing.value)
62
- return
63
- if (!state.value.open)
60
+ function handleResize(e: MouseEvent | TouchEvent) {
61
+ if (!isResizing.value || !state.value.open)
64
62
  return
65
63
 
66
64
  const iframe = props.client.getIframe()
@@ -69,36 +67,31 @@ useEventListener(window, 'mousemove', (e: MouseEvent) => {
69
67
 
70
68
  const box = iframe.getBoundingClientRect()
71
69
 
70
+ let widthPx: number, heightPx: number
72
71
  if (isResizing.value.right) {
73
- const widthPx = Math.abs(e.clientX - (box?.left || 0))
74
- const width = widthPx / window.innerWidth * 100
75
- state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, width))
72
+ widthPx = Math.abs(e instanceof MouseEvent ? e.clientX : e.touches[0].clientX - (box?.left || 0))
73
+ state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100))
76
74
  }
77
75
  else if (isResizing.value.left) {
78
- const widthPx = Math.abs((box?.right || 0) - e.clientX)
79
- const width = widthPx / window.innerWidth * 100
80
- state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, width))
76
+ widthPx = Math.abs((box?.right || 0) - (e instanceof MouseEvent ? e.clientX : e.touches[0].clientX))
77
+ state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100))
81
78
  }
82
79
 
83
80
  if (isResizing.value.top) {
84
- const heightPx = Math.abs((box?.bottom || 0) - e.clientY)
85
- const height = heightPx / window.innerHeight * 100
86
- state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, height))
81
+ heightPx = Math.abs((box?.bottom || 0) - (e instanceof MouseEvent ? e.clientY : e.touches[0].clientY))
82
+ state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100))
87
83
  }
88
84
  else if (isResizing.value.bottom) {
89
- const heightPx = Math.abs(e.clientY - (box?.top || 0))
90
- const height = heightPx / window.innerHeight * 100
91
- state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, height))
85
+ heightPx = Math.abs(e instanceof MouseEvent ? e.clientY : e.touches[0].clientY - (box?.top || 0))
86
+ state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100))
92
87
  }
93
- })
94
-
95
- useEventListener(window, 'mouseup', () => {
96
- isResizing.value = false
97
- })
88
+ }
98
89
 
99
- useEventListener(window, 'mouseleave', () => {
100
- isResizing.value = false
101
- })
90
+ useEventListener(window, 'mousemove', handleResize)
91
+ useEventListener(window, 'touchmove', handleResize)
92
+ useEventListener(window, 'mouseup', () => isResizing.value = false)
93
+ useEventListener(window, 'touchend', () => isResizing.value = false)
94
+ useEventListener(window, 'mouseleave', () => isResizing.value = false)
102
95
  </script>
103
96
 
104
97
  <template>
@@ -112,49 +105,57 @@ useEventListener(window, 'mouseleave', () => {
112
105
  v-show="state.position !== 'top'"
113
106
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal"
114
107
  :style="{ top: 0 }"
115
- @mousedown.prevent="() => isResizing = { top: true }"
108
+ @mousedown.prevent="isResizing = { top: true }"
109
+ @touchstart="() => isResizing = { top: true }"
116
110
  />
117
111
  <div
118
112
  v-show="state.position !== 'bottom'"
119
113
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal"
120
114
  :style="{ bottom: 0 }"
121
115
  @mousedown.prevent="() => isResizing = { bottom: true }"
116
+ @touchstart="() => isResizing = { bottom: true }"
122
117
  />
123
118
  <div
124
119
  v-show="state.position !== 'left'"
125
120
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical"
126
121
  :style="{ left: 0 }"
127
122
  @mousedown.prevent="() => isResizing = { left: true }"
123
+ @touchstart="() => isResizing = { left: true }"
128
124
  />
129
125
  <div
130
126
  v-show="state.position !== 'right'"
131
127
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical"
132
128
  :style="{ right: 0 }"
133
129
  @mousedown.prevent="() => isResizing = { right: true }"
130
+ @touchstart="() => isResizing = { right: true }"
134
131
  />
135
132
  <div
136
133
  v-show="state.position !== 'top' && state.position !== 'left'"
137
134
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
138
135
  :style="{ top: 0, left: 0, cursor: 'nwse-resize' }"
139
136
  @mousedown.prevent="() => isResizing = { top: true, left: true }"
137
+ @touchstart="() => isResizing = { top: true, left: true }"
140
138
  />
141
139
  <div
142
140
  v-show="state.position !== 'top' && state.position !== 'right'"
143
141
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
144
142
  :style="{ top: 0, right: 0, cursor: 'nesw-resize' }"
145
143
  @mousedown.prevent="() => isResizing = { top: true, right: true }"
144
+ @touchstart="() => isResizing = { top: true, right: true }"
146
145
  />
147
146
  <div
148
147
  v-show="state.position !== 'bottom' && state.position !== 'left'"
149
148
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
150
149
  :style="{ bottom: 0, left: 0, cursor: 'nesw-resize' }"
151
150
  @mousedown.prevent="() => isResizing = { bottom: true, left: true }"
151
+ @touchstart="() => isResizing = { bottom: true, left: true }"
152
152
  />
153
153
  <div
154
154
  v-show="state.position !== 'bottom' && state.position !== 'right'"
155
155
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
156
156
  :style="{ bottom: 0, right: 0, cursor: 'nwse-resize' }"
157
157
  @mousedown.prevent="() => isResizing = { bottom: true, right: true }"
158
+ @touchstart="() => isResizing = { bottom: true, right: true }"
158
159
  />
159
160
  </div>
160
161
  </template>
@@ -1,4 +1,4 @@
1
- import { computed, createApp, h, markRaw, nextTick, ref, shallowReactive, shallowRef, watch } from "vue";
1
+ import { computed, createApp, h, markRaw, ref, shallowReactive, shallowRef, watch } from "vue";
2
2
  import { createHooks } from "hookable";
3
3
  import { debounce } from "perfect-debounce";
4
4
  import { initTimelineMetrics } from "../../function-metrics-helpers.mjs";
@@ -45,9 +45,6 @@ export async function setupDevToolsClient({
45
45
  if (state.value.open)
46
46
  return;
47
47
  state.value.open = true;
48
- return nextTick(() => {
49
- client.syncClient();
50
- });
51
48
  },
52
49
  async navigate(path) {
53
50
  if (!state.value.open)
@@ -217,7 +214,6 @@ export async function setupDevToolsClient({
217
214
  });
218
215
  };
219
216
  }
220
- client.syncClient();
221
217
  const holder = document.createElement("div");
222
218
  holder.id = "nuxt-devtools-container";
223
219
  holder.setAttribute("data-v-inspector-ignore", "true");
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { devtools } from '@vue/devtools-kit'
2
+ import { initAppSeparateWindow } from '@vue/devtools-core'
3
+
4
+ devtools.init()
5
+
6
+ initAppSeparateWindow()
@@ -51,6 +51,16 @@ const defaultTabOptions = {
51
51
  },
52
52
  sendFrom: "app"
53
53
  },
54
+ serverTasks: {
55
+ enabled: false,
56
+ selectedTask: null,
57
+ view: "list",
58
+ inputDefaults: {
59
+ query: [],
60
+ body: [],
61
+ headers: [{ active: true, key: "Content-Type", value: "application/json", type: "string" }]
62
+ }
63
+ },
54
64
  assets: {
55
65
  view: "grid"
56
66
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "type": "module",
4
- "version": "1.0.8",
4
+ "version": "1.1.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://devtools.nuxt.com",
7
7
  "repository": {
@@ -35,83 +35,87 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@antfu/utils": "^0.7.7",
38
- "@nuxt/kit": "^3.9.1",
39
- "birpc": "^0.2.14",
38
+ "@nuxt/kit": "^3.11.1",
39
+ "@vue/devtools-applet": "^7.0.20",
40
+ "@vue/devtools-core": "^7.0.20",
41
+ "@vue/devtools-kit": "^7.0.20",
42
+ "birpc": "^0.2.17",
40
43
  "consola": "^3.2.3",
41
- "destr": "^2.0.2",
44
+ "cronstrue": "^2.48.0",
45
+ "destr": "^2.0.3",
42
46
  "error-stack-parser-es": "^0.1.1",
43
47
  "execa": "^7.2.0",
44
48
  "fast-glob": "^3.3.2",
45
- "flatted": "^3.2.9",
49
+ "flatted": "^3.3.1",
46
50
  "get-port-please": "^3.1.2",
47
51
  "hookable": "^5.5.3",
48
52
  "image-meta": "^0.2.0",
49
53
  "is-installed-globally": "^1.0.0",
50
54
  "launch-editor": "^2.6.1",
51
55
  "local-pkg": "^0.5.0",
52
- "magicast": "^0.3.2",
53
- "nypm": "^0.3.4",
56
+ "magicast": "^0.3.3",
57
+ "nypm": "^0.3.8",
54
58
  "ohash": "^1.1.3",
55
- "pacote": "^17.0.5",
59
+ "pacote": "^17.0.6",
56
60
  "pathe": "^1.1.2",
57
61
  "perfect-debounce": "^1.0.0",
58
62
  "pkg-types": "^1.0.3",
59
63
  "rc9": "^2.1.1",
60
- "scule": "^1.2.0",
61
- "semver": "^7.5.4",
62
- "simple-git": "^3.22.0",
64
+ "scule": "^1.3.0",
65
+ "semver": "^7.6.0",
66
+ "simple-git": "^3.23.0",
63
67
  "sirv": "^2.0.4",
64
68
  "unimport": "^3.7.1",
65
- "vite-plugin-inspect": "^0.8.1",
69
+ "vite-plugin-inspect": "^0.8.3",
66
70
  "vite-plugin-vue-inspector": "^4.0.2",
67
71
  "which": "^3.0.1",
68
72
  "ws": "^8.16.0",
69
- "@nuxt/devtools-kit": "1.0.8",
70
- "@nuxt/devtools-wizard": "1.0.8"
73
+ "@nuxt/devtools-kit": "1.1.1",
74
+ "@nuxt/devtools-wizard": "1.1.1"
71
75
  },
72
76
  "devDependencies": {
73
77
  "@iconify-json/bxl": "^1.1.10",
74
- "@iconify-json/carbon": "^1.1.27",
78
+ "@iconify-json/carbon": "^1.1.31",
75
79
  "@iconify-json/logos": "^1.1.42",
76
- "@iconify-json/ri": "^1.1.18",
77
- "@iconify-json/simple-icons": "^1.1.87",
78
- "@iconify-json/tabler": "^1.1.103",
79
- "@nuxt/content": "^2.10.0",
80
+ "@iconify-json/ri": "^1.1.20",
81
+ "@iconify-json/simple-icons": "^1.1.96",
82
+ "@iconify-json/tabler": "^1.1.109",
83
+ "@nuxt/content": "^2.12.1",
80
84
  "@nuxt/test-utils": "3.9.0",
81
- "@nuxtjs/color-mode": "^3.3.2",
82
- "@parcel/watcher": "^2.3.0",
85
+ "@nuxtjs/color-mode": "^3.3.3",
86
+ "@parcel/watcher": "^2.4.1",
83
87
  "@types/markdown-it-link-attributes": "^3.0.4",
84
88
  "@types/ua-parser-js": "^0.7.39",
85
- "@unocss/nuxt": "^0.58.3",
86
- "@unocss/preset-icons": "^0.58.3",
87
- "@unocss/preset-uno": "^0.58.3",
88
- "@unocss/runtime": "^0.58.3",
89
- "@vitest/ui": "^1.1.3",
90
- "@vueuse/nuxt": "^10.7.1",
91
- "esno": "^4.0.0",
89
+ "@unocss/nuxt": "^0.58.6",
90
+ "@unocss/preset-icons": "^0.58.6",
91
+ "@unocss/preset-uno": "^0.58.6",
92
+ "@unocss/runtime": "^0.58.6",
93
+ "@vitest/ui": "^1.4.0",
94
+ "@vueuse/nuxt": "^10.9.0",
95
+ "esno": "^4.7.0",
92
96
  "floating-vue": "5.0.2",
93
97
  "fuse.js": "^7.0.0",
94
- "json-editor-vue": "^0.11.2",
95
- "markdown-it": "^14.0.0",
98
+ "json-editor-vue": "^0.12.0",
99
+ "markdown-it": "^14.1.0",
96
100
  "markdown-it-link-attributes": "^4.0.1",
97
- "nanoid": "^5.0.4",
98
- "nitropack": "^2.8.1",
99
- "nuxt": "^3.9.1",
101
+ "nanoid": "^5.0.6",
102
+ "nitropack": "^2.9.4",
103
+ "nuxt": "^3.11.1",
100
104
  "ofetch": "^1.3.3",
101
- "quicktype-core": "^23.0.81",
102
- "shikiji": "^0.9.18",
103
- "theme-vitesse": "^0.7.5",
105
+ "quicktype-core": "^23.0.107",
106
+ "shiki": "^1.2.0",
107
+ "theme-vitesse": "^0.7.7",
104
108
  "ua-parser-js": "^1.0.37",
105
- "unocss": "^0.58.3",
106
- "unplugin-vue-markdown": "^0.25.2",
107
- "vanilla-jsoneditor": "^0.21.2",
109
+ "unocss": "^0.58.6",
110
+ "unplugin-vue-markdown": "^0.26.0",
111
+ "vanilla-jsoneditor": "^0.23.0",
108
112
  "vis-data": "^7.1.9",
109
113
  "vis-network": "^9.1.9",
110
- "vue-tsc": "^1.8.27",
114
+ "vue-tsc": "^2.0.7",
111
115
  "vue-virtual-scroller": "2.0.0-beta.8",
112
116
  "xterm": "^5.3.0",
113
117
  "xterm-addon-fit": "^0.8.0",
114
- "@nuxt/devtools": "1.0.8"
118
+ "@nuxt/devtools": "1.1.1"
115
119
  },
116
120
  "scripts": {
117
121
  "build": "pnpm dev:prepare && pnpm build:module && pnpm build:client && esno scripts/prepare.ts",
@@ -1,3 +0,0 @@
1
- import{_ as R}from"./NCodeBlock.vue.D7jhLEjr.js";import{d as _,a as N,r as F,an as W,bG as A,o as B,h as J,f as V}from"./entry.Li7bMdxw.js";function m(){}m.prototype={diff:function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=o.callback;typeof o=="function"&&(f=o,o={}),this.options=o;var r=this;function l(c){return f?(setTimeout(function(){f(void 0,c)},0),!0):c}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var i=t.length,s=e.length,u=1,d=i+s;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var a=[{newPos:-1,components:[]}],p=this.extractCommon(a[0],t,e,0);if(a[0].newPos+1>=i&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function v(){for(var c=-1*u;c<=u;c+=2){var h=void 0,w=a[c-1],C=a[c+1],g=(C?C.newPos:0)-c;w&&(a[c-1]=void 0);var q=w&&w.newPos+1<i,$=C&&0<=g&&g<s;if(!q&&!$){a[c]=void 0;continue}if(!q||$&&w.newPos<C.newPos?(h=G(C),r.pushComponent(h.components,void 0,!0)):(h=w,h.newPos++,r.pushComponent(h.components,!0,void 0)),g=r.extractCommon(h,t,e,c),h.newPos+1>=i&&g+1>=s)return l(M(r,h.components,t,e,r.useLongestToken));a[c]=h}u++}if(f)(function c(){setTimeout(function(){if(u>d)return f();v()||c()},0)})();else for(;u<=d;){var y=v();if(y)return y}},pushComponent:function(e,t,o){var f=e[e.length-1];f&&f.added===t&&f.removed===o?e[e.length-1]={count:f.count+1,added:t,removed:o}:e.push({count:1,added:t,removed:o})},extractCommon:function(e,t,o,f){for(var r=t.length,l=o.length,i=e.newPos,s=i-f,u=0;i+1<r&&s+1<l&&this.equals(t[i+1],o[s+1]);)i++,s++,u++;return u&&e.components.push({count:u}),e.newPos=i,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],o=0;o<e.length;o++)e[o]&&t.push(e[o]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function M(n,e,t,o,f){for(var r=0,l=e.length,i=0,s=0;r<l;r++){var u=e[r];if(u.removed){if(u.value=n.join(o.slice(s,s+u.count)),s+=u.count,r&&e[r-1].added){var a=e[r-1];e[r-1]=e[r],e[r]=a}}else{if(!u.added&&f){var d=t.slice(i,i+u.count);d=d.map(function(v,y){var c=o[s+y];return c.length>v.length?c:v}),u.value=n.join(d)}else u.value=n.join(t.slice(i,i+u.count));i+=u.count,u.added||(s+=u.count)}}var p=e[l-1];return l>1&&typeof p.value=="string"&&(p.added||p.removed)&&n.equals("",p.value)&&(e[l-2].value+=p.value,e.pop()),e}function G(n){return{newPos:n.newPos,components:n.components.slice(0)}}var I=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,T=/\S/,O=new m;O.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!T.test(n)&&!T.test(e)};O.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<e.length-1;t++)!e[t+1]&&e[t+2]&&I.test(e[t])&&I.test(e[t+2])&&(e[t]+=e[t+2],e.splice(t+1,2),t--);return e};var D=new m;D.tokenize=function(n){var e=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var o=0;o<t.length;o++){var f=t[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),e.push(f))}return e};function Z(n,e,t){return D.diff(n,e,t)}var k=new m;k.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var H=new m;H.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function z(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(e){return typeof e}:z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(n)}var Q=Object.prototype.toString,L=new m;L.useLongestToken=!0;L.tokenize=D.tokenize;L.castInput=function(n){var e=this.options,t=e.undefinedReplacement,o=e.stringifyReplacer,f=o===void 0?function(r,l){return typeof l>"u"?t:l}:o;return typeof n=="string"?n:JSON.stringify(E(n,null,null,f),f," ")};L.equals=function(n,e){return m.prototype.equals.call(L,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function E(n,e,t,o,f){e=e||[],t=t||[],o&&(n=o(f,n));var r;for(r=0;r<e.length;r+=1)if(e[r]===n)return t[r];var l;if(Q.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),t.push(l),r=0;r<n.length;r+=1)l[r]=E(n[r],e,t,o,f);return e.pop(),t.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),z(n)==="object"&&n!==null){e.push(n),l={},t.push(l);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),r=0;r<i.length;r+=1)s=i[r],l[s]=E(n[s],e,t,o,s);e.pop(),t.pop()}else l=n;return l}var x=new m;x.tokenize=function(n){return n.slice()};x.join=x.removeEmpty=function(n){return n};const Y=_({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function t(i,s){const u=Z(i.trim(),s.trim()),d=[],a=[],p=[];for(const v of u){const y=v.value.trimEnd().split(`
2
- `);for(const c of y)v.added?(d.push(p.length),p.push(c)):(v.removed&&a.push(p.length),p.push(c))}return{added:d,removed:a,result:p.join(`
3
- `)}}const o=N(()=>t(e.from,e.to));function f(i){let s=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,u=>(s++,o.value.added.includes(s-1)?'class="line line-added"':o.value.removed.includes(s-1)?'class="line line-removed"':u))}const r=F();W(l);function l(){const i=A(r);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,s)=>{const u=R;return B(),J(u,{ref_key:"elRef",ref:r,code:V(o).result,lang:i.lang,"transform-rendered":f,onLoaded:l},null,8,["code","lang"])}}});export{Y as _};
@@ -1 +0,0 @@
1
- import{_ as I}from"./NMarkdown.vue.Ej8wmZFm.js";import{d as V,e as D,ac as U,a as c,ap as $,o as s,h as r,j as i,n as l,f as e,v as u,i as j,p as o,F as v,t as h,m as E,l as _,G as F,_ as S}from"./entry.Li7bMdxw.js";import{_ as z}from"./FilepathItem.vue.e1n0RyHZ.js";import{C as x}from"./constants.jFgWOlQV.js";const G={"hover:text-primary":""},L={key:0,"text-primary":""},M={"max-w-100":""},O={px4:"",py3:"","text-sm":""},T={flex:"~ gap2",n:"primary xs"},W={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},q={"text-sm":""},A=o("span",{op50:""},"It has been referenced ",-1),H={"text-primary":""},J=o("span",{op50:""}," times by:",-1),K={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},P={key:1,"text-sm":"",op50:""},Z=V({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(k){const t=k,b=D(),g=U(),m=c(()=>t.item.as||t.item.name),n=c(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),C=c(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),y=c(()=>{if(t.item.meta?.docsUrl)return t.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(t.item.from))return x.nuxt[t.item.name];if(t.item.from==="vue")return x.vue[t.item.name]});return(a,p)=>{const w=I,f=S,N=z,B=$("VDropdown");return s(),r(B,{disabled:!t.metadata},{popper:i(()=>[o("div",M,[o("div",O,[a.item.meta?.description?(s(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):l("",!0),o("div",T,[j(f,{icon:"carbon-copy",onClick:p[0]||(p[0]=d=>e(b)(e(m),"imports-name"))},{default:i(()=>[u(" Copy ")]),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:p[1]||(p[1]=d=>a.filepath&&e(g)(a.filepath))},{default:i(()=>[u(" Source ")]),_:1})):l("",!0),e(y)?(s(),r(f,{key:1,icon:"carbon-catalog",to:e(y),target:"_blank"},{default:i(()=>[u(" Docs ")]),_:1},8,["to"])):l("",!0)])]),o("div",W,[e(n)?(s(),_(v,{key:0},[o("div",q,[A,o("strong",H,h(e(n)),1),J]),o("div",K,[(s(!0),_(v,null,E(e(C),d=>(s(),r(N,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),_("div",P," Not in use via auto import. "))])])]),default:i(()=>[o("button",G,[o("code",{rounded:"","font-mono":"",class:F([a.metadata&&!e(n)?"op30 hover:op100":"",a.classes])},[u(h(e(m))+" ",1),e(n)&&a.counter?(s(),_("sup",L,"x"+h(e(n)),1)):l("",!0)],2)])]),_:1},8,["disabled"])}}});export{Z as _};
@@ -1 +0,0 @@
1
- import{d as r,u as s,a2 as c,I as i,o as p,h as _,_ as u}from"./entry.Li7bMdxw.js";const f=r({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(l){const t=s();return(n,e)=>{const o=u,a=c("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=m=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{f as _};