@nuxt/devtools 1.6.4 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/.discoveryrc.cjs +13 -0
  2. package/README.md +8 -5
  3. package/dist/chunks/module-main.mjs +105 -51
  4. package/dist/chunks/vite-inspect.mjs +5 -1
  5. package/dist/chunks/vscode.mjs +34 -12
  6. package/dist/client/200.html +15 -15
  7. package/dist/client/404.html +15 -15
  8. package/dist/client/_nuxt/__blank-mzki7hds.js +1 -0
  9. package/dist/client/_nuxt/{analyze-build-m6hjy8b6.js → analyze-build-cm7nbw0a.js} +1 -1
  10. package/dist/client/_nuxt/{assets-jkla6b4k.js → assets-4eyg0st2.js} +3 -3
  11. package/dist/client/_nuxt/builds/latest.json +1 -1
  12. package/dist/client/_nuxt/builds/meta/7235b424-6975-4a9d-93d7-43e41c8bf0d0.json +1 -0
  13. package/dist/client/_nuxt/{client-iy54pzt5.js → client-bnemmvey.js} +1 -1
  14. package/dist/client/_nuxt/{code-diff.vue-lhj9gxzz.js → code-diff.vue-b35z64iy.js} +1 -1
  15. package/dist/client/_nuxt/{code-snippets.vue-jbtneucz.js → code-snippets.vue-kod959e4.js} +1 -1
  16. package/dist/client/_nuxt/components-owz73qfn.js +1 -0
  17. package/dist/client/_nuxt/{composable-item.vue-glp5bo7t.js → composable-item.vue-k3upmevr.js} +1 -1
  18. package/dist/client/_nuxt/custom-_name_-1x91219n.js +1 -0
  19. package/dist/client/_nuxt/{default-g9cho5c5.js → default-knqf5o69.js} +1 -1
  20. package/dist/client/_nuxt/duration-display.vue-jvaccd8v.js +1 -0
  21. package/dist/client/_nuxt/entry.css-egk2z7qr.css +1 -0
  22. package/dist/client/_nuxt/{error-404-kpv9svhd.js → error-404-njmanbq9.js} +1 -1
  23. package/dist/client/_nuxt/error-404.css-lmmxplpx.css +1 -0
  24. package/dist/client/_nuxt/{error-500-hs8gcksv.js → error-500-efmvdg7h.js} +1 -1
  25. package/dist/client/_nuxt/error-500.css-u0boq89r.css +1 -0
  26. package/dist/client/_nuxt/error-g6edq0yb.js +9 -0
  27. package/dist/client/_nuxt/filepath-item.vue-jlqwj704.js +1 -0
  28. package/dist/client/_nuxt/full-b288af13.js +1 -0
  29. package/dist/client/_nuxt/{help-fab.vue-dsbe70oc.js → help-fab.vue-j6249tgf.js} +1 -1
  30. package/dist/client/_nuxt/{hooks-ntg8apv0.js → hooks-j5sf1l7v.js} +1 -1
  31. package/dist/client/_nuxt/imports-bnmsrgkh.js +1 -0
  32. package/dist/client/_nuxt/index-fzja6ux8.js +2 -0
  33. package/dist/client/_nuxt/index-nx28hfsi.js +1 -0
  34. package/dist/client/_nuxt/launch-page.vue-h6bzyiyl.js +1 -0
  35. package/dist/client/_nuxt/modules-dg7kfyjr.js +1 -0
  36. package/dist/client/_nuxt/mxzg8bne.js +17 -0
  37. package/dist/client/_nuxt/nbadge-065dqs5v.js +1 -0
  38. package/dist/client/_nuxt/{ncheckbox.vue-cse1wr02.js → ncheckbox.vue-d0yw5qc1.js} +1 -1
  39. package/dist/client/_nuxt/ncode-block.css-lvdc77tw.css +1 -0
  40. package/dist/client/_nuxt/ncode-block.vue-c2t0anp9.js +2 -0
  41. package/dist/client/_nuxt/ndrawer.vue-g7wzeynf.js +1 -0
  42. package/dist/client/_nuxt/ndropdown.vue-jksxbs6t.js +1 -0
  43. package/dist/client/_nuxt/{nicon-title.vue-jza46fsn.js → nicon-title.vue-hch1agon.js} +1 -1
  44. package/dist/client/_nuxt/{nlink.vue-n7487xrt.js → nlink.vue-i0hrioln.js} +1 -1
  45. package/dist/client/_nuxt/{nmarkdown.vue-ly8z22rg.js → nmarkdown.vue-lym2fx3e.js} +1 -1
  46. package/dist/client/_nuxt/nnavbar.vue-y4opgitt.js +1 -0
  47. package/dist/client/_nuxt/none-nup47uz7.js +1 -0
  48. package/dist/client/_nuxt/nsection-block-mb0wrwu4.js +1 -0
  49. package/dist/client/_nuxt/nselect-tabs.vue-mvcu0rv4.js +1 -0
  50. package/dist/client/_nuxt/nselect.vue-eyd0vhij.js +1 -0
  51. package/dist/client/_nuxt/{open-graph-oo7uwhvx.js → open-graph-k0hqg0gj.js} +2 -2
  52. package/dist/client/_nuxt/overview-o54gzos9.js +1 -0
  53. package/dist/client/_nuxt/pages-eou4r3my.js +1 -0
  54. package/dist/client/_nuxt/{payload-i4d3og4m.js → payload-nhrpw6bb.js} +1 -1
  55. package/dist/client/_nuxt/pinia-fydnwhe3.js +1 -0
  56. package/dist/client/_nuxt/plugins-c7p6t581.js +1 -0
  57. package/dist/client/_nuxt/render-tree-j2aypyg1.js +1 -0
  58. package/dist/client/_nuxt/{runtime-configs-elwu7luj.js → runtime-configs-d0jvii1m.js} +1 -1
  59. package/dist/client/_nuxt/server-discovery-gexdv3di.js +1 -0
  60. package/dist/client/_nuxt/{server-route-inputs.vue-ot4rib01.js → server-route-inputs.vue-o8209idy.js} +1 -1
  61. package/dist/client/_nuxt/server-routes-dqhxkhv4.js +9 -0
  62. package/dist/client/_nuxt/server-tasks-k2bo3ecg.js +1 -0
  63. package/dist/client/_nuxt/settings-kg4bwnbo.js +1 -0
  64. package/dist/client/_nuxt/{stacktrace-list.vue-ojf2cyfb.js → stacktrace-list.vue-cb98on8v.js} +1 -1
  65. package/dist/client/_nuxt/{state-components-i6bpejw5.js → state-components-of7uu2vz.js} +1 -1
  66. package/dist/client/_nuxt/state-editor.vue-j30ssdvq.js +1 -0
  67. package/dist/client/_nuxt/state-modules-dvf4dhgf.js +1 -0
  68. package/dist/client/_nuxt/storage-h5g7r393.js +1 -0
  69. package/dist/client/_nuxt/{terminals-dmw85v8a.js → terminals-h4bqkpmq.js} +1 -1
  70. package/dist/client/_nuxt/{timeline-ilgburvu.js → timeline-km82a89k.js} +2 -2
  71. package/dist/client/_nuxt/{unocss-runtime-dmm6yugz.js → unocss-runtime-eltx4hvu.js} +1 -1
  72. package/dist/client/_nuxt/vendor/{json-editor-vue-ivrsfd8a.js → json-editor-vue-fw81xiot.js} +100 -100
  73. package/dist/client/_nuxt/vendor/shiki-j4jbxo4i.js +148 -0
  74. package/dist/client/_nuxt/vendor/unocss-dypm4cev.js +2 -0
  75. package/dist/client/_nuxt/vendor/{vis-cum19y28.js → vis-fzckz0r6.js} +12 -12
  76. package/dist/client/_nuxt/vendor/{xterm-dbpzgj7s.js → xterm-b1jefe3j.js} +7 -7
  77. package/dist/client/_nuxt/virtual-files-lhs4uf37.js +1 -0
  78. package/dist/client/_nuxt/{vue-virtual-scroller.esm-lq6f9fzq.js → vue-virtual-scroller.esm-luvj44av.js} +1 -1
  79. package/dist/client/discovery/index.html +611 -0
  80. package/dist/client/index.html +15 -15
  81. package/dist/module.json +2 -2
  82. package/dist/module.mjs +1 -1
  83. package/dist/runtime/plugins/view/Main.vue +2 -9
  84. package/dist/shared/{devtools.5ac54dae.mjs → devtools.60b2ba4d.mjs} +3 -2
  85. package/package.json +49 -43
  86. package/dist/client/_nuxt/__blank-lypl178u.js +0 -1
  87. package/dist/client/_nuxt/builds/meta/3a026b0b-3c88-4a7c-8ad7-043b5176a32e.json +0 -1
  88. package/dist/client/_nuxt/components-h2g43vc5.js +0 -1
  89. package/dist/client/_nuxt/components-tree-iq3immmn.js +0 -1
  90. package/dist/client/_nuxt/custom-_name_-m2razr0k.js +0 -1
  91. package/dist/client/_nuxt/duration-display.vue-oy3zq0wt.js +0 -1
  92. package/dist/client/_nuxt/entry.css-f054t818.css +0 -1
  93. package/dist/client/_nuxt/error-404.css-he1uoaye.css +0 -1
  94. package/dist/client/_nuxt/error-500.css-ojhe2u1c.css +0 -1
  95. package/dist/client/_nuxt/error-kq6fdjd8.js +0 -9
  96. package/dist/client/_nuxt/filepath-item.vue-khcefxw1.js +0 -1
  97. package/dist/client/_nuxt/full-h4bblsc2.js +0 -1
  98. package/dist/client/_nuxt/imports-oas5k4l1.js +0 -1
  99. package/dist/client/_nuxt/index-cr2km0lm.js +0 -1
  100. package/dist/client/_nuxt/index-kk6zx8yh.js +0 -2
  101. package/dist/client/_nuxt/jkwjqiby.js +0 -17
  102. package/dist/client/_nuxt/launch-page.vue-qpalyfg3.js +0 -1
  103. package/dist/client/_nuxt/modules-djo3gmhk.js +0 -1
  104. package/dist/client/_nuxt/nbadge-gvjrabwx.js +0 -1
  105. package/dist/client/_nuxt/ncode-block.css-c9cb29at.css +0 -1
  106. package/dist/client/_nuxt/ncode-block.vue-d0rio4gb.js +0 -2
  107. package/dist/client/_nuxt/ndrawer.vue-lv2j51sl.js +0 -1
  108. package/dist/client/_nuxt/ndropdown.vue-nrkf5gj7.js +0 -1
  109. package/dist/client/_nuxt/nnavbar.vue-h0vrbdpc.js +0 -1
  110. package/dist/client/_nuxt/none-o20iaxfc.js +0 -1
  111. package/dist/client/_nuxt/nsection-block-c30h9a7p.js +0 -1
  112. package/dist/client/_nuxt/nselect-tabs.vue-kva09wsa.js +0 -1
  113. package/dist/client/_nuxt/nselect.vue-97v3ez5s.js +0 -1
  114. package/dist/client/_nuxt/overview-myl8hwsb.js +0 -1
  115. package/dist/client/_nuxt/pages-b55hg92j.js +0 -1
  116. package/dist/client/_nuxt/pinia-d820aun4.js +0 -1
  117. package/dist/client/_nuxt/plugins-fyuck7jc.js +0 -1
  118. package/dist/client/_nuxt/server-routes-egyll002.js +0 -9
  119. package/dist/client/_nuxt/server-tasks-lubqj3k2.js +0 -1
  120. package/dist/client/_nuxt/settings-k355sbsm.js +0 -1
  121. package/dist/client/_nuxt/state-editor.vue-iy8ydlol.js +0 -1
  122. package/dist/client/_nuxt/state-modules-g393ybfq.js +0 -1
  123. package/dist/client/_nuxt/storage-pbps5f8y.js +0 -1
  124. package/dist/client/_nuxt/vendor/shiki-enrzjv18.js +0 -57
  125. package/dist/client/_nuxt/vendor/unocss-hwbthrao.js +0 -2
  126. package/dist/client/_nuxt/virtual-files-b7capdoa.js +0 -1
