@nuxt/devtools 1.6.4 → 2.0.0-beta.2

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 (126) hide show
  1. package/.discoveryrc.cjs +13 -0
  2. package/README.md +8 -5
  3. package/dist/chunks/module-main.mjs +105 -51
  4. package/dist/chunks/vite-inspect.mjs +5 -1
  5. package/dist/chunks/vscode.mjs +34 -12
  6. package/dist/client/200.html +15 -15
  7. package/dist/client/404.html +15 -15
  8. package/dist/client/_nuxt/__blank-mzki7hds.js +1 -0
  9. package/dist/client/_nuxt/{analyze-build-m6hjy8b6.js → analyze-build-cm7nbw0a.js} +1 -1
  10. package/dist/client/_nuxt/{assets-jkla6b4k.js → assets-4eyg0st2.js} +3 -3
  11. package/dist/client/_nuxt/builds/latest.json +1 -1
  12. package/dist/client/_nuxt/builds/meta/7235b424-6975-4a9d-93d7-43e41c8bf0d0.json +1 -0
  13. package/dist/client/_nuxt/{client-iy54pzt5.js → client-bnemmvey.js} +1 -1
  14. package/dist/client/_nuxt/{code-diff.vue-lhj9gxzz.js → code-diff.vue-b35z64iy.js} +1 -1
  15. package/dist/client/_nuxt/{code-snippets.vue-jbtneucz.js → code-snippets.vue-kod959e4.js} +1 -1
  16. package/dist/client/_nuxt/components-owz73qfn.js +1 -0
  17. package/dist/client/_nuxt/{composable-item.vue-glp5bo7t.js → composable-item.vue-k3upmevr.js} +1 -1
  18. package/dist/client/_nuxt/custom-_name_-1x91219n.js +1 -0
  19. package/dist/client/_nuxt/{default-g9cho5c5.js → default-knqf5o69.js} +1 -1
  20. package/dist/client/_nuxt/duration-display.vue-jvaccd8v.js +1 -0
  21. package/dist/client/_nuxt/entry.css-egk2z7qr.css +1 -0
  22. package/dist/client/_nuxt/{error-404-kpv9svhd.js → error-404-njmanbq9.js} +1 -1
  23. package/dist/client/_nuxt/error-404.css-lmmxplpx.css +1 -0
  24. package/dist/client/_nuxt/{error-500-hs8gcksv.js → error-500-efmvdg7h.js} +1 -1
  25. package/dist/client/_nuxt/error-500.css-u0boq89r.css +1 -0
  26. package/dist/client/_nuxt/error-g6edq0yb.js +9 -0
  27. package/dist/client/_nuxt/filepath-item.vue-jlqwj704.js +1 -0
  28. package/dist/client/_nuxt/full-b288af13.js +1 -0
  29. package/dist/client/_nuxt/{help-fab.vue-dsbe70oc.js → help-fab.vue-j6249tgf.js} +1 -1
  30. package/dist/client/_nuxt/{hooks-ntg8apv0.js → hooks-j5sf1l7v.js} +1 -1
  31. package/dist/client/_nuxt/imports-bnmsrgkh.js +1 -0
  32. package/dist/client/_nuxt/index-fzja6ux8.js +2 -0
  33. package/dist/client/_nuxt/index-nx28hfsi.js +1 -0
  34. package/dist/client/_nuxt/launch-page.vue-h6bzyiyl.js +1 -0
  35. package/dist/client/_nuxt/modules-dg7kfyjr.js +1 -0
  36. package/dist/client/_nuxt/mxzg8bne.js +17 -0
  37. package/dist/client/_nuxt/nbadge-065dqs5v.js +1 -0
  38. package/dist/client/_nuxt/{ncheckbox.vue-cse1wr02.js → ncheckbox.vue-d0yw5qc1.js} +1 -1
  39. package/dist/client/_nuxt/ncode-block.css-lvdc77tw.css +1 -0
  40. package/dist/client/_nuxt/ncode-block.vue-c2t0anp9.js +2 -0
  41. package/dist/client/_nuxt/ndrawer.vue-g7wzeynf.js +1 -0
  42. package/dist/client/_nuxt/ndropdown.vue-jksxbs6t.js +1 -0
  43. package/dist/client/_nuxt/{nicon-title.vue-jza46fsn.js → nicon-title.vue-hch1agon.js} +1 -1
  44. package/dist/client/_nuxt/{nlink.vue-n7487xrt.js → nlink.vue-i0hrioln.js} +1 -1
  45. package/dist/client/_nuxt/{nmarkdown.vue-ly8z22rg.js → nmarkdown.vue-lym2fx3e.js} +1 -1
  46. package/dist/client/_nuxt/nnavbar.vue-y4opgitt.js +1 -0
  47. package/dist/client/_nuxt/none-nup47uz7.js +1 -0
  48. package/dist/client/_nuxt/nsection-block-mb0wrwu4.js +1 -0
  49. package/dist/client/_nuxt/nselect-tabs.vue-mvcu0rv4.js +1 -0
  50. package/dist/client/_nuxt/nselect.vue-eyd0vhij.js +1 -0
  51. package/dist/client/_nuxt/{open-graph-oo7uwhvx.js → open-graph-k0hqg0gj.js} +2 -2
  52. package/dist/client/_nuxt/overview-o54gzos9.js +1 -0
  53. package/dist/client/_nuxt/pages-eou4r3my.js +1 -0
  54. package/dist/client/_nuxt/{payload-i4d3og4m.js → payload-nhrpw6bb.js} +1 -1
  55. package/dist/client/_nuxt/pinia-fydnwhe3.js +1 -0
  56. package/dist/client/_nuxt/plugins-c7p6t581.js +1 -0
  57. package/dist/client/_nuxt/render-tree-j2aypyg1.js +1 -0
  58. package/dist/client/_nuxt/{runtime-configs-elwu7luj.js → runtime-configs-d0jvii1m.js} +1 -1
  59. package/dist/client/_nuxt/server-discovery-gexdv3di.js +1 -0
  60. package/dist/client/_nuxt/{server-route-inputs.vue-ot4rib01.js → server-route-inputs.vue-o8209idy.js} +1 -1
  61. package/dist/client/_nuxt/server-routes-dqhxkhv4.js +9 -0
  62. package/dist/client/_nuxt/server-tasks-k2bo3ecg.js +1 -0
  63. package/dist/client/_nuxt/settings-kg4bwnbo.js +1 -0
  64. package/dist/client/_nuxt/{stacktrace-list.vue-ojf2cyfb.js → stacktrace-list.vue-cb98on8v.js} +1 -1
  65. package/dist/client/_nuxt/{state-components-i6bpejw5.js → state-components-of7uu2vz.js} +1 -1
  66. package/dist/client/_nuxt/state-editor.vue-j30ssdvq.js +1 -0
  67. package/dist/client/_nuxt/state-modules-dvf4dhgf.js +1 -0
  68. package/dist/client/_nuxt/storage-h5g7r393.js +1 -0
  69. package/dist/client/_nuxt/{terminals-dmw85v8a.js → terminals-h4bqkpmq.js} +1 -1
  70. package/dist/client/_nuxt/{timeline-ilgburvu.js → timeline-km82a89k.js} +2 -2
  71. package/dist/client/_nuxt/{unocss-runtime-dmm6yugz.js → unocss-runtime-eltx4hvu.js} +1 -1
  72. package/dist/client/_nuxt/vendor/{json-editor-vue-ivrsfd8a.js → json-editor-vue-fw81xiot.js} +100 -100
  73. package/dist/client/_nuxt/vendor/shiki-j4jbxo4i.js +148 -0
  74. package/dist/client/_nuxt/vendor/unocss-dypm4cev.js +2 -0
  75. package/dist/client/_nuxt/vendor/{vis-cum19y28.js → vis-fzckz0r6.js} +12 -12
  76. package/dist/client/_nuxt/vendor/{xterm-dbpzgj7s.js → xterm-b1jefe3j.js} +7 -7
  77. package/dist/client/_nuxt/virtual-files-lhs4uf37.js +1 -0
  78. package/dist/client/_nuxt/{vue-virtual-scroller.esm-lq6f9fzq.js → vue-virtual-scroller.esm-luvj44av.js} +1 -1
  79. package/dist/client/discovery/index.html +611 -0
  80. package/dist/client/index.html +15 -15
  81. package/dist/module.json +2 -2
  82. package/dist/module.mjs +1 -1
  83. package/dist/runtime/plugins/view/Main.vue +2 -9
  84. package/dist/shared/{devtools.5ac54dae.mjs → devtools.60b2ba4d.mjs} +3 -2
  85. package/package.json +49 -43
  86. package/dist/client/_nuxt/__blank-lypl178u.js +0 -1
  87. package/dist/client/_nuxt/builds/meta/3a026b0b-3c88-4a7c-8ad7-043b5176a32e.json +0 -1
  88. package/dist/client/_nuxt/components-h2g43vc5.js +0 -1
  89. package/dist/client/_nuxt/components-tree-iq3immmn.js +0 -1
  90. package/dist/client/_nuxt/custom-_name_-m2razr0k.js +0 -1
  91. package/dist/client/_nuxt/duration-display.vue-oy3zq0wt.js +0 -1
  92. package/dist/client/_nuxt/entry.css-f054t818.css +0 -1
  93. package/dist/client/_nuxt/error-404.css-he1uoaye.css +0 -1
  94. package/dist/client/_nuxt/error-500.css-ojhe2u1c.css +0 -1
  95. package/dist/client/_nuxt/error-kq6fdjd8.js +0 -9
  96. package/dist/client/_nuxt/filepath-item.vue-khcefxw1.js +0 -1
  97. package/dist/client/_nuxt/full-h4bblsc2.js +0 -1
  98. package/dist/client/_nuxt/imports-oas5k4l1.js +0 -1
  99. package/dist/client/_nuxt/index-cr2km0lm.js +0 -1
  100. package/dist/client/_nuxt/index-kk6zx8yh.js +0 -2
  101. package/dist/client/_nuxt/jkwjqiby.js +0 -17
  102. package/dist/client/_nuxt/launch-page.vue-qpalyfg3.js +0 -1
  103. package/dist/client/_nuxt/modules-djo3gmhk.js +0 -1
  104. package/dist/client/_nuxt/nbadge-gvjrabwx.js +0 -1
  105. package/dist/client/_nuxt/ncode-block.css-c9cb29at.css +0 -1
  106. package/dist/client/_nuxt/ncode-block.vue-d0rio4gb.js +0 -2
  107. package/dist/client/_nuxt/ndrawer.vue-lv2j51sl.js +0 -1
  108. package/dist/client/_nuxt/ndropdown.vue-nrkf5gj7.js +0 -1
  109. package/dist/client/_nuxt/nnavbar.vue-h0vrbdpc.js +0 -1
  110. package/dist/client/_nuxt/none-o20iaxfc.js +0 -1
  111. package/dist/client/_nuxt/nsection-block-c30h9a7p.js +0 -1
  112. package/dist/client/_nuxt/nselect-tabs.vue-kva09wsa.js +0 -1
  113. package/dist/client/_nuxt/nselect.vue-97v3ez5s.js +0 -1
  114. package/dist/client/_nuxt/overview-myl8hwsb.js +0 -1
  115. package/dist/client/_nuxt/pages-b55hg92j.js +0 -1
  116. package/dist/client/_nuxt/pinia-d820aun4.js +0 -1
  117. package/dist/client/_nuxt/plugins-fyuck7jc.js +0 -1
  118. package/dist/client/_nuxt/server-routes-egyll002.js +0 -9
  119. package/dist/client/_nuxt/server-tasks-lubqj3k2.js +0 -1
  120. package/dist/client/_nuxt/settings-k355sbsm.js +0 -1
  121. package/dist/client/_nuxt/state-editor.vue-iy8ydlol.js +0 -1
  122. package/dist/client/_nuxt/state-modules-g393ybfq.js +0 -1
  123. package/dist/client/_nuxt/storage-pbps5f8y.js +0 -1
  124. package/dist/client/_nuxt/vendor/shiki-enrzjv18.js +0 -57
  125. package/dist/client/_nuxt/vendor/unocss-hwbthrao.js +0 -2
  126. package/dist/client/_nuxt/virtual-files-b7capdoa.js +0 -1
