@nuxt/devtools-nightly 2.1.0-28994893.66d2743 → 2.1.1-29011967.946dd03

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 (79) hide show
  1. package/dist/chunks/module-main.mjs +27 -6787
  2. package/dist/chunks/vscode.mjs +0 -6
  3. package/dist/client/200.html +17 -17
  4. package/dist/client/404.html +17 -17
  5. package/dist/client/_nuxt/{analyze-build-bbw1j0bw.js → analyze-build-bbyx6d48.js} +1 -1
  6. package/dist/client/_nuxt/assets-ezhwtw4n.js +16 -0
  7. package/dist/client/_nuxt/builds/latest.json +1 -1
  8. package/dist/client/_nuxt/builds/meta/d9cd5dce-0076-49b4-a14f-897c8d40cbbd.json +1 -0
  9. package/dist/client/_nuxt/{nsxgpy6n.js → cco50vfc.js} +7 -7
  10. package/dist/client/_nuxt/{code-diff.vue-g3avq04d.js → code-diff.vue-esvcved6.js} +1 -1
  11. package/dist/client/_nuxt/{code-snippets.vue-pb1tfwrq.js → code-snippets.vue-n2k48x1d.js} +1 -1
  12. package/dist/client/_nuxt/{components-jj59wik2.js → components-hahb9omk.js} +1 -1
  13. package/dist/client/_nuxt/composable-item.vue-gy1krk37.js +1 -0
  14. package/dist/client/_nuxt/custom-_name_-e2csi8ll.js +1 -0
  15. package/dist/client/_nuxt/{data-schema-button.vue-ln7d6h5v.js → data-schema-button.vue-k9rqf4fn.js} +1 -1
  16. package/dist/client/_nuxt/{data-schema-drawer-jso1cuzu.js → data-schema-drawer-dr0t6jh1.js} +1 -1
  17. package/dist/client/_nuxt/{default-e26uk9yr.js → default-dfw02wxu.js} +1 -1
  18. package/dist/client/_nuxt/{error-404-fr7rmvj2.js → error-404-l30uf0y1.js} +1 -1
  19. package/dist/client/_nuxt/error-404.css-c4cbwrmc.css +1 -0
  20. package/dist/client/_nuxt/{error-500-jkjkadzh.js → error-500-dfm5cmo3.js} +1 -1
  21. package/dist/client/_nuxt/error-500.css-k70rrah0.css +1 -0
  22. package/dist/client/_nuxt/{error-b4db6oh7.js → error-g3n67c2a.js} +1 -1
  23. package/dist/client/_nuxt/{filepath-item.vue-g22bjf3y.js → filepath-item.vue-jywmf4hm.js} +1 -1
  24. package/dist/client/_nuxt/{full-l2nep87m.js → full-f6fuzge6.js} +1 -1
  25. package/dist/client/_nuxt/{help-fab.vue-g6r95f4a.js → help-fab.vue-gttgicih.js} +1 -1
  26. package/dist/client/_nuxt/{hooks-f19zeth2.js → hooks-zs4sbuc4.js} +1 -1
  27. package/dist/client/_nuxt/imports-gz28imf5.js +1 -0
  28. package/dist/client/_nuxt/{index-o5ob665o.js → index-lakcd7p2.js} +1 -1
  29. package/dist/client/_nuxt/{launch-page.vue-nu5zj08b.js → launch-page.vue-j86a1c7h.js} +1 -1
  30. package/dist/client/_nuxt/{modules-da941xpo.js → modules-k9nw297u.js} +1 -1
  31. package/dist/client/_nuxt/{nbadge-frtnezb1.js → nbadge-c64mcnik.js} +1 -1
  32. package/dist/client/_nuxt/{ncheckbox.vue-ig2h3zb6.js → ncheckbox.vue-l7pfajtr.js} +1 -1
  33. package/dist/client/_nuxt/{ndrawer.vue-k29v8tvh.js → ndrawer.vue-nswzsez9.js} +1 -1
  34. package/dist/client/_nuxt/{ndropdown.vue-e8lbf8tw.js → ndropdown.vue-c8hjhpbm.js} +1 -1
  35. package/dist/client/_nuxt/{nlink.vue-g66yr6dr.js → nlink.vue-htpi1lbr.js} +1 -1
  36. package/dist/client/_nuxt/{nnavbar.vue-ni09o3gk.js → nnavbar.vue-m0dzh334.js} +1 -1
  37. package/dist/client/_nuxt/{none-gde59ngk.js → none-fhj9bkje.js} +1 -1
  38. package/dist/client/_nuxt/{nsection-block-d3wydn3r.js → nsection-block-h34q4gf5.js} +1 -1
  39. package/dist/client/_nuxt/{nselect-tabs.vue-df8z3fh5.js → nselect-tabs.vue-jxzrd6co.js} +1 -1
  40. package/dist/client/_nuxt/{nselect.vue-oz295hvu.js → nselect.vue-gzbz5npv.js} +1 -1
  41. package/dist/client/_nuxt/{open-graph-nmk7o6qa.js → open-graph-bhigu87e.js} +2 -2
  42. package/dist/client/_nuxt/{overview-i50bin0e.js → overview-ec6pz8rg.js} +1 -1
  43. package/dist/client/_nuxt/{pages-keqq3uu3.js → pages-hy6wj1ma.js} +1 -1
  44. package/dist/client/_nuxt/{payload-bcazh2dd.js → payload-mopnfxha.js} +1 -1
  45. package/dist/client/_nuxt/pinia-bcs8katy.js +1 -0
  46. package/dist/client/_nuxt/{plugins-dp3odh07.js → plugins-lycdogtx.js} +1 -1
  47. package/dist/client/_nuxt/{render-tree-my7wf4ar.js → render-tree-mlbdtv01.js} +1 -1
  48. package/dist/client/_nuxt/{runtime-configs-htj9sk5u.js → runtime-configs-v3crvvwz.js} +1 -1
  49. package/dist/client/_nuxt/{server-discovery-o4v1gv64.js → server-discovery-itbbhivk.js} +1 -1
  50. package/dist/client/_nuxt/{server-route-inputs.vue-eoisa322.js → server-route-inputs.vue-ed7p149x.js} +1 -1
  51. package/dist/client/_nuxt/{server-routes-m3zy6o3n.js → server-routes-cmns8xyn.js} +3 -3
  52. package/dist/client/_nuxt/server-tasks-is4he0vd.js +1 -0
  53. package/dist/client/_nuxt/{settings-ocsdlkok.js → settings-jl3au3y5.js} +1 -1
  54. package/dist/client/_nuxt/{stacktrace-list.vue-fnbs7811.js → stacktrace-list.vue-pb6nvom9.js} +1 -1
  55. package/dist/client/_nuxt/{state-components-ir9sclpw.js → state-components-bg7emq01.js} +1 -1
  56. package/dist/client/_nuxt/state-editor.vue-lpd02u92.js +1 -0
  57. package/dist/client/_nuxt/{state-modules-iferti41.js → state-modules-mm258b3b.js} +1 -1
  58. package/dist/client/_nuxt/{storage-lc8pnxkn.js → storage-nfiv2p1f.js} +1 -1
  59. package/dist/client/_nuxt/{terminals-ngo4bh3b.js → terminals-ma41rn3h.js} +1 -1
  60. package/dist/client/_nuxt/{timeline-b5t9f6n1.js → timeline-imh2u0ad.js} +2 -2
  61. package/dist/client/_nuxt/{unocss-runtime-gc1hqonm.js → unocss-runtime-fzjefjlm.js} +1 -1
  62. package/dist/client/_nuxt/vendor/shiki-ej2em068.js +296 -0
  63. package/dist/client/_nuxt/vendor/{unocss-hjqyvvq7.js → unocss-jzxuon8q.js} +1 -1
  64. package/dist/client/_nuxt/{virtual-files-j3rhkqmq.js → virtual-files-koazqihs.js} +1 -1
  65. package/dist/client/_nuxt/{vue-devtools-lrln5ymm.js → vue-devtools-ill7tdvh.js} +1 -1
  66. package/dist/client/index.html +17 -17
  67. package/dist/module.json +2 -2
  68. package/package.json +31 -31
  69. package/dist/client/_nuxt/assets-bi7gxmg8.js +0 -16
  70. package/dist/client/_nuxt/builds/meta/e0e21221-5c8e-43a8-8f88-1af9f45bb798.json +0 -1
  71. package/dist/client/_nuxt/composable-item.vue-mk5d6ui8.js +0 -1
  72. package/dist/client/_nuxt/custom-_name_-dhzxcwaa.js +0 -1
  73. package/dist/client/_nuxt/error-404.css-fsdpg4tp.css +0 -1
  74. package/dist/client/_nuxt/error-500.css-bernuda7.css +0 -1
  75. package/dist/client/_nuxt/imports-cmpiiypv.js +0 -1
  76. package/dist/client/_nuxt/pinia-ljqe092p.js +0 -1
  77. package/dist/client/_nuxt/server-tasks-e6qb7ohx.js +0 -1
  78. package/dist/client/_nuxt/state-editor.vue-o2zmurug.js +0 -1
  79. package/dist/client/_nuxt/vendor/shiki-ian6uf3s.js +0 -282
