@nuxt/devtools-nightly 3.0.0-beta.2-29360546.3b7b91e → 3.0.1-29365129.21c4610
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +26 -2
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/{analyze-build-en1pdms2.js → analyze-build-oqcrl1jz.js} +1 -1
- package/dist/client/_nuxt/{assets-n566h5vr.js → assets-3zh6n6hw.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/d9b1392c-c0e7-4273-8fab-59c8ae57c94b.json +1 -0
- package/dist/client/_nuxt/{components-hpibx0st.js → components-nemggbrz.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-f0yv6e3f.js → custom-_name_-i0s9w8wo.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-ezu9t3sd.js → data-schema-drawer-n4533z7d.js} +1 -1
- package/dist/client/_nuxt/{debug-cfxior0p.js → debug-mxoobyoa.js} +1 -1
- package/dist/client/_nuxt/{default-h6dyqs2w.js → default-kqqa4bba.js} +1 -1
- package/dist/client/_nuxt/dhcet3eq.js +19 -0
- package/dist/client/_nuxt/{entry.css-ffhdx367.css → entry.css-dxneg9ww.css} +1 -1
- package/dist/client/_nuxt/{error-404-njlyogwy.js → error-404-f4759vc7.js} +1 -1
- package/dist/client/_nuxt/{error-500-ntnscqxg.js → error-500-fg359t1c.js} +1 -1
- package/dist/client/_nuxt/{error-ngd0he0p.js → error-fa2v9ua8.js} +1 -1
- package/dist/client/_nuxt/{full-kiy55qwo.js → full-cf22ftdk.js} +1 -1
- package/dist/client/_nuxt/{hooks-snvxwym3.js → hooks-kmkegm5d.js} +1 -1
- package/dist/client/_nuxt/{imports-ablrlkrm.js → imports-dxb3qo9e.js} +1 -1
- package/dist/client/_nuxt/{index-dhqprzsl.js → index-cpdpzub3.js} +1 -1
- package/dist/client/_nuxt/{modules-fdp63k8i.js → modules-mz2kxw10.js} +1 -1
- package/dist/client/_nuxt/{none-kkzl28yq.js → none-8bjcswx1.js} +1 -1
- package/dist/client/_nuxt/{open-graph-i89lovwl.js → open-graph-h27ns5yo.js} +1 -1
- package/dist/client/_nuxt/overview-nl5top8u.js +1 -0
- package/dist/client/_nuxt/{pages-c92950z2.js → pages-lbparzhr.js} +1 -1
- package/dist/client/_nuxt/{payload-ioljy0gp.js → payload-guogaqf6.js} +1 -1
- package/dist/client/_nuxt/{pinia-l3j72b9i.js → pinia-pbd50zup.js} +1 -1
- package/dist/client/_nuxt/{plugins-vnkqf88h.js → plugins-ofh5qbbt.js} +1 -1
- package/dist/client/_nuxt/{render-tree-n8fhc6fz.js → render-tree-k06lscom.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-oljrogad.js → runtime-configs-ovvj3583.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-d1p5895t.js → server-discovery-etxl22my.js} +1 -1
- package/dist/client/_nuxt/{server-routes-fnmu47i7.js → server-routes-mgsattjj.js} +2 -2
- package/dist/client/_nuxt/{server-tasks-jaynp34d.js → server-tasks-et3sau9x.js} +1 -1
- package/dist/client/_nuxt/{settings-dskwwnw8.js → settings-bx9u4e01.js} +1 -1
- package/dist/client/_nuxt/{storage-lnlr13lw.js → storage-fzijzbnr.js} +1 -1
- package/dist/client/_nuxt/{terminals-eh81n4ks.js → terminals-mxw3bgmn.js} +1 -1
- package/dist/client/_nuxt/{timeline-nc7oe1s1.js → timeline-lf1e24gw.js} +1 -1
- package/dist/client/_nuxt/{unocss-runtime-d4xe6j1n.js → unocss-runtime-gcsb1pt7.js} +1 -1
- package/dist/client/_nuxt/vendor/{unocss-jganugwb.js → unocss-kbr5sp48.js} +2 -2
- package/dist/client/_nuxt/{virtual-files-c1puztn8.js → virtual-files-y79trwh5.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/view/client.js +2 -1
- package/dist/runtime/plugins/vite-devtools.client.d.ts +2 -0
- package/dist/runtime/plugins/vite-devtools.client.js +4 -0
- package/package.json +11 -4
- package/dist/client/_nuxt/builds/meta/c2160c47-e789-4a88-b479-d4ac460d7f3c.json +0 -1
- package/dist/client/_nuxt/fwne71l4.js +0 -19
- package/dist/client/_nuxt/overview-mah4r2ax.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s,d as a,e as i}from"#entry";import{J as u,Y as c,a3 as t,ab as n,a1 as l,$ as d,ac as f}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{b as s,d as a,e as i}from"#entry";import{J as u,Y as c,a3 as t,ab as n,a1 as l,$ as d,ac as f}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";const p={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},m={class:"max-w-520px text-center"},b=["textContent"],h=["textContent"],g=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:404},statusMessage:{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"}},setup(e){const r=e;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration: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 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--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: }'}]}),(k,w)=>{const o=i;return c(),u("div",p,[t("div",m,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:n(e.statusCode)},null,8,b),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:n(e.statusMessage)},null,8,h),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:n(e.description)},null,8,g),t("div",x,[l(o,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:d(()=>[f(n(e.backHome),1)]),_:1})])])])}}},z=s(y,[["__scopeId","data-v-cbd3f0eb"]]);export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o,d as s}from"#entry";import{J as a,Y as i,a3 as t,ab as r}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{b as o,d as s}from"#entry";import{J as a,Y as i,a3 as t,ab as r}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},l={class:"max-w-520px text-center"},c=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}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 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--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: }'}]}),(m,b)=>(i(),a("div",u,[t("div",l,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.statusCode)},null,8,c),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusMessage)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},k=o(f,[["__scopeId","data-v-755669bb"]]);export{k as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as x,q as E}from"#entry";import{_ as N}from"./stacktrace-list-gp6s7nwa.js";import{p as y,q as _,J as l,Y as i,a1 as C,a3 as f,a4 as v,$ as w,ac as S,ab as p,X as O}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{f as x,q as E}from"#entry";import{_ as N}from"./stacktrace-list-gp6s7nwa.js";import{p as y,q as _,J as l,Y as i,a1 as C,a3 as f,a4 as v,$ as w,ac as S,ab as p,X as O}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";import"./filepath-item-owlv864w.js";const R=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,$=/^(eval@)?(\[native code\])?$/;function b(e,a){if(typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u")return V(e);if(e.stack&&e.stack.match(h))return F(e);if(e.stack)return A(e);throw new Error("Cannot parse given Error object")}function m(e){if(!e.includes(":"))return[e,void 0,void 0];const o=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[o[1],o[2]||void 0,o[3]||void 0]}function d(e,a){return e}function F(e,a){return I(e.stack)}function I(e,a){return d(e.split(`
|
|
2
2
|
`).filter(t=>!!t.match(h))).map(t=>{t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const n=r.match(/ (\(.+\)$)/);r=n?r.replace(n[0],""):r;const c=m(n?n[1]:r),s=n&&r||void 0,u=["eval","<anonymous>"].includes(c[0])?void 0:c[0];return{function:s,file:u,line:c[1]?+c[1]:void 0,col:c[2]?+c[2]:void 0,raw:t}})}function A(e,a){return T(e.stack)}function T(e,a){return d(e.split(`
|
|
3
3
|
`).filter(t=>!t.match($))).map(t=>{if(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":"))return{function:t};{const r=/(([^\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=t.match(r),c=n&&n[1]?n[1]:void 0,s=m(t.replace(r,""));return{function:c,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:t}}})}function V(e,a){return!e.stacktrace||e.message.includes(`
|
|
4
4
|
`)&&e.message.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"#entry";import{J as e,Y as r,a0 as s}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{b as t}from"#entry";import{J as e,Y as r,a0 as s}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";const a={},c={"h-full":"","of-auto":""};function n(o,f){return r(),e("div",c,[s(o.$slots,"default")])}const d=t(a,[["render",n]]);export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as T}from"./duration-display-cjpkh71u.js";import{g as S}from"./color-mt9xuhgy.js";import{p as y,k as H,q as f,J as _,Y as u,a3 as o,ac as l,a7 as d,F as $,ah as F,ab as p,a5 as B,u as h,a1 as m,X as C,a4 as N,$ as v}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as V}from"./nsection-block-je23gs2w.js";import{b as D,s as O,f as P}from"#entry";import{_ as j}from"./help-fab-chg6ox1v.js";import"./nicon-title-he6hzgyb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{_ as T}from"./duration-display-cjpkh71u.js";import{g as S}from"./color-mt9xuhgy.js";import{p as y,k as H,q as f,J as _,Y as u,a3 as o,ac as l,a7 as d,F as $,ah as F,ab as p,a5 as B,u as h,a1 as m,X as C,a4 as N,$ as v}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as V}from"./nsection-block-je23gs2w.js";import{b as D,s as O,f as P}from"#entry";import{_ as j}from"./help-fab-chg6ox1v.js";import"./nicon-title-he6hzgyb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";const E={"w-full":""},L={border:"b base"},Y={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},q={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},J={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},R={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},U={"text-sm":""},X={"ws-nowrap":""},G={"text-sm":""},K={"w-0":"","text-center":"","text-sm":""},M={"w-0":"","text-center":"","text-sm":""},Q={"w-0":"","text-right":"","text-sm":""},W=y({__name:"HooksTable",props:{hooks:{}},setup(x){const a=x,r=H("duration"),s=H("asc"),w={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),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},g=f(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=f(()=>{const e=w[r.value],t=[...a.hooks].sort(e);return s.value==="desc"&&t.reverse(),t});function c(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function k(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?s.value=s.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=T;return u(),_("table",E,[o("thead",L,[o("tr",null,[o("th",Y,[o("button",{onClick:t[0]||(t[0]=n=>i("start"))},[t[5]||(t[5]=l(" Order ",-1)),o("div",{"ml--1":"","text-xs":"",class:d([r.value==="start"?"op50":"op0",s.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[1]||(t[1]=n=>i("name"))},[t[6]||(t[6]=l(" Hook name ",-1)),o("div",{"ml--1":"","text-xs":"",class:d([r.value==="name"?"op50":"op0",s.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[2]||(t[2]=n=>i("listener"))},[t[7]||(t[7]=l(" Listeners ",-1)),o("div",{"ml--1":"","text-xs":"",class:d([r.value==="listener"?"op50":"op0",s.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",q,[o("button",{onClick:t[3]||(t[3]=n=>i("executions"))},[t[8]||(t[8]=l(" Executions ",-1)),o("div",{"ml--1":"","text-xs":"",class:d([r.value==="executions"?"op50":"op0",s.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",J,[o("button",{onClick:t[4]||(t[4]=n=>i("duration"))},[t[9]||(t[9]=l(" Duration ",-1)),o("div",{"ml--1":"","text-xs":"",class:d([r.value==="duration"?"op50":"op0",s.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),_($,null,F(b.value,n=>(u(),_("tr",{key:n.name,border:"b dashed transparent hover:base"},[o("td",R,p(g.value.indexOf(n.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:B({color:("getHslColorFromStringHash"in e?e.getHslColorFromStringHash:h(S))(c(n.name))})},[o("code",U,p(c(n.name)),1)],4),o("td",X,[o("code",G,p(k(n.name)),1)]),o("td",K,p(n.listeners),1),o("td",M,p(n.executions.length+1),1),o("td",Q,[m(I,{duration:n.duration},null,8,["duration"])])]))),128))])])}}}),Z=Object.assign(W,{__name:"HooksTable"}),tt={},ot={class:"markdown-body"};function et(x,a){return u(),_("div",ot,[...a[0]||(a[0]=[o("template",null,[o("div",{class:"markdown-body"},[o("h1",null,"Hooks"),o("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 "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")]),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")])])],-1)])])}const nt=D(tt,[["render",et]]),mt=y({__name:"hooks",setup(x){const a=O(),r=P(),s=f(()=>r.value?.metrics.clientHooks());return(w,g)=>{const b=Z,c=V,k=nt,i=j;return u(),_($,null,[o("div",null,[s.value?.length?(u(),C(c,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${s.value.length}`,padding:"pl4 pr6"},{default:v(()=>[m(b,{hooks:s.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),h(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${h(a)?.length}`,padding:"pl4 pr6"},{default:v(()=>[m(b,{hooks:h(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),m(i,null,{default:v(()=>[m(k)]),_:1})],64)}}});export{mt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as T,W as A,X as S,b as L,A as O,S as P,Y as X,I as Y}from"#entry";import{_ as q}from"./nselect-tabs-fwdas30r.js";import{_ as J}from"./nnavbar-b4ap0r8w.js";import{_ as U}from"./filepath-item-owlv864w.js";import{_ as W}from"./composable-item-de2qbj5y.js";import{p as C,J as i,Y as s,F as I,ah as N,a1 as m,a3 as l,X as k,a4 as $,u as v,q as f,ab as G,k as V,$ as w}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as K}from"./nsection-block-je23gs2w.js";import{_ as Q}from"./help-fab-chg6ox1v.js";import{D as B}from"./constants-b32h69zq.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{V as T,W as A,X as S,b as L,A as O,S as P,Y as X,I as Y}from"#entry";import{_ as q}from"./nselect-tabs-fwdas30r.js";import{_ as J}from"./nnavbar-b4ap0r8w.js";import{_ as U}from"./filepath-item-owlv864w.js";import{_ as W}from"./composable-item-de2qbj5y.js";import{p as C,J as i,Y as s,F as I,ah as N,a1 as m,a3 as l,X as k,a4 as $,u as v,q as f,ab as G,k as V,$ as w}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as K}from"./nsection-block-je23gs2w.js";import{_ as Q}from"./help-fab-chg6ox1v.js";import{D as B}from"./constants-b32h69zq.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";import"./nmarkdown-n6zsr15e.js";import"./client-miiq4qin.js";import"./index-jc4yj4to.js";import"./nicon-title-he6hzgyb.js";const R={flex:"~ wrap gap2",p2:"",pl4:""},Z=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(x){return(e,p)=>{const o=U,_=W;return s(),i("div",null,[(s(!0),i(I,null,N(x.map.entries(),([a,c])=>(s(),i("div",{key:a},[m(o,{filepath:a,op50:"","hover:underline":""},null,8,["filepath"]),l("div",R,[(s(!0),i(I,null,N(c,g=>(s(),k(_,{key:g.as,item:g,metadata:x.metadata,"is-directive":g.meta?.vueDirective===!0,filepath:a.match(/^[\w@]/)?void 0:a},null,8,["item","metadata","is-directive","filepath"]))),128))])]))),128))])}}}),ee=Object.assign(Z,{__name:"ComposableTree"}),te={key:0,flex:"~ col gap-2 items-start"},oe=C({__name:"HelpImportsDirs",setup(x){const e=T();return(p,o)=>{const _=U;return v(e)?.dirs?(s(),i("div",te,[(s(!0),i(I,null,N(v(e).dirs,a=>(s(),k(_,{key:a,filepath:a,"text-primary":""},null,8,["filepath"]))),128))])):$("",!0)}}}),ne=Object.assign(oe,{__name:"HelpImportsDirs"}),se={flex:"~ gap-2 wrap",mb6:""},le=C({__name:"HelpImportsModules",setup(x){const e=T(),p=f(()=>[...new Set(e.value?.imports.map(o=>A(o.from)).filter(o=>!!o&&!S(o)))]);return(o,_)=>(s(),i("div",se,[(s(!0),i(I,null,N(p.value,a=>(s(),i("code",{key:a,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},G(a),1))),128))]))}}),ae=Object.assign(le,{__name:"HelpImportsModules"}),re={},ie={class:"markdown-body"},ue={class:"markdown-body"};function me(x,e){const p=ne,o=ae;return s(),i("div",ie,[l("template",null,[l("div",ue,[e[0]||(e[0]=l("h1",null,"Auto imports",-1)),e[1]||(e[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)),e[2]||(e[2]=l("hr",null,null,-1)),e[3]||(e[3]=l("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),m(p),e[4]||(e[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(o),e[5]||(e[5]=l("hr",null,null,-1)),e[6]||(e[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)),e[7]||(e[7]=l("h2",null,"Directives",-1)),e[8]||(e[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)),e[9]||(e[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))])])])}const pe=L(re,[["render",me]]),ce={key:0,relative:"","h-full":"","of-auto":""},de={key:0,flex:"~ gap-2 items-center lt-sm:col lt-sm:items-start"},Ce=C({__name:"imports",setup(x){const e=O(),p=V("all"),o=V("all"),_=V(""),a=T(),c=f(()=>a.value?.metadata),g=f(()=>a.value?.imports.filter(d=>d.as||d.name).sort((d,r)=>(d.as||d.name).localeCompare(r.as||r.name))||[]),z=f(()=>new P(g.value,{keys:["from","as","name"]})),n=f(()=>{const d=new Map,r=new Map,D=new Map;let u=_.value?z.value.search(_.value).map(t=>t.item):g.value;const M=o.value;M==="composables"?u=u.filter(t=>t.meta?.vueDirective!==!0):M==="directives"&&(u=u.filter(t=>t.meta?.vueDirective===!0)),p.value==="using"&&c.value?u=u.filter(t=>(t.as||t.name)in c.value.injectionUsage):p.value==="not-used"&&c.value&&(u=u.filter(t=>!((t.as||t.name)in c.value.injectionUsage)));const h={user:0,lib:0,builtin:0};return u.forEach(t=>{const b=X(t.from)?S(A(t.from))?D:r:d;b.has(t.from)||b.set(t.from,[]),b.get(t.from).push(t),h[b===d?"user":b===r?"lib":"builtin"]++}),{user:d,lib:r,builtin:D,count:h}}),F=f(()=>o.value==="directives"?`${n.value.count.user} directives from ${n.value.user.size} modules`:`${n.value.count.user} composables from ${n.value.user.size} modules`),H=f(()=>o.value==="directives"?`${n.value.count.builtin} directives`:`${n.value.count.builtin} composables`),j=f(()=>o.value==="directives"?`${n.value.count.lib} directives from ${n.value.lib.size} packages`:`${n.value.count.lib} composables from ${n.value.lib.size} packages`);return(d,r)=>{const D=Y,u=q,M=J,h=ee,t=K,b=pe,E=Q;return s(),i(I,null,[v(e)?(s(),i("div",ce,[m(M,{search:_.value,"onUpdate:search":r[2]||(r[2]=y=>_.value=y),pb3:""},{default:w(()=>[c.value?(s(),i("div",de,[m(D,{icon:"carbon-filter",op50:""}),m(u,{modelValue:p.value,"onUpdate:modelValue":r[0]||(r[0]=y=>p.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"]),m(u,{modelValue:o.value,"onUpdate:modelValue":r[1]||(r[1]=y=>o.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Composables",value:"composables"},{label:"Directives",value:"directives"}]},null,8,["modelValue"])])):$("",!0)]),_:1},8,["search"]),n.value.user.size?(s(),k(t,{key:0,open:n.value.count.user<=v(B),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:F.value},{default:w(()=>[m(h,{map:n.value.user,root:v(e).rootDir,metadata:c.value},null,8,["map","root","metadata"])]),_:1},8,["open","icon","text","description"])):$("",!0),n.value.builtin.size?(s(),k(t,{key:1,open:n.value.count.builtin<=v(B),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:H.value},{default:w(()=>[m(h,{map:n.value.builtin,root:v(e).rootDir,metadata:c.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):$("",!0),n.value.lib.size?(s(),k(t,{key:2,open:n.value.count.lib<=v(B),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:j.value},{default:w(()=>[m(h,{map:n.value.lib,root:v(e).rootDir,metadata:c.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):$("",!0)])):$("",!0),m(E,null,{default:w(()=>[m(b)]),_:1})],64)}}});export{Ce as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as y,g,h as k,_ as N,i as b,t as h,j as w}from"#entry";import{_ as C}from"./nlink-fgjzhevk.js";import{_ as V}from"./ncheckbox-eijyrwcq.js";import{p as B,k as L,X as u,Y as m,$ as o,a3 as t,a1 as n,a4 as T,ac as l,u as j}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{f as y,g,h as k,_ as N,i as b,t as h,j as w}from"#entry";import{_ as C}from"./nlink-fgjzhevk.js";import{_ as V}from"./ncheckbox-eijyrwcq.js";import{p as B,k as L,X as u,Y as m,$ as o,a3 as t,a1 as n,a4 as T,ac as l,u as j}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";const D={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},P={"max-w-190":"","text-lg":""},E={mb6:"",op50:""},F={p4:""},G={flex:"~ col gap-2",mxa:""},Y=B({__name:"index",setup(S){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){h.value=s.value,w.value=!1}function _(){a.value=!1,p.value.devtools.close()}return($,e)=>{const f=k,r=C,i=N,x=V,v=b;return m(),u(v,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",D,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",P,[n(f,{"mr-0.5":"","inline-block":"","h-5":"","translate-y--1.1":"","align-mid":""}),e[1]||(e[1]=l(" is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!",-1)),e[2]||(e[2]=t("br",null,null,-1))]),t("p",E,[e[4]||(e[4]=l(" Learn more at ",-1)),n(r,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:o(()=>[...e[3]||(e[3]=[l(" devtools.nuxt.com ",-1)])]),_:1})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>[...e[5]||(e[5]=[t("span",null,"Get Started",-1)])]),_:1}),j(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:_},{default:o(()=>[...e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])]),_:1})):T("",!0)]),t("div",F,[t("div",G,[n(x,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.value=c),n:"green6"},{default:o(()=>[e[8]||(e[8]=t("span",{op50:""},"Send anonymous statistics, help us improving DevTools",-1)),n(r,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op35:"",textContent:"Learn more"})]),_:1},8,["modelValue"])])])]),_:1})}}});export{Y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as ne}from"./filepath-item-owlv864w.js";import{w as H,n as G,e as z,I as J,Z as Q,_ as F,r as q,E,M as oe,$ as X,a0 as Z,S as se,A as le,Q as ae,q as ie,b as re,a1 as ue}from"#entry";import{_ as de,u as U,a as ce}from"./state-modules-lzveckmy.js";import{_ as me}from"./duration-display-cjpkh71u.js";import{p as D,q as C,X as I,Y as t,$ as r,a3 as e,a0 as A,J as c,a4 as g,ac as h,ab as b,u as j,a7 as T,a1 as o,F as B,ah as P,ao as pe,k as O,H as Y}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as _e}from"./nsection-block-je23gs2w.js";import{_ as fe}from"./nicon-title-he6hzgyb.js";import{_ as K}from"./ndropdown-jcnxkt1n.js";import{_ as xe}from"./ncheckbox-eijyrwcq.js";import{_ as ve}from"./nnavbar-b4ap0r8w.js";import{_ as ge}from"./nbadge-d24jlq2b.js";import{s as be}from"./vue-virtual-scroller.esm-b0ym3ct8.js";import{_ as ke}from"./ncode-block-pcw3yh3u.js";import{_ as he}from"./nlink-fgjzhevk.js";import{_ as ye}from"./code-diff-ojhnq7lb.js";import{_ as $e}from"./help-fab-chg6ox1v.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-jganugwb.js";import"./client-miiq4qin.js";const we={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},Ie={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},Ce={key:2},Me={key:1,flex:"~ gap-2",title:"Documentation"},Ne={key:2,flex:"~ gap-2"},Be={key:0,flex:"~ gap-4 items-center"},je={key:0,flex:"~ gap-2 items-center",op50:""},De={key:1,flex:"~ gap-2 items-center",op50:""},Oe={key:1},Pe={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Fe={key:1,"i-carbon-cube":"",ma:"","flex-none":"","text-4xl":"",op30:""},Le={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Se=["src"],ze={flex:"","justify-end":""},Ue="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Ve="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",qe="https://github.com/",Ee="https://www.npmjs.com/package/",Ye=D({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(_){const f=_,l=C(()=>({...f.mod?.meta,...f.mod,...f.info})),{format:k}=Intl.NumberFormat(navigator.language||"en",{notation:"compact",maximumFractionDigits:1}),N=C(()=>k(l.value.stats?.stars||0)),a=C(()=>k(l.value.stats?.downloads||0)),i=H();return(u,p)=>{const y=z,v=J,d=me,$=G;return t(),I($,{p4:"",flex:"~ gap2"},{default:r(()=>[e("div",we,[A(u.$slots,"main",{},()=>[e("div",Ie,[_.mod.isPackageModule?(t(),I(y,{key:0,to:Ee+(l.value.npm||l.value.name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[h(b(l.value.name),1)]),_:1},8,["to"])):_.mod.entryPath?(t(),c("button",{key:1,role:"button",hover:"underline text-primary",onClick:p[0]||(p[0]=x=>j(i)(_.mod.entryPath))},b(l.value.name),1)):(t(),c("span",Ce,b(l.value.name),1)),A(u.$slots,"badge")]),l.value.description?(t(),c("div",{key:0,class:T(_.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},b(l.value.description),3)):g("",!0),p[3]||(p[3]=e("div",{"flex-auto":""},null,-1)),l.value.website?(t(),c("div",Me,[p[1]||(p[1]=e("span",{"i-carbon-link":"","flex-none":"","text-lg":"",op50:""},null,-1)),o(y,{to:l.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[h(b(l.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):g("",!0),l.value.github?(t(),c("div",Ne,[p[2]||(p[2]=e("span",{"i-carbon-logo-github":"","flex-none":"","text-lg":"",op50:""},null,-1)),o(y,{to:l.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[h(b(l.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):g("",!0)]),A(u.$slots,"items"),l.value.stats?(t(),c("div",Be,[l.value.stats.stars?(t(),c("div",je,[o(v,{icon:"carbon-star","flex-none":"","text-lg":""}),e("span",null,b(N.value),1)])):g("",!0),l.value.stats.downloads?(t(),c("div",De,[o(v,{icon:"carbon-download","flex-none":"","text-lg":""}),e("span",null,b(a.value),1)])):g("",!0)])):g("",!0),_.mod.timings?.setup?(t(),c("div",Oe,[o(d,{title:"Module Setup Time",flex:"~ items-center",duration:_.mod.timings.setup,factor:.5},{before:r(()=>[o(v,{icon:"carbon-time",mr2:"","flex-none":"","text-lg":"",op50:""})]),_:1},8,["duration"])])):g("",!0)]),e("div",Pe,[l.value.icon||_.mod.isPackageModule?(t(),c("div",Ae,[l.value.icon?(t(),c("img",{key:0,src:Ue+l.value.icon,alt:_.mod.name,ma:""},null,8,Te)):(t(),c("div",Fe))])):g("",!0),l.value.maintainers?.length&&_.maintainers?(t(),c("div",Le,[(t(!0),c(B,null,P(l.value.maintainers,x=>(t(),I(y,{key:x.name,target:"_blank",to:qe+x.github,title:x.name},{default:r(()=>[e("img",{src:Ve+x.github,"h-6":"","w-6":"","rounded-full":""},null,8,Se)]),_:2},1032,["to","title"]))),128))])):g("",!0),u.$slots.actions?(t(),c(B,{key:2},[p[4]||(p[4]=e("div",{"flex-auto":""},null,-1)),e("div",ze,[A(u.$slots,"actions")])],64)):g("",!0)])]),_:3})}}}),V=Object.assign(Ye,{__name:"ModuleItemBase"}),He={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ge={key:1,"mx--2":""},Je=["onClick"],Qe={key:2,"mx--2":""},Xe=["onClick"],Ze={op50:""},Ke={"text-green":""},Re={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},We={"text-sm":"",op50:""},et=D({__name:"ModuleItem",props:{mod:{}},setup(_){const f=_,l=C(()=>f.mod.info),k=C(()=>({...f.mod?.meta,...f.mod,...l.value})),N=Q();return(a,i)=>{const u=ne,p=z,y=de,v=V;return t(),I(v,{mod:_.mod,info:l.value},{items:r(()=>[_.mod.entryPath?(t(),c("div",He,[i[0]||(i[0]=e("span",{"i-carbon-folder-move-to":"","flex-none":"","text-lg":"",op50:""},null,-1)),o(u,{filepath:_.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):g("",!0),k.value.npm?(t(),I(y,{key:k.value.npm,"package-name":k.value.npm,options:{dev:!0}},{default:r(({info:d,update:$,state:x,id:s,restart:n})=>[x==="running"?(t(),I(p,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:s?"/modules/terminals":void 0,onClick:w=>s?N.value=s:void 0},{default:r(()=>[...i[1]||(i[1]=[e("span",{"i-carbon-circle-dash":"","flex-none":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])]),_:1},8,["to","onClick"])):x==="updated"?(t(),c("div",Ge,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},[...i[2]||(i[2]=[e("span",{"i-carbon-intent-request-active":"","flex-none":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)])],8,Je)])):d?.needsUpdate?(t(),c("div",Qe,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:w=>$()},[i[3]||(i[3]=e("span",{"i-carbon-intent-request-upgrade":"","flex-none":"","text-lg":"",op50:""},null,-1)),e("code",Ze,"v"+b(d.current),1),i[4]||(i[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Ke,"v"+b(d.latest),1)],8,Xe)])):d?.latest?(t(),c("div",Re,[i[5]||(i[5]=e("span",{"i-carbon-cube":"","flex-none":"","text-lg":"",op50:""},null,-1)),e("code",We,"v"+b(d.current),1)])):g("",!0)]),_:1},8,["package-name"])):g("",!0)]),_:1},8,["mod","info"])}}}),tt=Object.assign(et,{__name:"ModuleItem"}),nt=D({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(_,{emit:f}){const l=_,k=f,N=U(),a=C(()=>N.value.find(v=>v.name===l.item.npm)),i=C(()=>a.value&&a.value.isPackageModule),u=C(()=>a.value&&a.value.isPackageModule&&a.value.isUninstallable);async function p(v,d){const $=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,x=await $(await E(),v.npm,!0);oe(`modules:${d}`,{moduleName:v.npm}),x.commands&&await X.start(v,x,d)&&(Z.value.push({name:v.npm,info:v,processId:x.processId}),k("start"),await $(await E(),v.npm,!1))}const y={};return(v,d)=>{const $=ge,x=F,s=K,n=V;return t(),I(n,{mod:y,role:i.value?"":"button",info:_.item,mb2:"","h-full":"",class:T(i.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=w=>i.value?null:p(_.item,"install"))},pe({_:2},[i.value?{name:"badge",fn:r(()=>[o($,{n:"green",textContent:"Installed"}),u.value?(t(),I(s,{key:0,n:"sm green"},{trigger:r(({click:w})=>[o(x,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:m=>w()},null,8,["onClick"])]),default:r(()=>[o(x,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=w=>p(_.item,"uninstall"))},{default:r(()=>[...d[2]||(d[2]=[h(" Uninstall ",-1)])]),_:1})]),_:1})):g("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),ot=Object.assign(nt,{__name:"ModuleItemInstall"}),st={"h-full":"",flex:"~ col gap-4"},lt={flex:"~ items-center"},at={flex:"~ col","w-30":"","of-auto":""},it={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},rt={flex:"~ items-center gap-2"},ut={flex:"~ gap1","text-sm":"",op50:""},dt={key:0},ct={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},mt=D({__name:"ModuleInstallList",emits:["close"],setup(_,{emit:f}){const l=f,k=ce(),N=U(),a=["downloads","stars","updated","created"],i=O(!1),u=O(a[0]),p=O(!0),y={downloads:(s,n)=>s.stats.downloads-n.stats.downloads,stars:(s,n)=>s.stats.stars-n.stats.stars,created:(s,n)=>s.stats.createdAt-n.stats.createdAt,updated:(s,n)=>s.stats.publishedAt-n.stats.publishedAt},v=C(()=>k.value?.toSorted((s,n)=>y[u.value](s,n)*(i.value?1:-1))),d=O(""),$=C(()=>new se(k.value||[],{keys:["name","description","npm","category"],sortFn:(s,n)=>{const w=k.value?.[s.idx],m=k.value?.[n.idx];return w&&m?y[u.value](w,m)*(i.value?1:-1):s.score-n.score},threshold:.2})),x=C(()=>{let s=v.value;return p.value&&(s=(s||[]).filter(n=>!N.value.some(w=>w.name===n.name))),d.value?$.value.search(d.value).map(n=>n.item).filter(n=>s?.includes(n)):s});return(s,n)=>{const w=fe,m=F,L=J,R=K,W=xe,ee=ve,te=ot;return t(),c("div",st,[o(w,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),o(ee,{search:d.value,"onUpdate:search":n[2]||(n[2]=M=>d.value=M),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:r(()=>[o(R,{direction:"end",n:"sm primary"},{trigger:r(({click:M})=>[e("div",lt,[o(m,{icon:i.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=S=>i.value=!i.value)},null,8,["icon"]),o(m,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:S=>M()},{default:r(()=>[h(b(u.value)+" ",1),o(L,{icon:"carbon:chevron-down"})]),_:1},8,["onClick"])])]),default:r(()=>[e("div",at,[(t(),c(B,null,P(a,M=>o(m,{key:M,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:S=>u.value=M},{default:r(()=>[e("span",it,[h(b(M)+" ",1),u.value===M?(t(),I(L,{key:0,icon:"carbon:checkmark"})):g("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:r(()=>[e("div",rt,[o(W,{modelValue:p.value,"onUpdate:modelValue":n[1]||(n[1]=M=>p.value=M),n:"primary md"},{default:r(()=>[...n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])]),_:1},8,["modelValue"]),e("div",ut,[d.value||p.value?(t(),c("span",dt,b(x.value?.length)+" matched · ",1)):g("",!0),e("span",null,b(j(k)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",ct,[o(j(be),{class:"scroller",items:x.value,"item-size":200,"key-field":"name"},{default:r(({item:M})=>[o(te,{item:M,onStart:n[3]||(n[3]=S=>l("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),pt=Object.assign(mt,{__name:"ModuleInstallList"}),_t={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ft={capitalize:""},xt={op50:""},vt={flex:"~ gap-3",mt2:"","justify-end":""},gt=D({__name:"ModuleActionDialog",setup(_){const f=le(),l=H(),k={};return(N,a)=>{const i=V,u=ke,p=he,y=ye,v=ie,d=F,$=ae;return t(),I(j(X),null,{default:r(({resolve:x,args:s})=>[o($,{"model-value":!0,onClose:n=>x(!1)},{default:r(()=>[o(i,{mod:k,info:s[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",_t,[e("h2",{"text-xl":"",class:T(s[2]==="install"?"text-primary":"text-red")},[e("span",ft,b(s[2]),1),a[1]||(a[1]=h()),e("code",null,b(s[0].name),1),a[2]||(a[2]=h("? ",-1))],2),a[7]||(a[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),o(u,{code:s[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",xt,[a[3]||(a[3]=h(" Then your ",-1)),o(p,{role:"button",n:"primary",underline:"",onClick:a[0]||(a[0]=n=>j(l)(j(f)?._nuxtConfigFile)),textContent:"Nuxt config"}),a[4]||(a[4]=h(" will be updated as: ",-1))]),o(y,{from:s[1].configOriginal,to:s[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),a[8]||(a[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),h(". ")],-1)),e("div",vt,[o(v,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>[...a[5]||(a[5]=[h(" Please make sure to backup your project first. ",-1)])]),_:1}),o(d,{onClick:n=>x(!1)},{default:r(()=>[...a[6]||(a[6]=[h(" Cancel ",-1)])]),_:1},8,["onClick"]),o(d,{n:"solid",capitalize:"",class:T(s[2]==="install"?"n-primary":"n-red"),onClick:n=>x(!0)},{default:r(()=>[h(b(s[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),bt=Object.assign(gt,{__name:"ModuleActionDialog"}),kt={},ht={class:"markdown-body"};function yt(_,f){return t(),c("div",ht,[...f[0]||(f[0]=[e("template",null,[e("div",{class:"markdown-body"},[e("h1",null,"Modules"),e("p",null,[h("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),e("code",{"v-pre":""},"nuxt.config"),h(".")]),e("p",null,[h("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),h(" or install them directly inside the DevTools.")]),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")])])],-1)])])}const $t=re(kt,[["render",yt]]),wt={"h-full":"","w-full":"","of-auto":""},It={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},Ct=["src","alt"],Mt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},Nt={op75:""},Bt={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},jt="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Zt=D({__name:"modules",setup(_){const f=O(!1),l=U(),k=Q(),N=C(()=>l.value.filter(i=>i.isPackageModule)),a=C(()=>l.value.filter(i=>!i.isPackageModule));return ue(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{f.value=!0}}]),(i,u)=>{const p=tt,y=G,v=z,d=_e,$=F,x=pt,s=bt,n=$t,w=$e;return t(),c(B,null,[e("div",wt,[o(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${N.value.length}`},{default:r(()=>[(t(!0),c(B,null,P(N.value,m=>(t(),I(p,{key:m.name,mod:m},null,8,["mod"]))),128)),(t(!0),c(B,null,P("processInstallingModules"in i?i.processInstallingModules:j(Z),m=>(t(),I(v,{key:m.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:L=>k.value=m.processId},{default:r(()=>[o(y,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:r(()=>[e("div",It,[e("img",{src:jt+m.info.icon,alt:m.info.name,ma:""},null,8,Ct),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",Mt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",Nt,"Installing "+b(m.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),o(y,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:u[0]||(u[0]=m=>f.value=!0)},{default:r(()=>[...u[6]||(u[6]=[e("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),e("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])]),_:1})]),_:1},8,["description"]),a.value.length?(t(),I(d,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${a.value.length}`},{default:r(()=>[(t(!0),c(B,null,P(a.value,m=>(t(),c(B,{key:m.meta?.name||m.entryPath},[m.meta?.name||m.entryPath?(t(),I(p,{key:0,mod:m},null,8,["mod"])):g("",!0)],64))),128))]),_:1},8,["description"])):g("",!0),o(Y,{name:"fade-in"},{default:r(()=>[f.value?(t(),c("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=m=>f.value=!1)})):g("",!0)]),_:1}),o(Y,{name:"slide-in"},{default:r(()=>[f.value?(t(),c("div",Bt,[o($,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=m=>f.value=!1)}),o(x,{onClose:u[3]||(u[3]=m=>f.value=!1)})])):g("",!0)]),_:1}),o(s)]),o(w,null,{default:r(()=>[o(n)]),_:1})],64)}}});export{Zt as default};
|
|
1
|
+
import{_ as ne}from"./filepath-item-owlv864w.js";import{w as H,n as G,e as z,I as J,Z as Q,_ as F,r as q,E,M as oe,$ as X,a0 as Z,S as se,A as le,Q as ae,q as ie,b as re,a1 as ue}from"#entry";import{_ as de,u as U,a as ce}from"./state-modules-lzveckmy.js";import{_ as me}from"./duration-display-cjpkh71u.js";import{p as D,q as C,X as I,Y as t,$ as r,a3 as e,a0 as A,J as c,a4 as g,ac as h,ab as b,u as j,a7 as T,a1 as o,F as B,ah as P,ao as pe,k as O,H as Y}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as _e}from"./nsection-block-je23gs2w.js";import{_ as fe}from"./nicon-title-he6hzgyb.js";import{_ as K}from"./ndropdown-jcnxkt1n.js";import{_ as xe}from"./ncheckbox-eijyrwcq.js";import{_ as ve}from"./nnavbar-b4ap0r8w.js";import{_ as ge}from"./nbadge-d24jlq2b.js";import{s as be}from"./vue-virtual-scroller.esm-b0ym3ct8.js";import{_ as ke}from"./ncode-block-pcw3yh3u.js";import{_ as he}from"./nlink-fgjzhevk.js";import{_ as ye}from"./code-diff-ojhnq7lb.js";import{_ as $e}from"./help-fab-chg6ox1v.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";import"./client-miiq4qin.js";const we={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},Ie={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},Ce={key:2},Me={key:1,flex:"~ gap-2",title:"Documentation"},Ne={key:2,flex:"~ gap-2"},Be={key:0,flex:"~ gap-4 items-center"},je={key:0,flex:"~ gap-2 items-center",op50:""},De={key:1,flex:"~ gap-2 items-center",op50:""},Oe={key:1},Pe={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Fe={key:1,"i-carbon-cube":"",ma:"","flex-none":"","text-4xl":"",op30:""},Le={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Se=["src"],ze={flex:"","justify-end":""},Ue="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Ve="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",qe="https://github.com/",Ee="https://www.npmjs.com/package/",Ye=D({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(_){const f=_,l=C(()=>({...f.mod?.meta,...f.mod,...f.info})),{format:k}=Intl.NumberFormat(navigator.language||"en",{notation:"compact",maximumFractionDigits:1}),N=C(()=>k(l.value.stats?.stars||0)),a=C(()=>k(l.value.stats?.downloads||0)),i=H();return(u,p)=>{const y=z,v=J,d=me,$=G;return t(),I($,{p4:"",flex:"~ gap2"},{default:r(()=>[e("div",we,[A(u.$slots,"main",{},()=>[e("div",Ie,[_.mod.isPackageModule?(t(),I(y,{key:0,to:Ee+(l.value.npm||l.value.name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[h(b(l.value.name),1)]),_:1},8,["to"])):_.mod.entryPath?(t(),c("button",{key:1,role:"button",hover:"underline text-primary",onClick:p[0]||(p[0]=x=>j(i)(_.mod.entryPath))},b(l.value.name),1)):(t(),c("span",Ce,b(l.value.name),1)),A(u.$slots,"badge")]),l.value.description?(t(),c("div",{key:0,class:T(_.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},b(l.value.description),3)):g("",!0),p[3]||(p[3]=e("div",{"flex-auto":""},null,-1)),l.value.website?(t(),c("div",Me,[p[1]||(p[1]=e("span",{"i-carbon-link":"","flex-none":"","text-lg":"",op50:""},null,-1)),o(y,{to:l.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[h(b(l.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):g("",!0),l.value.github?(t(),c("div",Ne,[p[2]||(p[2]=e("span",{"i-carbon-logo-github":"","flex-none":"","text-lg":"",op50:""},null,-1)),o(y,{to:l.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[h(b(l.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):g("",!0)]),A(u.$slots,"items"),l.value.stats?(t(),c("div",Be,[l.value.stats.stars?(t(),c("div",je,[o(v,{icon:"carbon-star","flex-none":"","text-lg":""}),e("span",null,b(N.value),1)])):g("",!0),l.value.stats.downloads?(t(),c("div",De,[o(v,{icon:"carbon-download","flex-none":"","text-lg":""}),e("span",null,b(a.value),1)])):g("",!0)])):g("",!0),_.mod.timings?.setup?(t(),c("div",Oe,[o(d,{title:"Module Setup Time",flex:"~ items-center",duration:_.mod.timings.setup,factor:.5},{before:r(()=>[o(v,{icon:"carbon-time",mr2:"","flex-none":"","text-lg":"",op50:""})]),_:1},8,["duration"])])):g("",!0)]),e("div",Pe,[l.value.icon||_.mod.isPackageModule?(t(),c("div",Ae,[l.value.icon?(t(),c("img",{key:0,src:Ue+l.value.icon,alt:_.mod.name,ma:""},null,8,Te)):(t(),c("div",Fe))])):g("",!0),l.value.maintainers?.length&&_.maintainers?(t(),c("div",Le,[(t(!0),c(B,null,P(l.value.maintainers,x=>(t(),I(y,{key:x.name,target:"_blank",to:qe+x.github,title:x.name},{default:r(()=>[e("img",{src:Ve+x.github,"h-6":"","w-6":"","rounded-full":""},null,8,Se)]),_:2},1032,["to","title"]))),128))])):g("",!0),u.$slots.actions?(t(),c(B,{key:2},[p[4]||(p[4]=e("div",{"flex-auto":""},null,-1)),e("div",ze,[A(u.$slots,"actions")])],64)):g("",!0)])]),_:3})}}}),V=Object.assign(Ye,{__name:"ModuleItemBase"}),He={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ge={key:1,"mx--2":""},Je=["onClick"],Qe={key:2,"mx--2":""},Xe=["onClick"],Ze={op50:""},Ke={"text-green":""},Re={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},We={"text-sm":"",op50:""},et=D({__name:"ModuleItem",props:{mod:{}},setup(_){const f=_,l=C(()=>f.mod.info),k=C(()=>({...f.mod?.meta,...f.mod,...l.value})),N=Q();return(a,i)=>{const u=ne,p=z,y=de,v=V;return t(),I(v,{mod:_.mod,info:l.value},{items:r(()=>[_.mod.entryPath?(t(),c("div",He,[i[0]||(i[0]=e("span",{"i-carbon-folder-move-to":"","flex-none":"","text-lg":"",op50:""},null,-1)),o(u,{filepath:_.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):g("",!0),k.value.npm?(t(),I(y,{key:k.value.npm,"package-name":k.value.npm,options:{dev:!0}},{default:r(({info:d,update:$,state:x,id:s,restart:n})=>[x==="running"?(t(),I(p,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:s?"/modules/terminals":void 0,onClick:w=>s?N.value=s:void 0},{default:r(()=>[...i[1]||(i[1]=[e("span",{"i-carbon-circle-dash":"","flex-none":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])]),_:1},8,["to","onClick"])):x==="updated"?(t(),c("div",Ge,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},[...i[2]||(i[2]=[e("span",{"i-carbon-intent-request-active":"","flex-none":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)])],8,Je)])):d?.needsUpdate?(t(),c("div",Qe,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:w=>$()},[i[3]||(i[3]=e("span",{"i-carbon-intent-request-upgrade":"","flex-none":"","text-lg":"",op50:""},null,-1)),e("code",Ze,"v"+b(d.current),1),i[4]||(i[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Ke,"v"+b(d.latest),1)],8,Xe)])):d?.latest?(t(),c("div",Re,[i[5]||(i[5]=e("span",{"i-carbon-cube":"","flex-none":"","text-lg":"",op50:""},null,-1)),e("code",We,"v"+b(d.current),1)])):g("",!0)]),_:1},8,["package-name"])):g("",!0)]),_:1},8,["mod","info"])}}}),tt=Object.assign(et,{__name:"ModuleItem"}),nt=D({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(_,{emit:f}){const l=_,k=f,N=U(),a=C(()=>N.value.find(v=>v.name===l.item.npm)),i=C(()=>a.value&&a.value.isPackageModule),u=C(()=>a.value&&a.value.isPackageModule&&a.value.isUninstallable);async function p(v,d){const $=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,x=await $(await E(),v.npm,!0);oe(`modules:${d}`,{moduleName:v.npm}),x.commands&&await X.start(v,x,d)&&(Z.value.push({name:v.npm,info:v,processId:x.processId}),k("start"),await $(await E(),v.npm,!1))}const y={};return(v,d)=>{const $=ge,x=F,s=K,n=V;return t(),I(n,{mod:y,role:i.value?"":"button",info:_.item,mb2:"","h-full":"",class:T(i.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=w=>i.value?null:p(_.item,"install"))},pe({_:2},[i.value?{name:"badge",fn:r(()=>[o($,{n:"green",textContent:"Installed"}),u.value?(t(),I(s,{key:0,n:"sm green"},{trigger:r(({click:w})=>[o(x,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:m=>w()},null,8,["onClick"])]),default:r(()=>[o(x,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=w=>p(_.item,"uninstall"))},{default:r(()=>[...d[2]||(d[2]=[h(" Uninstall ",-1)])]),_:1})]),_:1})):g("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),ot=Object.assign(nt,{__name:"ModuleItemInstall"}),st={"h-full":"",flex:"~ col gap-4"},lt={flex:"~ items-center"},at={flex:"~ col","w-30":"","of-auto":""},it={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},rt={flex:"~ items-center gap-2"},ut={flex:"~ gap1","text-sm":"",op50:""},dt={key:0},ct={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},mt=D({__name:"ModuleInstallList",emits:["close"],setup(_,{emit:f}){const l=f,k=ce(),N=U(),a=["downloads","stars","updated","created"],i=O(!1),u=O(a[0]),p=O(!0),y={downloads:(s,n)=>s.stats.downloads-n.stats.downloads,stars:(s,n)=>s.stats.stars-n.stats.stars,created:(s,n)=>s.stats.createdAt-n.stats.createdAt,updated:(s,n)=>s.stats.publishedAt-n.stats.publishedAt},v=C(()=>k.value?.toSorted((s,n)=>y[u.value](s,n)*(i.value?1:-1))),d=O(""),$=C(()=>new se(k.value||[],{keys:["name","description","npm","category"],sortFn:(s,n)=>{const w=k.value?.[s.idx],m=k.value?.[n.idx];return w&&m?y[u.value](w,m)*(i.value?1:-1):s.score-n.score},threshold:.2})),x=C(()=>{let s=v.value;return p.value&&(s=(s||[]).filter(n=>!N.value.some(w=>w.name===n.name))),d.value?$.value.search(d.value).map(n=>n.item).filter(n=>s?.includes(n)):s});return(s,n)=>{const w=fe,m=F,L=J,R=K,W=xe,ee=ve,te=ot;return t(),c("div",st,[o(w,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),o(ee,{search:d.value,"onUpdate:search":n[2]||(n[2]=M=>d.value=M),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:r(()=>[o(R,{direction:"end",n:"sm primary"},{trigger:r(({click:M})=>[e("div",lt,[o(m,{icon:i.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=S=>i.value=!i.value)},null,8,["icon"]),o(m,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:S=>M()},{default:r(()=>[h(b(u.value)+" ",1),o(L,{icon:"carbon:chevron-down"})]),_:1},8,["onClick"])])]),default:r(()=>[e("div",at,[(t(),c(B,null,P(a,M=>o(m,{key:M,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:S=>u.value=M},{default:r(()=>[e("span",it,[h(b(M)+" ",1),u.value===M?(t(),I(L,{key:0,icon:"carbon:checkmark"})):g("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:r(()=>[e("div",rt,[o(W,{modelValue:p.value,"onUpdate:modelValue":n[1]||(n[1]=M=>p.value=M),n:"primary md"},{default:r(()=>[...n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])]),_:1},8,["modelValue"]),e("div",ut,[d.value||p.value?(t(),c("span",dt,b(x.value?.length)+" matched · ",1)):g("",!0),e("span",null,b(j(k)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",ct,[o(j(be),{class:"scroller",items:x.value,"item-size":200,"key-field":"name"},{default:r(({item:M})=>[o(te,{item:M,onStart:n[3]||(n[3]=S=>l("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),pt=Object.assign(mt,{__name:"ModuleInstallList"}),_t={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ft={capitalize:""},xt={op50:""},vt={flex:"~ gap-3",mt2:"","justify-end":""},gt=D({__name:"ModuleActionDialog",setup(_){const f=le(),l=H(),k={};return(N,a)=>{const i=V,u=ke,p=he,y=ye,v=ie,d=F,$=ae;return t(),I(j(X),null,{default:r(({resolve:x,args:s})=>[o($,{"model-value":!0,onClose:n=>x(!1)},{default:r(()=>[o(i,{mod:k,info:s[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",_t,[e("h2",{"text-xl":"",class:T(s[2]==="install"?"text-primary":"text-red")},[e("span",ft,b(s[2]),1),a[1]||(a[1]=h()),e("code",null,b(s[0].name),1),a[2]||(a[2]=h("? ",-1))],2),a[7]||(a[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),o(u,{code:s[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",xt,[a[3]||(a[3]=h(" Then your ",-1)),o(p,{role:"button",n:"primary",underline:"",onClick:a[0]||(a[0]=n=>j(l)(j(f)?._nuxtConfigFile)),textContent:"Nuxt config"}),a[4]||(a[4]=h(" will be updated as: ",-1))]),o(y,{from:s[1].configOriginal,to:s[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),a[8]||(a[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),h(". ")],-1)),e("div",vt,[o(v,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>[...a[5]||(a[5]=[h(" Please make sure to backup your project first. ",-1)])]),_:1}),o(d,{onClick:n=>x(!1)},{default:r(()=>[...a[6]||(a[6]=[h(" Cancel ",-1)])]),_:1},8,["onClick"]),o(d,{n:"solid",capitalize:"",class:T(s[2]==="install"?"n-primary":"n-red"),onClick:n=>x(!0)},{default:r(()=>[h(b(s[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),bt=Object.assign(gt,{__name:"ModuleActionDialog"}),kt={},ht={class:"markdown-body"};function yt(_,f){return t(),c("div",ht,[...f[0]||(f[0]=[e("template",null,[e("div",{class:"markdown-body"},[e("h1",null,"Modules"),e("p",null,[h("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),e("code",{"v-pre":""},"nuxt.config"),h(".")]),e("p",null,[h("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),h(" or install them directly inside the DevTools.")]),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")])])],-1)])])}const $t=re(kt,[["render",yt]]),wt={"h-full":"","w-full":"","of-auto":""},It={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},Ct=["src","alt"],Mt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},Nt={op75:""},Bt={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},jt="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Zt=D({__name:"modules",setup(_){const f=O(!1),l=U(),k=Q(),N=C(()=>l.value.filter(i=>i.isPackageModule)),a=C(()=>l.value.filter(i=>!i.isPackageModule));return ue(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{f.value=!0}}]),(i,u)=>{const p=tt,y=G,v=z,d=_e,$=F,x=pt,s=bt,n=$t,w=$e;return t(),c(B,null,[e("div",wt,[o(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${N.value.length}`},{default:r(()=>[(t(!0),c(B,null,P(N.value,m=>(t(),I(p,{key:m.name,mod:m},null,8,["mod"]))),128)),(t(!0),c(B,null,P("processInstallingModules"in i?i.processInstallingModules:j(Z),m=>(t(),I(v,{key:m.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:L=>k.value=m.processId},{default:r(()=>[o(y,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:r(()=>[e("div",It,[e("img",{src:jt+m.info.icon,alt:m.info.name,ma:""},null,8,Ct),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",Mt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",Nt,"Installing "+b(m.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),o(y,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:u[0]||(u[0]=m=>f.value=!0)},{default:r(()=>[...u[6]||(u[6]=[e("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),e("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])]),_:1})]),_:1},8,["description"]),a.value.length?(t(),I(d,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${a.value.length}`},{default:r(()=>[(t(!0),c(B,null,P(a.value,m=>(t(),c(B,{key:m.meta?.name||m.entryPath},[m.meta?.name||m.entryPath?(t(),I(p,{key:0,mod:m},null,8,["mod"])):g("",!0)],64))),128))]),_:1},8,["description"])):g("",!0),o(Y,{name:"fade-in"},{default:r(()=>[f.value?(t(),c("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=m=>f.value=!1)})):g("",!0)]),_:1}),o(Y,{name:"slide-in"},{default:r(()=>[f.value?(t(),c("div",Bt,[o($,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=m=>f.value=!1)}),o(x,{onClose:u[3]||(u[3]=m=>f.value=!1)})])):g("",!0)]),_:1}),o(s)]),o(w,null,{default:r(()=>[o(n)]),_:1})],64)}}});export{Zt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"#entry";import{J as t,Y as r,a0 as n}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{b as o}from"#entry";import{J as t,Y as r,a0 as n}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";const s={},a={relative:"","w-full":""};function c(e,l){return r(),t("div",a,[n(e.$slots,"default")])}const d=o(s,[["render",c]]);export{d as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{at as ne,a as ae,w as H,n as J,_ as P,au as U,av as se,aw as re,ax as ie,b as V,ay as le,az as ce,c as de,y as pe,z as ue,C as me,aA as E,v as ge}from"#entry";import{_ as _e}from"./nnavbar-b4ap0r8w.js";import{_ as q}from"./nlink-fgjzhevk.js";import{_ as K}from"./nsection-block-je23gs2w.js";import{_ as he}from"./ncode-block-pcw3yh3u.js";import{p as O,q as C,k as j,X as A,a4 as k,Y as t,$ as h,a3 as e,J as n,F as S,ah as I,a7 as M,ab as p,a1 as c,ac as x,u as g,a5 as B,z as ve,aj as fe,ad as D,a6 as be}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as xe}from"./help-fab-chg6ox1v.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{at as ne,a as ae,w as H,n as J,_ as P,au as U,av as se,aw as re,ax as ie,b as V,ay as le,az as ce,c as de,y as pe,z as ue,C as me,aA as E,v as ge}from"#entry";import{_ as _e}from"./nnavbar-b4ap0r8w.js";import{_ as q}from"./nlink-fgjzhevk.js";import{_ as K}from"./nsection-block-je23gs2w.js";import{_ as he}from"./ncode-block-pcw3yh3u.js";import{p as O,q as C,k as j,X as A,a4 as k,Y as t,$ as h,a3 as e,J as n,F as S,ah as I,a7 as M,ab as p,a1 as c,ac as x,u as g,a5 as B,z as ve,aj as fe,ad as D,a6 as be}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as xe}from"./help-fab-chg6ox1v.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";import"./nicon-title-he6hzgyb.js";import"./client-miiq4qin.js";const Y=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"optional",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"optional",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"optional",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"optional",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],we={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},ye=["onClick"],ke={key:0,"x-divider":""},$e={key:1,"x-divider":""},Te={flex:"~ gap-1 items-center",class:"px2 pt2",lg:"px4 py2"},Se={"w-full":"",p2:"",op75:""},Ce={key:1,m4:"",flex:"~ col gap-2"},Oe={flex:"~ gap-1 wrap items-center"},Ne={key:1},Me={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Ae=O({__name:"OpenGraphMissingTabs",props:{tags:{},matchedRouteFilepath:{}},setup(a){const _=a,i=C(()=>Y.filter(d=>!_.tags?.some(o=>o.name===d.name))),l=C(()=>{let d={};const o={};i.value.forEach(m=>{m.seoMeta?Object.assign(o,m.seoMeta):d=ne(d,m.head)});const w=[];if(Object.keys(o).length){const m=JSON.stringify(o,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");w.push(`useSeoMeta(${m})`)}if(Object.keys(d).length){const m=JSON.stringify(d,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");w.push(`useHead(${m})`)}return w.join(`
|
|
2
2
|
|
|
3
3
|
`)}),u=ae(),$=H(),b=["Missing Tags","Code Snippet"],v=j(b[0]);return(d,o)=>{const w=q,m=J,T=P,N=he,L=K;return i.value.length?(t(),A(L,{key:0,text:"Missing Tags",description:`${i.value.length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:h(()=>[e("div",we,[(t(),n(S,null,I(b,(s,r)=>e("button",{key:r,px4:"",py2:"",border:"r t base",hover:"bg-active",class:M(s===v.value?"":"border-b"),onClick:f=>v.value=s},[e("div",{class:M(s===v.value?"":"op30"),capitalize:""},p(s),3)],10,ye)),64)),o[3]||(o[3]=e("div",{border:"b base","flex-auto":""},null,-1))]),v.value===b[0]?(t(),A(m,{key:0,grid:"~ cols-[1fr] lg:cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:h(()=>[(t(!0),n(S,null,I(i.value,(s,r)=>(t(),n(S,{key:r},[r?(t(),n("div",ke)):k("",!0),r?(t(),n("div",$e)):k("",!0),e("div",Te,[o[4]||(o[4]=e("div",{"i-carbon-warning":"","text-orange":""},null,-1)),c(w,{"op-50":"",href:s.docs,target:"_blank",n:"orange"},{default:h(()=>[x(p(s.name),1)]),_:2},1032,["href"])]),e("div",Se,p(s.description),1)],64))),128))]),_:1})):(t(),n("div",Ce,[e("p",Oe,[c(T,{icon:"carbon-copy",n:"xs","px-2":"",onClick:o[0]||(o[0]=s=>g(u)(l.value,"open-graph-suggestion"))},{default:h(()=>[...o[5]||(o[5]=[x(" Copy ",-1)])]),_:1}),o[7]||(o[7]=x(" the following code snippet and paste it into your ",-1)),a.matchedRouteFilepath?(t(),A(T,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:o[1]||(o[1]=s=>g($)(a.matchedRouteFilepath))},{default:h(()=>[...o[6]||(o[6]=[x(" page component ",-1)])]),_:1})):(t(),n("span",Ne,"page component")),o[8]||(o[8]=x(" to full fill the missing tags. ",-1))]),c(m,{relative:"","n-code-block":""},{default:h(()=>[c(N,{code:l.value,lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),e("div",Me,[c(T,{icon:"carbon-copy",onClick:o[2]||(o[2]=s=>g(u)(l.value,"open-graph-suggestion"))},{default:h(()=>[...o[9]||(o[9]=[x(" Copy ",-1)])]),_:1})])]),_:1})]))]),_:1},8,["description"])):k("",!0)}}}),je=Object.assign(Ae,{__name:"OpenGraphMissingTabs"}),Ie={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},Be={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Le={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},Re={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},Fe={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},ze={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},De=O({__name:"SocialFacebook",props:{card:{}},setup(a){return(_,i)=>(t(),n("div",Ie,[e("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(a.card.image)})`})},null,4),e("div",Be,[e("div",Le,p(a.card.url),1),e("div",Re,[e("div",Fe,p(a.card.title),1),e("div",ze,p(a.card.description),1)])])]))}}),Ge=Object.assign(De,{__name:"SocialFacebook"}),Ee={class:"max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1",style:{"font-family":"TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"}},He={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},Je={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},Pe={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},Ue={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},Ve=O({__name:"SocialTwitter",props:{tags:{}},setup(a){const _=a,i=C(()=>U(_.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),l=C(()=>i.value.image?_.tags.find(u=>u.tag==="meta"&&u.name==="twitter:card")?.value||"summary_large_image":"summary");return(u,$)=>(t(),n("div",Ee,[e("div",{class:M(["cursor-pointer overflow-hidden leading-[1.3em]",l.value==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[l.value==="summary_large_image"?(t(),n("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(i.value.image)})`})},null,4)):(t(),n("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(i.value.image)})`})},null,4)),e("div",He,[e("div",Je,p(i.value.url),1),e("div",Pe,p(i.value.title),1),e("div",Ue,p(i.value.description),1)])],2)]))}}),qe=Object.assign(Ve,{__name:"SocialTwitter"}),Ke={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] bg-base shadow-md"},Ye={class:"break-words p-[10px] antialiased"},We={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},Xe={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},Qe={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},Ze=O({__name:"SocialLinkedin",props:{card:{}},setup(a){return(_,i)=>(t(),n("div",Ke,[e("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(a.card.image)})`})},null,4),e("div",Ye,[e("div",We,[e("div",Xe,p(a.card.title),1),e("div",Qe,p(a.card.url),1)])])]))}}),et=Object.assign(Ze,{__name:"SocialLinkedin"}),tt={class:"relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 bg-base py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26]"},ot={class:"pl-[10px] pr-[8px]"},nt={class:"text-[#3390ec] leading-normal underline"},at={class:"quote w-full flex"},st={class:"flex flex-col gap-1"},rt={key:0,class:"my-[3px] overflow-hidden rounded"},it=["src"],lt={class:"cursor-pointer text-sm text-[#3390ec]"},ct={class:"cursor-pointer text-sm"},dt={class:"cursor-pointer text-sm"},pt={class:"flex justify-end text-xs text-[#707579]"},ut=O({__name:"SocialTelegram",props:{card:{}},setup(a){const _=se(),i=re(ie(),"HH:mm");return(l,u)=>(t(),n("div",tt,[e("div",ot,[e("div",nt,p(a.card.url),1),e("div",at,[e("div",st,[a.card.image?(t(),n("div",rt,[e("img",{class:"h-full max-w-full w-full rounded object-cover",src:a.card.image},null,8,it)])):k("",!0),e("div",lt,[e("strong",null,p(g(_).hostname),1)]),e("div",ct,[e("strong",null,p(a.card.title),1)]),e("div",dt,p(a.card.description),1)])]),e("div",pt,[e("span",null,p(g(i)),1)])]),u[0]||(u[0]=e("svg",{width:"11",height:"20",viewBox:"0 0 11 20",xmlns:"http://www.w3.org/2000/svg",class:"absolute bottom-0 ml-[-8.4px] translate-y-px text-white"},[e("g",{transform:"translate(9 -14)","fill-rule":"evenodd"},[e("path",{id:"corner-fill",d:"M-6 16h6v17c-.193-2.84-.876-5.767-2.05-8.782-.904-2.325-2.446-4.485-4.625-6.48A1 1 0 01-6 16z",transform:"matrix(1 0 0 -1 0 49)",fill:"currentColor"})])],-1))]))}}),mt=Object.assign(V(ut,[["__scopeId","data-v-4566448e"]]),{__name:"SocialTelegram"}),gt={flex:"~ col","w-full":""},_t={flex:"~ wrap","w-full":"","flex-none":""},ht=["onClick"],vt={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},ft={key:0},bt={key:1},xt={key:2},wt={key:3},yt=O({__name:"SocialPreviewGroup",props:{tags:{}},setup(a){const _=a,i=["twitter","facebook","linkedin","telegram"],l=le("nuxt-devtools-social-preview-tab",i[0]),u=C(()=>U(_.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return($,b)=>{const v=Ge,d=qe,o=et,w=mt;return t(),n("div",gt,[e("div",_t,[(t(),n(S,null,I(i,(m,T)=>e("button",{key:T,px4:"",py2:"",border:"r base",hover:"bg-active",class:M(m===g(l)?"":"border-b"),onClick:N=>l.value=m},[e("div",{class:M(m===g(l)?"":"op30"),capitalize:""},p(m),3)],10,ht)),64)),b[0]||(b[0]=e("div",{border:"b base","flex-auto":""},null,-1))]),e("div",vt,[g(l)==="facebook"?(t(),n("div",ft,[c(v,{card:u.value},null,8,["card"])])):g(l)==="twitter"?(t(),n("div",bt,[c(d,{tags:a.tags},null,8,["tags"])])):g(l)==="linkedin"?(t(),n("div",xt,[c(o,{card:u.value},null,8,["card"])])):g(l)==="telegram"?(t(),n("div",wt,[c(w,{card:u.value},null,8,["card"])])):k("",!0)])])}}}),kt=Object.assign(yt,{__name:"SocialPreviewGroup"}),$t={},Tt={class:"markdown-body"};function St(a,_){return t(),n("div",Tt,[..._[0]||(_[0]=[e("template",null,[e("div",{class:"markdown-body"},[e("h1",null,"Open Graph"),e("p",null,[x("Nuxt provides several different ways to manage your meta tags using "),e("a",{href:"https://unhead.harlanzw.com/",target:"_blank",rel:"noopener"},[e("code",{"v-pre":""},"unhead")]),x(". Improve your Nuxt app’s SEO with powerful head config, composables and components.")]),e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/seo-meta",target:"_blank",rel:"noopener"},"Learn more on the documentation")]),e("hr"),e("p",null,"You can also find how open graph specs are defined in:"),e("ul",null,[e("li",null,[e("a",{href:"https://ogp.me/",target:"_blank",rel:"noopener"},"The Open Graph protocol")]),e("li",null,[e("a",{href:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started",target:"_blank",rel:"noopener"},"Twitter Cards")])])])],-1)])])}const Ct=V($t,[["render",St]]),Ot={grid:"~ lg:cols-2","h-full":"","w-full":"","of-hidden":""},Nt={"flex-auto":"","of-auto":""},Mt={"flex-none":"",flex:"~ gap2 items-center"},At={flex:"~ col"},jt={key:0,"x-divider":""},It={key:1,"x-divider":""},Bt={mr2:"",px4:"",py2:""},Vt=O({__name:"open-graph",setup(a){const _=j(0),i=ce(),l=de(async()=>(_.value,(await i.value?.resolveTags()).map(r=>{const f=r.props||{};return r.tag==="htmlAttrs"&&f.lang?{tag:"html",name:"lang",value:f.lang}:f.charset?{tag:"meta",name:"charset",value:f.charset}:{tag:r.tag,name:f.property??f.name??f.rel??r.tag,value:f.content??f.href??r.textContent??JSON.stringify(f)}})),[]),u=j(!0);function $(){_.value+=1}const b=pe(),v=ue(),d=j(""),o=me(),w=H();async function m(){d.value!==v.value.path&&b.value.push(d.value||"/")}const T=C(()=>d.value===v.value.path?[]:b.value.resolve(d.value||"/").matched),N=C(()=>{const s=o.value.find(r=>r.path===v.value?.matched?.[0]?.path);return s?.file||s?.meta?.file});function L(s){return Y.find(r=>r.name===s.name)?.docs}return E(v).toBeTruthy().then(s=>{d.value=s.path}),E(b).toBeTruthy().then(s=>{s.afterEach(()=>{ve(()=>{d.value=v.value.path,setTimeout($,200),setTimeout($,800)})})}),(s,r)=>{const f=ge,R=P,W=_e,G=q,X=J,Q=K,Z=je,ee=kt,te=Ct,oe=xe,F=fe("tooltip");return t(),n(S,null,[e("div",Ot,[e("div",Nt,[c(W,null,{search:h(()=>[c(f,{modelValue:d.value,"onUpdate:modelValue":r[0]||(r[0]=y=>d.value=y),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:M(["px-5 py-2",g(v)?.path===d.value?"":T.value.length?"text-green":"text-orange"]),onKeydown:be(m,["enter"])},null,8,["modelValue","class"])]),actions:h(()=>[e("div",Mt,[N.value?D((t(),A(R,{key:0,"text-lg":"",border:!1,icon:"carbon:launch",title:"Open file in editor",onClick:r[1]||(r[1]=y=>g(w)(N.value))},null,512)),[[F,"Open file in editor"]]):k("",!0),D(c(R,{"text-lg":"",border:!1,icon:"carbon:reset",title:"Refresh Data",onClick:$},null,512),[[F,"Refresh Data"]]),D(c(R,{"text-lg":"",border:!1,icon:u.value?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:r[2]||(r[2]=y=>u.value=!u.value)},null,8,["icon"]),[[F,"Toggle Preview"]])])]),_:1}),e("div",At,[c(Q,{text:"Tags",icon:"carbon:tag-group"},{default:h(()=>[c(X,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:h(()=>[(t(!0),n(S,null,I(g(l),(y,z)=>(t(),n(S,{key:z},[z?(t(),n("div",jt)):k("",!0),z?(t(),n("div",It)):k("",!0),e("div",Bt,[c(G,{op50:"",href:L(y),target:"_blank",n:"primary"},{default:h(()=>[x(p(y.name),1)]),_:2},1032,["href"])]),c(G,{href:String(y.value).match(/^https?:\/\//)?y.value:void 0,target:"_blank","w-full":"",p2:"","font-mono":"",n:"primary"},{default:h(()=>[x(p(y.value),1)]),_:2},1032,["href"])],64))),128))]),_:1})]),_:1}),c(Z,{tags:g(l),"matched-route-filepath":N.value},null,8,["tags","matched-route-filepath"])])]),u.value&&g(l)?.length?(t(),A(ee,{key:0,tags:g(l),"flex-none":"","border-base":"","lt-lg":"border-t",lg:"h-full w-140 border-l"},null,8,["tags"])):k("",!0)]),c(oe,null,{default:h(()=>[c(te)]),_:1})],64)}}});export{Vt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as M,A as z,V as E,ab as O,ac as P,a6 as F,e as q,h as G,ad as g,ae as k,af as H,q as K,ag as $,_ as J,i as U,j as W,E as X}from"#entry";import{u as Y,_ as Q}from"./state-modules-lzveckmy.js";import{u as Z}from"./state-components-8k7sf46m.js";import{p as h,q as A,X as v,Y as s,$ as n,J as p,u as o,a3 as e,a1 as i,ab as a,a4 as u,F as f,ac as l}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";import"./nbadge-d24jlq2b.js";import"./ncode-block-pcw3yh3u.js";import"./client-miiq4qin.js";import"./ncheckbox-eijyrwcq.js";const c="3.0.1-29365129.21c4610",tt={key:0},et={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p5:"",px5:"","md:px20":""},ot={flex:"~ col","mt-5":"","items-center":"","md:mt-20":""},nt={op40:""},st={flex:"~ gap2 wrap"},lt={key:5,"pointer-events-none":"","min-w-40":"","theme-card-lime":"",p4:"",flex:"~ auto gap-6"},it={grid:"~ cols-[auto_auto] gap-x-5 items-center"},ut={"text-right":""},rt={"text-right":""},at={"text-right":""},dt={"text-right":""},pt={flex:"~ col gap2"},mt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},xt={flex:"col gap-2",mxa:"",hidden:"","w-100":"","text-sm":"",op50:"","md:flex":""},vt={flex:"~ gap-1","items-center":""},ft={flex:"~ gap-1","items-center":""},jt=h({__name:"overview",setup(gt){const b=M(),m=z(),D=Z(),y=E(),j=Y(),V=O(),w=P(),B=F();function I(){W.value=!0,B.push("/")}const _=A(()=>b.value?.nuxt.vueApp.version),r=A(()=>b.value?.metrics.loading());function L(){X()}return(S,t)=>{const R=G,x=q,C=Q,N=K,d=J,T=U;return s(),v(T,{"h-screen":"","w-full":"",flex:""},{default:n(()=>[o(m)?(s(),p("div",et,[t[40]||(t[40]=e("div",{"flex-auto":""},null,-1)),e("div",ot,[i(x,{flex:"~","mt--10":"","items-center":"","justify-center":"",to:"https://devtools.nuxt.com/",target:"_blank"},{default:n(()=>[i(R,{"h-10":""})]),_:1}),e("button",{mb6:"",mt3:"","text-center":"","text-sm":"",flex:"~ gap-1 wrap",onClick:I},[t[0]||(t[0]=e("span",{op40:""}," Nuxt DevTools ",-1)),e("code",nt,"v"+a(o(c)),1),i(C,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),e("div",st,[i(x,{to:"https://nuxt.com",target:"_blank","theme-card-green":"",p4:"",flex:"~ col auto"},{default:n(()=>[t[1]||(t[1]=e("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1)),i(C,{"package-name":"nuxt",options:{dev:!0}})]),_:1}),_.value?(s(),v(x,{key:0,to:"https://vuejs.org",target:"_blank","theme-card-green":"",p4:"",flex:"~ col auto"},{default:n(()=>[t[2]||(t[2]=e("div",{"logos-vue":"","text-3xl":""},null,-1)),e("code",null,"v"+a(_.value),1)]),_:1})):u("",!0),o(m)?(s(),p(f,{key:1},[o(m)&&o(m).pages&&o(b)?(s(),v(x,{key:0,"min-w-40":"","theme-card-lime":"",p4:"",flex:"~ col auto",to:"/modules/pages"},{default:n(()=>[t[3]||(t[3]=e("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(V).length,"page")),1)]),_:1})):u("",!0),o(m)?(s(),v(x,{key:1,"min-w-40":"","theme-card-lime":"",p4:"",flex:"~ col auto",to:"/modules/components"},{default:n(()=>[t[4]||(t[4]=e("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(D).length,"component")),1)]),_:1})):u("",!0),o(m)&&o(y)?(s(),v(x,{key:2,"min-w-40":"","theme-card-yellow":"",p4:"",flex:"~ col auto",to:"/modules/imports"},{default:n(()=>[t[5]||(t[5]=e("div",{"carbon-function":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(y).imports.length,"import")),1)]),_:1})):u("",!0),o(m)?(s(),v(x,{key:3,"min-w-40":"","theme-card-purple":"",p4:"",flex:"~ col auto",to:"/modules/modules"},{default:n(()=>[t[6]||(t[6]=e("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(j).length,"module")),1)]),_:1})):u("",!0),o(m)?(s(),v(x,{key:4,"min-w-40":"","theme-card-teal":"",p4:"",flex:"~ col auto",to:"/modules/plugins"},{default:n(()=>[t[7]||(t[7]=e("div",{"carbon-plug":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(m).plugins.length,"plugin")),1)]),_:1})):u("",!0),r.value?(s(),p("div",lt,[t[12]||(t[12]=e("div",{"i-carbon-time-plot":"","flex-none":"","text-3xl":""},null,-1)),e("div",it,[r.value.ssrStart?(s(),p(f,{key:0},[t[8]||(t[8]=e("div",{"text-sm":""}," SSR to full load ",-1)),e("div",ut,a(o(k)(r.value.appLoad-r.value.ssrStart)),1)],64)):u("",!0),t[10]||(t[10]=e("div",{"text-sm":""}," Page load ",-1)),e("div",rt,a(o(k)(r.value.appLoad-r.value.appInit)),1),t[11]||(t[11]=e("div",{"text-sm":""}," Navigation ",-1)),e("div",at,a(o(k)(r.value.pageEnd-r.value.pageStart)),1),r.value.hmrStart?(s(),p(f,{key:1},[t[9]||(t[9]=e("div",{"text-sm":""}," HMR ",-1)),e("div",dt,a(o(k)(r.value.hmrEnd-r.value.hmrStart)),1)],64)):u("",!0)])])):u("",!0)],64)):u("",!0)]),e("div",pt,[o(H)?(s(),v(N,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:n(()=>[...t[13]||(t[13]=[l(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ",-1)])]),_:1})):u("",!0),e("button",{title:"Authorize",onClick:L},[("isDevAuthed"in S?S.isDevAuthed:o($))?u("",!0):(s(),v(N,{key:0,n:"orange5",icon:"i-carbon-locked","justify-center":""},{default:n(()=>[...t[14]||(t[14]=[l(" Access from an untrusted browser, some features are limited. Click to authorize now. ",-1)])]),_:1}))])]),e("div",mt,[t[16]||(t[16]=e("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[e("div",{"i-carbon-star":""}),l(" Star on GitHub ")],-1)),t[17]||(t[17]=e("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[e("div",{"i-carbon-data-enrichment":""}),l(" Ideas & Suggestions ")],-1)),t[18]||(t[18]=e("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[e("div",{"i-carbon-plan":""}),l(" Project Roadmap ")],-1)),t[19]||(t[19]=e("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[e("div",{"i-carbon-debug":""}),l(" Bug Reports ")],-1)),i(x,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:n(()=>[...t[15]||(t[15]=[e("div",{"i-carbon-settings-adjust":""},null,-1),l(" Settings ",-1)])]),_:1})]),t[41]||(t[41]=e("div",{"flex-auto":""},null,-1)),e("div",xt,[e("div",vt,[o(w)?(s(),p(f,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[20]||(t[20]=[l(" ⌘ Cmd ",-1)])]),_:1}),t[22]||(t[22]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[21]||(t[21]=[l(" K ",-1)])]),_:1})],64)):(s(),p(f,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[23]||(t[23]=[l(" Ctrl ",-1)])]),_:1}),t[25]||(t[25]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[24]||(t[24]=[l(" K ",-1)])]),_:1})],64)),t[26]||(t[26]=e("div",{"flex-auto":""},null,-1)),t[27]||(t[27]=l(" Open Command Palette ",-1))]),e("div",ft,[o(w)?(s(),p(f,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[28]||(t[28]=[l(" ⇧ Shift ",-1)])]),_:1}),t[31]||(t[31]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[29]||(t[29]=[l(" ⌥ Option ",-1)])]),_:1}),t[32]||(t[32]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[30]||(t[30]=[l(" D ",-1)])]),_:1})],64)):(s(),p(f,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[33]||(t[33]=[l(" Shift ",-1)])]),_:1}),t[36]||(t[36]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[34]||(t[34]=[l(" Alt ",-1)])]),_:1}),t[37]||(t[37]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[35]||(t[35]=[l(" D ",-1)])]),_:1})],64)),t[38]||(t[38]=e("div",{"flex-auto":""},null,-1)),t[39]||(t[39]=e("div",null,"Toggle DevTools",-1))])])])):(s(),p("div",tt," Loading... "))]),_:1})}}});export{jt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as j,_ as H,w as J,x as F,a as X,b as Y,y as Z,z as G,A as Q,B as ee,C as te,D as ne,r as oe,E as ae}from"#entry";import{_ as S}from"./nbadge-d24jlq2b.js";import{p as D,k as A,q as k,Z as se,J as o,X as w,Y as t,a3 as e,ab as N,$ as C,F as g,ah as T,a7 as L,am as re,a4 as R,a1 as v,ac as I,u as c,D as le,a6 as ue}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as z}from"./filepath-item-owlv864w.js";import{_ as ie}from"./nsection-block-je23gs2w.js";import{_ as de}from"./launch-page-l87i7ewv.js";import{_ as pe}from"./help-fab-chg6ox1v.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{v as j,_ as H,w as J,x as F,a as X,b as Y,y as Z,z as G,A as Q,B as ee,C as te,D as ne,r as oe,E as ae}from"#entry";import{_ as S}from"./nbadge-d24jlq2b.js";import{p as D,k as A,q as k,Z as se,J as o,X as w,Y as t,a3 as e,ab as N,$ as C,F as g,ah as T,a7 as L,am as re,a4 as R,a1 as v,ac as I,u as c,D as le,a6 as ue}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as z}from"./filepath-item-owlv864w.js";import{_ as ie}from"./nsection-block-je23gs2w.js";import{_ as de}from"./launch-page-l87i7ewv.js";import{_ as pe}from"./help-fab-chg6ox1v.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";import"./nicon-title-he6hzgyb.js";import"./nmarkdown-n6zsr15e.js";import"./client-miiq4qin.js";const ce={block:"","cursor-pointer":""},me={p2:""},_e=["onSubmit"],ve={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},he={key:1},fe=D({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(m,{emit:l}){const h=m,V=l,y=A([]),f=k(()=>{const r=$(h.route.path);return y.value=Array.from({length:r.length},()=>""),r});function $(r){return r.split(/(:\w+[?*]?(?:\(\))?)/).filter(Boolean).map(p=>p[0]===":"?p.replace(/\(\)$/,"?"):p)}const x=k(()=>f.value.map((r,p)=>r[0]===":"?y.value[p]:r).join("").replace(/\/+/g,"/")),a=k(()=>h.route.path.includes(":"));function s(){V("navigate",x.value)}return(r,p)=>{const _=j,n=H,u=se("VDropdown");return a.value?(t(),w(u,{key:1},{popper:C(({hide:b})=>[e("div",me,[e("form",{flex:"~ col",onSubmit:re(()=>{s(),b()},["prevent"])},[a.value?(t(),o(g,{key:0},[p[0]||(p[0]=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),e("div",ve,[(t(!0),o(g,null,T(f.value,(i,d)=>(t(),o(g,{key:d},[i[0]===":"?(t(),w(_,{key:0,modelValue:y.value[d],"onUpdate:modelValue":B=>y.value[d]=B,"w-20":"","n-sm":"",placeholder:i.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(t(),o("span",he,N(i),1))],64))),128))])],64)):R("",!0),v(n,{type:"submit",block:"",n:"primary"},{default:C(()=>[...p[1]||(p[1]=[I(" Navigate ",-1)])]),_:1})],40,_e)])]),default:C(()=>[e("code",ce,[(t(!0),o(g,null,T(f.value,(b,i)=>(t(),o("span",{key:i,class:L(b[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},N(b[0]===":"?b.slice(1):b),3))),128))])]),_:1})):(t(),o("button",{key:0,onClick:s},[e("code",null,N(m.route.path),1)]))}}}),ge=Object.assign(fe,{__name:"RoutePathItem"}),ye={"max-w-full":"","of-auto":""},xe={"w-full":""},be={"w-20":"","pr-1":""},ke={flex:"","items-center":"","justify-end":""},we={"text-sm":""},$e={flex:"inline gap3","items-center":""},Ce={flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},Ne=["onClick"],Re=["onClick"],Pe={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Ve={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ie={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Te={key:0},Be=["onClick"],Ee=D({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(m){const l=m,h=J(),V=F(),y=X(),f=k(()=>[...l.pages].sort((a,s)=>a.path.localeCompare(s.path)));function $(a){const s=l.layouts.find(r=>r.name===a);s&&h(s.file)}function x(a){if(typeof a=="string")return V.value?.middleware.find(s=>s.name===a)?.path}return(a,s)=>{const r=S,p=ge,_=z;return t(),o("div",ye,[e("table",xe,[s[4]||(s[4]=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1)),e("tbody",null,[(t(!0),o(g,null,T(f.value,n=>(t(),o("tr",{key:n.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",be,[e("div",ke,[m.matched.find(u=>u.name===n.name)?(t(),w(r,{key:0,n:"green",title:"active",textContent:"active"})):m.matchedPending.find(u=>u.name===n.name)?(t(),w(r,{key:1,n:"teal",title:"next",textContent:"next"})):R("",!0)])]),e("td",we,[e("div",$e,[v(p,{route:n,class:L(m.matched.find(u=>u.name===n.name)?"text-primary":m.matchedPending.find(u=>u.name===n.name)?"text-teal":""),"ws-nowrap":"",onNavigate:s[0]||(s[0]=u=>a.$emit("navigate",u))},null,8,["route","class"]),e("div",Ce,[n.file||n.meta?.file?(t(),o("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:u=>c(h)(n.file||n.meta?.file)},[...s[2]||(s[2]=[e("div",{"i-carbon-script-reference":""},null,-1)])],8,Ne)):R("",!0),n.file||n.meta?.file?(t(),o("button",{key:1,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:u=>c(y)(n.file||n.meta?.file)},[...s[3]||(s[3]=[e("div",{"i-carbon-copy":""},null,-1)])],8,Re)):R("",!0)])])]),e("td",Pe,N(n.name),1),e("td",Ve,[v(_,{filepath:x(n.meta.middleware),override:`${n.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ie,[n.meta.layout===!1?(t(),o("span",Te,"-")):n.meta.layout?(t(),o("button",{key:1,onClick:u=>$(n.meta.layout)},N(n.meta.layout),9,Be)):(t(),o("button",{key:2,"text-sm":"",op15:"",onClick:s[1]||(s[1]=u=>$("default"))}," (default) "))])]))),128))])])])}}}),Ae=Object.assign(Ee,{__name:"RoutesTable"}),De={},Le={class:"markdown-body"};function Me(m,l){return t(),o("div",Le,[...l[0]||(l[0]=[e("template",null,[e("div",{class:"markdown-body"},[e("h1",null,"Pages"),e("p",null,[I("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",{"v-pre":""},"~/pages/"),I(" directory.")]),e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")]),e("hr"),e("h1",null,"Middlewares"),e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route."),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")])])],-1)])])}const je=Y(De,[["render",Me]]),Fe={key:0,"h-full":"","of-auto":""},Se={border:"b base",flex:"~ col gap1","n-navbar-glass":"",px4:"",py3:""},ze={"font-mono":""},Oe={key:1,op50:""},Ue={key:0,"text-orange":"",op75:""},Ke={key:1,op50:""},We={"min-h-14":""},qe={key:1,class:"py-4 text-center"},He={"w-full":""},Je={mr1:""},lt=D({__name:"pages",setup(m){const l=Z(),h=G(),V=Q(),y=F(),f=ee(),$=te(),x=k(()=>y.value?.middleware||[]),a=A(""),s=A(0),r=k(()=>(x.value,a.value,f.value,s.value,l.value?.currentRoute?.value?.path));le(()=>{h.value&&(a.value=l.value?.currentRoute?.value?.path),l.value?.beforeEach(i=>{a.value=i.fullPath}),l.value?.afterEach(i=>{a.value=i.fullPath})});async function p(){a.value!==l.value?.currentRoute?.value?.path&&l.value.push(a.value||"/")}const _=k(()=>l.value.resolve(a.value||"/").matched);function n(i){l.value.push(i),a.value=i}const u=ne(),b=k(()=>`./${u===4?"app/":""}pages/index.vue`);return(i,d)=>{const B=j,M=Ae,E=ie,O=S,U=z,K=de,W=je,q=pe;return t(),o(g,null,[c(V)?.pages&&c(l)?(t(),o("div",Fe,[e("div",Se,[e("div",null,[r.value!==a.value?(t(),o(g,{key:0},[d[1]||(d[1]=e("span",{op50:""},"Navigate from ",-1)),e("span",ze,N(r.value),1),d[2]||(d[2]=e("span",{op50:""}," to ",-1))],64)):(t(),o("span",Oe,"Current route"))]),v(B,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=P=>a.value=P),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:L(r.value===a.value?"":_.value.length?"text-green":"text-orange"),onKeydown:ue(p,["enter"])},null,8,["modelValue","class"]),e("div",null,[r.value!==a.value?(t(),o(g,{key:0},[d[3]||(d[3]=e("span",null,[I("Press "),e("b",{"font-bold":""},"Enter"),I(" to navigate")],-1)),_.value.length?R("",!0):(t(),o("span",Ue," (no match)"))],64)):(t(),o("span",Ke,"Edit path above to navigate"))])]),v(E,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:C(()=>[e("div",We,[_.value.length?(t(),w(M,{key:0,pages:_.value,layouts:c(f)||[],matched:c(h).matched,"matched-pending":_.value,onNavigate:n},null,8,["pages","layouts","matched","matched-pending"])):(t(),o("div",qe,[...d[4]||(d[4]=[e("span",{op50:""},"No routes matched",-1)])]))])]),_:1}),v(E,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${c($).length} routes registered in your application`,padding:"pr5"},{default:C(()=>[v(M,{pages:c($),layouts:c(f)||[],matched:c(h).matched,"matched-pending":_.value,onNavigate:n},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),x.value.length?(t(),w(E,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${x.value.length} middleware registered in your application`,padding:"px13"},{default:C(()=>[e("table",He,[d[5]||(d[5]=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1)),(t(!0),o(g,null,T(x.value,P=>(t(),o("tr",{key:P.path,"h-7":""},[e("td",null,[e("span",Je,N(P.name),1),P.global?(t(),w(O,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):R("",!0)]),e("td",null,[v(U,{filepath:P.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):R("",!0)])):(t(),w(K,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:`Create ${b.value} to enable routing`,actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in i?i.rpc:c(oe)).runWizard(await("ensureDevAuthToken"in i?i.ensureDevAuthToken:c(ae))(),"enablePages")}}]},null,8,["description","actions"])),v(q,null,{default:C(()=>[v(W)]),_:1})],64)}}});export{lt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as h}from"./state-editor-kisl1jyp.js";import{p as k,J as i,Y as t,F as $,ah as N,X as f,$ as a,a0 as B,a2 as w,a3 as d,q as b,aj as O,a4 as m,a1 as n,u as j,ad as F,ac as V}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as E}from"./nsection-block-je23gs2w.js";import{b as G,f as P,_ as R}from"#entry";import{_ as A}from"./help-fab-chg6ox1v.js";import"./data-schema-button-hqryewml.js";import"./nicon-title-he6hzgyb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{_ as h}from"./state-editor-kisl1jyp.js";import{p as k,J as i,Y as t,F as $,ah as N,X as f,$ as a,a0 as B,a2 as w,a3 as d,q as b,aj as O,a4 as m,a1 as n,u as j,ad as F,ac as V}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as E}from"./nsection-block-je23gs2w.js";import{b as G,f as P,_ as R}from"#entry";import{_ as A}from"./help-fab-chg6ox1v.js";import"./data-schema-button-hqryewml.js";import"./nicon-title-he6hzgyb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";const H={key:0,flex:"~ col gap-1"},K={key:1,mt2:"",px4:"",italic:"",op35:""},T=k({__name:"StateGroup",props:{state:{},revision:{},prefix:{default:""}},setup(o){return(e,r)=>{const l=h;return t(),i("div",null,[o.state&&Object.keys(o.state).length>0?(t(),i("div",H,[(t(!0),i($,null,N(o.state,(u,s)=>(t(),f(l,{key:s,revision:o.revision,state:u,name:s.startsWith(o.prefix)?s.slice(o.prefix.length):s},{actions:a(c=>[B(e.$slots,"actions",w({ref_for:!0},c))]),_:3},8,["revision","state","name"]))),128))])):(t(),i("div",K," No data "))])}}}),q=Object.assign(T,{__name:"StateGroup"}),J={},L={class:"markdown-body"};function W(o,e){return t(),i("div",L,[...e[0]||(e[0]=[d("template",null,[d("div",{class:"markdown-body"},[d("h1",null,"State & Async Data"),d("p",null,"// TODO")])],-1)])])}const X=G(J,[["render",W]]),Y={key:0},at=k({__name:"payload",setup(o){const e=P(),r=b(()=>e.value?.nuxt.payload),l=b(()=>e.value?.revision.value);async function u(s){await e.value?.nuxt.hooks.callHookParallel("app:data:refresh",s)}return(s,c)=>{const v=q,p=E,x=R,S=h,g=X,D=A,C=O("tooltip");return t(),i($,null,[j(e)?(t(),i("div",Y,[n(p,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[n(v,{state:r.value.state,revision:l.value,prefix:"$s"},null,8,["state","revision"])]),_:1}),n(p,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[n(x,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:c[0]||(c[0]=y=>u())},{default:a(()=>[...c[1]||(c[1]=[V(" Re-fetch all data ",-1)])]),_:1})]),default:a(()=>[n(v,{state:r.value.data,revision:l.value},{actions:a(({isOpen:y,name:_})=>[y&&_?F((t(),f(x,{key:0,title:`Re-fetch '${_}'`,icon:"carbon-recycle",border:!1,onClick:z=>u([_])},null,8,["title","onClick"])),[[C,`Re-fetch '${_}'`,void 0,{bottom:!0}]]):m("",!0)]),_:1},8,["state","revision"])]),_:1}),r.value.functions&&Object.keys(r.value.functions).length?(t(),f(p,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions"},{default:a(()=>[n(S,{"ml--6":"",state:r.value.functions,revision:l.value},null,8,["state","revision"])]),_:1})):m("",!0)])):m("",!0),n(D,null,{default:a(()=>[n(g)]),_:1})],64)}}});export{at as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as r}from"#entry";import{u as c,m}from"./vue-devtools-hb1vi95m.js";import{p,J as i,Y as e,X as o,u as n,$ as _,ac as u}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{F as r}from"#entry";import{u as c,m}from"./vue-devtools-hb1vi95m.js";import{p,J as i,Y as e,X as o,u as n,$ as _,ac as u}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";import"./vue-virtual-scroller.esm-b0ym3ct8.js";const l={class:"h-full w-full"},v=p({__name:"pinia",setup(f){const{connected:s}=c();return(d,t)=>{const a=r;return e(),i("div",l,[n(s)?(e(),o(n(m),{key:0})):(e(),o(a,{key:1},{default:_(()=>[...t[0]||(t[0]=[u(" Connecting.... ",-1)])]),_:1}))])}}});export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./nbadge-d24jlq2b.js";import{_ as D}from"./filepath-item-owlv864w.js";import{_ as k}from"./duration-display-cjpkh71u.js";import{A as B,a3 as H,I,b as P,x as V,f as j}from"#entry";import{p as v,q as h,J as m,Y as s,a3 as n,a1 as l,a4 as _,ab as C,$ as d,X as u,Z as F,a0 as T,ac as x,F as b,ah as E,a7 as O}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as W}from"./nsection-block-je23gs2w.js";import{_ as A}from"./help-fab-chg6ox1v.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{_ as S}from"./nbadge-d24jlq2b.js";import{_ as D}from"./filepath-item-owlv864w.js";import{_ as k}from"./duration-display-cjpkh71u.js";import{A as B,a3 as H,I,b as P,x as V,f as j}from"#entry";import{p as v,q as h,J as m,Y as s,a3 as n,a1 as l,a4 as _,ab as C,$ as d,X as u,Z as F,a0 as T,ac as x,F as b,ah as E,a7 as O}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as W}from"./nsection-block-je23gs2w.js";import{_ as A}from"./help-fab-chg6ox1v.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";import"./nicon-title-he6hzgyb.js";const L={flex:"~ gap2","items-center":""},M={w8:"","text-right":"","text-sm":"",op25:""},Y={key:0,"flex-auto":"","text-right":""},q=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(e){const t=e,a=B(),c=h(()=>H(t.plugin.src,a.value?.rootDir||"").path);return(f,p)=>{const o=S,r=D,i=k;return s(),m("div",L,[n("div",M,C(e.index),1),l(r,{filepath:t.plugin.src,subpath:!0},{default:d(()=>[n("div",null,[c.value.startsWith("#")?(s(),u(o,{key:0,n:"rose",textContent:"virtual"})):c.value.startsWith(".")?_("",!0):(s(),u(o,{key:1,n:"gray",textContent:"module"})),e.plugin.mode==="server"?(s(),u(o,{key:2,n:"teal",textContent:"server"})):_("",!0),e.plugin.mode==="client"?(s(),u(o,{key:3,n:"orange",textContent:"client"})):_("",!0)])]),_:1},8,["filepath"]),e.plugin.metric?.duration!=null?(s(),m("div",Y,[l(i,{duration:e.plugin.metric?.duration,factor:10},null,8,["duration"])])):_("",!0)])}}}),z=Object.assign(q,{__name:"PluginItem"}),J={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},R={flex:"~ items-center gap-1","font-bold":""},X=v({__name:"HelpTip",props:{title:{},icon:{}},setup(e){return(t,a)=>{const c=I,f=F("ContentSlot");return s(),m("div",J,[n("div",R,[e.icon?(s(),u(c,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):_("",!0),n("div",null,C(e.title),1)]),n("div",null,[T(t.$slots,"default",{},()=>[l(f,{use:t.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),Z=Object.assign(X,{__name:"HelpTip"}),G={};function K(e,t){const a=Z;return s(),u(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:d(()=>[T(e.$slots,"default")]),_:3})}const Q=Object.assign(P(G,[["render",K]]),{__name:"HelpTipPerformance"}),U={},tt={class:"markdown-body"},nt={class:"markdown-body"};function et(e,t){const a=Q;return s(),m("div",tt,[n("template",null,[n("div",nt,[t[1]||(t[1]=n("h1",null,"Plugins",-1)),t[2]||(t[2]=n("p",null,[x("Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the "),n("code",{"v-pre":""},"plugins/"),x(" directory and they will be automatically imported and registered.")],-1)),l(a,null,{default:d(()=>[...t[0]||(t[0]=[x(" Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. ",-1)])]),_:1}),t[3]||(t[3]=n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])])])}const ot=P(U,[["render",et]]),st={pt4:""},it={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},gt=v({__name:"plugins",setup(e){const t=V(),a=j(),c=h(()=>{const p=t.value?.plugins||[],o=a.value?.metrics.clientPlugins()||[];return p.map(r=>{const i=typeof r=="string"?{src:r}:r;return{...i,metric:o.find(g=>g.src===i.src||g.src.startsWith(i.src))}})}),f=h(()=>{const p=a.value?.metrics.clientPlugins()||[],o=Math.min(...p.map(i=>i.start));return Math.max(...p.map(i=>i.end))-o});return(p,o)=>{const r=z,i=k,g=W,w=ot,N=A;return s(),m(b,null,[l(g,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${c.value.length}`},{default:d(()=>[n("div",st,[(s(!0),m(b,null,E(c.value,(y,$)=>(s(),u(r,{key:y.src,plugin:y,index:$+1,"ml--4":"","border-base":"",py2:"",class:O($?"border-t":"")},null,8,["plugin","index","class"]))),128)),n("div",it,[o[0]||(o[0]=n("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1)),o[1]||(o[1]=n("span",{op50:""},"Total execution time:",-1)),l(i,{duration:f.value,factor:10},null,8,["duration"])])])]),_:1},8,["description"]),l(N,null,{default:d(()=>[l(w)]),_:1})],64)}}});export{gt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as m,w as c,F as d}from"#entry";import{u as f,f as _}from"./vue-devtools-hb1vi95m.js";import{p as v,J as C,Y as n,X as l,u as o,$ as E,ac as I}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{f as m,w as c,F as d}from"#entry";import{u as f,f as _}from"./vue-devtools-hb1vi95m.js";import{p as v,J as C,Y as n,X as l,u as o,$ as E,ac as I}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";import"./vue-virtual-scroller.esm-b0ym3ct8.js";const k={class:"h-full w-full"},N=v({__name:"render-tree",setup(x){const{connected:a}=f(),t=m(),p=c();function s(r){r?t.value.devtools.open():t.value.devtools.close()}return(r,e)=>{const i=d;return n(),C("div",k,[o(a)?(n(),l(o(_),{key:0,onOnInspectComponentStart:e[0]||(e[0]=u=>s(!1)),onOnInspectComponentEnd:e[1]||(e[1]=u=>s(!0)),onOpenInEditor:o(p)},null,8,["onOpenInEditor"])):(n(),l(i,{key:1},{default:E(()=>[...e[2]||(e[2]=[I(" Connecting.... ",-1)])]),_:1}))])}}});export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as x}from"./state-editor-kisl1jyp.js";import{_ as b}from"./nsection-block-je23gs2w.js";import{b as y,f as C,bn as k}from"#entry";import{J as u,Y as l,a3 as e,ac as p,p as w,q as c,a4 as N,a1 as t,u as m,$ as i,F as R}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as T}from"./help-fab-chg6ox1v.js";import"./data-schema-button-hqryewml.js";import"./nicon-title-he6hzgyb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-
|
|
1
|
+
import{_ as x}from"./state-editor-kisl1jyp.js";import{_ as b}from"./nsection-block-je23gs2w.js";import{b as y,f as C,bn as k}from"#entry";import{J as u,Y as l,a3 as e,ac as p,p as w,q as c,a4 as N,a1 as t,u as m,$ as i,F as R}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as T}from"./help-fab-chg6ox1v.js";import"./data-schema-button-hqryewml.js";import"./nicon-title-he6hzgyb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-kbr5sp48.js";const B={},V={class:"markdown-body"};function D(d,n){return l(),u("div",V,[...n[0]||(n[0]=[e("template",null,[e("div",{class:"markdown-body"},[e("h1",null,"Runtime Configs"),e("p",null,"Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables."),e("p",null,[p("In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your "),e("code",{"v-pre":""},"nuxt.config.js"),p(" file, or check more details in the documentation.")]),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")])])],-1)])])}const F=y(B,[["render",D]]),P={key:0},Y=w({__name:"runtime-configs",setup(d){const n=C(),_=k(),f=c(()=>n.value?.nuxt.payload),a=c(()=>n.value?.revision.value),v=c(()=>{const o={..._.value};return delete o.public,delete o.app,o});return(o,S)=>{const s=x,r=b,g=F,h=T;return l(),u(R,null,[m(n)?(l(),u("div",P,[t(r,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:i(()=>[t(s,{state:m(n).app.appConfig,revision:a.value},null,8,["state","revision"])]),_:1}),t(r,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:i(()=>[t(s,{state:f.value.config?.public,revision:a.value},null,8,["state","revision"])]),_:1}),t(r,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:i(()=>[t(s,{state:v.value,revision:a.value,readonly:""},null,8,["state","revision"])]),_:1})])):N("",!0),t(h,null,{default:i(()=>[t(g)]),_:1})],64)}}});export{Y as default};
|