@nuxt/devtools 1.3.9 → 1.3.14

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 (108) hide show
  1. package/dist/chunks/module-main.mjs +8 -7
  2. package/dist/client/200.html +27 -27
  3. package/dist/client/404.html +27 -27
  4. package/dist/client/_nuxt/{B3Xn0-WD.js → 2tJW9cKr.js} +1 -1
  5. package/dist/client/_nuxt/{B3xdBQzM.js → B-wfK0SS.js} +1 -1
  6. package/dist/client/_nuxt/{DMp3ub-8.js → B2TuRHFi.js} +1 -1
  7. package/dist/client/_nuxt/{nbOvh45q.js → BEKXAodE.js} +1 -1
  8. package/dist/client/_nuxt/{JOMs3kJS.js → BF_UD7ZT.js} +114 -114
  9. package/dist/client/_nuxt/{xORP-8Ow.js → BHBvn5Xs.js} +1 -1
  10. package/dist/client/_nuxt/BLmvGqlk.js +1 -0
  11. package/dist/client/_nuxt/{DkQfqnYF.js → BMUgLter.js} +9 -9
  12. package/dist/client/_nuxt/BMbUeBqv.js +1 -1
  13. package/dist/client/_nuxt/{H8p8AdfC.js → BO314c-_.js} +1 -1
  14. package/dist/client/_nuxt/{CktVnUy9.js → BWPbreBU.js} +1 -1
  15. package/dist/client/_nuxt/BYelj_cE.js +1 -0
  16. package/dist/client/_nuxt/{dyz0QDHl.js → BZZpaKJQ.js} +1 -1
  17. package/dist/client/_nuxt/{Ctb-QkcA.js → BZvh3yot.js} +2 -2
  18. package/dist/client/_nuxt/{qnM-VzkH.js → BcJweaq3.js} +1 -1
  19. package/dist/client/_nuxt/{OAG_rOo8.js → Bi99gj7u.js} +1 -1
  20. package/dist/client/_nuxt/BkmSFWMo.js +1 -0
  21. package/dist/client/_nuxt/{-vLCBS-N.js → Bl8OBrwH.js} +1 -1
  22. package/dist/client/_nuxt/BrzmMRQX.js +2 -0
  23. package/dist/client/_nuxt/{C5ufIXkV.js → C4OO6w_e.js} +1 -1
  24. package/dist/client/_nuxt/{DuFGBY9A.js → C8RrL2-P.js} +1 -1
  25. package/dist/client/_nuxt/{CHVLsZmm.js → CA5wVMK1.js} +1 -1
  26. package/dist/client/_nuxt/{CG8l32IX.js → CE84j0J9.js} +1 -1
  27. package/dist/client/_nuxt/{BgkXDMve.js → CLVHkiJk.js} +1 -1
  28. package/dist/client/_nuxt/{CeCFyH2L.js → CPWqrNrA.js} +1 -1
  29. package/dist/client/_nuxt/{2LcXl48m.js → CPr4CZHz.js} +1 -1
  30. package/dist/client/_nuxt/CTKqK4eG.js +1 -1
  31. package/dist/client/_nuxt/{Bmn7JOho.js → CVW-sDYN.js} +1 -1
  32. package/dist/client/_nuxt/{ZTrlmdYI.js → CWyKSuRn.js} +1 -1
  33. package/dist/client/_nuxt/CbViG2Xw.js +1 -1
  34. package/dist/client/_nuxt/{CVc_vzB8.js → Cb_ad2sg.js} +1 -1
  35. package/dist/client/_nuxt/{Diu0Y0PU.js → CcKfWHXB.js} +2 -2
  36. package/dist/client/_nuxt/{s01ATyxb.js → CfVBzxeB.js} +1 -1
  37. package/dist/client/_nuxt/Cic6Ln_D.js +98 -0
  38. package/dist/client/_nuxt/{BfZiPQjx.js → CjFkCrIW.js} +1 -1
  39. package/dist/client/_nuxt/{DMviwfII.js → CmbkPMjd.js} +1 -1
  40. package/dist/client/_nuxt/CnW1WPg6.js +1 -0
  41. package/dist/client/_nuxt/CsgBhI1g.js +16 -0
  42. package/dist/client/_nuxt/Cvo3JE8Q.js +1 -0
  43. package/dist/client/_nuxt/{BiD_nEzt.js → CxLTb5RC.js} +1 -1
  44. package/dist/client/_nuxt/{QIDSXraL.js → CyS6YlEb.js} +1 -1
  45. package/dist/client/_nuxt/{Cfh5adMM.js → CyvuMq07.js} +1 -1
  46. package/dist/client/_nuxt/D-a-w6CR.js +9 -0
  47. package/dist/client/_nuxt/{BgweL_3l.js → D4Ks82zD.js} +1 -1
  48. package/dist/client/_nuxt/{DL9aipy8.js → D8XE2BC8.js} +1 -1
  49. package/dist/client/_nuxt/DDMtKJxh.js +1 -1
  50. package/dist/client/_nuxt/{C5gCGmDW.js → DK4oFTHQ.js} +1 -1
  51. package/dist/client/_nuxt/DKlNNSWk.js +1 -0
  52. package/dist/client/_nuxt/{D8-i-l8m.js → DN0HCnq5.js} +1 -1
  53. package/dist/client/_nuxt/{H6yjxI9R.js → DOv5BRyJ.js} +1 -1
  54. package/dist/client/_nuxt/{BJnuIykn.js → DVZAdofw.js} +1 -1
  55. package/dist/client/_nuxt/{Dcjed-xK.js → DYx1ZwvQ.js} +3 -3
  56. package/dist/client/_nuxt/Di9lD2rK.js +1 -0
  57. package/dist/client/_nuxt/{Bsa9pMTD.js → DoQHeYxB.js} +3 -3
  58. package/dist/client/_nuxt/{ix9IAXj6.js → DpYuRYxj.js} +92 -22
  59. package/dist/client/_nuxt/{2e6xxFgg.js → Dv0NFAnW.js} +1 -1
  60. package/dist/client/_nuxt/{b-sJbkBg.js → DwVKZd3-.js} +1 -1
  61. package/dist/client/_nuxt/{CHDbzgkk.js → DwdKwQHN.js} +1 -1
  62. package/dist/client/_nuxt/{DCIux9Jq.js → JMx2uAI6.js} +1 -1
  63. package/dist/client/_nuxt/{pOm0j4bx.js → VNvxalkE.js} +1 -1
  64. package/dist/client/_nuxt/W2Tyz6z1.js +9 -0
  65. package/dist/client/_nuxt/{BEWN4pmm.js → awWHqjli.js} +1 -1
  66. package/dist/client/_nuxt/builds/latest.json +1 -1
  67. package/dist/client/_nuxt/builds/meta/a69820c2-31c2-48f6-8161-842a62467079.json +1 -0
  68. package/dist/client/_nuxt/ciodjZaS.js +43 -0
  69. package/dist/client/_nuxt/entry.Gpl6Gx6M.css +1 -0
  70. package/dist/client/_nuxt/error-404.Bssqox27.css +1 -0
  71. package/dist/client/_nuxt/error-500.D3oXMFZl.css +1 -0
  72. package/dist/client/_nuxt/{tIa4hiZQ.js → ewAh1ZiX.js} +1 -1
  73. package/dist/client/_nuxt/{CSiYmMfO.js → gXK6hV6W.js} +8 -8
  74. package/dist/client/_nuxt/{Bjf-a2fi.js → pl_4MfI2.js} +1 -1
  75. package/dist/client/_nuxt/{C0RAjPaQ.js → rLudNEh9.js} +1 -1
  76. package/dist/client/_nuxt/timeline.BVVcTKn-.css +1 -0
  77. package/dist/client/_nuxt/{brJlGqJM.js → viHXAOJs.js} +1 -1
  78. package/dist/client/_nuxt/{A4w2ZRz2.js → yFeWtr-M.js} +1 -1
  79. package/dist/client/_nuxt/z0xAc3RC.js +1 -0
  80. package/dist/client/_nuxt/{C8k43jHS.js → zLQhdF7m.js} +1 -1
  81. package/dist/client/_nuxt/{CDN3PKDC.js → zjxoDR5L.js} +1 -1
  82. package/dist/client/index.html +27 -27
  83. package/dist/module.json +1 -1
  84. package/dist/runtime/auth/index.html +2 -12
  85. package/dist/runtime/function-metrics-helpers.mjs +1 -1
  86. package/dist/runtime/plugins/view/Main.vue +1 -1
  87. package/dist/runtime/plugins/view/client.mjs +3 -3
  88. package/dist/runtime/plugins/view/utils.mjs +10 -6
  89. package/package.json +35 -35
  90. package/dist/client/_nuxt/9vVlwvR0.js +0 -9
  91. package/dist/client/_nuxt/BHNRcs4v.js +0 -1
  92. package/dist/client/_nuxt/BMkcc7VF.js +0 -1
  93. package/dist/client/_nuxt/C8cCu25J.js +0 -1
  94. package/dist/client/_nuxt/C9duD8Qg.js +0 -1
  95. package/dist/client/_nuxt/CVnen6aX.js +0 -1
  96. package/dist/client/_nuxt/CZLRDnsa.js +0 -1
  97. package/dist/client/_nuxt/DDT2yUXF.js +0 -98
  98. package/dist/client/_nuxt/DMEbMliD.js +0 -1
  99. package/dist/client/_nuxt/DbOyCHOq.js +0 -16
  100. package/dist/client/_nuxt/DeJGQFsa.js +0 -1
  101. package/dist/client/_nuxt/Dp08BkoM.js +0 -2
  102. package/dist/client/_nuxt/builds/meta/a9356a90-0031-4b93-8375-47585faa7c3c.json +0 -1
  103. package/dist/client/_nuxt/eUQ_X7Id.js +0 -43
  104. package/dist/client/_nuxt/entry.hxdKUDpu.css +0 -1
  105. package/dist/client/_nuxt/error-404.D-YMsRWn.css +0 -1
  106. package/dist/client/_nuxt/error-500.B8squ7MD.css +0 -1
  107. package/dist/client/_nuxt/s9jguXLC.js +0 -9
  108. package/dist/client/_nuxt/timeline.DvDJbalt.css +0 -1
