@nuxt/devtools 0.1.5 → 0.2.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 +2 -0
- package/dist/chunks/module-main.mjs +687 -672
- package/dist/chunks/vscode.mjs +35 -30
- package/dist/cli.mjs +21 -60
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/{Badge.ec9e349b.js → Badge.4e9c300b.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.29183a21.js → FilepathItem.vue.b36b22b8.js} +1 -1
- package/dist/client/_nuxt/LaunchPage.vue.c9d8bfbe.js +1 -0
- package/dist/client/_nuxt/NButton.a7fda268.css +1 -0
- package/dist/client/_nuxt/{NButton.vue.09cc4471.js → NButton.vue.b50294f1.js} +2 -2
- package/dist/client/_nuxt/NCheckbox.vue.69c13749.js +1 -0
- package/dist/client/_nuxt/NIcon.vue.656cdb1e.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.928c9e2a.js +1 -0
- package/dist/client/_nuxt/{NuxtLogo.9f2db884.js → NuxtLogo.f9908c64.js} +1 -1
- package/dist/client/_nuxt/SectionBlock.48da9d80.css +1 -0
- package/dist/client/_nuxt/SectionBlock.914c7802.js +1 -0
- package/dist/client/_nuxt/StateEditor.ce27b0a9.css +1 -0
- package/dist/client/_nuxt/StateEditor.vue.24b581fe.js +1 -0
- package/dist/client/_nuxt/{StateEditor.vue.ab9d7157.js → StateEditor.vue.99c457ec.js} +81 -79
- package/dist/client/_nuxt/{TabIcon.vue.6890c56a.js → TabIcon.vue.c3d4f8eb.js} +1 -1
- package/dist/client/_nuxt/__inspecting.f0beaf14.js +1 -0
- package/dist/client/_nuxt/{asyncData.c8345f31.js → asyncData.d4a4cc23.js} +1 -1
- package/dist/client/_nuxt/components.2f7ee4ee.js +1 -0
- package/dist/client/_nuxt/composables.a4d79ae5.js +1 -0
- package/dist/client/_nuxt/{context.d25709fd.js → context.f290c514.js} +1 -1
- package/dist/client/_nuxt/custom-_name_.6fcfe01b.js +1 -0
- package/dist/client/_nuxt/default.7c4cf2ae.js +1 -0
- package/dist/client/_nuxt/editor.cdd0d584.js +1 -0
- package/dist/client/_nuxt/entry.3f184dda.js +5 -0
- package/dist/client/_nuxt/entry.aace963d.css +1 -0
- package/dist/client/_nuxt/error-404.2618a69f.css +1 -0
- package/dist/client/_nuxt/error-404.42d6fea6.js +1 -0
- package/dist/client/_nuxt/error-500.12a2683b.css +1 -0
- package/dist/client/_nuxt/error-500.c25057d1.js +1 -0
- package/dist/client/_nuxt/{error-component.ae83d235.js → error-component.f5255ea4.js} +2 -2
- package/dist/client/_nuxt/hooks.f2f7f7c0.js +1 -0
- package/dist/client/_nuxt/imports.c6403530.js +1 -0
- package/dist/client/_nuxt/{index.fe0907d3.js → index.cb924a24.js} +1 -1
- package/dist/client/_nuxt/layouts.c6fb5d9f.js +1 -0
- package/dist/client/_nuxt/{middleware.5410fce5.js → middleware.986c1dcb.js} +1 -1
- package/dist/client/_nuxt/modules.67212f2b.js +1 -0
- package/dist/client/_nuxt/{none.76eeebc3.js → none.64c3c69e.js} +1 -1
- package/dist/client/_nuxt/{nuxt-link.3aeeed3f.js → nuxt-link.7c2ecc54.js} +1 -1
- package/dist/client/_nuxt/overview.39e81b24.js +1 -0
- package/dist/client/_nuxt/pages.28f6050f.js +1 -0
- package/dist/client/_nuxt/payload.482e4157.js +1 -0
- package/dist/client/_nuxt/plugins.dc220904.js +1 -0
- package/dist/client/_nuxt/{runtime-configs.7cc77728.js → runtime-configs.a7793337.js} +1 -1
- package/dist/client/_nuxt/{server-routes.ffdf17b0.js → server-routes.7dbce087.js} +1 -1
- package/dist/client/_nuxt/state.99106176.js +1 -0
- package/dist/client/_nuxt/unocss-runtime.bcfb14a2.js +2 -0
- package/dist/client/_nuxt/{virtual-files.a26c8c69.js → virtual-files.1c188f74.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/iframe-client.d.ts +1 -1
- package/dist/module.d.ts +3 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -30
- package/dist/runtime/plugins/devtools.client.mjs +1 -1
- package/dist/runtime/plugins/view/Frame.vue +22 -5
- package/dist/runtime/plugins/view/state.d.ts +2 -1
- package/dist/runtime/plugins/view/state.mjs +1 -0
- package/dist/runtime/plugins/view/utils.d.ts +1 -1
- package/dist/runtime/plugins/view/utils.mjs +9 -7
- package/dist/shared/{devtools.28239661.mjs → devtools.894440bf.mjs} +1 -1
- package/dist/shared/devtools.edb7b427.mjs +35 -0
- package/dist/types.d.ts +3 -2
- package/package.json +34 -37
- package/dist/client/_nuxt/LaunchPage.vue.f4239533.js +0 -1
- package/dist/client/_nuxt/NButton.db724adb.css +0 -1
- package/dist/client/_nuxt/NIcon.vue.701f4547.js +0 -1
- package/dist/client/_nuxt/NTextInput.vue.276e32b3.js +0 -1
- package/dist/client/_nuxt/SectionBlock.082cb101.css +0 -1
- package/dist/client/_nuxt/SectionBlock.8ff5d737.js +0 -1
- package/dist/client/_nuxt/Settings.vue.b55fa306.js +0 -1
- package/dist/client/_nuxt/StateEditor.989cce56.css +0 -1
- package/dist/client/_nuxt/StateEditor.vue.d668b11c.js +0 -1
- package/dist/client/_nuxt/__inspecting.12d34e8c.js +0 -1
- package/dist/client/_nuxt/components.08e98322.js +0 -1
- package/dist/client/_nuxt/composables.8c342cc5.js +0 -1
- package/dist/client/_nuxt/custom-_name_.89baf527.js +0 -1
- package/dist/client/_nuxt/default.975e4e70.js +0 -1
- package/dist/client/_nuxt/editor.f74d7351.js +0 -1
- package/dist/client/_nuxt/entry.d28dd037.js +0 -5
- package/dist/client/_nuxt/entry.e7b3d8fd.css +0 -1
- package/dist/client/_nuxt/error-404.1469f10f.css +0 -1
- package/dist/client/_nuxt/error-404.bdee7391.js +0 -1
- package/dist/client/_nuxt/error-500.92b94fae.css +0 -1
- package/dist/client/_nuxt/error-500.c5180cef.js +0 -1
- package/dist/client/_nuxt/hooks.8f89faa2.js +0 -1
- package/dist/client/_nuxt/imports.f7970750.js +0 -1
- package/dist/client/_nuxt/layouts.d5a3dabe.js +0 -1
- package/dist/client/_nuxt/modules.6fc7bd71.js +0 -1
- package/dist/client/_nuxt/overview.e7e9880f.js +0 -1
- package/dist/client/_nuxt/pages.40900507.js +0 -1
- package/dist/client/_nuxt/payload.36dbfdde.js +0 -1
- package/dist/client/_nuxt/plugins.8195b406.js +0 -1
- package/dist/client/_nuxt/state.a5c5a841.js +0 -1
- package/dist/client/_nuxt/unocss-runtime.1fec3315.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,o as n,
|
|
1
|
+
import{a,o as n,f as i,X as l}from"./entry.3f184dda.js";const c=["src","alt"],o=["title"],m=a({__name:"TabIcon",props:{icon:null,title:null},setup(t){return(e,s)=>t.icon&&(t.icon.startsWith("/")||t.icon.match(/^https?:/))?(n(),i("img",l({key:0,style:{width:"1em",height:"1em"}},e.$attrs,{src:t.icon,alt:t.title}),null,16,c)):(n(),i("div",l({key:1,style:{width:"1em",height:"1em"}},e.$attrs,{class:t.icon||"carbon-bring-forward",title:t.title}),null,16,o))}});export{m as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o,b as c,e as a,f as i,h as e,o as r}from"./entry.3f184dda.js";const p={flex:"~","items-center":"","justify-center":"","bg-base":"","h-screen":"",px5:""},l=e("div",null," Inspecting Vue components ",-1),f=o({__name:"__inspecting",setup(_){const s=c();a("keydown",n=>{n.key==="Escape"&&t()});function t(){s.value?.inspector?.disable()}return(n,u)=>(r(),i("div",p,[e("div",{absolute:"","right-0":"","top-0":"",p2:""},[e("button",{"text-xl":"",op50:"","hover:op100":"",ma:"","carbon-close":"",onClick:t})]),l]))}});export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a3 as g,q as y,ab as m,ac as P,G as _,v as b,u as x,a8 as w}from"./entry.3f184dda.js";const C=()=>null;function B(...o){const f=typeof o[o.length-1]=="string"?o.pop():void 0;typeof o[0]!="string"&&o.unshift(f);let[a,c,t={}]=o;if(typeof a!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof c!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");t.server=t.server??!0,t.default=t.default??C,t.lazy=t.lazy??!1,t.immediate=t.immediate??!0;const e=g(),l=()=>e.isHydrating?e.payload.data[a]:e.static.data[a],u=()=>l()!==void 0;e._asyncData[a]||(e._asyncData[a]={data:y(l()??t.default?.()??null),pending:y(!u()),error:y(e.payload._errors[a]?m(e.payload._errors[a]):null)});const r={...e._asyncData[a]};r.refresh=r.execute=(s={})=>{if(e._asyncDataPromises[a]){if(s.dedupe===!1)return e._asyncDataPromises[a];e._asyncDataPromises[a].cancelled=!0}if(s._initial&&u())return l();r.pending.value=!0;const i=new Promise((n,d)=>{try{n(c(e))}catch(D){d(D)}}).then(n=>{if(i.cancelled)return e._asyncDataPromises[a];t.transform&&(n=t.transform(n)),t.pick&&(n=O(n,t.pick)),r.data.value=n,r.error.value=null}).catch(n=>{if(i.cancelled)return e._asyncDataPromises[a];r.error.value=n,r.data.value=x(t.default?.()??null)}).finally(()=>{i.cancelled||(r.pending.value=!1,e.payload.data[a]=r.data.value,r.error.value&&(e.payload._errors[a]=m(r.error.value)),delete e._asyncDataPromises[a])});return e._asyncDataPromises[a]=i,e._asyncDataPromises[a]};const p=()=>r.refresh({_initial:!0}),v=t.server!==!1&&e.payload.serverRendered;{const s=w();if(s&&!s._nuxtOnBeforeMountCbs){s._nuxtOnBeforeMountCbs=[];const n=s._nuxtOnBeforeMountCbs;s&&(P(()=>{n.forEach(d=>{d()}),n.splice(0,n.length)}),_(()=>n.splice(0,n.length)))}v&&e.isHydrating&&u()?r.pending.value=!1:s&&(e.payload.serverRendered&&e.isHydrating||t.lazy)&&t.immediate?s._nuxtOnBeforeMountCbs.push(p):t.immediate&&p(),t.watch&&b(t.watch,()=>r.refresh());const i=e.hook("app:data:refresh",n=>{if(!n||n.includes(a))return r.refresh()});s&&_(i)}const h=Promise.resolve(e._asyncDataPromises[a]).then(()=>r);return Object.assign(h,r),h}function O(o,f){const a={};for(const c of f)a[c]=o[c];return a}export{B as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as K}from"./NTextInput.vue.928c9e2a.js";import{_ as O}from"./NIcon.vue.656cdb1e.js";import{_ as Q}from"./NCheckbox.vue.69c13749.js";import{a as T,l as N,o as a,f as y,k as D,t as W,u as e,h as _,i as x,c as b,m as $,r as L,p as X,w as k,q as R,s as Y,v as Z,x as U,T as ee,F as V,y as z,z as F,b as oe,A as te}from"./entry.3f184dda.js";import{_ as A}from"./Badge.4e9c300b.js";import{_ as E}from"./FilepathItem.vue.b36b22b8.js";import{u as ne}from"./editor.cdd0d584.js";import{N as se,_ as ae}from"./NButton.vue.b50294f1.js";import{u as le}from"./composables.a4d79ae5.js";import{u as ie,a as re,b as ce,i as pe,g as ue,c as me}from"./state.99106176.js";import{_ as de,a as fe}from"./SectionBlock.914c7802.js";import{F as _e}from"./fuse.esm.88e2763d.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./context.f290c514.js";import"./nuxt-link.7c2ecc54.js";/* empty css */import"./StateEditor.vue.99c457ec.js";import"./asyncData.d4a4cc23.js";const he=/\d/,be=["-","_","/","."];function ve(t=""){if(!he.test(t))return t.toUpperCase()===t}function ge(t,n){const h=n??be,s=[];if(!t||typeof t!="string")return s;let o="",r,d;for(const p of t){const u=h.includes(p);if(u===!0){s.push(o),o="",r=void 0;continue}const l=ve(p);if(d===!1){if(r===!1&&l===!0){s.push(o),o=p,r=l;continue}if(r===!0&&l===!1&&o.length>1){const c=o[o.length-1];s.push(o.slice(0,Math.max(0,o.length-1))),o=c+p,r=l;continue}}o+=p,r=l,d=u}return s.push(o),s}function ye(t){return t?t[0].toUpperCase()+t.slice(1):""}function G(t){return t?(Array.isArray(t)?t:ge(t)).map(n=>ye(n)).join(""):""}const xe={"text-sm":"","font-mono":""},ke=_("span",{op20:"",mr1:""},"<",-1),$e=_("span",{op20:"",ml1:""},"/>",-1),j=T({__name:"ComponentName",props:{component:null},setup(t){const n=t,h=N(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||""));return(s,o)=>(a(),y("code",xe,[ke,D(W(e(h)),1),$e]))}}),Ce={flex:"~ col gap1"},we={flex:"~ gap2"},Ne=_("div",{"i-carbon-copy":""},null,-1),Ve=[Ne],q=T({__name:"ComponentDetails",props:{component:null},setup(t){const n=t,h=N(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||"")),s=N(()=>n.component.filePath||n.component.file||n.component.__file||""),o=ne();return(r,d)=>{const p=j,u=A,l=E;return a(),y("div",Ce,[_("div",we,[_("div",null,[x(p,{component:t.component},null,8,["component"])]),_("button",{title:"Copy name","n-icon-btn":"",onClick:d[0]||(d[0]=c=>e(o)(`<${e(h)}></${e(h)}>`))},Ve),t.component.global?(a(),b(u,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"runtime"})):$("",!0)]),e(s)?(a(),b(l,{key:0,filepath:e(s),"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):$("",!0),L(r.$slots,"default")])}}}),Pe={rounded:"",px2:"",py1:"",hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":""},Se={"hover:text-primary":""},Te=T({__name:"ComponentItem",props:{component:null},setup(t){const n=t,h=N(()=>n.component.filePath||n.component.file||n.component.__file||"");return(s,o)=>{const r=j,d=q,p=X("VDropdown"),u=A,l=E;return a(),y("div",Pe,[x(p,null,{popper:k(()=>[x(d,{component:t.component,p4:""},null,8,["component"])]),default:k(()=>[_("button",Se,[x(r,{component:t.component},null,8,["component"])])]),_:1}),t.component.global?(a(),b(u,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"runtime"})):$("",!0),L(s.$slots,"default"),e(h)?(a(),b(l,{key:1,filepath:e(h),"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):$("",!0)])}}}),Be={border:"b base",flex:"~ gap4",py1:"","items-center":"",px4:"","h-10":"","flex-none":""},Fe=_("span",{op75:""},"Show pages",-1),Me=_("span",{op75:""},"Show layouts",-1),Re=_("span",{op75:""},"Show node_modules",-1),Ue=_("div",{"i-carbon-close":""},null,-1),Ie={"w-full":"",relative:"",style:{height:"calc(100vh - 115px)"}},De={key:0,border:"l base",flex:"~ col gap-1","text-sm":"","items-center":"",absolute:"","right-0":"","top-0":"","bg-base":"",p2:"","bottom-0":""},Le=_("div",{"i-carbon-close":""},null,-1),ze=[Le],Ae=T({__name:"ComponentsGraph",props:{components:null},setup(t){const n=t,h=R(),s=le(),o=R(),r=ie(),d=re(),p=ce(),{componentsGraphShowNodeModules:u,componentsGraphShowPages:l,componentsGraphShowLayouts:c}=z(),f=R(),M=N(()=>{const w=p.value||[];if(f.value){let m=function(v){!v||i.has(v)||(i.add(v),v.deps.forEach(C=>{m(w.find(g=>g.id===C))}))};const i=new Set;return w.find(v=>v.id===o.value?.id),m(f.value),Array.from(i)}return w}),P=N(()=>{const w=M.value.map(i=>{const v=n.components.find(B=>B.filePath===i.id),C=r.value?.find(B=>B.file===i.id),g=d.value?.find(B=>B.file===i.id),H=i.id.replace(/\?.*$/,"").replace(/\#.*$/,""),S=i.id.includes("/node_modules/")?"lib":v?"user":g?"layout":C?"page":"unknown";if(!u.value&&S==="lib"||!l.value&&S==="page"||!c.value&&S==="layout")return null;const J=S==="layout"?"hexagon":S==="page"?"square":"dot";return{id:i.id,label:H.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:S,shape:J,size:15+Math.min(i.deps.length/2,8),font:{color:s.value==="dark"?"white":"black"},color:f.value?.id===i.id?"#82c742":void 0,extra:{id:i.id,component:v,page:C,layout:g,relationship:i}}}).filter(i=>!!i),m=M.value.flatMap(i=>i.deps.map(v=>({from:i.id,to:v,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:w,edges:m}});Y(()=>{const w={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},m=new se(h.value,P.value,w);m.on("click",i=>{const v=i.nodes?.[0],C=P.value.nodes?.find(g=>g.id===v)?.extra;C&&(o.value=C)}),Z(P,()=>{m.setData(P.value)})});function I(){f.value=o.value?.relationship,o.value=void 0}return(w,m)=>{const i=Q,v=q,C=ae;return a(),y(V,null,[_("div",Be,[x(i,{modelValue:e(l),"onUpdate:modelValue":m[0]||(m[0]=g=>U(l)?l.value=g:null),n:"primary sm"},{default:k(()=>[Fe]),_:1},8,["modelValue"]),x(i,{modelValue:e(c),"onUpdate:modelValue":m[1]||(m[1]=g=>U(c)?c.value=g:null),n:"primary sm"},{default:k(()=>[Me]),_:1},8,["modelValue"]),x(i,{modelValue:e(u),"onUpdate:modelValue":m[2]||(m[2]=g=>U(u)?u.value=g:null),n:"primary sm"},{default:k(()=>[Re]),_:1},8,["modelValue"]),e(f)?(a(),y("button",{key:0,flex:"~ gap-1","items-center":"",py1:"","bg-gray:20":"",pl3:"",pr2:"","rounded-full":"","text-xs":"",op50:"","hover:op100":"",onClick:m[3]||(m[3]=g=>f.value=void 0)},[D(" Clear filter "),Ue])):$("",!0)]),_("div",Ie,[_("div",{ref_key:"container",ref:h,"w-full":"","h-full":""},null,512),x(ee,{"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:k(()=>[e(o)&&e(o).component?(a(),y("div",De,[_("button",{"n-icon-btn":"",absolute:"","text-xl":"","right-2":"","top-2":"",onClick:m[4]||(m[4]=g=>o.value=void 0)},ze),x(v,{component:e(o).component,p4:""},null,8,["component"]),x(C,{n:"primary solid",onClick:m[5]||(m[5]=g=>I())},{default:k(()=>[D(" Filter to this component ")]),_:1})])):$("",!0)]),_:1})])],64)}}}),Ee={pl4:""},Ge=T({__name:"ComponentsList",props:{components:null,search:null},setup(t){const n=t,h=N(()=>new _e(n.components,{keys:["pascalName","filePath","kebabName"]})),s=N(()=>{const o=[],r=new Map,d=[],p=[],u={user:0,lib:0,builtin:0,runtime:0};return(n.search?h.value.search(n.search).map(c=>c.item):n.components).forEach(c=>{if(c.global){p.push(c),u.runtime++;return}if(c.filePath&&pe(c.filePath)){const f=ue(c.filePath);if(!f)return;f==="nuxt"?(d.push(c),u.builtin++):(r.has(f)||r.set(f,[]),r.get(f).push(c),u.lib++)}else o.push(c),u.user++}),{count:u,user:o,builtin:d,lib:r,runtime:p}});return(o,r)=>{const d=Te,p=de,u=fe;return a(),y(V,null,[e(s).user.length?(a(),b(p,{key:0,icon:"carbon-nominal",text:"User components",description:`Total components: ${e(s).count.user}`},{default:k(()=>[(a(!0),y(V,null,F(e(s).user,l=>(a(),b(d,{key:l.filePath,"ml--5":"",component:l},null,8,["component"]))),128))]),_:1},8,["description"])):$("",!0),e(s).runtime.length?(a(),b(p,{key:1,icon:"carbon-load-balancer-global",text:"Runtime components",description:`Total components: ${e(s).count.runtime}`},{default:k(()=>[(a(!0),y(V,null,F(e(s).runtime,l=>(a(),b(d,{key:l.filePath,"ml--5":"",component:l},null,8,["component"]))),128))]),_:1},8,["description"])):$("",!0),e(s).builtin.length?(a(),b(p,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${e(s).count.builtin}`},{default:k(()=>[(a(!0),y(V,null,F(e(s).builtin,l=>(a(),b(d,{key:l.filePath,"ml--5":"",component:l},null,8,["component"]))),128))]),_:1},8,["description"])):$("",!0),e(s).lib.size?(a(),b(p,{key:3,icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${e(s).count.lib} components from ${e(s).lib.size} packages`},{default:k(()=>[(a(!0),y(V,null,F(e(s).lib.entries(),([l,c])=>(a(),y("div",{key:l},[x(u,{text:`${l} (${c.length})`,op50:"",py1:""},null,8,["text"]),_("div",Ee,[(a(!0),y(V,null,F(c,f=>(a(),b(d,{key:f.filePath,component:f},null,8,["component"]))),128))])]))),128))]),_:1},8,["description"])):$("",!0)],64)}}}),je={"h-full":"","of-auto":""},qe={p4:"",flex:"~ gap4","flex-1":"",border:"b base","navbar-glass":""},co=T({__name:"components",setup(t){const n=oe(),h=te(),s=me(),o=R(""),{componentsView:r}=z();function d(){n.value?.inspector?.instance&&(n.value.inspector.enable(),h.push("/__inspecting"))}function p(){r.value=r.value==="list"?"graph":"list"}return(u,l)=>{const c=K,f=O,M=Ae,P=Ge;return a(),y("div",je,[_("div",qe,[x(c,{modelValue:e(o),"onUpdate:modelValue":l[0]||(l[0]=I=>U(o)?o.value=I:null),placeholder:"Search...",icon:"carbon-search",p:"x5 y2",n:"primary","flex-auto":"","bg-base":"","border-base":""},null,8,["modelValue"]),_("button",{title:"Toggle view",onClick:p},[e(r)==="graph"?(a(),b(f,{key:0,icon:"i-carbon-network-4"})):(a(),b(f,{key:1,icon:"i-carbon-list"}))]),e(n)?.inspector?.instance?(a(),y("button",{key:0,title:"Inspect Vue components",onClick:d},[x(f,{icon:"i-carbon-select-window"})])):$("",!0)]),e(r)==="graph"?(a(),b(M,{key:0,components:e(s)},null,8,["components"])):(a(),b(P,{key:1,search:e(o),components:e(s)},null,8,["search","components"]))])}}});export{co as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aa as o}from"./entry.3f184dda.js";const r=()=>o("color-mode").value;export{r as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a7 as e,a8 as i}from"./entry.3f184dda.js";function r(){const t=Symbol("singleton");return[function(n){i()?.appContext.app.provide(t,n)},function(n){return e(t,n)}]}const[c,p]=r();export{c as p,p as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as k,b as x,q as b,l as y,B as C,C as E,s as T,D as B,E as v,G as M,H as g,f as _,o as s,I as $,u as n,c as f,J as j,t as D}from"./entry.3f184dda.js";import{u as I}from"./composables.a4d79ae5.js";import{_ as L}from"./LaunchPage.vue.c9d8bfbe.js";import{d as W}from"./state.99106176.js";import"./TabIcon.vue.c3d4f8eb.js";import"./NIcon.vue.656cdb1e.js";import"./NButton.vue.b50294f1.js";import"./nuxt-link.7c2ecc54.js";/* empty css */import"./StateEditor.vue.99c457ec.js";import"./asyncData.d4a4cc23.js";const d=new Map,O=k({__name:"IframeView",props:{tab:null},setup(h){const c=h,m=x(),r=I(),t=b(),o=y(()=>c.tab.name),e=b(),i=C(E(t));T(()=>{const a=c.tab.view,p=a.persistent!==!1;if(d.get(o.value)&&p)e.value=d.get(o.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),p&&d.set(o.value,e.value),e.value.src=a.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{u(),l(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),B(w)}setTimeout(l,100)}),v(w),v(l),v(u),M(()=>{e.value&&(e.value.style.visibility="hidden")});function l(){if(!(!e.value||!e.value.contentWindow))try{const a=e.value.contentWindow.document.querySelector("html");a?.classList.toggle("dark",r.value==="dark"),a?.classList.toggle("light",r.value==="dark")}catch{}}function u(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__={host:m.value,devtools:{rpc:g}}}catch{}}function w(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${i.left}px`,top:`${i.top}px`,width:`${i.width}px`,height:`${i.height}px`,outline:"none"})}return(a,p)=>(s(),_("div",{ref_key:"anchor",ref:t,"w-full":"","h-full":""},null,512))}}),S={key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},U={key:4,flex:"~ col","h-full":"","items-center":"","justify-center":""},K=k({__name:"custom-[name]",setup(h){const c=$(),m=y(()=>c.params.name),r=W(),t=y(()=>r.all.value.find(o=>o.name===m.value));return(o,e)=>{const i=O,l=L;return n(t)?n(t).view.type==="iframe"?(s(),f(i,{key:1,tab:n(t)},null,8,["tab"])):n(t).view.type==="vnode"?(s(),f(j(n(t).view.vnode),{key:2})):n(t).view.type==="launch"?(s(),f(l,{key:3,icon:n(t).view.icon||n(t).icon,title:n(t).view.title||n(t).title,description:n(t).view.description,actions:n(t).view.actions,onAction:e[0]||(e[0]=u=>("rpc"in o?o.rpc:n(g)).customTabAction(n(t).name,u))},null,8,["icon","title","description","actions"])):(s(),_("div",U," Unknown tab type "+D(n(t).view),1)):(s(),_("div",S," Tab not found "))}}});export{K as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as V}from"./context.f290c514.js";import{a as h,b as y,a3 as P,o as a,f as d,u as o,h as n,K as m,m as b,i as p,w as f,k as C,a4 as z,q as k,s as B,a5 as j,c as x,r as w,l as D,a6 as L,n as R,g as F,t as N,J as I,p as M,F as $,z as T,R as S,L as O}from"./entry.3f184dda.js";import{_ as W}from"./NuxtLogo.f9908c64.js";import{_ as q}from"./NButton.vue.b50294f1.js";import{_ as A}from"./_plugin-vue_export-helper.c27b6911.js";import{u as E}from"./composables.a4d79ae5.js";import{_ as H}from"./TabIcon.vue.c3d4f8eb.js";import{_ as J}from"./nuxt-link.7c2ecc54.js";import{d as K}from"./state.99106176.js";import"./NIcon.vue.656cdb1e.js";/* empty css */import"./StateEditor.vue.99c457ec.js";import"./asyncData.d4a4cc23.js";const Y={key:0,px4:"",py2:"",border:"b base",flex:"~ col gap-1"},G=n("div",{"text-sm":"",op50:""}," Dock devtools to ",-1),Q={flex:"~ gap-1","text-lg":""},U={px4:"",py3:"",flex:"~ gap2"},X=h({__name:"DockingPanel",setup(l){const e=z(),t=y(),s=P();function r(){s.hooks.callHookParallel("app:data:refresh",Object.keys(s.payload.data)),t.value&&(t.value={...t.value})}function c(){location.reload()}return(u,i)=>{const v=q;return a(),d("div",null,[o(t)?(a(),d("div",Y,[G,n("div",Q,[n("button",{"i-carbon-open-panel-filled-bottom":"",class:m(o(e).position==="bottom"?"text-primary":"op50"),onClick:i[0]||(i[0]=g=>o(e).position="bottom")},null,2),n("button",{"i-carbon-open-panel-filled-right":"",class:m(o(e).position==="right"?"text-primary":"op50"),onClick:i[1]||(i[1]=g=>o(e).position="right")},null,2),n("button",{"i-carbon-open-panel-filled-left":"",class:m(o(e).position==="left"?"text-primary":"op50"),onClick:i[2]||(i[2]=g=>o(e).position="left")},null,2),n("button",{"i-carbon-open-panel-filled-top":"",class:m(o(e).position==="top"?"text-primary":"op50"),onClick:i[3]||(i[3]=g=>o(e).position="top")},null,2)])])):b("",!0),n("div",U,[p(v,{n:"solid primary xs",onClick:r},{default:f(()=>[C(" Refetch Data ")]),_:1}),p(v,{n:"solid primary xs",onClick:c},{default:f(()=>[C(" Refresh Page ")]),_:1})])])}}}),Z=h({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(l,{slots:e,attrs:t}){const s=k(!1);return B(()=>{s.value=!0}),r=>{if(s.value)return e.default?.();const c=e.fallback||e.placeholder;if(c)return c();const u=r.fallback||r.placeholder||"",i=r.fallbackTag||r.placeholderTag||"span";return d(i,t,u)}}}),ee={name:j,props:{placeholder:String,tag:{type:String,default:"span"}}};function te(l,e,t,s,r,c){const u=Z;return a(),x(u,{placeholder:t.placeholder,"placeholder-tag":t.tag},{default:f(()=>[w(l.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const oe=A(ee,[["render",te]]),ne=h({__name:"NDarkToggle",setup(l){const e=E(),t=D({get(){return e.value==="dark"},set(){e.preference=t.value?"light":"dark"}}),s=L(t),r={mode:e,isDark:t,toggle:s};return(c,u)=>{const i=oe;return a(),x(i,{tag:"span"},{default:f(()=>[w(c.$slots,"default",R(F(r)))]),_:3})}}}),ae={hidden:"","lg:block":"","flex-auto":"",pl2:""},le={key:0,hidden:"","lg:block":""},se=h({__name:"DrawerItem",props:{tab:null},setup(l){const e=l,t=y(),s=D(()=>!(e.tab.requireClient&&!t.value));return(r,c)=>{const u=H,i=J;return o(s)?(a(),x(i,{key:0,to:"path"in l.tab?l.tab.path:`/modules/custom-${l.tab.name}`,flex:"~",p2:"","items-center":"","justify-center":"","text-true-gray":"",border:"base",lg:"border-b px3 py1.5 justify-start","hover:bg-active":"","select-none":"","exact-active-class":"!text-primary"},{default:f(()=>[p(u,{"text-lg":"","lg:text-base":"",icon:l.tab.icon,title:l.tab.title},null,8,["icon","title"]),n("div",ae,N(l.tab.title),1),"extraTabVNode"in l.tab&&l.tab.extraTabVNode?(a(),d("div",le,[(a(),x(I(l.tab.extraTabVNode)))])):b("",!0)]),_:1},8,["to"])):b("",!0)}}}),re={border:"r base",flex:"~ col","h-full":""},ie={flex:"~",p2:"","items-center":"",border:"b base"},ce=n("div",{hidden:"","lg:block":"","flex-auto":""},null,-1),de=["onClick"],ue=n("div",{"carbon-sun":"","dark:carbon-moon":"","translate-y--1px":""},null,-1),pe=[ue],_e=n("div",{"i-carbon-close":"","scale-140":""},null,-1),me=[_e],fe=n("div",{"text-xs":"",p1:"","lg:p2":"","text-hex-888":"","text-center":"",uppercase:"","tracking-widest":"",border:"b base"},[n("span",{hidden:"","lg:inline":""},"Modules")],-1),be=n("div",{"flex-auto":""},null,-1),he={key:0,px4:"",hidden:"","theme-banner-yellow":"","justify-center":"","lg:flex":"",gap3:""},ge=h({__name:"Drawer",setup(l){const e=y(),t=K();return(s,r)=>{const c=W,u=X,i=M("VDropdown"),v=ne,g=se;return a(),d("div",re,[n("div",ie,[p(i,{placement:"left-start",distance:20,hidden:"","lg:block":""},{popper:f(()=>[p(u)]),default:f(()=>[p(c,{"h-8":"",class:m(o(e)?"":"saturate-0"),title:o(e)?"Nuxt DevTools":"DevTools Client not connected, try open it in iframe mode"},null,8,["class","title"])]),_:1}),ce,p(v,null,{default:f(({toggle:_})=>[n("button",{"n-icon-btn":"","w-7":"","mr--1":"","h-7":"",class:"hidden! lg:block!",onClick:De=>_()},pe,8,de)]),_:1}),o(e)?(a(),d("button",{key:0,"n-icon-btn":"","w-7":"","h-7":"",onClick:r[0]||(r[0]=_=>o(e).closeDevTools())},me)):b("",!0)]),(a(!0),d($,null,T(o(t).builtin.value,_=>(a(),x(g,{key:_.name,tab:_},null,8,["tab"]))),128)),o(t).custom.value.length?(a(),d($,{key:0},[fe,(a(!0),d($,null,T(o(t).custom.value,_=>(a(),x(g,{key:_.name,tab:_},null,8,["tab"]))),128)),be,("showConnectionWarning"in s?s.showConnectionWarning:o(S))?(a(),d("div",he," Server data only ")):b("",!0)],64)):b("",!0)])}}}),xe=h({__name:"Notification",setup(l){const e=k(!1),t=k(),s=k();return V((r,c,u=1500)=>{s.value=r,t.value=c,e.value=!0,setTimeout(()=>{e.value=!1},u)}),(r,c)=>(a(),d("div",{"text-center":"","top-0":"","right-0":"",fixed:"","left-0":"","z-50":"",class:m(o(e)?"":"pointer-events-none overflow-hidden")},[n("div",{border:"~ base",flex:"~ inline gap2",rounded:"","bg-base":"","text-primary":"","items-center":"","px-4":"","py-1":"","inline-block":"","m-3":"","transition-all":"","duration-300":"",style:O(o(e)?{}:{transform:"translateY(-300%)"}),class:m(o(e)?"shadow":"shadow-none")},[o(t)?(a(),d("div",{key:0,class:m(o(t))},null,2)):b("",!0),n("div",null,N(o(s)),1)],6)],2))}}),ve={"of-hidden":"","bg-base":"","h-screen":"","font-sans":""},ke={key:0,"h-full":"","w-full":"",flex:""},ye=n("div",{ma:"","text-lg":"",flex:"~ col","items-center":"","animate-pulse":""},[n("div",{"i-carbon-circle-dash":"","animate-spin":"","text-4xl":"",op50:""}),C(" Connecting... ")],-1),$e=[ye],Ce={key:1,grid:"~ cols-[45px_1fr] lg:cols-[200px_1fr]","h-full":"","of-hidden":""},we={"h-full":"","of-auto":""},Oe=h({__name:"default",setup(l){const e=y(),t=D(()=>!e.value&&!S.value);return(s,r)=>{const c=xe,u=ge;return a(),d("div",ve,[p(c),o(t)?(a(),d("div",ke,$e)):(a(),d("div",Ce,[p(u,{"of-auto":""}),n("div",we,[w(s.$slots,"default")])]))])}}});export{Oe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{H as a,Y as n}from"./entry.3f184dda.js";import{u as r}from"./context.f290c514.js";async function s(o){await a.openInEditor(o)}function e(){const o=n(),i=r();return t=>{o.copy(t),i("Copied to clipboard","carbon-checkmark")}}export{s as o,e as u};
|