@nuxt/devtools 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chunks/module-main.mjs +33 -6025
- package/dist/chunks/vscode.mjs +4 -5
- package/dist/client/200.html +37 -2
- package/dist/client/404.html +37 -2
- package/dist/client/__blank/index.html +37 -2
- package/dist/client/_nuxt/{Badge.73590739.js → Badge.3c6fa035.js} +1 -1
- package/dist/client/_nuxt/{CodeDiff.vue.5bc59452.js → CodeDiff.vue.7a519a6d.js} +2 -2
- package/dist/client/_nuxt/{ComposableItem.vue.b891778e.js → ComposableItem.vue.ffcca591.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaButton.vue.58aa4fbb.js → DataSchemaButton.vue.9ced8093.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaDrawer.b54a9c8c.js → DataSchemaDrawer.6edfca87.js} +100 -100
- package/dist/client/_nuxt/{DrawerRight.vue.462f9048.js → DrawerRight.vue.8980fc15.js} +1 -1
- package/dist/client/_nuxt/{DurationDisplay.vue.281ea057.js → DurationDisplay.vue.dca5d690.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.3d85c8b7.js → FilepathItem.vue.222c7a36.js} +1 -1
- package/dist/client/_nuxt/{HelpFab.vue.7e36821f.js → HelpFab.vue.6da14cd2.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.fd74a96c.js → LaunchPage.vue.ded97a46.js} +1 -1
- package/dist/client/_nuxt/{NCheckbox.vue.1ddacd54.js → NCheckbox.vue.d47be8e5.js} +1 -1
- package/dist/client/_nuxt/{NCodeBlock.vue.31f18b3e.js → NCodeBlock.vue.cd0d52ca.js} +1 -1
- package/dist/client/_nuxt/{NDropdown.vue.ba86ab23.js → NDropdown.vue.3bf5669f.js} +1 -1
- package/dist/client/_nuxt/{NIconTitle.vue.9acdbad1.js → NIconTitle.vue.590f73cc.js} +1 -1
- package/dist/client/_nuxt/{NLink.vue.a8242afb.js → NLink.vue.2bd59538.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.12b1eecd.js → NMarkdown.vue.0929ffc5.js} +1 -1
- package/dist/client/_nuxt/{NSectionBlock.00736ab5.js → NSectionBlock.2eb550f4.js} +1 -1
- package/dist/client/_nuxt/{NSelect.vue.d378258a.js → NSelect.vue.120a17c7.js} +1 -1
- package/dist/client/_nuxt/{NSelectTabs.vue.515b8214.js → NSelectTabs.vue.15ded4ea.js} +1 -1
- package/dist/client/_nuxt/{NSwitch.vue.8201d15e.js → NSwitch.vue.00f0a211.js} +1 -1
- package/dist/client/_nuxt/{NTip.vue.8812abb8.js → NTip.vue.b82daf5f.js} +1 -1
- package/dist/client/_nuxt/{Navbar.vue.c509e5d2.js → Navbar.vue.454bbdad.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.2dfb9208.js → StateEditor.vue.fb44992d.js} +1 -1
- package/dist/client/_nuxt/{__blank.6f88f9ac.js → __blank.ed5e6688.js} +1 -1
- package/dist/client/_nuxt/{analyze-build.ad9015ef.js → analyze-build.a348d54f.js} +1 -1
- package/dist/client/_nuxt/assets.9cc20f0c.js +16 -0
- package/dist/client/_nuxt/{client.237dd3ea.js → client.ecec2ff5.js} +1 -1
- package/dist/client/_nuxt/{components.5d298b86.js → components.eb546fab.js} +1 -1
- package/dist/client/_nuxt/css.5abce139.js +501 -0
- package/dist/client/_nuxt/{custom-_name_.6bfb7c0f.js → custom-_name_.405b1822.js} +1 -1
- package/dist/client/_nuxt/{default.f2c7ccc5.js → default.d9ec755b.js} +1 -1
- package/dist/client/_nuxt/diff.22e0b108.js +1 -0
- package/dist/client/_nuxt/entry.102d44fe.js +27 -0
- package/dist/client/_nuxt/entry.a2a7b315.css +1 -0
- package/dist/client/_nuxt/error-404.27f7c5ed.js +1 -0
- package/dist/client/_nuxt/error-404.82ac0ec5.css +1 -0
- package/dist/client/_nuxt/{error-500.7606b55d.js → error-500.6459d9b0.js} +1 -1
- package/dist/client/_nuxt/error-500.ff959f66.css +1 -0
- package/dist/client/_nuxt/{full.69c969de.js → full.ff28afbd.js} +1 -1
- package/dist/client/_nuxt/{hooks.2100ca5d.js → hooks.a92c198c.js} +1 -1
- package/dist/client/_nuxt/html.66e44e78.js +74 -0
- package/dist/client/_nuxt/{imports.cb581504.js → imports.af43913a.js} +1 -1
- package/dist/client/_nuxt/{index.f204f87e.js → index.475555a9.js} +1 -1
- package/dist/client/_nuxt/{index.0d56c910.js → index.9d25c8b5.js} +1 -1
- package/dist/client/_nuxt/javascript.ddb4c460.js +699 -0
- package/dist/client/_nuxt/json-editor-vue.28570b6b.js +130 -0
- package/dist/client/_nuxt/json.709f1c4d.js +25 -0
- package/dist/client/_nuxt/{middleware.688539e5.js → middleware.17de3e64.js} +1 -1
- package/dist/client/_nuxt/{modules.bd62827c.js → modules.d2b55e3a.js} +1 -1
- package/dist/client/_nuxt/{none.1af6e0ee.js → none.60868d86.js} +1 -1
- package/dist/client/_nuxt/onig.0c57a370.js +1 -0
- package/dist/client/_nuxt/{open-graph.11338a0a.js → open-graph.b86b82fa.js} +1 -1
- package/dist/client/_nuxt/{overview.94507b31.js → overview.5b1b22e6.js} +1 -1
- package/dist/client/_nuxt/{pages.e761585a.js → pages.7ce7ead1.js} +1 -1
- package/dist/client/_nuxt/{payload.6d63ca94.js → payload.95a96cbc.js} +1 -1
- package/dist/client/_nuxt/{plugins.37532eb5.js → plugins.19d4d843.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.5354fdd6.js → runtime-configs.ccb12a0d.js} +1 -1
- package/dist/client/_nuxt/server-routes.7cc44fc0.js +9 -0
- package/dist/client/_nuxt/{settings.5fe86309.js → settings.105e88e7.js} +1 -1
- package/dist/client/_nuxt/shellscript.3d8bff4d.js +4 -0
- package/dist/client/_nuxt/{state-components.7bf3566d.js → state-components.f27756f9.js} +1 -1
- package/dist/client/_nuxt/{state-modules.065d01b4.js → state-modules.4d65021c.js} +1 -1
- package/dist/client/_nuxt/{storage-options.f9b1696b.js → storage-options.f78173e7.js} +1 -1
- package/dist/client/_nuxt/{storage.228d88e2.js → storage.38ee52e0.js} +1 -1
- package/dist/client/_nuxt/{terminals.0377de90.js → terminals.6138e467.js} +1 -1
- package/dist/client/_nuxt/timeline.aeb379fb.js +57 -0
- package/dist/client/_nuxt/typescript.3ef79501.js +666 -0
- package/dist/client/_nuxt/unocss-runtime.50cd6f0c.js +2 -0
- package/dist/client/_nuxt/virtual-files.c0236487.js +1 -0
- package/dist/client/_nuxt/vitesse-dark.ab479e3d.js +1 -0
- package/dist/client/_nuxt/vitesse-light.696edcfd.js +1 -0
- package/dist/client/_nuxt/vue-html.b80b464f.js +1 -0
- package/dist/client/_nuxt/vue.5b4e1de3.js +1844 -0
- package/dist/client/_nuxt/yaml.b29e536f.js +200 -0
- package/dist/client/index.html +37 -2
- package/dist/client/modules/analyze-build/index.html +37 -2
- package/dist/client/modules/assets/index.html +37 -2
- package/dist/client/modules/components/index.html +37 -2
- package/dist/client/modules/hooks/index.html +37 -2
- package/dist/client/modules/imports/index.html +37 -2
- package/dist/client/modules/middleware/index.html +37 -2
- package/dist/client/modules/modules/index.html +37 -2
- package/dist/client/modules/open-graph/index.html +37 -2
- package/dist/client/modules/overview/index.html +37 -2
- package/dist/client/modules/pages/index.html +37 -2
- package/dist/client/modules/payload/index.html +37 -2
- package/dist/client/modules/plugins/index.html +37 -2
- package/dist/client/modules/runtime-configs/index.html +37 -2
- package/dist/client/modules/server-routes/index.html +37 -2
- package/dist/client/modules/storage/index.html +37 -2
- package/dist/client/modules/terminals/index.html +37 -2
- package/dist/client/modules/timeline/index.html +37 -2
- package/dist/client/modules/virtual-files/index.html +37 -2
- package/dist/client/settings/index.html +37 -2
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/view/Main.vue +5 -0
- package/dist/runtime/plugins/view/client.mjs +10 -3
- package/package.json +35 -37
- package/dist/client/_nuxt/assets.d0e2ffb5.js +0 -16
- package/dist/client/_nuxt/entry.582098fc.css +0 -1
- package/dist/client/_nuxt/entry.d12f745d.js +0 -21
- package/dist/client/_nuxt/error-404.91003ceb.css +0 -1
- package/dist/client/_nuxt/error-404.ed94fa51.js +0 -1
- package/dist/client/_nuxt/error-500.7e02f53c.css +0 -1
- package/dist/client/_nuxt/json-editor-vue.ddceb6bb.js +0 -137
- package/dist/client/_nuxt/server-routes.6fd21992.js +0 -9
- package/dist/client/_nuxt/timeline.e89330f3.js +0 -57
- package/dist/client/_nuxt/unocss-runtime.a5ba4c7b.js +0 -2
- package/dist/client/_nuxt/virtual-files.1f7c68a1.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as c,r as u,
|
|
1
|
+
import{d as c,r as u,bn as m,aP as f,h as d,j as p,aO as _,o as s,m as b,i as v,k as g,a5 as h,ap as k,f as x,p as y,_ as B}from"./entry.102d44fe.js";const C={relative:"","h-full":"","w-full":"","of-auto":""},V={inheritAttrs:!1},N=c({...V,__name:"DrawerRight",props:{modelValue:{type:Boolean},navbar:{},autoClose:{type:Boolean}},emits:["close"],setup(r,{emit:l}){const t=r,o=u(),{height:n}=m(()=>t.navbar,void 0,{box:"border-box"});return f(o,()=>{t.modelValue&&t.autoClose&&l("close")},{ignore:["a","button","summary",'[role="dialog"]']}),(e,a)=>{const i=B;return s(),d(_,{"enter-active-class":"duration-200 ease-in","enter-from-class":"transform translate-x-1/1","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"transform translate-x-1/1"},{default:p(()=>[e.modelValue?(s(),b("div",k({key:0,ref_key:"el",ref:o,border:"l base",flex:"~ col gap-1",absolute:"","bottom-0":"","right-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","glass-effect":"",style:{top:`${x(n)}px`}},e.$attrs),[v(i,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",onClick:a[0]||(a[0]=$=>e.$emit("close"))}),g("div",C,[h(e.$slots,"default")])],16)):y("",!0)]),_:3})}}});export{N as _};
|
package/dist/client/_nuxt/{DurationDisplay.vue.281ea057.js → DurationDisplay.vue.dca5d690.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,a as u,o as d,m as f,v as p,t as o,f as n,k as c,E as m}from"./entry.
|
|
1
|
+
import{d as s,a as u,o as d,m as f,v as p,t as o,f as n,k as c,E as m}from"./entry.102d44fe.js";const x={"ml-1":"","text-xs":"",op50:""},g=s({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function i(r){return t.color?r?(r=r*t.factor,r<.5?"text-gray:50":r>1e3?"text-red-400":r>500?"text-orange-400":r>200?"text-yellow-400":""):"text-gray-400":""}const e=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(r,l)=>(d(),f("div",{class:m(i(r.duration))},[p(o(n(e)[0]),1),c("span",x,o(n(e)[1]),1)],2))}});export{g as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as u,a6 as f,a7 as c,a as k,b6 as v,o as t,h as y,j as B,m as s,F as l,v as d,t as n,f as a,k as C,p as N,E as b,ar as g}from"./entry.
|
|
1
|
+
import{d as u,a6 as f,a7 as c,a as k,b6 as v,o as t,h as y,j as B,m as s,F as l,v as d,t as n,f as a,k as C,p as N,E as b,ar as g}from"./entry.102d44fe.js";const E={key:0,op50:""},F=u({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(m){const r=m,h=f(),p=c(),o=k(()=>r.filepath&&p.value?v(r.filepath,p.value.rootDir):{path:r.filepath||""});return(e,i)=>(t(),y(g(e.filepath?"button":"span"),{class:b([e.filepath?"hover:underline":"",e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath,onClick:i[0]||(i[0]=w=>e.filepath&&a(h)(e.filepath))},{default:B(()=>[e.override?(t(),s(l,{key:0},[d(n(e.override),1)],64)):a(o).moduleName?(t(),s(l,{key:1},[C("span",null,n(a(o).moduleName),1),e.subpath?(t(),s("span",E,n(a(o).path.slice(a(o).moduleName.length)),1)):N("",!0)],64)):(t(),s(l,{key:2},[d(n(a(o).path),1)],64))]),_:1},8,["class","title"]))}});export{F as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as c,r as _,f as o,m as s,k as d,i as a,j as i,aO as u,F as m,p as n,o as l,a5 as v,aj as k,_ as g}from"./entry.
|
|
1
|
+
import{d as c,r as _,f as o,m as s,k as d,i as a,j as i,aO as u,F as m,p as n,o as l,a5 as v,aj as k,_ as g}from"./entry.102d44fe.js";const h=d("div",{"i-ri:question-mark":""},null,-1),x=[h],y={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},B=c({__name:"HelpFab",setup(w){const e=_(!1),{showHelpButtons:p}=k();return(b,t)=>{const f=g;return o(p)?(l(),s(m,{key:0},[d("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:t[0]||(t[0]=r=>e.value=!o(e))},x),a(u,{name:"fade-in"},{default:i(()=>[o(e)?(l(),s("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:t[1]||(t[1]=r=>e.value=!1)})):n("",!0)]),_:1}),a(u,{name:"slide-in"},{default:i(()=>[o(e)?(l(),s("div",y,[v(b.$slots,"default"),a(f,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",onClick:t[2]||(t[2]=r=>e.value=!1)})])):n("",!0)]),_:3})],64)):n("",!0)}}});export{B as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as f,h as o,j as a,A as b,o as t,i as r,k as i,t as c,p as _,m as g,n as h,ap as N,v as
|
|
1
|
+
import{d as f,h as o,j as a,A as b,o as t,i as r,k as i,t as c,p as _,m as g,n as h,ap as N,v as C,F as w,bv as x,a0 as y,C as B,ak as $}from"./entry.102d44fe.js";import{_ as v}from"./NMarkdown.vue.0929ffc5.js";const V={"text-xl":""},P={flex:"~ gap2 wrap"},j=f({__name:"LaunchPage",props:{icon:{},title:{},description:{},actions:{}},emits:["action"],setup(F){return(e,I)=>{const l=x,m=v,p=y,d=B,u=$,k=b;return t(),o(k,null,{default:a(()=>[r(u,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:a(()=>[r(l,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",V,c(e.title),1),e.description?(t(),o(m,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):_("",!0),i("div",P,[(t(!0),g(w,null,h(e.actions,(n,s)=>(t(),o(d,N({key:s,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0},n.attrs,{onClick:()=>{n.handle?.(),e.$emit("action",s)}}),{default:a(()=>[n.pending?(t(),o(p,{key:0,icon:"carbon-circle-dash","animate-spin":""})):_("",!0),C(" "+c(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{j as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as i,a4 as r,m as p,H as b,
|
|
1
|
+
import{d as i,a4 as r,m as p,H as b,bC as u,f as a,k as n,l as h,aa as k,i as f,a5 as m,E as v,o as _,a0 as x}from"./entry.102d44fe.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},$=i({__name:"NCheckbox",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=r(c,"modelValue",t,{passive:!0});return(o,s)=>{const d=x;return _(),p("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:a(e)||null,disabled:o.disabled||null},[b(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>h(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:o.disabled,onKeypress:s[1]||(s[1]=k(l=>e.value=!a(e),["enter"]))},null,40,y),[[u,a(e)]]),n("span",B,[f(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:v([a(e)?"":"op50","n-transition"])},[m(o.$slots,"default")],2)],8,V)}}});export{$ as _};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as u}from"./client.
|
|
1
|
+
import{d as u}from"./client.ecec2ff5.js";import{d as _,a as m,au as k,o as n,m as s,E as d,k as t,F as r,n as f,t as g}from"./entry.102d44fe.js";const h=["innerHTML"],C={class:"shiki"},v=["textContent"],y=t("br",null,null,-1),x=_({__name:"NCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},emits:["loaded"],setup(a,{emit:c}){const o=a,l=m(()=>{const e=o.lang==="text"?{code:o.code,supported:!1}:u.value?.devtools.renderCodeHighlight(o.code,o.lang)||{code:o.code,supported:!1};return e.supported&&o.transformRendered&&(e.code=o.transformRendered(e.code)),e.supported&&k(()=>c("loaded")),e});return(e,B)=>e.lang&&l.value.supported?(n(),s("pre",{key:0,class:d(["n-code-block",e.lines?"n-code-block-lines":""]),innerHTML:l.value.code},null,10,h)):(n(),s("pre",{key:1,class:d(["n-code-block",e.lines?"n-code-block-lines":""])},[t("pre",C,[t("code",null,[(n(!0),s(r,null,f(e.code.split(`
|
|
2
2
|
`),(i,p)=>(n(),s(r,{key:p},[t("span",{class:"line",textContent:g(i)},null,8,v),y],64))),128))])])],2))}});export{x as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as i,a4 as p,r as c,aP as u,o as f,m,a5 as t,i as v,j as _,v as b,f as a,k,E as C,C as V}from"./entry.
|
|
1
|
+
import{d as i,a4 as p,r as c,aP as u,o as f,m,a5 as t,i as v,j as _,v as b,f as a,k,E as C,C as V}from"./entry.102d44fe.js";const $=i({__name:"NDropdown",props:{modelValue:{type:Boolean}},setup(r,{emit:l}){const e=p(r,"modelValue",l,{passive:!0}),s=c();return u(s,()=>{e.value=!1}),(o,n)=>{const d=V;return f(),m("div",{ref_key:"el",ref:s,class:"relative"},[t(o.$slots,"trigger",{enabled:a(e),click:()=>e.value=!a(e)},()=>[v(d,{onClick:n[0]||(n[0]=N=>e.value=!a(e))},{default:_(()=>[b(" Dropdown ")]),_:1})]),k("div",{class:C(["absolute z-10 border n-border-base rounded shadow n-transition n-bg-base",[a(e)?"op-100":"op0 pointer-events-none -translate-y-1"]])},[t(o.$slots,"default")],2)],512)}}});export{$ as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as t,o,m as s,E as a,p as n,a5 as r,k as l,t as i}from"./entry.
|
|
1
|
+
import{d as t,o,m as s,E as a,p as n,a5 as r,k as l,t as i}from"./entry.102d44fe.js";const c={flex:"~ gap-3","items-center":""},u=t({__name:"NIconTitle",props:{icon:{},text:{}},setup(p){return(e,m)=>(o(),s("div",c,[e.icon?(o(),s("div",{key:0,class:a(e.icon)},null,2)):n("",!0),r(e.$slots,"default",{},()=>[l("div",null,i(e.text),1)])]))}});export{u as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as n,o as a,h as o,j as r,a5 as s,ap as t,ar as p,f as i,x as l}from"./entry.
|
|
1
|
+
import{d as n,o as a,h as o,j as r,a5 as s,ap as t,ar as p,f as i,x as l}from"./entry.102d44fe.js";const c=n({__name:"NLink",props:{to:{},href:{},target:{}},setup(_){return(e,f)=>(a(),o(p(e.href||e.target?"a":i(l)),t(e.$props,{class:"n-link n-transition hover:n-link-hover n-link-base"}),{default:r(()=>[s(e.$slots,"default")]),_:3},16))}});export{c as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as o}from"./client.
|
|
1
|
+
import{d as o}from"./client.ecec2ff5.js";import{d as t,f as e,o as a,h as r,ar as s,t as d}from"./entry.102d44fe.js";const i=t({__name:"NMarkdown",props:{markdown:{},tag:{}},setup(m){return(n,l)=>n.markdown&&e(o)?.devtools?.renderMarkdown?(a(),r(s(n.tag||"span"),{key:0,class:"n-markdown",innerHTML:e(o).devtools.renderMarkdown(n.markdown)},null,8,["innerHTML"])):(a(),r(s(n.tag||"span"),{key:1,class:"n-markdown",textContent:d(n.markdown)},null,8,["textContent"]))}});export{i as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as g,a4 as y,m as r,k as o,E as n,i as B,j as S,f as i,F as c,H as $,I as b,a5 as s,p as d,o as l,v as u,t as v,h as k,y as w,z as C,a0 as N,q as I}from"./entry.
|
|
1
|
+
import{d as g,a4 as y,m as r,k as o,E as n,i as B,j as S,f as i,F as c,H as $,I as b,a5 as s,p as d,o as l,v as u,t as v,h as k,y as w,z as C,a0 as N,q as I}from"./entry.102d44fe.js";import{_ as x}from"./NIconTitle.vue.590f73cc.js";const f=t=>(w("data-v-a73dbcfe"),t=t(),C(),t),V=["open"],z={"text-base":""},T={key:0,"text-sm":"",op50:""},D=f(()=>o("div",{class:"flex-auto"},null,-1)),E=f(()=>o("div",{class:"x-divider"},null,-1)),F=g({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const a=y(t,"open",void 0,{passive:!0});function _(e){a.value=e.target.open}return(e,p)=>{const m=N,h=x;return l(),r(c,null,[o("details",{open:i(a),onToggle:_},[o("summary",{class:n(["cursor-pointer select-none hover:bg-active p4",e.collapse?"":"pointer-events-none"])},[B(h,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:n([i(a)?"op100":"op60",e.headerClass])},{default:S(()=>[o("div",null,[o("div",z,[s(e.$slots,"text",{},()=>[u(v(e.text),1)],!0)]),e.description||e.$slots.description?(l(),r("div",T,[s(e.$slots,"description",{},()=>[u(v(e.description),1)],!0)])):d("",!0)]),D,s(e.$slots,"actions",{},void 0,!0),e.collapse?(l(),k(m,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):d("",!0)]),_:3},8,["icon","text","class"])],2),p._lazyshow1||i(a)?(p._lazyshow1=!0,l(),r(c,null,[$(o("div",{class:n(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[s(e.$slots,"details",{},void 0,!0),o("div",{class:n([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2),[[b,i(a)]])],64)):d("v-show-if",!0)],40,V),E],64)}}});const M=I(F,[["__scopeId","data-v-a73dbcfe"]]);export{M as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as u,a4 as p,m as l,a5 as t,H as f,
|
|
1
|
+
import{d as u,a4 as p,m as l,a5 as t,H as f,bD as m,f as b,k as h,t as _,p as n,l as v,o as s,h as k,a0 as V}from"./entry.102d44fe.js";const y={class:"n-select flex flex items-center border n-border-base rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base"},B=["disabled"],w={key:0,value:"",disabled:"",hidden:""},g=u({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(d,{emit:i}){const o=p(d,"modelValue",i,{passive:!0});return(e,a)=>{const r=V;return s(),l("div",y,[t(e.$slots,"icon",{},()=>[e.icon?(s(),k(r,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):n("",!0)]),f(h("select",{"onUpdate:modelValue":a[0]||(a[0]=c=>v(o)?o.value=c:null),disabled:e.disabled,class:"w-full flex-auto n-bg-base !outline-none"},[e.placeholder?(s(),l("option",w,_(e.placeholder),1)):n("",!0),t(e.$slots,"default")],8,B),[[m,b(o)]])])}}});export{g as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as c,a4 as m,o as s,m as t,F as v,n as f,E as d,f as o,k as r,t as _,H as g,aG as y,l as V}from"./entry.
|
|
1
|
+
import{d as c,a4 as m,o as s,m as t,F as v,n as f,E as d,f as o,k as r,t as _,H as g,aG as y,l as V}from"./entry.102d44fe.js";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},k=["disabled","title"],x=["disabled","value","title"],C=c({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(i,{emit:b}){const a=m(i,"modelValue",b,{passive:!0});return(l,n)=>(s(),t("fieldset",h,[(s(!0),t(v,null,f(l.options,(e,p)=>(s(),t("label",{key:e.label,disabled:l.disabled,class:d(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[p?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[r("div",{class:d([e.value===o(a)?"":"op35"])},_(e.label),3),g(r("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>V(a)?a.value=u:null),type:"radio",disabled:l.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,x),[[y,o(a)]])],10,k))),128))]))}});export{C as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as i,a4 as c,o as r,m as u,H as h,
|
|
1
|
+
import{d as i,a4 as c,o as r,m as u,H as h,bC as p,f as l,k as t,l as b,aa as f,a5 as v}from"./entry.102d44fe.js";const k=["checked","disabled"],m=["disabled"],w=t("div",{class:"n-switch-slider n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},[t("div",{class:"n-checked:n-switch-thumb-checked n-switch-thumb n-transition"})],-1),B=i({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(d,{emit:o}){const e=c(d,"modelValue",o,{passive:!0});return(a,s)=>(r(),u("label",{class:"n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled",checked:l(e)||null,disabled:a.disabled||null},[h(t("input",{"onUpdate:modelValue":s[0]||(s[0]=n=>b(e)?e.value=n:null),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:s[1]||(s[1]=f(n=>e.value=!l(e),["enter"]))},null,40,m),[[p,l(e)]]),w,v(a.$slots,"default")],8,k))}});export{B as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,o,m as c,a5 as n,h as t,p as i,k as r,a0 as p}from"./entry.
|
|
1
|
+
import{d as a,o,m as c,a5 as n,h as t,p as i,k as r,a0 as p}from"./entry.102d44fe.js";const l={class:"n-tip n-tip-base"},u=a({__name:"NTip",props:{icon:{}},setup(m){return(e,_)=>{const s=p;return o(),c("div",l,[n(e.$slots,"icon",{},()=>[e.icon?(o(),t(s,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):i("",!0)]),r("div",null,[n(e.$slots,"default")])])}}});export{u as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r,m as c,k as d,a5 as s,E as n,o as i,i as p,U as u}from"./entry.
|
|
1
|
+
import{d as r,m as c,k as d,a5 as s,E as n,o as i,i as p,U as u}from"./entry.102d44fe.js";const f={flex:"~ gap4","items-center":""},g=r({__name:"Navbar",props:{search:{type:String,default:void 0},noPadding:{type:Boolean,default:!1}},emits:["update:search"],setup(a,{emit:t}){function o(e){t("update:search",e.target.value)}return(e,m)=>{const l=u;return i(),c("div",{flex:"~ col gap2",border:"b base","flex-1":"","navbar-glass":"",class:n([{p4:!a.noPadding}])},[d("div",f,[s(e.$slots,"search",{},()=>[p(l,{placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:n({"px-5 py-2":!a.noPadding}),value:a.search,onInput:o},null,8,["class","value"])]),s(e.$slots,"actions")]),s(e.$slots,"default")],2)}}});export{g as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as V,a4 as B,af as _,r as w,b5 as O,b9 as C,a9 as $,o as i,m as p,k as u,E as c,f as a,t as J,p as l,a5 as R,aQ as D,aR as P,F as j,H as z,i as E,h as v,ap as F,ba as M,l as U,au as A,_ as G}from"./entry.
|
|
1
|
+
import{d as V,a4 as B,af as _,r as w,b5 as O,b9 as C,a9 as $,o as i,m as p,k as u,E as c,f as a,t as J,p as l,a5 as R,aQ as D,aR as P,F as j,H as z,i as E,h as v,ap as F,ba as M,l as U,au as A,_ as G}from"./entry.102d44fe.js";import{_ as H}from"./DataSchemaButton.vue.9ced8093.js";import{U as I}from"./json-editor-vue.28570b6b.js";const Q=["open"],T={flex:"~ gap2","select-none":"","items-center":"",px4:""},L=V({__name:"StateEditor",props:{name:{},open:{type:Boolean},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(b,{emit:g}){const s=b,n=B(s,"open",g,{passive:!0}),k=_(),o=w(),d=O(s.name,"$9Gvv2FGyYa");s.state?o.value=JSON.parse(JSON.stringify(s.state)):(typeof s.state=="number"||typeof s.state!="string")&&(o.value=s.state);const m=C(o,e=>{typeof e!="number"&&typeof e!="string"?f(e,s.state):d.value=e},{deep:!0});function f(e,r){for(const t in e)e[t]===null?r[t]=null:Array.isArray(e[t])?r[t]=e[t].slice():typeof e[t]=="object"?f(e[t],r[t]):r[t]=e[t]}async function h(){m.pause(),o.value=JSON.parse(JSON.stringify(s.state)),await A(),m.resume()}return(e,r)=>{const t=G,S=H,N=$("tooltip");return i(),p("div",{class:"state-editor-details",open:e.name?a(n):!0},[u("div",T,[e.name?(i(),p("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:c(a(n)?"":"op50"),onClick:r[0]||(r[0]=y=>n.value=!a(n))},[u("div",{"i-carbon-chevron-right":"",transition:"",class:c(a(n)?"rotate-90 op0":"")},null,2),u("code",{px3:"",py1:"","font-mono":"",class:c(a(n)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},J(e.name),3)],2)):l("",!0),R(e.$slots,"actions",D(P({isOpen:a(n),name:e.name,state:a(d)}))),a(n)?(i(),p(j,{key:1},[z(E(t,{title:"Refresh View",icon:"carbon-renew",onClick:h},null,512),[[N,"Refresh View",void 0,{bottom:!0}]]),a(o)?(i(),v(S,{key:0,getter:()=>({name:e.name,input:JSON.stringify(a(o))})},null,8,["getter"])):l("",!0)],64)):l("",!0)]),a(n)||!e.name?(i(),v(a(I),F({key:0,modelValue:a(o),"onUpdate:modelValue":r[1]||(r[1]=y=>U(o)?o.value=y:null)},e.$attrs,{class:["json-editor-vue",[a(k).value==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:a(M),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"])):l("",!0)],8,Q)}}});export{L as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as n,h as o,j as t,A as _,o as s,k as a}from"./entry.
|
|
1
|
+
import{d as n,h as o,j as t,A as _,o as s,k as a}from"./entry.102d44fe.js";const c=a("div",null," Your App ",-1),u=n({__name:"__blank",setup(r){return(p,d)=>{const e=_;return s(),o(e,{"h-screen":"","w-screen":"",px5:""},{default:t(()=>[c]),_:1})}}});export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as j,a as V,r as F,o,m as i,k as e,F as c,n as E,E as S,f as n,t as m,p as b,G,i as r,j as a,v as _,H as A,I as D,J as P,K as L,C as U,L as X,M as ee,N as te,O as ne,P as oe,Q as le,R as ie,S as k,h as w,l as R,U as se,V as ae,A as re}from"./entry.
|
|
1
|
+
import{d as j,a as V,r as F,o,m as i,k as e,F as c,n as E,E as S,f as n,t as m,p as b,G,i as r,j as a,v as _,H as A,I as D,J as P,K as L,C as U,L as X,M as ee,N as te,O as ne,P as oe,Q as le,R as ie,S as k,h as w,l as R,U as se,V as ae,A as re}from"./entry.102d44fe.js";import{_ as ue}from"./FilepathItem.vue.222c7a36.js";import{_ as de}from"./NTip.vue.b82daf5f.js";import{_ as ce}from"./NCodeBlock.vue.cd0d52ca.js";import{_ as me}from"./NCheckbox.vue.d47be8e5.js";import{_ as _e}from"./HelpFab.vue.6da14cd2.js";import"./client.ecec2ff5.js";const pe={"h-full":"",grid:"~ rows-[max-content_1fr]"},fe={flex:"~ wrap","w-full":""},ve=["onClick"],he=e("div",{border:"b base","flex-auto":""},null,-1),ye={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},be=e("div",{"flex-auto":""},null,-1),$e={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},xe=e("div",{"i-carbon-commit":"","text-xl":""},null,-1),ge=e("div",{"text-sm":"",op50:""}," Name ",-1),we=e("div",{"i-carbon-time":"","text-xl":""},null,-1),ze=e("div",{"text-sm":"",op50:""}," Build duration ",-1),Be=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1),ke=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1),Ce=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1),Ne=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1),Te=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1),Ae=e("div",{"text-sm":"",op50:""}," Built ",-1),De=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1),Ie=e("div",{"text-sm":"",op50:""}," Report Path ",-1),Ve=e("div",{"flex-auto":""},null,-1),I="/__nuxt_devtools__/analyze/",Fe=j({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(C){const p=C,f=V(()=>{const t=[{name:"Overview",id:"overview"}];return p.current.features.bundleClient&&t.push({name:"Client Bundle",id:"bundle-client"}),p.current.features.bundleNitro&&t.push({name:"Nitro Bundle",id:"bundle-nitro"}),p.current.features.viteInspect&&t.push({name:"Vite Inspect",id:"vite-inspect"}),t}),l=F(f.value[0]);function $(t){return t<1024?`${t}B`:t<1024*1024?`${(t/1024).toFixed(1)}KB`:t<1024*1024*1024?`${(t/1024/1024).toFixed(1)}MB`:`${(t/1024/1024/1024).toFixed(1)}GB`}function g(t){return`${((t.endTime-t.startTime)/1e3).toFixed(1)}s`}async function x(t){return P.clearAnalyzeBuilds(await L(),[t])}return(t,u)=>{const z=ue,N=U;return o(),i("div",pe,[e("div",fe,[(o(!0),i(c,null,E(n(f),(v,T)=>(o(),i("button",{key:T,px4:"",py2:"",border:"r base",hover:"bg-active",class:S(v.id===n(l).id?"":"border-b"),onClick:d=>l.value=v},[e("div",{class:S(v.id===n(l).id?"":"op30")},m(v.name),3)],10,ve))),128)),he]),n(l).id==="overview"?(o(),i("div",ye,[be,e("div",$e,[xe,e("div",null,[ge,e("div",null,m(t.current.name),1)]),we,e("div",null,[ze,e("div",null,m(g(t.current)),1)]),t.current.size?.clientBundle?(o(),i(c,{key:0},[Be,e("div",null,[ke,e("div",null,m($(t.current.size.clientBundle)),1)])],64)):b("",!0),t.current.size.nitroBundle?(o(),i(c,{key:1},[Ce,e("div",null,[Ne,e("div",null,m($(t.current.size.nitroBundle)),1)])],64)):b("",!0),Te,e("div",null,[Ae,e("div",null,m(n(G)(new Date(t.current.endTime))),1)]),De,e("div",null,[Ie,r(z,{filepath:t.current.analyzeDir},null,8,["filepath"])])]),Ve,r(N,{n:"rose",icon:"carbon-delete",onClick:u[0]||(u[0]=v=>x(t.current.name))},{default:a(()=>[_(" Delete this report ")]),_:1})])):b("",!0),u._lazyshow1||n(l).id==="bundle-client"?(u._lazyshow1=!0,o(),i(c,null,[A(e("iframe",{src:`${I}${t.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,n(l).id==="bundle-client"]])],64)):b("v-show-if",!0),u._lazyshow2||n(l).id==="bundle-nitro"?(u._lazyshow2=!0,o(),i(c,null,[A(e("iframe",{src:`${I}${t.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,n(l).id==="bundle-nitro"]])],64)):b("v-show-if",!0),u._lazyshow3||n(l).id==="vite-inspect"?(u._lazyshow3=!0,o(),i(c,null,[A(e("iframe",{src:`${I}${t.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[D,n(l).id==="vite-inspect"]])],64)):b("v-show-if",!0)])}}}),Se={class:"markdown-body"},Pe=e("h1",null,"Build Analyze",-1),Re=e("p",null,[_("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"),_(" and present the output data directly in DevTools for easy browsing and comparing.")],-1),je=[Pe,Re],Ee={__name:"analyze-build",setup(C,{expose:p}){return p({frontmatter:{}}),(l,$)=>(o(),i("div",Se,je))}},Ge={flex:"~ col"},Le=["onClick"],Ue={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},Oe=e("div",{"i-carbon-time":""},null,-1),He=e("div",{"flex-auto":""},null,-1),Ke=e("div",{"x-divider":""},null,-1),Me={flex:"~ items-center justify-center wrap",p4:""},Je={flex:"~ col gap-1","w-250":"",p4:""},Qe=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1),We=e("p",{op50:""}," Enter the name of the build: ",-1),Ye=e("div",{my3:"","x-divider":""},null,-1),Ze=e("p",{op50:""}," The following command will be executed in your terminal: ",-1),qe={flex:"~ gap-3",mt2:"","justify-end":""},st=j({__name:"analyze-build",setup(C){const p=X(),f=ee(),l=te(),$=ne("analyze-build:slug",""),g=V(()=>f.value?.builds.find(d=>d.slug===$.value)??f.value?.builds[0]),x=F(!1),t=F(""),u=V(()=>f.value?.builds.some(d=>d.name===t.value.trim()));async function z(){t.value=await P.generateAnalyzeBuildName(),await p.start()&&(k.value={name:t.value,processId:await P.startAnalyzeBuild(await L(),t.value)},x.value&&v())}const N=oe();function v(){k.value?.processId&&(N.value=k.value.processId,l.push("/modules/terminals"))}function T(d){return`${((d.endTime-d.startTime)/1e3).toFixed(1)}s`}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:z}]),(d,h)=>{const B=U,O=Fe,H=re,K=ie,M=se,J=de,Q=ce,W=me,Y=ae,Z=Ee,q=_e;return o(),i(c,null,[r(K,{"left-size":30},{left:a(()=>[e("div",Ge,[(o(!0),i(c,null,E(n(f)?.builds,s=>(o(),i(c,{key:s.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:S(s.slug===n(g)?.slug?"text-primary bg-active":""),onClick:y=>$.value=s.slug},[e("code",null,m(s.name),1),e("div",Ue,[Oe,e("span",null,m(T(s)),1),He,e("span",null,m(n(G)(new Date(s.endTime))),1)])],10,Le),Ke],64))),128)),e("div",Me,[("processAnalyzeBuildInfo"in d?d.processAnalyzeBuildInfo:n(k))?(o(),w(B,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:h[1]||(h[1]=s=>v())},{default:a(()=>[_(" Building... ")]),_:1})):(o(),w(B,{key:0,n:"primary",icon:"carbon-edge-node",onClick:h[0]||(h[0]=s=>z())},{default:a(()=>[_(" Start a new build ")]),_:1}))])])]),right:a(()=>[n(g)?(o(),w(O,{key:0,current:n(g)},null,8,["current"])):(o(),w(H,{key:1}))]),_:1}),r(n(p),null,{default:a(({resolve:s})=>[r(Y,{"model-value":!0,onClose:y=>s(!1)},{default:a(()=>[e("div",Je,[Qe,We,r(M,{modelValue:n(t),"onUpdate:modelValue":h[2]||(h[2]=y=>R(t)?t.value=y:null),placeholder:"Build name"},null,8,["modelValue"]),n(u)?(o(),w(J,{key:0,"n-orange":""},{default:a(()=>[_(" A build with the same name already exists, continue would overrides the previous build result. ")]),_:1})):b("",!0),Ye,Ze,r(Q,{code:`npx nuxi analyze --no-serve --name=${n(t)}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),r(W,{modelValue:n(x),"onUpdate:modelValue":h[3]||(h[3]=y=>R(x)?x.value=y:null),mt2:"",n:"primary"},{default:a(()=>[_(" Navigate to terminal ")]),_:1},8,["modelValue"]),e("div",qe,[r(B,{onClick:y=>s(!1)},{default:a(()=>[_(" Cancel ")]),_:2},1032,["onClick"]),r(B,{n:"solid primary",onClick:y=>s(!0)},{default:a(()=>[_(" Start ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),r(q,null,{default:a(()=>[r(Z)]),_:1})],64)}}});export{st as default};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{d as X,r as N,W as q,o as s,m as c,i as d,f as t,k as e,v as k,F as L,n as G,h as F,j as x,p as S,E as H,X as U,Y as me,Z as fe,J as Z,K as J,_ as te,a0 as oe,U as se,C as ae,a as A,a1 as ve,a2 as he,a3 as le,t as V,a4 as ie,a5 as _e,l as R,a6 as ge,b as ne,a7 as xe,e as be,a8 as we,a9 as re,H as W,aa as ye,ab as $e,V as ke,ac as Ce,ad as Pe,ae as Ae}from"./entry.102d44fe.js";import{_ as De}from"./Navbar.vue.454bbdad.js";import{_ as Ve}from"./NSectionBlock.2eb550f4.js";import{_ as Ne}from"./FilepathItem.vue.222c7a36.js";import{_ as Fe,u as Ie}from"./storage-options.f78173e7.js";import{_ as Se}from"./DrawerRight.vue.8980fc15.js";import{D as Te}from"./constants.4e5eba24.js";import"./NIconTitle.vue.590f73cc.js";import"./NCodeBlock.vue.cd0d52ca.js";import"./client.ecec2ff5.js";const je={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Ee={for:"drop-zone-input","text-3xl":""},Ue={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},Be=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),Le={grid:"~ cols-minmax-8rem","overflow-auto":"",p6:""},ze={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Me=["src"],Oe={flex:"~ gap1","items-center":""},Re={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ke=X({__name:"DropZone",props:{folder:{type:String,required:!0}},setup(T){const a=T,p=N(!1),n=N(),m=N([]),v=["image","video"];function D(i){n.value=i.target,p.value=!0}function u(i){i.target===n.value&&(p.value=!1)}function C(i){i.preventDefault()}function K(i){i.preventDefault(),B(i.dataTransfer.files)}function B(i){const g=Array.from(i||[]);if(g.length){const _=[],P=m.value.map(f=>f.name);for(const f of g)if(P.includes(f.name)){let r=1;const[y,l]=f.name.split(".");for(;P.includes(`${y} (${r}).${l}`);)r++;const o=`${y}-${r}.${l}`,M=new Blob([f],{type:f.type}),O=new File([M],o,{lastModified:Date.now()});_.push(O),P.push(o)}else f.type===""?U({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}):v.some(r=>f.type.includes(r))?_.push(f):U({message:`"${f.type}" file type is not allowed`,icon:"carbon:face-dissatisfied",classes:"text-orange"});m.value=[...m.value,..._]}}async function b(){if(me.value||fe.value)return;const i=[];for(const g of m.value){const _=new FileReader;_.readAsDataURL(g);const f=(await new Promise(r=>{_.onload=()=>r(_.result)})).split(";base64,").pop();i.push({path:g.name,encoding:"base64",content:f})}await Z.writeStaticAssets(await J(),[...i],a.folder).then(()=>{j(),U({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(g=>{console.error(g),j(),U({message:`Error uploading files: ${g}`,icon:"i-carbon-warning",classes:"text-red"})}),p.value=!1}function h(i){m.value?.splice(i,1)}function w(i){return URL.createObjectURL(i)}function z(i,g){const[_,P]=i.name.split("."),f=g.replace(/\.\w+$/,""),r=`${f}.${P}`;return f.length===0?(alert("File name must be at least 1 characters long"),_):(Object.defineProperty(i,"name",{value:r,writable:!1}),m.value.splice(m.value.indexOf(i),1,i),i)}function I(){m.value=[]}function j(){p.value=!1,I()}return q("dragenter",D),q("dragleave",u),q("dragover",C),q("drop",K),(i,g)=>{const _=te,P=oe,f=se,r=ae;return s(),c("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:H(t(p)?"opacity-100 visible":"opacity-0 invisible")},[d(_,{icon:"carbon-close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",onClick:j}),t(m)?.length?(s(),c("div",Ue,[Be,e("div",Le,[(s(!0),c(L,null,G(t(m),(y,l)=>(s(),c("div",{key:y.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[e("div",ze,[e("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:w(y)},null,8,Me)]),e("div",Oe,[d(f,{n:"xs","flex-auto":"","model-value":y.name,"onUpdate:modelValue":o=>z(y,o.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(_,{icon:"carbon-delete","flex-none":"",title:"Remove file",onClick:o=>h(l)},null,8,["onClick"])])]))),128))]),e("div",Re,[t(m).length?(s(),F(r,{key:0,n:"red",onClick:I},{default:x(()=>[d(P,{icon:"carbon-clean"}),k(" Clear ")]),_:1})):S("",!0),d(r,{disabled:!t(m).length,n:"primary solid",onClick:b},{default:x(()=>[d(P,{icon:"carbon-cloud-upload"}),k(" Upload ")]),_:1},8,["disabled"])])])):(s(),c("div",je,[e("label",Ee,[d(P,{icon:"carbon-cloud-upload","mr-2":""}),k(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:g[0]||(g[0]=y=>B(y.target.files))},null,32)]))],2)}}}),Xe=X({__name:"AssetFontPreview",props:{asset:{}},setup(T){const a=T,p=A(()=>`devtools-assets-${ve(a.asset)}`);return he(A(()=>`
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: '${p.value}';
|
|
4
|
+
src: url('${a.asset.publicPath}');
|
|
5
|
+
}
|
|
6
|
+
`)),(n,m)=>(s(),c("div",{"of-hidden":"",style:le({fontFamily:`'${t(p)}'`})}," Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz ",4))}}),Ze={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},Ge=["src"],We={key:2,"i-carbon-document":"","text-3xl":"",op20:""},qe={key:3,"w-full":"","self-start":"",p4:""},He=["textContent"],Je={key:4},Ye=["src","autoplay","controls"],Qe={key:5},et={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},tt=["src"],nt={key:6,"i-carbon-help":"","text-3xl":"",op20:""},ce=X({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(T){return(a,p)=>{const n=Xe;return s(),c("div",Ze,[a.asset.type==="image"?(s(),c("img",{key:0,src:a.asset.publicPath},null,8,Ge)):a.asset.type==="font"?(s(),F(n,{key:a.asset.publicPath,asset:a.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):a.asset.type==="text"&&!a.textContent?(s(),c("div",We)):a.asset.type==="text"&&a.textContent?(s(),c("div",qe,[e("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:V(a.textContent)},null,8,He)])):a.asset.type==="video"?(s(),c("div",Je,[e("video",{src:a.asset.publicPath,autoplay:a.detail,controls:a.detail},null,8,Ye)])):a.asset.type==="audio"?(s(),c("div",Qe,[a.detail?(s(),c("audio",{key:1,src:a.asset.publicPath,controls:""},null,8,tt)):(s(),c("div",et))])):(s(),c("div",nt))])}}}),ot={flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},st={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},at=X({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(T){const a=T,p=A(()=>a.folder&&a.asset.path.startsWith(a.folder)?a.asset.path.slice(a.folder.length):a.asset.path);return(n,m)=>{const v=ce;return s(),c("button",ot,[d(v,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:n.asset},null,8,["asset"]),e("div",st,V(t(p)),1)])}}}),ue=X({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(T,{emit:a}){const p=T,n=ie(p,"modelValue",a,{passive:!0}),m=A(()=>p.item?.children?.length),v=N(!0),D=A(()=>m.value?"i-carbon-folder":p.item.type==="image"?"i-carbon-image":p.item.type==="video"?"i-carbon-video":p.item.type==="audio"?"i-carbon-volume-up":p.item.type==="font"?"i-carbon-text-small-caps":p.item.type==="text"?"i-carbon-document":p.item.type==="json"?"i-carbon-json":"i-carbon-document-blank");return(u,C)=>{const K=oe,B=ue;return s(),c("div",null,[e("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:le({paddingLeft:`calc(1rem + ${u.index*1.5}em)`}),class:H({"bg-active":!t(m)&&t(n)?.filePath===u.item?.filePath}),border:"b base",onClick:C[0]||(C[0]=b=>t(m)?v.value=!t(v):n.value=u.item)},[e("div",{class:H(t(D))},null,2),e("span",{class:H({"flex items-center":t(m)}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},V(u.item.path),3),t(m)?(s(),F(K,{key:0,icon:"carbon:chevron-right","transform-rotate":t(v)?90:0,transition:""},null,8,["transform-rotate"])):S("",!0)],6),t(v)?_e(u.$slots,"default",{key:0},()=>[(s(!0),c(L,null,G(u.item?.children,b=>(s(),F(B,{key:b.filepath,modelValue:t(n),"onUpdate:modelValue":C[1]||(C[1]=h=>R(n)?n.value=h:null),item:b,index:u.index+1},null,8,["modelValue","item","index"]))),128))]):S("",!0)])}}}),lt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},it=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Preview "),e("div",{"x-divider":""})],-1),rt={flex:"~","items-center":"","justify-center":""},ct=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Details "),e("div",{"x-divider":""})],-1),ut={"max-w-full":"","w-full":"","table-fixed":""},dt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1),pt={flex:"~ gap-1","w-full":"","items-center":""},mt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1),ft={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},vt={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},ht=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1),_t={capitalize:""},gt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1),xt={key:0},bt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1),wt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1),yt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1),$t={op70:""},kt=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Actions "),e("div",{"x-divider":""})],-1),Ct={flex:"~ gap2 wrap"},Pt=e("div",{"flex-auto":""},null,-1),At={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Dt=e("span",null," Are you sure you want to delete this asset? ",-1),Vt={flex:"~ gap2 wrap justify-center"},Nt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Ft={flex:"~ gap2 wrap justify-center"},It={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},St=["onKeydown"],Tt={flex:"","justify-end":"","gap-4":""},jt=X({__name:"AssetDetails",props:{modelValue:{}},setup(T,{emit:a}){const n=ie(T,"modelValue",a,{passive:!0}),m=ge(),v=ne(()=>{if(n.value.type==="image")return Z.getImageMeta(n.value.filePath)}),D=N(!1),u=N(),C=N(0),K=ne(async()=>{if(n.value.type!=="text")return;C.value;const l=await Z.getTextAssetContent(n.value.filePath);return u.value=l,l});async function B(){if(K.value!==u.value)try{await Z.writeStaticAssets(await J(),[{path:n.value.path,content:u.value,override:!0}],""),D.value=!1,C.value++,U({message:"Updated",icon:"i-carbon-checkmark",classes:"text-green"})}catch{U({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const b=xe(),h=A(()=>(b.value?._installedModules||[]).some(o=>o.meta?.name==="@nuxt/image"||o.meta?.name==="@nuxt/image-edge")),w=A(()=>{const l=[];if(n.value.type==="image"){const o=v.value?.width?`
|
|
7
|
+
width="${v.value.width}"
|
|
8
|
+
height="${v.value.height}" `:" ";return l.push({lang:"vue-html",code:`<img${o}
|
|
9
|
+
src="${n.value.publicPath}"
|
|
10
|
+
/>`,name:"Plain Image"}),h.value&&l.push({lang:"vue-html",code:`<NuxtImg${o}
|
|
11
|
+
src="${n.value.publicPath}"
|
|
12
|
+
/>`,name:"Nuxt Img",docs:"https://image.nuxt.com/usage/nuxt-img"},{lang:"vue-html",code:`<NuxtPicture${o}
|
|
13
|
+
src="${n.value.publicPath}"
|
|
14
|
+
/>`,name:"Nuxt Picture",docs:"https://image.nuxt.com/usage/nuxt-picture"}),l}return l.push({lang:"html",code:`<a download href="${n.value.publicPath}">
|
|
15
|
+
Download ${n.value.path.split("/").slice(-1)[0]}
|
|
16
|
+
</a>`,name:"Download link"}),l}),z=be(),I=we(()=>n.value.mtime),j=A(()=>{const l=n.value.size;return l<1024?`${l} B`:l<1024*1024?`${(l/1024).toFixed(2)} KB`:`${(l/1024/1024).toFixed(2)} MB`}),i=A(()=>{if(!v.value?.width||!v.value?.height)return"";const l=(M,O)=>O?l(O,M%O):M,o=l(v.value.width,v.value.height);return o>3?`${v.value.width/o}:${v.value.height/o}`:""}),g=A(()=>["image","text","video","audio","font"].includes(n.value.type)),_=N(!1);async function P(){try{await Z.deleteStaticAsset(await J(),n.value.filePath),n.value=void 0,_.value=!1,U({message:"Asset deleted",icon:"i-carbon-checkmark",classes:"text-green"})}catch{U({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const f=N(!1),r=N("");async function y(){const l=n.value.filePath.split("/"),o=l.slice(-1)[0].split(".").slice(0,-1).join(".");if(!r.value||r.value===o)return U({message:"Please enter a new name",icon:"i-carbon-warning",classes:"text-orange"});try{const M=l.slice(-1)[0].split(".").slice(-1)[0],O=`${l.slice(0,-1).join("/")}/${r.value}.${M}`;await Z.renameStaticAsset(await J(),n.value.filePath,O),n.value=void 0,f.value=!1,U({message:"Asset renamed",icon:"i-carbon-checkmark",classes:"text-green"})}catch{U({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}return(l,o)=>{const M=ce,O=Ne,Y=te,E=ae,de=Fe,Q=ke,pe=se,ee=re("tooltip");return s(),c(L,null,[e("div",lt,[t(g)?(s(),c(L,{key:0},[it,e("div",rt,[d(M,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:t(n),"text-content":t(K)},null,8,["asset","text-content"])])],64)):S("",!0),ct,e("table",ut,[e("tbody",null,[e("tr",null,[dt,e("td",null,[e("div",pt,[d(O,{filepath:t(n).filePath,"text-left":""},null,8,["filepath"]),W(d(Y,{"flex-none":"",title:"Open in Editor",icon:"carbon-launch",onClick:o[0]||(o[0]=$=>t(m)(t(n).filePath))},null,512),[[ee,"Open in Editor"]])])])]),e("tr",null,[mt,e("td",null,[e("div",ft,[e("div",vt,V(t(n).publicPath),1),W(d(Y,{"flex-none":"",title:"Copy public path",icon:"carbon-copy",onClick:o[1]||(o[1]=$=>t(z)(t(n).publicPath))},null,512),[[ee,"Copy public path"]]),W(d(Y,{"flex-none":"",to:t(n).publicPath,icon:"carbon-launch",target:"_blank",title:"Open in browser"},null,8,["to"]),[[ee,"Open in browser"]])])])]),e("tr",null,[ht,e("td",_t,V(t(n).type),1)]),t(v)?.width?(s(),c(L,{key:0},[e("tr",null,[gt,e("td",null,V(t(v).width)+" x "+V(t(v).height),1)]),t(i)?(s(),c("tr",xt,[bt,e("td",null,V(t(i)),1)])):S("",!0)],64)):S("",!0),e("tr",null,[wt,e("td",null,V(t(j)),1)]),e("tr",null,[yt,e("td",null,[k(V(new Date(t(n).mtime).toLocaleString())+" ",1),e("span",$t,"("+V(t(I))+")",1)])])])]),kt,e("div",Ct,[d(E,{to:t(n).publicPath,download:"",target:"_blank",icon:"carbon-download",n:"green"},{default:x(()=>[k(" Download ")]),_:1},8,["to"]),t(n).type==="text"?(s(),F(E,{key:0,icon:"carbon-edit",n:"cyan",onClick:o[2]||(o[2]=$=>D.value=!t(D))},{default:x(()=>[k(" Edit ")]),_:1})):S("",!0),d(E,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:o[3]||(o[3]=$=>f.value=!t(f))},{default:x(()=>[k(" Rename ")]),_:1}),d(E,{icon:"carbon-delete",n:"red",onClick:o[4]||(o[4]=$=>_.value=!t(_))},{default:x(()=>[k(" Delete ")]),_:1}),t(n).type==="image"?(s(),F(E,{key:1,disabled:"",icon:"carbon-image-service"},{default:x(()=>[k(" Optimize image (Coming soon) ")]),_:1})):S("",!0)]),Pt,t(w).length?(s(),F(de,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":t(w)},null,8,["code-snippets"])):S("",!0)]),d(Q,{modelValue:t(_),"onUpdate:modelValue":o[6]||(o[6]=$=>R(_)?_.value=$:null)},{default:x(()=>[e("div",At,[Dt,e("div",Vt,[d(E,{icon:"carbon-close",onClick:o[5]||(o[5]=$=>_.value=!1)},{default:x(()=>[k(" Cancel ")]),_:1}),d(E,{icon:"carbon-delete",n:"red",onClick:P},{default:x(()=>[k(" Delete ")]),_:1})])])]),_:1},8,["modelValue"]),d(Q,{modelValue:t(f),"onUpdate:modelValue":o[9]||(o[9]=$=>R(f)?f.value=$:null)},{default:x(()=>[e("div",Nt,[d(pe,{modelValue:t(r),"onUpdate:modelValue":o[7]||(o[7]=$=>R(r)?r.value=$:null),placeholder:"New name",n:"blue"},null,8,["modelValue"]),e("div",Ft,[d(E,{icon:"carbon-close",onClick:o[8]||(o[8]=$=>f.value=!1)},{default:x(()=>[k(" Cancel ")]),_:1}),d(E,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:y},{default:x(()=>[k(" Rename ")]),_:1})])])]),_:1},8,["modelValue"]),t(n).type==="text"?(s(),F(Q,{key:0,modelValue:t(D),"onUpdate:modelValue":o[12]||(o[12]=$=>R(D)?D.value=$:null)},{default:x(()=>[e("div",It,[W(e("textarea",{"onUpdate:modelValue":o[10]||(o[10]=$=>R(u)?u.value=$:null),placeholder:"Item value...",class:"h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none",onKeydown:ye(B,["enter"])},null,40,St),[[$e,t(u)]]),e("div",Tt,[d(E,{icon:"carbon-close",onClick:o[11]||(o[11]=$=>D.value=!1)},{default:x(()=>[k(" Cancel ")]),_:1}),d(E,{icon:"carbon:save",n:"primary",onClick:B},{default:x(()=>[k(" save ")]),_:1})])])]),_:1},8,["modelValue"])):S("",!0)],64)}}}),Et={"h-full":"","of-auto":""},Ut={"flex-none":"",flex:"~ gap2 items-center"},Bt={op50:""},Lt={key:0},zt={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},Mt={key:1,p2:"",grid:"~ cols-minmax-8rem"},Ot={key:1},Qt=X({__name:"assets",setup(T){const a=Ce(),p=N(""),n=A(()=>new Pe(a.value||[],{keys:["path"]})),m=A(()=>p.value?n.value.search(p.value).map(h=>h.item):a.value||[]),v=A(()=>{const b={};for(const h of m.value){const w=`${h.path.split("/").slice(0,-1).join("/")}/`;b[w]||(b[w]=[]),b[w].push(h)}return Object.entries(b).sort(([h],[w])=>h.localeCompare(w))}),D=A(()=>{const b={path:"public",children:[]},h=(w,z,I)=>{const[j,...i]=z;let g=w.children.find(_=>_.path===j);g||(g={...I,path:j,children:[]},w.children.push(g)),i.length>1?h(g,i,I):i.length===1&&g.children.push({...I,path:i[0]})};return m.value.forEach(w=>{const z=w.path.split("/").filter(I=>I!=="");h(b,z,w)}),b.children}),u=N(),{view:C}=Ie("assets");function K(){C.value=C.value==="list"?"grid":"list"}Ae("Escape",()=>{u.value=void 0});const B=N();return(b,h)=>{const w=te,z=De,I=Ke,j=at,i=Ve,g=ue,_=jt,P=Se,f=re("tooltip");return s(),c("div",Et,[d(z,{ref_key:"navbar",ref:B,search:t(p),"onUpdate:search":h[0]||(h[0]=r=>R(p)?p.value=r:null),pb2:""},{actions:x(()=>[e("div",Ut,[W(d(w,{"text-lg":"",icon:t(C)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",onClick:K},null,8,["icon"]),[[f,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:x(()=>[e("div",Bt,[t(p)?(s(),c("span",Lt,V(t(m).length)+" matched · ",1)):S("",!0),e("span",null,V(t(a)?.length)+" assets in total",1)])]),_:1},8,["search"]),d(I,{folder:"/"}),t(C)==="grid"?(s(),c(L,{key:0},[t(v).length>1?(s(!0),c(L,{key:0},G(t(v),([r,y])=>(s(),F(i,{key:r,text:r,description:`${y.length} items`,open:y.length<=("DETAILS_MAX_ITEMS"in b?b.DETAILS_MAX_ITEMS:t(Te)),padding:!1},{default:x(()=>[e("div",zt,[(s(!0),c(L,null,G(y,l=>(s(),F(j,{key:l.path,asset:l,folder:r,onClick:o=>u.value=l},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(s(),c("div",Mt,[(s(!0),c(L,null,G(t(m),r=>(s(),F(j,{key:r.path,asset:r,onClick:y=>u.value=r},null,8,["asset","onClick"]))),128))]))],64)):(s(),c("div",Ot,[(s(!0),c(L,null,G(t(D),(r,y)=>(s(),F(g,{key:y,modelValue:t(u),"onUpdate:modelValue":h[1]||(h[1]=l=>R(u)?u.value=l:null),item:r},null,8,["modelValue","item"]))),128))])),d(P,{"model-value":!!t(u),"auto-close":"","w-120":"",navbar:t(B),onClose:h[3]||(h[3]=r=>u.value=void 0)},{default:x(()=>[t(u)?(s(),F(_,{key:0,modelValue:t(u),"onUpdate:modelValue":h[2]||(h[2]=r=>R(u)?u.value=r:null)},null,8,["modelValue"])):S("",!0)]),_:1},8,["model-value","navbar"])])}}});export{Qt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bk as f,bz as r}from"./entry.102d44fe.js";let o;const n=[];function s(i){if(n.push(i),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&n.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(e){e&&n.forEach(t=>t(e))},get(){return o.value},configurable:!0}),()=>{n.splice(n.indexOf(i),1)}}function u(){o||(o=f(),s(e));function i(){r(o)}function e(t){o.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",i)}return o}const c=u();export{c as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as te,m as Pe,k as Z,v as ja,d as qi,a as Zt,t as du,f as X,e as lk,i as Te,h as lt,p as ct,F as cr,n as _n,a5 as Gu,_ as $_,r as mi,af as ck,ag as hk,a7 as dk,ah as fk,ai as vk,w as pk,j as Ge,aj as b_,ak as gk,l as En,C as yk,al as mk,E as $k,am as bk,ad as wk,an as _k,ao as Ek,ap as us,a0 as Sk,aq as Ok,a9 as Tk,ar as xk,H as Ry}from"./entry.
|
|
1
|
+
import{o as te,m as Pe,k as Z,v as ja,d as qi,a as Zt,t as du,f as X,e as lk,i as Te,h as lt,p as ct,F as cr,n as _n,a5 as Gu,_ as $_,r as mi,af as ck,ag as hk,a7 as dk,ah as fk,ai as vk,w as pk,j as Ge,aj as b_,ak as gk,l as En,C as yk,al as mk,E as $k,am as bk,ad as wk,an as _k,ao as Ek,ap as us,a0 as Sk,aq as Ok,a9 as Tk,ar as xk,H as Ry}from"./entry.102d44fe.js";import{_ as Pk}from"./HelpFab.vue.6da14cd2.js";import{u as kk,a as Ik}from"./state-components.f27756f9.js";import{_ as Ck}from"./NCheckbox.vue.d47be8e5.js";import{_ as w_}from"./Navbar.vue.454bbdad.js";import{_ as __}from"./Badge.3c6fa035.js";import{_ as E_}from"./FilepathItem.vue.222c7a36.js";import{_ as Ak}from"./DrawerRight.vue.8980fc15.js";import{_ as Rk}from"./NSelectTabs.vue.15ded4ea.js";import{_ as Dk}from"./NSectionBlock.2eb550f4.js";import{_ as Mk}from"./NIconTitle.vue.590f73cc.js";import{D as Hl}from"./constants.4e5eba24.js";const Nk={class:"markdown-body"},Fk=Z("h1",null,"Components",-1),Bk=Z("p",null,[ja("Vue components under the "),Z("code",null,"components/"),ja(" directory are automatically registered and can be used in your templates without importing them.")],-1),Lk=Z("p",null,[Z("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),jk=[Fk,Bk,Lk],zk={__name:"components",setup(t,{expose:i}){return i({frontmatter:{}}),(r,n)=>(te(),Pe("div",Nk,jk))}},Hk=/\d/,Wk=["-","_","/","."];function Vk(t=""){if(!Hk.test(t))return t.toUpperCase()===t}function Uk(t,i){const e=i??Wk,r=[];if(!t||typeof t!="string")return r;let n="",a,o;for(const s of t){const u=e.includes(s);if(u===!0){r.push(n),n="",a=void 0;continue}const l=Vk(s);if(o===!1){if(a===!1&&l===!0){r.push(n),n=s,a=l;continue}if(a===!0&&l===!1&&n.length>1){const c=n[n.length-1];r.push(n.slice(0,Math.max(0,n.length-1))),n=c+s,a=l;continue}}n+=s,a=l,o=u}return r.push(n),r}function Gk(t){return t?t[0].toUpperCase()+t.slice(1):""}function S_(t){return t?(Array.isArray(t)?t:Uk(t)).map(i=>Gk(i)).join(""):""}const Kk={"text-sm":"","font-mono":""},qk=Z("span",{mr1:"",op20:""},"<",-1),Yk=Z("span",{ml1:"",op20:""},"/>",-1),O_=qi({__name:"ComponentName",props:{component:{}},setup(t){const i=t,e=Zt(()=>i.component.pascalName||S_(i.component.name||i.component.__name||i.component.kebabName||""));return(r,n)=>(te(),Pe("code",Kk,[qk,ja(du(X(e)),1),Yk]))}}),Xk={flex:"~ col gap1","items-start":"","of-hidden":""},Qk={flex:"~ gap2",px3:""},Zk={px3:"",pb2:""},Jk={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},eI={"text-sm":""},tI={"text-primary":""},rI=Z("span",{op50:""}," references",-1),nI={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},iI={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},aI={"text-sm":""},oI={"text-primary":""},sI=Z("span",{op50:""}," dependencies",-1),uI={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},T_=qi({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(t){const i=t,e=Zt(()=>i.component.pascalName||S_(i.component.name||i.component.__name||i.component.kebabName||"")),r=Zt(()=>i.component.filePath||i.component.file||i.component.__file||""),n=lk();return(a,o)=>{const s=O_,u=$_,l=__,c=E_;return te(),Pe("div",Xk,[Z("div",Qk,[Te(s,{component:a.component},null,8,["component"]),Te(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",onClick:o[0]||(o[0]=h=>X(n)(`<${X(e)}></${X(e)}>`))}),a.component.global?(te(),lt(l,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"runtime"})):ct("",!0)]),Z("div",Zk,[X(r)?(te(),lt(c,{key:0,filepath:X(r),"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):ct("",!0)]),a.dependents?(te(),Pe("div",Jk,[Z("div",eI,[Z("strong",tI,du(a.dependents.length),1),rI]),a.dependents.length?(te(),Pe("div",nI,[(te(!0),Pe(cr,null,_n(a.dependents,h=>(te(),lt(c,{key:h,filepath:h},null,8,["filepath"]))),128))])):ct("",!0)])):ct("",!0),a.dependencies?(te(),Pe("div",iI,[Z("div",aI,[Z("strong",oI,du(a.dependencies.length),1),sI]),a.dependencies.length?(te(),Pe("div",uI,[(te(!0),Pe(cr,null,_n(a.dependencies,h=>(te(),lt(c,{key:h,filepath:h},null,8,["filepath"]))),128))])):ct("",!0)])):ct("",!0),Gu(a.$slots,"default")])}}});/**
|
|
2
2
|
* vis-data
|
|
3
3
|
* http://visjs.org/
|
|
4
4
|
*
|