@nuxt/devtools 1.3.8 → 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.
- package/dist/chunks/module-main.mjs +526 -5
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +27 -27
- package/dist/client/404.html +27 -27
- package/dist/client/_nuxt/{C7cYo4YF.js → 2tJW9cKr.js} +1 -1
- package/dist/client/_nuxt/{CbM9OHn3.js → B-wfK0SS.js} +1 -1
- package/dist/client/_nuxt/B2TuRHFi.js +1 -0
- package/dist/client/_nuxt/{DKSts1V4.js → BEKXAodE.js} +1 -1
- package/dist/client/_nuxt/{Ckn823xU.js → BF_UD7ZT.js} +114 -114
- package/dist/client/_nuxt/{Cuq1Z6bh.js → BHBvn5Xs.js} +1 -1
- package/dist/client/_nuxt/BLmvGqlk.js +1 -0
- package/dist/client/_nuxt/{DX-YUedo.js → BMUgLter.js} +9 -9
- package/dist/client/_nuxt/BMbUeBqv.js +1 -1
- package/dist/client/_nuxt/{BjYCaXNT.js → BO314c-_.js} +1 -1
- package/dist/client/_nuxt/{GdB9kz-4.js → BWPbreBU.js} +1 -1
- package/dist/client/_nuxt/BYelj_cE.js +1 -0
- package/dist/client/_nuxt/{BLxIf9BH.js → BZZpaKJQ.js} +1 -1
- package/dist/client/_nuxt/{CPUwo9Dx.js → BZvh3yot.js} +2 -2
- package/dist/client/_nuxt/BcJweaq3.js +9 -0
- package/dist/client/_nuxt/{CH-roGkP.js → Bi99gj7u.js} +1 -1
- package/dist/client/_nuxt/{DETXY6Xa.js → BkmSFWMo.js} +1 -1
- package/dist/client/_nuxt/{DvDu1JUs.js → Bl8OBrwH.js} +1 -1
- package/dist/client/_nuxt/BrzmMRQX.js +2 -0
- package/dist/client/_nuxt/{8q1pCtVS.js → C4OO6w_e.js} +1 -1
- package/dist/client/_nuxt/{DuFGBY9A.js → C8RrL2-P.js} +1 -1
- package/dist/client/_nuxt/{BnXFHUk0.js → CA5wVMK1.js} +1 -1
- package/dist/client/_nuxt/{Dslz6rss.js → CE84j0J9.js} +1 -1
- package/dist/client/_nuxt/{o8QbmO42.js → CLVHkiJk.js} +1 -1
- package/dist/client/_nuxt/{DE5e3ZuV.js → CPWqrNrA.js} +1 -1
- package/dist/client/_nuxt/{C8N9kWh2.js → CPr4CZHz.js} +1 -1
- package/dist/client/_nuxt/CTKqK4eG.js +1 -1
- package/dist/client/_nuxt/CVW-sDYN.js +1 -0
- package/dist/client/_nuxt/{D0h9jATl.js → CWyKSuRn.js} +1 -1
- package/dist/client/_nuxt/CbViG2Xw.js +1 -1
- package/dist/client/_nuxt/{fwfpIEej.js → Cb_ad2sg.js} +1 -1
- package/dist/client/_nuxt/{dXjzJhiW.js → CcKfWHXB.js} +2 -2
- package/dist/client/_nuxt/{BG5RUyXI.js → CfVBzxeB.js} +1 -1
- package/dist/client/_nuxt/Cic6Ln_D.js +98 -0
- package/dist/client/_nuxt/{B_lF4o9u.js → CjFkCrIW.js} +1 -1
- package/dist/client/_nuxt/{D7m39p-9.js → CmbkPMjd.js} +1 -1
- package/dist/client/_nuxt/CnW1WPg6.js +1 -0
- package/dist/client/_nuxt/CsgBhI1g.js +16 -0
- package/dist/client/_nuxt/Cvo3JE8Q.js +1 -0
- package/dist/client/_nuxt/{DJdrWIcn.js → CxLTb5RC.js} +1 -1
- package/dist/client/_nuxt/{DVk2I1gO.js → CyS6YlEb.js} +1 -1
- package/dist/client/_nuxt/{mQFKENXH.js → CyvuMq07.js} +1 -1
- package/dist/client/_nuxt/D-a-w6CR.js +9 -0
- package/dist/client/_nuxt/{Xpd7UJs5.js → D4Ks82zD.js} +1 -1
- package/dist/client/_nuxt/{DdjW6vu9.js → D8XE2BC8.js} +1 -1
- package/dist/client/_nuxt/DDMtKJxh.js +1 -1
- package/dist/client/_nuxt/{C5gCGmDW.js → DK4oFTHQ.js} +1 -1
- package/dist/client/_nuxt/{C3FSKLnj.js → DKlNNSWk.js} +1 -1
- package/dist/client/_nuxt/{Cda7aUrs.js → DN0HCnq5.js} +1 -1
- package/dist/client/_nuxt/{H6yjxI9R.js → DOv5BRyJ.js} +1 -1
- package/dist/client/_nuxt/{Bxh-fvdv.js → DVZAdofw.js} +1 -1
- package/dist/client/_nuxt/{DeSj8VZN.js → DYx1ZwvQ.js} +1 -1
- package/dist/client/_nuxt/Di9lD2rK.js +1 -0
- package/dist/client/_nuxt/{BM3cCZms.js → DoQHeYxB.js} +3 -3
- package/dist/client/_nuxt/{ix9IAXj6.js → DpYuRYxj.js} +92 -22
- package/dist/client/_nuxt/{B04hL9Ab.js → Dv0NFAnW.js} +1 -1
- package/dist/client/_nuxt/{DEkvPDn8.js → DwVKZd3-.js} +1 -1
- package/dist/client/_nuxt/{QBzUTbSD.js → DwdKwQHN.js} +1 -1
- package/dist/client/_nuxt/{BRFlSxxW.js → JMx2uAI6.js} +1 -1
- package/dist/client/_nuxt/{BS5FcDmG.js → VNvxalkE.js} +1 -1
- package/dist/client/_nuxt/W2Tyz6z1.js +9 -0
- package/dist/client/_nuxt/{QQ7YbgtC.js → awWHqjli.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/a69820c2-31c2-48f6-8161-842a62467079.json +1 -0
- package/dist/client/_nuxt/ciodjZaS.js +43 -0
- package/dist/client/_nuxt/entry.Gpl6Gx6M.css +1 -0
- package/dist/client/_nuxt/error-404.Bssqox27.css +1 -0
- package/dist/client/_nuxt/error-500.D3oXMFZl.css +1 -0
- package/dist/client/_nuxt/{Csl1JfEo.js → ewAh1ZiX.js} +1 -1
- package/dist/client/_nuxt/{CHQglk26.js → gXK6hV6W.js} +8 -8
- package/dist/client/_nuxt/pl_4MfI2.js +1 -0
- package/dist/client/_nuxt/{BTj8T8Us.js → rLudNEh9.js} +1 -1
- package/dist/client/_nuxt/terminals.BIEho_Pa.css +1 -0
- package/dist/client/_nuxt/timeline.BVVcTKn-.css +1 -0
- package/dist/client/_nuxt/{BdSLTmjP.js → viHXAOJs.js} +1 -1
- package/dist/client/_nuxt/yFeWtr-M.js +1 -0
- package/dist/client/_nuxt/{CyiHZscW.js → z0xAc3RC.js} +1 -1
- package/dist/client/_nuxt/{_OFeGLwh.js → zLQhdF7m.js} +1 -1
- package/dist/client/_nuxt/{CGZO0Dbu.js → zjxoDR5L.js} +1 -1
- package/dist/client/index.html +27 -27
- package/dist/module.json +1 -1
- package/dist/runtime/auth/index.html +2 -12
- package/dist/runtime/function-metrics-helpers.mjs +1 -1
- package/dist/runtime/plugins/view/Main.vue +1 -1
- package/dist/runtime/plugins/view/client.mjs +7 -5
- package/dist/runtime/plugins/view/utils.mjs +10 -6
- package/package.json +37 -37
- package/dist/client/_nuxt/B6TDWpKk.js +0 -1
- package/dist/client/_nuxt/BvHZCDLj.js +0 -9
- package/dist/client/_nuxt/BwKcIQOa.js +0 -16
- package/dist/client/_nuxt/C2c19bzT.js +0 -1
- package/dist/client/_nuxt/C9duD8Qg.js +0 -1
- package/dist/client/_nuxt/CCEQErg8.js +0 -1
- package/dist/client/_nuxt/CSGOJSAd.js +0 -1
- package/dist/client/_nuxt/CZLRDnsa.js +0 -1
- package/dist/client/_nuxt/CfkdovQd.js +0 -98
- package/dist/client/_nuxt/CssX2CxZ.js +0 -2
- package/dist/client/_nuxt/CwTcTc2N.js +0 -43
- package/dist/client/_nuxt/D5ctTtkd.js +0 -1
- package/dist/client/_nuxt/DJS8TjB-.js +0 -1
- package/dist/client/_nuxt/DluxqTUE.js +0 -1
- package/dist/client/_nuxt/builds/meta/8ac9da91-0524-4abf-a805-60b3d6199fe9.json +0 -1
- package/dist/client/_nuxt/entry.hxdKUDpu.css +0 -1
- package/dist/client/_nuxt/error-404.C4UNnO0a.css +0 -1
- package/dist/client/_nuxt/error-500.BbJ9e2Fk.css +0 -1
- package/dist/client/_nuxt/pA_iBoe4.js +0 -9
- package/dist/client/_nuxt/terminals.dNTO8Cf0.css +0 -1
- package/dist/client/_nuxt/timeline.DvDJbalt.css +0 -1
- package/dist/client/_nuxt/wGyJxDW5.js +0 -9
package/dist/client/404.html
CHANGED
|
@@ -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.
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
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/
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
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/
|
|
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/
|
|
12
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
13
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
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/
|
|
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/
|
|
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/
|
|
20
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
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/
|
|
24
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
25
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
31
|
-
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.
|
|
32
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
33
|
-
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.
|
|
34
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
35
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
36
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"
|
|
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"./
|
|
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"./
|
|
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 _};
|
|
@@ -0,0 +1 @@
|
|
|
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"./
|
|
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};
|