@nuxt/devtools 1.0.0-beta.3 → 1.0.0
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 +6 -28
- package/dist/chunks/module-main.mjs +1 -1
- package/dist/client/200.html +16 -16
- package/dist/client/404.html +16 -16
- package/dist/client/__blank/index.html +16 -16
- package/dist/client/_nuxt/{CodeDiff.vue.4fcef1e4.js → CodeDiff.vue.436985c7.js} +1 -1
- package/dist/client/_nuxt/{ComposableItem.vue.b4d03c6d.js → ComposableItem.vue.2d6f2884.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaButton.vue.18fef0d4.js → DataSchemaButton.vue.42a3718a.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaDrawer.714650a4.js → DataSchemaDrawer.edc189c2.js} +1 -1
- package/dist/client/_nuxt/{DurationDisplay.vue.dd0f91f1.js → DurationDisplay.vue.719ab95f.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.a1b71b8d.js → FilepathItem.vue.7fdda51b.js} +1 -1
- package/dist/client/_nuxt/{HelpFab.vue.f0924b60.js → HelpFab.vue.891b009b.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.c617b6d5.js → LaunchPage.vue.289a5cb3.js} +1 -1
- package/dist/client/_nuxt/{NBadge.ff27dca2.js → NBadge.83bd8b90.js} +1 -1
- package/dist/client/_nuxt/{NCheckbox.vue.b56304c9.js → NCheckbox.vue.5a0973a7.js} +1 -1
- package/dist/client/_nuxt/{NCodeBlock.vue.9ce69690.js → NCodeBlock.vue.2de294a4.js} +1 -1
- package/dist/client/_nuxt/{NDrawer.vue.2b176b54.js → NDrawer.vue.9614b581.js} +1 -1
- package/dist/client/_nuxt/{NDropdown.vue.e90fcd0b.js → NDropdown.vue.26dc3926.js} +1 -1
- package/dist/client/_nuxt/{NIconTitle.vue.7b846ffe.js → NIconTitle.vue.eb974cf8.js} +1 -1
- package/dist/client/_nuxt/{NLink.vue.9859bf11.js → NLink.vue.31c2cbc4.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.79860402.js → NMarkdown.vue.4b221360.js} +1 -1
- package/dist/client/_nuxt/{NNavbar.vue.737ef1b1.js → NNavbar.vue.5fed0fd7.js} +1 -1
- package/dist/client/_nuxt/{NSectionBlock.acf7c6ed.js → NSectionBlock.d6290e19.js} +1 -1
- package/dist/client/_nuxt/{NSelect.vue.04805728.js → NSelect.vue.08628a3f.js} +1 -1
- package/dist/client/_nuxt/{NSelectTabs.vue.626ecbdd.js → NSelectTabs.vue.30a856a4.js} +1 -1
- package/dist/client/_nuxt/{NSwitch.vue.ff927669.js → NSwitch.vue.1b79756d.js} +1 -1
- package/dist/client/_nuxt/{NTip.vue.c98a31a2.js → NTip.vue.1a1ff991.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.1c34496c.js → StateEditor.vue.9646c347.js} +1 -1
- package/dist/client/_nuxt/{__blank.eaeade3a.js → __blank.176c8119.js} +1 -1
- package/dist/client/_nuxt/{analyze-build.92ac65df.js → analyze-build.d636dfd0.js} +1 -1
- package/dist/client/_nuxt/{assets.c6f47fab.js → assets.29a152c5.js} +1 -1
- package/dist/client/_nuxt/{client.17f79a3c.js → client.f2b385ce.js} +1 -1
- package/dist/client/_nuxt/{components.80a04311.js → components.7bfa06b8.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_.b17c1362.js → custom-_name_.3fb62165.js} +1 -1
- package/dist/client/_nuxt/{default.201686e7.js → default.2a08c996.js} +1 -1
- package/dist/client/_nuxt/{entry.909ad6c7.js → entry.12ac938b.js} +4 -4
- package/dist/client/_nuxt/{error-404.18967c67.js → error-404.a171614a.js} +1 -1
- package/dist/client/_nuxt/{error-500.dcd91098.js → error-500.3ea59bbe.js} +1 -1
- package/dist/client/_nuxt/{full.a9db422e.js → full.76f6dd31.js} +1 -1
- package/dist/client/_nuxt/{hooks.ad5f725f.js → hooks.a236b60f.js} +1 -1
- package/dist/client/_nuxt/{imports.468b0281.js → imports.67d68271.js} +1 -1
- package/dist/client/_nuxt/{index.dacd63c3.js → index.64ca7e84.js} +1 -1
- package/dist/client/_nuxt/{index.86b321d0.js → index.dbe03c05.js} +1 -1
- package/dist/client/_nuxt/{json-editor-vue.8a771ed0.js → json-editor-vue.cf7b17c9.js} +1 -1
- package/dist/client/_nuxt/{modules.dc1dbdef.js → modules.798949c3.js} +1 -1
- package/dist/client/_nuxt/{none.37b64ac4.js → none.cad56a7a.js} +1 -1
- package/dist/client/_nuxt/{open-graph.03011848.js → open-graph.8ebd5e58.js} +1 -1
- package/dist/client/_nuxt/overview.0d62f8aa.js +1 -0
- package/dist/client/_nuxt/{pages.061895e9.js → pages.1e1baa5d.js} +1 -1
- package/dist/client/_nuxt/{payload.b7f38f74.js → payload.83b598a3.js} +1 -1
- package/dist/client/_nuxt/{plugins.59bd86e7.js → plugins.0e90c1cf.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.aaa20729.js → runtime-configs.ae0bd008.js} +1 -1
- package/dist/client/_nuxt/{server-routes.c8d34f99.js → server-routes.6a4e23d0.js} +1 -1
- package/dist/client/_nuxt/{settings.12ae4ad7.js → settings.82aae3ea.js} +1 -1
- package/dist/client/_nuxt/{state-components.a78445e5.js → state-components.c06dd56d.js} +1 -1
- package/dist/client/_nuxt/{state-modules.199ca5da.js → state-modules.7616c62e.js} +1 -1
- package/dist/client/_nuxt/{storage-options.aeaf572e.js → storage-options.2141006e.js} +1 -1
- package/dist/client/_nuxt/{storage.f2e2d671.js → storage.fe3db05a.js} +1 -1
- package/dist/client/_nuxt/{terminals.091a556d.js → terminals.f6a3d365.js} +1 -1
- package/dist/client/_nuxt/{timeline.1210bb98.js → timeline.ba2f1a0c.js} +1 -1
- package/dist/client/_nuxt/{unocss-runtime.c55f86fd.js → unocss-runtime.0346eeb6.js} +1 -1
- package/dist/client/_nuxt/{virtual-files.7767a81f.js → virtual-files.3a2a25a2.js} +1 -1
- package/dist/client/index.html +16 -16
- package/dist/client/modules/analyze-build/index.html +16 -16
- package/dist/client/modules/assets/index.html +16 -16
- package/dist/client/modules/components/index.html +16 -16
- package/dist/client/modules/hooks/index.html +16 -16
- package/dist/client/modules/imports/index.html +16 -16
- package/dist/client/modules/modules/index.html +16 -16
- package/dist/client/modules/open-graph/index.html +16 -16
- package/dist/client/modules/overview/index.html +16 -16
- package/dist/client/modules/pages/index.html +16 -16
- package/dist/client/modules/payload/index.html +16 -16
- package/dist/client/modules/plugins/index.html +16 -16
- package/dist/client/modules/runtime-configs/index.html +16 -16
- package/dist/client/modules/server-routes/index.html +16 -16
- package/dist/client/modules/storage/index.html +16 -16
- package/dist/client/modules/terminals/index.html +16 -16
- package/dist/client/modules/timeline/index.html +16 -16
- package/dist/client/modules/virtual-files/index.html +16 -16
- package/dist/client/settings/index.html +16 -16
- package/dist/module.json +1 -1
- package/package.json +4 -4
- package/dist/client/_nuxt/overview.acf4105d.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as R,a as V,r as S,o,m as i,k as e,F as c,n as E,G as F,f as n,t as m,p as b,H as G,i as r,j as a,v as _,I as A,J as D,K as P,L as U,_ as L,M as q,N as ee,O as te,P as ne,Q as oe,R as le,S as ie,U as se,V as k,h as w,l as j,W as ae,X as re,A as ue}from"./entry.
|
|
1
|
+
import{d as R,a as V,r as S,o,m as i,k as e,F as c,n as E,G as F,f as n,t as m,p as b,H as G,i as r,j as a,v as _,I as A,J as D,K as P,L as U,_ as L,M as q,N as ee,O as te,P as ne,Q as oe,R as le,S as ie,U as se,V as k,h as w,l as j,W as ae,X as re,A as ue}from"./entry.12ac938b.js";import{_ as de}from"./FilepathItem.vue.7fdda51b.js";import{_ as ce}from"./NTip.vue.1a1ff991.js";import{_ as me}from"./NCodeBlock.vue.2de294a4.js";import{_ as _e}from"./NCheckbox.vue.5a0973a7.js";import{_ as pe}from"./HelpFab.vue.891b009b.js";import"./client.f2b385ce.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ve={flex:"~ wrap","w-full":""},he=["onClick"],ye=e("div",{border:"b base","flex-auto":""},null,-1),be={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},$e=e("div",{"flex-auto":""},null,-1),xe={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge=e("div",{"i-carbon-commit":"","text-xl":""},null,-1),we=e("div",{"text-sm":"",op50:""}," Name ",-1),ze=e("div",{"i-carbon-time":"","text-xl":""},null,-1),Be=e("div",{"text-sm":"",op50:""}," Build duration ",-1),ke=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1),Ce=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1),Ne=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1),Te=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1),Ae=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1),De=e("div",{"text-sm":"",op50:""}," Built ",-1),Ie=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1),Ve=e("div",{"text-sm":"",op50:""}," Report Path ",-1),Se=e("div",{"flex-auto":""},null,-1),I="/__nuxt_devtools__/analyze/",Fe=R({__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=S(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 U(),[t])}return(t,u)=>{const z=de,N=L;return o(),i("div",fe,[e("div",ve,[(o(!0),i(c,null,E(n(f),(v,T)=>(o(),i("button",{key:T,px4:"",py2:"",border:"r base",hover:"bg-active",class:F(v.id===n(l).id?"":"border-b"),onClick:d=>l.value=v},[e("div",{class:F(v.id===n(l).id?"":"op30")},m(v.name),3)],10,he))),128)),ye]),n(l).id==="overview"?(o(),i("div",be,[$e,e("div",xe,[ge,e("div",null,[we,e("div",null,m(t.current.name),1)]),ze,e("div",null,[Be,e("div",null,m(g(t.current)),1)]),t.current.size?.clientBundle?(o(),i(c,{key:0},[ke,e("div",null,[Ce,e("div",null,m($(t.current.size.clientBundle)),1)])],64)):b("",!0),t.current.size.nitroBundle?(o(),i(c,{key:1},[Ne,e("div",null,[Te,e("div",null,m($(t.current.size.nitroBundle)),1)])],64)):b("",!0),Ae,e("div",null,[De,e("div",null,m(n(G)(new Date(t.current.endTime))),1)]),Ie,e("div",null,[Ve,r(z,{filepath:t.current.analyzeDir},null,8,["filepath"])])]),Se,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)])}}}),Pe={class:"markdown-body"},je=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),Ee=[je,Re],Ge={__name:"analyze-build",setup(C,{expose:p}){return p({frontmatter:{}}),(l,$)=>(o(),i("div",Pe,Ee))}},Ue={flex:"~ col"},Le=["onClick"],Oe={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},He=e("div",{"i-carbon-time":""},null,-1),Ke=e("div",{"flex-auto":""},null,-1),Me=e("div",{"x-divider":""},null,-1),We={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),Xe=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":""},at=R({__name:"analyze-build",setup(C){const p=q(),f=ee(),l=te(),$=ne("analyze-build:slug",""),g=V(()=>f.value?.builds.find(d=>d.slug===$.value)??f.value?.builds[0]),x=S(!1),t=S(""),u=V(()=>f.value?.builds.some(d=>d.name===t.value.trim()));async function z(){t.value=await P.generateAnalyzeBuildName(),await p.start()&&(se("analyze-build:start"),k.value={name:t.value,processId:await P.startAnalyzeBuild(await U(),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=L,O=Fe,H=ue,K=ie,M=ae,W=ce,J=me,Q=_e,X=re,Y=Ge,Z=pe;return o(),i(c,null,[r(K,{"left-size":30},{left:a(()=>[e("div",Ue,[(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:F(s.slug===n(g)?.slug?"text-primary bg-active":""),onClick:y=>$.value=s.slug},[e("code",null,m(s.name),1),e("div",Oe,[He,e("span",null,m(T(s)),1),Ke,e("span",null,m(n(G)(new Date(s.endTime))),1)])],10,Le),Me],64))),128)),e("div",We,[("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(X,{"model-value":!0,onClose:y=>s(!1)},{default:a(()=>[e("div",Je,[Qe,Xe,r(M,{modelValue:n(t),"onUpdate:modelValue":h[2]||(h[2]=y=>j(t)?t.value=y:null),placeholder:"Build name"},null,8,["modelValue"]),n(u)?(o(),w(W,{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(J,{code:`npx nuxi analyze --no-serve --name=${n(t)}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),r(Q,{modelValue:n(x),"onUpdate:modelValue":h[3]||(h[3]=y=>j(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(Z,null,{default:a(()=>[r(Y)]),_:1})],64)}}});export{at as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Z,Y as ee,r as T,Z as W,a0 as te,m as u,I as X,i as d,f as t,k as e,v as N,F as B,n as G,h as S,j as x,p as U,G as Y,a1 as de,a2 as pe,U as me,K as q,L as H,a3 as z,_ as ne,o,a4 as le,W as ae,a as I,a5 as fe,a6 as ve,a7 as ie,t as F,a8 as he,l as M,a9 as _e,b as se,aa as ge,e as xe,ab as be,ac as we,ad as ye,X as $e,ae as ke,af as Ce,ag as Ve,ah as Pe}from"./entry.
|
|
1
|
+
import{d as Z,Y as ee,r as T,Z as W,a0 as te,m as u,I as X,i as d,f as t,k as e,v as N,F as B,n as G,h as S,j as x,p as U,G as Y,a1 as de,a2 as pe,U as me,K as q,L as H,a3 as z,_ as ne,o,a4 as le,W as ae,a as I,a5 as fe,a6 as ve,a7 as ie,t as F,a8 as he,l as M,a9 as _e,b as se,aa as ge,e as xe,ab as be,ac as we,ad as ye,X as $e,ae as ke,af as Ce,ag as Ve,ah as Pe}from"./entry.12ac938b.js";import{_ as Ae}from"./NCheckbox.vue.5a0973a7.js";import{_ as De}from"./NDropdown.vue.26dc3926.js";import{_ as Fe}from"./NNavbar.vue.5fed0fd7.js";import{_ as Ne}from"./NSectionBlock.d6290e19.js";import{_ as Se}from"./FilepathItem.vue.7fdda51b.js";import{_ as Ie,u as Te}from"./storage-options.2141006e.js";import{_ as Ue}from"./NDrawer.vue.9614b581.js";import{D as je}from"./constants.2cc6e981.js";import"./NIconTitle.vue.eb974cf8.js";import"./NCodeBlock.vue.2de294a4.js";import"./client.f2b385ce.js";const Ee={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Le={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},Be={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},ze=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),Me={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Oe={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Re=["src"],Ke={flex:"~ gap1","items-center":""},Xe={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ge=Z({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(j){const l=j,m=ee(l,"modelValue"),n=T(),_=T([]);function f(a){n.value=a.target,m.value=!0}function D(a){a.target===n.value&&(m.value=!1)}function k(a){a.preventDefault()}function E(a){a.preventDefault(),y(a.dataTransfer.files)}function y(a){const g=Array.from(a||[]);if(g.length){const b=[],h=_.value.map(v=>v.name);for(const v of g)if(h.includes(v.name)){let w=1;const[V,K]=v.name.split(".");for(;h.includes(`${V} (${w}).${K}`);)w++;const r=`${V}-${w}.${K}`,s=new Blob([v],{type:v.type}),i=new File([s],r,{lastModified:Date.now()});b.push(i),h.push(r)}else v.type===""&&z({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),b.push(v);_.value=[..._.value,...b]}}async function L(){if(de.value||pe.value)return;me("assets:upload");const a=[];for(const g of _.value){const b=new FileReader;b.readAsDataURL(g);const v=(await new Promise(w=>{b.onload=()=>w(b.result)})).split(";base64,").pop();a.push({path:g.name,encoding:"base64",content:v})}await q.writeStaticAssets(await H(),[...a],l.folder).then(()=>{p(),z({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(g=>{p(),z({message:`Error uploading files: ${g?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),m.value=!1}function O(a){_.value?.splice(a,1)}function R(a){return URL.createObjectURL(a)}function $(a,g){const[b,h]=a.name.split("."),v=g.replace(/\.\w+$/,""),w=`${v}.${h}`;return v.length===0?(alert("File name must be at least 1 characters long"),b):(Object.defineProperty(a,"name",{value:w,writable:!1}),_.value.splice(_.value.indexOf(a),1,a),a)}function c(){_.value=[]}function p(){m.value=!1,c()}return W("dragenter",f),W("dragleave",D),W("dragover",k),W("drop",E),(a,g)=>{const b=ne,h=le,v=ae,w=te("tooltip");return o(),u("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Y(t(m)?"opacity-100 visible":"opacity-0 invisible")},[X(d(b,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[w,"Close",void 0,{"bottom-end":!0}]]),t(_)?.length?(o(),u("div",Be,[ze,e("div",Me,[(o(!0),u(B,null,G(t(_),(V,K)=>(o(),u("div",{key:V.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[e("div",Oe,[e("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:R(V)},null,8,Re)]),e("div",Ke,[d(v,{n:"xs","h-full":"","flex-auto":"","model-value":V.name,"onUpdate:modelValue":r=>$(V,r.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(b,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:r=>O(K)},null,8,["onClick"])])]))),128))]),e("div",Xe,[t(_).length?(o(),S(b,{key:0,n:"red",onClick:c},{default:x(()=>[d(h,{icon:"carbon-clean"}),N(" Clear ")]),_:1})):U("",!0),d(b,{disabled:!t(_).length,n:"primary solid",onClick:L},{default:x(()=>[d(h,{icon:"carbon-cloud-upload"}),N(" Upload ")]),_:1},8,["disabled"])])])):(o(),u("div",Ee,[e("label",Le,[d(h,{icon:"carbon-cloud-upload","mr-2":""}),N(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:g[0]||(g[0]=V=>y(V.target.files))},null,32)]))],2)}}}),Ze=Z({__name:"AssetFontPreview",props:{asset:{}},setup(j){const l=j,m=I(()=>`devtools-assets-${fe(l.asset)}`);return ve(I(()=>`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: '${m.value}';
|
|
4
4
|
src: url('${l.asset.publicPath}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bt as f,bI as r}from"./entry.
|
|
1
|
+
import{bt as f,bI as r}from"./entry.12ac938b.js";let t;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(o=>o(e))},get(){return t.value},configurable:!0}),()=>{n.splice(n.indexOf(i),1)}}function u(){t||(t=f(),s(e));function i(){r(t)}function e(o){t.value=o,o.host&&o.host.hooks.hook("host:update:reactivity",i)}return t}const c=u();export{c as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as ee,m as we,k as Q,d as Un,a as Zt,v as Vh,t as tu,f as q,e as nT,i as be,h as nt,p as at,F as ur,n as yi,a8 as Pu,_ as of,r as gn,ai as aT,aj as oT,aa as sT,ak as uT,al as lT,w as dT,j as Le,B as e1,am as hT,l as mi,an as cT,G as fT,ao as vT,af as pT,ap as gT,aq as yT,ar as Qo,a4 as mT,as as bT,a0 as $T,at as wT,I as Lv}from"./entry.
|
|
1
|
+
import{o as ee,m as we,k as Q,d as Un,a as Zt,v as Vh,t as tu,f as q,e as nT,i as be,h as nt,p as at,F as ur,n as yi,a8 as Pu,_ as of,r as gn,ai as aT,aj as oT,aa as sT,ak as uT,al as lT,w as dT,j as Le,B as e1,am as hT,l as mi,an as cT,G as fT,ao as vT,af as pT,ap as gT,aq as yT,ar as Qo,a4 as mT,as as bT,a0 as $T,at as wT,I as Lv}from"./entry.12ac938b.js";import{_ as _T}from"./HelpFab.vue.891b009b.js";import{u as ET,a as ST}from"./state-components.c06dd56d.js";import{_ as OT}from"./NCheckbox.vue.5a0973a7.js";import{_ as t1}from"./NNavbar.vue.5fed0fd7.js";import{_ as r1}from"./NBadge.83bd8b90.js";import{_ as i1}from"./FilepathItem.vue.7fdda51b.js";import{_ as TT}from"./NDrawer.vue.9614b581.js";import{_ as kT}from"./NSelectTabs.vue.30a856a4.js";import{_ as PT}from"./NSectionBlock.d6290e19.js";import{_ as IT}from"./NIconTitle.vue.eb974cf8.js";import{D as Al}from"./constants.2cc6e981.js";const CT={class:"markdown-body"},AT=Q("h1",null,"Components",-1),xT=Q("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),DT=Q("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),RT=Q("p",null,[Q("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),MT=[AT,xT,DT,RT],NT={__name:"components",setup(r,{expose:n}){return n({frontmatter:{}}),(t,i)=>(ee(),we("div",CT,MT))}},FT=/\d/,BT=["-","_","/","."];function LT(r=""){if(!FT.test(r))return r.toUpperCase()===r}function jT(r,n){const e=n??BT,t=[];if(!r||typeof r!="string")return t;let i="",a,o;for(const s of r){const u=e.includes(s);if(u===!0){t.push(i),i="",a=void 0;continue}const l=LT(s);if(o===!1){if(a===!1&&l===!0){t.push(i),i=s,a=l;continue}if(a===!0&&l===!1&&i.length>1){const d=i[i.length-1];t.push(i.slice(0,Math.max(0,i.length-1))),i=d+s,a=l;continue}}i+=s,a=l,o=u}return t.push(i),t}function zT(r){return r?r[0].toUpperCase()+r.slice(1):""}function n1(r){return r?(Array.isArray(r)?r:jT(r)).map(n=>zT(n)).join(""):""}const HT={"text-sm":"","font-mono":""},WT=Q("span",{mr1:"",op20:""},"<",-1),VT=Q("span",{ml1:"",op20:""},"/>",-1),a1=Un({__name:"ComponentName",props:{component:{}},setup(r){const n=r,e=Zt(()=>n.component.pascalName||n1(n.component.name||n.component.__name||n.component.kebabName||""));return(t,i)=>(ee(),we("code",HT,[WT,Vh(tu(q(e)),1),VT]))}}),UT={flex:"~ col gap1","items-start":"","of-hidden":""},GT={flex:"~ gap2",px3:""},KT={px3:"",pb2:""},qT={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},YT={"text-sm":""},XT={"text-primary":""},QT=Q("span",{op50:""}," references",-1),JT={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},ZT={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},ek={"text-sm":""},tk={"text-primary":""},rk=Q("span",{op50:""}," dependencies",-1),ik={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},o1=Un({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const n=r,e=Zt(()=>n.component.pascalName||n1(n.component.name||n.component.__name||n.component.kebabName||"")),t=Zt(()=>n.component.filePath||n.component.file||n.component.__file||""),i=nT();return(a,o)=>{const s=a1,u=of,l=r1,d=i1;return ee(),we("div",UT,[Q("div",GT,[be(s,{component:a.component},null,8,["component"]),be(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:o[0]||(o[0]=h=>q(i)(`<${q(e)}></${q(e)}>`,"component-name"))}),a.component.global?(ee(),nt(l,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):at("",!0)]),Q("div",KT,[q(t)?(ee(),nt(d,{key:0,filepath:q(t),"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):at("",!0)]),a.dependents?(ee(),we("div",qT,[Q("div",YT,[Q("strong",XT,tu(a.dependents.length),1),QT]),a.dependents.length?(ee(),we("div",JT,[(ee(!0),we(ur,null,yi(a.dependents,h=>(ee(),nt(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):at("",!0)])):at("",!0),a.dependencies?(ee(),we("div",ZT,[Q("div",ek,[Q("strong",tk,tu(a.dependencies.length),1),rk]),a.dependencies.length?(ee(),we("div",ik,[(ee(!0),we(ur,null,yi(a.dependencies,h=>(ee(),nt(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):at("",!0)])):at("",!0),Pu(a.$slots,"default")])}}});/**
|
|
2
2
|
* vis-data
|
|
3
3
|
* http://visjs.org/
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as $,ai as q,r as A,a as g,au as B,av as D,al as j,aw as E,ax as y,ay as M,az as N,m as V,o as s,aA as I,O as L,aB as O,aC as C,aD as P,f as a,h as l,j as b,at as W,A as R,k as u,v as w,t as T,K as S,i as U,am as F,aE as z}from"./entry.
|
|
1
|
+
import{d as $,ai as q,r as A,a as g,au as B,av as D,al as j,aw as E,ax as y,ay as M,az as N,m as V,o as s,aA as I,O as L,aB as O,aC as C,aD as P,f as a,h as l,j as b,at as W,A as R,k as u,v as w,t as T,K as S,i as U,am as F,aE as z}from"./entry.12ac938b.js";import{_ as G}from"./LaunchPage.vue.289a5cb3.js";import"./NMarkdown.vue.4b221360.js";import"./client.f2b385ce.js";const x=new Map,K=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,r=q(),v=A(),i=g(()=>m.tab.name),e=A(),t=B(D(v));j(()=>{const n=m.tab.view,c=n.persistent!==!1,h=["clipboard-write","clipboard-read"];if(x.get(i.value)&&c)e.value=x.get(i.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",h.join("; ")),c&&x.set(i.value,e.value),e.value.src=n.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{d(),o(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),E(_)}setTimeout(o,100)}),y(_),y(o),y(d),M(()=>{e.value&&(e.value.style.visibility="hidden")});function o(){if(!(!e.value||!e.value.contentWindow))try{const n=e.value.contentWindow.document.querySelector("html");n?.classList.toggle("dark",r.value==="dark"),n?.classList.toggle("light",r.value==="dark"),new MutationObserver(()=>{r.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(n,{attributes:!0,attributeFilter:["class"]})}catch{}}const p=N();function d(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=p.value}catch{}}function _(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(n,c)=>(s(),V("div",{ref_key:"anchor",ref:v,"h-full":"","w-full":""},null,512))}}),X={flex:"~ col gap2",mxa:"","items-center":""},H=u("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),J={"text-xl":""},Q={"text-rose":""},Y=u("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1),Z=u("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1),oe=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,r=I(),v=L(),i=g(()=>m.name??r.params.name),e=O(),t=g(()=>e.value.find(o=>o.name===i.value));return j(()=>{t.value?t.value.requireAuth&&!C.value&&P():setTimeout(()=>{t.value||v.push("/modules/overview")},2e3)}),(o,p)=>{const d=R,_=z,n=K,c=G,h=F;return a(t)?a(t).requireAuth&&!("isDevAuthed"in o?o.isDevAuthed:a(C))?(s(),l(_,{key:1})):a(t).view.type==="iframe"?(s(),l(n,{key:2,tab:a(t)},null,8,["tab"])):a(t).view.type==="vnode"?(s(),l(W(a(t).view.vnode),{key:3})):a(t).view.type==="launch"?(s(),l(c,{key:4,name:`custom-${a(t).name}`,icon:a(t).view.icon||a(t).icon,title:a(t).view.title||a(t).title,description:a(t).view.description,actions:a(t).view.actions,onAction:p[0]||(p[0]=k=>("rpc"in o?o.rpc:a(S)).customTabAction(a(t).name,k))},null,8,["name","icon","title","description","actions"])):(s(),l(d,{key:5},{default:b(()=>[U(h,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:b(()=>[w(" Unknown tab type "+T(a(t).view),1)]),_:1})]),_:1})):(s(),l(d,{key:0},{default:b(()=>[u("div",X,[H,u("p",J,[w(" Tab "),u("code",Q,T(a(i)),1),w(" not found ")]),Y,Z])]),_:1}))}}});export{oe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as o,m as s,k as t,a8 as a,o as n}from"./entry.
|
|
1
|
+
import{q as o,m as s,k as t,a8 as a,o as n}from"./entry.12ac938b.js";const r={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,_){return n(),s("div",c,[t("div",l,[a(e.$slots,"default")])])}const i=o(r,[["render",d]]);export{i as default};
|