@nuxt/devtools 4.0.0-alpha.7 → 4.0.0-alpha.8

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 (162) hide show
  1. package/dist/chunks/analyze-build.mjs +32 -0
  2. package/dist/chunks/module-main.mjs +610 -302
  3. package/dist/chunks/timeline.mjs +2 -2
  4. package/dist/chunks/vite-inspect.mjs +75 -39
  5. package/dist/chunks/vscode.mjs +6 -7
  6. package/dist/client/200.html +1 -1
  7. package/dist/client/404.html +1 -1
  8. package/dist/client/_nuxt/__blank-mr7fdmv7.js +1 -0
  9. package/dist/client/_nuxt/analyze-build-nemej5kd.js +1 -0
  10. package/dist/client/_nuxt/assets-cl372mus.js +6 -0
  11. package/dist/client/_nuxt/{auth-required-panel-gwrodxrm.js → auth-required-panel-gdnspumn.js} +1 -1
  12. package/dist/client/_nuxt/builds/latest.json +1 -1
  13. package/dist/client/_nuxt/builds/meta/9ec1ff21-8126-4e86-bc50-039a1d3867c9.json +1 -0
  14. package/dist/client/_nuxt/{client-jwk7bkap.js → client-ngo84kjy.js} +1 -1
  15. package/dist/client/_nuxt/{code-diff-d1bf4mlz.js → code-diff-lkyoam09.js} +3 -3
  16. package/dist/client/_nuxt/code-snippets-hxwvpad4.js +1 -0
  17. package/dist/client/_nuxt/components-f9ckplr6.js +1 -0
  18. package/dist/client/_nuxt/composable-item-kchrxdzu.js +1 -0
  19. package/dist/client/_nuxt/composables-in7qtp0e.js +1 -0
  20. package/dist/client/_nuxt/custom-_name_-i8pdh231.js +1 -0
  21. package/dist/client/_nuxt/data-schema-button-jy2w2afg.js +1 -0
  22. package/dist/client/_nuxt/{data-schema-drawer-5ccj6aug.js → data-schema-drawer-liuhj385.js} +2 -2
  23. package/dist/client/_nuxt/debug-inf9k7rz.js +1 -0
  24. package/dist/client/_nuxt/{default-ibmlv6hu.js → default-dgqm22gk.js} +1 -1
  25. package/dist/client/_nuxt/dist-cwkxp5t4.js +1 -0
  26. package/dist/client/_nuxt/dist-das2ggjj.js +1 -0
  27. package/dist/client/_nuxt/dist-hhnji3pn.js +1 -0
  28. package/dist/client/_nuxt/{duration-display-cfe3xsok.js → duration-display-m84jv0cg.js} +1 -1
  29. package/dist/client/_nuxt/entry.css-ivisc4pv.css +1 -0
  30. package/dist/client/_nuxt/error-404-eoz73pl9.js +1 -0
  31. package/dist/client/_nuxt/error-404.css-i7pin5fo.css +1 -0
  32. package/dist/client/_nuxt/error-500-h0agvsjp.js +1 -0
  33. package/dist/client/_nuxt/error-500.css-4ikva5xr.css +1 -0
  34. package/dist/client/_nuxt/error-h5jfp4d9.js +9 -0
  35. package/dist/client/_nuxt/{filepath-item-calgslzq.js → filepath-item-b7ye3und.js} +1 -1
  36. package/dist/client/_nuxt/full-bc145h1r.js +1 -0
  37. package/dist/client/_nuxt/{help-fab-ietvwhig.js → help-fab-l6k9jkcj.js} +1 -1
  38. package/dist/client/_nuxt/hooks-ce5n3mpx.js +1 -0
  39. package/dist/client/_nuxt/iefeupks.js +4 -0
  40. package/dist/client/_nuxt/imports-ib3kw7ns.js +1 -0
  41. package/dist/client/_nuxt/launch-page-f3nbtoc4.js +1 -0
  42. package/dist/client/_nuxt/modules-gf4tkhai.js +1 -0
  43. package/dist/client/_nuxt/nbadge-254fd0s4.js +1 -0
  44. package/dist/client/_nuxt/{ncheckbox-gl62y715.js → ncheckbox-jr3c6e4e.js} +1 -1
  45. package/dist/client/_nuxt/ncode-block-jv3jk7c5.js +2 -0
  46. package/dist/client/_nuxt/{ndrawer-evv584t1.js → ndrawer-myfvks89.js} +1 -1
  47. package/dist/client/_nuxt/{ndropdown-dqqc8bnq.js → ndropdown-jnrvla1s.js} +1 -1
  48. package/dist/client/_nuxt/{nicon-title-f3ho3hah.js → nicon-title-66kg2f9l.js} +1 -1
  49. package/dist/client/_nuxt/{nlink-endeyoly.js → nlink-gej31v24.js} +1 -1
  50. package/dist/client/_nuxt/{nmarkdown-iw4stzqp.js → nmarkdown-nskcr8pg.js} +1 -1
  51. package/dist/client/_nuxt/{nnavbar-n8fcnalx.js → nnavbar-bvq6rk5u.js} +1 -1
  52. package/dist/client/_nuxt/none-fcxnfo1z.js +1 -0
  53. package/dist/client/_nuxt/{nsection-block-n5u7wj9x.js → nsection-block-illvvuef.js} +1 -1
  54. package/dist/client/_nuxt/{nselect-kdzalcm2.js → nselect-hlo7a40m.js} +1 -1
  55. package/dist/client/_nuxt/nselect-tabs-f47fcdsg.js +1 -0
  56. package/dist/client/_nuxt/nswitch-iey7gi9t.js +1 -0
  57. package/dist/client/_nuxt/{ntip-m8x8y44j.js → ntip-kpuxzuo5.js} +1 -1
  58. package/dist/client/_nuxt/nuxt-hqfu72u1.js +2 -0
  59. package/dist/client/_nuxt/open-graph-m35euip2.js +3 -0
  60. package/dist/client/_nuxt/overview-egkv3tit.js +1 -0
  61. package/dist/client/_nuxt/pages-ddqyzugj.js +1 -0
  62. package/dist/client/_nuxt/pages-n0i7aw4m.js +1 -0
  63. package/dist/client/_nuxt/payload-d6h8l8l2.js +1 -0
  64. package/dist/client/_nuxt/pinia-dl2li4zl.js +1 -0
  65. package/dist/client/_nuxt/plugins-nhvbpqrg.js +1 -0
  66. package/dist/client/_nuxt/ready-if1s6ugr.js +1 -0
  67. package/dist/client/_nuxt/render-tree-h0xpx3p4.js +1 -0
  68. package/dist/client/_nuxt/rpc-jaaujnev.js +1 -0
  69. package/dist/client/_nuxt/runtime-configs-o91gwu2q.js +1 -0
  70. package/dist/client/_nuxt/server-route-inputs-ej6h9rh8.js +1 -0
  71. package/dist/client/_nuxt/server-routes-ocltmxje.js +7 -0
  72. package/dist/client/_nuxt/server-tasks-hhkstkby.js +1 -0
  73. package/dist/client/_nuxt/settings-i2ld0c8q.js +1 -0
  74. package/dist/client/_nuxt/stacktrace-list-epxhdumx.js +1 -0
  75. package/dist/client/_nuxt/{state-components-eaw2evd3.js → state-components-eipbhsbn.js} +1 -1
  76. package/dist/client/_nuxt/{state-editor-jm35t8p1.js → state-editor-ogobz58w.js} +1 -1
  77. package/dist/client/_nuxt/state-modules-egymhwqw.js +1 -0
  78. package/dist/client/_nuxt/storage-cciny388.js +1 -0
  79. package/dist/client/_nuxt/storage-options-g42elkwy.js +1 -0
  80. package/dist/client/_nuxt/timeline-oese6i7t.js +31 -0
  81. package/dist/client/_nuxt/{unocss-runtime-kfral2d7.js → unocss-runtime-dh4insrr.js} +1 -1
  82. package/dist/client/_nuxt/utils-h3uzf8s7.js +2 -0
  83. package/dist/client/_nuxt/vendor/json-editor-vue-c7zwcfg4.js +3861 -0
  84. package/dist/client/_nuxt/vendor/{markdown-it-gg8o3tmh.js → markdown-it-cx0uvu2o.js} +1 -1
  85. package/dist/client/_nuxt/vendor/{quicktype-core-ozubcbyl.js → quicktype-core-otmjigaj.js} +65 -65
  86. package/dist/client/_nuxt/vendor/shiki-mgsi4s2l.js +153 -0
  87. package/dist/client/_nuxt/vendor/unocss-maavuy8p.js +3 -0
  88. package/dist/client/_nuxt/virtual-files-pd2s0ff2.js +1 -0
  89. package/dist/client/_nuxt/vue-devtools-bxffe3ae.js +4 -0
  90. package/dist/client/_nuxt/vue-router-mro49nyg.js +1 -0
  91. package/dist/client/index.html +1 -1
  92. package/dist/module.json +1 -1
  93. package/dist/module.mjs +1 -1
  94. package/dist/runtime/plugins/view/client.js +15 -0
  95. package/dist/shared/devtools.B9TxdMuu.mjs +119 -0
  96. package/dist/types.d.mts +1 -5
  97. package/dist/webcomponents/index.mjs +1 -1
  98. package/package.json +45 -49
  99. package/.discoveryrc.cjs +0 -13
  100. package/dist/client/_nuxt/__blank-ekrx7eve.js +0 -1
  101. package/dist/client/_nuxt/analyze-build-gtjxxh9s.js +0 -1
  102. package/dist/client/_nuxt/assets-fxuoynew.js +0 -6
  103. package/dist/client/_nuxt/builds/meta/23fee0aa-9df9-4da8-b519-ce0799e7da4e.json +0 -1
  104. package/dist/client/_nuxt/code-snippets-nodldh90.js +0 -1
  105. package/dist/client/_nuxt/components-ibu6c1zd.js +0 -1
  106. package/dist/client/_nuxt/composable-item-lb3qexrh.js +0 -1
  107. package/dist/client/_nuxt/custom-_name_-dt22ybu3.js +0 -1
  108. package/dist/client/_nuxt/data-schema-button-m4wb470q.js +0 -1
  109. package/dist/client/_nuxt/debug-nxl66qh3.js +0 -1
  110. package/dist/client/_nuxt/dist-nsuzcp77.js +0 -1
  111. package/dist/client/_nuxt/entry.css-m21ytcnz.css +0 -1
  112. package/dist/client/_nuxt/error-404-izmgsqlm.js +0 -1
  113. package/dist/client/_nuxt/error-404.css-l9jcssuy.css +0 -1
  114. package/dist/client/_nuxt/error-500-fejd4grh.js +0 -1
  115. package/dist/client/_nuxt/error-500.css-he4ew8b1.css +0 -1
  116. package/dist/client/_nuxt/error-mm873c55.js +0 -9
  117. package/dist/client/_nuxt/full-pesi6bu3.js +0 -1
  118. package/dist/client/_nuxt/hooks-mqgelnks.js +0 -1
  119. package/dist/client/_nuxt/imports-bofdhcsr.js +0 -1
  120. package/dist/client/_nuxt/launch-page-i8mgxym7.js +0 -1
  121. package/dist/client/_nuxt/modules-b6uha2ss.js +0 -1
  122. package/dist/client/_nuxt/nbadge-ft1i3ddy.js +0 -1
  123. package/dist/client/_nuxt/ncode-block-ksrq5ppu.js +0 -2
  124. package/dist/client/_nuxt/none-gr24yqiq.js +0 -1
  125. package/dist/client/_nuxt/nselect-tabs-e440xayq.js +0 -1
  126. package/dist/client/_nuxt/nswitch-pdw73751.js +0 -1
  127. package/dist/client/_nuxt/nuxt-kphganvs.js +0 -1
  128. package/dist/client/_nuxt/o7y7c26x.js +0 -4
  129. package/dist/client/_nuxt/open-graph-mtq8qyx5.js +0 -3
  130. package/dist/client/_nuxt/overview-idjgy9u4.js +0 -1
  131. package/dist/client/_nuxt/pages-g3tcvbsn.js +0 -1
  132. package/dist/client/_nuxt/pages-lk0hxlsc.js +0 -1
  133. package/dist/client/_nuxt/payload-ovd8emqe.js +0 -1
  134. package/dist/client/_nuxt/pinia-e6em75yg.js +0 -1
  135. package/dist/client/_nuxt/plugins-ojph2z4c.js +0 -1
  136. package/dist/client/_nuxt/ready-b5u27bv4.js +0 -1
  137. package/dist/client/_nuxt/render-tree-iwtso0n9.js +0 -1
  138. package/dist/client/_nuxt/rpc-ewzip6fb.js +0 -4
  139. package/dist/client/_nuxt/runtime-configs-gyhmrfcz.js +0 -1
  140. package/dist/client/_nuxt/server-discovery-cfu428ir.js +0 -1
  141. package/dist/client/_nuxt/server-route-inputs-hhxdu10p.js +0 -1
  142. package/dist/client/_nuxt/server-routes-efc7olve.js +0 -7
  143. package/dist/client/_nuxt/server-tasks-o59rfww6.js +0 -1
  144. package/dist/client/_nuxt/settings-c6tbo50r.js +0 -1
  145. package/dist/client/_nuxt/stacktrace-list-c5b46nul.js +0 -1
  146. package/dist/client/_nuxt/state-modules-oox7nhib.js +0 -1
  147. package/dist/client/_nuxt/storage-fdd2zc94.js +0 -1
  148. package/dist/client/_nuxt/storage-options-ho965h55.js +0 -1
  149. package/dist/client/_nuxt/terminals-b8awmi75.js +0 -1
  150. package/dist/client/_nuxt/terminals.css-mejv43xm.css +0 -1
  151. package/dist/client/_nuxt/timeline-nsh72kov.js +0 -31
  152. package/dist/client/_nuxt/utils-hgmynvjd.js +0 -2
  153. package/dist/client/_nuxt/vendor/json-editor-vue-mkw4apmc.js +0 -3869
  154. package/dist/client/_nuxt/vendor/shiki-c7z35hpo.js +0 -293
  155. package/dist/client/_nuxt/vendor/unocss-lkro8gbr.js +0 -3
  156. package/dist/client/_nuxt/vendor/xterm-eb5atty5.js +0 -36
  157. package/dist/client/_nuxt/vendor/xterm.css-j9zpjwmg.css +0 -1
  158. package/dist/client/_nuxt/virtual-files-met9zkti.js +0 -1
  159. package/dist/client/_nuxt/vue-devtools-bl144b70.js +0 -4
  160. package/dist/client/_nuxt/vue-router-cnnrtyb0.js +0 -1
  161. package/dist/client/discovery/index.html +0 -611
  162. package/dist/shared/devtools.nEotcg1R.mjs +0 -113