@@ -31,7 +31,7 @@ import { setupHooksDebug } from '../runtime/shared/hooks.mjs';
31
31
  import Git from 'simple-git';
32
32
  import { runtimeDir, clientDir, packageDir, isGlobalInstall } from '../dirs.mjs';
33
33
 
34
- const version = "1.3.9";
34
+ const version = "1.3.14";
35
35
 
36
36
  function getHomeDir() {
37
37
  return process.env.XDG_CONFIG_HOME || homedir();
@@ -270,7 +270,7 @@ You can configure it in Nuxt config at \`devtools.assets.uploadExtensions\`.`);
270
270
  while (await fs.access(`${base}-${i}.${ext}`).then(() => true).catch(() => false))
271
271
  i++;
272
272
  finalPath = `${base}-${i}.${ext}`;
273
- } catch (err) {
273
+ } catch {
274
274
  }
275
275
  }
276
276
  await fs.writeFile(finalPath, content, {
@@ -499,10 +499,11 @@ function parseURL(input = "", defaultProto) {
499
499
  return defaultProto ? parseURL(defaultProto + input) : parsePath(input);
500
500
  }
501
501
  const [, protocol = "", auth, hostAndPath = ""] = input.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [];
502
- const [, host = "", path = ""] = hostAndPath.match(/([^#/?]*)(.*)?/) || [];
503
- const { pathname, search, hash } = parsePath(
504
- path.replace(/\/(?=[A-Za-z]:)/, "")
505
- );
502
+ let [, host = "", path = ""] = hostAndPath.match(/([^#/?]*)(.*)?/) || [];
503
+ if (protocol === "file:") {
504
+ path = path.replace(/\/(?=[A-Za-z]:)/, "");
505
+ }
506
+ const { pathname, search, hash } = parsePath(path);
506
507
  return {
507
508
  protocol: protocol.toLowerCase(),
508
509
  auth: auth ? auth.slice(0, Math.max(0, auth.length - 1)) : "",
@@ -1547,7 +1548,7 @@ function setupAnalyzeBuildRPC({ nuxt, refresh, ensureDevAuthToken }) {
1547
1548
  if (isWorkingTreeClean)
1548
1549
  return `${branchName}#${sha}`;
1549
1550
  return `${branchName}#${sha}-dirty`;
1550
- } catch (e) {
1551
+ } catch {
1551
1552
  return (/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-");
1552
1553
  }
1553
1554
  }
@@ -1,36 +1,36 @@
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.hxdKUDpu.css">
4
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/eUQ_X7Id.js">
3
+ <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.Gpl6Gx6M.css">
4
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ciodjZaS.js">
5
5
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Blr6EMNg.js">
6
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Bxkoe-BC.js">
7
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Br6ll-O0.js">
6
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BLmvGqlk.js">
7
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BYelj_cE.js">
8
8
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CupVZNk8.js">
9
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C5gCGmDW.js">
9
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DK4oFTHQ.js">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbYhyuC0.js">
11
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dch3xQiY.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DC8MraHL.js">
13
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ix9IAXj6.js">
11
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CHuuZgn4.js">
12
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_ECCzcZq.js">
13
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DpYuRYxj.js">
14
14
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbViG2Xw.js">
15
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DuFGBY9A.js">
15
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C8RrL2-P.js">
16
16
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DvyTQcux.js">
17
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZfs-ost.js">
17
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DOv5BRyJ.js">
18
18
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CsTmP73Z.js">
19
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/2LcXl48m.js">
20
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BJnuIykn.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dyz0QDHl.js">
19
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CPr4CZHz.js">
20
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DVZAdofw.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZZpaKJQ.js">
22
22
  <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.BJ-XAY5s.css">
23
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/JOMs3kJS.js">
24
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BfZiPQjx.js">
25
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/brJlGqJM.js">
26
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/2e6xxFgg.js">
27
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Ctb-QkcA.js">
28
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/A4w2ZRz2.js">
29
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BMkcc7VF.js">
30
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dp08BkoM.js">
31
- <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.D-YMsRWn.css">
32
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BHNRcs4v.js">
33
- <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.B8squ7MD.css">
34
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CVnen6aX.js">
35
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/eUQ_X7Id.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
36
- <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"a9356a90-0031-4b93-8375-47585faa7c3c",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
23
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BF_UD7ZT.js">
24
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CjFkCrIW.js">
25
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/viHXAOJs.js">
26
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dv0NFAnW.js">
27
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZvh3yot.js">
28
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/yFeWtr-M.js">
29
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DKlNNSWk.js">
30
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BrzmMRQX.js">
31
+ <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.Bssqox27.css">
32
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BkmSFWMo.js">
33
+ <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.D3oXMFZl.css">
34
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/z0xAc3RC.js">
35
+ <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/ciodjZaS.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
36
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"a69820c2-31c2-48f6-8161-842a62467079",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1,36 +1,36 @@
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.hxdKUDpu.css">
4
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/eUQ_X7Id.js">
3
+ <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.Gpl6Gx6M.css">
4
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ciodjZaS.js">
5
5
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Blr6EMNg.js">
6
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Bxkoe-BC.js">
7
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Br6ll-O0.js">
6
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BLmvGqlk.js">
7
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BYelj_cE.js">
8
8
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CupVZNk8.js">
9
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C5gCGmDW.js">
9
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DK4oFTHQ.js">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbYhyuC0.js">
11
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dch3xQiY.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DC8MraHL.js">
13
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ix9IAXj6.js">
11
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CHuuZgn4.js">
12
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_ECCzcZq.js">
13
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DpYuRYxj.js">
14
14
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbViG2Xw.js">
15
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DuFGBY9A.js">
15
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C8RrL2-P.js">
16
16
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DvyTQcux.js">
17
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZfs-ost.js">
17
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DOv5BRyJ.js">
18
18
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CsTmP73Z.js">
19
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/2LcXl48m.js">
20
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BJnuIykn.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dyz0QDHl.js">
19
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CPr4CZHz.js">
20
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DVZAdofw.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZZpaKJQ.js">
22
22
  <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.BJ-XAY5s.css">
23
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/JOMs3kJS.js">
24
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BfZiPQjx.js">
25
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/brJlGqJM.js">
26
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/2e6xxFgg.js">
27
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Ctb-QkcA.js">
28
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/A4w2ZRz2.js">
29
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BMkcc7VF.js">
30
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dp08BkoM.js">
31
- <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.D-YMsRWn.css">
32
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BHNRcs4v.js">
33
- <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.B8squ7MD.css">
34
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CVnen6aX.js">
35
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/eUQ_X7Id.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
36
- <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"a9356a90-0031-4b93-8375-47585faa7c3c",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
23
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BF_UD7ZT.js">
24
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CjFkCrIW.js">
25
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/viHXAOJs.js">
26
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dv0NFAnW.js">
27
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZvh3yot.js">
28
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/yFeWtr-M.js">
29
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DKlNNSWk.js">
30
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BrzmMRQX.js">
31
+ <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.Bssqox27.css">
32
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BkmSFWMo.js">
33
+ <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.D3oXMFZl.css">
34
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/z0xAc3RC.js">
35
+ <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/ciodjZaS.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
36
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"a69820c2-31c2-48f6-8161-842a62467079",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1 +1 @@
1
- import{_ as p}from"./CDN3PKDC.js";import{d as m,ab as _,m as r,F as s,n as f,o as n,k as o,t as h,h as d,p as k}from"./eUQ_X7Id.js";const g={mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},x={"text-right":""},N={"ws-nowrap":""},y=m({__name:"StacktraceList",props:{stacktrace:{}},setup($){const i=_();function c(a){try{let t=new URL(a).pathname;return t.startsWith("/_nuxt/")&&(t=t.slice(6)),t.startsWith("/@id/virtual:nuxt:")?`#build/${t.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):t.includes("/@fs/")?`/${t.split("/@fs/")[1]}`:(i.value?.rootDir||"")+t}catch{return a}}return(a,t)=>{const l=p;return n(),r("div",g,[(n(!0),r(s,null,f(a.stacktrace,(e,u)=>(n(),r(s,{key:u},[o("div",x,h(e.functionName||"(anonymous)"),1),o("div",N,[e.fileName?(n(),d(l,{key:0,filepath:`${c(e.fileName)}:${e.lineNumber}:${e.columnNumber}`,subpath:""},null,8,["filepath"])):k("",!0)])],64))),128))])}}});export{y as _};
1
+ import{_ as p}from"./zjxoDR5L.js";import{d as m,ab as _,m as r,F as s,n as f,o as n,k as o,t as h,h as d,p as k}from"./ciodjZaS.js";const g={mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},x={"text-right":""},N={"ws-nowrap":""},y=m({__name:"StacktraceList",props:{stacktrace:{}},setup($){const i=_();function c(a){try{let t=new URL(a).pathname;return t.startsWith("/_nuxt/")&&(t=t.slice(6)),t.startsWith("/@id/virtual:nuxt:")?`#build/${t.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):t.includes("/@fs/")?`/${t.split("/@fs/")[1]}`:(i.value?.rootDir||"")+t}catch{return a}}return(a,t)=>{const l=p;return n(),r("div",g,[(n(!0),r(s,null,f(a.stacktrace,(e,u)=>(n(),r(s,{key:u},[o("div",x,h(e.functionName||"(anonymous)"),1),o("div",N,[e.fileName?(n(),d(l,{key:0,filepath:`${c(e.fileName)}:${e.lineNumber}:${e.columnNumber}`,subpath:""},null,8,["filepath"])):k("",!0)])],64))),128))])}}});export{y as _};
@@ -1 +1 @@
1
- import{d as r,u as s,a2 as c,I as i,o as p,h as _,_ as u}from"./eUQ_X7Id.js";const f=r({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(l){const t=s();return(n,e)=>{const o=u,a=c("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=m=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{f as _};
1
+ import{d as r,u as s,a2 as c,I as i,o as p,h as _,_ as u}from"./ciodjZaS.js";const f=r({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(l){const t=s();return(n,e)=>{const o=u,a=c("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=m=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{f as _};
@@ -1 +1 @@
1
- import{_ as x}from"./Bjf-a2fi.js";import{_ as y}from"./CHDbzgkk.js";import{o as l,m as p,k as n,v as d,d as b,am as C,bF as k,a as u,f as t,i as e,j as a,p as w,F as N}from"./eUQ_X7Id.js";import{_ as R}from"./BgkXDMve.js";import"./B3xdBQzM.js";import"./DkQfqnYF.js";import"./C8k43jHS.js";const T={class:"markdown-body"},B=n("h1",null,"Runtime Configs",-1),F=n("p",null,"Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables.",-1),V=n("p",null,[d("In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your "),n("code",null,"nuxt.config.js"),d(" file, or check more details in the documentation.")],-1),$=n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),D=[B,F,V,$],P={__name:"runtime-configs",setup(f,{expose:o}){return o({frontmatter:{}}),(m,i)=>(l(),p("div",T,D))}},S=P,j={key:0},J=b({__name:"runtime-configs",setup(f){const o=C(),_=k(),m=u(()=>o.value?.nuxt.payload),i=u(()=>o.value?.revision.value),g=u(()=>{const s={..._.value};return delete s.public,delete s.app,s});return(s,A)=>{const r=x,c=y,h=S,v=R;return l(),p(N,null,[t(o)?(l(),p("div",j,[e(c,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:a(()=>[e(r,{state:t(o).app.appConfig,revision:t(i)},null,8,["state","revision"])]),_:1}),e(c,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:a(()=>[e(r,{state:t(m).config?.public,revision:t(i)},null,8,["state","revision"])]),_:1}),e(c,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:a(()=>[e(r,{state:t(g),revision:t(i),readonly:""},null,8,["state","revision"])]),_:1})])):w("",!0),e(v,null,{default:a(()=>[e(h)]),_:1})],64)}}});export{J as default};
1
+ import{_ as x}from"./pl_4MfI2.js";import{_ as y}from"./DwdKwQHN.js";import{o as l,m as p,k as n,v as d,d as b,am as C,bG as k,a as u,f as t,i as e,j as a,p as w,F as N}from"./ciodjZaS.js";import{_ as R}from"./CLVHkiJk.js";import"./B-wfK0SS.js";import"./BMUgLter.js";import"./zLQhdF7m.js";const T={class:"markdown-body"},B=n("h1",null,"Runtime Configs",-1),V=n("p",null,"Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables.",-1),$=n("p",null,[d("In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your "),n("code",null,"nuxt.config.js"),d(" file, or check more details in the documentation.")],-1),D=n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),F=[B,V,$,D],P={__name:"runtime-configs",setup(f,{expose:o}){return o({frontmatter:{}}),(m,i)=>(l(),p("div",T,F))}},S=P,j={key:0},J=b({__name:"runtime-configs",setup(f){const o=C(),_=k(),m=u(()=>o.value?.nuxt.payload),i=u(()=>o.value?.revision.value),g=u(()=>{const s={..._.value};return delete s.public,delete s.app,s});return(s,A)=>{const r=x,c=y,h=S,v=R;return l(),p(N,null,[t(o)?(l(),p("div",j,[e(c,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:a(()=>[e(r,{state:t(o).app.appConfig,revision:t(i)},null,8,["state","revision"])]),_:1}),e(c,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:a(()=>[e(r,{state:t(m).config?.public,revision:t(i)},null,8,["state","revision"])]),_:1}),e(c,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:a(()=>[e(r,{state:t(g),revision:t(i),readonly:""},null,8,["state","revision"])]),_:1})])):w("",!0),e(v,null,{default:a(()=>[e(h)]),_:1})],64)}}});export{J as default};
@@ -1 +1 @@
1
- import{d as P,a as I,r as V,o,m as s,k as e,F as _,n as j,G as S,f as t,t as p,p as b,H as U,i as u,j as r,v as f,I as A,J as D,K as X,L as F,M as E,_ as G,N as q,O as ee,P as ne,Q as te,R as oe,S as le,U as ie,V as se,W as C,h as z,l as R,X as ae,Y as re,Z as ue,A as de}from"./eUQ_X7Id.js";import{_ as ce}from"./CDN3PKDC.js";import{_ as me}from"./Ctb-QkcA.js";import{_ as _e}from"./CktVnUy9.js";import{_ as pe}from"./BgkXDMve.js";import"./A4w2ZRz2.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ve={flex:"~ wrap","w-full":""},he=["onClick"],ye=e("div",{border:"b base","flex-auto":""},null,-1),be={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},$e=e("div",{"flex-auto":""},null,-1),xe={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge=e("div",{"i-carbon-commit":"","text-xl":""},null,-1),we=e("div",{"text-sm":"",op50:""}," Name ",-1),ze=e("div",{"i-carbon-time":"","text-xl":""},null,-1),Be=e("div",{"text-sm":"",op50:""}," Build duration ",-1),Ce=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1),ke=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1),Ne=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1),Te=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1),Ae=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1),De=e("div",{"text-sm":"",op50:""}," Built ",-1),Ie=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1),Ve=e("div",{"text-sm":"",op50:""}," Report Path ",-1),Se=e("div",{"flex-auto":""},null,-1),Fe=P({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(k){const v=k,x=`${X().app.baseURL}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),g=I(()=>{const n=[{name:"Overview",id:"overview"}];return v.current.features.bundleClient&&n.push({name:"Client Bundle",id:"bundle-client"}),v.current.features.bundleNitro&&n.push({name:"Nitro Bundle",id:"bundle-nitro"}),v.current.features.viteInspect&&n.push({name:"Vite Inspect",id:"vite-inspect"}),n}),i=V(g.value[0]);function h(n){return n<1024?`${n}B`:n<1024*1024?`${(n/1024).toFixed(1)}KB`:n<1024*1024*1024?`${(n/1024/1024).toFixed(1)}MB`:`${(n/1024/1024/1024).toFixed(1)}GB`}function d(n){return`${((n.endTime-n.startTime)/1e3).toFixed(1)}s`}async function N(n){return F.clearAnalyzeBuilds(await E(),[n])}return(n,c)=>{const B=ce,T=G;return o(),s("div",fe,[e("div",ve,[(o(!0),s(_,null,j(t(g),(l,m)=>(o(),s("button",{key:m,px4:"",py2:"",border:"r base",hover:"bg-active",class:S(l.id===t(i).id?"":"border-b"),onClick:w=>i.value=l},[e("div",{class:S(l.id===t(i).id?"":"op30")},p(l.name),3)],10,he))),128)),ye]),t(i).id==="overview"?(o(),s("div",be,[$e,e("div",xe,[ge,e("div",null,[we,e("div",null,p(n.current.name),1)]),ze,e("div",null,[Be,e("div",null,p(d(n.current)),1)]),n.current.size?.clientBundle?(o(),s(_,{key:0},[Ce,e("div",null,[ke,e("div",null,p(h(n.current.size.clientBundle)),1)])],64)):b("",!0),n.current.size.nitroBundle?(o(),s(_,{key:1},[Ne,e("div",null,[Te,e("div",null,p(h(n.current.size.nitroBundle)),1)])],64)):b("",!0),Ae,e("div",null,[De,e("div",null,p(t(U)(new Date(n.current.endTime))),1)]),Ie,e("div",null,[Ve,u(B,{filepath:n.current.analyzeDir},null,8,["filepath"])])]),Se,u(T,{n:"rose",icon:"carbon-delete",onClick:c[0]||(c[0]=l=>N(n.current.name))},{default:r(()=>[f(" Delete this report ")]),_:1})])):b("",!0),c._lazyshow1||t(i).id==="bundle-client"?(c._lazyshow1=!0,o(),s(_,null,[A(e("iframe",{src:`${t(x)}${n.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,t(i).id==="bundle-client"]])],64)):b("v-show-if",!0),c._lazyshow2||t(i).id==="bundle-nitro"?(c._lazyshow2=!0,o(),s(_,null,[A(e("iframe",{src:`${t(x)}${n.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,t(i).id==="bundle-nitro"]])],64)):b("v-show-if",!0),c._lazyshow3||t(i).id==="vite-inspect"?(c._lazyshow3=!0,o(),s(_,null,[A(e("iframe",{src:`${t(x)}${n.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[D,t(i).id==="vite-inspect"]])],64)):b("v-show-if",!0)])}}}),Re={class:"markdown-body"},Pe=e("h1",null,"Build Analyze",-1),je=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),Ue=[Pe,je],Ee={__name:"analyze-build",setup(k,{expose:v}){return v({frontmatter:{}}),(x,g)=>(o(),s("div",Re,Ue))}},Ge=Ee,Le={flex:"~ col"},Oe=["onClick"],He={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},Ke=e("div",{"i-carbon-time":""},null,-1),Me=e("div",{"flex-auto":""},null,-1),We=e("div",{"x-divider":""},null,-1),Ye={flex:"~ items-center justify-center wrap",p4:""},Ze={flex:"~ col gap-1","w-250":"",p4:""},Je=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1),Qe=e("p",{op50:""}," Enter the name of the build: ",-1),Xe=e("div",{my3:"","x-divider":""},null,-1),qe=e("p",{op50:""}," The following command will be executed in your terminal: ",-1),en={flex:"~ gap-3",mt2:"","justify-end":""},rn=P({__name:"analyze-build",setup(k){const v=q(),$=ee(),x=ne(),g=te("analyze-build:slug",""),i=I(()=>$.value?.builds.find(l=>l.slug===g.value)??$.value?.builds[0]),h=V(!1),d=V(""),N=I(()=>$.value?.builds.some(l=>l.name===d.value.trim()));async function n(){d.value=await F.generateAnalyzeBuildName(),await v.start()&&(se("analyze-build:start"),C.value={name:d.value,processId:await F.startAnalyzeBuild(await E(),d.value)},h.value&&B())}const c=oe();function B(){C.value?.processId&&(c.value=C.value.processId,x.push("/modules/terminals"))}function T(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:n}]),(l,m)=>{const w=G,L=Fe,O=de,H=ie,K=ae,M=re,W=me,Y=_e,Z=ue,J=Ge,Q=pe;return o(),s(_,null,[u(H,{"left-size":30},{left:r(()=>[e("div",Le,[(o(!0),s(_,null,j(t($)?.builds,a=>(o(),s(_,{key:a.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:S(a.slug===t(i)?.slug?"text-primary bg-active":""),onClick:y=>g.value=a.slug},[e("code",null,p(a.name),1),e("div",He,[Ke,e("span",null,p(T(a)),1),Me,e("span",null,p(t(U)(new Date(a.endTime))),1)])],10,Oe),We],64))),128)),e("div",Ye,[("processAnalyzeBuildInfo"in l?l.processAnalyzeBuildInfo:t(C))?(o(),z(w,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:m[1]||(m[1]=a=>B())},{default:r(()=>[f(" Building... ")]),_:1})):(o(),z(w,{key:0,n:"primary",icon:"carbon-edge-node",onClick:m[0]||(m[0]=a=>n())},{default:r(()=>[f(" Start a new build ")]),_:1}))])])]),right:r(()=>[t(i)?(o(),z(L,{key:0,current:t(i)},null,8,["current"])):(o(),z(O,{key:1}))]),_:1}),u(t(v),null,{default:r(({resolve:a})=>[u(Z,{"model-value":!0,onClose:y=>a(!1)},{default:r(()=>[e("div",Ze,[Je,Qe,u(K,{modelValue:t(d),"onUpdate:modelValue":m[2]||(m[2]=y=>R(d)?d.value=y:null),placeholder:"Build name"},null,8,["modelValue"]),t(N)?(o(),z(M,{key:0,"n-orange":""},{default:r(()=>[f(" A build with the same name already exists, continue would overrides the previous build result. ")]),_:1})):b("",!0),Xe,qe,u(W,{code:`npx nuxi analyze --no-serve --name=${t(d)}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),u(Y,{modelValue:t(h),"onUpdate:modelValue":m[3]||(m[3]=y=>R(h)?h.value=y:null),mt2:"",n:"primary"},{default:r(()=>[f(" Navigate to terminal ")]),_:1},8,["modelValue"]),e("div",en,[u(w,{onClick:y=>a(!1)},{default:r(()=>[f(" Cancel ")]),_:2},1032,["onClick"]),u(w,{n:"solid primary",onClick:y=>a(!0)},{default:r(()=>[f(" Start ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),u(Q,null,{default:r(()=>[u(J)]),_:1})],64)}}});export{rn as default};
1
+ import{d as P,a as I,r as V,o,m as s,k as e,F as _,n as j,G as S,f as t,t as p,p as b,H as U,i as u,j as r,v as f,I as A,J as D,K as X,L as F,M as E,_ as G,N as q,O as ee,P as ne,Q as te,R as oe,S as le,U as ie,V as se,W as C,h as z,l as R,X as ae,Y as re,Z as ue,A as de}from"./ciodjZaS.js";import{_ as ce}from"./zjxoDR5L.js";import{_ as me}from"./BZvh3yot.js";import{_ as _e}from"./BWPbreBU.js";import{_ as pe}from"./CLVHkiJk.js";import"./yFeWtr-M.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ve={flex:"~ wrap","w-full":""},he=["onClick"],ye=e("div",{border:"b base","flex-auto":""},null,-1),be={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},$e=e("div",{"flex-auto":""},null,-1),xe={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge=e("div",{"i-carbon-commit":"","text-xl":""},null,-1),we=e("div",{"text-sm":"",op50:""}," Name ",-1),ze=e("div",{"i-carbon-time":"","text-xl":""},null,-1),Be=e("div",{"text-sm":"",op50:""}," Build duration ",-1),Ce=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1),ke=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1),Ne=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1),Te=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1),Ae=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1),De=e("div",{"text-sm":"",op50:""}," Built ",-1),Ie=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1),Ve=e("div",{"text-sm":"",op50:""}," Report Path ",-1),Se=e("div",{"flex-auto":""},null,-1),Fe=P({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(k){const v=k,x=`${X().app.baseURL}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),g=I(()=>{const n=[{name:"Overview",id:"overview"}];return v.current.features.bundleClient&&n.push({name:"Client Bundle",id:"bundle-client"}),v.current.features.bundleNitro&&n.push({name:"Nitro Bundle",id:"bundle-nitro"}),v.current.features.viteInspect&&n.push({name:"Vite Inspect",id:"vite-inspect"}),n}),i=V(g.value[0]);function h(n){return n<1024?`${n}B`:n<1024*1024?`${(n/1024).toFixed(1)}KB`:n<1024*1024*1024?`${(n/1024/1024).toFixed(1)}MB`:`${(n/1024/1024/1024).toFixed(1)}GB`}function d(n){return`${((n.endTime-n.startTime)/1e3).toFixed(1)}s`}async function N(n){return F.clearAnalyzeBuilds(await E(),[n])}return(n,c)=>{const B=ce,T=G;return o(),s("div",fe,[e("div",ve,[(o(!0),s(_,null,j(t(g),(l,m)=>(o(),s("button",{key:m,px4:"",py2:"",border:"r base",hover:"bg-active",class:S(l.id===t(i).id?"":"border-b"),onClick:w=>i.value=l},[e("div",{class:S(l.id===t(i).id?"":"op30")},p(l.name),3)],10,he))),128)),ye]),t(i).id==="overview"?(o(),s("div",be,[$e,e("div",xe,[ge,e("div",null,[we,e("div",null,p(n.current.name),1)]),ze,e("div",null,[Be,e("div",null,p(d(n.current)),1)]),n.current.size?.clientBundle?(o(),s(_,{key:0},[Ce,e("div",null,[ke,e("div",null,p(h(n.current.size.clientBundle)),1)])],64)):b("",!0),n.current.size.nitroBundle?(o(),s(_,{key:1},[Ne,e("div",null,[Te,e("div",null,p(h(n.current.size.nitroBundle)),1)])],64)):b("",!0),Ae,e("div",null,[De,e("div",null,p(t(U)(new Date(n.current.endTime))),1)]),Ie,e("div",null,[Ve,u(B,{filepath:n.current.analyzeDir},null,8,["filepath"])])]),Se,u(T,{n:"rose",icon:"carbon-delete",onClick:c[0]||(c[0]=l=>N(n.current.name))},{default:r(()=>[f(" Delete this report ")]),_:1})])):b("",!0),c._lazyshow1||t(i).id==="bundle-client"?(c._lazyshow1=!0,o(),s(_,null,[A(e("iframe",{src:`${t(x)}${n.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,t(i).id==="bundle-client"]])],64)):b("v-show-if",!0),c._lazyshow2||t(i).id==="bundle-nitro"?(c._lazyshow2=!0,o(),s(_,null,[A(e("iframe",{src:`${t(x)}${n.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,t(i).id==="bundle-nitro"]])],64)):b("v-show-if",!0),c._lazyshow3||t(i).id==="vite-inspect"?(c._lazyshow3=!0,o(),s(_,null,[A(e("iframe",{src:`${t(x)}${n.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[D,t(i).id==="vite-inspect"]])],64)):b("v-show-if",!0)])}}}),Re={class:"markdown-body"},Pe=e("h1",null,"Build Analyze",-1),je=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),Ue=[Pe,je],Ee={__name:"analyze-build",setup(k,{expose:v}){return v({frontmatter:{}}),(x,g)=>(o(),s("div",Re,Ue))}},Ge=Ee,Le={flex:"~ col"},Oe=["onClick"],He={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},Ke=e("div",{"i-carbon-time":""},null,-1),Me=e("div",{"flex-auto":""},null,-1),We=e("div",{"x-divider":""},null,-1),Ye={flex:"~ items-center justify-center wrap",p4:""},Ze={flex:"~ col gap-1","w-250":"",p4:""},Je=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1),Qe=e("p",{op50:""}," Enter the name of the build: ",-1),Xe=e("div",{my3:"","x-divider":""},null,-1),qe=e("p",{op50:""}," The following command will be executed in your terminal: ",-1),en={flex:"~ gap-3",mt2:"","justify-end":""},rn=P({__name:"analyze-build",setup(k){const v=q(),$=ee(),x=ne(),g=te("analyze-build:slug",""),i=I(()=>$.value?.builds.find(l=>l.slug===g.value)??$.value?.builds[0]),h=V(!1),d=V(""),N=I(()=>$.value?.builds.some(l=>l.name===d.value.trim()));async function n(){d.value=await F.generateAnalyzeBuildName(),await v.start()&&(se("analyze-build:start"),C.value={name:d.value,processId:await F.startAnalyzeBuild(await E(),d.value)},h.value&&B())}const c=oe();function B(){C.value?.processId&&(c.value=C.value.processId,x.push("/modules/terminals"))}function T(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:n}]),(l,m)=>{const w=G,L=Fe,O=de,H=ie,K=ae,M=re,W=me,Y=_e,Z=ue,J=Ge,Q=pe;return o(),s(_,null,[u(H,{"left-size":30},{left:r(()=>[e("div",Le,[(o(!0),s(_,null,j(t($)?.builds,a=>(o(),s(_,{key:a.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:S(a.slug===t(i)?.slug?"text-primary bg-active":""),onClick:y=>g.value=a.slug},[e("code",null,p(a.name),1),e("div",He,[Ke,e("span",null,p(T(a)),1),Me,e("span",null,p(t(U)(new Date(a.endTime))),1)])],10,Oe),We],64))),128)),e("div",Ye,[("processAnalyzeBuildInfo"in l?l.processAnalyzeBuildInfo:t(C))?(o(),z(w,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:m[1]||(m[1]=a=>B())},{default:r(()=>[f(" Building... ")]),_:1})):(o(),z(w,{key:0,n:"primary",icon:"carbon-edge-node",onClick:m[0]||(m[0]=a=>n())},{default:r(()=>[f(" Start a new build ")]),_:1}))])])]),right:r(()=>[t(i)?(o(),z(L,{key:0,current:t(i)},null,8,["current"])):(o(),z(O,{key:1}))]),_:1}),u(t(v),null,{default:r(({resolve:a})=>[u(Z,{"model-value":!0,onClose:y=>a(!1)},{default:r(()=>[e("div",Ze,[Je,Qe,u(K,{modelValue:t(d),"onUpdate:modelValue":m[2]||(m[2]=y=>R(d)?d.value=y:null),placeholder:"Build name"},null,8,["modelValue"]),t(N)?(o(),z(M,{key:0,"n-orange":""},{default:r(()=>[f(" A build with the same name already exists, continue would overrides the previous build result. ")]),_:1})):b("",!0),Xe,qe,u(W,{code:`npx nuxi analyze --no-serve --name=${t(d)}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),u(Y,{modelValue:t(h),"onUpdate:modelValue":m[3]||(m[3]=y=>R(h)?h.value=y:null),mt2:"",n:"primary"},{default:r(()=>[f(" Navigate to terminal ")]),_:1},8,["modelValue"]),e("div",en,[u(w,{onClick:y=>a(!1)},{default:r(()=>[f(" Cancel ")]),_:2},1032,["onClick"]),u(w,{n:"solid primary",onClick:y=>a(!0)},{default:r(()=>[f(" Start ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),u(Q,null,{default:r(()=>[u(J)]),_:1})],64)}}});export{rn as default};