@@ -1,20 +1,20 @@
1
1
  <!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1">
3
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-f054t818.css" crossorigin>
3
+ <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-egk2z7qr.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/jkwjqiby.js">
7
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-ivrsfd8a.js">
8
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-hwbthrao.js">
9
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-enrzjv18.js">
6
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/mxzg8bne.js">
7
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-fw81xiot.js">
8
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-dypm4cev.js">
9
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-j4jbxo4i.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-g9cho5c5.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-h4bblsc2.js">
13
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-o20iaxfc.js">
14
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-dmm6yugz.js">
15
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-he1uoaye.css">
16
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-kpv9svhd.js">
17
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-ojhe2u1c.css">
18
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-hs8gcksv.js">
19
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/jkwjqiby.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},1734011311457,false]</script>
20
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"3a026b0b-3c88-4a7c-8ad7-043b5176a32e",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
11
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-knqf5o69.js">
12
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-b288af13.js">
13
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-nup47uz7.js">
14
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-eltx4hvu.js">
15
+ <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-lmmxplpx.css">
16
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-njmanbq9.js">
17
+ <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-u0boq89r.css">
18
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-efmvdg7h.js">
19
+ <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/mxzg8bne.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},1737018576773,false]</script>
20
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"7235b424-6975-4a9d-93d7-43e41c8bf0d0",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "configKey": "devtools",
4
- "version": "1.6.4",
4
+ "version": "2.0.0-beta.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.3",
7
- "unbuild": "2.0.0"
7
+ "unbuild": "3.3.1"
8
8
  }