@@ -0,0 +1 @@
1
+ import{Ct as e,F as t,K as n,St as r,T as i,Tt as a,bt as o,j as s,jt as c,k as l,p as u,st as d}from"./vendor/json-editor-vue-c7zwcfg4.js";function f(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function p(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&f(e.default)}var m=Object.assign;function h(e,t){let n={};for(let r in t){let i=t[r];n[r]=_(i)?i.map(e):e(i)}return n}var g=()=>{},_=Array.isArray;function v(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var y=Symbol(``);function b(e,t){return m(Error(),{type:e,[y]:!0},t)}function x(e,t){return e instanceof Error&&y in e&&(t==null||!!(e.type&t))}var ee=Symbol(``),S=Symbol(``),te=Symbol(``),C=Symbol(``),ne=Symbol(``);function re(e){return s(C)}var w=typeof document<`u`,T=/#/g,ie=/&/g,E=/\//g,D=/=/g,ae=/\?/g,O=/\+/g,oe=/%5B/g,k=/%5D/g,A=/%5E/g,se=/%60/g,j=/%7B/g,M=/%7C/g,N=/%7D/g,P=/%20/g;function F(e){return e==null?``:encodeURI(``+e).replace(M,`|`).replace(oe,`[`).replace(k,`]`)}function ce(e){return F(e).replace(j,`{`).replace(N,`}`).replace(A,`^`)}function I(e){return F(e).replace(O,`%2B`).replace(P,`+`).replace(T,`%23`).replace(ie,`%26`).replace(se,"`").replace(j,`{`).replace(N,`}`).replace(A,`^`)}function L(e){return I(e).replace(D,`%3D`)}function le(e){return F(e).replace(T,`%23`).replace(ae,`%3F`)}function ue(e){return le(e).replace(E,`%2F`)}function R(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var z=/\/$/,B=e=>e.replace(z,``);function V(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=q(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:R(o)}}function de(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function H(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function fe(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&U(t.matched[r],n.matched[i])&&W(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function U(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function W(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!G(e[n],t[n]))return!1;return!0}function G(e,t){return _(e)?K(e,t):_(t)?K(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function K(e,t){return _(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function q(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var J={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Y(e){if(!e)if(w){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),B(e)}var X=/^[^#]+#/;function pe(e,t){return e.replace(X,`#`)+t}function me(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Z=()=>({left:window.scrollX,top:window.scrollY});function he(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=me(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function ge(e,t){return(history.state?history.state.position-t:-1)+e}var _e=new Map;function ve(e,t){_e.set(e,t)}function ye(e){let t=_e.get(e);return _e.delete(e),t}function be(e){return typeof e==`string`||e&&typeof e==`object`}function xe(e){return typeof e==`string`||typeof e==`symbol`}function Se(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(O,` `),i=r.indexOf(`=`),a=R(i<0?r:r.slice(0,i)),o=i<0?null:R(r.slice(i+1));if(a in t){let e=t[a];_(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Ce(e){let t=``;for(let n in e){let r=e[n];if(n=L(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(_(r)?r.map(e=>e&&I(e)):[r&&I(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function we(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=_(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Q(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function $(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(b(4,{from:n,to:t})):e instanceof Error?c(e):be(e)?c(b(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Te(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(f(s)){let c=(s.__vccOpts||s)[t];c&&a.push($(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=p(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&$(c,n,r,o,e,i)()}))}}return a}function Ee(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>U(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>U(e,s))||i.push(s))}return[n,r,i]}var De=()=>location.protocol+`//`+location.host;function Oe(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),H(n,``)}return H(n,e)+r+i}function ke(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Oe(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(m({},e.state,{scroll:Z()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Ae(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Z():null}}function je(e){let{history:t,location:n}=window,r={value:Oe(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:De()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,m({},t.state,Ae(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=m({},i.value,t.state,{forward:e,scroll:Z()});a(o.current,o,!0),a(e,m({},Ae(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Me(e){e=Y(e);let t=je(e),n=ke(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=m({location:``,base:e,go:r,createHref:pe.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Ne(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Me(e)}var Pe={type:0,value:``},Fe=/[a-zA-Z0-9_]/;function Ie(e){if(!e)return[[]];if(e===`/`)return[[Pe]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Fe.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Le=`[^/]+?`,Re={sensitive:!1,strict:!1,start:!0,end:!0},ze=/[.+*?^${}()[\]/\\]/g;function Be(e,t){let n=m({},Re,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(ze,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Le;if(u!==Le){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(_(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=_(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Ve(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function He(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Ve(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ue(r))return 1;if(Ue(i))return-1}return i.length-r.length}function Ue(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var We={strict:!1,end:!0,sensitive:!1};function Ge(e,t,n){let r=m(Be(Ie(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ke(e,t){let n=[],r=new Map;t=v(We,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Je(e);s.aliasOf=r&&r.record;let l=v(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Je(m({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ge(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Xe(d)&&o(e.name)),et(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:g}function o(e){if(xe(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Qe(e,n);n.splice(t,0,e),e.record.name&&!Xe(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw b(1,{location:e});s=i.record.name,a=m(qe(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&qe(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw b(1,{location:e,currentLocation:t});s=i.record.name,a=m({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Ze(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function qe(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Je(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ye(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ye(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Xe(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ze(e){return e.reduce((e,t)=>m(e,t.meta),{})}function Qe(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;He(e,t[i])<0?r=i:n=i+1}let i=$e(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function $e(e){let t=e;for(;t=t.parent;)if(et(t)&&He(e,t)===0)return t}function et({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tt(e){let t=s(te),n=s(C),r=u(()=>{let n=c(e.to);return t.resolve(n)}),i=u(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(U.bind(null,i));if(o>-1)return o;let s=ot(e[t-2]);return t>1&&ot(i)===s&&a[a.length-1].path!==s?a.findIndex(U.bind(null,e[t-2])):o}),a=u(()=>i.value>-1&&at(n.params,r.value.params)),o=u(()=>i.value>-1&&i.value===n.matched.length-1&&W(n.params,r.value.params));function l(n={}){if(it(n)){let n=t[c(e.replace)?`replace`:`push`](c(e.to)).catch(g);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:u(()=>r.value.href),isActive:a,isExactActive:o,navigate:l}}function nt(e){return e.length===1?e[0]:e}var rt=i({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:tt,setup(e,{slots:t}){let n=o(tt(e)),{options:r}=s(te),i=u(()=>({[st(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[st(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&nt(t.default(n));return e.custom?r:l(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function it(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function at(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!_(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ot(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var st=(e,t,n)=>e??t??n,ct=i({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:i}){let a=s(ne),o=u(()=>e.route||a.value),f=s(S,0),p=u(()=>{let e=c(f),{matched:t}=o.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),h=u(()=>o.value.matched[p.value]);n(S,u(()=>p.value+1)),n(ee,h),n(ne,o);let g=r();return d(()=>[g.value,h.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!U(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let n=o.value,r=e.name,a=h.value,s=a&&a.components[r];if(!s)return lt(i.default,{Component:s,route:n});let c=a.props[r],u=l(s,m({},c?c===!0?n.params:typeof c==`function`?c(n):c:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[r]=null)},ref:g}));return lt(i.default,{Component:u,route:n})||u}}});function lt(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var ut=ct;function dt(n){let r=Ke(n.routes,n),i=n.parseQuery||Se,o=n.stringifyQuery||Ce,s=n.history,l=Q(),u=Q(),d=Q(),f=a(J),p=J;w&&n.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let v=h.bind(null,e=>``+e),y=h.bind(null,ue),ee=h.bind(null,R);function S(e,t){let n,i;return xe(e)?(n=r.getRecordMatcher(e),i=t):i=e,r.addRoute(i,n)}function re(e){let t=r.getRecordMatcher(e);t&&r.removeRoute(t)}function T(){return r.getRoutes().map(e=>e.record)}function ie(e){return!!r.getRecordMatcher(e)}function E(e,t){if(t=m({},t||f.value),typeof e==`string`){let n=V(i,e,t.path),a=r.resolve({path:n.path},t),o=s.createHref(n.fullPath);return m(n,a,{params:ee(a.params),redirectedFrom:void 0,href:o})}let n;if(e.path!=null)n=m({},e,{path:V(i,e.path,t.path).path});else{let r=m({},e.params);for(let e in r)r[e]??delete r[e];n=m({},e,{params:y(r)}),t.params=y(t.params)}let a=r.resolve(n,t),c=e.hash||``;a.params=v(ee(a.params));let l=de(o,m({},e,{hash:ce(c),path:a.path})),u=s.createHref(l);return m({fullPath:l,hash:c,query:o===Ce?we(e.query):e.query||{}},a,{redirectedFrom:void 0,href:u})}function D(e){return typeof e==`string`?V(i,e,f.value.path):m({},e)}function ae(e,t){if(p!==e)return b(8,{from:t,to:e})}function O(e){return A(e)}function oe(e){return O(m(D(e),{replace:!0}))}function k(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=D(i):{path:i},i.params={}),m({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function A(e,t){let n=p=E(e),r=f.value,i=e.state,a=e.force,s=e.replace===!0,c=k(n,r);if(c)return A(m(D(c),{state:typeof c==`object`?m({},i,c.state):i,force:a,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!a&&fe(o,r,n)&&(u=b(16,{to:l,from:r}),W(r,r,!0,!1)),(u?Promise.resolve(u):M(l,r)).catch(e=>x(e)?x(e,2)?e:U(e):B(e,l,r)).then(e=>{if(e){if(x(e,2))return A(m({replace:s},D(e.to),{state:typeof e.to==`object`?m({},i,e.to.state):i,force:a}),t||l)}else e=P(l,r,!0,s,i);return N(l,r,e),e})}function se(e,t){let n=ae(e,t);return n?Promise.reject(n):Promise.resolve()}function j(e){let t=q.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function M(e,t){let n,[r,i,a]=Ee(e,t);n=Te(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push($(r,e,t))});let o=se.bind(null,e,t);return n.push(o),X(n).then(()=>{n=[];for(let r of l.list())n.push($(r,e,t));return n.push(o),X(n)}).then(()=>{n=Te(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push($(r,e,t))});return n.push(o),X(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(_(r.beforeEnter))for(let i of r.beforeEnter)n.push($(i,e,t));else n.push($(r.beforeEnter,e,t));return n.push(o),X(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Te(a,`beforeRouteEnter`,e,t,j),n.push(o),X(n))).then(()=>{n=[];for(let r of u.list())n.push($(r,e,t));return n.push(o),X(n)}).catch(e=>x(e,8)?e:Promise.reject(e))}function N(e,t,n){d.list().forEach(r=>j(()=>r(e,t,n)))}function P(e,t,n,r,i){let a=ae(e,t);if(a)return a;let o=t===J,c=w?history.state:{};n&&(r||o?s.replace(e.fullPath,m({scroll:o&&c&&c.scroll},i)):s.push(e.fullPath,i)),f.value=e,W(e,t,n,o),U()}let F;function I(){F||=s.listen((e,t,n)=>{if(!Y.listening)return;let r=E(e),i=k(r,Y.currentRoute.value);if(i){A(m(i,{replace:!0,force:!0}),r).catch(g);return}p=r;let a=f.value;w&&ve(ge(a.fullPath,n.delta),Z()),M(r,a).catch(e=>x(e,12)?e:x(e,2)?(A(m(D(e.to),{force:!0}),r).then(e=>{x(e,20)&&!n.delta&&n.type===`pop`&&s.go(-1,!1)}).catch(g),Promise.reject()):(n.delta&&s.go(-n.delta,!1),B(e,r,a))).then(e=>{e||=P(r,a,!1),e&&(n.delta&&!x(e,8)?s.go(-n.delta,!1):n.type===`pop`&&x(e,20)&&s.go(-1,!1)),N(r,a,e)}).catch(g)})}let L=Q(),le=Q(),z;function B(e,t,n){U(e);let r=le.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function H(){return z&&f.value!==J?Promise.resolve():new Promise((e,t)=>{L.add([e,t])})}function U(e){return z||(z=!e,I(),L.list().forEach(([t,n])=>e?n(e):t()),L.reset()),e}function W(e,r,i,a){let{scrollBehavior:o}=n;if(!w||!o)return Promise.resolve();let s=!i&&ye(ge(e.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return t().then(()=>o(e,r,s)).then(t=>e===f.value&&t&&he(t)).catch(t=>e===f.value&&B(t,e,r))}let G=e=>s.go(e),K,q=new Set,Y={currentRoute:f,listening:!0,addRoute:S,removeRoute:re,clearRoutes:r.clearRoutes,hasRoute:ie,getRoutes:T,resolve:E,options:n,push:O,replace:oe,go:G,back:()=>G(-1),forward:()=>G(1),beforeEach:l.add,beforeResolve:u.add,afterEach:d.add,onError:le.add,isReady:H,install(t){t.component(`RouterLink`,rt),t.component(`RouterView`,ut),t.config.globalProperties.$router=Y,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>c(f)}),w&&!K&&f.value===J&&(K=!0,O(s.location).catch(e=>{}));let n={};for(let e in J)Object.defineProperty(n,e,{get:()=>f.value[e],enumerable:!0});t.provide(te,Y),t.provide(C,e(n)),t.provide(ne,f);let r=t.unmount;q.add(t),t.unmount=function(){q.delete(t),q.size<1&&(p=J,F&&F(),F=null,f.value=J,K=!1,z=!1),r()}}};function X(e){return e.reduce((e,t)=>e.then(()=>j(t)),Promise.resolve())}return Y}export{J as a,Me as i,dt as n,re as o,Ne as r,ut as t};
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/o7y7c26x.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-m21ytcnz.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-flyrgbwp.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/o7y7c26x.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rolldown-runtime-imbltlrc.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-mkw4apmc.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/utils-hgmynvjd.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-c7z35hpo.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-b5u27bv4.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-kphganvs.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue-router-cnnrtyb0.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rpc-ewzip6fb.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-lkro8gbr.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-nsuzcp77.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-ho965h55.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/o7y7c26x.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"23fee0aa-9df9-4da8-b519-ce0799e7da4e",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1780369142351,false]</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/iefeupks.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-ivisc4pv.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-flyrgbwp.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/iefeupks.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-c7zwcfg4.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rolldown-runtime-imbltlrc.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/utils-h3uzf8s7.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-mgsi4s2l.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rpc-jaaujnev.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-if1s6ugr.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-cwkxp5t4.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-hqfu72u1.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue-router-mro49nyg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-hhnji3pn.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-maavuy8p.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/composables-in7qtp0e.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-g42elkwy.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/iefeupks.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-cx0uvu2o.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-dgqm22gk.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-bc145h1r.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-fcxnfo1z.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-ivoxtfjk.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-liuhj385.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-otmjigaj.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block-jv3jk7c5.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-ngo84kjy.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer-myfvks89.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown-jnrvla1s.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect-hlo7a40m.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch-iey7gi9t.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-dh4insrr.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-4ikva5xr.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-h0agvsjp.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"9ec1ff21-8126-4e86-bc50-039a1d3867c9",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1784773586681,false]</script></body></html>
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "configKey": "devtools",
4
- "version": "4.0.0-alpha.7",
4
+ "version": "4.0.0-alpha.8",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  import '@nuxt/kit';
2
- export { m as default } from './shared/devtools.nEotcg1R.mjs';
2
+ export { m as default } from './shared/devtools.B9TxdMuu.mjs';
@@ -222,11 +222,26 @@ export async function setupDevToolsClient({
222
222
  }
223
223
  setupRouteTracking(timeline, router);
224
224
  setupReactivity(client, router, timeline);
225
+ bindVueDevToolsIframe();
225
226
  clientRef.value = client;
226
227
  window.addEventListener("keydown", (e) => {
227
228
  if (e.code === "KeyD" && e.altKey && e.shiftKey)
228
229
  client.devtools.toggle();
229
230
  });
231
+ function bindVueDevToolsIframe() {
232
+ let bound;
233
+ const bind = () => {
234
+ const ctx = getViteDevToolsContext();
235
+ const dockIframe = ctx?.docks?.getStateById?.("nuxt:devtools")?.domElements?.iframe;
236
+ if (!dockIframe || dockIframe === bound)
237
+ return;
238
+ bound = dockIframe;
239
+ iframe = dockIframe;
240
+ setIframeServerContext(dockIframe);
241
+ };
242
+ bind();
243
+ setInterval(bind, 500);
244
+ }
230
245
  }