@@ -0,0 +1 @@
1
+ import{b as y,c as g,d as b,t as k,i as N,e as w,f as h}from"./mxzg8bne.js";import{_ as C}from"./nlink.vue-i0hrioln.js";import{_ as V}from"./ncheckbox.vue-d0yw5qc1.js";import{k as B,b as L,M as u,$ as o,Q as m,U as t,a0 as n,a6 as l,u as T,W as $}from"./vendor/json-editor-vue-fw81xiot.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";const D={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},P={"max-w-190":"","text-lg":""},j={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},W=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){k.value=s.value,N.value=!1}function f(){a.value=!1,p.value.devtools.close()}return(M,e)=>{const _=w,r=C,i=h,x=V,v=b;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(_,{"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",j,[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})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1}),T(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:f},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1})):$("",!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,["modelValue"])])])]),_:1})}}});export{W as default};
@@ -0,0 +1 @@
1
+ import{d as w,s as y,bj as C,E as $,f as B,U as V}from"./mxzg8bne.js";import{_ as P}from"./nmarkdown.vue-lym2fx3e.js";import{k as v,M as a,$ as o,Q as t,a0 as c,U as i,a5 as m,W as l,S as E,ab as F,a1 as I,a6 as L,F as M}from"./vendor/json-editor-vue-fw81xiot.js";const S={"text-xl":""},T={flex:"~ gap2 wrap"},Q=v({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(_,{emit:p}){const d=_,u=p;function f(e,s){y("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const k=C,g=P,b=$,h=B,N=V,x=w;return t(),a(x,null,{default:o(()=>[c(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[c(k,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",S,m(e.title),1),e.description?(t(),a(g,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):l("",!0),i("div",T,[(t(!0),E(M,null,F(e.actions,(n,r)=>(t(),a(h,I({key:r,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0,ref_for:!0},n.attrs,{onClick:U=>f(n,r)}),{default:o(()=>[n.pending?(t(),a(b,{key:0,icon:"carbon-circle-dash","animate-spin":""})):l("",!0),L(" "+m(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{Q as _};
@@ -0,0 +1 @@
1
+ import{_ as Z}from"./filepath-item.vue-jlqwj704.js";import{K as Y,a as L,E as G,U as H,o as K,r as V,j as q,s as ee,a8 as Q,a9 as W,f as U,N as te,I as oe,x as ne,y as se,p as le}from"./mxzg8bne.js";import{_ as ae,u as J,a as ie}from"./state-modules-dvf4dhgf.js";import{_ as re}from"./duration-display.vue-jvaccd8v.js";import{k as D,l as C,Q as o,M as $,$ as i,U as e,V as T,a6 as x,a5 as k,S as m,u as j,Y as S,W as g,a0 as s,F as B,ab as P,ai as ue,b as A,ad as E}from"./vendor/json-editor-vue-fw81xiot.js";import{_ as de}from"./nsection-block-mb0wrwu4.js";import{_ as pe}from"./nicon-title.vue-hch1agon.js";import{_ as R}from"./ndropdown.vue-jksxbs6t.js";import{_ as me}from"./nnavbar.vue-y4opgitt.js";import{_ as ce}from"./nbadge-065dqs5v.js";import{s as _e}from"./vue-virtual-scroller.esm-luvj44av.js";import{_ as fe}from"./ncode-block.vue-c2t0anp9.js";import{_ as ve}from"./nlink.vue-i0hrioln.js";import{_ as ge}from"./code-diff.vue-b35z64iy.js";import{_ as xe}from"./help-fab.vue-j6249tgf.js";import"./vendor/unocss-dypm4cev.js";import"./vendor/shiki-j4jbxo4i.js";import"./ncheckbox.vue-d0yw5qc1.js";import"./client-bnemmvey.js";const be={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},ke={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},he={key:2},ye={key:1,flex:"~ gap-2",title:"Documentation"},$e={key:2,flex:"~ gap-2"},we={key:0,flex:"~ gap-4 items-center"},Ce={flex:"~ gap-2 items-center",op50:""},Ie={flex:"~ gap-2 items-center",op50:""},Me={key:1},Ne={flex:"~ col","items-end":""},Be={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},je=["src","alt"],De={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Pe=["src"],Te={flex:"","justify-end":""},Ae="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Se="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",Ue="https://github.com/",ze="https://www.npmjs.com/package/",O=D({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const _=N,a=C(()=>({..._.mod?.meta,..._.mod,..._.info})),b=Y();return(r,t)=>{const n=L,u=G,w=re,y=H;return o(),$(y,{p4:"",flex:"~ gap2"},{default:i(()=>[e("div",be,[T(r.$slots,"main",{},()=>[e("div",ke,[r.mod.isPackageModule?(o(),$(n,{key:0,to:ze+(a.value.npm||a.value.name),target:"_blank",hover:"underline text-primary"},{default:i(()=>[x(k(a.value.name),1)]),_:1},8,["to"])):r.mod.entryPath?(o(),m("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=d=>j(b)(r.mod.entryPath))},k(a.value.name),1)):(o(),m("span",he,k(a.value.name),1)),T(r.$slots,"badge")]),a.value.description?(o(),m("div",{key:0,class:S(r.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},k(a.value.description),3)):g("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),a.value.website?(o(),m("div",ye,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(n,{to:a.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:i(()=>[x(k(a.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):g("",!0),a.value.github?(o(),m("div",$e,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(n,{to:a.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:i(()=>[x(k(a.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):g("",!0)]),T(r.$slots,"items"),a.value.stats?(o(),m("div",we,[e("div",Ce,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,k(a.value.stats.stars),1)]),e("div",Ie,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,k(a.value.stats.downloads),1)])])):g("",!0),r.mod.timings?.setup?(o(),m("div",Me,[s(w,{title:"Module Setup Time",flex:"~ items-center",duration:r.mod.timings.setup*1e3,factor:.5},{before:i(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):g("",!0)]),e("div",Ne,[a.value.icon||r.mod.isPackageModule?(o(),m("div",Be,[a.value.icon?(o(),m("img",{key:0,src:Ae+a.value.icon,alt:r.mod.name,ma:""},null,8,je)):g("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):g("",!0),a.value.maintainers?.length&&r.maintainers?(o(),m("div",De,[(o(!0),m(B,null,P(a.value.maintainers,d=>(o(),$(n,{key:d.name,target:"_blank",to:Ue+d.github,title:d.name},{default:i(()=>[e("img",{src:Se+d.github,"h-6":"","w-6":"","rounded-full":""},null,8,Pe)]),_:2},1032,["to","title"]))),128))])):g("",!0),r.$slots.actions?(o(),m(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",Te,[T(r.$slots,"actions")])],64)):g("",!0)])]),_:3})}}}),Le={key:0,flex:"~ gap-2",title:"Open on filesystem"},Oe={key:1,"mx--2":""},Fe=["onClick"],Ve={key:2,"mx--2":""},qe=["onClick"],Ee={op50:""},Ye={"text-green":""},Ge={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},He={"text-sm":"",op50:""},Ke=D({__name:"ModuleItem",props:{mod:{}},setup(N){const _=N,a=C(()=>_.mod.info),b=C(()=>({..._.mod?.meta,..._.mod,...a.value})),r=K();return(t,n)=>{const u=Z,w=L,y=ae,d=O;return o(),$(d,{mod:t.mod,info:a.value},{items:i(()=>[t.mod.entryPath?(o(),m("div",Le,[n[0]||(n[0]=e("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1)),s(u,{filepath:t.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):g("",!0),b.value.npm?(o(),$(y,{key:b.value.npm,"package-name":b.value.npm,options:{dev:!0}},{default:i(({info:c,update:p,state:l,id:f,restart:h})=>[l==="running"?(o(),$(w,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:f?"/modules/terminals":void 0,onClick:I=>f?r.value=f:void 0},{default:i(()=>n[1]||(n[1]=[e("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])),_:2},1032,["to","onClick"])):l==="updated"?(o(),m("div",Oe,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:h},n[2]||(n[2]=[e("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)]),8,Fe)])):c?.needsUpdate?(o(),m("div",Ve,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:I=>p()},[n[3]||(n[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",Ee,"v"+k(c.current),1),n[4]||(n[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Ye,"v"+k(c.latest),1)],8,qe)])):c?.latest?(o(),m("div",Ge,[n[5]||(n[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",He,"v"+k(c.current),1)])):g("",!0)]),_:1},8,["package-name"])):g("",!0)]),_:1},8,["mod","info"])}}}),Qe=D({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:_}){const a=N,b=_,r=J(),t=C(()=>r.value.find(d=>d.name===a.item.npm)),n=C(()=>t.value&&t.value.isPackageModule),u=C(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function w(d,c){const p=c==="install"?V.installNuxtModule:V.uninstallNuxtModule,l=await p(await q(),d.npm,!0);ee(`modules:${c}`,{moduleName:d.npm}),l.commands&&await Q.start(d,l,c)&&(W.value.push({name:d.npm,info:d,processId:l.processId}),b("start"),await p(await q(),d.npm,!1))}const y={};return(d,c)=>{const p=ce,l=U,f=R,h=O;return o(),$(h,{mod:y,role:n.value?"":"button",info:d.item,mb2:"","h-full":"",class:S(n.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:c[1]||(c[1]=I=>n.value?null:w(d.item,"install"))},ue({_:2},[n.value?{name:"badge",fn:i(()=>[s(p,{n:"green",textContent:"Installed"}),u.value?(o(),$(f,{key:0,n:"sm green"},{trigger:i(({click:I})=>[s(l,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:v=>I()},null,8,["onClick"])]),default:i(()=>[s(l,{icon:"carbon-trash-can",n:"red",onClick:c[0]||(c[0]=I=>w(d.item,"uninstall"))},{default:i(()=>c[2]||(c[2]=[x(" Uninstall ")])),_:1})]),_:1})):g("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),We={"h-full":"",flex:"~ col gap-4"},Je={flex:"~ items-center"},Re={flex:"~ col","w-30":"","of-auto":""},Xe={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},Ze={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},et=D({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:_}){const a=_,b=ie(),r=["downloads","stars","updated","created"],t=A(!1),n=A(r[0]),u={downloads:(p,l)=>p.stats.downloads-l.stats.downloads,stars:(p,l)=>p.stats.stars-l.stats.stars,created:(p,l)=>p.stats.createdAt-l.stats.createdAt,updated:(p,l)=>p.stats.publishedAt-l.stats.publishedAt},w=C(()=>b.value?.toSorted((p,l)=>u[n.value](p,l)*(t.value?1:-1))),y=A(""),d=C(()=>new te(b.value||[],{keys:["name","description","npm","category"],sortFn:(p,l)=>{const f=b.value?.[p.idx],h=b.value?.[l.idx];return f&&h?u[n.value](f,h)*(t.value?1:-1):p.score-l.score},threshold:.2})),c=C(()=>y.value?d.value.search(y.value).map(p=>p.item):w.value);return(p,l)=>{const f=pe,h=U,I=G,v=R,F=me,X=Qe;return o(),m("div",We,[s(f,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),s(F,{search:y.value,"onUpdate:search":l[1]||(l[1]=M=>y.value=M),"no-padding":"","px-6":"","pb-5":"","pt-2":""},{actions:i(()=>[s(v,{direction:"end",n:"sm primary"},{trigger:i(({click:M})=>[e("div",Je,[s(h,{icon:t.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:l[0]||(l[0]=z=>t.value=!t.value)},null,8,["icon"]),s(h,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:z=>M()},{default:i(()=>[x(k(n.value)+" ",1),s(I,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:i(()=>[e("div",Re,[(o(),m(B,null,P(r,M=>s(h,{key:M,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:z=>n.value=M},{default:i(()=>[e("span",Xe,[x(k(M)+" ",1),n.value===M?(o(),$(I,{key:0,icon:"carbon:checkmark"})):g("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),_:1},8,["search"]),e("div",Ze,[s(j(_e),{class:"scroller",items:c.value,"item-size":200,"key-field":"name"},{default:i(({item:M})=>[s(X,{item:M,onStart:l[2]||(l[2]=z=>a("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),tt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ot={capitalize:""},nt={op50:""},st={flex:"~ gap-3",mt2:"","justify-end":""},lt=D({__name:"ModuleActionDialog",setup(N){const _=oe(),a=Y(),b={};return(r,t)=>{const n=O,u=fe,w=ve,y=ge,d=ne,c=U,p=se;return o(),$(j(Q),null,{default:i(({resolve:l,args:f})=>[s(p,{"model-value":!0,onClose:h=>l(!1)},{default:i(()=>[s(n,{mod:b,info:f[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",tt,[e("h2",{"text-xl":"",class:S(f[2]==="install"?"text-primary":"text-red")},[e("span",ot,k(f[2]),1),t[1]||(t[1]=x()),e("code",null,k(f[0].name),1),t[2]||(t[2]=x("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:f[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",nt,[t[3]||(t[3]=x(" Then your ")),s(w,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=h=>j(a)(j(_)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=x(" will be updated as: "))]),s(y,{from:f[1].configOriginal,to:f[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),t[8]||(t[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),x(". ")],-1)),e("div",st,[s(d,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:i(()=>t[5]||(t[5]=[x(" Please make sure to backup your project first. ")])),_:1}),s(c,{onClick:h=>l(!1)},{default:i(()=>t[6]||(t[6]=[x(" Cancel ")])),_:2},1032,["onClick"]),s(c,{n:"solid",capitalize:"",class:S(f[2]==="install"?"n-primary":"n-red"),onClick:h=>l(!0)},{default:i(()=>[x(k(f[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),at={class:"markdown-body"},it={__name:"modules",setup(N,{expose:_}){return _({frontmatter:{}}),(b,r)=>(o(),m("div",at,r[0]||(r[0]=[e("h1",null,"Modules",-1),e("p",null,[x("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),e("code",null,"nuxt.config"),x(".")],-1),e("p",null,[x("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),x(" or install them directly inside the DevTools.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},rt={"h-full":"","w-full":"","of-auto":""},ut={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},dt=["src","alt"],pt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},mt={op75:""},ct={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},_t="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",At=D({__name:"modules",setup(N){const _=A(!1),a=J(),b=K(),r=C(()=>a.value.filter(n=>n.isPackageModule)),t=C(()=>a.value.filter(n=>!n.isPackageModule));return le(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{_.value=!0}}]),(n,u)=>{const w=Ke,y=H,d=L,c=de,p=U,l=et,f=lt,h=it,I=xe;return o(),m(B,null,[e("div",rt,[s(c,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${r.value.length}`},{default:i(()=>[(o(!0),m(B,null,P(r.value,v=>(o(),$(w,{key:v.name,mod:v},null,8,["mod"]))),128)),(o(!0),m(B,null,P("processInstallingModules"in n?n.processInstallingModules:j(W),v=>(o(),$(d,{key:v.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:F=>b.value=v.processId},{default:i(()=>[s(y,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:i(()=>[e("div",ut,[e("img",{src:_t+v.info.icon,alt:v.info.name,ma:""},null,8,dt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",pt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",mt,"Installing "+k(v.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(y,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:u[0]||(u[0]=v=>_.value=!0)},{default:i(()=>u[6]||(u[6]=[e("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),e("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])),_:1})]),_:1},8,["description"]),t.value.length?(o(),$(c,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${t.value.length}`},{default:i(()=>[(o(!0),m(B,null,P(t.value,v=>(o(),m(B,{key:v.meta?.name||v.entryPath},[v.meta?.name||v.entryPath?(o(),$(w,{key:0,mod:v},null,8,["mod"])):g("",!0)],64))),128))]),_:1},8,["description"])):g("",!0),s(E,{name:"fade-in"},{default:i(()=>[_.value?(o(),m("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=v=>_.value=!1)})):g("",!0)]),_:1}),s(E,{name:"slide-in"},{default:i(()=>[_.value?(o(),m("div",ct,[s(p,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=v=>_.value=!1)}),s(l,{onClose:u[3]||(u[3]=v=>_.value=!1)})])):g("",!0)]),_:1}),s(f)]),s(I,null,{default:i(()=>[s(h)]),_:1})],64)}}});export{At as default};