@@ -31,12 +31,6 @@ import 'pkg-types';
31
31
  import 'node:assert';
32
32
  import 'node:v8';
33
33
  import 'node:util';
34
- import 'os';
35
- import 'path';
36
- import 'util';
37
- import 'stream';
38
- import 'events';
39
- import 'fs';
40
34
  import 'local-pkg';
41
35
  import 'magicast';
42
36
  import 'magicast/helpers';
@@ -3,27 +3,27 @@
3
3
  <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-jfo9gib8.css" crossorigin>
4
4
  <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
5
5
  <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-mhvipxpl.css" crossorigin>
6
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsxgpy6n.js">
6
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/cco50vfc.js">
7
7
  <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-npezbdce.js">
8
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-hjqyvvq7.js">
9
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-ian6uf3s.js">
8
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-jzxuon8q.js">
9
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-ej2em068.js">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-fvu08dbs.js">
11
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-e26uk9yr.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-l2nep87m.js">
13
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-gde59ngk.js">
11
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-dfw02wxu.js">
12
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-f6fuzge6.js">
13
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-fhj9bkje.js">
14
14
  <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-lvdc77tw.css">
15
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-jso1cuzu.js">
16
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-oz295hvu.js">
15
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-dr0t6jh1.js">
16
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-gzbz5npv.js">
17
17
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-l8xqfho0.js">
18
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-e8lbf8tw.js">
18
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-c8hjhpbm.js">
19
19
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-msaaoy71.js">
20
20
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-edufhzwa.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-k29v8tvh.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-nswzsez9.js">
22
22
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-i8ym98gu.js">
23
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-gc1hqonm.js">
24
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-fsdpg4tp.css">
25
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-fr7rmvj2.js">
26
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-bernuda7.css">
27
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-jkjkadzh.js">
28
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsxgpy6n.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1739693625876,false]</script>
29
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"e0e21221-5c8e-43a8-8f88-1af9f45bb798",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
23
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-fzjefjlm.js">
24
+ <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-c4cbwrmc.css">
25
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-l30uf0y1.js">
26
+ <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-k70rrah0.css">
27
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-dfm5cmo3.js">
28
+ <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/cco50vfc.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1740718045980,false]</script>
29
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"d9cd5dce-0076-49b4-a14f-897c8d40cbbd",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -3,27 +3,27 @@
3
3
  <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-jfo9gib8.css" crossorigin>
4
4
  <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
5
5
  <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-mhvipxpl.css" crossorigin>
6
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsxgpy6n.js">
6
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/cco50vfc.js">
7
7
  <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-npezbdce.js">
8
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-hjqyvvq7.js">
9
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-ian6uf3s.js">
8
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-jzxuon8q.js">
9
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-ej2em068.js">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-fvu08dbs.js">
11
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-e26uk9yr.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-l2nep87m.js">
13
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-gde59ngk.js">
11
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-dfw02wxu.js">
12
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-f6fuzge6.js">
13
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-fhj9bkje.js">
14
14
  <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-lvdc77tw.css">