231
246
  export function useClientColorMode() {
232
247
  const explicitColor = ref();
@@ -0,0 +1,119 @@
1
+ import { defineNuxtModule } from '@nuxt/kit';
2
+
3
+ const e=globalThis.process?.env||Object.create(null),t=globalThis.process||{env:e},n=t!==void 0&&t.env&&t.env.NODE_ENV||void 0,r=[[`claude`,[`CLAUDECODE`,`CLAUDE_CODE`]],[`replit`,[`REPL_ID`]],[`gemini`,[`GEMINI_CLI`]],[`codex`,[`CODEX_SANDBOX`,`CODEX_THREAD_ID`]],[`opencode`,[`OPENCODE`]],[`pi`,[i(`PATH`,/\.pi[\\/]agent/)]],[`auggie`,[`AUGMENT_AGENT`]],[`goose`,[`GOOSE_PROVIDER`]],[`junie`,[`JUNIE_DATA`,`JUNIE_SHIM_PATH`]],[`devin`,[i(`EDITOR`,/devin/)]],[`cursor`,[`CURSOR_AGENT`]],[`kiro`,[i(`TERM_PROGRAM`,/kiro/,{noTTY:true})]]];function i(n,r,i){return ()=>{if(i?.noTTY&&t.stdout?.isTTY)return false;let a=e[n];return a?r.test(a):false}}function a(){let t=e.AI_AGENT;if(t)return {name:t.toLowerCase()};for(let[t,n]of r)for(let r of n)if(typeof r==`string`?e[r]:r())return {name:t};return {}}const o=a();o.name;!!o.name;const l=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:true}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:true}],[`CLOUDFLARE_WORKERS`,`WORKERS_CI`,{ci:true}],[`GOOGLE_CLOUDRUN`,`K_SERVICE`],[`GOOGLE_CLOUDRUN_JOB`,`CLOUD_RUN_JOB`],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`JENKINS`,`JENKINS_URL`],[`HUDSON`,`HUDSON_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:false}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:false}],[`VERCEL`,`VERCEL_ENV`,{ci:false}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:false}],[`CODESANDBOX`,`CODESANDBOX_HOST`,{ci:false}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:true}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOY`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:true}],[`EDGEONE_PAGES`,`EO_PAGES_CI`,{ci:true}]];function u(){for(let t of l)if(e[t[1]||t[0]])return {name:t[0].toLowerCase(),...t[2]};return e.SHELL===`/bin/jsh`&&t.versions?.webcontainer?{name:`stackblitz`,ci:false}:{name:``,ci:false}}const d=u(),f=d.name,p=t.platform||``,m=!!e.CI||d.ci!==false,h=!!t.stdout?.isTTY;!!e.DEBUG;const v=n===`test`||!!e.TEST;n===`production`||e.MODE===`production`;n===`dev`||n===`development`||e.MODE===`development`;!!e.MINIMAL||m||v||!h;const S=/^win/i.test(p);!e.NO_COLOR&&(!!e.FORCE_COLOR||(h||S)&&e.TERM!==`dumb`||m);const E=(t.versions?.node||``).replace(/^v/,``)||null;Number(E?.split(`.`)[0])||null;const O=!!t?.versions?.node,k=`Bun`in globalThis,A=`Deno`in globalThis,j=`fastly`in globalThis,M=`Netlify`in globalThis,N=`EdgeRuntime`in globalThis,P=globalThis.navigator?.userAgent===`Cloudflare-Workers`,F=[[M,`netlify`],[N,`edge-light`],[P,`workerd`],[j,`fastly`],[A,`deno`],[k,`bun`],[O,`node`]];function I(){let e=F.find(e=>e[0]);if(e)return {name:e[1]}}const L=I();L?.name||``;
4
+
5
+ const isSandboxed = f === "stackblitz" || f === "codesandbox";
6
+ const defaultOptions = {
7
+ enabled: void 0,
8
+ // determine multiple conditions
9
+ componentInspector: true,
10
+ viteInspect: true,
11
+ vscode: {
12
+ enabled: true,
13
+ startOnBoot: false,
14
+ port: 3080,
15
+ reuseExistingServer: true
16
+ },
17
+ disableAuthorization: isSandboxed
18
+ };
19
+ let serverTasksEnabledByDefault = false;
20
+ function setServerTasksEnabledByDefault(enabled) {
21
+ serverTasksEnabledByDefault = enabled;
22
+ }
23
+ function createDefaultTabOptions() {
24
+ return {
25
+ behavior: {
26
+ telemetry: null,
27
+ openInEditor: void 0
28
+ },
29
+ ui: {
30
+ componentsView: "list",
31
+ componentsGraphShowNodeModules: false,
32
+ componentsGraphShowGlobalComponents: true,
33
+ componentsGraphShowPages: false,
34
+ componentsGraphShowLayouts: false,
35
+ componentsGraphShowWorkspace: true,
36
+ interactionCloseOnOutsideClick: false,
37
+ showExperimentalFeatures: false,
38
+ showHelpButtons: true,
39
+ scale: 1,
40
+ hiddenTabs: [],
41
+ pinnedTabs: [],
42
+ hiddenTabCategories: [],
43
+ sidebarExpanded: false,
44
+ sidebarScrollable: false
45
+ },
46
+ serverRoutes: {
47
+ selectedRoute: null,
48
+ view: "tree",
49
+ inputDefaults: {
50
+ query: [],
51
+ body: [],
52
+ headers: []
53
+ },
54
+ sendFrom: "app"
55
+ },
56
+ serverTasks: {
57
+ enabled: serverTasksEnabledByDefault,
58
+ selectedTask: null,
59
+ view: "list",
60
+ inputDefaults: {
61
+ query: [],
62
+ body: [],
63
+ headers: [{ active: true, key: "Content-Type", value: "application/json", type: "string" }]
64
+ }
65
+ },
66
+ assets: {
67
+ view: "grid"
68
+ }
69
+ };
70
+ }
71
+ const defaultAllowedExtensions = [
72
+ "png",
73
+ "jpg",
74
+ "jpeg",
75
+ "gif",
76
+ "svg",
77
+ "webp",
78
+ "ico",
79
+ "mp4",
80
+ "ogg",
81
+ "mp3",
82
+ "wav",
83
+ "mov",
84
+ "mkv",
85
+ "mpg",
86
+ "txt",
87
+ "ttf",
88
+ "woff",
89
+ "woff2",
90
+ "eot",
91
+ "json",
92
+ "js",
93
+ "jsx",
94
+ "ts",
95
+ "tsx",
96
+ "md",
97
+ "mdx",
98
+ "vue",
99
+ "webm"
100
+ ];
101
+
102
+ const module$1 = defineNuxtModule({
103
+ meta: {
104
+ name: "@nuxt/devtools",
105
+ configKey: "devtools"
106
+ },
107
+ defaults: defaultOptions,
108
+ setup(options, nuxt) {
109
+ if (process.env.VITEST || process.env.TEST)
110
+ return;
111
+ if (typeof options === "boolean")
112
+ options = { enabled: options };
113
+ if (options.enabled === false)
114
+ return;
115
+ return import('../chunks/module-main.mjs').then(function (n) { return n.m; }).then(({ enableModule }) => enableModule(options, nuxt));
116
+ }
117
+ });
118
+
119
+ export { createDefaultTabOptions as c, defaultAllowedExtensions as d, module$1 as m, setServerTasksEnabledByDefault as s };
package/dist/types.d.mts CHANGED
@@ -32,10 +32,6 @@ interface InstallingModulestate {
32
32
  info: ModuleStaticInfo;
33
33
  processId: string;
34
34
  }
35
- interface AnalyzeBuildingState {
36
- name: string;
37
- processId: string;
38
- }
39
35
  type ModuleActionType = 'install' | 'uninstall';
40
36
 
41
- export type { AnalyzeBuildingState, InstallingModulestate, ModuleActionType, NormalizedHeadTag, SocialPreviewCard, SocialPreviewResolved };
37
+ export type { InstallingModulestate, ModuleActionType, NormalizedHeadTag, SocialPreviewCard, SocialPreviewResolved };
@@ -730,7 +730,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
730
730
  /* STABLE_FRAGMENT */
731
731
  );
732
732
  }
733
- const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/devtools/devtools/packages/devtools/src/webcomponents/components/NuxtDevtoolsInspectPanel.vue"]]);
733
+ const Component = /*#__PURE__*/ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/devtools/devtools/packages/devtools/src/webcomponents/components/NuxtDevtoolsInspectPanel.vue"]]);
734
734
 
735
735
  const NuxtDevtoolsInspectPanel = defineCustomElement(
736
736
  Component,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "type": "module",
4
- "version": "4.0.0-alpha.7",
4
+ "version": "4.0.0-alpha.8",
5
5
  "description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devtools.nuxt.com",
@@ -32,103 +32,99 @@
32
32
  "dist"
33
33
  ],
34
34
  "peerDependencies": {
35
- "vite": ">=6.0"
35
+ "vite": "^8.0.14"
36
36
  },