9
9
  }
package/dist/module.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import '@nuxt/kit';
2
- export { m as default } from './shared/devtools.5ac54dae.mjs';
2
+ export { m as default } from './shared/devtools.60b2ba4d.mjs';
3
3
  import './dirs.mjs';
4
4
  import 'node:path';
5
5
  import 'node:url';
@@ -19,14 +19,7 @@ const panelMargins = reactive({
19
19
  })
20
20
 
21
21
  const safeArea = useScreenSafeArea()
22
-
23
22
  const isSafari = navigator.userAgent.includes('Safari') && !navigator.userAgent.includes('Chrome')
24
- let isInit = true
25
-
26
- watchEffect(() => {
27
- if (state.value.open)
28
- isInit = false
29
- })
30
23
 
31
24
  watchEffect(() => {
32
25
  panelMargins.left = safeArea.left.value + 10
@@ -182,8 +175,8 @@ const isHidden = computed(() => {
182
175
  return false
183
176
  if (settings.ui.showPanel === false)
184
177
  return true
185
- // If not explicitly set, hide the panel on first load
186
- return isInit
178
+ // If not explicitly set, show the panel
179
+ return false
187
180
  })
188
181
 
189
182
  const isMinimized = computed(() => {
@@ -20,7 +20,8 @@ const defaultOptions = {
20
20
  };
21
21
  const defaultTabOptions = {
22
22
  behavior: {
23
- telemetry: null
23
+ telemetry: null,
24
+ openInEditor: void 0
24
25
  },
25
26
  ui: {
26
27
  componentsView: "list",
@@ -32,7 +33,7 @@ const defaultTabOptions = {
32
33
  interactionCloseOnOutsideClick: false,
33
34
  showExperimentalFeatures: false,
34
35
  showHelpButtons: true,
35
- showPanel: null,
36
+ showPanel: true,
36
37
  scale: 1,
37
38
  minimizePanelInactive: 5e3,
38
39
  hiddenTabs: [],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "type": "module",
4
- "version": "1.6.4",
4
+ "version": "2.0.0-beta.2",
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",
@@ -29,18 +29,18 @@
29
29
  "dist"
30
30
  ],
31
31
  "peerDependencies": {
32
- "vite": "*"
32
+ "vite": ">=6.0"
33
33
  },
34
34
  "dependencies": {
35
- "@antfu/utils": "^0.7.10",
36
- "@nuxt/kit": "^3.14.1592",
37
- "@vue/devtools-core": "7.6.8",
38
- "@vue/devtools-kit": "7.6.8",
39
- "birpc": "^0.2.19",
40
- "consola": "^3.2.3",
35
+ "@antfu/utils": "^8.1.0",
36
+ "@nuxt/kit": "^3.15.1",
37
+ "@vue/devtools-core": "^7.7.0",
38
+ "@vue/devtools-kit": "^7.7.0",
39
+ "birpc": "^2.0.19",
40
+ "consola": "^3.4.0",
41
41
  "cronstrue": "^2.52.0",
42
42
  "destr": "^2.0.3",
43
- "error-stack-parser-es": "^0.1.5",
43
+ "error-stack-parser-es": "^1.0.5",
44
44
  "execa": "^7.2.0",
45
45
  "fast-npm-meta": "^0.2.2",
46
46
  "flatted": "^3.3.2",
@@ -49,77 +49,83 @@
49
49
  "image-meta": "^0.2.1",
50
50
  "is-installed-globally": "^1.0.0",
51
51
  "launch-editor": "^2.9.1",
52
- "local-pkg": "^0.5.1",
52
+ "local-pkg": "^1.0.0",
53
53
  "magicast": "^0.3.5",
54
54
  "nypm": "^0.4.1",
55
55
  "ohash": "^1.1.4",
56
- "pathe": "^1.1.2",
56
+ "pathe": "^2.0.1",
57
57
  "perfect-debounce": "^1.0.0",
58
- "pkg-types": "^1.2.1",
58
+ "pkg-types": "^1.3.1",
59
59
  "rc9": "^2.1.2",
60
60
  "scule": "^1.3.0",
61
61
  "semver": "^7.6.3",
62
62
  "simple-git": "^3.27.0",
63
63
  "sirv": "^3.0.0",
64
64
  "tinyglobby": "^0.2.10",
65
- "unimport": "^3.14.5",
66
- "vite-plugin-inspect": "~0.8.9",
67
- "vite-plugin-vue-inspector": "5.1.3",
65
+ "unimport": "^3.14.6",
66
+ "vite-plugin-inspect": "^10.0.6",
67
+ "vite-plugin-vue-inspector": "^5.3.1",
68
68
  "which": "^3.0.1",
69
69
  "ws": "^8.18.0",
70
- "@nuxt/devtools-kit": "1.6.4",
71
- "@nuxt/devtools-wizard": "1.6.4"
70
+ "@nuxt/devtools-kit": "2.0.0-beta.2",
71
+ "@nuxt/devtools-wizard": "2.0.0-beta.2"
72
72
  },
73
73
  "devDependencies": {
74
- "@iconify-json/bxl": "^1.2.1",
75
- "@iconify-json/carbon": "^1.2.4",
76
- "@iconify-json/logos": "^1.2.3",
77
- "@iconify-json/ri": "^1.2.3",
78
- "@iconify-json/simple-icons": "^1.2.15",
79
- "@iconify-json/tabler": "^1.2.11",
74
+ "@discoveryjs/cli": "^2.12.1",
75
+ "@discoveryjs/discovery": "1.0.0-beta.92",
76
+ "@iconify-json/bxl": "^1.2.2",
77
+ "@iconify-json/carbon": "^1.2.5",
78
+ "@iconify-json/logos": "^1.2.4",
79
+ "@iconify-json/ri": "^1.2.5",
80
+ "@iconify-json/simple-icons": "^1.2.20",
81
+ "@iconify-json/tabler": "^1.2.14",
80
82
  "@nuxt/content": "^2.13.4",
81
- "@nuxt/test-utils": "^3.15.1",
83
+ "@nuxt/test-utils": "^3.15.4",
82
84
  "@parcel/watcher": "^2.5.0",
85
+ "@shikijs/langs-precompiled": "^1.27.2",
83
86
  "@types/markdown-it-link-attributes": "^3.0.5",
84
- "@types/ua-parser-js": "^0.7.39",
85
- "@unocss/nuxt": "^0.65.1",
86
- "@unocss/preset-icons": "^0.65.1",
87
- "@unocss/preset-uno": "^0.65.1",
88
- "@unocss/runtime": "^0.65.1",
87
+ "@unocss/nuxt": "^65.4.0",
88
+ "@unocss/preset-icons": "^65.4.0",
89
+ "@unocss/preset-uno": "^65.4.0",
90
+ "@unocss/runtime": "^65.4.0",
89
91
  "@vitest/ui": "^2.1.8",
90
- "@vue/devtools-applet": "7.6.8",
91
- "@vueuse/nuxt": "^12.0.0",
92
+ "@vue/devtools-applet": "^7.7.0",
93
+ "@vueuse/nuxt": "^12.4.0",
92
94
  "@xterm/addon-fit": "^0.10.0",
93
95
  "@xterm/xterm": "^5.5.0",
94
96
  "esno": "^4.8.0",
95
- "floating-vue": "5.2.2",
97
+ "floating-vue": "^5.2.2",
96
98
  "fuse.js": "^7.0.0",
97
99
  "json-editor-vue": "^0.17.3",
98
100
  "markdown-it": "^14.1.0",
99
101
  "markdown-it-link-attributes": "^4.0.1",
102
+ "my-ua-parser": "^2.0.4",
100
103
  "nanoid": "^5.0.9",
101
104
  "nitropack": "^2.10.4",
102
- "nuxt": "^3.14.1592",
105
+ "nuxt": "^3.15.1",
103
106
  "ofetch": "^1.4.1",
104
107
  "quicktype-core": "^23.0.170",
105
- "shiki": "^1.24.2",
108
+ "shiki": "^1.27.2",
109
+ "shiki-codegen": "^1.27.2",
106
110
  "theme-vitesse": "^0.8.3",
107
- "ua-parser-js": "^1.0.39",
108
- "unocss": "^0.65.1",
109
- "unplugin-vue-markdown": "^0.27.1",
111
+ "unocss": "^65.4.0",
112
+ "unplugin-vue-markdown": "^28.0.0",
110
113
  "vanilla-jsoneditor": "^2.3.3",
111
114
  "vis-data": "^7.1.9",
112
115
  "vis-network": "^9.1.9",
113
- "vue-tsc": "^2.1.10",
114
- "vue-virtual-scroller": "2.0.0-beta.8",
115
- "@nuxt/devtools": "1.6.4"
116
+ "vue-tsc": "^2.2.0",
117
+ "vue-virtual-scroller": "^2.0.0-beta.8",
118
+ "@nuxt/devtools": "2.0.0-beta.2"
116
119
  },
117
120
  "scripts": {
118
- "build": "pnpm dev:prepare && pnpm build:module && pnpm build:client && esno scripts/prepare.ts",
121
+ "build": "pnpm dev:prepare && pnpm build:module && pnpm build:discovery && pnpm build:client && esno scripts/prepare.ts",
119
122
  "build:client": "nuxi generate client",
120
123
  "build:module": "nuxt-build-module build",
121
- "dev": "nuxi dev client",
124
+ "build:discovery": "npx discovery-build -c .discoveryrc.cjs -s -o client/public/discovery",
125
+ "dev:discovery": "discovery -c .discoveryrc.cjs",
126
+ "stub": "nuxt-build-module build --stub",
127
+ "dev": "pnpm build:discovery && nuxi dev client",
122
128
  "dev:playground": "pnpm build && nuxi dev playground",
123
- "dev:prepare": "nuxi prepare client"
129
+ "dev:prepare": "pnpm run stub && nuxi prepare client"
124
130
  }
125
131
  }
@@ -1 +0,0 @@
1
- import{k as e,S as n,Q as t}from"./vendor/json-editor-vue-ivrsfd8a.js";const c={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(o){return(s,_)=>(t(),n("div",c))}});export{r as default};
@@ -1 +0,0 @@
1
- {"id":"3a026b0b-3c88-4a7c-8ad7-043b5176a32e","timestamp":1734011284359,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -1 +0,0 @@
1
- import{I as ie,e as X,S as pe,T as re,H as ue,U as de,b as Z,V as me,W as ce,X as fe,M as ve,Y as _e,Z as he,D as be,Q as ge}from"./jkwjqiby.js";import{Q as t,S as _,U as n,k as I,l as S,a6 as Q,a5 as W,a0 as v,u as N,M as x,W as k,F as M,ab as B,V as H,b as L,x as ye,c as we,$ as b,y as A,R as xe,Y as ke,a1 as z,ae as Ce,a7 as $e,a8 as q}from"./vendor/json-editor-vue-ivrsfd8a.js";import{_ as Ne}from"./help-fab.vue-dsbe70oc.js";import{_ as Ve}from"./ncheckbox.vue-cse1wr02.js";import{_ as J}from"./nnavbar.vue-h0vrbdpc.js";import{_ as K}from"./nbadge-gvjrabwx.js";import{_ as ee}from"./filepath-item.vue-khcefxw1.js";import{_ as Se}from"./ndrawer.vue-lv2j51sl.js";import{N as Pe}from"./vendor/vis-cum19y28.js";import{_ as De}from"./nselect-tabs.vue-kva09wsa.js";import{_ as Me}from"./nsection-block-c30h9a7p.js";import{_ as Te}from"./nicon-title.vue-jza46fsn.js";import{D as O}from"./constants-b32h69zq.js";import{u as Ue,a as Be}from"./state-components-i6bpejw5.js";import"./vendor/unocss-hwbthrao.js";import"./vendor/shiki-enrzjv18.js";const Le={class:"markdown-body"},Ie={__name:"components",setup(r,{expose:s}){return s({frontmatter:{}}),(a,i)=>(t(),_("div",Le,i[0]||(i[0]=[n("h1",null,"Components",-1),n("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.",-1),n("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Re=/\d/,Fe=["-","_","/","."];function Ge(r=""){if(!Re.test(r))return r!==r.toLowerCase()}function Ae(r,s){const m=Fe,a=[];if(!r||typeof r!="string")return a;let i="",o,p;for(const c of r){const u=m.includes(c);if(u===!0){a.push(i),i="",o=void 0;continue}const f=Ge(c);if(p===!1){if(o===!1&&f===!0){a.push(i),i=c,o=f;continue}if(o===!0&&f===!1&&i.length>1){const g=i.at(-1);a.push(i.slice(0,Math.max(0,i.length-1))),i=g+c,o=f;continue}}i+=c,o=f,p=u}return a.push(i),a}function Ee(r){return r?r[0].toUpperCase()+r.slice(1):""}function ne(r,s){return r?(Array.isArray(r)?r:Ae(r)).map(m=>Ee(m)).join(""):""}const ze={"text-sm":"","font-mono":""},oe=I({__name:"ComponentName",props:{component:{}},setup(r){const s=r,m=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||""));return(a,i)=>(t(),_("code",ze,[i[0]||(i[0]=n("span",{mr1:"",op20:""},"<",-1)),Q(W(m.value),1),i[1]||(i[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),We={flex:"~ col gap1","items-start":"","of-hidden":""},He={flex:"~ gap2",px3:""},je={px3:"",pb2:""},Oe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Qe={"text-sm":""},Xe={"text-primary":""},Ye={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},qe={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ze={"text-sm":""},Je={"text-primary":""},Ke={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},te=I({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,m=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||"")),a=S(()=>s.component.filePath||s.component.file||s.component.__file||""),i=ie();return(o,p)=>{const c=oe,u=X,f=K,g=ee;return t(),_("div",We,[n("div",He,[v(c,{component:o.component},null,8,["component"]),v(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:p[0]||(p[0]=h=>N(i)(`<${m.value}></${m.value}>`,"component-name"))}),o.component.global?(t(),x(f,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0)]),n("div",je,[a.value?(t(),x(g,{key:0,filepath:a.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)]),o.dependents?(t(),_("div",Oe,[n("div",Qe,[n("strong",Xe,W(o.dependents.length),1),p[1]||(p[1]=n("span",{op50:""}," references",-1))]),o.dependents.length?(t(),_("div",Ye,[(t(!0),_(M,null,B(o.dependents,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),o.dependencies?(t(),_("div",qe,[n("div",Ze,[n("strong",Je,W(o.dependencies.length),1),p[2]||(p[2]=n("span",{op50:""}," dependencies",-1))]),o.dependencies.length?(t(),_("div",Ke,[(t(!0),_(M,null,B(o.dependencies,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),H(o.$slots,"default")])}}}),en={flex:"~ gap-4 wrap","w-full":""},nn={relative:"","h-full":"","w-full":""},on={key:0,py4:"",pt4:"",flex:"~ col"},tn={border:"t base",p4:""},sn=I({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(r){const s=r,m=L(),a=L(),i=pe(),o=L(),p=re(),c=ue(),u=de(),{componentsGraphShowNodeModules:f,componentsGraphShowGlobalComponents:g,componentsGraphShowPages:h,componentsGraphShowLayouts:V,componentsGraphShowWorkspace:y}=Z("ui"),C=L(),d=L(""),R=me(d,300),F=S(()=>{const P=s.relationships||[];if(C.value){let e=function($){!$||l.has($)||(l.add($),$.deps.forEach(T=>{e(P.find(U=>U.id===T))}))};const l=new Set;return e(C.value),Array.from(l)}return P}),E=S(()=>{const P=F.value.map(l=>{const $=s.components.find(G=>G.filePath===l.id),T=p.value?.find(G=>G.file===l.id),U=u.value?.find(G=>G.file===l.id),j=l.id.replace(/\?.*$/,"").replace(/#.*$/,""),D=l.id.includes("/node_modules/")?"lib":$?$.global?"global":"user":U?"layout":T?"page":"unknown";if(!f.value&&D==="lib"||!h.value&&D==="page"||!V.value&&D==="layout"||!y.value&&D==="user"&&c.value&&!l.id.startsWith(c.value.rootDir)||!g.value&&D==="global")return null;const w=D==="layout"?"hexagon":D==="page"?"square":"dot",Y=R.value&&!l.id.toLowerCase().includes(R.value.toLowerCase());return{id:l.id,label:j.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:D,shape:w,size:15+Math.min(l.deps.length/2,8),font:{color:Y?"#8885":i.value==="dark"?"white":"black"},color:Y?"#8885":C.value?.id===l.id?"#82c742":void 0,extra:{id:l.id,component:$,page:T,layout:U,relationship:l}}}).filter(l=>!!l),e=F.value.flatMap(l=>l.deps.map($=>({from:l.id,to:$,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:P,edges:e}}),se=S(()=>o.value?.component?s.relationships?.find(e=>e.id===o.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(l=>l.id===e)?.id).filter(Boolean):[]),le=S(()=>o.value?.component?s.relationships?.filter(e=>e.deps.includes(o.value.component.filePath))?.map(e=>s.relationships?.find(l=>l.id===e.id)?.id).filter(Boolean):[]);ye(()=>{const P={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=new Pe(m.value,E.value,P);e.on("click",l=>{const $=l.nodes?.[0],T=E.value.nodes?.find(U=>U.id===$)?.extra;T&&(o.value=T)}),we(E,()=>{e.setData(E.value)})});function ae(){C.value=o.value?.relationship,o.value=void 0}return(P,e)=>{const l=Ve,$=J,T=ce,U=te,j=X,D=Se;return t(),_(M,null,[v($,{ref_key:"navbar",ref:a,search:d.value,"onUpdate:search":e[6]||(e[6]=w=>d.value=w),absolute:"","left-0":"","right-0":"","top-0":""},{actions:b(()=>[n("div",en,[v(l,{modelValue:N(h),"onUpdate:modelValue":e[0]||(e[0]=w=>A(h)?h.value=w:null),n:"primary sm"},{default:b(()=>e[9]||(e[9]=[n("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(V),"onUpdate:modelValue":e[1]||(e[1]=w=>A(V)?V.value=w:null),n:"primary sm"},{default:b(()=>e[10]||(e[10]=[n("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(y),"onUpdate:modelValue":e[2]||(e[2]=w=>A(y)?y.value=w:null),n:"primary sm"},{default:b(()=>e[11]||(e[11]=[n("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(f),"onUpdate:modelValue":e[3]||(e[3]=w=>A(f)?f.value=w:null),n:"primary sm"},{default:b(()=>e[12]||(e[12]=[n("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(g),"onUpdate:modelValue":e[4]||(e[4]=w=>A(g)?g.value=w:null),n:"primary sm"},{default:b(()=>e[13]||(e[13]=[n("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),C.value?(t(),_("button",{key:0,flex:"~ gap-1","flex-none":"","items-center":"","rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:e[5]||(e[5]=w=>C.value=void 0)},e[14]||(e[14]=[Q(" Clear filter "),n("div",{"i-carbon-close":""},null,-1)]))):k("",!0),e[15]||(e[15]=n("div",{"flex-auto":""},null,-1)),H(P.$slots,"default")]),_:3},8,["search"]),n("div",nn,[n("div",{ref_key:"container",ref:m,"h-full":"","w-full":""},null,512),v(T,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:b(()=>e[16]||(e[16]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])),_:1}),v(D,{"model-value":!!(o.value&&o.value.component),top:a.value,border:"t l base","w-80":"",onClose:e[8]||(e[8]=w=>o.value=void 0)},{default:b(()=>[o.value&&o.value.component?(t(),_("div",on,[v(U,{component:o.value.component,dependencies:se.value,dependents:le.value},null,8,["component","dependencies","dependents"]),n("div",tn,[v(j,{n:"primary solid",onClick:e[7]||(e[7]=w=>ae())},{default:b(()=>e[17]||(e[17]=[Q(" Filter to this component ")])),_:1})])])):k("",!0)]),_:1},8,["model-value","top"])])],64)}}}),ln={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},an={key:0,"ml--1":"","text-primary":""},pn=I({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,m=S(()=>s.component.filePath||s.component.file||s.component.__file||"");return(a,i)=>{const o=oe,p=te,c=xe("VDropdown"),u=K,f=ee;return t(),_("div",ln,[v(c,null,{popper:b(()=>[v(p,{component:a.component,dependencies:a.dependencies,dependents:a.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:b(()=>[n("button",{"hover:text-primary":"",class:ke(a.dependents&&a.dependents.length===0?"op50":"")},[v(o,{component:a.component},null,8,["component"])],2)]),_:1}),a.dependents?.length?(t(),_("sup",an," x"+W(a.dependents?.length),1)):k("",!0),a.component.global?(t(),x(u,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0),H(a.$slots,"default"),m.value?(t(),x(f,{key:2,filepath:m.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)])}}}),rn={flex:"~ gap-2 items-center"},un={pl4:""},dn=I({__name:"ComponentsList",props:{components:{},relationships:{}},setup(r){const s=r,m=L(""),a=L("all"),i=S(()=>{const c=s.components.map(u=>fe(u,s.relationships));return a.value==="using"?c.filter(u=>u.dependents?.length):a.value==="not-used"?c.filter(u=>!u.dependents?.length):c}),o=S(()=>new ve(i.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),p=S(()=>{const c=[],u=new Map,f=[],g=[],h={user:0,lib:0,builtin:0,runtime:0};return(m.value?o.value.search(m.value).map(y=>y.item):i.value).forEach(y=>{const C=y.component;if(C.filePath&&_e(C.filePath)){const d=he(C.filePath);if(!d)return;d==="nuxt"?(f.push(y),h.builtin++):(u.has(d)||u.set(d,[]),u.get(d).push(y),h.lib++)}else C.global&&!C.filePath?(g.push(y),h.runtime++):(c.push(y),h.user++)}),{count:h,user:c,builtin:f,lib:u,runtime:g}});return(c,u)=>{const f=be,g=De,h=J,V=pn,y=Me,C=Te;return t(),_(M,null,[v(h,{search:m.value,"onUpdate:search":u[1]||(u[1]=d=>m.value=d),pb3:""},{actions:b(()=>[H(c.$slots,"default")]),default:b(()=>[n("div",rn,[v(f,{icon:"carbon-filter",op50:""}),v(g,{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value=d),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?(t(),x(y,{key:0,icon:"carbon-nominal",text:"User components",open:p.value.user.length<=N(O),description:`Total components: ${p.value.count.user}`},{default:b(()=>[(t(!0),_(M,null,B(p.value.user,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.runtime.length?(t(),x(y,{key:1,icon:"carbon-load-balancer-global",open:p.value.runtime.length<=N(O),text:"Runtime components",description:`Total components: ${p.value.count.runtime}`},{default:b(()=>[(t(!0),_(M,null,B(p.value.runtime,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.builtin.length?(t(),x(y,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${p.value.count.builtin}`},{default:b(()=>[(t(!0),_(M,null,B(p.value.builtin,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["description"])):k("",!0),p.value.lib.size?(t(),x(y,{key:3,open:p.value.count.lib<=N(O),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:b(()=>[(t(!0),_(M,null,B(p.value.lib.entries(),([d,R])=>(t(),_("div",{key:d,"ml-2":""},[v(C,{text:`${d} (${R.length})`,py1:"",op50:""},null,8,["text"]),n("div",un,[(t(!0),_(M,null,B(R,F=>(t(),x(V,z({key:F.component.filePath,ref_for:!0},F),null,16))),128))])]))),128))]),_:1},8,["open","description"])):k("",!0)],64)}}}),mn={relative:"","h-full":"","of-auto":""},cn={"flex-none":"",flex:"~ gap3"},Dn=I({__name:"components",setup(r){const s=ge(),m=Ue(),a=Be(),{componentsView:i}=Z("ui");function o(){s.value?.inspector?.instance&&s.value.inspector.enable()}function p(){i.value=i.value==="list"?"graph":"list"}return(c,u)=>{const f=X,g=Ie,h=Ne,V=Ce("tooltip");return t(),_(M,null,[n("div",mn,[(t(),x($e(N(i)==="list"?dn:sn),{components:N(m),relationships:N(a)},{default:b(()=>[n("div",cn,[q(v(f,{"text-lg":"",border:!1,icon:N(i)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:p},null,8,["icon"]),[[V,"Toggle View",void 0,{"bottom-end":!0}]]),N(s)?.inspector?.instance?q((t(),x(f,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:o},null,512)),[[V,"Inspect Vue components",void 0,{"bottom-end":!0}]]):k("",!0)])]),_:1},8,["components","relationships"]))]),v(h,null,{default:b(()=>[v(g)]),_:1})],64)}}});export{Dn as default};
@@ -1 +0,0 @@
1
- import{P as u,Q as d,J as c,R as f}from"./jkwjqiby.js";import{d as _}from"./index-kk6zx8yh.js";import{k as v,S as k,u as n,M as l,$ as C,Q as o,a6 as E}from"./vendor/json-editor-vue-ivrsfd8a.js";import"./vendor/unocss-hwbthrao.js";import"./vendor/shiki-enrzjv18.js";import"./vue-virtual-scroller.esm-lq6f9fzq.js";const I={class:"h-full w-full"},y=v({__name:"components-tree",setup(x){const{connected:a}=u(),t=d(),p=c();function s(r){r?t.value.devtools.open():t.value.devtools.close()}return(r,e)=>{const i=f;return o(),k("div",I,[n(a)?(o(),l(n(_),{key:0,onOnInspectComponentStart:e[0]||(e[0]=m=>s(!1)),onOnInspectComponentEnd:e[1]||(e[1]=m=>s(!0)),onOpenInEditor:n(p)},null,8,["onOpenInEditor"])):(o(),l(i,{key:1},{default:C(()=>e[2]||(e[2]=[E(" Connecting.... ")])),_:1}))])}}});export{y as default};
@@ -1 +0,0 @@
1
- import{S as q,$ as E,a0 as N,a1 as j,l as B,a2 as S,a3 as k,a4 as V,c as W,r as D,W as I,a5 as L}from"./jkwjqiby.js";import{k as T,b as C,l as x,r as P,x as M,n as O,w as b,E as R,S as U,Q as n,M as u,$ as y,u as A,a7 as F,U as r,a6 as w,a5 as $,a0 as G}from"./vendor/json-editor-vue-ivrsfd8a.js";import{_ as Q}from"./launch-page.vue-qpalyfg3.js";import"./vendor/unocss-hwbthrao.js";import"./vendor/shiki-enrzjv18.js";import"./nmarkdown.vue-ly8z22rg.js";import"./client-iy54pzt5.js";const h=new Map,X=T({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=q(),d=C(),s=x(()=>m.tab.name),e=C(),t=P(E(d));M(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(s.value)&&l)e.value=h.get(s.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(s.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),i(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),O(p)}setTimeout(i,100)}),b(p),b(i),b(v),R(()=>{e.value&&(e.value.style.visibility="hidden")});function i(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",c.value==="dark"),o?.classList.toggle("light",c.value==="dark"),new MutationObserver(()=>{c.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(o,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=N();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function p(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(o,l)=>(n(),U("div",{ref_key:"anchor",ref:d,"h-full":"","w-full":""},null,512))}}),z={flex:"~ col gap2",mxa:"","items-center":""},H={"text-xl":""},J={"text-rose":""},ne=T({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=j(),d=B(),s=x(()=>m.name??c.params.name),e=S(),t=x(()=>e.value.find(i=>i.name===s.value));return M(()=>{t.value?t.value.requireAuth&&!k.value&&V():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(i,a)=>{const v=W,p=L,o=X,l=Q,_=I;return t.value?t.value.requireAuth&&!A(k)?(n(),u(p,{key:1})):t.value.view.type==="iframe"?(n(),u(o,{key:2,tab:t.value},null,8,["tab"])):t.value.view.type==="vnode"?(n(),u(F(t.value.view.vnode),{key:3})):t.value.view.type==="launch"?(n(),u(l,{key:4,name:`custom-${t.value.name}`,icon:t.value.view.icon||t.value.icon,title:t.value.view.title||t.value.title,description:t.value.view.description,actions:t.value.view.actions,onAction:a[0]||(a[0]=g=>A(D).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[G(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+$(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",z,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",H,[a[1]||(a[1]=w(" Tab ")),r("code",J,$(s.value),1),a[2]||(a[2]=w(" not found "))]),a[4]||(a[4]=r("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=r("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{ne as default};
@@ -1 +0,0 @@
1
- import{k as i,l as u,Q as s,S as d,a6 as f,a5 as o,U as p,Y as c}from"./vendor/json-editor-vue-ivrsfd8a.js";const l={"ml-1":"","text-xs":"",op50:""},_=i({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function n(e){return t.color?e?(e=e*t.factor,e<.5?"text-gray:50":e>1e3?"text-red-400":e>500?"text-orange-400":e>200?"text-yellow-400":""):"text-gray-400":""}const r=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(e,m)=>(s(),d("div",{class:c(n(e.duration))},[f(o(r.value[0]),1),p("span",l,o(r.value[1]),1)],2))}});export{_};