15
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-jso1cuzu.js">
16
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-oz295hvu.js">
15
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-dr0t6jh1.js">
16
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-gzbz5npv.js">
17
17
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-l8xqfho0.js">
18
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-e8lbf8tw.js">
18
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-c8hjhpbm.js">
19
19
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-msaaoy71.js">
20
20
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-edufhzwa.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-k29v8tvh.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-nswzsez9.js">
22
22
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-i8ym98gu.js">
23
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-gc1hqonm.js">
24
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-fsdpg4tp.css">
25
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-fr7rmvj2.js">
26
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-bernuda7.css">
27
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-jkjkadzh.js">
28
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsxgpy6n.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1739693625877,false]</script>
29
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"e0e21221-5c8e-43a8-8f88-1af9f45bb798",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
23
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-fzjefjlm.js">
24
+ <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-c4cbwrmc.css">
25
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-l30uf0y1.js">
26
+ <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-k70rrah0.css">
27
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-dfm5cmo3.js">
28
+ <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/cco50vfc.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1740718045980,false]</script>
29
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"d9cd5dce-0076-49b4-a14f-897c8d40cbbd",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1 +1 @@
1
- import{k as P,l as J,r as S,m as R,_ as U,n as Q,o as h,p as ee,q as ne,s as te,v as le,w as ie,x as oe,y as k,z as re,A as ue,B as se,h as ae}from"./nsxgpy6n.js";import{_ as de}from"./filepath-item.vue-g22bjf3y.js";import{p as j,q as V,f as F,U as i,W as u,X as e,F as p,ae as L,a0 as E,a8 as v,Z as g,u as x,a3 as d,a2 as a,a9 as f,aa as D,ab as I,P as B}from"./vendor/json-editor-vue-npezbdce.js";import{_ as me}from"./ncode-block.vue-msaaoy71.js";import{_ as pe}from"./ncheckbox.vue-ig2h3zb6.js";import{_ as ve}from"./help-fab.vue-g6r95f4a.js";import"./vendor/unocss-hjqyvvq7.js";import"./vendor/shiki-ian6uf3s.js";import"./client-edufhzwa.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ye={flex:"~ wrap","w-full":""},ce=["onClick"],xe={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},be={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge="/__nuxt_devtools__/client",_e=j({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(N){const y=N,w=`${J().app.baseURL.replace(ge,"/")}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),c=V(()=>{const l=[{name:"Overview",id:"overview"}];return y.current.features.bundleClient&&l.push({name:"Client Bundle",id:"bundle-client"}),y.current.features.bundleNitro&&l.push({name:"Nitro Bundle",id:"bundle-nitro"}),y.current.features.viteInspect&&l.push({name:"Vite Inspect",id:"vite-inspect"}),l}),o=F(c.value[0]);function z(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}function m(l){return l<1024?`${l}B`:l<1024*1024?`${(l/1024).toFixed(1)}KB`:l<1024*1024*1024?`${(l/1024/1024).toFixed(1)}MB`:`${(l/1024/1024/1024).toFixed(1)}GB`}async function T(l){return S.clearAnalyzeBuilds(await R(),[l])}return(l,n)=>{const A=de,C=U;return i(),u("div",fe,[e("div",ye,[(i(!0),u(p,null,L(c.value,(r,t)=>(i(),u("button",{key:t,px4:"",py2:"",border:"r base",hover:"bg-active",class:E(r.id===o.value.id?"":"border-b"),onClick:$=>o.value=r},[e("div",{class:E(r.id===o.value.id?"":"op30")},v(r.name),3)],10,ce))),128)),n[1]||(n[1]=e("div",{border:"b base","flex-auto":""},null,-1))]),o.value.id==="overview"?(i(),u("div",xe,[n[15]||(n[15]=e("div",{"flex-auto":""},null,-1)),e("div",be,[n[10]||(n[10]=e("div",{"i-carbon-commit":"","text-xl":""},null,-1)),e("div",null,[n[2]||(n[2]=e("div",{"text-sm":"",op50:""}," Name ",-1)),e("div",null,v(l.current.name),1)]),n[11]||(n[11]=e("div",{"i-carbon-time":"","text-xl":""},null,-1)),e("div",null,[n[3]||(n[3]=e("div",{"text-sm":"",op50:""}," Build duration ",-1)),e("div",null,v(z(l.current)),1)]),l.current.size?.clientBundle?(i(),u(p,{key:0},[n[5]||(n[5]=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1)),e("div",null,[n[4]||(n[4]=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1)),e("div",null,v(m(l.current.size.clientBundle)),1)])],64)):g("",!0),l.current.size?.nitroBundle?(i(),u(p,{key:1},[n[7]||(n[7]=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1)),e("div",null,[n[6]||(n[6]=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1)),e("div",null,v(m(l.current.size.nitroBundle)),1)])],64)):g("",!0),n[12]||(n[12]=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1)),e("div",null,[n[8]||(n[8]=e("div",{"text-sm":"",op50:""}," Built ",-1)),e("div",null,v(x(P)(new Date(l.current.endTime))),1)]),n[13]||(n[13]=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1)),e("div",null,[n[9]||(n[9]=e("div",{"text-sm":"",op50:""}," Report Path ",-1)),d(A,{filepath:l.current.analyzeDir},null,8,["filepath"])])]),n[16]||(n[16]=e("div",{"flex-auto":""},null,-1)),d(C,{n:"rose",icon:"carbon-delete",onClick:n[0]||(n[0]=r=>T(l.current.name))},{default:a(()=>n[14]||(n[14]=[f(" Delete this report ")])),_:1})])):g("",!0),n._lazyshow1||o.value.id==="bundle-client"?(n._lazyshow1=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="bundle-client"]])],64)):g("v-show-if",!0),n._lazyshow2||o.value.id==="bundle-nitro"?(n._lazyshow2=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="bundle-nitro"]])],64)):g("v-show-if",!0),n._lazyshow3||o.value.id==="vite-inspect"?(n._lazyshow3=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="vite-inspect"]])],64)):g("v-show-if",!0)])}}}),we={class:"markdown-body"},ze={__name:"analyze-build",setup(N,{expose:y}){return y({frontmatter:{}}),(w,c)=>(i(),u("div",we,c[0]||(c[0]=[e("h1",null,"Build Analyze",-1),e("p",null,[f("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 "),e("code",null,"nuxt build --analyze"),f(" and present the output data directly in DevTools for easy browsing and comparing.")],-1)])))}},$e={flex:"~ col"},Be=["onClick"],Ce={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},ke={flex:"~ items-center justify-center wrap",p4:""},Ne={flex:"~ col gap-1","w-250":"",p4:""},Te={flex:"~ gap-3",mt2:"","justify-end":""},Ue=j({__name:"analyze-build",setup(N){const y=Q(),_=h(),w=ee(),c=ne("analyze-build:slug",""),o=V(()=>_.value?.builds.find(r=>r.slug===c.value)??_.value?.builds[0]),z=F(!1),m=F(""),T=V(()=>_.value?.builds.some(r=>r.name===m.value.trim()));async function l(){m.value=await S.generateAnalyzeBuildName(),await y.start()&&(oe("analyze-build:start"),k.value={name:m.value,processId:await S.startAnalyzeBuild(await R(),m.value)},z.value&&C())}const n=te();function A(r){return`${((r.endTime-r.startTime)/1e3).toFixed(1)}s`}function C(){k.value?.processId&&(n.value=k.value.processId,w.push("/modules/terminals"))}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:l}]),(r,t)=>{const $=U,G=_e,q=ae,O=ie,W=re,Z=ue,H=me,K=pe,M=se,X=ze,Y=ve;return i(),u(p,null,[d(O,{"left-size":30},{left:a(()=>[e("div",$e,[(i(!0),u(p,null,L(x(_)?.builds,s=>(i(),u(p,{key:s.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:E(s.slug===o.value?.slug?"text-primary bg-active":""),onClick:b=>c.value=s.slug},[e("code",null,v(s.name),1),e("div",Ce,[t[4]||(t[4]=e("div",{"i-carbon-time":""},null,-1)),e("span",null,v(A(s)),1),t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("span",null,v(x(P)(new Date(s.endTime))),1)])],10,Be),t[6]||(t[6]=e("div",{"x-divider":""},null,-1))],64))),128)),e("div",ke,[x(k)?(i(),B($,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:t[1]||(t[1]=s=>C())},{default:a(()=>t[8]||(t[8]=[f(" Building... ")])),_:1})):(i(),B($,{key:0,n:"primary",icon:"carbon-edge-node",onClick:t[0]||(t[0]=s=>l())},{default:a(()=>t[7]||(t[7]=[f(" Start a new build ")])),_:1}))])])]),right:a(()=>[o.value?(i(),B(G,{key:0,current:o.value},null,8,["current"])):(i(),B(q,{key:1}))]),_:1}),d(x(y),null,{default:a(({resolve:s})=>[d(M,{"model-value":!0,onClose:b=>s(!1)},{default:a(()=>[e("div",Ne,[t[13]||(t[13]=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1)),t[14]||(t[14]=e("p",{op50:""}," Enter the name of the build: ",-1)),d(W,{modelValue:m.value,"onUpdate:modelValue":t[2]||(t[2]=b=>m.value=b),placeholder:"Build name"},null,8,["modelValue"]),T.value?(i(),B(Z,{key:0,"n-orange":""},{default:a(()=>t[9]||(t[9]=[f(" A build with the same name already exists, continue would overrides the previous build result. ")])),_:1})):g("",!0),t[15]||(t[15]=e("div",{my3:"","x-divider":""},null,-1)),t[16]||(t[16]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),d(H,{code:`npx nuxi analyze --no-serve --name=${m.value}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),d(K,{modelValue:z.value,"onUpdate:modelValue":t[3]||(t[3]=b=>z.value=b),mt2:"",n:"primary"},{default:a(()=>t[10]||(t[10]=[f(" Navigate to terminal ")])),_:1},8,["modelValue"]),e("div",Te,[d($,{onClick:b=>s(!1)},{default:a(()=>t[11]||(t[11]=[f(" Cancel ")])),_:2},1032,["onClick"]),d($,{n:"solid primary",onClick:b=>s(!0)},{default:a(()=>t[12]||(t[12]=[f(" Start ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),d(Y,null,{default:a(()=>[d(X)]),_:1})],64)}}});export{Ue as default};
1
+ import{k as P,l as J,r as S,m as R,_ as U,n as Q,o as h,p as ee,q as ne,s as te,v as le,w as ie,x as oe,y as k,z as re,A as ue,B as se,h as ae}from"./cco50vfc.js";import{_ as de}from"./filepath-item.vue-jywmf4hm.js";import{p as j,q as V,f as F,U as i,W as u,X as e,F as p,ae as L,a0 as E,a8 as v,Z as g,u as x,a3 as d,a2 as a,a9 as f,aa as D,ab as I,P as B}from"./vendor/json-editor-vue-npezbdce.js";import{_ as me}from"./ncode-block.vue-msaaoy71.js";import{_ as pe}from"./ncheckbox.vue-l7pfajtr.js";import{_ as ve}from"./help-fab.vue-gttgicih.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./client-edufhzwa.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ye={flex:"~ wrap","w-full":""},ce=["onClick"],xe={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},be={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge="/__nuxt_devtools__/client",_e=j({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(N){const y=N,w=`${J().app.baseURL.replace(ge,"/")}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),c=V(()=>{const l=[{name:"Overview",id:"overview"}];return y.current.features.bundleClient&&l.push({name:"Client Bundle",id:"bundle-client"}),y.current.features.bundleNitro&&l.push({name:"Nitro Bundle",id:"bundle-nitro"}),y.current.features.viteInspect&&l.push({name:"Vite Inspect",id:"vite-inspect"}),l}),o=F(c.value[0]);function z(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}function m(l){return l<1024?`${l}B`:l<1024*1024?`${(l/1024).toFixed(1)}KB`:l<1024*1024*1024?`${(l/1024/1024).toFixed(1)}MB`:`${(l/1024/1024/1024).toFixed(1)}GB`}async function T(l){return S.clearAnalyzeBuilds(await R(),[l])}return(l,n)=>{const A=de,C=U;return i(),u("div",fe,[e("div",ye,[(i(!0),u(p,null,L(c.value,(r,t)=>(i(),u("button",{key:t,px4:"",py2:"",border:"r base",hover:"bg-active",class:E(r.id===o.value.id?"":"border-b"),onClick:$=>o.value=r},[e("div",{class:E(r.id===o.value.id?"":"op30")},v(r.name),3)],10,ce))),128)),n[1]||(n[1]=e("div",{border:"b base","flex-auto":""},null,-1))]),o.value.id==="overview"?(i(),u("div",xe,[n[15]||(n[15]=e("div",{"flex-auto":""},null,-1)),e("div",be,[n[10]||(n[10]=e("div",{"i-carbon-commit":"","text-xl":""},null,-1)),e("div",null,[n[2]||(n[2]=e("div",{"text-sm":"",op50:""}," Name ",-1)),e("div",null,v(l.current.name),1)]),n[11]||(n[11]=e("div",{"i-carbon-time":"","text-xl":""},null,-1)),e("div",null,[n[3]||(n[3]=e("div",{"text-sm":"",op50:""}," Build duration ",-1)),e("div",null,v(z(l.current)),1)]),l.current.size?.clientBundle?(i(),u(p,{key:0},[n[5]||(n[5]=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1)),e("div",null,[n[4]||(n[4]=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1)),e("div",null,v(m(l.current.size.clientBundle)),1)])],64)):g("",!0),l.current.size?.nitroBundle?(i(),u(p,{key:1},[n[7]||(n[7]=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1)),e("div",null,[n[6]||(n[6]=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1)),e("div",null,v(m(l.current.size.nitroBundle)),1)])],64)):g("",!0),n[12]||(n[12]=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1)),e("div",null,[n[8]||(n[8]=e("div",{"text-sm":"",op50:""}," Built ",-1)),e("div",null,v(x(P)(new Date(l.current.endTime))),1)]),n[13]||(n[13]=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1)),e("div",null,[n[9]||(n[9]=e("div",{"text-sm":"",op50:""}," Report Path ",-1)),d(A,{filepath:l.current.analyzeDir},null,8,["filepath"])])]),n[16]||(n[16]=e("div",{"flex-auto":""},null,-1)),d(C,{n:"rose",icon:"carbon-delete",onClick:n[0]||(n[0]=r=>T(l.current.name))},{default:a(()=>n[14]||(n[14]=[f(" Delete this report ")])),_:1})])):g("",!0),n._lazyshow1||o.value.id==="bundle-client"?(n._lazyshow1=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="bundle-client"]])],64)):g("v-show-if",!0),n._lazyshow2||o.value.id==="bundle-nitro"?(n._lazyshow2=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="bundle-nitro"]])],64)):g("v-show-if",!0),n._lazyshow3||o.value.id==="vite-inspect"?(n._lazyshow3=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="vite-inspect"]])],64)):g("v-show-if",!0)])}}}),we={class:"markdown-body"},ze={__name:"analyze-build",setup(N,{expose:y}){return y({frontmatter:{}}),(w,c)=>(i(),u("div",we,c[0]||(c[0]=[e("h1",null,"Build Analyze",-1),e("p",null,[f("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 "),e("code",null,"nuxt build --analyze"),f(" and present the output data directly in DevTools for easy browsing and comparing.")],-1)])))}},$e={flex:"~ col"},Be=["onClick"],Ce={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},ke={flex:"~ items-center justify-center wrap",p4:""},Ne={flex:"~ col gap-1","w-250":"",p4:""},Te={flex:"~ gap-3",mt2:"","justify-end":""},Ue=j({__name:"analyze-build",setup(N){const y=Q(),_=h(),w=ee(),c=ne("analyze-build:slug",""),o=V(()=>_.value?.builds.find(r=>r.slug===c.value)??_.value?.builds[0]),z=F(!1),m=F(""),T=V(()=>_.value?.builds.some(r=>r.name===m.value.trim()));async function l(){m.value=await S.generateAnalyzeBuildName(),await y.start()&&(oe("analyze-build:start"),k.value={name:m.value,processId:await S.startAnalyzeBuild(await R(),m.value)},z.value&&C())}const n=te();function A(r){return`${((r.endTime-r.startTime)/1e3).toFixed(1)}s`}function C(){k.value?.processId&&(n.value=k.value.processId,w.push("/modules/terminals"))}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:l}]),(r,t)=>{const $=U,G=_e,q=ae,O=ie,W=re,Z=ue,H=me,K=pe,M=se,X=ze,Y=ve;return i(),u(p,null,[d(O,{"left-size":30},{left:a(()=>[e("div",$e,[(i(!0),u(p,null,L(x(_)?.builds,s=>(i(),u(p,{key:s.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:E(s.slug===o.value?.slug?"text-primary bg-active":""),onClick:b=>c.value=s.slug},[e("code",null,v(s.name),1),e("div",Ce,[t[4]||(t[4]=e("div",{"i-carbon-time":""},null,-1)),e("span",null,v(A(s)),1),t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("span",null,v(x(P)(new Date(s.endTime))),1)])],10,Be),t[6]||(t[6]=e("div",{"x-divider":""},null,-1))],64))),128)),e("div",ke,[x(k)?(i(),B($,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:t[1]||(t[1]=s=>C())},{default:a(()=>t[8]||(t[8]=[f(" Building... ")])),_:1})):(i(),B($,{key:0,n:"primary",icon:"carbon-edge-node",onClick:t[0]||(t[0]=s=>l())},{default:a(()=>t[7]||(t[7]=[f(" Start a new build ")])),_:1}))])])]),right:a(()=>[o.value?(i(),B(G,{key:0,current:o.value},null,8,["current"])):(i(),B(q,{key:1}))]),_:1}),d(x(y),null,{default:a(({resolve:s})=>[d(M,{"model-value":!0,onClose:b=>s(!1)},{default:a(()=>[e("div",Ne,[t[13]||(t[13]=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1)),t[14]||(t[14]=e("p",{op50:""}," Enter the name of the build: ",-1)),d(W,{modelValue:m.value,"onUpdate:modelValue":t[2]||(t[2]=b=>m.value=b),placeholder:"Build name"},null,8,["modelValue"]),T.value?(i(),B(Z,{key:0,"n-orange":""},{default:a(()=>t[9]||(t[9]=[f(" A build with the same name already exists, continue would overrides the previous build result. ")])),_:1})):g("",!0),t[15]||(t[15]=e("div",{my3:"","x-divider":""},null,-1)),t[16]||(t[16]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),d(H,{code:`npx nuxi analyze --no-serve --name=${m.value}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),d(K,{modelValue:z.value,"onUpdate:modelValue":t[3]||(t[3]=b=>z.value=b),mt2:"",n:"primary"},{default:a(()=>t[10]||(t[10]=[f(" Navigate to terminal ")])),_:1},8,["modelValue"]),e("div",Te,[d($,{onClick:b=>s(!1)},{default:a(()=>t[11]||(t[11]=[f(" Cancel ")])),_:2},1032,["onClick"]),d($,{n:"solid primary",onClick:b=>s(!0)},{default:a(()=>t[12]||(t[12]=[f(" Start ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),d(Y,null,{default:a(()=>[d(X)]),_:1})],64)}}});export{Ue as default};
@@ -0,0 +1,16 @@
1
+ import{C as oe,D as Y,E as fe,F as ve,x as he,r as W,m as X,G as R,_ as se,H as ie,z as re,I as ge,c as ae,J as ye,a as we,K as be,L as _e,B as xe,M as $e,N as ke,O as Ce,g as Ae,P as Be}from"./cco50vfc.js";import{_ as Pe}from"./ncheckbox.vue-l7pfajtr.js";import{_ as Ve}from"./ndropdown.vue-c8hjhpbm.js";import{_ as De}from"./nnavbar.vue-m0dzh334.js";import{p as Z,f as T,ag as le,W as f,aa as J,a3 as h,X as i,a9 as j,F as L,ae as G,P as N,a2 as A,Z as I,a0 as Q,u as w,U as a,q as z,$ as ue,a8 as S,Y as Fe,A as Ne,a1 as je,an as Se}from"./vendor/json-editor-vue-npezbdce.js";import{_ as Ue}from"./nsection-block-h34q4gf5.js";import{_ as Ie}from"./filepath-item.vue-jywmf4hm.js";import{_ as ze}from"./code-snippets.vue-n2k48x1d.js";import{_ as Ee}from"./ndrawer.vue-nswzsez9.js";import{D as Te}from"./constants-b32h69zq.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./nicon-title.vue-j1ceohu1.js";import"./ncode-block.vue-msaaoy71.js";import"./client-edufhzwa.js";const Me={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Oe={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},Le={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},Re={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Ke={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Je=["src"],qe={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ze=Z({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(b){const o=b,e=oe(o,"modelValue"),s=T(),n=T([]);function l(u){s.value=u.target,e.value=!0}function r(u){u.target===s.value&&(e.value=!1)}function y(u){u.preventDefault()}function v(u){u.preventDefault(),_(u.dataTransfer.files)}function _(u){const c=Array.from(u||[]);if(c.length){const $=[],x=n.value.map(p=>p.name);for(const p of c)if(x.includes(p.name)){let B=1;const[P,M]=p.name.split(".");for(;x.includes(`${P} (${B}).${M}`);)B++;const K=`${P}-${B}.${M}`,m=new Blob([p],{type:p.type}),t=new File([m],K,{lastModified:Date.now()});$.push(t),x.push(K)}else p.type===""&&R({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),$.push(p);n.value=[...n.value,...$]}}async function D(){if(fe.value||ve.value)return;he("assets:upload");const u=[];for(const c of n.value){const $=new FileReader;$.readAsDataURL(c);const p=(await new Promise(B=>{$.onload=()=>B($.result)})).split(";base64,").pop();u.push({path:c.name,encoding:"base64",content:p})}await W.writeStaticAssets(await X(),[...u],o.folder).then(()=>{g(),R({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(c=>{g(),R({message:`Error uploading files: ${c?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),e.value=!1}function O(u){n.value?.splice(u,1)}function k(u){return URL.createObjectURL(u)}function C(u,c){const[$,x]=u.name.split("."),p=c.replace(/\.\w+$/,""),B=`${p}.${x}`;return p.length===0?(alert("File name must be at least 1 characters long"),$):(Object.defineProperty(u,"name",{value:B,writable:!1}),n.value.splice(n.value.indexOf(u),1,u),u)}function d(){n.value=[]}function g(){e.value=!1,d()}return Y("dragenter",l),Y("dragleave",r),Y("dragover",y),Y("drop",v),(u,c)=>{const $=se,x=ie,p=re,B=le("tooltip");return a(),f("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Q(w(e)?"opacity-100 visible":"opacity-0 invisible")},[J(h($,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:g},null,512),[[B,"Close",void 0,{"bottom-end":!0}]]),n.value?.length?(a(),f("div",Le,[c[4]||(c[4]=i("div",{px6:"",py6:""},[i("h1",{"text-2xl":""}," Upload "),i("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1)),i("div",Re,[(a(!0),f(L,null,G(n.value,(P,M)=>(a(),f("div",{key:P.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[i("div",Ke,[i("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:k(P)},null,8,Je)]),i("div",qe,[h(p,{n:"xs","h-full":"","flex-auto":"","model-value":P.name,"onUpdate:modelValue":K=>C(P,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),h($,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>O(M)},null,8,["onClick"])])]))),128))]),i("div",Ge,[n.value.length?(a(),N($,{key:0,n:"red",onClick:d},{default:A(()=>[h(x,{icon:"carbon-clean"}),c[2]||(c[2]=j(" Clear "))]),_:1})):I("",!0),h($,{disabled:!n.value.length,n:"primary solid",onClick:D},{default:A(()=>[h(x,{icon:"carbon-cloud-upload"}),c[3]||(c[3]=j(" Upload "))]),_:1},8,["disabled"])])])):(a(),f("div",Me,[i("label",Oe,[h(x,{icon:"carbon-cloud-upload","mr-2":""}),c[1]||(c[1]=j(" Drop files here or click to select "))]),i("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:c[0]||(c[0]=P=>_(P.target.files))},null,32)]))],2)}}});function ne(b){if(typeof b=="string")return`'${b}'`;const o=new We;return o.dispatch(b),o.serialized}const We=function(){class b{serialized="";#e=new Map;write(e){this.serialized+=e}dispatch(e){return this["$"+(e===null?"null":typeof e)].call(this,e)}compare(e,s){return typeof e=="string"&&typeof s=="string"?e.localeCompare(s):ne(e).localeCompare(ne(s))}objectEntries(e,s){const n=Array.from(s).sort((l,r)=>this.compare(l[0],r[0]));this.write(`${e}{`);for(let l=0;l<n.length;l++){const[r,y]=n[l];this.write(`${r}:`),this.dispatch(y),l<n.length-1&&this.write(",")}this.write("}")}$string(e){this.write("'"+e+"'")}$symbol(e){this.write(e.toString())}$bigint(e){this.write(`${e}n`)}$object(e){const s=Object.prototype.toString.call(e);let n="";const l=s.length;l<10?n="unknown:["+s+"]":n=s.slice(8,l-1);let r=null;if((r=this.#e.get(e))===void 0)this.#e.set(e,this.#e.size);else return this.write(`#${r}`);if(n!=="Object"&&n!=="Function"&&n!=="AsyncFunction"){const y=this["$"+n];if(y)y.call(this,e);else{if(typeof e?.entries=="function")return this.objectEntries(n,e.entries());throw new Error(`Cannot serialize ${n}`)}}else{const y=e.constructor.name,v=y==="Object"?"":y;return typeof e.toJSON=="function"?(v&&this.write(v),this.$object(e.toJSON())):this.objectEntries(v,Object.entries(e))}}$function(e){const s=Function.prototype.toString.call(e);if(s.slice(-15)==="[native code] }")return this.write(`${e.name||""}()[native]`);this.write(`${e.name}(${e.length})${s.replace(/\s*\n\s*/g,"")}`)}$Array(e){this.write("[");for(let s=0;s<e.length;s++)this.dispatch(e[s]),s<e.length-1&&this.write(",");this.write("]")}$Date(e){return this.write(`Date(${e.toJSON()})`)}$ArrayBuffer(e){this.write(`ArrayBuffer[${Array.prototype.slice.call(new Uint8Array(e)).join(",")}]`)}$Set(e){this.write("Set"),this.$Array(Array.from(e).sort((s,n)=>this.compare(s,n)))}$Map(e){return this.objectEntries("Map",e.entries())}}for(const o of["boolean","number","null","undefined"])b.prototype["$"+o]=function(e){return this.write(e)};for(const o of["Error","RegExp","URL"])b.prototype["$"+o]=function(e){return this.write(`${o}(${e.toString()})`)};for(const o of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])b.prototype["$"+o]=function(e){this.write(`${o}[${Array.prototype.slice.call(e).join(",")}]`)};for(const o of["BigInt64Array","BigUint64Array"])b.prototype["$"+o]=function(e){this.write(`${o}[${Array.prototype.slice.call(e).map(s=>`${s}n`).join(",")}]`)};return b}(),Xe=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],He=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",q=[];class Qe{_data=new H;_hash=new H([...Xe]);_nDataBytes=0;_minBufferSize=0;finalize(o){o&&this._append(o);const e=this._nDataBytes*8,s=this._data.sigBytes*8;return this._data.words[s>>>5]|=128<<24-s%32,this._data.words[(s+64>>>9<<4)+14]=Math.floor(e/4294967296),this._data.words[(s+64>>>9<<4)+15]=e,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(o,e){const s=this._hash.words;let n=s[0],l=s[1],r=s[2],y=s[3],v=s[4],_=s[5],D=s[6],O=s[7];for(let k=0;k<64;k++){if(k<16)q[k]=o[e+k]|0;else{const x=q[k-15],p=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,B=q[k-2],P=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;q[k]=p+q[k-7]+P+q[k-16]}const C=v&_^~v&D,d=n&l^n&r^l&r,g=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),u=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),c=O+u+C+He[k]+q[k],$=g+d;O=D,D=_,_=v,v=y+c|0,y=r,r=l,l=n,n=c+$|0}s[0]=s[0]+n|0,s[1]=s[1]+l|0,s[2]=s[2]+r|0,s[3]=s[3]+y|0,s[4]=s[4]+v|0,s[5]=s[5]+_|0,s[6]=s[6]+D|0,s[7]=s[7]+O|0}_append(o){typeof o=="string"&&(o=H.fromUtf8(o)),this._data.concat(o),this._nDataBytes+=o.sigBytes}_process(o){let e,s=this._data.sigBytes/64;o?s=Math.ceil(s):s=Math.max((s|0)-this._minBufferSize,0);const n=s*16,l=Math.min(n*4,this._data.sigBytes);if(n){for(let r=0;r<n;r+=16)this._doProcessBlock(this._data.words,r);e=this._data.words.splice(0,n),this._data.sigBytes-=l}return new H(e,l)}}class H{words;sigBytes;constructor(o,e){o=this.words=o||[],this.sigBytes=e===void 0?o.length*4:e}static fromUtf8(o){const e=unescape(encodeURIComponent(o)),s=e.length,n=[];for(let l=0;l<s;l++)n[l>>>2]|=(e.charCodeAt(l)&255)<<24-l%4*8;return new H(n,s)}toBase64(){const o=[];for(let e=0;e<this.sigBytes;e+=3){const s=this.words[e>>>2]>>>24-e%4*8&255,n=this.words[e+1>>>2]>>>24-(e+1)%4*8&255,l=this.words[e+2>>>2]>>>24-(e+2)%4*8&255,r=s<<16|n<<8|l;for(let y=0;y<4&&e*8+y*6<this.sigBytes*8;y++)o.push(Ye.charAt(r>>>6*(3-y)&63))}return o.join("")}concat(o){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let e=0;e<o.sigBytes;e++){const s=o.words[e>>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=s<<24-(this.sigBytes+e)%4*8}else for(let e=0;e<o.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=o.words[e>>>2];this.sigBytes+=o.sigBytes}}function et(b){return new Qe().finalize(b).toBase64()}function tt(b){return et(ne(b))}const nt=Z({__name:"AssetFontPreview",props:{asset:{}},setup(b){const o=b,e=z(()=>`devtools-assets-${tt(o.asset)}`);return ge(z(()=>`
2
+ @font-face {
3
+ font-family: '${e.value}';
4
+ src: url('${o.asset.publicPath}');
5
+ }
6
+ `)),(s,n)=>(a(),f("div",{"of-hidden":"",style:ue({fontFamily:`'${e.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))}}),ot={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},st=["src"],it={key:2,"i-carbon-document":"","text-3xl":"",op20:""},lt={key:3,"w-full":"","self-start":"",p4:""},at=["textContent"],rt={key:4},ut=["src","autoplay","controls"],dt={key:5},ct={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},pt=["src"],mt={key:6,"i-carbon-help":"","text-3xl":"",op20:""},de=Z({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(b){return(o,e)=>{const s=nt;return a(),f("div",ot,[o.asset.type==="image"?(a(),f("img",{key:0,src:o.asset.publicPath},null,8,st)):o.asset.type==="font"?(a(),N(s,{key:o.asset.publicPath,asset:o.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):o.asset.type==="text"&&!o.textContent?(a(),f("div",it)):o.asset.type==="text"&&o.textContent?(a(),f("div",lt,[i("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:S(o.textContent)},null,8,at)])):o.asset.type==="video"?(a(),f("div",rt,[i("video",{src:o.asset.publicPath,autoplay:o.detail,controls:o.detail},null,8,ut)])):o.asset.type==="audio"?(a(),f("div",dt,[o.detail?(a(),f("audio",{key:1,src:o.asset.publicPath,controls:""},null,8,pt)):(a(),f("div",ct))])):(a(),f("div",mt))])}}}),ft={relative:"",flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},vt={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},ht=Z({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(b){const o=b,e=z(()=>o.folder&&o.asset.path.startsWith(o.folder)?o.asset.path.slice(o.folder.length):o.asset.path);return(s,n)=>{const l=ie,r=de;return a(),f("button",ft,[s.asset.layer?(a(),N(l,{key:0,icon:"i-carbon-layers",absolute:"","right-4":"","top-4":"","bg-primary":""})):I("",!0),h(r,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:s.asset},null,8,["asset"]),i("div",vt,S(e.value),1)])}}}),ce=Z({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(b,{emit:o}){const e=b,n=oe(e,"modelValue",o,{passive:!0}),l=z(()=>e.item?.children?.length),r=T(!0),y=z(()=>l.value?"i-carbon-folder":e.item.type==="image"?"i-carbon-image":e.item.type==="video"?"i-carbon-video":e.item.type==="audio"?"i-carbon-volume-up":e.item.type==="font"?"i-carbon-text-small-caps":e.item.type==="text"?"i-carbon-document":e.item.type==="json"?"i-carbon-json":"i-carbon-document-blank");return(v,_)=>{const D=ie,O=ce;return a(),f("div",null,[i("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:ue({paddingLeft:`calc(1rem + ${v.index*1.5}em)`}),class:Q({"bg-active":!l.value&&w(n)?.filePath===v.item?.filePath}),border:"b base",onClick:_[0]||(_[0]=k=>l.value?r.value=!r.value:n.value=v.item)},[i("div",{class:Q(y.value)},null,2),i("span",{class:Q({"flex items-center":l.value}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},[j(S(v.item.path)+" ",1),v.item.layer?(a(),N(D,{key:0,icon:"i-carbon-layers","bg-primary":""})):I("",!0)],2),l.value?(a(),N(D,{key:0,icon:"carbon:chevron-right","transform-rotate":r.value?90:0,transition:""},null,8,["transform-rotate"])):I("",!0)],6),r.value?Fe(v.$slots,"default",{key:0},()=>[(a(!0),f(L,null,G(v.item?.children,k=>(a(),N(O,{key:k.filepath,modelValue:w(n),"onUpdate:modelValue":_[1]||(_[1]=C=>Ne(n)?n.value=C:null),item:k,index:v.index+1},null,8,["modelValue","item","index"]))),128))]):I("",!0)])}}}),gt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},yt={flex:"~","items-center":"","justify-center":""},wt={"max-w-full":"","w-full":"","table-fixed":""},bt={flex:"~ gap-1","w-full":"","items-center":""},_t={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},xt={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},$t={capitalize:""},kt={key:0},Ct={op70:""},At={flex:"~ gap2 wrap"},Bt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Pt={flex:"~ gap2 wrap justify-center"},Vt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Dt={flex:"~ gap2 wrap justify-center"},Ft={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},Nt={flex:"","justify-end":"","gap-4":""},jt=Z({__name:"AssetDetails",props:{modelValue:{}},setup(b,{emit:o}){const n=oe(b,"modelValue",o,{passive:!0}),l=ae(async()=>{if(n.value.type==="image")return W.getImageMeta(await X(),n.value.filePath)}),r=T(!1),y=T(),v=T(0),_=ae(async()=>{if(n.value.type!=="text")return;v.value;const m=await W.getTextAssetContent(await X(),n.value.filePath);return y.value=m,m});async function D(){if(_.value!==y.value)try{await W.writeStaticAssets(await X(),[{path:n.value.path,content:y.value,override:!0}],""),r.value=!1,v.value++,R({message:"Updated",icon:"i-carbon-checkmark",classes:"text-green"})}catch(m){console.error(m),R({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const O=ye(),k=z(()=>(O.value?._installedModules||[]).some(t=>t.meta?.name==="@nuxt/image"||t.meta?.name==="@nuxt/image-edge"||t.meta?.name==="@nuxt/image-nightly")),C=z(()=>{const m=[];if(n.value.type==="image"){const t=l.value?.width?`
7
+ width="${l.value.width}"
8
+ height="${l.value.height}" `:" ";return m.push({lang:"vue-html",code:`<img${t}
9
+ src="${n.value.publicPath}"
10
+ />`,name:"Plain Image"}),k.value&&m.push({lang:"vue-html",code:`<NuxtImg${t}
11
+ src="${n.value.publicPath}"
12
+ />`,name:"Nuxt Img",docs:"https://image.nuxt.com/usage/nuxt-img"},{lang:"vue-html",code:`<NuxtPicture${t}
13
+ src="${n.value.publicPath}"
14
+ />`,name:"Nuxt Picture",docs:"https://image.nuxt.com/usage/nuxt-picture"}),m}return m.push({lang:"html",code:`<a download href="${n.value.publicPath}">
15
+ Download ${n.value.path.split("/").slice(-1)[0]}
16
+ </a>`,name:"Download link"}),m}),d=we(),g=be(),u=_e(()=>n.value.mtime),c=z(()=>{const m=n.value.size;return m<1024?`${m} B`:m<1024*1024?`${(m/1024).toFixed(2)} KB`:`${(m/1024/1024).toFixed(2)} MB`}),$=z(()=>{if(!l.value?.width||!l.value?.height)return"";const m=(V,E)=>E?m(E,V%E):V,t=m(l.value.width,l.value.height);return t>3?`${l.value.width/t}:${l.value.height/t}`:""}),x=z(()=>["image","text","video","audio","font"].includes(n.value.type)),p=T(!1);async function B(){try{await W.deleteStaticAsset(await X(),n.value.filePath),n.value=void 0,p.value=!1,R({message:"Asset deleted",icon:"i-carbon-checkmark",classes:"text-green"})}catch(m){console.error(m),R({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const P=T(!1),M=T("");async function K(){const m=n.value.filePath.split("/"),t=m.slice(-1)[0].split(".").slice(0,-1).join(".");if(!M.value||M.value===t)return R({message:"Please enter a new name",icon:"i-carbon-warning",classes:"text-orange"});try{const V=m.slice(-1)[0].split(".").slice(-1)[0],E=`${m.slice(0,-1).join("/")}/${M.value}.${V}`;await W.renameStaticAsset(await X(),n.value.filePath,E),n.value=void 0,P.value=!1,R({message:"Asset renamed",icon:"i-carbon-checkmark",classes:"text-green"})}catch(V){console.error(V),R({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}return(m,t)=>{const V=de,E=Ie,U=se,pe=ze,ee=xe,me=re,te=le("tooltip");return a(),f(L,null,[i("div",gt,[x.value?(a(),f(L,{key:0},[t[13]||(t[13]=i("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[i("div",{"x-divider":""}),i("div",{"flex-none":""}," Preview "),i("div",{"x-divider":""})],-1)),i("div",yt,[h(V,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:w(n),"text-content":w(_)},null,8,["asset","text-content"])])],64)):I("",!0),t[25]||(t[25]=i("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[i("div",{"x-divider":""}),i("div",{"flex-none":""}," Details "),i("div",{"x-divider":""})],-1)),i("table",wt,[i("tbody",null,[i("tr",null,[t[14]||(t[14]=i("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1)),i("td",null,[i("div",bt,[h(E,{filepath:w(n).filePath,"text-left":""},null,8,["filepath"]),J(h(U,{"flex-none":"",title:"Open in Editor",icon:"carbon-launch",border:!1,onClick:t[0]||(t[0]=F=>w(g)(w(n).filePath))},null,512),[[te,"Open in Editor"]])])])]),i("tr",null,[t[15]||(t[15]=i("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1)),i("td",null,[i("div",_t,[i("div",xt,S(w(n).publicPath),1),J(h(U,{"flex-none":"",title:"Copy public path",icon:"carbon-copy",border:!1,onClick:t[1]||(t[1]=F=>w(d)(w(n).publicPath,"assets-public-path"))},null,512),[[te,"Copy public path"]]),J(h(U,{"flex-none":"",to:w(n).publicPath,icon:"carbon-launch",target:"_blank",border:!1,title:"Open in browser"},null,8,["to"]),[[te,"Open in browser"]])])])]),i("tr",null,[t[16]||(t[16]=i("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1)),i("td",$t,S(w(n).type),1)]),w(l)?.width?(a(),f(L,{key:0},[i("tr",null,[t[17]||(t[17]=i("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1)),i("td",null,S(w(l).width)+" x "+S(w(l).height),1)]),$.value?(a(),f("tr",kt,[t[18]||(t[18]=i("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1)),i("td",null,S($.value),1)])):I("",!0)],64)):I("",!0),i("tr",null,[t[19]||(t[19]=i("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1)),i("td",null,S(c.value),1)]),i("tr",null,[t[20]||(t[20]=i("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1)),i("td",null,[j(S(new Date(w(n).mtime).toLocaleString())+" ",1),i("span",Ct,"("+S(w(u))+")",1)])])])]),t[26]||(t[26]=i("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[i("div",{"x-divider":""}),i("div",{"flex-none":""}," Actions "),i("div",{"x-divider":""})],-1)),i("div",At,[h(U,{to:w(n).publicPath,download:"",target:"_blank",icon:"carbon-download",n:"green"},{default:A(()=>t[21]||(t[21]=[j(" Download ")])),_:1},8,["to"]),w(n).type==="text"?(a(),N(U,{key:0,icon:"carbon-edit",n:"cyan",onClick:t[2]||(t[2]=F=>r.value=!r.value)},{default:A(()=>t[22]||(t[22]=[j(" Edit ")])),_:1})):I("",!0),h(U,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:t[3]||(t[3]=F=>P.value=!P.value)},{default:A(()=>t[23]||(t[23]=[j(" Rename ")])),_:1}),h(U,{icon:"carbon-delete",n:"red",onClick:t[4]||(t[4]=F=>p.value=!p.value)},{default:A(()=>t[24]||(t[24]=[j(" Delete ")])),_:1})]),t[27]||(t[27]=i("div",{"flex-auto":""},null,-1)),C.value.length?(a(),N(pe,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":C.value},null,8,["code-snippets"])):I("",!0)]),h(ee,{modelValue:p.value,"onUpdate:modelValue":t[6]||(t[6]=F=>p.value=F)},{default:A(()=>[i("div",Bt,[t[30]||(t[30]=i("span",null," Are you sure you want to delete this asset? ",-1)),i("div",Pt,[h(U,{icon:"carbon-close",onClick:t[5]||(t[5]=F=>p.value=!1)},{default:A(()=>t[28]||(t[28]=[j(" Cancel ")])),_:1}),h(U,{icon:"carbon-delete",n:"red",onClick:B},{default:A(()=>t[29]||(t[29]=[j(" Delete ")])),_:1})])])]),_:1},8,["modelValue"]),h(ee,{modelValue:P.value,"onUpdate:modelValue":t[9]||(t[9]=F=>P.value=F)},{default:A(()=>[i("div",Vt,[h(me,{modelValue:M.value,"onUpdate:modelValue":t[7]||(t[7]=F=>M.value=F),placeholder:"New name",n:"blue"},null,8,["modelValue"]),i("div",Dt,[h(U,{icon:"carbon-close",onClick:t[8]||(t[8]=F=>P.value=!1)},{default:A(()=>t[31]||(t[31]=[j(" Cancel ")])),_:1}),h(U,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:K},{default:A(()=>t[32]||(t[32]=[j(" Rename ")])),_:1})])])]),_:1},8,["modelValue"]),w(n).type==="text"?(a(),N(ee,{key:0,modelValue:r.value,"onUpdate:modelValue":t[12]||(t[12]=F=>r.value=F)},{default:A(()=>[i("div",Ft,[J(i("textarea",{"onUpdate:modelValue":t[10]||(t[10]=F=>y.value=F),placeholder:"Item value...",class:"h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none",onKeydown:je(D,["enter"])},null,544),[[Se,y.value]]),i("div",Nt,[h(U,{icon:"carbon-close",onClick:t[11]||(t[11]=F=>r.value=!1)},{default:A(()=>t[33]||(t[33]=[j(" Cancel ")])),_:1}),h(U,{icon:"carbon:save",n:"primary",onClick:D},{default:A(()=>t[34]||(t[34]=[j(" save ")])),_:1})])])]),_:1},8,["modelValue"])):I("",!0)],64)}}}),St={"h-full":"","of-auto":""},Ut={"flex-none":"",flex:"~ gap2 items-center","text-lg":""},It={flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--1":"","h-4":"","w-4":"","rounded-full":"","bg-primary:30":"","text-8px":""},zt={flex:"~ col","w-30":"","of-auto":""},Et={"text-xs":"",op75:""},Tt={op50:""},Mt={key:0},Ot={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},Lt={key:1,p2:"",grid:"~ cols-minmax-8rem"},Rt={key:1},ln=Z({__name:"assets",setup(b){const o=$e(),e=T(!1),s=T(""),n=z(()=>new ke(o.value||[],{keys:["path"]})),l=Ce(()=>{const C=[];for(const d of o.value||[]){const g=d.path.split(".").pop();g&&!C.find(u=>u.name===g)&&C.push({name:g,value:!0})}return C}),r=z(()=>(s.value?n.value.search(s.value).map(d=>d.item):o.value||[]).filter(d=>{const g=d.path.split(".").pop();return!g||l.some(u=>u.name===g&&u.value)})),y=z(()=>{const C={};for(const d of r.value){const g=`${d.path.split("/").slice(0,-1).join("/")}/`;C[g]||(C[g]=[]),C[g].push(d)}return Object.entries(C).sort(([d],[g])=>d.localeCompare(g))}),v=z(()=>{const C={path:"public",children:[]},d=(g,u,c)=>{const[$,...x]=u;let p=g.children.find(B=>B.path===$);p||(p={...c,path:$,children:[]},g.children.push(p)),x.length>1?d(p,x,c):x.length===1&&p.children.push({...c,path:x[0]})};return r.value.forEach(g=>{const u=g.path.split("/").filter(c=>c!=="");d(C,u,g)}),C.children}),_=T(),{view:D}=Ae("assets");function O(){D.value=D.value==="list"?"grid":"list"}Be("Escape",()=>{_.value=void 0});const k=T();return(C,d)=>{const g=se,u=Pe,c=Ve,$=De,x=Ze,p=ht,B=Ue,P=ce,M=jt,K=Ee,m=le("tooltip");return a(),f("div",St,[h($,{ref_key:"navbar",ref:k,search:s.value,"onUpdate:search":d[1]||(d[1]=t=>s.value=t),pb2:""},{actions:A(()=>[i("div",Ut,[J(h(g,{icon:"carbon:cloud-upload",title:"File Upload",border:!1,onClick:d[0]||(d[0]=t=>e.value=!e.value)},null,512),[[m,"File Upload",void 0,{"bottom-end":!0}]]),w(l).length?(a(),N(c,{key:0,direction:"end",n:"sm primary"},{trigger:A(({click:t})=>[J(h(g,{icon:"carbon-filter",border:!1,title:"Filter",p3:"","text-lg":"",onClick:V=>t()},null,8,["onClick"]),[[m,"Filter",void 0,{"bottom-end":!0}]]),i("span",It,S(w(l).length),1)]),default:A(()=>[i("div",zt,[(a(!0),f(L,null,G(w(l),t=>(a(),N(u,{key:t.name,modelValue:t.value,"onUpdate:modelValue":V=>t.value=V,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:A(()=>[i("span",Et,S(t.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):I("",!0),J(h(g,{"text-lg":"",border:!1,icon:w(D)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",onClick:O},null,8,["icon"]),[[m,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:A(()=>[i("div",Tt,[s.value?(a(),f("span",Mt,S(r.value.length)+" matched · ",1)):I("",!0),i("span",null,S(w(o)?.length)+" assets in total",1)])]),_:1},8,["search"]),h(x,{modelValue:e.value,"onUpdate:modelValue":d[2]||(d[2]=t=>e.value=t),folder:"/"},null,8,["modelValue"]),w(D)==="grid"?(a(),f(L,{key:0},[y.value.length>1?(a(!0),f(L,{key:0},G(y.value,([t,V])=>(a(),N(B,{key:t,text:t,description:`${V.length} items`,open:V.length<=w(Te),padding:!1},{default:A(()=>[i("div",Ot,[(a(!0),f(L,null,G(V,E=>(a(),N(p,{key:E.path,asset:E,folder:t,onClick:U=>_.value=E},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(a(),f("div",Lt,[(a(!0),f(L,null,G(r.value,t=>(a(),N(p,{key:t.path,asset:t,onClick:V=>_.value=t},null,8,["asset","onClick"]))),128))]))],64)):(a(),f("div",Rt,[(a(!0),f(L,null,G(v.value,(t,V)=>(a(),N(P,{key:V,modelValue:_.value,"onUpdate:modelValue":d[3]||(d[3]=E=>_.value=E),item:t},null,8,["modelValue","item"]))),128))])),h(K,{"model-value":!!_.value,"auto-close":"","w-120":"",top:k.value,onClose:d[5]||(d[5]=t=>_.value=void 0)},{default:A(()=>[_.value?(a(),N(M,{key:0,modelValue:_.value,"onUpdate:modelValue":d[4]||(d[4]=t=>_.value=t)},null,8,["modelValue"])):I("",!0)]),_:1},8,["model-value","top"])])}}});export{ln as default};
@@ -1 +1 @@
1
- {"id":"e0e21221-5c8e-43a8-8f88-1af9f45bb798","timestamp":1739693592075}
1
+ {"id":"d9cd5dce-0076-49b4-a14f-897c8d40cbbd","timestamp":1740718010720}
@@ -0,0 +1 @@
1
+ {"id":"d9cd5dce-0076-49b4-a14f-897c8d40cbbd","timestamp":1740718010720,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}