37
37
  "dependencies": {
38
- "@nuxt/kit": "^4.4.6",
39
- "@vitejs/devtools": "^0.3.1",
40
- "@vitejs/devtools-kit": "^0.3.1",
41
- "@vue/devtools-core": "^8.1.2",
42
- "@vue/devtools-kit": "^8.1.2",
38
+ "@devframes/plugin-data-inspector": "^0.7.9",
39
+ "@nuxt/kit": "^4.5.0",
40
+ "@vitejs/devtools": "^0.4.3",
41
+ "@vitejs/devtools-kit": "^0.4.3",
42
+ "@vue/devtools-core": "^8.1.5",
43
+ "@vue/devtools-kit": "^8.1.5",
43
44
  "birpc": "^4.0.0",
44
45
  "consola": "^3.4.2",
45
46
  "destr": "^2.0.5",
46
- "error-stack-parser-es": "^1.0.5",
47
- "fast-npm-meta": "^2.0.0",
47
+ "diff": "^8.0.4",
48
+ "error-stack-parser-es": "^2.0.1",
49
+ "fast-npm-meta": "^2.2.0",
48
50
  "get-port-please": "^3.2.0",
49
51
  "hookable": "^6.1.1",
50
52
  "image-meta": "^0.2.2",
51
- "launch-editor": "^2.13.2",
53
+ "launch-editor": "^2.14.1",
52
54
  "local-pkg": "^1.2.1",
53
55
  "magicast": "^0.5.3",
54
56
  "ohash": "^2.0.11",
55
57
  "pathe": "^2.0.3",
56
58
  "perfect-debounce": "^2.1.0",
57
59
  "pkg-types": "^2.3.1",
58
- "semver": "^7.8.1",
59
60
  "sirv": "^3.0.2",
60
61
  "structured-clone-es": "^2.0.0",
61
- "tinyexec": "^1.2.2",
62
- "tinyglobby": "^0.2.16",
62
+ "tinyexec": "^1.2.4",
63
+ "tinyglobby": "^0.2.17",
63
64
  "unstorage": "^1.17.5",
64
- "vite-plugin-inspect": "^12.0.0-beta.3",
65
+ "verkit": "^0.2.0",
66
+ "vite-plugin-inspect": "^12.0.2",
65
67
  "vite-plugin-vue-tracer": "^1.4.0",
66
68
  "which": "^7.0.0",
67
- "ws": "^8.21.0",
68
- "@nuxt/devtools-kit": "4.0.0-alpha.7"
69
+ "ws": "^8.21.1",
70
+ "@nuxt/devtools-kit": "4.0.0-alpha.8"
69
71
  },
70
72
  "devDependencies": {
71
73
  "@antfu/utils": "^9.3.0",
72
- "@discoveryjs/cli": "^2.14.7",
73
- "@discoveryjs/discovery": "1.0.0-beta.92",
74
74
  "@iconify-json/bxl": "^1.2.4",
75
- "@iconify-json/carbon": "^1.2.22",
75
+ "@iconify-json/carbon": "^1.2.24",
76
76
  "@iconify-json/logos": "^1.2.11",
77
77
  "@iconify-json/ph": "^1.2.2",
78
78
  "@iconify-json/ri": "^1.2.10",
79
- "@iconify-json/simple-icons": "^1.2.84",
80
- "@iconify-json/tabler": "^1.2.35",
79
+ "@iconify-json/simple-icons": "^1.2.91",
80
+ "@iconify-json/tabler": "^1.2.37",
81
81
  "@nuxt/test-utils": "^4.0.3",
82
- "@parcel/watcher": "^2.5.6",
82
+ "@parcel/watcher": "^2.6.0",
83
83
  "@types/markdown-it-link-attributes": "^3.0.5",
84
- "@unhead/schema": "^3.1.1",
85
- "@unocss/nuxt": "^66.7.0",
86
- "@unocss/preset-icons": "^66.7.0",
87
- "@unocss/preset-uno": "^66.7.0",
88
- "@unocss/runtime": "^66.7.0",
89
- "@vitejs/devtools": "^0.3.1",
90
- "@vitest/ui": "^4.1.7",
91
- "@vue/devtools-applet": "^8.1.2",
84
+ "@unhead/schema": "^3.2.1",
85
+ "@unocss/nuxt": "^66.7.5",
86
+ "@unocss/preset-icons": "^66.7.5",
87
+ "@unocss/preset-uno": "^66.7.5",
88
+ "@unocss/runtime": "^66.7.5",
89
+ "@vitejs/devtools": "^0.4.3",
90
+ "@vitest/ui": "^4.1.10",
91
+ "@vue/devtools-applet": "^8.1.5",
92
92
  "@vueuse/nuxt": "^14.3.0",
93
- "@xterm/addon-fit": "^0.11.0",
94
- "@xterm/xterm": "^6.0.0",
95
- "cronstrue": "^3.14.0",
96
- "exsolve": "^1.0.8",
93
+ "cronstrue": "^3.24.0",
94
+ "exsolve": "^1.1.0",
97
95
  "floating-vue": "^5.2.2",
98
- "fuse.js": "^7.3.0",
96
+ "fuse.js": "^7.5.0",
99
97
  "json-editor-vue": "^0.18.1",
100
- "lightningcss": "^1.32.0",
101
- "markdown-it": "^14.2.0",
98
+ "lightningcss": "^1.33.0",
99
+ "markdown-it": "^14.3.0",
102
100
  "markdown-it-link-attributes": "^4.0.1",
103
101
  "nitropack": "^2.13.4",
104
- "nuxt": "^4.4.6",
102
+ "nuxt": "^4.5.0",
105
103
  "ofetch": "^1.5.1",
106
- "package-manager-detector": "^1.6.0",
104
+ "package-manager-detector": "^1.8.0",
107
105
  "quicktype-core": "22.0.0",
108
106
  "scule": "^1.3.0",
109
- "shiki": "^4.1.0",
110
- "shiki-codegen": "^4.1.0",
107
+ "shiki": "^4.3.1",
108
+ "shiki-codegen": "^4.3.1",
111
109
  "theme-vitesse": "^1.0.0",
112
- "tsx": "^4.22.3",
110
+ "tsx": "^4.23.1",
113
111
  "ua-parser-modern": "^0.1.1",
114
- "unimport": "^6.3.0",
115
- "unocss": "^66.7.0",
112
+ "unimport": "^6.3.1",
113
+ "unocss": "^66.7.5",
116
114
  "unplugin-vue": "^7.2.0",
117
115
  "unplugin-vue-markdown": "^32.0.0",
118
116
  "vanilla-jsoneditor": "^3.12.0",
119
117
  "vis-data": "^8.0.4",
120
118
  "vis-network": "^10.1.0",
121
- "vue-tsc": "^3.3.2",
119
+ "vue-tsc": "^3.3.7",
122
120
  "vue-virtual-scroller": "^3.0.4"
123
121
  },
124
122
  "scripts": {
125
- "build": "pnpm dev:prepare && pnpm build:module && pnpm build:discovery && pnpm build:client",
123
+ "build": "pnpm dev:prepare && pnpm build:module && pnpm build:client",
126
124
  "build:client": "nuxi generate client && node scripts/copy-client.mjs",
127
125
  "build:module": "nuxt-build-module build",
128
- "build:discovery": "npx discovery-build -c .discoveryrc.cjs -s -o client/public/discovery",
129
- "dev:discovery": "discovery -c .discoveryrc.cjs",
130
126
  "stub": "nuxt-build-module build --stub",
131
- "dev": "pnpm build:discovery && nuxi dev client",
127
+ "dev": "nuxi dev client",
132
128
  "dev:playground": "pnpm build && nuxi dev playground",
133
129
  "dev:prepare": "pnpm run stub && nuxi prepare client"
134
130
  }
