@nuxt/devtools-assets-nightly 4.0.0-29893089.d6a282e → 4.0.0-29893186.f4652fe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/200.html +1 -1
- package/dist/404.html +1 -1
- package/dist/_nuxt/{analyze-build-edjuvmen.js → analyze-build-otqv3q6x.js} +1 -1
- package/dist/_nuxt/browser-agent-rpc-kh4-hhv-hf-bhrjlxpn.js +1 -0
- package/dist/_nuxt/builds/latest.json +1 -1
- package/dist/_nuxt/builds/meta/2da772c7-e3b0-4ce9-9dc9-4c8bc60c164c.json +1 -0
- package/dist/_nuxt/{code-diff-cllxmlzn.js → code-diff-oii4iyrf.js} +1 -1
- package/dist/_nuxt/{components-f7ufmv52.js → components-dw097v4p.js} +1 -1
- package/dist/_nuxt/{composable-item-cvm5bou5.js → composable-item-frkviqjw.js} +1 -1
- package/dist/_nuxt/{custom-_name_-jnj2332q.js → custom-_name_-hihsulnq.js} +1 -1
- package/dist/_nuxt/{data-schema-drawer-n72nmdnb.js → data-schema-drawer-c3rl3ulm.js} +1 -1
- package/dist/_nuxt/{debug-fvh49mb4.js → debug-l6qe35cj.js} +1 -1
- package/dist/_nuxt/{error-404-b0qmyum0.js → error-404-no7mnqgl.js} +1 -1
- package/dist/_nuxt/error-404.css-cwub3x5l.css +1 -0
- package/dist/_nuxt/{error-500-oyzlyaxz.js → error-500-kzf0jsyj.js} +1 -1
- package/dist/_nuxt/error-500.css-ex88p7jb.css +1 -0
- package/dist/_nuxt/{error-pa9d2x0l.js → error-mh6ysv57.js} +1 -1
- package/dist/_nuxt/{filepath-item-le1tf1cv.js → filepath-item-bn29t5gp.js} +1 -1
- package/dist/_nuxt/{help-fab-oevh6fu6.js → help-fab-co1gqajf.js} +1 -1
- package/dist/_nuxt/{hooks-oh6bepvu.js → hooks-h1syhce8.js} +1 -1
- package/dist/_nuxt/{imports-fv5wpxqj.js → imports-bxphxs9f.js} +1 -1
- package/dist/_nuxt/{o5zuui50.js → j3di14zy.js} +3 -3
- package/dist/_nuxt/{launch-page-edghmj3u.js → launch-page-os81bs6q.js} +1 -1
- package/dist/_nuxt/{modules-g5v4acwy.js → modules-gg4em61t.js} +1 -1
- package/dist/_nuxt/{ncheckbox-b1g9gqr9.js → ncheckbox-lpu85kwa.js} +1 -1
- package/dist/_nuxt/{ndrawer-nv0fovj4.js → ndrawer-dp0zelp1.js} +1 -1
- package/dist/_nuxt/{ndropdown-ewq47ntq.js → ndropdown-k3qkusf2.js} +1 -1
- package/dist/_nuxt/{nicon-fggc28m9.js → nicon-ecitoebm.js} +3 -3
- package/dist/_nuxt/{nsection-block-ih9c04mv.js → nsection-block-z4uk18lp.js} +1 -1
- package/dist/_nuxt/{nselect-nt99qamb.js → nselect-k0kc0sow.js} +1 -1
- package/dist/_nuxt/{nselect-tabs-l7v6qhzj.js → nselect-tabs-jzs0nv8s.js} +1 -1
- package/dist/_nuxt/{nsplit-pane-lw36ud7g.js → nsplit-pane-ehu99w9s.js} +1 -1
- package/dist/_nuxt/{ntip-ipazo7j4.js → ntip-dy8764yl.js} +1 -1
- package/dist/_nuxt/{overview-kwse0ssr.js → overview-3qlhlkfn.js} +1 -1
- package/dist/_nuxt/{pages-go7p532k.js → pages-o99yp792.js} +1 -1
- package/dist/_nuxt/{payload-jber3hxj.js → payload-ey9b9s1y.js} +1 -1
- package/dist/_nuxt/{plugins-ou9d1371.js → plugins-e86b1gw0.js} +1 -1
- package/dist/_nuxt/{runtime-configs-npir0ikd.js → runtime-configs-kgpc75c8.js} +1 -1
- package/dist/_nuxt/{server-route-inputs-gzwem3vc.js → server-route-inputs-kri7gnjj.js} +1 -1
- package/dist/_nuxt/{server-routes-buhxzhd5.js → server-routes-cfgkudsm.js} +1 -1
- package/dist/_nuxt/{server-tasks-k907dhjs.js → server-tasks-lseatq2x.js} +1 -1
- package/dist/_nuxt/{settings-bu1qwwml.js → settings-dnxn6vi1.js} +1 -1
- package/dist/_nuxt/{stacktrace-list-gpqt5gfq.js → stacktrace-list-4e7iwgtu.js} +1 -1
- package/dist/_nuxt/{state-components-b7c7h92g.js → state-components-ct42rqqf.js} +1 -1
- package/dist/_nuxt/{state-editor-hkt21uqu.js → state-editor-eq46xrul.js} +1 -1
- package/dist/_nuxt/{state-modules-ba62gs9q.js → state-modules-ghe4abe5.js} +1 -1
- package/dist/_nuxt/{state-tabs-fm7jexwd.js → state-tabs-henf9j8v.js} +1 -1
- package/dist/_nuxt/{storage-f0w2ii3w.js → storage-doug3y3t.js} +1 -1
- package/dist/_nuxt/{timeline-ob2yog6u.js → timeline-nudgbvfc.js} +1 -1
- package/dist/_nuxt/{utils-hyqnohx4.js → utils-k0p3foaq.js} +1 -1
- package/dist/_nuxt/{virtual-files-hd731ygc.js → virtual-files-ktej33dt.js} +1 -1
- package/dist/_nuxt/{virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-higuz0yc.js → virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-c0ivokki.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/manifest.json +256 -256
- package/package.json +1 -1
- package/dist/_nuxt/browser-agent-rpc-bxho-sh1z-n8pic0el.js +0 -1
- package/dist/_nuxt/builds/meta/0b0f05c4-91df-4940-884c-9750eeb998ce.json +0 -1
- package/dist/_nuxt/error-404.css-i3smqrpa.css +0 -1
- package/dist/_nuxt/error-500.css-gwm3hrat.css +0 -1
package/dist/200.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"./_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"./_nuxt/j3di14zy.js"}}</script><link rel="stylesheet" href="./_nuxt/entry.css-dsrtaear.css" crossorigin><link rel="stylesheet" href="./_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="./_nuxt/vendor/unocss.css-ekbl8926.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="./_nuxt/j3di14zy.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nuxt-fe4hkk1m.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/json-editor-vue-e51gef8e.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/rolldown-runtime-d720z368.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nicon-ecitoebm.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/ready-h577ja1k.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nanoid-kujw2c73.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/shiki-eep5l02u.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/unocss-hu24292r.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nuxt-link-f8q70nfj.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-c0ivokki.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/utils-k0p3foaq.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/ncard-f5hsx5qg.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/state-tabs-henf9j8v.js"><script type="module" src="./_nuxt/j3di14zy.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="./_nuxt/default-mrcqn5mn.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/full-lbk4rf9i.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/none-ouu1dkb1.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/ncode-block.css-ivoxtfjk.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/data-schema-drawer-c3rl3ulm.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/nselect-k0kc0sow.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ndropdown-k3qkusf2.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ncode-block-emvsl3dj.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/client-o12wrvuh.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ndrawer-dp0zelp1.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/vendor/quicktype-core-ldbgqon5.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/error-404.css-cwub3x5l.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-404-no7mnqgl.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/error-500.css-ex88p7jb.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-500-kzf0jsyj.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:location.pathname.replace(/[^/]*$/,""),buildId:"2da772c7-e3b0-4ce9-9dc9-4c8bc60c164c",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1793591219449,false]</script></body></html>
|
package/dist/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"./_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"./_nuxt/j3di14zy.js"}}</script><link rel="stylesheet" href="./_nuxt/entry.css-dsrtaear.css" crossorigin><link rel="stylesheet" href="./_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="./_nuxt/vendor/unocss.css-ekbl8926.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="./_nuxt/j3di14zy.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nuxt-fe4hkk1m.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/json-editor-vue-e51gef8e.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/rolldown-runtime-d720z368.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nicon-ecitoebm.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/ready-h577ja1k.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nanoid-kujw2c73.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/shiki-eep5l02u.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/unocss-hu24292r.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nuxt-link-f8q70nfj.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-c0ivokki.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/utils-k0p3foaq.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/ncard-f5hsx5qg.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/state-tabs-henf9j8v.js"><script type="module" src="./_nuxt/j3di14zy.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="./_nuxt/default-mrcqn5mn.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/full-lbk4rf9i.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/none-ouu1dkb1.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/ncode-block.css-ivoxtfjk.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/data-schema-drawer-c3rl3ulm.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/nselect-k0kc0sow.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ndropdown-k3qkusf2.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ncode-block-emvsl3dj.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/client-o12wrvuh.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ndrawer-dp0zelp1.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/vendor/quicktype-core-ldbgqon5.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/error-404.css-cwub3x5l.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-404-no7mnqgl.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/error-500.css-ex88p7jb.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-500-kzf0jsyj.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:location.pathname.replace(/[^/]*$/,""),buildId:"2da772c7-e3b0-4ce9-9dc9-4c8bc60c164c",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1793591219464,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./nuxt-fe4hkk1m.js";import{S as t,g as n,x as r}from"./nicon-
|
|
1
|
+
import{o as e}from"./nuxt-fe4hkk1m.js";import{S as t,g as n,x as r}from"./nicon-ecitoebm.js";import{C as i,Et as a,G as o,Gt as s,H as c,Jt as l,_t as u,a as d,b as f,d as p,f as m,h,m as g,ot as _,p as v,st as y,x as b}from"./vendor/json-editor-vue-e51gef8e.js";import{Vt as x}from"./ready-h577ja1k.js";import{g as S,h as C}from"./utils-k0p3foaq.js";import{t as w}from"./_plugin-vue_export-helper-d9irwgla.js";import{_ as T,f as E,h as D,i as O,m as k,x as A}from"#entry";import{t as j}from"./ncode-block-emvsl3dj.js";import{t as M}from"./pages-oclxpiil.js";import{t as N}from"./filepath-item-bn29t5gp.js";import{t as P}from"./npanel-grids-dgypja2z.js";import{t as F}from"./nsplit-pane-ehu99w9s.js";import{t as I}from"./ntip-dy8764yl.js";import{t as L}from"./ncheckbox-lpu85kwa.js";import{t as R}from"./help-fab-co1gqajf.js";var z={"h-full":``,grid:`~ rows-[max-content_1fr]`},B={flex:`~ wrap`,"w-full":``},V=[`onClick`],H={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},U={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},W=`/__nuxt_devtools__/client`,G=Object.assign(i({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(r){let i=r,v=`${e().app.baseURL.replace(W,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),S=p(()=>{let e=[{name:`Overview`,id:`overview`}];return i.current.features.bundleClient&&e.push({name:`Client Bundle`,id:`bundle-client`}),i.current.features.bundleNitro&&e.push({name:`Nitro Bundle`,id:`bundle-nitro`}),i.current.features.viteInspect&&e.push({name:`Vite Inspect`,id:`vite-inspect`}),e}),C=u(S.value[0]);function w(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function T(e){return e<1024?`${e}B`:e<1048576?`${(e/1024).toFixed(1)}KB`:e<1073741824?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}async function E(e){return n.clearAnalyzeBuilds([e])}return(e,n)=>{let i=N,u=D;return c(),h(`div`,z,[m(`div`,B,[(c(!0),h(d,null,o(S.value,(e,t)=>(c(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:s(e.id===C.value?.id?``:`border-b`),onClick:t=>C.value=e},[m(`div`,{class:s(e.id===C.value?.id?``:`op30`)},l(e.name),3)],10,V))),128)),n[1]||=m(`div`,{border:`b base`,"flex-auto":``},null,-1)]),C.value?.id===`overview`?(c(),h(`div`,H,[n[15]||=m(`div`,{"flex-auto":``},null,-1),m(`div`,U,[n[10]||=m(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),m(`div`,null,[n[2]||=m(`div`,{"text-sm":``,op50:``},` Name `,-1),m(`div`,null,l(r.current.name),1)]),n[11]||=m(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),m(`div`,null,[n[3]||=m(`div`,{"text-sm":``,op50:``},` Build duration `,-1),m(`div`,null,l(w(r.current)),1)]),r.current.size?.clientBundle?(c(),h(d,{key:0},[n[5]||=m(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),m(`div`,null,[n[4]||=m(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),m(`div`,null,l(T(r.current.size.clientBundle)),1)])],64)):g(``,!0),r.current.size?.nitroBundle?(c(),h(d,{key:1},[n[7]||=m(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),m(`div`,null,[n[6]||=m(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),m(`div`,null,l(T(r.current.size.nitroBundle)),1)])],64)):g(``,!0),n[12]||=m(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),m(`div`,null,[n[8]||=m(`div`,{"text-sm":``,op50:``},` Built `,-1),m(`div`,null,l(a(t)(new Date(r.current.endTime))),1)]),n[13]||=m(`div`,{"i-carbon:folder-parent":``,"text-xl":``},null,-1),m(`div`,null,[n[9]||=m(`div`,{"text-sm":``,op50:``},` Report Path `,-1),b(i,{filepath:r.current.analyzeDir},null,8,[`filepath`])])]),n[16]||=m(`div`,{"flex-auto":``},null,-1),b(u,{n:`rose`,icon:`carbon-delete`,onClick:n[0]||=e=>E(r.current.name)},{default:_(()=>[...n[14]||=[f(` Delete this report `,-1)]]),_:1})])):g(``,!0),n._lazyshow1||C.value?.id===`bundle-client`?(n._lazyshow1=!0,c(),h(d,null,[y(m(`iframe`,{src:`${a(v)}${r.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[x,C.value?.id===`bundle-client`]])],64)):g(`v-show-if`,!0),n._lazyshow2||C.value?.id===`bundle-nitro`?(n._lazyshow2=!0,c(),h(d,null,[y(m(`iframe`,{src:`${a(v)}${r.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[x,C.value?.id===`bundle-nitro`]])],64)):g(`v-show-if`,!0),n._lazyshow3||C.value?.id===`vite-inspect`?(n._lazyshow3=!0,c(),h(d,null,[y(m(`iframe`,{src:`${a(v)}${r.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[x,C.value?.id===`vite-inspect`]])],64)):g(`v-show-if`,!0)])}}}),{__name:`BuildAnalyzeDetails`}),K={},q={class:`markdown-body`};function J(e,t){return c(),h(`div`,q,[...t[0]||=[m(`template`,null,[m(`div`,{class:`markdown-body`},[m(`h1`,null,`Build Analyze`),m(`p`,null,[f(`DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command `),m(`code`,{"v-pre":``},`nuxt build --analyze`),f(` and present the output data directly in DevTools for easy browsing and comparing.`)])])],-1)]])}var Y=w(K,[[`render`,J]]),X={flex:`~ col`},Z=[`onClick`],Q={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},$={flex:`~ items-center justify-center wrap`,p4:``},ee={flex:`~ col gap-1`,"w-250":``,p4:``},te={flex:`~ gap-3`,mt2:``,"justify-end":``},ne=i({__name:`analyze-build`,setup(e){M({icon:`carbon-edge-node`,title:`Build Analyze`,layout:`full`,category:`analyze`,show(){return A(`^3.5.0`)}});let i=r(),y=S(),x=C(`analyze-build:slug`,``),w=p(()=>y.value?.builds.find(e=>e.slug===x.value)??y.value?.builds[0]),N=u(!1),z=u(``),B=p(()=>y.value?.builds.some(e=>e.name===z.value.trim()));async function V(){if(z.value=await n.generateAnalyzeBuildName(),!await i.start())return;O(`analyze-build:start`);let e=await n.startAnalyzeBuild(z.value);N.value&&n.revealTerminal(e)}function H(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function U(){y.value?.activeSessionId&&n.revealTerminal(y.value.activeSessionId)}return E(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:V}]),(e,n)=>{let r=D,u=G,p=P,S=F,C=T,E=I,O=j,A=L,M=k,W=Y,K=R;return c(),h(d,null,[b(S,{"left-size":30},{left:_(()=>[m(`div`,X,[(c(!0),h(d,null,o(a(y)?.builds,e=>(c(),h(d,{key:e.slug},[m(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:s(e.slug===w.value?.slug?`text-primary bg-active`:``),onClick:t=>x.value=e.slug},[m(`code`,null,l(e.name),1),m(`div`,Q,[n[4]||=m(`div`,{"i-carbon-time":``},null,-1),m(`span`,null,l(H(e)),1),n[5]||=m(`div`,{"flex-auto":``},null,-1),m(`span`,null,l(a(t)(new Date(e.endTime))),1)])],10,Z),n[6]||=m(`div`,{"x-divider":``},null,-1)],64))),128)),m(`div`,$,[a(y)?.isBuilding?(c(),v(r,{key:1,n:`primary`,icon:`carbon-circle-dash animate-spin`,title:`Open the output in the Terminals dock`,onClick:n[1]||=e=>U()},{default:_(()=>[...n[8]||=[f(` Building... `,-1)]]),_:1})):(c(),v(r,{key:0,n:`primary`,icon:`carbon-edge-node`,onClick:n[0]||=e=>V()},{default:_(()=>[...n[7]||=[f(` Start a new build `,-1)]]),_:1}))])])]),right:_(()=>[w.value?(c(),v(u,{key:0,current:w.value},null,8,[`current`])):(c(),v(p,{key:1}))]),_:1}),b(a(i),null,{default:_(({resolve:e})=>[b(M,{"model-value":!0,onClose:t=>e(!1)},{default:_(()=>[m(`div`,ee,[n[13]||=m(`h3`,{class:`text-lg font-medium leading-6`,mb2:``},` Start analyze build? `,-1),n[14]||=m(`p`,{op50:``},` Enter the name of the build: `,-1),b(C,{modelValue:z.value,"onUpdate:modelValue":n[2]||=e=>z.value=e,placeholder:`Build name`},null,8,[`modelValue`]),B.value?(c(),v(E,{key:0,"n-orange":``},{default:_(()=>[...n[9]||=[f(` A build with the same name already exists, continue would overrides the previous build result. `,-1)]]),_:1})):g(``,!0),n[15]||=m(`div`,{my3:``,"x-divider":``},null,-1),n[16]||=m(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),b(O,{code:`npx nuxi analyze --no-serve --name=${z.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),b(A,{modelValue:N.value,"onUpdate:modelValue":n[3]||=e=>N.value=e,mt2:``,n:`primary`},{default:_(()=>[...n[10]||=[f(` Open the Terminals dock `,-1)]]),_:1},8,[`modelValue`]),m(`div`,te,[b(r,{onClick:t=>e(!1)},{default:_(()=>[...n[11]||=[f(` Cancel `,-1)]]),_:1},8,[`onClick`]),b(r,{n:`solid primary`,onClick:t=>e(!0)},{default:_(()=>[...n[12]||=[f(` Start `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1}),b(K,null,{default:_(()=>[b(W)]),_:1})],64)}}});export{ne as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./nanoid-kujw2c73.js";var t=Symbol.for(`devframe:browser-agent-registry`),{tools:n,listeners:r}=globalThis[t]??={tools:new Map,listeners:new Set};function i(){return[...n.values()]}function a(e){return r.add(e),()=>r.delete(e)}var o=`devframe:client-id`,s;function c(t=globalThis.window){try{let n=t?.sessionStorage;if(n){let t=n.getItem(o);return t||(t=e(),n.setItem(o,t)),t}}catch{}return s??=e(),s}function l(){let e=typeof document>`u`?void 0:document;return{url:e?.location?.href??``,title:e?.title??``,visible:!e||e.visibilityState===`visible`,focused:e?.hasFocus()??!0}}function u(e){e.client.register({name:`devframe:agent:invoke-client-tool`,type:`action`,jsonSerializable:!0,handler:async(e,t)=>{let n=i().find(t=>t.id===e);if(!n)throw Error(`[devframe/agent] browser tool "${e}" not found`);return await n.invoke(t)}});let t=!1,n=!1,r=0,o=()=>{t||n||(t=!0,queueMicrotask(async()=>{if(t=!1,n)return;let a=i().map(({invoke:e,...t})=>t);(a.length!==0||r!==0)&&(r=a.length,await e.callOptional(`devframe:agent:sync-client-tools`,c(),a,l()).catch(()=>{}))}))},s=a(o),u=e.events.on(`connection:status`,e=>{e===`connected`&&o()}),d=typeof window>`u`?void 0:window;return d?.addEventListener(`focus`,o),d?.addEventListener(`blur`,o),d?.document.addEventListener(`visibilitychange`,o),o(),()=>{n=!0,s(),u(),d?.removeEventListener(`focus`,o),d?.removeEventListener(`blur`,o),d?.document.removeEventListener(`visibilitychange`,o)}}export{u as setupBrowserAgentRpcBridge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"2da772c7-e3b0-4ce9-9dc9-4c8bc60c164c","timestamp":1793591201735}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"2da772c7-e3b0-4ce9-9dc9-4c8bc60c164c","timestamp":1793591201735,"prerendered":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as e}from"./nicon-
|
|
1
|
+
import{w as e}from"./nicon-ecitoebm.js";import{C as t,H as n,_t as r,d as i,p as a,z as o}from"./vendor/json-editor-vue-e51gef8e.js";import{t as s}from"./ncode-block-emvsl3dj.js";var c=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r)setTimeout(function(){r(e)},0);else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h)d[r]=void 0;else{if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends c{};function l(e,t){let n=0;for(;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function u(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function d(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function f(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function p(e,t){return d(e,t,``)}function m(e,t){return f(e,t,``)}function h(e,t){return t.slice(0,g(e,t))}function g(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function _(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function v(e,t){if(t)return b(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function y(e,t){if(t)return b(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function b(e,t){if(!t)return[y(e),v(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=_(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var x=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,S=RegExp(`[${x}]+|\\s+|[^${x}]`,`ug`);new class extends c{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=_(e,r)}else n=e.match(S)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&C(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&C(n,i,r,null,t.intlSegmenter),e}};function C(e,t,n,r,i){if(t&&n){let[a,o]=b(t.value,i),[s,c]=b(n.value,i);if(e){let r=l(a,s);e.value=f(e.value,s,r),t.value=p(t.value,r),n.value=p(n.value,r)}if(r){let e=u(o,c);r.value=d(r.value,c,e),t.value=m(t.value,e),n.value=m(n.value,e)}}else if(n){if(e){let e=y(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=y(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=y(r.value,i),[a,o]=b(t.value,i),s=l(n,a);t.value=p(t.value,s);let c=u(p(n,s),o);t.value=m(t.value,c),r.value=d(r.value,n,c),e.value=f(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=y(r.value,i),n=h(v(t.value,i),e);t.value=m(t.value,n)}else if(e){let n=h(v(e.value,i),y(t.value,i));t.value=p(t.value,n)}}new class extends c{tokenize(e){let t=RegExp(`(\\r?\\n)|[${x}]+|[^\\S\\n\\r]+|[^${x}]`,`ug`);return e.match(t)||[]}};var w=new class extends c{constructor(){super(...arguments),this.tokenize=E}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes(`
|
|
2
2
|
`)||(e=e.trim()),n.newlineIsToken&&t.includes(`
|
|
3
3
|
`)||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
4
|
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as e,i as t,r as n,s as r,t as i}from"./nicon-fggc28m9.js";import{C as a,Et as o,G as s,Gt as c,H as l,J as u,Jt as d,K as f,M as p,Y as m,_t as h,a as g,b as _,bt as ee,d as v,f as y,ft as b,h as x,m as S,ot as C,p as w,q as T,rt as te,st as E,x as D,z as ne}from"./vendor/json-editor-vue-e51gef8e.js";import{C as O,E as k,c as A,i as j,n as M,s as N,y as P}from"./utils-hyqnohx4.js";import{t as F}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as I}from"./ncard-f5hsx5qg.js";import{h as L,n as R,p as z}from"#entry";import{t as re}from"./ndrawer-nv0fovj4.js";import{t as B}from"./pages-oclxpiil.js";import{t as V}from"./filepath-item-le1tf1cv.js";import{t as ie}from"./ncheckbox-b1g9gqr9.js";import{t as H}from"./help-fab-oevh6fu6.js";import{t as U}from"./nnavbar-g4ablrbq.js";import{n as W}from"./dist-das2ggjj.js";import{t as G}from"./nbadge-qxiqdejh.js";import{n as K,t as q}from"./vendor/vis-bybujgcl.js";import{t as J}from"./nselect-tabs-l7v6qhzj.js";import{t as Y}from"./nicon-title-b4ony5s9.js";import{t as X}from"./nsection-block-ih9c04mv.js";import{n as ae,t as oe}from"./state-components-b7c7h92g.js";var se={},ce={class:`markdown-body`};function le(e,t){return l(),x(`div`,ce,[...t[0]||=[y(`template`,null,[y(`div`,{class:`markdown-body`},[y(`h1`,null,`Components`),y(`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.`),y(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),y(`p`,null,[y(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var ue=F(se,[[`render`,le]]),de={"text-sm":``,"font-mono":``},Z=Object.assign(a({__name:`ComponentName`,props:{component:{}},setup(e){let t=e,n=v(()=>t.component.pascalName||W(t.component.name||t.component.__name||t.component.kebabName||``));return(e,t)=>(l(),x(`code`,de,[t[0]||=y(`span`,{mr1:``,op20:``},`<`,-1),_(d(n.value),1),t[1]||=y(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),{__name:`ComponentName`}),Q={flex:`~ col gap1`,"items-start":``,"of-hidden":``},fe={flex:`~ gap2 items-center`,px3:``},pe={px3:``,pb2:``},me={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},he={"text-sm":``},ge={"text-primary":``},_e={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},ve={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ye={"text-sm":``},be={"text-primary":``},xe={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},$=Object.assign(a({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=v(()=>t.component.pascalName||W(t.component.name||t.component.__name||t.component.kebabName||``)),r=v(()=>t.component.filePath||t.component.file||t.component.__file||``),i=R();return(t,a)=>{let c=Z,u=L,p=G,m=V;return l(),x(`div`,Q,[y(`div`,fe,[D(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(l(),w(u,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:C(()=>[...a[1]||=[_(` Docs `,-1)]]),_:1},8,[`to`])):S(``,!0),D(u,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:a[0]||=e=>o(i)(`<${n.value}></${n.value}>`,`component-name`)},{default:C(()=>[...a[2]||=[_(` Copy `,-1)]]),_:1}),e.component.global?(l(),w(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):S(``,!0)]),y(`div`,pe,[r.value?(l(),w(m,{key:0,filepath:r.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):S(``,!0)]),e.dependents?(l(),x(`div`,me,[y(`div`,he,[y(`strong`,ge,d(e.dependents.length),1),a[3]||=y(`span`,{op50:``},` references`,-1)]),e.dependents.length?(l(),x(`div`,_e,[(l(!0),x(g,null,s(e.dependents,e=>(l(),w(m,{key:e,filepath:e},null,8,[`filepath`]))),128))])):S(``,!0)])):S(``,!0),e.dependencies?(l(),x(`div`,ve,[y(`div`,ye,[y(`strong`,be,d(e.dependencies.length),1),a[4]||=y(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(l(),x(`div`,xe,[(l(!0),x(g,null,s(e.dependencies,e=>(l(),w(m,{key:e,filepath:e},null,8,[`filepath`]))),128))])):S(``,!0)])):S(``,!0),f(t.$slots,`default`)])}}}),{__name:`ComponentDetails`}),Se={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},Ce={relative:``,"h-full":``,"w-full":``},we={key:0,py4:``,pt3:``,flex:`~ col`},Te={border:`t base`,p4:``},Ee=Object.assign(a({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(r){let i=r,a=h(),s=h(),c=t(),u=ee(),d=k(),p=O(),m=P(),{componentsGraphShowNodeModules:w,componentsGraphShowGlobalComponents:T,componentsGraphShowPages:E,componentsGraphShowLayouts:A,componentsGraphShowWorkspace:j}=n(`ui`),M=h(),N=h(``),F=e(N,300),R=v(()=>{let e=i.relationships||[];if(M.value){let t=new Set;function n(r){r&&!t.has(r)&&(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(M.value),[...t]}return e}),z=v(()=>{let e=R.value.map(e=>{let t=i.components.find(t=>t.filePath===e.id),n=d.value?.find(t=>t.file===e.id),r=m.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:r?`layout`:n?`page`:`unknown`;if(!w.value&&a===`lib`||!E.value&&a===`page`||!A.value&&a===`layout`||!j.value&&a===`user`&&p.value&&!e.id.startsWith(p.value.rootDir)||!T.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=F.value&&!e.id.toLowerCase().includes(F.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:c.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:r,relationship:e}}}).filter(e=>!!e),t=R.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new K(e),edges:t}}),B=v(()=>u.value?.component?(i.relationships?.find(e=>e.id===u.value?.component?.filePath)?.deps)?.map(e=>i.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),V=v(()=>u.value?.component?(i.relationships?.filter(e=>e.deps.includes(u.value.component.filePath)))?.map(e=>i.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);ne(()=>{let e=new q(a.value,z.value,{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`}}});e.on(`click`,e=>{let t=e.nodes?.[0],n=z.value.nodes.get(t).extra;u.value=n}),te(z,()=>{e.setData(z.value)})});function H(){u.value=void 0}let W=/.*\/components\//,G=/\.vue$/,J=/\/index$/;function Y(e){let t=i.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(J,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){M.value=u.value?.relationship,u.value=void 0}return(e,t)=>{let n=ie,r=U,i=I,c=$,d=L,p=re;return l(),x(g,null,[D(r,{ref_key:`navbar`,ref:s,search:N.value,"onUpdate:search":t[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:C(()=>[y(`div`,Se,[D(n,{modelValue:o(E),"onUpdate:modelValue":t[0]||=e=>b(E)?E.value=e:null,n:`primary sm`},{default:C(()=>[...t[8]||=[y(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(A),"onUpdate:modelValue":t[1]||=e=>b(A)?A.value=e:null,n:`primary sm`},{default:C(()=>[...t[9]||=[y(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(j),"onUpdate:modelValue":t[2]||=e=>b(j)?j.value=e:null,n:`primary sm`},{default:C(()=>[...t[10]||=[y(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(w),"onUpdate:modelValue":t[3]||=e=>b(w)?w.value=e:null,n:`primary sm`},{default:C(()=>[...t[11]||=[y(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(T),"onUpdate:modelValue":t[4]||=e=>b(T)?T.value=e:null,n:`primary sm`},{default:C(()=>[...t[12]||=[y(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(l(),x(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:t[5]||=e=>M.value=void 0},[...t[13]||=[_(` Clear filter `,-1),y(`div`,{"i-carbon-close":``},null,-1)]])):S(``,!0),t[14]||=y(`div`,{"flex-auto":``},null,-1),f(e.$slots,`default`)]),_:3},8,[`search`]),y(`div`,Ce,[y(`div`,{ref_key:`container`,ref:a,"h-full":``,"w-full":``},null,512),D(i,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:C(()=>[...t[15]||=[y(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),y(`div`,{op50:``},` Component `),y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),y(`div`,{op50:``},` Global Component `),y(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),y(`div`,{op50:``},` Page `),y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[y(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),y(`div`,{op50:``},` Layout `),y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),y(`div`,{op50:``},` Library Component `),y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),y(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),D(p,{"model-value":!!(u.value&&u.value.component),top:s.value,border:`t l base`,"w-80":``,onClose:H},{default:C(()=>[u.value&&u.value.component?(l(),x(`div`,we,[D(c,{component:u.value.component,dependencies:B.value,dependents:V.value},null,8,[`component`,`dependencies`,`dependents`]),y(`div`,Te,[D(d,{n:`primary solid`,onClick:t[7]||=e=>X()},{default:C(()=>[...t[16]||=[_(` Filter to this component `,-1)]]),_:1})])])):S(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),{__name:`ComponentsGraph`}),De={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},Oe={key:0,"ml--1":``,"text-primary":``},ke=Object.assign(a({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=v(()=>t.component.filePath||t.component.file||t.component.__file||``);return(t,r)=>{let i=Z,a=$,o=T(`VDropdown`),s=G,u=V;return l(),x(`div`,De,[D(o,null,{popper:C(()=>[D(a,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:C(()=>[y(`button`,{"hover:text-primary":``,class:c(e.dependents&&e.dependents.length===0?`op50`:``)},[D(i,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(l(),x(`sup`,Oe,` x`+d(e.dependents?.length),1)):S(``,!0),e.component.global?(l(),w(s,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):S(``,!0),f(t.$slots,`default`),n.value?(l(),w(u,{key:2,filepath:n.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):S(``,!0)])}}}),{__name:`ComponentItem`}),Ae={flex:`~ gap-2 items-center`},je={pl4:``},Me=Object.assign(a({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let t=e,n=h(``),r=h(`all`),a=v(()=>{let e=t.components.map(e=>M(e,t.relationships));return r.value===`using`?e.filter(e=>e.dependents?.length):r.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),c={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},u=v(()=>new z(a.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),d=v(()=>{let e=[],t=new Map,r=[],i=[],o={user:0,lib:0,builtin:0,runtime:0};return(n.value?u.value.search(n.value).map(e=>e.item):a.value).forEach(n=>{let a=n.component;if(a.filePath&&N(a.filePath)){let e=j(a.filePath);if(!e)return;A(e)?(a.meta??={},a.meta.docs??=c?.[a.pascalName],r.push(n),o.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(n),o.lib++)}else a.global&&!a.filePath?(i.push(n),o.runtime++):(e.push(n),o.user++)}),{count:o,user:e,builtin:r,lib:t,runtime:i}});return(e,t)=>{let a=i,c=J,u=U,m=ke,h=X,_=Y;return l(),x(g,null,[D(u,{search:n.value,"onUpdate:search":t[1]||=e=>n.value=e,pb3:``},{actions:C(()=>[f(e.$slots,`default`)]),default:C(()=>[y(`div`,Ae,[D(a,{icon:`carbon-filter`,op50:``}),D(c,{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),d.value.user.length?(l(),w(h,{key:0,icon:`carbon-nominal`,text:`User components`,open:d.value.user.length<=o(50),description:`Total components: ${d.value.count.user}`},{default:C(()=>[(l(!0),x(g,null,s(d.value.user,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):S(``,!0),d.value.runtime.length?(l(),w(h,{key:1,icon:`carbon-load-balancer-global`,open:d.value.runtime.length<=o(50),text:`Runtime components`,description:`Total components: ${d.value.count.runtime}`},{default:C(()=>[(l(!0),x(g,null,s(d.value.runtime,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):S(``,!0),d.value.builtin.length?(l(),w(h,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${d.value.count.builtin}`},{default:C(()=>[(l(!0),x(g,null,s(d.value.builtin,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):S(``,!0),d.value.lib.size?(l(),w(h,{key:3,open:d.value.count.lib<=o(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${d.value.count.lib} components from ${d.value.lib.size} packages`},{default:C(()=>[(l(!0),x(g,null,s(d.value.lib.entries(),([e,t])=>(l(),x(`div`,{key:e,"ml-2":``},[D(_,{text:`${e} (${t.length})`,py1:``,op50:``},null,8,[`text`]),y(`div`,je,[(l(!0),x(g,null,s(t,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):S(``,!0)],64)}}}),{__name:`ComponentsList`}),Ne={relative:``,"h-full":``,"of-auto":``},Pe={"flex-none":``,flex:`~ gap3`},Fe=a({__name:`components`,setup(e){B({icon:`i-carbon-assembly-cluster`,title:`Components`,order:2});let t=r(),i=oe(),a=ae(),{componentsView:s}=n(`ui`);function c(){t.value?.inspector?.enable()}function d(){s.value=s.value===`list`?`graph`:`list`}return(e,n)=>{let r=L,f=ue,p=H,h=u(`tooltip`);return l(),x(g,null,[y(`div`,Ne,[(l(),w(m(o(s)===`list`?Me:Ee),{components:o(i),relationships:o(a)},{default:C(()=>[y(`div`,Pe,[E(D(r,{"text-lg":``,border:!1,icon:o(s)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:d},null,8,[`icon`]),[[h,`Toggle View`,void 0,{"bottom-end":!0}]]),o(t)?.inspector?.isAvailable?E((l(),w(r,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[h,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):S(``,!0)])]),_:1},8,[`components`,`relationships`]))]),D(p,null,{default:C(()=>[D(f)]),_:1})],64)}}});export{Fe as default};
|
|
1
|
+
import{L as e,i as t,r as n,s as r,t as i}from"./nicon-ecitoebm.js";import{C as a,Et as o,G as s,Gt as c,H as l,J as u,Jt as d,K as f,M as p,Y as m,_t as h,a as g,b as _,bt as ee,d as v,f as y,ft as b,h as x,m as S,ot as C,p as w,q as T,rt as te,st as E,x as D,z as ne}from"./vendor/json-editor-vue-e51gef8e.js";import{C as O,E as k,c as A,i as j,n as M,s as N,y as P}from"./utils-k0p3foaq.js";import{t as F}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as I}from"./ncard-f5hsx5qg.js";import{h as L,n as R,p as z}from"#entry";import{t as re}from"./ndrawer-dp0zelp1.js";import{t as B}from"./pages-oclxpiil.js";import{t as V}from"./filepath-item-bn29t5gp.js";import{t as ie}from"./ncheckbox-lpu85kwa.js";import{t as H}from"./help-fab-co1gqajf.js";import{t as U}from"./nnavbar-g4ablrbq.js";import{n as W}from"./dist-das2ggjj.js";import{t as G}from"./nbadge-qxiqdejh.js";import{n as K,t as q}from"./vendor/vis-bybujgcl.js";import{t as J}from"./nselect-tabs-jzs0nv8s.js";import{t as Y}from"./nicon-title-b4ony5s9.js";import{t as X}from"./nsection-block-z4uk18lp.js";import{n as ae,t as oe}from"./state-components-ct42rqqf.js";var se={},ce={class:`markdown-body`};function le(e,t){return l(),x(`div`,ce,[...t[0]||=[y(`template`,null,[y(`div`,{class:`markdown-body`},[y(`h1`,null,`Components`),y(`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.`),y(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),y(`p`,null,[y(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var ue=F(se,[[`render`,le]]),de={"text-sm":``,"font-mono":``},Z=Object.assign(a({__name:`ComponentName`,props:{component:{}},setup(e){let t=e,n=v(()=>t.component.pascalName||W(t.component.name||t.component.__name||t.component.kebabName||``));return(e,t)=>(l(),x(`code`,de,[t[0]||=y(`span`,{mr1:``,op20:``},`<`,-1),_(d(n.value),1),t[1]||=y(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),{__name:`ComponentName`}),Q={flex:`~ col gap1`,"items-start":``,"of-hidden":``},fe={flex:`~ gap2 items-center`,px3:``},pe={px3:``,pb2:``},me={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},he={"text-sm":``},ge={"text-primary":``},_e={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},ve={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ye={"text-sm":``},be={"text-primary":``},xe={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},$=Object.assign(a({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=v(()=>t.component.pascalName||W(t.component.name||t.component.__name||t.component.kebabName||``)),r=v(()=>t.component.filePath||t.component.file||t.component.__file||``),i=R();return(t,a)=>{let c=Z,u=L,p=G,m=V;return l(),x(`div`,Q,[y(`div`,fe,[D(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(l(),w(u,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:C(()=>[...a[1]||=[_(` Docs `,-1)]]),_:1},8,[`to`])):S(``,!0),D(u,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:a[0]||=e=>o(i)(`<${n.value}></${n.value}>`,`component-name`)},{default:C(()=>[...a[2]||=[_(` Copy `,-1)]]),_:1}),e.component.global?(l(),w(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):S(``,!0)]),y(`div`,pe,[r.value?(l(),w(m,{key:0,filepath:r.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):S(``,!0)]),e.dependents?(l(),x(`div`,me,[y(`div`,he,[y(`strong`,ge,d(e.dependents.length),1),a[3]||=y(`span`,{op50:``},` references`,-1)]),e.dependents.length?(l(),x(`div`,_e,[(l(!0),x(g,null,s(e.dependents,e=>(l(),w(m,{key:e,filepath:e},null,8,[`filepath`]))),128))])):S(``,!0)])):S(``,!0),e.dependencies?(l(),x(`div`,ve,[y(`div`,ye,[y(`strong`,be,d(e.dependencies.length),1),a[4]||=y(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(l(),x(`div`,xe,[(l(!0),x(g,null,s(e.dependencies,e=>(l(),w(m,{key:e,filepath:e},null,8,[`filepath`]))),128))])):S(``,!0)])):S(``,!0),f(t.$slots,`default`)])}}}),{__name:`ComponentDetails`}),Se={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},Ce={relative:``,"h-full":``,"w-full":``},we={key:0,py4:``,pt3:``,flex:`~ col`},Te={border:`t base`,p4:``},Ee=Object.assign(a({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(r){let i=r,a=h(),s=h(),c=t(),u=ee(),d=k(),p=O(),m=P(),{componentsGraphShowNodeModules:w,componentsGraphShowGlobalComponents:T,componentsGraphShowPages:E,componentsGraphShowLayouts:A,componentsGraphShowWorkspace:j}=n(`ui`),M=h(),N=h(``),F=e(N,300),R=v(()=>{let e=i.relationships||[];if(M.value){let t=new Set;function n(r){r&&!t.has(r)&&(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(M.value),[...t]}return e}),z=v(()=>{let e=R.value.map(e=>{let t=i.components.find(t=>t.filePath===e.id),n=d.value?.find(t=>t.file===e.id),r=m.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:r?`layout`:n?`page`:`unknown`;if(!w.value&&a===`lib`||!E.value&&a===`page`||!A.value&&a===`layout`||!j.value&&a===`user`&&p.value&&!e.id.startsWith(p.value.rootDir)||!T.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=F.value&&!e.id.toLowerCase().includes(F.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:c.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:r,relationship:e}}}).filter(e=>!!e),t=R.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new K(e),edges:t}}),B=v(()=>u.value?.component?(i.relationships?.find(e=>e.id===u.value?.component?.filePath)?.deps)?.map(e=>i.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),V=v(()=>u.value?.component?(i.relationships?.filter(e=>e.deps.includes(u.value.component.filePath)))?.map(e=>i.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);ne(()=>{let e=new q(a.value,z.value,{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`}}});e.on(`click`,e=>{let t=e.nodes?.[0],n=z.value.nodes.get(t).extra;u.value=n}),te(z,()=>{e.setData(z.value)})});function H(){u.value=void 0}let W=/.*\/components\//,G=/\.vue$/,J=/\/index$/;function Y(e){let t=i.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(J,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){M.value=u.value?.relationship,u.value=void 0}return(e,t)=>{let n=ie,r=U,i=I,c=$,d=L,p=re;return l(),x(g,null,[D(r,{ref_key:`navbar`,ref:s,search:N.value,"onUpdate:search":t[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:C(()=>[y(`div`,Se,[D(n,{modelValue:o(E),"onUpdate:modelValue":t[0]||=e=>b(E)?E.value=e:null,n:`primary sm`},{default:C(()=>[...t[8]||=[y(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(A),"onUpdate:modelValue":t[1]||=e=>b(A)?A.value=e:null,n:`primary sm`},{default:C(()=>[...t[9]||=[y(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(j),"onUpdate:modelValue":t[2]||=e=>b(j)?j.value=e:null,n:`primary sm`},{default:C(()=>[...t[10]||=[y(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(w),"onUpdate:modelValue":t[3]||=e=>b(w)?w.value=e:null,n:`primary sm`},{default:C(()=>[...t[11]||=[y(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(T),"onUpdate:modelValue":t[4]||=e=>b(T)?T.value=e:null,n:`primary sm`},{default:C(()=>[...t[12]||=[y(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(l(),x(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:t[5]||=e=>M.value=void 0},[...t[13]||=[_(` Clear filter `,-1),y(`div`,{"i-carbon-close":``},null,-1)]])):S(``,!0),t[14]||=y(`div`,{"flex-auto":``},null,-1),f(e.$slots,`default`)]),_:3},8,[`search`]),y(`div`,Ce,[y(`div`,{ref_key:`container`,ref:a,"h-full":``,"w-full":``},null,512),D(i,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:C(()=>[...t[15]||=[y(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),y(`div`,{op50:``},` Component `),y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),y(`div`,{op50:``},` Global Component `),y(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),y(`div`,{op50:``},` Page `),y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[y(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),y(`div`,{op50:``},` Layout `),y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),y(`div`,{op50:``},` Library Component `),y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),y(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),D(p,{"model-value":!!(u.value&&u.value.component),top:s.value,border:`t l base`,"w-80":``,onClose:H},{default:C(()=>[u.value&&u.value.component?(l(),x(`div`,we,[D(c,{component:u.value.component,dependencies:B.value,dependents:V.value},null,8,[`component`,`dependencies`,`dependents`]),y(`div`,Te,[D(d,{n:`primary solid`,onClick:t[7]||=e=>X()},{default:C(()=>[...t[16]||=[_(` Filter to this component `,-1)]]),_:1})])])):S(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),{__name:`ComponentsGraph`}),De={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},Oe={key:0,"ml--1":``,"text-primary":``},ke=Object.assign(a({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=v(()=>t.component.filePath||t.component.file||t.component.__file||``);return(t,r)=>{let i=Z,a=$,o=T(`VDropdown`),s=G,u=V;return l(),x(`div`,De,[D(o,null,{popper:C(()=>[D(a,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:C(()=>[y(`button`,{"hover:text-primary":``,class:c(e.dependents&&e.dependents.length===0?`op50`:``)},[D(i,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(l(),x(`sup`,Oe,` x`+d(e.dependents?.length),1)):S(``,!0),e.component.global?(l(),w(s,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):S(``,!0),f(t.$slots,`default`),n.value?(l(),w(u,{key:2,filepath:n.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):S(``,!0)])}}}),{__name:`ComponentItem`}),Ae={flex:`~ gap-2 items-center`},je={pl4:``},Me=Object.assign(a({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let t=e,n=h(``),r=h(`all`),a=v(()=>{let e=t.components.map(e=>M(e,t.relationships));return r.value===`using`?e.filter(e=>e.dependents?.length):r.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),c={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},u=v(()=>new z(a.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),d=v(()=>{let e=[],t=new Map,r=[],i=[],o={user:0,lib:0,builtin:0,runtime:0};return(n.value?u.value.search(n.value).map(e=>e.item):a.value).forEach(n=>{let a=n.component;if(a.filePath&&N(a.filePath)){let e=j(a.filePath);if(!e)return;A(e)?(a.meta??={},a.meta.docs??=c?.[a.pascalName],r.push(n),o.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(n),o.lib++)}else a.global&&!a.filePath?(i.push(n),o.runtime++):(e.push(n),o.user++)}),{count:o,user:e,builtin:r,lib:t,runtime:i}});return(e,t)=>{let a=i,c=J,u=U,m=ke,h=X,_=Y;return l(),x(g,null,[D(u,{search:n.value,"onUpdate:search":t[1]||=e=>n.value=e,pb3:``},{actions:C(()=>[f(e.$slots,`default`)]),default:C(()=>[y(`div`,Ae,[D(a,{icon:`carbon-filter`,op50:``}),D(c,{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),d.value.user.length?(l(),w(h,{key:0,icon:`carbon-nominal`,text:`User components`,open:d.value.user.length<=o(50),description:`Total components: ${d.value.count.user}`},{default:C(()=>[(l(!0),x(g,null,s(d.value.user,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):S(``,!0),d.value.runtime.length?(l(),w(h,{key:1,icon:`carbon-load-balancer-global`,open:d.value.runtime.length<=o(50),text:`Runtime components`,description:`Total components: ${d.value.count.runtime}`},{default:C(()=>[(l(!0),x(g,null,s(d.value.runtime,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):S(``,!0),d.value.builtin.length?(l(),w(h,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${d.value.count.builtin}`},{default:C(()=>[(l(!0),x(g,null,s(d.value.builtin,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):S(``,!0),d.value.lib.size?(l(),w(h,{key:3,open:d.value.count.lib<=o(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${d.value.count.lib} components from ${d.value.lib.size} packages`},{default:C(()=>[(l(!0),x(g,null,s(d.value.lib.entries(),([e,t])=>(l(),x(`div`,{key:e,"ml-2":``},[D(_,{text:`${e} (${t.length})`,py1:``,op50:``},null,8,[`text`]),y(`div`,je,[(l(!0),x(g,null,s(t,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):S(``,!0)],64)}}}),{__name:`ComponentsList`}),Ne={relative:``,"h-full":``,"of-auto":``},Pe={"flex-none":``,flex:`~ gap3`},Fe=a({__name:`components`,setup(e){B({icon:`i-carbon-assembly-cluster`,title:`Components`,order:2});let t=r(),i=oe(),a=ae(),{componentsView:s}=n(`ui`);function c(){t.value?.inspector?.enable()}function d(){s.value=s.value===`list`?`graph`:`list`}return(e,n)=>{let r=L,f=ue,p=H,h=u(`tooltip`);return l(),x(g,null,[y(`div`,Ne,[(l(),w(m(o(s)===`list`?Me:Ee),{components:o(i),relationships:o(a)},{default:C(()=>[y(`div`,Pe,[E(D(r,{"text-lg":``,border:!1,icon:o(s)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:d},null,8,[`icon`]),[[h,`Toggle View`,void 0,{"bottom-end":!0}]]),o(t)?.inspector?.isAvailable?E((l(),w(r,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[h,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):S(``,!0)])]),_:1},8,[`components`,`relationships`]))]),D(p,null,{default:C(()=>[D(f)]),_:1})],64)}}});export{Fe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./nicon-
|
|
1
|
+
import{t as e}from"./nicon-ecitoebm.js";import{C as t,Et as n,G as r,Gt as i,H as a,Jt as o,a as s,b as c,d as l,f as u,h as d,m as f,ot as p,p as m,q as h,x as g}from"./vendor/json-editor-vue-e51gef8e.js";import{h as _,n as v,r as y}from"#entry";import{t as b}from"./filepath-item-bn29t5gp.js";import{t as x}from"./dist-das2ggjj.js";import{t as S}from"./constants-g2z8m4rs.js";import{t as C}from"./nmarkdown-l6kyrv69.js";var w={rounded:``,"font-mono":``},T={key:0,"text-primary":``},E={key:0},D={title:`Vue Directive`},O={"max-w-100":``},k={px4:``,py3:``,"text-sm":``},A={flex:`~ gap2`,n:`primary xs`},j={border:`t base`,"max-h-60":``,"of-auto":``,px4:``,py3:``},M={"text-sm":``},N={"text-primary":``},P={flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},F={key:1,"text-sm":``,op50:``},I=Object.assign(t({__name:`ComposableItem`,props:{item:{},isDirective:{type:Boolean,default:!1},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:`px2 py1 text-sm bg-gray:5 `}},setup(t){let I=t,L=v(),R=y(),z=l(()=>I.item.as||I.item.name),B=l(()=>{let e=z.value;return I.isDirective&&(e[0]!==`v`&&(e=`v${e}`),e=x(e)),e}),V=l(()=>I.metadata?.injectionsUsageMap?.get(z.value)?.count||0),H=l(()=>(I.metadata?.injectionsUsageMap?.get(z.value)?.moduleIds||[]).filter(e=>!e.endsWith(`?macro=true`))),U=l(()=>I.item.meta?.docsUrl?I.item.meta.docsUrl:[`nuxt`,`#app`,`nuxt3`].includes(I.item.from)?S.nuxt[I.item.name]:I.item.from===`vue`?S.vue[I.item.name]:null);return(l,v)=>{let y=e,x=C,S=_,W=b,G=h(`VDropdown`);return a(),m(G,{disabled:!I.metadata},{popper:p(()=>[u(`div`,O,[u(`div`,k,[t.item.meta?.description?(a(),m(x,{key:0,tag:`div`,pb3:``,"text-sm":``,markdown:t.item.meta.description},null,8,[`markdown`])):f(``,!0),u(`div`,A,[g(S,{icon:`carbon-copy`,onClick:v[0]||=e=>n(L)(B.value,`imports-name`)},{default:p(()=>[...v[2]||=[c(` Copy `,-1)]]),_:1}),t.filepath?(a(),m(S,{key:0,icon:`carbon-code`,onClick:v[1]||=e=>t.filepath&&n(R)(t.filepath)},{default:p(()=>[...v[3]||=[c(` Source `,-1)]]),_:1})):f(``,!0),U.value?(a(),m(S,{key:1,icon:`carbon-catalog`,to:U.value,target:`_blank`},{default:p(()=>[...v[4]||=[c(` Docs `,-1)]]),_:1},8,[`to`])):f(``,!0)])]),u(`div`,j,[V.value?(a(),d(s,{key:0},[u(`div`,M,[v[5]||=u(`span`,{op50:``},`It has been referenced `,-1),u(`strong`,N,o(V.value),1),v[6]||=u(`span`,{op50:``},` times by:`,-1)]),u(`div`,P,[(a(!0),d(s,null,r(H.value,e=>(a(),m(W,{key:e,filepath:e},null,8,[`filepath`]))),128))])],64)):(a(),d(`div`,F,` Not in use via auto import. `))])])]),default:p(()=>[u(`button`,{"hover:text-primary":``,class:i([t.metadata&&!V.value?`op30 hover:op100`:``,t.classes])},[u(`code`,w,[c(o(z.value)+` `,1),V.value&&t.counter?(a(),d(`sup`,T,`x`+o(V.value),1)):f(``,!0)]),t.isDirective?(a(),d(`sup`,E,[u(`abbr`,D,[g(y,{icon:`tabler:hexagon-letter-d`})])])):f(``,!0)],2)]),_:1},8,[`disabled`])}}}),{__name:`ComposableItem`});export{I as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e,a as t,g as n,i as r,u as i}from"./nicon-
|
|
1
|
+
import{E as e,a as t,g as n,i as r,u as i}from"./nicon-ecitoebm.js";import{B as a,C as o,H as s,Jt as c,N as l,Y as u,_t as d,b as f,d as p,f as m,h,ht as g,it as _,ot as v,p as y,x as b,z as x}from"./vendor/json-editor-vue-e51gef8e.js";import{lt as S,ut as C}from"./ready-h577ja1k.js";import{t as w}from"./ncard-f5hsx5qg.js";import{n as T}from"./state-tabs-henf9j8v.js";import{t as E}from"./pages-oclxpiil.js";import{t as D}from"./npanel-grids-dgypja2z.js";import{t as O}from"./launch-page-os81bs6q.js";var k=new Map,A=new WeakSet,j=Object.assign(o({__name:`IframeView`,props:{tab:{}},setup(n){let o=n,c=r(),u=d(),f=p(()=>o.tab.name),m=d(),v=g(e(u));x(()=>{let e=o.tab.view,t=e.persistent!==!1,n=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(k.get(f.value)&&t)m.value=k.get(f.value),m.value.style.visibility=`visible`;else{m.value=document.createElement(`iframe`),m.value.setAttribute(`allow`,n.join(`; `)),m.value.setAttribute(`aria-label`,`Nuxt Devtools`),t&&k.set(f.value,m.value),m.value.src=e.src;try{m.value.style.opacity=`0.01`,m.value.onload=()=>{S(),y(),m.value.style.opacity=`1`}}catch{m.value.style.opacity=`1`}document.body.appendChild(m.value),l(C)}setTimeout(y,100)}),_(C),_(y),_(S),a(()=>{m.value&&(m.value.style.visibility=`hidden`)});function y(){if(m.value&&m.value.contentWindow)try{let e=m.value.contentWindow.document.querySelector(`html`);if(!e)return;let n=c.value===`dark`;if(e.classList.toggle(`dark`,n),e.classList.toggle(`light`,!n),A.has(e))return;A.add(e),new MutationObserver(()=>{let n=e.classList.contains(`dark`)?`dark`:`light`;n!==c.value&&t(n)}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let b=i();function S(){if(m.value&&m.value.contentWindow)try{m.value.contentWindow.__NUXT_DEVTOOLS__=b.value}catch{}}function C(){m.value&&Object.assign(m.value.style,{position:`fixed`,left:`${v.left}px`,top:`${v.top}px`,width:`${v.width}px`,height:`${v.height}px`,outline:`none`})}return(e,t)=>(s(),h(`div`,{ref_key:`anchor`,ref:u,"h-full":``,"w-full":``},null,512))}}),{__name:`IframeView`}),M={flex:`~ col gap2`,mxa:``,"items-center":``},N={"text-xl":``},P={"text-rose":``},F=o({__name:`custom-[name]`,props:{name:{}},setup(e){let t=e;E({layout:`full`});let r=S(),i=C(),a=p(()=>t.name??r.params.name),o=T(),l=p(()=>o.value.find(e=>e.name===a.value));function d(e){if(l.value)return n.customTabAction(l.value.name,e)}return x(()=>{l.value||setTimeout(()=>{l.value||i.push(`/modules/overview`)},2e3)}),(e,t)=>{let n=D,r=j,i=O,o=w;return l.value?l.value.view.type===`iframe`?(s(),y(r,{key:1,tab:l.value},null,8,[`tab`])):l.value.view.type===`vnode`?(s(),y(u(l.value.view.vnode),{key:2})):l.value.view.type===`launch`?(s(),y(i,{key:3,name:`custom-${l.value.name}`,icon:l.value.view.icon||l.value.icon,title:l.value.view.title||l.value.title,description:l.value.view.description,actions:l.value.view.actions,onAction:d},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(s(),y(n,{key:4},{default:v(()=>[b(o,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:v(()=>[f(` Unknown tab type `+c(l.value.view),1)]),_:1})]),_:1})):(s(),y(n,{key:0},{default:v(()=>[m(`div`,M,[t[2]||=m(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),m(`p`,N,[t[0]||=f(` Tab `,-1),m(`code`,P,c(a.value),1),t[1]||=f(` not found `,-1)]),t[3]||=m(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),t[4]||=m(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{F as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{y as e}from"./nicon-
|
|
1
|
+
import{y as e}from"./nicon-ecitoebm.js";import{C as t,Et as n,G as r,H as i,Jt as a,K as o,_t as s,a as c,c as l,d as u,et as d,f,h as p,j as m,m as h,ot as g,p as _,rt as v,st as y,x as b}from"./vendor/json-editor-vue-e51gef8e.js";import{Ht as x,It as S}from"./ready-h577ja1k.js";import{h as C,n as w,t as T}from"#entry";import{t as E}from"./nselect-k0kc0sow.js";import{t as D}from"./ndropdown-k3qkusf2.js";import{t as O}from"./ncode-block-emvsl3dj.js";import{t as k}from"./ndrawer-dp0zelp1.js";import{n as A,t as j}from"./vendor/quicktype-core-ldbgqon5.js";var M=[`checked`,`disabled`],N=[`disabled`],P=Object.assign(t({__name:`NSwitch`,props:m({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=d(e,`modelValue`);return(n,r)=>(i(),p(`label`,{class:`n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled`,checked:t.value||null,disabled:e.disabled||null},[y(f(`input`,{"onUpdate:modelValue":r[0]||=e=>t.value=e,type:`checkbox`,class:`peer absolute op0`,disabled:e.disabled,onKeypress:r[1]||=x(e=>t.value=!t.value,[`enter`])},null,40,N),[[S,t.value]]),r[2]||=f(`div`,{class:`n-switch-slider n-transition n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base`},[f(`div`,{class:`n-switch-thumb n-transition n-checked:n-switch-thumb-checked`})],-1),o(n.$slots,`default`)],8,M))}}),{__name:`NSwitch`}),F=j(),I=A(),L={border:`b base`,flex:`~ items-center gap-2`,sticky:``,"left-0":``,"right-0":``,"top-0":``,"z-1":``,"bg-base":``,p3:``},R={key:0,flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--2":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-lime:30":``,"text-8px":``},z={flex:`~ col`,"w-100":``,"of-auto":``,py2:``},B={"text-xs":``,capitalize:``,op75:``},V=Object.assign(t({__name:`DataSchemaDrawer`,setup(t){let o=T(),d=s(0),m=s(`TypeScript`),y=u(()=>I.all.find(e=>e.displayName===m.value)),x=s(y.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)),S=e(async()=>{if(d.value,!o.value)return``;let e=(0,F.jsonInputForTargetLanguage)(m.value);await e.addSource({name:o.value.name??`Data`,samples:[o.value.input]});let t=new F.InputData;return t.addInput(e),(await(0,F.quicktype)({inputData:t,lang:m.value,rendererOptions:x.value?.reduce((e,t)=>(e[t.name]=t.defaultValue,e),{})})).lines.join(`
|
|
2
2
|
`)}),A=u(()=>{let e=m.value.toLocaleLowerCase();return e.startsWith(`javascript`)?`javascript`:e.startsWith(`json`)?`json`:e.startsWith(`typescript`)?`typescript`:e});v(x,()=>{d.value++},{deep:!0}),v(m,()=>{x.value=y.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)});let j=w();function M(){j(S.value||``)}return(e,t)=>{let s=E,u=C,d=P,v=D,w=O,T=k;return y.value?(i(),_(l,{key:0,to:`body`},[b(T,{"model-value":!!n(o)?.input,"auto-close":``,"max-w-screen":``,"w-2xl":``,"n-code-block":``,onClose:t[2]||=e=>o.value=null},{default:g(()=>[f(`div`,L,[t[3]||=f(`p`,{"mr-2":``},` Schema `,-1),b(s,{modelValue:m.value,"onUpdate:modelValue":t[0]||=e=>m.value=e,n:`xs primary`},{default:g(()=>[(i(!0),p(c,null,r(n(I.all),e=>(i(),p(`option`,{key:e.displayName},a(e.displayName),1))),128))]),_:1},8,[`modelValue`]),x.value?.length?(i(),_(v,{key:0,n:`sm lime`},{trigger:g(({click:e})=>[b(u,{icon:`carbon-settings`,"h-full":``,onClick:t=>e()},null,8,[`onClick`]),x.value?(i(),p(`span`,R,a(x.value.length),1)):h(``,!0)]),default:g(()=>[f(`div`,z,[(i(!0),p(c,null,r(x.value,(e,t)=>(i(),_(d,{key:e.name,modelValue:x.value[t].defaultValue,"onUpdate:modelValue":e=>x.value[t].defaultValue=e,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:g(()=>[f(`span`,B,a(e.description),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):h(``,!0),t[4]||=f(`div`,{"flex-auto":``},null,-1),b(u,{icon:`carbon-copy`,"mr-6":``,"h-full":``,onClick:t[1]||=e=>M()})]),n(S)?(i(),_(w,{key:0,lang:A.value,code:n(S)},null,8,[`lang`,`code`])):h(``,!0)]),_:1},8,[`model-value`])])):h(``,!0)}}}),{__name:`DataSchemaDrawer`});export{V as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Et as t,G as n,Gt as r,H as i,Jt as a,K as o,_t as s,a as c,b as l,d as u,f as d,h as f,m as p,ot as m,p as h,qt as g,x as _}from"./vendor/json-editor-vue-e51gef8e.js";import{w as v}from"./utils-
|
|
1
|
+
import{C as e,Et as t,G as n,Gt as r,H as i,Jt as a,K as o,_t as s,a as c,b as l,d as u,f as d,h as f,m as p,ot as m,p as h,qt as g,x as _}from"./vendor/json-editor-vue-e51gef8e.js";import{w as v}from"./utils-k0p3foaq.js";import{h as y}from"#entry";import{t as b}from"./ncode-block-emvsl3dj.js";import{t as x}from"./pages-oclxpiil.js";import{t as S}from"./filepath-item-bn29t5gp.js";import{t as C}from"./ncheckbox-lpu85kwa.js";import{t as w}from"./nbadge-qxiqdejh.js";import{t as T}from"./nsection-block-z4uk18lp.js";import{t as E}from"./color-abaog8vc.js";var D=Object.assign(e({__name:`NBadgeHashed`,props:{text:{}},setup(e){let t=e,n=u(()=>({color:E(t.text,50,60),background:E(t.text,50,60,.05)}));return(t,r)=>(i(),h(w,{style:g(n.value)},{default:m(()=>[l(a(e.text),1),o(t.$slots,`default`)]),_:3},8,[`style`]))}}),{__name:`NBadgeHashed`}),O={flex:`~ gap-2 col`,mb4:``},k={flex:`~ gap-3 items-center`},A={key:0,flex:`~ gap-1`,"items-center":``,p1:``,border:`~ base rounded`},j={"max-w-full":``,"of-auto":``},M={"text-center":``,op50:``},N={flex:`~`,px4:``},P={key:0,op50:``},F={px2:``,"text-center":``},I={"of-auto":``},L=Object.assign(e({__name:`DebugModuleMutationRecords`,props:{moduleMutationRecords:{}},setup(e){let t=e,o=/^[a-z]:[\\/]/i;function l(e){return e.startsWith(`/`)||e.match(o)}let g=s(!1),v=s(!1),x=s(!1),w=s(!1),T=s(!1),E=s(``),L=u(()=>{let e=t.moduleMutationRecords;return g.value||(e=e.filter(e=>!e.name.startsWith(`nuxt:`)&&e.name!==`@nuxt/devtools`)),v.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.templates`)),x.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.transpile`)),w.value||(e=e.filter(e=>e.keys.join(`.`)!==`plugins`)),T.value||(e=e.filter(e=>e.method||e.value!==`[]`&&e.value!==`{}`)),E.value&&(e=e.filter(e=>e.name===E.value)),e});return(t,o)=>{let s=C,u=D,R=y,z=S,B=b;return i(),f(c,null,[d(`div`,O,[d(`div`,k,[_(s,{modelValue:g.value,"onUpdate:modelValue":o[0]||=e=>g.value=e,n:`primary`},{default:m(()=>[...o[6]||=[d(`span`,{"ws-nowrap":``,op75:``},`Builtin Modules`,-1)]]),_:1},8,[`modelValue`]),_(s,{modelValue:v.value,"onUpdate:modelValue":o[1]||=e=>v.value=e,n:`primary`},{default:m(()=>[...o[7]||=[d(`span`,{"ws-nowrap":``,op75:``},`Templates`,-1)]]),_:1},8,[`modelValue`]),_(s,{modelValue:x.value,"onUpdate:modelValue":o[2]||=e=>x.value=e,n:`primary`},{default:m(()=>[...o[8]||=[d(`span`,{"ws-nowrap":``,op75:``},`Transpile`,-1)]]),_:1},8,[`modelValue`]),_(s,{modelValue:w.value,"onUpdate:modelValue":o[3]||=e=>w.value=e,n:`primary`},{default:m(()=>[...o[9]||=[d(`span`,{"ws-nowrap":``,op75:``},`Plugins`,-1)]]),_:1},8,[`modelValue`]),_(s,{modelValue:T.value,"onUpdate:modelValue":o[4]||=e=>T.value=e,n:`primary`},{default:m(()=>[...o[10]||=[d(`span`,{"ws-nowrap":``,op75:``},`Empty Initial`,-1)]]),_:1},8,[`modelValue`]),E.value?(i(),f(`div`,A,[_(u,{"font-mono":``,text:E.value},null,8,[`text`]),_(R,{icon:`carbon-close`,border:!1,onClick:o[5]||=e=>E.value=``})])):p(``,!0)])]),d(`table`,j,[o[11]||=d(`thead`,{border:`b base`},[d(`tr`,null,[d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Index `),d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Module `),d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Key Path `),d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Method `),d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Value `)])],-1),d(`tbody`,null,[(i(!0),f(c,null,n(L.value,t=>(i(),f(`tr`,{key:e.moduleMutationRecords.indexOf(t),border:`b dashed transparent hover:base`},[d(`td`,M,[d(`div`,null,a(e.moduleMutationRecords.indexOf(t)+1),1)]),d(`td`,null,[t.name&&l(t.name)?(i(),h(z,{key:0,filepath:t.name},null,8,[`filepath`])):(i(),h(u,{key:1,role:`button`,"font-mono":``,text:t.name,onClick:e=>E.value=t.name},null,8,[`text`,`onClick`]))]),d(`td`,null,[d(`code`,N,[(i(!0),f(c,null,n(t.keys,(e,n)=>(i(),f(c,{key:n},[d(`span`,null,a(e),1),n<t.keys.length-1?(i(),f(`span`,P,` . `)):p(``,!0)],64))),128))])]),d(`td`,F,[_(u,{"font-mono":``,text:t.method||`=`,class:r(t.method?``:`saturate-0`)},null,8,[`text`,`class`])]),d(`td`,I,[_(B,{code:String(t.value),lang:`ts`,"grammar-context-code":`let a = `,"ws-normal":``,"break-all":``,py1:``,lines:!1,inline:!0},null,8,[`code`])])]))),128))])])],64)}}}),{__name:`DebugModuleMutationRecords`}),R={key:0,p6:``},z={key:1},B=e({__name:`debug`,setup(e){x({icon:`i-carbon-debug`,title:`Debug`,category:`advanced`});let n=v();return(e,r)=>{let a=T;return t(n)?(i(),f(`div`,z,[_(a,{icon:`carbon-container-image-push-pull`,text:`Module Mutation Records`,description:`Records of module mutations to nuxt options`},{default:m(()=>[_(L,{"module-mutation-records":t(n).moduleMutationRecords||[]},null,8,[`module-mutation-records`])]),_:1})])):(i(),f(`div`,R,[...r[0]||=[d(`div`,null,`No Debug Context Found`,-1),d(`div`,null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)]]))}}});export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as e,Jt as t,b as n,f as r,h as i,ot as a,x as o}from"./vendor/json-editor-vue-e51gef8e.js";import{t as s}from"./nuxt-link-f8q70nfj.js";import{t as c}from"./_plugin-vue_export-helper-d9irwgla.js";import{y as l}from"#entry";var u={class:`antialiased bg-white dark:bg-neutral-950 dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-neutral-950 tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=[`textContent`],_=c({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:404},statusText:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`},backToPrevious:{type:String,default:`Go back`}},setup(c){let _=c;return l({title:`${_.status} - ${_.statusText} | ${_.appName}`,script:[{innerHTML:`(()=>{if(!(window.history.state&&window.history.state.back||document.referrer.startsWith(window.location.origin+"/")))return;const t=document.querySelector("[data-back-home]"),e=document.querySelector("[data-back-previous]");t&&e&&(e.onclick=()=>window.history.back(),t.hidden=!0,e.hidden=!1)})();`,tagPosition:`bodyClose`}],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{-webkit-text-decoration:inherit;text-decoration:inherit}a,button{color:inherit}button{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-transform:none}[type=button],button{-webkit-appearance:button;background-color:#0000;background-image:none}h1,h2,p{margin:0}button{cursor:pointer}[hidden]:where(:not([hidden=until-found])){display:none}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(l,_)=>{let v=s;return e(),i(`div`,u,[r(`div`,d,[r(`h1`,{class:`font-medium leading-none mb-4 sm:text-[72px] tabular-nums text-[56px]`,textContent:t(c.status)},null,8,f),r(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:t(c.statusText)},null,8,p),r(`p`,{class:`mb-4 px-2 text-md text-neutral-500`,textContent:t(c.description)},null,8,m),r(`div`,h,[o(v,{to:`/`,"data-back-home":``,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[n(t(c.backHome),1)]),_:1}),_[0]||=n(),r(`button`,{type:`button`,"data-back-previous":``,hidden:``,class:`appearance-none bg-transparent border-0 cursor-pointer font-medium font-sans hover:text-[#00DC82] p-0 text-inherit text-sm underline underline-offset-3`,textContent:t(c.backToPrevious)},null,8,g)])])])}}},[[`__scopeId`,`data-v-
|
|
1
|
+
import{H as e,Jt as t,b as n,f as r,h as i,ot as a,x as o}from"./vendor/json-editor-vue-e51gef8e.js";import{t as s}from"./nuxt-link-f8q70nfj.js";import{t as c}from"./_plugin-vue_export-helper-d9irwgla.js";import{y as l}from"#entry";var u={class:`antialiased bg-white dark:bg-neutral-950 dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-neutral-950 tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=[`textContent`],_=c({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:404},statusText:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`},backToPrevious:{type:String,default:`Go back`}},setup(c){let _=c;return l({title:`${_.status} - ${_.statusText} | ${_.appName}`,script:[{innerHTML:`(()=>{if(!(window.history.state&&window.history.state.back||document.referrer.startsWith(window.location.origin+"/")))return;const t=document.querySelector("[data-back-home]"),e=document.querySelector("[data-back-previous]");t&&e&&(e.onclick=()=>window.history.back(),t.hidden=!0,e.hidden=!1)})();`,tagPosition:`bodyClose`}],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{-webkit-text-decoration:inherit;text-decoration:inherit}a,button{color:inherit}button{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-transform:none}[type=button],button{-webkit-appearance:button;background-color:#0000;background-image:none}h1,h2,p{margin:0}button{cursor:pointer}[hidden]:where(:not([hidden=until-found])){display:none}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(l,_)=>{let v=s;return e(),i(`div`,u,[r(`div`,d,[r(`h1`,{class:`font-medium leading-none mb-4 sm:text-[72px] tabular-nums text-[56px]`,textContent:t(c.status)},null,8,f),r(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:t(c.statusText)},null,8,p),r(`p`,{class:`mb-4 px-2 text-md text-neutral-500`,textContent:t(c.description)},null,8,m),r(`div`,h,[o(v,{to:`/`,"data-back-home":``,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[n(t(c.backHome),1)]),_:1}),_[0]||=n(),r(`button`,{type:`button`,"data-back-previous":``,hidden:``,class:`appearance-none bg-transparent border-0 cursor-pointer font-medium font-sans hover:text-[#00DC82] p-0 text-inherit text-sm underline underline-offset-3`,textContent:t(c.backToPrevious)},null,8,g)])])])}}},[[`__scopeId`,`data-v-29a93b6a`]]);export{_ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.grid[data-v-29a93b6a]{display:grid}.mb-2[data-v-29a93b6a]{margin-bottom:.5rem}.mb-4[data-v-29a93b6a]{margin-bottom:1rem}.max-w-520px[data-v-29a93b6a]{max-width:520px}.min-h-screen[data-v-29a93b6a]{min-height:100vh}.w-full[data-v-29a93b6a]{width:100%}.flex[data-v-29a93b6a]{display:flex}.cursor-pointer[data-v-29a93b6a]{cursor:pointer}.appearance-none[data-v-29a93b6a]{appearance:none}.place-content-center[data-v-29a93b6a]{place-content:center}.items-center[data-v-29a93b6a]{align-items:center}.justify-center[data-v-29a93b6a]{justify-content:center}.overflow-hidden[data-v-29a93b6a]{overflow:hidden}.border-0[data-v-29a93b6a]{border-width:0}.bg-transparent[data-v-29a93b6a]{background-color:#0000}.bg-white[data-v-29a93b6a]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.p-0[data-v-29a93b6a]{padding:0}.px-2[data-v-29a93b6a]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-29a93b6a]{text-align:center}.text-\[56px\][data-v-29a93b6a]{font-size:56px}.text-2xl[data-v-29a93b6a]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-29a93b6a]{font-size:.875rem;line-height:1.25rem}.text-neutral-500[data-v-29a93b6a]{--un-text-opacity:1;color:rgb(115 115 115/var(--un-text-opacity))}.text-neutral-950[data-v-29a93b6a]{--un-text-opacity:1;color:rgb(10 10 10/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-29a93b6a]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.text-inherit[data-v-29a93b6a]{color:inherit}.font-medium[data-v-29a93b6a]{font-weight:500}.font-semibold[data-v-29a93b6a]{font-weight:600}.leading-none[data-v-29a93b6a]{line-height:1}.tracking-wide[data-v-29a93b6a]{letter-spacing:.025em}.font-sans[data-v-29a93b6a]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-29a93b6a]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-29a93b6a]{text-decoration-line:underline}.underline-offset-3[data-v-29a93b6a]{text-underline-offset:3px}.antialiased[data-v-29a93b6a]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-neutral-950[data-v-29a93b6a]{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.dark\:text-white[data-v-29a93b6a]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (width>=640px){.sm\:text-\[72px\][data-v-29a93b6a]{font-size:72px}.sm\:text-3xl[data-v-29a93b6a]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as e,Jt as t,f as n,h as r}from"./vendor/json-editor-vue-e51gef8e.js";import{t as i}from"./_plugin-vue_export-helper-d9irwgla.js";import{y as a}from"#entry";var o={class:`antialiased bg-white dark:bg-neutral-950 dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-neutral-950 tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=i({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(i){let d=i;return a({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(a,d)=>(e(),r(`div`,o,[n(`div`,s,[n(`h1`,{class:`font-medium leading-none mb-4 sm:text-[72px] tabular-nums text-[56px]`,textContent:t(i.status)},null,8,c),n(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:t(i.statusText)},null,8,l),n(`p`,{class:`mb-4 px-2 text-md text-neutral-500`,textContent:t(i.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-
|
|
1
|
+
import{H as e,Jt as t,f as n,h as r}from"./vendor/json-editor-vue-e51gef8e.js";import{t as i}from"./_plugin-vue_export-helper-d9irwgla.js";import{y as a}from"#entry";var o={class:`antialiased bg-white dark:bg-neutral-950 dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-neutral-950 tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=i({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(i){let d=i;return a({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(a,d)=>(e(),r(`div`,o,[n(`div`,s,[n(`h1`,{class:`font-medium leading-none mb-4 sm:text-[72px] tabular-nums text-[56px]`,textContent:t(i.status)},null,8,c),n(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:t(i.statusText)},null,8,l),n(`p`,{class:`mb-4 px-2 text-md text-neutral-500`,textContent:t(i.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-fdacb6a3`]]);export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.grid[data-v-fdacb6a3]{display:grid}.mb-2[data-v-fdacb6a3]{margin-bottom:.5rem}.mb-4[data-v-fdacb6a3]{margin-bottom:1rem}.max-w-520px[data-v-fdacb6a3]{max-width:520px}.min-h-screen[data-v-fdacb6a3]{min-height:100vh}.place-content-center[data-v-fdacb6a3]{place-content:center}.overflow-hidden[data-v-fdacb6a3]{overflow:hidden}.bg-white[data-v-fdacb6a3]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-fdacb6a3]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-fdacb6a3]{text-align:center}.text-\[56px\][data-v-fdacb6a3]{font-size:56px}.text-2xl[data-v-fdacb6a3]{font-size:1.5rem;line-height:2rem}.text-neutral-500[data-v-fdacb6a3]{--un-text-opacity:1;color:rgb(115 115 115/var(--un-text-opacity))}.text-neutral-950[data-v-fdacb6a3]{--un-text-opacity:1;color:rgb(10 10 10/var(--un-text-opacity))}.font-medium[data-v-fdacb6a3]{font-weight:500}.font-semibold[data-v-fdacb6a3]{font-weight:600}.leading-none[data-v-fdacb6a3]{line-height:1}.tracking-wide[data-v-fdacb6a3]{letter-spacing:.025em}.font-sans[data-v-fdacb6a3]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-fdacb6a3]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-fdacb6a3]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-neutral-950[data-v-fdacb6a3]{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.dark\:text-white[data-v-fdacb6a3]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (width>=640px){.sm\:text-\[72px\][data-v-fdacb6a3]{font-size:72px}.sm\:text-3xl[data-v-fdacb6a3]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as e}from"./nicon-
|
|
1
|
+
import{s as e}from"./nicon-ecitoebm.js";import{C as t,H as n,Jt as r,b as i,d as a,f as o,h as s,m as c,ot as l,p as u,x as d}from"./vendor/json-editor-vue-e51gef8e.js";import{t as f}from"./pages-oclxpiil.js";import{t as p}from"./ntip-dy8764yl.js";import{t as m}from"./stacktrace-list-4e7iwgtu.js";var h=/(^|@)\S+:\d+/,g=/^\s*at .*(\S+:\d+|\(native\))/m,_=/^(eval@)?(\[native code\])?$/;function v(e,t){if(e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0)return T(e,t);if(e.stack&&g.test(e.stack))return x(e,t);if(e.stack)return C(e,t);if(t?.allowEmpty)return[];throw Error(`Cannot parse given Error object`)}function y(e){if(!e.includes(`:`))return[e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]}function b(e,t){return t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e}function x(e,t){return S(e.stack,t)}function S(e,t){return b(e.split(`
|
|
2
2
|
`).filter(e=>!!e.match(g)),t).map(e=>{e.includes(`(eval `)&&(e=e.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let t=e.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),n=t.match(/ (\(.+\)$)/);t=n?t.replace(n[0],``):t;let r=y(n?n[1]:t);return{function:n&&t||void 0,file:[`eval`,`<anonymous>`].includes(r[0])?void 0:r[0],line:r[1]?+r[1]:void 0,col:r[2]?+r[2]:void 0,raw:e}})}function C(e,t){return w(e.stack,t)}function w(e,t){return b(e.split(`
|
|
3
3
|
`).filter(e=>!e.match(_)),t).map(e=>{if(e.includes(` > eval`)&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!e.includes(`@`)&&!e.includes(`:`))return{function:e};{let t=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=e.match(t),r=n&&n[1]?n[1]:void 0,i=y(e.replace(t,``));return{function:r,file:i[0],line:i[1]?+i[1]:void 0,col:i[2]?+i[2]:void 0,raw:e}}})}function T(e,t){return!e.stacktrace||e.message.includes(`
|
|
4
4
|
`)&&e.message.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Et as t,Gt as n,H as r,Jt as i,K as a,a as o,b as s,d as c,f as l,h as u,m as d}from"./vendor/json-editor-vue-e51gef8e.js";import{C as f,l as p}from"./utils-
|
|
1
|
+
import{C as e,Et as t,Gt as n,H as r,Jt as i,K as a,a as o,b as s,d as c,f as l,h as u,m as d}from"./vendor/json-editor-vue-e51gef8e.js";import{C as f,l as p}from"./utils-k0p3foaq.js";import{n as m,r as h}from"#entry";var g={flex:`~ gap-2 items-center`,class:`group`},_=[`title`],v={key:0,op50:``},y={key:0,flex:`~ gap1`,pr2:``,op0:``,"group-hover:op100":``},b=Object.assign(e({__name:`FilepathItem`,props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(e){let b=e,x=h(),S=m(),C=f(),w=c(()=>b.filepath&&C.value?p(b.filepath,C.value.rootDir):{path:b.filepath||``});return(c,f)=>(r(),u(`span`,g,[l(`span`,{class:n([e.lineBreak?``:`ws-nowrap of-hidden truncate`]),"font-mono":``,title:e.override||e.filepath},[e.override?(r(),u(o,{key:0},[s(i(e.override),1)],64)):w.value.moduleName?(r(),u(o,{key:1},[l(`span`,null,i(w.value.moduleName),1),e.subpath?(r(),u(`span`,v,i(w.value.path.slice(w.value.moduleName.length)),1)):d(``,!0)],64)):(r(),u(o,{key:2},[s(i(w.value.path),1)],64))],10,_),a(c.$slots,`default`),e.filepath?(r(),u(`div`,y,[l(`button`,{"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Open in editor`,onClick:f[0]||=n=>t(x)(e.filepath)},[...f[2]||=[l(`div`,{"i-carbon-script-reference":``},null,-1)]]),l(`button`,{"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Copy path`,onClick:f[1]||=n=>t(S)(e.filepath)},[...f[3]||=[l(`div`,{"i-carbon-copy":``},null,-1)]])])):d(``,!0)]))}}),{__name:`FilepathItem`});export{b as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./nicon-
|
|
1
|
+
import{r as e}from"./nicon-ecitoebm.js";import{C as t,Et as n,H as r,K as i,_t as a,a as o,f as s,h as c,m as l,ot as u,x as d}from"./vendor/json-editor-vue-e51gef8e.js";import{Mt as f}from"./ready-h577ja1k.js";import{h as p}from"#entry";var m={key:0,border:`l base`,class:`prose`,pos:`fixed bottom-0 right-0 top-0`,"z-200":``,"h-full":``,"w-150":``,"overflow-auto":``,"bg-base":``,px8:``,py4:``},h=Object.assign(t({__name:`HelpFab`,setup(t){let h=a(!1),{showHelpButtons:g}=e(`ui`);return(e,t)=>{let a=p;return n(g)?(r(),c(o,{key:0},[s(`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]||=e=>h.value=!h.value},[...t[3]||=[s(`div`,{"i-ri:question-mark":``},null,-1)]]),d(f,{name:`fade-in`},{default:u(()=>[h.value?(r(),c(`div`,{key:0,class:`fixed bottom-0 left-0 right-0 top-0 z-100`,"bg-black:20":``,"backdrop-blur-2":``,onClick:t[1]||=e=>h.value=!1})):l(``,!0)]),_:1}),d(f,{name:`slide-in`},{default:u(()=>[h.value?(r(),c(`div`,m,[i(e.$slots,`default`),d(a,{icon:`carbon-close`,pos:`absolute top-3 right-3`,"rounded-full":``,"text-xl":``,border:!1,onClick:t[2]||=e=>h.value=!1})])):l(``,!0)]),_:3})],64)):l(``,!0)}}}),{__name:`HelpFab`});export{h as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./nicon-
|
|
1
|
+
import{s as e}from"./nicon-ecitoebm.js";import{C as t,Et as n,G as r,Gt as i,H as a,Jt as o,_t as s,a as c,b as l,d as u,f as d,h as f,m as p,ot as m,p as h,qt as g,x as _}from"./vendor/json-editor-vue-e51gef8e.js";import{T as v}from"./utils-k0p3foaq.js";import{t as y}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as b}from"./pages-oclxpiil.js";import{t as x}from"./help-fab-co1gqajf.js";import{t as S}from"./nsection-block-z4uk18lp.js";import{t as C}from"./color-abaog8vc.js";import{t as w}from"./duration-display-cbezy2qj.js";var T={"w-full":``},E={border:`b base`},D={"select-none":``,"ws-nowrap":``,p1:``,"text-right":``,"font-bold":``},O={colspan:`2`,p1:``,pl5:``,"text-left":``,"font-bold":``},k={"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},A={"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},j={"ws-nowrap":``,p1:``,"text-right":``,"font-bold":``},M={"w-0":``,"ws-nowrap":``,"text-center":``,"text-sm":``,op25:``},N={"text-sm":``},P={"ws-nowrap":``},F={"text-sm":``},I={"w-0":``,"text-center":``,"text-sm":``},L={"w-0":``,"text-center":``,"text-sm":``},R={"w-0":``,"text-right":``,"text-sm":``},z=Object.assign(t({__name:`HooksTable`,props:{hooks:{}},setup(e){let t=e,p=s(`duration`),m=s(`asc`),h={duration:(e,t)=>(t.duration??1/0)-(e.duration??1/0),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},v=u(()=>t.hooks.map(e=>e.start).sort((e,t)=>e-t)),y=u(()=>{let e=h[p.value],n=t.hooks.toSorted(e);return m.value===`desc`&&n.reverse(),n});function b(e){let t=e.split(`:`);return t.length===1?``:`${t[0]}:`}function x(e){let t=e.split(`:`);return t.length===1?e:t.slice(1).join(`:`)}function S(e){p.value===e?m.value=m.value===`asc`?`desc`:`asc`:p.value=e}return(e,t)=>{let s=w;return a(),f(`table`,T,[d(`thead`,E,[d(`tr`,null,[d(`th`,D,[d(`button`,{onClick:t[0]||=e=>S(`start`)},[t[5]||=l(` Order `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([p.value===`start`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),d(`th`,O,[d(`button`,{onClick:t[1]||=e=>S(`name`)},[t[6]||=l(` Hook name `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([p.value===`name`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),d(`th`,k,[d(`button`,{onClick:t[2]||=e=>S(`listener`)},[t[7]||=l(` Listeners `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([p.value===`listener`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),d(`th`,A,[d(`button`,{onClick:t[3]||=e=>S(`executions`)},[t[8]||=l(` Executions `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([p.value===`executions`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),d(`th`,j,[d(`button`,{onClick:t[4]||=e=>S(`duration`)},[t[9]||=l(` Duration `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([p.value===`duration`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])])])]),d(`tbody`,null,[(a(!0),f(c,null,r(y.value,t=>(a(),f(`tr`,{key:t.name,border:`b dashed transparent hover:base`},[d(`td`,M,o(v.value.indexOf(t.start)),1),d(`td`,{"w-0":``,"ws-nowrap":``,"text-right":``,style:g({color:(`getHslColorFromStringHash`in e?e.getHslColorFromStringHash:n(C))(b(t.name))})},[d(`code`,N,o(b(t.name)),1)],4),d(`td`,P,[d(`code`,F,o(x(t.name)),1)]),d(`td`,I,o(t.listeners),1),d(`td`,L,o(t.executions.length+1),1),d(`td`,R,[_(s,{duration:t.duration},null,8,[`duration`])])]))),128))])])}}}),{__name:`HooksTable`}),B={},V={class:`markdown-body`};function H(e,t){return a(),f(`div`,V,[...t[0]||=[d(`template`,null,[d(`div`,{class:`markdown-body`},[d(`h1`,null,`Hooks`),d(`p`,null,[l(`Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by `),d(`a`,{href:`https://github.com/unjs/hookable`,target:`_blank`,rel:`noopener`},`unjs/hookable`),l(`.`)]),d(`p`,null,[d(`a`,{href:`https://nuxt.com/docs/guide/going-further/hooks`,target:`_blank`,rel:`noopener`},`Learn more about hooks`),l(`.`)])])],-1)]])}var U=y(B,[[`render`,H]]),W=t({__name:`hooks`,setup(t){b({icon:`carbon-ibm-cloud-direct-link-2-connect`,title:`Hooks`,category:`advanced`});let r=v(),i=e(),o=u(()=>i.value?.metrics.clientHooks());return(e,t)=>{let i=z,s=S,l=U,u=x;return a(),f(c,null,[d(`div`,null,[o.value?.length?(a(),h(s,{key:0,icon:`carbon-ibm-cloud-direct-link-1-dedicated-hosting`,text:`Client Hooks`,description:`Total hooks: ${o.value.length}`,padding:`pl4 pr6`},{default:m(()=>[_(i,{hooks:o.value},null,8,[`hooks`])]),_:1},8,[`description`])):p(``,!0),n(r)?.length?(a(),h(s,{key:1,icon:`carbon-ibm-cloud-direct-link-2-dedicated`,text:`Server Hooks`,description:`Total hooks: ${n(r)?.length}`,padding:`pl4 pr6`},{default:m(()=>[_(i,{hooks:n(r)},null,8,[`hooks`])]),_:1},8,[`description`])):p(``,!0)]),_(u,null,{default:m(()=>[_(l)]),_:1})],64)}}});export{W as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./nicon-
|
|
1
|
+
import{t as e}from"./nicon-ecitoebm.js";import{C as t,Et as n,G as r,H as i,Jt as a,_t as o,a as s,d as c,f as l,h as u,m as d,ot as f,p,x as m}from"./vendor/json-editor-vue-e51gef8e.js";import{C as h,_ as g,i as _,o as v,s as y}from"./utils-k0p3foaq.js";import{t as b}from"./_plugin-vue_export-helper-d9irwgla.js";import{p as x}from"#entry";import{t as S}from"./pages-oclxpiil.js";import{t as C}from"./filepath-item-bn29t5gp.js";import{t as w}from"./help-fab-co1gqajf.js";import{t as T}from"./nnavbar-g4ablrbq.js";import{t as E}from"./nselect-tabs-jzs0nv8s.js";import{t as D}from"./nsection-block-z4uk18lp.js";import{t as O}from"./composable-item-frkviqjw.js";var k={flex:`~ wrap gap2`,p2:``,pl4:``},A=Object.assign(t({__name:`ComposableTree`,props:{map:{},root:{},metadata:{}},setup(e){return(t,n)=>{let a=C,o=O;return i(),u(`div`,null,[(i(!0),u(s,null,r(e.map.entries(),([t,n])=>(i(),u(`div`,{key:t},[m(a,{filepath:t,op50:``,"hover:underline":``},null,8,[`filepath`]),l(`div`,k,[(i(!0),u(s,null,r(n,n=>(i(),p(o,{key:n.as,item:n,metadata:e.metadata,"is-directive":n.meta?.vueDirective===!0,filepath:t.match(/^[\w@]/)?void 0:t},null,8,[`item`,`metadata`,`is-directive`,`filepath`]))),128))])]))),128))])}}}),{__name:`ComposableTree`}),j={key:0,flex:`~ col gap-2 items-start`},M=Object.assign(t({__name:`HelpImportsDirs`,setup(e){let t=g();return(e,a)=>{let o=C;return n(t)?.dirs?(i(),u(`div`,j,[(i(!0),u(s,null,r(n(t).dirs,e=>(i(),p(o,{key:e,filepath:e,"text-primary":``},null,8,[`filepath`]))),128))])):d(``,!0)}}}),{__name:`HelpImportsDirs`}),N={flex:`~ gap-2 wrap`,mb6:``},P=Object.assign(t({__name:`HelpImportsModules`,setup(e){let t=g(),n=c(()=>[...new Set(t.value?.imports.map(e=>_(e.from)).filter(e=>!!e&&!v(e)))]);return(e,t)=>(i(),u(`div`,N,[(i(!0),u(s,null,r(n.value,e=>(i(),u(`code`,{key:e,rounded:``,"bg-primary:5":``,p:`x2 y0.5`,"text-primary":``},a(e),1))),128))]))}}),{__name:`HelpImportsModules`}),F={},I={class:`markdown-body`},L={class:`markdown-body`};function R(e,t){let n=M,r=P;return i(),u(`div`,I,[l(`template`,null,[l(`div`,L,[t[0]||=l(`h1`,null,`Auto imports`,-1),t[1]||=l(`p`,null,`Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.`,-1),t[2]||=l(`hr`,null,null,-1),t[3]||=l(`p`,null,`According to your config, exports of files under the following folders will be registed as auto-imports entry:`,-1),m(n),t[4]||=l(`p`,null,`Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:`,-1),m(r),t[5]||=l(`hr`,null,null,-1),t[6]||=l(`p`,null,[l(`a`,{href:`https://nuxt.com/docs/guide/concepts/auto-imports`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)],-1),t[7]||=l(`h2`,null,`Directives`,-1),t[8]||=l(`p`,null,`Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`,-1),t[9]||=l(`p`,null,[l(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/directives`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)],-1)])])])}var z=b(F,[[`render`,R]]),B={key:0,relative:``,"h-full":``,"of-auto":``},V={key:0,flex:`~ gap-2 items-center lt-sm:col lt-sm:items-start`},H=t({__name:`imports`,setup(t){S({icon:`carbon-function`,title:`Imports`,order:4});let r=h(),a=o(`all`),l=o(`all`),b=o(``),C=g(),O=c(()=>C.value?.metadata),k=c(()=>C.value?.imports.filter(e=>e.as||e.name).sort((e,t)=>(e.as||e.name).localeCompare(t.as||t.name))||[]),j=c(()=>new x(k.value,{keys:[`from`,`as`,`name`]})),M=c(()=>{let e=new Map,t=new Map,n=new Map,r=b.value?j.value.search(b.value).map(e=>e.item):k.value,i=l.value;i===`composables`?r=r.filter(e=>e.meta?.vueDirective!==!0):i===`directives`&&(r=r.filter(e=>e.meta?.vueDirective===!0)),a.value===`using`&&O.value?r=r.filter(e=>(e.as||e.name)in O.value.injectionsUsageMap):a.value===`not-used`&&O.value&&(r=r.filter(e=>!((e.as||e.name)in O.value.injectionsUsageMap)));let o={user:0,lib:0,builtin:0};return r.forEach(r=>{let i=y(r.from)?v(_(r.from))?n:t:e;i.has(r.from)||i.set(r.from,[]),i.get(r.from).push(r),o[i===e?`user`:i===t?`lib`:`builtin`]++}),{user:e,lib:t,builtin:n,count:o}}),N=c(()=>l.value===`directives`?`${M.value.count.user} directives from ${M.value.user.size} modules`:`${M.value.count.user} composables from ${M.value.user.size} modules`),P=c(()=>l.value===`directives`?`${M.value.count.builtin} directives`:`${M.value.count.builtin} composables`),F=c(()=>l.value===`directives`?`${M.value.count.lib} directives from ${M.value.lib.size} packages`:`${M.value.count.lib} composables from ${M.value.lib.size} packages`);return(t,o)=>{let c=e,h=E,g=T,_=A,v=D,y=z,x=w;return i(),u(s,null,[n(r)?(i(),u(`div`,B,[m(g,{search:b.value,"onUpdate:search":o[2]||=e=>b.value=e,pb3:``},{default:f(()=>[O.value?(i(),u(`div`,V,[m(c,{icon:`carbon-filter`,op50:``}),m(h,{modelValue:a.value,"onUpdate:modelValue":o[0]||=e=>a.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`]),m(h,{modelValue:l.value,"onUpdate:modelValue":o[1]||=e=>l.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Composables`,value:`composables`},{label:`Directives`,value:`directives`}]},null,8,[`modelValue`])])):d(``,!0)]),_:1},8,[`search`]),M.value.user.size?(i(),p(v,{key:0,open:M.value.count.user<=n(50),icon:l.value===`directives`?`tabler:hexagon-letter-d`:`carbon-function`,text:`User ${l.value===`directives`?`directives`:`composables`}`,description:N.value},{default:f(()=>[m(_,{map:M.value.user,root:n(r).rootDir,metadata:O.value},null,8,[`map`,`root`,`metadata`])]),_:1},8,[`open`,`icon`,`text`,`description`])):d(``,!0),M.value.builtin.size?(i(),p(v,{key:1,open:M.value.count.builtin<=n(50),icon:`simple-icons-nuxtdotjs`,text:`Built-in ${l.value===`directives`?`directives`:`composables`}`,description:P.value},{default:f(()=>[m(_,{map:M.value.builtin,root:n(r).rootDir,metadata:O.value},null,8,[`map`,`root`,`metadata`])]),_:1},8,[`open`,`text`,`description`])):d(``,!0),M.value.lib.size?(i(),p(v,{key:2,open:M.value.count.lib<=n(50),icon:`carbon-3d-mpr-toggle`,text:`${l.value===`directives`?`Directives`:`Composables`} from libraries`,description:F.value},{default:f(()=>[m(_,{map:M.value.lib,root:n(r).rootDir,metadata:O.value},null,8,[`map`,`root`,`metadata`])]),_:1},8,[`open`,`text`,`description`])):d(``,!0)])):d(``,!0),m(x,null,{default:f(()=>[m(y)]),_:1})],64)}}});export{H as default};
|