@nuxt/devtools-nightly 2.1.0-29010833.15dbe6d → 2.1.1-29011967.946dd03
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +1 -1
- package/dist/client/200.html +12 -12
- package/dist/client/404.html +12 -12
- package/dist/client/_nuxt/__blank-ld6vcstp.js +1 -0
- package/dist/client/_nuxt/{analyze-build-cvjhkvjo.js → analyze-build-bbyx6d48.js} +1 -1
- package/dist/client/_nuxt/{assets-oulv8p46.js → assets-ezhwtw4n.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/d9cd5dce-0076-49b4-a14f-897c8d40cbbd.json +1 -0
- package/dist/client/_nuxt/{oxe0udya.js → cco50vfc.js} +4 -4
- package/dist/client/_nuxt/{code-diff.vue-eocc41pr.js → code-diff.vue-esvcved6.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-efpsav7c.js → code-snippets.vue-n2k48x1d.js} +1 -1
- package/dist/client/_nuxt/{components-oyyjeqiw.js → components-hahb9omk.js} +1 -1
- package/dist/client/_nuxt/{composable-item.vue-bzp63wwm.js → composable-item.vue-gy1krk37.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-onqw9a1n.js → custom-_name_-e2csi8ll.js} +1 -1
- package/dist/client/_nuxt/{data-schema-button.vue-ko85hw9e.js → data-schema-button.vue-k9rqf4fn.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-ntv77byl.js → data-schema-drawer-dr0t6jh1.js} +1 -1
- package/dist/client/_nuxt/{default-nzbz0bgu.js → default-dfw02wxu.js} +1 -1
- package/dist/client/_nuxt/{error-404-dvmb5336.js → error-404-l30uf0y1.js} +1 -1
- package/dist/client/_nuxt/{error-500-o51aqv1s.js → error-500-dfm5cmo3.js} +1 -1
- package/dist/client/_nuxt/{error-mqef7iny.js → error-g3n67c2a.js} +1 -1
- package/dist/client/_nuxt/{filepath-item.vue-fwhfa43n.js → filepath-item.vue-jywmf4hm.js} +1 -1
- package/dist/client/_nuxt/{full-h80bx6fj.js → full-f6fuzge6.js} +1 -1
- package/dist/client/_nuxt/{help-fab.vue-k4u5ofw5.js → help-fab.vue-gttgicih.js} +1 -1
- package/dist/client/_nuxt/{hooks-m9epcuu3.js → hooks-zs4sbuc4.js} +1 -1
- package/dist/client/_nuxt/{imports-i5m6ftnd.js → imports-gz28imf5.js} +1 -1
- package/dist/client/_nuxt/{index-dw5mno77.js → index-lakcd7p2.js} +1 -1
- package/dist/client/_nuxt/{launch-page.vue-fnrp7zjb.js → launch-page.vue-j86a1c7h.js} +1 -1
- package/dist/client/_nuxt/{modules-k8csdlt3.js → modules-k9nw297u.js} +1 -1
- package/dist/client/_nuxt/{nbadge-jvyvrl6c.js → nbadge-c64mcnik.js} +1 -1
- package/dist/client/_nuxt/{ncheckbox.vue-n785sfxh.js → ncheckbox.vue-l7pfajtr.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-ng1vhz5m.js → ndrawer.vue-nswzsez9.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-i86w14q7.js → ndropdown.vue-c8hjhpbm.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-n73b3eoz.js → nlink.vue-htpi1lbr.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-d4wh5lbd.js → nnavbar.vue-m0dzh334.js} +1 -1
- package/dist/client/_nuxt/{none-g70n6zpj.js → none-fhj9bkje.js} +1 -1
- package/dist/client/_nuxt/{nsection-block-ik5hcxqh.js → nsection-block-h34q4gf5.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs.vue-bwz4zr04.js → nselect-tabs.vue-jxzrd6co.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-i09woppj.js → nselect.vue-gzbz5npv.js} +1 -1
- package/dist/client/_nuxt/{open-graph-ho93jk1q.js → open-graph-bhigu87e.js} +1 -1
- package/dist/client/_nuxt/{overview-kvjom2ds.js → overview-ec6pz8rg.js} +1 -1
- package/dist/client/_nuxt/{pages-nsitpxjt.js → pages-hy6wj1ma.js} +1 -1
- package/dist/client/_nuxt/{payload-m8p9k3e3.js → payload-mopnfxha.js} +1 -1
- package/dist/client/_nuxt/{pinia-nfun5kzp.js → pinia-bcs8katy.js} +1 -1
- package/dist/client/_nuxt/{plugins-mzggz2zj.js → plugins-lycdogtx.js} +1 -1
- package/dist/client/_nuxt/{render-tree-44oocbyu.js → render-tree-mlbdtv01.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-h0bsh63y.js → runtime-configs-v3crvvwz.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-ovd1pv67.js → server-discovery-itbbhivk.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-f0ahq663.js → server-route-inputs.vue-ed7p149x.js} +1 -1
- package/dist/client/_nuxt/{server-routes-bolyneid.js → server-routes-cmns8xyn.js} +1 -1
- package/dist/client/_nuxt/{server-tasks-fdjd81oh.js → server-tasks-is4he0vd.js} +1 -1
- package/dist/client/_nuxt/{settings-g56571ih.js → settings-jl3au3y5.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list.vue-oszdbwzk.js → stacktrace-list.vue-pb6nvom9.js} +1 -1
- package/dist/client/_nuxt/{state-components-l0zza8bb.js → state-components-bg7emq01.js} +1 -1
- package/dist/client/_nuxt/{state-editor.vue-mm3xn7gr.js → state-editor.vue-lpd02u92.js} +1 -1
- package/dist/client/_nuxt/{state-modules-ckye4bx5.js → state-modules-mm258b3b.js} +1 -1
- package/dist/client/_nuxt/{storage-pelwsm4v.js → storage-nfiv2p1f.js} +1 -1
- package/dist/client/_nuxt/{terminals-ml3snjy6.js → terminals-ma41rn3h.js} +1 -1
- package/dist/client/_nuxt/{timeline-ea4st38p.js → timeline-imh2u0ad.js} +1 -1
- package/dist/client/_nuxt/{virtual-files-hoy68su3.js → virtual-files-koazqihs.js} +1 -1
- package/dist/client/_nuxt/{vue-devtools-esjf7vau.js → vue-devtools-ill7tdvh.js} +1 -1
- package/dist/client/index.html +12 -12
- package/dist/module.json +1 -1
- package/package.json +4 -4
- package/dist/client/_nuxt/__blank-iu6fjs04.js +0 -1
- package/dist/client/_nuxt/builds/meta/bd03726f-7c3f-41c8-b19c-af4bfadbf82a.json +0 -1
|
@@ -42,7 +42,7 @@ import __cjs_mod__ from 'module';
|
|
|
42
42
|
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
43
43
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
44
44
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
45
|
-
const version$1 = "2.1.
|
|
45
|
+
const version$1 = "2.1.1-29011967.946dd03";
|
|
46
46
|
|
|
47
47
|
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
48
48
|
function randomStr(size = 16, dict = urlAlphabet) {
|
package/dist/client/200.html
CHANGED
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-jfo9gib8.css" crossorigin>
|
|
4
4
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
|
|
5
5
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-mhvipxpl.css" crossorigin>
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/cco50vfc.js">
|
|
7
7
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-npezbdce.js">
|
|
8
8
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-jzxuon8q.js">
|
|
9
9
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-ej2em068.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-fvu08dbs.js">
|
|
11
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-
|
|
12
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-
|
|
13
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-
|
|
11
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-dfw02wxu.js">
|
|
12
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-f6fuzge6.js">
|
|
13
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-fhj9bkje.js">
|
|
14
14
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-lvdc77tw.css">
|
|
15
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-
|
|
16
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-
|
|
15
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-dr0t6jh1.js">
|
|
16
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-gzbz5npv.js">
|
|
17
17
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-l8xqfho0.js">
|
|
18
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-
|
|
18
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-c8hjhpbm.js">
|
|
19
19
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-msaaoy71.js">
|
|
20
20
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-edufhzwa.js">
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-nswzsez9.js">
|
|
22
22
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-i8ym98gu.js">
|
|
23
23
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-fzjefjlm.js">
|
|
24
24
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-c4cbwrmc.css">
|
|
25
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-
|
|
25
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-l30uf0y1.js">
|
|
26
26
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-k70rrah0.css">
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-
|
|
28
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
29
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-dfm5cmo3.js">
|
|
28
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/cco50vfc.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1740718045980,false]</script>
|
|
29
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"d9cd5dce-0076-49b4-a14f-897c8d40cbbd",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-jfo9gib8.css" crossorigin>
|
|
4
4
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
|
|
5
5
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-mhvipxpl.css" crossorigin>
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/cco50vfc.js">
|
|
7
7
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-npezbdce.js">
|
|
8
8
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-jzxuon8q.js">
|
|
9
9
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-ej2em068.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-fvu08dbs.js">
|
|
11
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-
|
|
12
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-
|
|
13
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-
|
|
11
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-dfw02wxu.js">
|
|
12
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-f6fuzge6.js">
|
|
13
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-fhj9bkje.js">
|
|
14
14
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-lvdc77tw.css">
|
|
15
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-
|
|
16
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-
|
|
15
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-dr0t6jh1.js">
|
|
16
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-gzbz5npv.js">
|
|
17
17
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-l8xqfho0.js">
|
|
18
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-
|
|
18
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-c8hjhpbm.js">
|
|
19
19
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-msaaoy71.js">
|
|
20
20
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-edufhzwa.js">
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-nswzsez9.js">
|
|
22
22
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-i8ym98gu.js">
|
|
23
23
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-fzjefjlm.js">
|
|
24
24
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-c4cbwrmc.css">
|
|
25
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-
|
|
25
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-l30uf0y1.js">
|
|
26
26
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-k70rrah0.css">
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-
|
|
28
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
29
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-dfm5cmo3.js">
|
|
28
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/cco50vfc.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1740718045980,false]</script>
|
|
29
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"d9cd5dce-0076-49b4-a14f-897c8d40cbbd",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,W as n,U as t}from"./vendor/json-editor-vue-npezbdce.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 +1 @@
|
|
|
1
|
-
import{k as P,l as J,r as S,m as R,_ as U,n as Q,o as h,p as ee,q as ne,s as te,v as le,w as ie,x as oe,y as k,z as re,A as ue,B as se,h as ae}from"./
|
|
1
|
+
import{k as P,l as J,r as S,m as R,_ as U,n as Q,o as h,p as ee,q as ne,s as te,v as le,w as ie,x as oe,y as k,z as re,A as ue,B as se,h as ae}from"./cco50vfc.js";import{_ as de}from"./filepath-item.vue-jywmf4hm.js";import{p as j,q as V,f as F,U as i,W as u,X as e,F as p,ae as L,a0 as E,a8 as v,Z as g,u as x,a3 as d,a2 as a,a9 as f,aa as D,ab as I,P as B}from"./vendor/json-editor-vue-npezbdce.js";import{_ as me}from"./ncode-block.vue-msaaoy71.js";import{_ as pe}from"./ncheckbox.vue-l7pfajtr.js";import{_ as ve}from"./help-fab.vue-gttgicih.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./client-edufhzwa.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ye={flex:"~ wrap","w-full":""},ce=["onClick"],xe={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},be={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge="/__nuxt_devtools__/client",_e=j({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(N){const y=N,w=`${J().app.baseURL.replace(ge,"/")}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),c=V(()=>{const l=[{name:"Overview",id:"overview"}];return y.current.features.bundleClient&&l.push({name:"Client Bundle",id:"bundle-client"}),y.current.features.bundleNitro&&l.push({name:"Nitro Bundle",id:"bundle-nitro"}),y.current.features.viteInspect&&l.push({name:"Vite Inspect",id:"vite-inspect"}),l}),o=F(c.value[0]);function z(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}function m(l){return l<1024?`${l}B`:l<1024*1024?`${(l/1024).toFixed(1)}KB`:l<1024*1024*1024?`${(l/1024/1024).toFixed(1)}MB`:`${(l/1024/1024/1024).toFixed(1)}GB`}async function T(l){return S.clearAnalyzeBuilds(await R(),[l])}return(l,n)=>{const A=de,C=U;return i(),u("div",fe,[e("div",ye,[(i(!0),u(p,null,L(c.value,(r,t)=>(i(),u("button",{key:t,px4:"",py2:"",border:"r base",hover:"bg-active",class:E(r.id===o.value.id?"":"border-b"),onClick:$=>o.value=r},[e("div",{class:E(r.id===o.value.id?"":"op30")},v(r.name),3)],10,ce))),128)),n[1]||(n[1]=e("div",{border:"b base","flex-auto":""},null,-1))]),o.value.id==="overview"?(i(),u("div",xe,[n[15]||(n[15]=e("div",{"flex-auto":""},null,-1)),e("div",be,[n[10]||(n[10]=e("div",{"i-carbon-commit":"","text-xl":""},null,-1)),e("div",null,[n[2]||(n[2]=e("div",{"text-sm":"",op50:""}," Name ",-1)),e("div",null,v(l.current.name),1)]),n[11]||(n[11]=e("div",{"i-carbon-time":"","text-xl":""},null,-1)),e("div",null,[n[3]||(n[3]=e("div",{"text-sm":"",op50:""}," Build duration ",-1)),e("div",null,v(z(l.current)),1)]),l.current.size?.clientBundle?(i(),u(p,{key:0},[n[5]||(n[5]=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1)),e("div",null,[n[4]||(n[4]=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1)),e("div",null,v(m(l.current.size.clientBundle)),1)])],64)):g("",!0),l.current.size?.nitroBundle?(i(),u(p,{key:1},[n[7]||(n[7]=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1)),e("div",null,[n[6]||(n[6]=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1)),e("div",null,v(m(l.current.size.nitroBundle)),1)])],64)):g("",!0),n[12]||(n[12]=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1)),e("div",null,[n[8]||(n[8]=e("div",{"text-sm":"",op50:""}," Built ",-1)),e("div",null,v(x(P)(new Date(l.current.endTime))),1)]),n[13]||(n[13]=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1)),e("div",null,[n[9]||(n[9]=e("div",{"text-sm":"",op50:""}," Report Path ",-1)),d(A,{filepath:l.current.analyzeDir},null,8,["filepath"])])]),n[16]||(n[16]=e("div",{"flex-auto":""},null,-1)),d(C,{n:"rose",icon:"carbon-delete",onClick:n[0]||(n[0]=r=>T(l.current.name))},{default:a(()=>n[14]||(n[14]=[f(" Delete this report ")])),_:1})])):g("",!0),n._lazyshow1||o.value.id==="bundle-client"?(n._lazyshow1=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="bundle-client"]])],64)):g("v-show-if",!0),n._lazyshow2||o.value.id==="bundle-nitro"?(n._lazyshow2=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="bundle-nitro"]])],64)):g("v-show-if",!0),n._lazyshow3||o.value.id==="vite-inspect"?(n._lazyshow3=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value.id==="vite-inspect"]])],64)):g("v-show-if",!0)])}}}),we={class:"markdown-body"},ze={__name:"analyze-build",setup(N,{expose:y}){return y({frontmatter:{}}),(w,c)=>(i(),u("div",we,c[0]||(c[0]=[e("h1",null,"Build Analyze",-1),e("p",null,[f("DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command "),e("code",null,"nuxt build --analyze"),f(" and present the output data directly in DevTools for easy browsing and comparing.")],-1)])))}},$e={flex:"~ col"},Be=["onClick"],Ce={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},ke={flex:"~ items-center justify-center wrap",p4:""},Ne={flex:"~ col gap-1","w-250":"",p4:""},Te={flex:"~ gap-3",mt2:"","justify-end":""},Ue=j({__name:"analyze-build",setup(N){const y=Q(),_=h(),w=ee(),c=ne("analyze-build:slug",""),o=V(()=>_.value?.builds.find(r=>r.slug===c.value)??_.value?.builds[0]),z=F(!1),m=F(""),T=V(()=>_.value?.builds.some(r=>r.name===m.value.trim()));async function l(){m.value=await S.generateAnalyzeBuildName(),await y.start()&&(oe("analyze-build:start"),k.value={name:m.value,processId:await S.startAnalyzeBuild(await R(),m.value)},z.value&&C())}const n=te();function A(r){return`${((r.endTime-r.startTime)/1e3).toFixed(1)}s`}function C(){k.value?.processId&&(n.value=k.value.processId,w.push("/modules/terminals"))}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:l}]),(r,t)=>{const $=U,G=_e,q=ae,O=ie,W=re,Z=ue,H=me,K=pe,M=se,X=ze,Y=ve;return i(),u(p,null,[d(O,{"left-size":30},{left:a(()=>[e("div",$e,[(i(!0),u(p,null,L(x(_)?.builds,s=>(i(),u(p,{key:s.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:E(s.slug===o.value?.slug?"text-primary bg-active":""),onClick:b=>c.value=s.slug},[e("code",null,v(s.name),1),e("div",Ce,[t[4]||(t[4]=e("div",{"i-carbon-time":""},null,-1)),e("span",null,v(A(s)),1),t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("span",null,v(x(P)(new Date(s.endTime))),1)])],10,Be),t[6]||(t[6]=e("div",{"x-divider":""},null,-1))],64))),128)),e("div",ke,[x(k)?(i(),B($,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:t[1]||(t[1]=s=>C())},{default:a(()=>t[8]||(t[8]=[f(" Building... ")])),_:1})):(i(),B($,{key:0,n:"primary",icon:"carbon-edge-node",onClick:t[0]||(t[0]=s=>l())},{default:a(()=>t[7]||(t[7]=[f(" Start a new build ")])),_:1}))])])]),right:a(()=>[o.value?(i(),B(G,{key:0,current:o.value},null,8,["current"])):(i(),B(q,{key:1}))]),_:1}),d(x(y),null,{default:a(({resolve:s})=>[d(M,{"model-value":!0,onClose:b=>s(!1)},{default:a(()=>[e("div",Ne,[t[13]||(t[13]=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1)),t[14]||(t[14]=e("p",{op50:""}," Enter the name of the build: ",-1)),d(W,{modelValue:m.value,"onUpdate:modelValue":t[2]||(t[2]=b=>m.value=b),placeholder:"Build name"},null,8,["modelValue"]),T.value?(i(),B(Z,{key:0,"n-orange":""},{default:a(()=>t[9]||(t[9]=[f(" A build with the same name already exists, continue would overrides the previous build result. ")])),_:1})):g("",!0),t[15]||(t[15]=e("div",{my3:"","x-divider":""},null,-1)),t[16]||(t[16]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),d(H,{code:`npx nuxi analyze --no-serve --name=${m.value}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),d(K,{modelValue:z.value,"onUpdate:modelValue":t[3]||(t[3]=b=>z.value=b),mt2:"",n:"primary"},{default:a(()=>t[10]||(t[10]=[f(" Navigate to terminal ")])),_:1},8,["modelValue"]),e("div",Te,[d($,{onClick:b=>s(!1)},{default:a(()=>t[11]||(t[11]=[f(" Cancel ")])),_:2},1032,["onClick"]),d($,{n:"solid primary",onClick:b=>s(!0)},{default:a(()=>t[12]||(t[12]=[f(" Start ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),d(Y,null,{default:a(()=>[d(X)]),_:1})],64)}}});export{Ue as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as oe,D as Y,E as fe,F as ve,x as he,r as W,m as X,G as R,_ as se,H as ie,z as re,I as ge,c as ae,J as ye,a as we,K as be,L as _e,B as xe,M as $e,N as ke,O as Ce,g as Ae,P as Be}from"./oxe0udya.js";import{_ as Pe}from"./ncheckbox.vue-n785sfxh.js";import{_ as Ve}from"./ndropdown.vue-i86w14q7.js";import{_ as De}from"./nnavbar.vue-d4wh5lbd.js";import{p as Z,f as T,ag as le,W as f,aa as J,a3 as h,X as i,a9 as j,F as L,ae as G,P as N,a2 as A,Z as I,a0 as Q,u as w,U as a,q as z,$ as ue,a8 as S,Y as Fe,A as Ne,a1 as je,an as Se}from"./vendor/json-editor-vue-npezbdce.js";import{_ as Ue}from"./nsection-block-ik5hcxqh.js";import{_ as Ie}from"./filepath-item.vue-fwhfa43n.js";import{_ as ze}from"./code-snippets.vue-efpsav7c.js";import{_ as Ee}from"./ndrawer.vue-ng1vhz5m.js";import{D as Te}from"./constants-b32h69zq.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./nicon-title.vue-j1ceohu1.js";import"./ncode-block.vue-msaaoy71.js";import"./client-edufhzwa.js";const Me={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Oe={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},Le={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},Re={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Ke={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Je=["src"],qe={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ze=Z({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(b){const o=b,e=oe(o,"modelValue"),s=T(),n=T([]);function l(u){s.value=u.target,e.value=!0}function r(u){u.target===s.value&&(e.value=!1)}function y(u){u.preventDefault()}function v(u){u.preventDefault(),_(u.dataTransfer.files)}function _(u){const c=Array.from(u||[]);if(c.length){const $=[],x=n.value.map(p=>p.name);for(const p of c)if(x.includes(p.name)){let B=1;const[P,M]=p.name.split(".");for(;x.includes(`${P} (${B}).${M}`);)B++;const K=`${P}-${B}.${M}`,m=new Blob([p],{type:p.type}),t=new File([m],K,{lastModified:Date.now()});$.push(t),x.push(K)}else p.type===""&&R({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),$.push(p);n.value=[...n.value,...$]}}async function D(){if(fe.value||ve.value)return;he("assets:upload");const u=[];for(const c of n.value){const $=new FileReader;$.readAsDataURL(c);const p=(await new Promise(B=>{$.onload=()=>B($.result)})).split(";base64,").pop();u.push({path:c.name,encoding:"base64",content:p})}await W.writeStaticAssets(await X(),[...u],o.folder).then(()=>{g(),R({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(c=>{g(),R({message:`Error uploading files: ${c?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),e.value=!1}function O(u){n.value?.splice(u,1)}function k(u){return URL.createObjectURL(u)}function C(u,c){const[$,x]=u.name.split("."),p=c.replace(/\.\w+$/,""),B=`${p}.${x}`;return p.length===0?(alert("File name must be at least 1 characters long"),$):(Object.defineProperty(u,"name",{value:B,writable:!1}),n.value.splice(n.value.indexOf(u),1,u),u)}function d(){n.value=[]}function g(){e.value=!1,d()}return Y("dragenter",l),Y("dragleave",r),Y("dragover",y),Y("drop",v),(u,c)=>{const $=se,x=ie,p=re,B=le("tooltip");return a(),f("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Q(w(e)?"opacity-100 visible":"opacity-0 invisible")},[J(h($,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:g},null,512),[[B,"Close",void 0,{"bottom-end":!0}]]),n.value?.length?(a(),f("div",Le,[c[4]||(c[4]=i("div",{px6:"",py6:""},[i("h1",{"text-2xl":""}," Upload "),i("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1)),i("div",Re,[(a(!0),f(L,null,G(n.value,(P,M)=>(a(),f("div",{key:P.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[i("div",Ke,[i("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:k(P)},null,8,Je)]),i("div",qe,[h(p,{n:"xs","h-full":"","flex-auto":"","model-value":P.name,"onUpdate:modelValue":K=>C(P,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),h($,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>O(M)},null,8,["onClick"])])]))),128))]),i("div",Ge,[n.value.length?(a(),N($,{key:0,n:"red",onClick:d},{default:A(()=>[h(x,{icon:"carbon-clean"}),c[2]||(c[2]=j(" Clear "))]),_:1})):I("",!0),h($,{disabled:!n.value.length,n:"primary solid",onClick:D},{default:A(()=>[h(x,{icon:"carbon-cloud-upload"}),c[3]||(c[3]=j(" Upload "))]),_:1},8,["disabled"])])])):(a(),f("div",Me,[i("label",Oe,[h(x,{icon:"carbon-cloud-upload","mr-2":""}),c[1]||(c[1]=j(" Drop files here or click to select "))]),i("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:c[0]||(c[0]=P=>_(P.target.files))},null,32)]))],2)}}});function ne(b){if(typeof b=="string")return`'${b}'`;const o=new We;return o.dispatch(b),o.serialized}const We=function(){class b{serialized="";#e=new Map;write(e){this.serialized+=e}dispatch(e){return this["$"+(e===null?"null":typeof e)].call(this,e)}compare(e,s){return typeof e=="string"&&typeof s=="string"?e.localeCompare(s):ne(e).localeCompare(ne(s))}objectEntries(e,s){const n=Array.from(s).sort((l,r)=>this.compare(l[0],r[0]));this.write(`${e}{`);for(let l=0;l<n.length;l++){const[r,y]=n[l];this.write(`${r}:`),this.dispatch(y),l<n.length-1&&this.write(",")}this.write("}")}$string(e){this.write("'"+e+"'")}$symbol(e){this.write(e.toString())}$bigint(e){this.write(`${e}n`)}$object(e){const s=Object.prototype.toString.call(e);let n="";const l=s.length;l<10?n="unknown:["+s+"]":n=s.slice(8,l-1);let r=null;if((r=this.#e.get(e))===void 0)this.#e.set(e,this.#e.size);else return this.write(`#${r}`);if(n!=="Object"&&n!=="Function"&&n!=="AsyncFunction"){const y=this["$"+n];if(y)y.call(this,e);else{if(typeof e?.entries=="function")return this.objectEntries(n,e.entries());throw new Error(`Cannot serialize ${n}`)}}else{const y=e.constructor.name,v=y==="Object"?"":y;return typeof e.toJSON=="function"?(v&&this.write(v),this.$object(e.toJSON())):this.objectEntries(v,Object.entries(e))}}$function(e){const s=Function.prototype.toString.call(e);if(s.slice(-15)==="[native code] }")return this.write(`${e.name||""}()[native]`);this.write(`${e.name}(${e.length})${s.replace(/\s*\n\s*/g,"")}`)}$Array(e){this.write("[");for(let s=0;s<e.length;s++)this.dispatch(e[s]),s<e.length-1&&this.write(",");this.write("]")}$Date(e){return this.write(`Date(${e.toJSON()})`)}$ArrayBuffer(e){this.write(`ArrayBuffer[${Array.prototype.slice.call(new Uint8Array(e)).join(",")}]`)}$Set(e){this.write("Set"),this.$Array(Array.from(e).sort((s,n)=>this.compare(s,n)))}$Map(e){return this.objectEntries("Map",e.entries())}}for(const o of["boolean","number","null","undefined"])b.prototype["$"+o]=function(e){return this.write(e)};for(const o of["Error","RegExp","URL"])b.prototype["$"+o]=function(e){return this.write(`${o}(${e.toString()})`)};for(const o of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])b.prototype["$"+o]=function(e){this.write(`${o}[${Array.prototype.slice.call(e).join(",")}]`)};for(const o of["BigInt64Array","BigUint64Array"])b.prototype["$"+o]=function(e){this.write(`${o}[${Array.prototype.slice.call(e).map(s=>`${s}n`).join(",")}]`)};return b}(),Xe=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],He=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",q=[];class Qe{_data=new H;_hash=new H([...Xe]);_nDataBytes=0;_minBufferSize=0;finalize(o){o&&this._append(o);const e=this._nDataBytes*8,s=this._data.sigBytes*8;return this._data.words[s>>>5]|=128<<24-s%32,this._data.words[(s+64>>>9<<4)+14]=Math.floor(e/4294967296),this._data.words[(s+64>>>9<<4)+15]=e,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(o,e){const s=this._hash.words;let n=s[0],l=s[1],r=s[2],y=s[3],v=s[4],_=s[5],D=s[6],O=s[7];for(let k=0;k<64;k++){if(k<16)q[k]=o[e+k]|0;else{const x=q[k-15],p=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,B=q[k-2],P=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;q[k]=p+q[k-7]+P+q[k-16]}const C=v&_^~v&D,d=n&l^n&r^l&r,g=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),u=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),c=O+u+C+He[k]+q[k],$=g+d;O=D,D=_,_=v,v=y+c|0,y=r,r=l,l=n,n=c+$|0}s[0]=s[0]+n|0,s[1]=s[1]+l|0,s[2]=s[2]+r|0,s[3]=s[3]+y|0,s[4]=s[4]+v|0,s[5]=s[5]+_|0,s[6]=s[6]+D|0,s[7]=s[7]+O|0}_append(o){typeof o=="string"&&(o=H.fromUtf8(o)),this._data.concat(o),this._nDataBytes+=o.sigBytes}_process(o){let e,s=this._data.sigBytes/64;o?s=Math.ceil(s):s=Math.max((s|0)-this._minBufferSize,0);const n=s*16,l=Math.min(n*4,this._data.sigBytes);if(n){for(let r=0;r<n;r+=16)this._doProcessBlock(this._data.words,r);e=this._data.words.splice(0,n),this._data.sigBytes-=l}return new H(e,l)}}class H{words;sigBytes;constructor(o,e){o=this.words=o||[],this.sigBytes=e===void 0?o.length*4:e}static fromUtf8(o){const e=unescape(encodeURIComponent(o)),s=e.length,n=[];for(let l=0;l<s;l++)n[l>>>2]|=(e.charCodeAt(l)&255)<<24-l%4*8;return new H(n,s)}toBase64(){const o=[];for(let e=0;e<this.sigBytes;e+=3){const s=this.words[e>>>2]>>>24-e%4*8&255,n=this.words[e+1>>>2]>>>24-(e+1)%4*8&255,l=this.words[e+2>>>2]>>>24-(e+2)%4*8&255,r=s<<16|n<<8|l;for(let y=0;y<4&&e*8+y*6<this.sigBytes*8;y++)o.push(Ye.charAt(r>>>6*(3-y)&63))}return o.join("")}concat(o){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let e=0;e<o.sigBytes;e++){const s=o.words[e>>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=s<<24-(this.sigBytes+e)%4*8}else for(let e=0;e<o.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=o.words[e>>>2];this.sigBytes+=o.sigBytes}}function et(b){return new Qe().finalize(b).toBase64()}function tt(b){return et(ne(b))}const nt=Z({__name:"AssetFontPreview",props:{asset:{}},setup(b){const o=b,e=z(()=>`devtools-assets-${tt(o.asset)}`);return ge(z(()=>`
|
|
1
|
+
import{C as oe,D as Y,E as fe,F as ve,x as he,r as W,m as X,G as R,_ as se,H as ie,z as re,I as ge,c as ae,J as ye,a as we,K as be,L as _e,B as xe,M as $e,N as ke,O as Ce,g as Ae,P as Be}from"./cco50vfc.js";import{_ as Pe}from"./ncheckbox.vue-l7pfajtr.js";import{_ as Ve}from"./ndropdown.vue-c8hjhpbm.js";import{_ as De}from"./nnavbar.vue-m0dzh334.js";import{p as Z,f as T,ag as le,W as f,aa as J,a3 as h,X as i,a9 as j,F as L,ae as G,P as N,a2 as A,Z as I,a0 as Q,u as w,U as a,q as z,$ as ue,a8 as S,Y as Fe,A as Ne,a1 as je,an as Se}from"./vendor/json-editor-vue-npezbdce.js";import{_ as Ue}from"./nsection-block-h34q4gf5.js";import{_ as Ie}from"./filepath-item.vue-jywmf4hm.js";import{_ as ze}from"./code-snippets.vue-n2k48x1d.js";import{_ as Ee}from"./ndrawer.vue-nswzsez9.js";import{D as Te}from"./constants-b32h69zq.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./nicon-title.vue-j1ceohu1.js";import"./ncode-block.vue-msaaoy71.js";import"./client-edufhzwa.js";const Me={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Oe={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},Le={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},Re={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Ke={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Je=["src"],qe={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ze=Z({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(b){const o=b,e=oe(o,"modelValue"),s=T(),n=T([]);function l(u){s.value=u.target,e.value=!0}function r(u){u.target===s.value&&(e.value=!1)}function y(u){u.preventDefault()}function v(u){u.preventDefault(),_(u.dataTransfer.files)}function _(u){const c=Array.from(u||[]);if(c.length){const $=[],x=n.value.map(p=>p.name);for(const p of c)if(x.includes(p.name)){let B=1;const[P,M]=p.name.split(".");for(;x.includes(`${P} (${B}).${M}`);)B++;const K=`${P}-${B}.${M}`,m=new Blob([p],{type:p.type}),t=new File([m],K,{lastModified:Date.now()});$.push(t),x.push(K)}else p.type===""&&R({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),$.push(p);n.value=[...n.value,...$]}}async function D(){if(fe.value||ve.value)return;he("assets:upload");const u=[];for(const c of n.value){const $=new FileReader;$.readAsDataURL(c);const p=(await new Promise(B=>{$.onload=()=>B($.result)})).split(";base64,").pop();u.push({path:c.name,encoding:"base64",content:p})}await W.writeStaticAssets(await X(),[...u],o.folder).then(()=>{g(),R({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(c=>{g(),R({message:`Error uploading files: ${c?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),e.value=!1}function O(u){n.value?.splice(u,1)}function k(u){return URL.createObjectURL(u)}function C(u,c){const[$,x]=u.name.split("."),p=c.replace(/\.\w+$/,""),B=`${p}.${x}`;return p.length===0?(alert("File name must be at least 1 characters long"),$):(Object.defineProperty(u,"name",{value:B,writable:!1}),n.value.splice(n.value.indexOf(u),1,u),u)}function d(){n.value=[]}function g(){e.value=!1,d()}return Y("dragenter",l),Y("dragleave",r),Y("dragover",y),Y("drop",v),(u,c)=>{const $=se,x=ie,p=re,B=le("tooltip");return a(),f("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Q(w(e)?"opacity-100 visible":"opacity-0 invisible")},[J(h($,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:g},null,512),[[B,"Close",void 0,{"bottom-end":!0}]]),n.value?.length?(a(),f("div",Le,[c[4]||(c[4]=i("div",{px6:"",py6:""},[i("h1",{"text-2xl":""}," Upload "),i("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1)),i("div",Re,[(a(!0),f(L,null,G(n.value,(P,M)=>(a(),f("div",{key:P.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[i("div",Ke,[i("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:k(P)},null,8,Je)]),i("div",qe,[h(p,{n:"xs","h-full":"","flex-auto":"","model-value":P.name,"onUpdate:modelValue":K=>C(P,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),h($,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>O(M)},null,8,["onClick"])])]))),128))]),i("div",Ge,[n.value.length?(a(),N($,{key:0,n:"red",onClick:d},{default:A(()=>[h(x,{icon:"carbon-clean"}),c[2]||(c[2]=j(" Clear "))]),_:1})):I("",!0),h($,{disabled:!n.value.length,n:"primary solid",onClick:D},{default:A(()=>[h(x,{icon:"carbon-cloud-upload"}),c[3]||(c[3]=j(" Upload "))]),_:1},8,["disabled"])])])):(a(),f("div",Me,[i("label",Oe,[h(x,{icon:"carbon-cloud-upload","mr-2":""}),c[1]||(c[1]=j(" Drop files here or click to select "))]),i("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:c[0]||(c[0]=P=>_(P.target.files))},null,32)]))],2)}}});function ne(b){if(typeof b=="string")return`'${b}'`;const o=new We;return o.dispatch(b),o.serialized}const We=function(){class b{serialized="";#e=new Map;write(e){this.serialized+=e}dispatch(e){return this["$"+(e===null?"null":typeof e)].call(this,e)}compare(e,s){return typeof e=="string"&&typeof s=="string"?e.localeCompare(s):ne(e).localeCompare(ne(s))}objectEntries(e,s){const n=Array.from(s).sort((l,r)=>this.compare(l[0],r[0]));this.write(`${e}{`);for(let l=0;l<n.length;l++){const[r,y]=n[l];this.write(`${r}:`),this.dispatch(y),l<n.length-1&&this.write(",")}this.write("}")}$string(e){this.write("'"+e+"'")}$symbol(e){this.write(e.toString())}$bigint(e){this.write(`${e}n`)}$object(e){const s=Object.prototype.toString.call(e);let n="";const l=s.length;l<10?n="unknown:["+s+"]":n=s.slice(8,l-1);let r=null;if((r=this.#e.get(e))===void 0)this.#e.set(e,this.#e.size);else return this.write(`#${r}`);if(n!=="Object"&&n!=="Function"&&n!=="AsyncFunction"){const y=this["$"+n];if(y)y.call(this,e);else{if(typeof e?.entries=="function")return this.objectEntries(n,e.entries());throw new Error(`Cannot serialize ${n}`)}}else{const y=e.constructor.name,v=y==="Object"?"":y;return typeof e.toJSON=="function"?(v&&this.write(v),this.$object(e.toJSON())):this.objectEntries(v,Object.entries(e))}}$function(e){const s=Function.prototype.toString.call(e);if(s.slice(-15)==="[native code] }")return this.write(`${e.name||""}()[native]`);this.write(`${e.name}(${e.length})${s.replace(/\s*\n\s*/g,"")}`)}$Array(e){this.write("[");for(let s=0;s<e.length;s++)this.dispatch(e[s]),s<e.length-1&&this.write(",");this.write("]")}$Date(e){return this.write(`Date(${e.toJSON()})`)}$ArrayBuffer(e){this.write(`ArrayBuffer[${Array.prototype.slice.call(new Uint8Array(e)).join(",")}]`)}$Set(e){this.write("Set"),this.$Array(Array.from(e).sort((s,n)=>this.compare(s,n)))}$Map(e){return this.objectEntries("Map",e.entries())}}for(const o of["boolean","number","null","undefined"])b.prototype["$"+o]=function(e){return this.write(e)};for(const o of["Error","RegExp","URL"])b.prototype["$"+o]=function(e){return this.write(`${o}(${e.toString()})`)};for(const o of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])b.prototype["$"+o]=function(e){this.write(`${o}[${Array.prototype.slice.call(e).join(",")}]`)};for(const o of["BigInt64Array","BigUint64Array"])b.prototype["$"+o]=function(e){this.write(`${o}[${Array.prototype.slice.call(e).map(s=>`${s}n`).join(",")}]`)};return b}(),Xe=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],He=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",q=[];class Qe{_data=new H;_hash=new H([...Xe]);_nDataBytes=0;_minBufferSize=0;finalize(o){o&&this._append(o);const e=this._nDataBytes*8,s=this._data.sigBytes*8;return this._data.words[s>>>5]|=128<<24-s%32,this._data.words[(s+64>>>9<<4)+14]=Math.floor(e/4294967296),this._data.words[(s+64>>>9<<4)+15]=e,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(o,e){const s=this._hash.words;let n=s[0],l=s[1],r=s[2],y=s[3],v=s[4],_=s[5],D=s[6],O=s[7];for(let k=0;k<64;k++){if(k<16)q[k]=o[e+k]|0;else{const x=q[k-15],p=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,B=q[k-2],P=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;q[k]=p+q[k-7]+P+q[k-16]}const C=v&_^~v&D,d=n&l^n&r^l&r,g=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),u=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),c=O+u+C+He[k]+q[k],$=g+d;O=D,D=_,_=v,v=y+c|0,y=r,r=l,l=n,n=c+$|0}s[0]=s[0]+n|0,s[1]=s[1]+l|0,s[2]=s[2]+r|0,s[3]=s[3]+y|0,s[4]=s[4]+v|0,s[5]=s[5]+_|0,s[6]=s[6]+D|0,s[7]=s[7]+O|0}_append(o){typeof o=="string"&&(o=H.fromUtf8(o)),this._data.concat(o),this._nDataBytes+=o.sigBytes}_process(o){let e,s=this._data.sigBytes/64;o?s=Math.ceil(s):s=Math.max((s|0)-this._minBufferSize,0);const n=s*16,l=Math.min(n*4,this._data.sigBytes);if(n){for(let r=0;r<n;r+=16)this._doProcessBlock(this._data.words,r);e=this._data.words.splice(0,n),this._data.sigBytes-=l}return new H(e,l)}}class H{words;sigBytes;constructor(o,e){o=this.words=o||[],this.sigBytes=e===void 0?o.length*4:e}static fromUtf8(o){const e=unescape(encodeURIComponent(o)),s=e.length,n=[];for(let l=0;l<s;l++)n[l>>>2]|=(e.charCodeAt(l)&255)<<24-l%4*8;return new H(n,s)}toBase64(){const o=[];for(let e=0;e<this.sigBytes;e+=3){const s=this.words[e>>>2]>>>24-e%4*8&255,n=this.words[e+1>>>2]>>>24-(e+1)%4*8&255,l=this.words[e+2>>>2]>>>24-(e+2)%4*8&255,r=s<<16|n<<8|l;for(let y=0;y<4&&e*8+y*6<this.sigBytes*8;y++)o.push(Ye.charAt(r>>>6*(3-y)&63))}return o.join("")}concat(o){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let e=0;e<o.sigBytes;e++){const s=o.words[e>>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=s<<24-(this.sigBytes+e)%4*8}else for(let e=0;e<o.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=o.words[e>>>2];this.sigBytes+=o.sigBytes}}function et(b){return new Qe().finalize(b).toBase64()}function tt(b){return et(ne(b))}const nt=Z({__name:"AssetFontPreview",props:{asset:{}},setup(b){const o=b,e=z(()=>`devtools-assets-${tt(o.asset)}`);return ge(z(()=>`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: '${e.value}';
|
|
4
4
|
src: url('${o.asset.publicPath}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"d9cd5dce-0076-49b4-a14f-897c8d40cbbd","timestamp":1740718010720}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"d9cd5dce-0076-49b4-a14f-897c8d40cbbd","timestamp":1740718010720,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|