package/.discoveryrc.cjs DELETED
@@ -1,13 +0,0 @@
1
- const { join } = require('node:path')
2
-
3
- module.exports = {
4
- name: 'Nuxt Server Data',
5
- basedir: join(__dirname, 'discovery'),
6
- embed: true,
7
- // view: {
8
- // assets: [
9
- // './pages/common.css',
10
- // './pages/default.js',
11
- // ],
12
- // },
13
- }
@@ -1 +0,0 @@
1
- import{T as e,U as t,_ as n}from"./vendor/json-editor-vue-mkw4apmc.js";import"./composables-ioamscf4.js";var r={"h-screen":``,"w-screen":``,"bg-black":``},i=e({__name:`__blank`,setup(e){return(e,i)=>(t(),n(`div`,r))}});export{i as default};
@@ -1 +0,0 @@
1
- import{C as e,J as t,S as n,St as r,T as i,U as a,Zt as o,_ as s,dt as c,en as l,g as u,h as d,jt as f,m as p,p as m,s as h,ut as g}from"./vendor/json-editor-vue-mkw4apmc.js";import{R as _,_ as v}from"./ready-b5u27bv4.js";import{a as y}from"./nuxt-kphganvs.js";import{_ as b,g as x}from"./utils-hgmynvjd.js";import{a as S,m as C,p as w}from"./rpc-ewzip6fb.js";import{t as T}from"./_plugin-vue_export-helper-d9irwgla.js";import{C as E,_ as D,c as O,g as k,h as A,k as j,p as M,t as N,v as P}from"#entry";import{t as F}from"./ncode-block-ksrq5ppu.js";import"./composables-ioamscf4.js";import{t as I}from"./ncheckbox-gl62y715.js";import{t as L}from"./filepath-item-calgslzq.js";import{t as R}from"./ntip-m8x8y44j.js";import{t as z}from"./help-fab-ietvwhig.js";var B={"h-full":``,grid:`~ rows-[max-content_1fr]`},V={flex:`~ wrap`,"w-full":``},H=[`onClick`],U={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},W={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},G=`/__nuxt_devtools__/client`,K=Object.assign(i({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(i){let d=i,v=`${y().app.baseURL.replace(G,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),b=m(()=>{let e=[{name:`Overview`,id:`overview`}];return d.current.features.bundleClient&&e.push({name:`Client Bundle`,id:`bundle-client`}),d.current.features.bundleNitro&&e.push({name:`Nitro Bundle`,id:`bundle-nitro`}),d.current.features.viteInspect&&e.push({name:`Vite Inspect`,id:`vite-inspect`}),e}),x=r(b.value[0]);function w(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function T(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}async function E(e){return S.clearAnalyzeBuilds([e])}return(r,d)=>{let m=L,y=j;return a(),s(`div`,B,[p(`div`,V,[(a(!0),s(h,null,t(b.value,(e,t)=>(a(),s(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:o(e.id===x.value?.id?``:`border-b`),onClick:t=>x.value=e},[p(`div`,{class:o(e.id===x.value?.id?``:`op30`)},l(e.name),3)],10,H))),128)),d[1]||=p(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?.id===`overview`?(a(),s(`div`,U,[d[15]||=p(`div`,{"flex-auto":``},null,-1),p(`div`,W,[d[10]||=p(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),p(`div`,null,[d[2]||=p(`div`,{"text-sm":``,op50:``},` Name `,-1),p(`div`,null,l(i.current.name),1)]),d[11]||=p(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),p(`div`,null,[d[3]||=p(`div`,{"text-sm":``,op50:``},` Build duration `,-1),p(`div`,null,l(w(i.current)),1)]),i.current.size?.clientBundle?(a(),s(h,{key:0},[d[5]||=p(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),p(`div`,null,[d[4]||=p(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),p(`div`,null,l(T(i.current.size.clientBundle)),1)])],64)):u(``,!0),i.current.size?.nitroBundle?(a(),s(h,{key:1},[d[7]||=p(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),p(`div`,null,[d[6]||=p(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),p(`div`,null,l(T(i.current.size.nitroBundle)),1)])],64)):u(``,!0),d[12]||=p(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),p(`div`,null,[d[8]||=p(`div`,{"text-sm":``,op50:``},` Built `,-1),p(`div`,null,l(f(C)(new Date(i.current.endTime))),1)]),d[13]||=p(`div`,{"i-carbon:folder-parent":``,"text-xl":``},null,-1),p(`div`,null,[d[9]||=p(`div`,{"text-sm":``,op50:``},` Report Path `,-1),e(m,{filepath:i.current.analyzeDir},null,8,[`filepath`])])]),d[16]||=p(`div`,{"flex-auto":``},null,-1),e(y,{n:`rose`,icon:`carbon-delete`,onClick:d[0]||=e=>E(i.current.name)},{default:g(()=>[...d[14]||=[n(` Delete this report `,-1)]]),_:1})])):u(``,!0),d._lazyshow1||x.value?.id===`bundle-client`?(d._lazyshow1=!0,a(),s(h,null,[c(p(`iframe`,{src:`${f(v)}${i.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`bundle-client`]])],64)):u(`v-show-if`,!0),d._lazyshow2||x.value?.id===`bundle-nitro`?(d._lazyshow2=!0,a(),s(h,null,[c(p(`iframe`,{src:`${f(v)}${i.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`bundle-nitro`]])],64)):u(`v-show-if`,!0),d._lazyshow3||x.value?.id===`vite-inspect`?(d._lazyshow3=!0,a(),s(h,null,[c(p(`iframe`,{src:`${f(v)}${i.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`vite-inspect`]])],64)):u(`v-show-if`,!0)])}}}),{__name:`BuildAnalyzeDetails`}),q={},J={class:`markdown-body`};function Y(e,t){return a(),s(`div`,J,[...t[0]||=[p(`template`,null,[p(`div`,{class:`markdown-body`},[p(`h1`,null,`Build Analyze`),p(`p`,null,[n(`DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command `),p(`code`,{"v-pre":``},`nuxt build --analyze`),n(` and present the output data directly in DevTools for easy browsing and comparing.`)])])],-1)]])}var X=T(q,[[`render`,Y]]),Z={flex:`~ col`},Q=[`onClick`],$={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},ee={flex:`~ items-center justify-center wrap`,p4:``},te={flex:`~ col gap-1`,"w-250":``,p4:``},ne={flex:`~ gap-3`,mt2:``,"justify-end":``},re=i({__name:`analyze-build`,setup(i){let c=w(),_=b(),y=v(),T=x(`analyze-build:slug`,``),L=m(()=>_.value?.builds.find(e=>e.slug===T.value)??_.value?.builds[0]),B=r(!1),V=r(``),H=m(()=>_.value?.builds.some(e=>e.name===V.value.trim()));async function U(){V.value=await S.generateAnalyzeBuildName(),await c.start()&&(E(`analyze-build:start`),N.value={name:V.value,processId:await S.startAnalyzeBuild(V.value)},B.value&&q())}let W=O();function G(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function q(){N.value?.processId&&(W.value=N.value.processId,y.push(`/modules/terminals`))}return M(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:U}]),(r,i)=>{let m=j,v=K,y=P,b=D,x=k,S=R,w=F,E=I,O=A,M=X,W=z;return a(),s(h,null,[e(b,{"left-size":30},{left:g(()=>[p(`div`,Z,[(a(!0),s(h,null,t(f(_)?.builds,e=>(a(),s(h,{key:e.slug},[p(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:o(e.slug===L.value?.slug?`text-primary bg-active`:``),onClick:t=>T.value=e.slug},[p(`code`,null,l(e.name),1),p(`div`,$,[i[4]||=p(`div`,{"i-carbon-time":``},null,-1),p(`span`,null,l(G(e)),1),i[5]||=p(`div`,{"flex-auto":``},null,-1),p(`span`,null,l(f(C)(new Date(e.endTime))),1)])],10,Q),i[6]||=p(`div`,{"x-divider":``},null,-1)],64))),128)),p(`div`,ee,[f(N)?(a(),d(m,{key:1,n:`primary`,icon:`carbon-circle-dash animate-spin`,onClick:i[1]||=e=>q()},{default:g(()=>[...i[8]||=[n(` Building... `,-1)]]),_:1})):(a(),d(m,{key:0,n:`primary`,icon:`carbon-edge-node`,onClick:i[0]||=e=>U()},{default:g(()=>[...i[7]||=[n(` Start a new build `,-1)]]),_:1}))])])]),right:g(()=>[L.value?(a(),d(v,{key:0,current:L.value},null,8,[`current`])):(a(),d(y,{key:1}))]),_:1}),e(f(c),null,{default:g(({resolve:t})=>[e(O,{"model-value":!0,onClose:e=>t(!1)},{default:g(()=>[p(`div`,te,[i[13]||=p(`h3`,{class:`text-lg font-medium leading-6`,mb2:``},` Start analyze build? `,-1),i[14]||=p(`p`,{op50:``},` Enter the name of the build: `,-1),e(x,{modelValue:V.value,"onUpdate:modelValue":i[2]||=e=>V.value=e,placeholder:`Build name`},null,8,[`modelValue`]),H.value?(a(),d(S,{key:0,"n-orange":``},{default:g(()=>[...i[9]||=[n(` A build with the same name already exists, continue would overrides the previous build result. `,-1)]]),_:1})):u(``,!0),i[15]||=p(`div`,{my3:``,"x-divider":``},null,-1),i[16]||=p(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),e(w,{code:`npx nuxi analyze --no-serve --name=${V.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),e(E,{modelValue:B.value,"onUpdate:modelValue":i[3]||=e=>B.value=e,mt2:``,n:`primary`},{default:g(()=>[...i[10]||=[n(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),p(`div`,ne,[e(m,{onClick:e=>t(!1)},{default:g(()=>[...i[11]||=[n(` Cancel `,-1)]]),_:1},8,[`onClick`]),e(m,{n:`solid primary`,onClick:e=>t(!0)},{default:g(()=>[...i[12]||=[n(` Start `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1}),e(W,null,{default:g(()=>[e(M)]),_:1})],64)}}});export{re as default};
@@ -1,6 +0,0 @@
1
- import{$t as e,C as t,J as n,S as r,St as i,T as a,U as o,Y as s,Z as c,Zt as l,_ as u,_t as d,dt as f,en as p,g as m,h,jt as g,m as _,p as v,s as y,ut as b}from"./vendor/json-editor-vue-mkw4apmc.js";import{L as x,z as S}from"./ready-b5u27bv4.js";import{Y as C,j as w,w as T}from"./utils-hgmynvjd.js";import{A as E,C as D,N as O,O as k,a as A,c as j,d as M,g as N,k as P,u as F}from"./rpc-ewzip6fb.js";import{t as I}from"./storage-options-ho965h55.js";import{C as L,N as R,a as ee,g as z,h as te,i as ne,j as B,k as V,m as H}from"#entry";import{t as U}from"./ndropdown-dqqc8bnq.js";import{t as W}from"./ndrawer-evv584t1.js";import"./composables-ioamscf4.js";import{t as G}from"./ncheckbox-gl62y715.js";import{t as re}from"./filepath-item-calgslzq.js";import{t as K}from"./nnavbar-n8fcnalx.js";import{t as q}from"./nsection-block-n5u7wj9x.js";import{t as J}from"./code-snippets-nodldh90.js";var Y={key:0,"h-full":``,"w-full":``,flex:``,"items-center":``,"justify-center":``},X={for:`drop-zone-input`,"text-3xl":``,hover:`text-green cursor-pointer`,"transition-all":``},ie={key:1,relative:``,"h-full":``,"w-full":``,grid:`~ rows-[max-content_1fr_max-content]`},ae={grid:`~ cols-minmax-8rem gap-8`,"overflow-auto":``,p6:``},oe={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,rounded:``,"rounded-t-lg":``,"bg-active":``,"object-cover":``,class:`aspect-1/1`,border:`~ base`},se=[`src`],ce={flex:`~ gap1`,"items-center":``},le={flex:`~ gap-2`,"items-center":``,"justify-center":``,p8:``},ue=Object.assign(a({__name:`AssetDropZone`,props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(e){let a=e,s=/\.\w+$/,d=E(a,`modelValue`),p=i(),v=i([]);function x(e){p.value=e.target,d.value=!0}function S(e){e.target===p.value&&(d.value=!1)}function C(e){e.preventDefault()}function w(e){e.preventDefault(),T(e.dataTransfer.files)}function T(e){let t=[...e||[]];if(t.length){let e=[],n=v.value.map(e=>e.name);for(let r of t)if(n.includes(r.name)){let t=1,[i,a]=r.name.split(`.`);for(;n.includes(`${i} (${t}).${a}`);)t++;let o=`${i}-${t}.${a}`,s=new Blob([r],{type:r.type}),c=new File([s],o,{lastModified:Date.now()});e.push(c),n.push(o)}else r.type===``&&R({message:`Folders are not supported yet`,icon:`carbon:face-dissatisfied`,classes:`text-orange`}),e.push(r);v.value=[...v.value,...e]}}async function O(){if(j.value||F.value)return;L(`assets:upload`);let e=[];for(let t of v.value){let n=new FileReader;n.readAsDataURL(t);let r=(await new Promise(e=>{n.onload=()=>e(n.result)})).split(`;base64,`).pop();e.push({path:t.name,encoding:`base64`,content:r})}await A.writeStaticAssets([...e],a.folder).then(()=>{I(),R({message:`Files uploaded successfully!`,icon:`i-carbon:checkmark`})}).catch(e=>{I(),R({message:`Error uploading files: ${e?.message??`unknown`}`,icon:`i-carbon-warning`,classes:`text-red`})}),d.value=!1}function k(e){v.value?.splice(e,1)}function M(e){return URL.createObjectURL(e)}function N(e,t){let[n,r]=e.name.split(`.`),i=t.replace(s,``),a=`${i}.${r}`;return i.length===0?(alert(`File name must be at least 1 characters long`),n):(Object.defineProperty(e,"name",{value:a,writable:!1}),v.value.splice(v.value.indexOf(e),1,e),e)}function P(){v.value=[]}function I(){d.value=!1,P()}return D(`dragenter`,x),D(`dragleave`,S),D(`dragover`,C),D(`drop`,w),(e,i)=>{let a=V,s=B,p=z,x=c(`tooltip`);return o(),u(`div`,{fixed:``,"bottom-0":``,"left-13":``,"right-0":``,"top-0":``,"z-10":``,"backdrop-blur-20":``,"transition-all":``,class:l(g(d)?`opacity-100 visible`:`opacity-0 invisible`)},[f(t(a,{icon:`carbon-close`,title:`Close`,absolute:``,"right-5":``,"top-5":``,"z-20":``,"text-xl":``,border:!1,onClick:I},null,512),[[x,`Close`,void 0,{"bottom-end":!0}]]),v.value?.length?(o(),u(`div`,ie,[i[4]||=_(`div`,{px6:``,py6:``},[_(`h1`,{"text-2xl":``},` Upload `),_(`p`,{"text-sm":``,op50:``},` Drag and drop files to upload `)],-1),_(`div`,ae,[(o(!0),u(y,null,n(v.value,(e,n)=>(o(),u(`div`,{key:e.name,flex:`~ col gap-2`,relative:``,"h-50":``,"w-40":``,"items-center":``},[_(`div`,oe,[_(`img`,{"h-full":``,"w-full":``,"rounded-t-lg":``,"object-cover":``,src:M(e)},null,8,se)]),_(`div`,ce,[t(p,{n:`xs`,"h-full":``,"flex-auto":``,"model-value":e.name,"onUpdate:modelValue":t=>N(e,t.target.value)},null,8,[`model-value`,`onUpdate:modelValue`]),t(a,{n:`red`,icon:`carbon-trash-can`,"h-full":``,"flex-none":``,title:`Remove file`,onClick:e=>k(n)},null,8,[`onClick`])])]))),128))]),_(`div`,le,[v.value.length?(o(),h(a,{key:0,n:`red`,onClick:P},{default:b(()=>[t(s,{icon:`carbon-clean`}),i[2]||=r(` Clear `,-1)]),_:1})):m(``,!0),t(a,{disabled:!v.value.length,n:`primary solid`,onClick:O},{default:b(()=>[t(s,{icon:`carbon-cloud-upload`}),i[3]||=r(` Upload `,-1)]),_:1},8,[`disabled`])])])):(o(),u(`div`,Y,[_(`label`,X,[t(s,{icon:`carbon-cloud-upload`,"mr-2":``}),i[1]||=r(` Drop files here or click to select `,-1)]),_(`input`,{id:`drop-zone-input`,type:`file`,multiple:``,hidden:``,onChange:i[0]||=e=>T(e.target.files)},null,32)]))],2)}}}),{__name:`AssetDropZone`}),de=Object.assign(a({__name:`AssetFontPreview`,props:{asset:{}},setup(t){let n=t,r=v(()=>`devtools-assets-${C(n.asset)}`);return k(v(()=>`
2
- @font-face {
3
- font-family: '${r.value}';
4
- src: url('${n.asset.publicPath}');
5
- }
6
- `)),(t,n)=>(o(),u(`div`,{"of-hidden":``,style:e({fontFamily:`'${r.value}'`})},` Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz `,4))}}),{__name:`AssetFontPreview`}),fe={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,"bg-active":``,"object-cover":``,p1:``},pe=[`src`],me={key:2,"i-carbon-document":``,"text-3xl":``,op20:``},he={key:3,"w-full":``,"self-start":``,p4:``},ge=[`textContent`],_e={key:4},ve=[`src`,`autoplay`,`controls`],ye={key:5},be={key:0,"i-carbon-volume-up":``,"text-3xl":``,op20:``},xe=[`src`],Se={key:6,"i-carbon-help":``,"text-3xl":``,op20:``},Z=Object.assign(a({__name:`AssetPreview`,props:{asset:{},textContent:{},detail:{type:Boolean}},setup(e){return(t,n)=>{let r=de;return o(),u(`div`,fe,[e.asset.type===`image`?(o(),u(`img`,{key:0,src:e.asset.publicPath},null,8,pe)):e.asset.type===`font`?(o(),h(r,{key:e.asset.publicPath,asset:e.asset,"self-stretch":``,p2:``,"text-2xl":``},null,8,[`asset`])):e.asset.type===`text`&&!e.textContent?(o(),u(`div`,me)):e.asset.type===`text`&&e.textContent?(o(),u(`div`,he,[_(`pre`,{"max-h-10rem":``,"of-hidden":``,"text-xs":``,"font-mono":``,textContent:p(e.textContent)},null,8,ge)])):e.asset.type===`video`?(o(),u(`div`,_e,[_(`video`,{src:e.asset.publicPath,autoplay:e.detail,controls:e.detail},null,8,ve)])):e.asset.type===`audio`?(o(),u(`div`,ye,[e.detail?(o(),u(`audio`,{key:1,src:e.asset.publicPath,controls:``},null,8,xe)):(o(),u(`div`,be))])):(o(),u(`div`,Se))])}}}),{__name:`AssetPreview`}),Ce={relative:``,flex:`~ col gap-1`,hover:`bg-active`,"items-center":``,"of-hidden":``,rounded:``,p2:``},we={"w-full":``,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-center":``,"text-xs":``},Te=Object.assign(a({__name:`AssetGridItem`,props:{asset:{},folder:{}},setup(e){let n=e,r=v(()=>n.folder&&n.asset.path.startsWith(n.folder)?n.asset.path.slice(n.folder.length):n.asset.path);return(n,i)=>{let a=B,s=Z;return o(),u(`button`,Ce,[e.asset.layer?(o(),h(a,{key:0,icon:`i-carbon-layers`,absolute:``,"right-4":``,"top-4":``,"bg-primary":``})):m(``,!0),t(s,{"h-30":``,"w-30":``,rounded:``,border:`~ base`,asset:e.asset},null,8,[`asset`]),_(`div`,we,p(r.value),1)])}}}),{__name:`AssetGridItem`}),Q=Object.assign(a({__name:`AssetListItem`,props:{item:{},index:{default:0},modelValue:{}},setup(t,{emit:a}){let c=t,f=E(c,`modelValue`,a,{passive:!0}),b=v(()=>c.item?.children?.length),x=i(!0),S=v(()=>b.value?`i-carbon-folder`:c.item.type===`image`?`i-carbon-image`:c.item.type===`video`?`i-carbon-video`:c.item.type===`audio`?`i-carbon-volume-up`:c.item.type===`font`?`i-carbon-text-small-caps`:c.item.type===`text`?`i-carbon-document`:c.item.type===`json`?`i-carbon-json`:`i-carbon-document-blank`);return(i,a)=>{let c=B,v=Q;return o(),u(`div`,null,[_(`button`,{flex:`~ gap-2`,"w-full":``,"items-center":``,hover:`bg-active`,px4:``,py1:``,style:e({paddingLeft:`calc(1rem + ${t.index*1.5}em)`}),class:l({"bg-active":!b.value&&g(f)?.filePath===t.item?.filePath}),border:`b base`,onClick:a[0]||=e=>b.value?x.value=!x.value:f.value=t.item},[_(`div`,{class:l(S.value)},null,2),_(`span`,{class:l({"flex items-center":b.value}),"flex-auto":``,"text-start":``,"text-sm":``,"font-mono":``},[r(p(t.item.path)+` `,1),t.item.layer?(o(),h(c,{key:0,icon:`i-carbon-layers`,"bg-primary":``})):m(``,!0)],2),b.value?(o(),h(c,{key:0,icon:`carbon:chevron-right`,"transform-rotate":x.value?90:0,transition:``},null,8,[`transform-rotate`])):m(``,!0)],6),x.value?s(i.$slots,`default`,{key:0},()=>[(o(!0),u(y,null,n(t.item?.children,e=>(o(),h(v,{key:e.filepath,modelValue:g(f),"onUpdate:modelValue":a[1]||=e=>d(f)?f.value=e:null,item:e,index:t.index+1},null,8,[`modelValue`,`item`,`index`]))),128))]):m(``,!0)])}}}),{__name:`AssetListItem`}),Ee={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},De={flex:`~`,"items-center":``,"justify-center":``},Oe={"max-w-full":``,"w-full":``,"table-fixed":``},ke={flex:`~ gap-1`,"w-full":``,"items-center":``},Ae={flex:`~ gap-1`,"w-full":``,"items-center":``,"of-hidden":``},je={"flex-auto":``,"of-hidden":``,truncate:``,"ws-pre":``,"font-mono":``},Me={capitalize:``},Ne={key:0},Pe={op70:``},Fe={flex:`~ gap2 wrap`},Ie={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},Le={flex:`~ gap2 wrap justify-center`},Re={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},ze={flex:`~ gap2 wrap justify-center`},Be={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},Ve={flex:``,"justify-end":``,"gap-4":``},$=Object.assign(a({__name:`AssetDetails`,props:{modelValue:{}},setup(e,{emit:n}){let a=E(e,`modelValue`,n,{passive:!0}),s=M(async()=>{if(a.value.type===`image`)return A.getImageMeta(a.value.filePath)}),l=i(!1),d=i(),C=i(0),w=M(async()=>{if(a.value.type!==`text`)return;C.value;let e=await A.getTextAssetContent(a.value.filePath);return d.value=e,e});async function D(){if(w.value!==d.value)try{await A.writeStaticAssets([{path:a.value.path,content:d.value,override:!0}],``),l.value=!1,C.value++,R({message:`Updated`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),R({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let O=T(),k=v(()=>(O.value?._installedModules||[]).some(e=>e.meta?.name===`@nuxt/image`||e.meta?.name===`@nuxt/image-edge`||e.meta?.name===`@nuxt/image-nightly`)),j=v(()=>{let e=[];if(a.value.type===`image`){let t=s.value?.width?`\n width="${s.value.width}"\n height="${s.value.height}" `:` `;return e.push({lang:`vue-html`,code:`<img${t}\n src="${a.value.publicPath}"\n/>`,name:`Plain Image`}),k.value&&e.push({lang:`vue-html`,code:`<NuxtImg${t}\n src="${a.value.publicPath}"\n/>`,name:`Nuxt Img`,docs:`https://image.nuxt.com/usage/nuxt-img`},{lang:`vue-html`,code:`<NuxtPicture${t}\n src="${a.value.publicPath}"\n/>`,name:`Nuxt Picture`,docs:`https://image.nuxt.com/usage/nuxt-picture`}),e}return e.push({lang:`html`,code:`<a download href="${a.value.publicPath}">\n Download ${a.value.path.split(`/`).slice(-1)[0]}\n</a>`,name:`Download link`}),e}),N=ne(),F=ee(),I=P(()=>a.value.mtime),L=v(()=>{let e=a.value.size;return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:`${(e/1024/1024).toFixed(2)} MB`}),B=v(()=>{if(!s.value?.width||!s.value?.height)return``;let e=(t,n)=>n?e(n,t%n):t,t=e(s.value.width,s.value.height);return t>3?`${s.value.width/t}:${s.value.height/t}`:``}),H=v(()=>[`image`,`text`,`video`,`audio`,`font`].includes(a.value.type)),U=i(!1);async function W(){try{await A.deleteStaticAsset(a.value.filePath),a.value=void 0,U.value=!1,R({message:`Asset deleted`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),R({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let G=i(!1),K=i(``);async function q(){let e=a.value.filePath.split(`/`),t=e.slice(-1)[0]?.split(`.`).slice(0,-1).join(`.`);if(!K.value||K.value===t)return R({message:`Please enter a new name`,icon:`i-carbon-warning`,classes:`text-orange`});try{let t=e.slice(-1)[0]?.split(`.`).slice(-1)[0],n=`${e.slice(0,-1).join(`/`)}/${K.value}.${t}`;await A.renameStaticAsset(a.value.filePath,n),a.value=void 0,G.value=!1,R({message:`Asset renamed`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),R({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}return(e,n)=>{let i=Z,v=re,C=V,T=J,E=te,O=z,k=c(`tooltip`);return o(),u(y,null,[_(`div`,Ee,[H.value?(o(),u(y,{key:0},[n[13]||=_(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[_(`div`,{"x-divider":``}),_(`div`,{"flex-none":``},` Preview `),_(`div`,{"x-divider":``})],-1),_(`div`,De,[t(i,{detail:``,"max-h-80":``,"min-h-20":``,"min-w-20":``,"w-auto":``,rounded:``,border:`~ base`,asset:g(a),"text-content":g(w)},null,8,[`asset`,`text-content`])])],64)):m(``,!0),n[25]||=_(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[_(`div`,{"x-divider":``}),_(`div`,{"flex-none":``},` Details `),_(`div`,{"x-divider":``})],-1),_(`table`,Oe,[_(`tbody`,null,[_(`tr`,null,[n[14]||=_(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Filepath `,-1),_(`td`,null,[_(`div`,ke,[t(v,{filepath:g(a).filePath,"text-left":``},null,8,[`filepath`]),f(t(C,{"flex-none":``,title:`Open in Editor`,icon:`carbon-launch`,border:!1,onClick:n[0]||=e=>g(F)(g(a).filePath)},null,512),[[k,`Open in Editor`]])])])]),_(`tr`,null,[n[15]||=_(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Public Path `,-1),_(`td`,null,[_(`div`,Ae,[_(`div`,je,p(g(a).publicPath),1),f(t(C,{"flex-none":``,title:`Copy public path`,icon:`carbon-copy`,border:!1,onClick:n[1]||=e=>g(N)(g(a).publicPath,`assets-public-path`)},null,512),[[k,`Copy public path`]]),f(t(C,{"flex-none":``,to:g(a).publicPath,icon:`carbon-launch`,target:`_blank`,border:!1,title:`Open in browser`},null,8,[`to`]),[[k,`Open in browser`]])])])]),_(`tr`,null,[n[16]||=_(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Type `,-1),_(`td`,Me,p(g(a).type),1)]),g(s)?.width?(o(),u(y,{key:0},[_(`tr`,null,[n[17]||=_(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Image Size `,-1),_(`td`,null,p(g(s).width)+` x `+p(g(s).height),1)]),B.value?(o(),u(`tr`,Ne,[n[18]||=_(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Aspect Ratio `,-1),_(`td`,null,p(B.value),1)])):m(``,!0)],64)):m(``,!0),_(`tr`,null,[n[19]||=_(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` File size `,-1),_(`td`,null,p(L.value),1)]),_(`tr`,null,[n[20]||=_(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Last modified `,-1),_(`td`,null,[r(p(new Date(g(a).mtime).toLocaleString())+` `,1),_(`span`,Pe,`(`+p(g(I))+`)`,1)])])])]),n[26]||=_(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[_(`div`,{"x-divider":``}),_(`div`,{"flex-none":``},` Actions `),_(`div`,{"x-divider":``})],-1),_(`div`,Fe,[t(C,{to:g(a).publicPath,download:``,target:`_blank`,icon:`carbon-download`,n:`green`},{default:b(()=>[...n[21]||=[r(` Download `,-1)]]),_:1},8,[`to`]),g(a).type===`text`?(o(),h(C,{key:0,icon:`carbon-edit`,n:`cyan`,onClick:n[2]||=e=>l.value=!l.value},{default:b(()=>[...n[22]||=[r(` Edit `,-1)]]),_:1})):m(``,!0),t(C,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:n[3]||=e=>G.value=!G.value},{default:b(()=>[...n[23]||=[r(` Rename `,-1)]]),_:1}),t(C,{icon:`carbon-delete`,n:`red`,onClick:n[4]||=e=>U.value=!U.value},{default:b(()=>[...n[24]||=[r(` Delete `,-1)]]),_:1})]),n[27]||=_(`div`,{"flex-auto":``},null,-1),j.value.length?(o(),h(T,{key:1,border:`t base`,"mx--4":``,"mb--4":``,"code-snippets":j.value},null,8,[`code-snippets`])):m(``,!0)]),t(E,{modelValue:U.value,"onUpdate:modelValue":n[6]||=e=>U.value=e},{default:b(()=>[_(`div`,Ie,[n[30]||=_(`span`,null,` Are you sure you want to delete this asset? `,-1),_(`div`,Le,[t(C,{icon:`carbon-close`,onClick:n[5]||=e=>U.value=!1},{default:b(()=>[...n[28]||=[r(` Cancel `,-1)]]),_:1}),t(C,{icon:`carbon-delete`,n:`red`,onClick:W},{default:b(()=>[...n[29]||=[r(` Delete `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),t(E,{modelValue:G.value,"onUpdate:modelValue":n[9]||=e=>G.value=e},{default:b(()=>[_(`div`,Re,[t(O,{modelValue:K.value,"onUpdate:modelValue":n[7]||=e=>K.value=e,placeholder:`New name`,n:`blue`},null,8,[`modelValue`]),_(`div`,ze,[t(C,{icon:`carbon-close`,onClick:n[8]||=e=>G.value=!1},{default:b(()=>[...n[31]||=[r(` Cancel `,-1)]]),_:1}),t(C,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:q},{default:b(()=>[...n[32]||=[r(` Rename `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),g(a).type===`text`?(o(),h(E,{key:0,modelValue:l.value,"onUpdate:modelValue":n[12]||=e=>l.value=e},{default:b(()=>[_(`div`,Be,[f(_(`textarea`,{"onUpdate:modelValue":n[10]||=e=>d.value=e,placeholder:`Item value...`,class:`h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none`,onKeydown:S(D,[`enter`])},null,544),[[x,d.value]]),_(`div`,Ve,[t(C,{icon:`carbon-close`,onClick:n[11]||=e=>l.value=!1},{default:b(()=>[...n[33]||=[r(` Cancel `,-1)]]),_:1}),t(C,{icon:`carbon:save`,n:`primary`,onClick:D},{default:b(()=>[...n[34]||=[r(` save `,-1)]]),_:1})])])]),_:1},8,[`modelValue`])):m(``,!0)],64)}}}),{__name:`AssetDetails`}),He={"h-full":``,"of-auto":``},Ue={"flex-none":``,flex:`~ gap2 items-center`,"text-lg":``},We={flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--1":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-primary:30":``,"text-8px":``},Ge={flex:`~ col`,"w-30":``,"of-auto":``},Ke={"text-xs":``,op75:``},qe={op50:``},Je={key:0},Ye={"mt--4":``,px2:``,grid:`~ cols-minmax-8rem`},Xe={key:1,p2:``,grid:`~ cols-minmax-8rem`},Ze={key:1},Qe=a({__name:`assets`,setup(e){let r=w(),a=i(!1),s=i(``),l=v(()=>new H(r.value||[],{keys:[`path`]})),d=O(()=>{let e=[];for(let t of r.value||[]){let n=t.path.split(`.`).pop();n&&!e.some(e=>e.name===n)&&e.push({name:n,value:!0})}return e}),x=v(()=>(s.value?l.value.search(s.value).map(e=>e.item):r.value||[]).filter(e=>{let t=e.path.split(`.`).pop();return!t||d.some(e=>e.name===t&&e.value)})),S=v(()=>{let e={};for(let t of x.value){let n=`${t.path.split(`/`).slice(0,-1).join(`/`)}/`;e[n]||(e[n]=[]),e[n].push(t)}return Object.entries(e).sort(([e],[t])=>e.localeCompare(t))}),C=v(()=>{let e={path:`public`,children:[]},t=(e,n,r)=>{let[i,...a]=n,o=e.children.find(e=>e.path===i);o||(o={...r,path:i,children:[]},e.children.push(o)),a.length>1?t(o,a,r):a.length===1&&o.children.push({...r,path:a[0]})};return x.value.forEach(n=>{t(e,n.path.split(`/`).filter(e=>e!==``),n)}),e.children}),T=i(),{view:E}=I(`assets`);function D(){E.value=E.value===`list`?`grid`:`list`}N(`Escape`,()=>{T.value=void 0});let k=i();return(e,i)=>{let l=V,v=G,w=U,O=K,A=ue,j=Te,M=q,N=Q,P=$,F=W,I=c(`tooltip`);return o(),u(`div`,He,[t(O,{ref_key:`navbar`,ref:k,search:s.value,"onUpdate:search":i[1]||=e=>s.value=e,pb2:``},{actions:b(()=>[_(`div`,Ue,[f(t(l,{icon:`carbon:cloud-upload`,title:`File Upload`,border:!1,onClick:i[0]||=e=>a.value=!a.value},null,512),[[I,`File Upload`,void 0,{"bottom-end":!0}]]),g(d).length?(o(),h(w,{key:0,direction:`end`,n:`sm primary`},{trigger:b(({click:e})=>[f(t(l,{icon:`carbon-filter`,border:!1,title:`Filter`,p3:``,"text-lg":``,onClick:t=>e()},null,8,[`onClick`]),[[I,`Filter`,void 0,{"bottom-end":!0}]]),_(`span`,We,p(g(d).length),1)]),default:b(()=>[_(`div`,Ge,[(o(!0),u(y,null,n(g(d),e=>(o(),h(v,{key:e.name,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:b(()=>[_(`span`,Ke,p(e.name),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):m(``,!0),f(t(l,{"text-lg":``,border:!1,icon:g(E)===`grid`?`i-carbon-list`:`i-carbon-grid`,title:`Toggle view`,onClick:D},null,8,[`icon`]),[[I,`Toggle View`,void 0,{"bottom-end":!0}]])])]),default:b(()=>[_(`div`,qe,[s.value?(o(),u(`span`,Je,p(x.value.length)+` matched · `,1)):m(``,!0),_(`span`,null,p(g(r)?.length)+` assets in total`,1)])]),_:1},8,[`search`]),t(A,{modelValue:a.value,"onUpdate:modelValue":i[2]||=e=>a.value=e,folder:`/`},null,8,[`modelValue`]),g(E)===`grid`?(o(),u(y,{key:0},[S.value.length>1?(o(!0),u(y,{key:0},n(S.value,([e,t])=>(o(),h(M,{key:e,text:e,description:`${t.length} items`,open:t.length<=g(50),padding:!1},{default:b(()=>[_(`div`,Ye,[(o(!0),u(y,null,n(t,t=>(o(),h(j,{key:t.path,asset:t,folder:e,onClick:e=>T.value=t},null,8,[`asset`,`folder`,`onClick`]))),128))])]),_:2},1032,[`text`,`description`,`open`]))),128)):(o(),u(`div`,Xe,[(o(!0),u(y,null,n(x.value,e=>(o(),h(j,{key:e.path,asset:e,onClick:t=>T.value=e},null,8,[`asset`,`onClick`]))),128))]))],64)):(o(),u(`div`,Ze,[(o(!0),u(y,null,n(C.value,(e,t)=>(o(),h(N,{key:t,modelValue:T.value,"onUpdate:modelValue":i[3]||=e=>T.value=e,item:e},null,8,[`modelValue`,`item`]))),128))])),t(F,{"model-value":!!T.value,"auto-close":``,"w-120":``,top:k.value,onClose:i[5]||=e=>T.value=void 0},{default:b(()=>[T.value?(o(),h(P,{key:0,modelValue:T.value,"onUpdate:modelValue":i[4]||=e=>T.value=e},null,8,[`modelValue`])):m(``,!0)]),_:1},8,[`model-value`,`top`])])}}});export{Qe as default};
@@ -1 +0,0 @@
1
- {"id":"23fee0aa-9df9-4da8-b519-ce0799e7da4e","timestamp":1780369105801,"prerendered":[]}
@@ -1 +0,0 @@
1
- import{C as e,J as t,S as n,T as r,Tt as i,U as a,Zt as o,_ as s,ct as c,en as l,g as u,h as d,jt as f,m as p,p as m,s as h,ut as g}from"./vendor/json-editor-vue-mkw4apmc.js";import{i as _,k as v}from"#entry";import{t as y}from"./ncode-block-ksrq5ppu.js";var b={key:0,relative:``,"n-code-block":``},x={flex:`~ wrap`,"w-full":``},S=[`onClick`],C={flex:`~ gap-2`,px3:``,pb3:``,n:`sm primary`},w=Object.assign(r({__name:`CodeSnippets`,props:{codeSnippets:{},eventType:{}},setup(r){let w=r,T=i(w.codeSnippets[0]),E=_(),D=m(()=>T.value?.lang||`text`);return c(()=>{w.codeSnippets.includes(T.value)||(T.value=w.codeSnippets[0])}),(i,c)=>{let m=y,_=v;return r.codeSnippets.length?(a(),s(`div`,b,[p(`div`,x,[(a(!0),s(h,null,t(r.codeSnippets,(e,t)=>(a(),s(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:o(e===T.value?``:`border-b`),onClick:t=>T.value=e},[p(`div`,{class:o(e===T.value?``:`op30`),"font-mono":``},l(e.name),3)],10,S))),128)),c[1]||=p(`div`,{border:`b base`,"flex-auto":``},null,-1)]),T.value?(a(),s(h,{key:0},[e(m,{code:T.value.code,lang:D.value,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`,`lang`]),p(`div`,C,[e(_,{icon:`carbon-copy`,onClick:c[0]||=e=>f(E)(T.value.code,r.eventType||`code-snippet-${T.value.name}`)},{default:g(()=>[...c[2]||=[n(` Copy `,-1)]]),_:1}),T.value?.docs?(a(),d(_,{key:0,to:T.value.docs,target:`_blank`,icon:`carbon-catalog`},{default:g(()=>[...c[3]||=[n(` Docs `,-1)]]),_:1},8,[`to`])):u(``,!0)])],64)):u(``,!0)])):u(``,!0)}}}),{__name:`CodeSnippets`});export{w as t};
@@ -1 +0,0 @@
1
- import{B as e,C as t,J as n,N as r,Q as i,S as a,St as o,T as s,Tt as c,U as l,X as u,Y as d,Z as f,Zt as p,_ as m,_t as h,dt as g,en as _,g as v,h as y,jt as b,m as x,p as S,s as C,st as w,ut as T}from"./vendor/json-editor-vue-mkw4apmc.js";import{D as ee,L as te,b as ne,c as E,i as D,n as O,q as k,w as re,z as A}from"./utils-hgmynvjd.js";import{R as j}from"./rpc-ewzip6fb.js";import{t as M}from"./storage-options-ho965h55.js";import{t as N}from"./_plugin-vue_export-helper-d9irwgla.js";import{i as P,j as F,k as I,m as L,y as R}from"#entry";import{t as z}from"./ndrawer-evv584t1.js";import"./composables-ioamscf4.js";import{t as ie}from"./ncheckbox-gl62y715.js";import{t as B}from"./filepath-item-calgslzq.js";import{t as V}from"./help-fab-ietvwhig.js";import{t as H}from"./nnavbar-n8fcnalx.js";import{t as U}from"./nicon-title-f3ho3hah.js";import{t as W}from"./nsection-block-n5u7wj9x.js";import{t as G}from"./nbadge-ft1i3ddy.js";import{n as K,t as q}from"./vendor/vis-izx2wksk.js";import{t as J}from"./nselect-tabs-e440xayq.js";import{n as Y,t as X}from"./state-components-eaw2evd3.js";var ae={},oe={class:`markdown-body`};function se(e,t){return l(),m(`div`,oe,[...t[0]||=[x(`template`,null,[x(`div`,{class:`markdown-body`},[x(`h1`,null,`Components`),x(`p`,null,`Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.`),x(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),x(`p`,null,[x(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var ce=N(ae,[[`render`,se]]),le={"text-sm":``,"font-mono":``},Z=Object.assign(s({__name:`ComponentName`,props:{component:{}},setup(e){let t=e,n=S(()=>t.component.pascalName||k(t.component.name||t.component.__name||t.component.kebabName||``));return(e,t)=>(l(),m(`code`,le,[t[0]||=x(`span`,{mr1:``,op20:``},`<`,-1),a(_(n.value),1),t[1]||=x(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),{__name:`ComponentName`}),ue={flex:`~ col gap1`,"items-start":``,"of-hidden":``},de={flex:`~ gap2 items-center`,px3:``},fe={px3:``,pb2:``},pe={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},me={"text-sm":``},he={"text-primary":``},ge={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},_e={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ve={"text-sm":``},ye={"text-primary":``},be={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},Q=Object.assign(s({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let r=e,i=S(()=>r.component.pascalName||k(r.component.name||r.component.__name||r.component.kebabName||``)),o=S(()=>r.component.filePath||r.component.file||r.component.__file||``),s=P();return(r,c)=>{let u=Z,f=I,p=G,h=B;return l(),m(`div`,ue,[x(`div`,de,[t(u,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(l(),y(f,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:T(()=>[...c[1]||=[a(` Docs `,-1)]]),_:1},8,[`to`])):v(``,!0),t(f,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:c[0]||=e=>b(s)(`<${i.value}></${i.value}>`,`component-name`)},{default:T(()=>[...c[2]||=[a(` Copy `,-1)]]),_:1}),e.component.global?(l(),y(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):v(``,!0)]),x(`div`,fe,[o.value?(l(),y(h,{key:0,filepath:o.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):v(``,!0)]),e.dependents?(l(),m(`div`,pe,[x(`div`,me,[x(`strong`,he,_(e.dependents.length),1),c[3]||=x(`span`,{op50:``},` references`,-1)]),e.dependents.length?(l(),m(`div`,ge,[(l(!0),m(C,null,n(e.dependents,e=>(l(),y(h,{key:e,filepath:e},null,8,[`filepath`]))),128))])):v(``,!0)])):v(``,!0),e.dependencies?(l(),m(`div`,_e,[x(`div`,ve,[x(`strong`,ye,_(e.dependencies.length),1),c[4]||=x(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(l(),m(`div`,be,[(l(!0),m(C,null,n(e.dependencies,e=>(l(),y(h,{key:e,filepath:e},null,8,[`filepath`]))),128))])):v(``,!0)])):v(``,!0),d(r.$slots,`default`)])}}}),{__name:`ComponentDetails`}),xe={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},Se={relative:``,"h-full":``,"w-full":``},Ce={key:0,py4:``,pt3:``,flex:`~ col`},we={border:`t base`,p4:``},Te=Object.assign(s({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(n){let r=n,i=o(),s=o(),u=te(),f=c(),p=ee(),g=re(),_=ne(),{componentsGraphShowNodeModules:y,componentsGraphShowGlobalComponents:E,componentsGraphShowPages:D,componentsGraphShowLayouts:O,componentsGraphShowWorkspace:k}=M(`ui`),A=o(),N=o(``),P=j(N,300),F=S(()=>{let e=r.relationships||[];if(A.value){let t=new Set;function n(r){!r||t.has(r)||(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(A.value),[...t]}return e}),L=S(()=>{let e=F.value.map(e=>{let t=r.components.find(t=>t.filePath===e.id),n=p.value?.find(t=>t.file===e.id),i=_.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:i?`layout`:n?`page`:`unknown`;if(!y.value&&a===`lib`||!D.value&&a===`page`||!O.value&&a===`layout`||!k.value&&a===`user`&&g.value&&!e.id.startsWith(g.value.rootDir)||!E.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=P.value&&!e.id.toLowerCase().includes(P.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:u.value===`dark`?`white`:`black`},color:s?`#8885`:A.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:i,relationship:e}}}).filter(e=>!!e),t=F.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new K(e),edges:t}}),B=S(()=>f.value?.component?(r.relationships?.find(e=>e.id===f.value?.component?.filePath)?.deps)?.map(e=>r.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),V=S(()=>f.value?.component?(r.relationships?.filter(e=>e.deps.includes(f.value.component.filePath)))?.map(e=>r.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);e(()=>{let e=new q(i.value,L.value,{nodes:{shape:`dot`,size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:`forceAtlas2Based`,timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:`#42b883`},unknown:{color:`#b86542`},lib:{color:`#b4b842`},page:{color:`#42b2b8`},layout:{color:`#4256b8`}}});e.on(`click`,e=>{let t=e.nodes?.[0];f.value=L.value.nodes.get(t).extra}),w(L,()=>{e.setData(L.value)})});function U(){f.value=void 0}let W=/.*\/components\//,G=/\.vue$/,J=/\/index$/;function Y(e){let t=r.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(J,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){A.value=f.value?.relationship,f.value=void 0}return(e,n)=>{let r=ie,o=H,c=R,u=Q,p=I,g=z;return l(),m(C,null,[t(o,{ref_key:`navbar`,ref:s,search:N.value,"onUpdate:search":n[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:T(()=>[x(`div`,xe,[t(r,{modelValue:b(D),"onUpdate:modelValue":n[0]||=e=>h(D)?D.value=e:null,n:`primary sm`},{default:T(()=>[...n[8]||=[x(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),t(r,{modelValue:b(O),"onUpdate:modelValue":n[1]||=e=>h(O)?O.value=e:null,n:`primary sm`},{default:T(()=>[...n[9]||=[x(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),t(r,{modelValue:b(k),"onUpdate:modelValue":n[2]||=e=>h(k)?k.value=e:null,n:`primary sm`},{default:T(()=>[...n[10]||=[x(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),t(r,{modelValue:b(y),"onUpdate:modelValue":n[3]||=e=>h(y)?y.value=e:null,n:`primary sm`},{default:T(()=>[...n[11]||=[x(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),t(r,{modelValue:b(E),"onUpdate:modelValue":n[4]||=e=>h(E)?E.value=e:null,n:`primary sm`},{default:T(()=>[...n[12]||=[x(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),A.value?(l(),m(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:n[5]||=e=>A.value=void 0},[...n[13]||=[a(` Clear filter `,-1),x(`div`,{"i-carbon-close":``},null,-1)]])):v(``,!0),n[14]||=x(`div`,{"flex-auto":``},null,-1),d(e.$slots,`default`)]),_:3},8,[`search`]),x(`div`,Se,[x(`div`,{ref_key:`container`,ref:i,"h-full":``,"w-full":``},null,512),t(c,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:T(()=>[...n[15]||=[x(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),x(`div`,{op50:``},` Component `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),x(`div`,{op50:``},` Global Component `),x(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),x(`div`,{op50:``},` Page `),x(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[x(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),x(`div`,{op50:``},` Layout `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),x(`div`,{op50:``},` Library Component `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),x(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),t(g,{"model-value":!!(f.value&&f.value.component),top:s.value,border:`t l base`,"w-80":``,onClose:U},{default:T(()=>[f.value&&f.value.component?(l(),m(`div`,Ce,[t(u,{component:f.value.component,dependencies:B.value,dependents:V.value},null,8,[`component`,`dependencies`,`dependents`]),x(`div`,we,[t(p,{n:`primary solid`,onClick:n[7]||=e=>X()},{default:T(()=>[...n[16]||=[a(` Filter to this component `,-1)]]),_:1})])])):v(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),{__name:`ComponentsGraph`}),Ee={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},De={key:0,"ml--1":``,"text-primary":``},$=Object.assign(s({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=S(()=>n.component.filePath||n.component.file||n.component.__file||``);return(n,i)=>{let a=Z,o=Q,s=u(`VDropdown`),c=G,f=B;return l(),m(`div`,Ee,[t(s,null,{popper:T(()=>[t(o,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:T(()=>[x(`button`,{"hover:text-primary":``,class:p(e.dependents&&e.dependents.length===0?`op50`:``)},[t(a,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(l(),m(`sup`,De,` x`+_(e.dependents?.length),1)):v(``,!0),e.component.global?(l(),y(c,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):v(``,!0),d(n.$slots,`default`),r.value?(l(),y(f,{key:2,filepath:r.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):v(``,!0)])}}}),{__name:`ComponentItem`}),Oe={flex:`~ gap-2 items-center`},ke={pl4:``},Ae=Object.assign(s({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let i=e,a=o(``),s=o(`all`),c=S(()=>{let e=i.components.map(e=>O(e,i.relationships));return s.value===`using`?e.filter(e=>e.dependents?.length):s.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),u={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},f=S(()=>new L(c.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),p=S(()=>{let e=[],t=new Map,n=[],r=[],i={user:0,lib:0,builtin:0,runtime:0};return(a.value?f.value.search(a.value).map(e=>e.item):c.value).forEach(a=>{let o=a.component;if(o.filePath&&E(o.filePath)){let e=D(o.filePath);if(!e)return;e===`nuxt`?(o.meta??={},o.meta.docs??=u?.[o.pascalName],n.push(a),i.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(a),i.lib++)}else o.global&&!o.filePath?(r.push(a),i.runtime++):(e.push(a),i.user++)}),{count:i,user:e,builtin:n,lib:t,runtime:r}});return(e,i)=>{let o=F,c=J,u=H,f=$,h=W,g=U;return l(),m(C,null,[t(u,{search:a.value,"onUpdate:search":i[1]||=e=>a.value=e,pb3:``},{actions:T(()=>[d(e.$slots,`default`)]),default:T(()=>[x(`div`,Oe,[t(o,{icon:`carbon-filter`,op50:``}),t(c,{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),p.value.user.length?(l(),y(h,{key:0,icon:`carbon-nominal`,text:`User components`,open:p.value.user.length<=b(50),description:`Total components: ${p.value.count.user}`},{default:T(()=>[(l(!0),m(C,null,n(p.value.user,e=>(l(),y(f,r({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):v(``,!0),p.value.runtime.length?(l(),y(h,{key:1,icon:`carbon-load-balancer-global`,open:p.value.runtime.length<=b(50),text:`Runtime components`,description:`Total components: ${p.value.count.runtime}`},{default:T(()=>[(l(!0),m(C,null,n(p.value.runtime,e=>(l(),y(f,r({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):v(``,!0),p.value.builtin.length?(l(),y(h,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${p.value.count.builtin}`},{default:T(()=>[(l(!0),m(C,null,n(p.value.builtin,e=>(l(),y(f,r({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):v(``,!0),p.value.lib.size?(l(),y(h,{key:3,open:p.value.count.lib<=b(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:T(()=>[(l(!0),m(C,null,n(p.value.lib.entries(),([e,i])=>(l(),m(`div`,{key:e,"ml-2":``},[t(g,{text:`${e} (${i.length})`,py1:``,op50:``},null,8,[`text`]),x(`div`,ke,[(l(!0),m(C,null,n(i,e=>(l(),y(f,r({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):v(``,!0)],64)}}}),{__name:`ComponentsList`}),je={relative:``,"h-full":``,"of-auto":``},Me={"flex-none":``,flex:`~ gap3`},Ne=s({__name:`components`,setup(e){let n=A(),r=X(),a=Y(),{componentsView:o}=M(`ui`);function s(){n.value?.inspector?.enable()}function c(){o.value=o.value===`list`?`graph`:`list`}return(e,u)=>{let d=I,p=ce,h=V,_=f(`tooltip`);return l(),m(C,null,[x(`div`,je,[(l(),y(i(b(o)===`list`?Ae:Te),{components:b(r),relationships:b(a)},{default:T(()=>[x(`div`,Me,[g(t(d,{"text-lg":``,border:!1,icon:b(o)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:c},null,8,[`icon`]),[[_,`Toggle View`,void 0,{"bottom-end":!0}]]),b(n)?.inspector?.isAvailable?g((l(),y(d,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:s},null,512)),[[_,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):v(``,!0)])]),_:1},8,[`components`,`relationships`]))]),t(h,null,{default:T(()=>[t(p)]),_:1})],64)}}});export{Ne as default};
@@ -1 +0,0 @@
1
- import{C as e,J as t,S as n,T as r,U as i,X as a,Zt as o,_ as s,en as c,g as l,h as u,jt as d,m as f,p,s as m,ut as h}from"./vendor/json-editor-vue-mkw4apmc.js";import{K as g}from"./utils-hgmynvjd.js";import{a as _,i as v,j as y,k as b}from"#entry";import{t as x}from"./filepath-item-calgslzq.js";import{t as S}from"./constants-g2z8m4rs.js";import{t as C}from"./nmarkdown-iw4stzqp.js";var w={rounded:``,"font-mono":``},T={key:0,"text-primary":``},E={key:0},D={title:`Vue Directive`},O={"max-w-100":``},k={px4:``,py3:``,"text-sm":``},A={flex:`~ gap2`,n:`primary xs`},j={border:`t base`,"max-h-60":``,"of-auto":``,px4:``,py3:``},M={"text-sm":``},N={"text-primary":``},P={flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},F={key:1,"text-sm":``,op50:``},I=Object.assign(r({__name:`ComposableItem`,props:{item:{},isDirective:{type:Boolean,default:!1},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:`px2 py1 text-sm bg-gray:5 `}},setup(r){let I=r,L=v(),R=_(),z=p(()=>I.item.as||I.item.name),B=p(()=>{let e=z.value;return I.isDirective&&(e[0]!==`v`&&(e=`v${e}`),e=g(e)),e}),V=p(()=>I.metadata?.injectionsUsageMap?.get(z.value)?.count||0),H=p(()=>(I.metadata?.injectionsUsageMap?.get(z.value)?.moduleIds||[]).filter(e=>!e.endsWith(`?macro=true`))),U=p(()=>I.item.meta?.docsUrl?I.item.meta.docsUrl:[`nuxt`,`#app`,`nuxt3`].includes(I.item.from)?S.nuxt[I.item.name]:I.item.from===`vue`?S.vue[I.item.name]:null);return(p,g)=>{let _=y,v=C,S=b,W=x,G=a(`VDropdown`);return i(),u(G,{disabled:!I.metadata},{popper:h(()=>[f(`div`,O,[f(`div`,k,[r.item.meta?.description?(i(),u(v,{key:0,tag:`div`,pb3:``,"text-sm":``,markdown:r.item.meta.description},null,8,[`markdown`])):l(``,!0),f(`div`,A,[e(S,{icon:`carbon-copy`,onClick:g[0]||=e=>d(L)(B.value,`imports-name`)},{default:h(()=>[...g[2]||=[n(` Copy `,-1)]]),_:1}),r.filepath?(i(),u(S,{key:0,icon:`carbon-code`,onClick:g[1]||=e=>r.filepath&&d(R)(r.filepath)},{default:h(()=>[...g[3]||=[n(` Source `,-1)]]),_:1})):l(``,!0),U.value?(i(),u(S,{key:1,icon:`carbon-catalog`,to:U.value,target:`_blank`},{default:h(()=>[...g[4]||=[n(` Docs `,-1)]]),_:1},8,[`to`])):l(``,!0)])]),f(`div`,j,[V.value?(i(),s(m,{key:0},[f(`div`,M,[g[5]||=f(`span`,{op50:``},`It has been referenced `,-1),f(`strong`,N,c(V.value),1),g[6]||=f(`span`,{op50:``},` times by:`,-1)]),f(`div`,P,[(i(!0),s(m,null,t(H.value,e=>(i(),u(W,{key:e,filepath:e},null,8,[`filepath`]))),128))])],64)):(i(),s(`div`,F,` Not in use via auto import. `))])])]),default:h(()=>[f(`button`,{"hover:text-primary":``,class:o([r.metadata&&!V.value?`op30 hover:op100`:``,r.classes])},[f(`code`,w,[n(c(z.value)+` `,1),V.value&&r.counter?(i(),s(`sup`,T,`x`+c(V.value),1)):l(``,!0)]),r.isDirective?(i(),s(`sup`,E,[f(`abbr`,D,[e(_,{icon:`tabler:hexagon-letter-d`})])])):l(``,!0)],2)]),_:1},8,[`disabled`])}}}),{__name:`ComposableItem`});export{I as t};
@@ -1 +0,0 @@
1
- import{B as e,C as t,P as n,Q as r,S as i,St as a,T as o,U as s,V as c,_ as l,bt as u,ct as d,en as f,h as p,jt as m,m as h,p as g,ut as _}from"./vendor/json-editor-vue-mkw4apmc.js";import{_ as v,g as y}from"./ready-b5u27bv4.js";import{L as b,U as x}from"./utils-hgmynvjd.js";import{a as S,x as C}from"./rpc-ewzip6fb.js";import{E as w,S as T,T as E,v as D,y as O}from"#entry";import"./composables-ioamscf4.js";import{t as k}from"./auth-required-panel-gwrodxrm.js";import{t as A}from"./launch-page-i8mgxym7.js";var j=new Map,M=Object.assign(o({__name:`IframeView`,props:{tab:{}},setup(t){let r=t,i=b(),o=a(),f=g(()=>r.tab.name),p=a(),m=u(C(o));e(()=>{let e=r.tab.view,t=e.persistent!==!1,i=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(j.get(f.value)&&t)p.value=j.get(f.value),p.value.style.visibility=`visible`;else{p.value=document.createElement(`iframe`),p.value.setAttribute(`allow`,i.join(`; `)),p.value.setAttribute(`aria-label`,`Nuxt Devtools`),t&&j.set(f.value,p.value),p.value.src=e.src;try{p.value.style.opacity=`0.01`,p.value.onload=()=>{v(),h(),p.value.style.opacity=`1`}}catch{p.value.style.opacity=`1`}document.body.appendChild(p.value),n(y)}setTimeout(h,100)}),d(y),d(h),d(v),c(()=>{p.value&&(p.value.style.visibility=`hidden`)});function h(){if(!(!p.value||!p.value.contentWindow))try{let e=p.value.contentWindow.document.querySelector(`html`);e?.classList.toggle(`dark`,i.value===`dark`),e?.classList.toggle(`light`,i.value===`dark`),new MutationObserver(()=>{i.value=p.value?.contentWindow?.document.querySelector(`html`)?.classList.contains(`dark`)?`dark`:`light`}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let _=x();function v(){if(!(!p.value||!p.value.contentWindow))try{p.value.contentWindow.__NUXT_DEVTOOLS__=_.value}catch{}}function y(){p.value&&Object.assign(p.value.style,{position:`fixed`,left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`,outline:`none`})}return(e,t)=>(s(),l(`div`,{ref_key:`anchor`,ref:o,"h-full":``,"w-full":``},null,512))}}),{__name:`IframeView`}),N={flex:`~ col gap2`,mxa:``,"items-center":``},P={"text-xl":``},F={"text-rose":``},I=o({__name:`custom-[name]`,props:{name:{}},setup(n){let a=n,o=y(),c=v(),l=g(()=>a.name??o.params.name),u=T(),d=g(()=>u.value.find(e=>e.name===l.value));return e(()=>{d.value?d.value.requireAuth&&!E.value&&w():setTimeout(()=>{d.value||c.push(`/modules/overview`)},2e3)}),(e,n)=>{let a=D,o=k,c=M,u=A,g=O;return d.value?d.value.requireAuth&&!m(E)?(s(),p(o,{key:1})):d.value.view.type===`iframe`?(s(),p(c,{key:2,tab:d.value},null,8,[`tab`])):d.value.view.type===`vnode`?(s(),p(r(d.value.view.vnode),{key:3})):d.value.view.type===`launch`?(s(),p(u,{key:4,name:`custom-${d.value.name}`,icon:d.value.view.icon||d.value.icon,title:d.value.view.title||d.value.title,description:d.value.view.description,actions:d.value.view.actions,onAction:n[0]||=e=>m(S).customTabAction(d.value.name,e)},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(s(),p(a,{key:5},{default:_(()=>[t(g,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:_(()=>[i(` Unknown tab type `+f(d.value.view),1)]),_:1})]),_:1})):(s(),p(a,{key:0},{default:_(()=>[h(`div`,N,[n[3]||=h(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),h(`p`,P,[n[1]||=i(` Tab `,-1),h(`code`,F,f(l.value),1),n[2]||=i(` not found `,-1)]),n[4]||=h(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),n[5]||=h(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{I as default};
@@ -1 +0,0 @@
1
- import{T as e,U as t,Z as n,dt as r,h as i}from"./vendor/json-editor-vue-mkw4apmc.js";import{k as a,r as o}from"#entry";var s=Object.assign(e({__name:`DataSchemaButton`,props:{getter:{type:Function}},setup(e){let s=o();return(o,c)=>{let l=a,u=n(`tooltip`);return r((t(),i(l,{title:`Generate Data Schema`,icon:`carbon:container-services`,border:!1,onClick:c[0]||=t=>s.value=e.getter()},null,512)),[[u,`Generate Data Schema`]])}}}),{__name:`DataSchemaButton`});export{s as t};