@nuxt/devtools 1.3.2 → 1.3.4
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 +12 -7
- package/dist/chunks/vite-inspect.mjs +1 -1
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +25 -26
- package/dist/client/404.html +25 -26
- package/dist/client/_nuxt/{DTf74veE.js → 6wcy4DsH.js} +1 -1
- package/dist/client/_nuxt/{DDnrbwm6.js → 8B46VhQd.js} +10 -10
- package/dist/client/_nuxt/{D7gBCge-.js → 8SMg7xCe.js} +1 -1
- package/dist/client/_nuxt/{nd9mx79B.js → 98R48OH2.js} +1 -1
- package/dist/client/_nuxt/{CfjSiY3T.js → B-sCWvv9.js} +1 -1
- package/dist/client/_nuxt/B29KOOGn.js +9 -0
- package/dist/client/_nuxt/{CJU5ujxD.js → B894X8py.js} +1 -1
- package/dist/client/_nuxt/{hXtXgLSE.js → B8ZbBSrc.js} +1 -1
- package/dist/client/_nuxt/{DQm4bOV6.js → BFLTkFCL.js} +1 -1
- package/dist/client/_nuxt/{BL_hfvyy.js → BFm6EJTU.js} +1 -1
- package/dist/client/_nuxt/{BO-iudyo.js → BKePb5M9.js} +1 -1
- package/dist/client/_nuxt/BKjxjBjR.js +1 -0
- package/dist/client/_nuxt/{BVJlJdda.js → BYuD4knm.js} +1 -1
- package/dist/client/_nuxt/{D847XyuR.js → BZs3jgFa.js} +1 -1
- package/dist/client/_nuxt/{BVCgwITN.js → Ba3iaRF0.js} +2 -2
- package/dist/client/_nuxt/{C8GUE1SK.js → BcsunUHc.js} +1 -1
- package/dist/client/_nuxt/{B-HJZUhU.js → BdeOTENY.js} +1 -1
- package/dist/client/_nuxt/{BfqSh0jD.js → Bj_XrxMu.js} +1 -1
- package/dist/client/_nuxt/{BeLKwQPd.js → BmiNF6l-.js} +1 -1
- package/dist/client/_nuxt/{DZg4WwSa.js → BoP7AKy2.js} +1 -1
- package/dist/client/_nuxt/{BGq4KZyx.js → Br6ll-O0.js} +1 -1
- package/dist/client/_nuxt/{CYVTKYED.js → BulALiVC.js} +1 -1
- package/dist/client/_nuxt/{V_y36BGi.js → Bxkoe-BC.js} +1 -1
- package/dist/client/_nuxt/{D44vw0ad.js → C54vwF0J.js} +1 -1
- package/dist/client/_nuxt/C8ESOK3J.js +30 -0
- package/dist/client/_nuxt/{DxtaXLVv.js → CBZOn9Tq.js} +1 -1
- package/dist/client/_nuxt/{Cri_jq9f.js → CDfEhAL9.js} +1 -1
- package/dist/client/_nuxt/{Dm8mUwGL.js → CGj_8s-I.js} +1 -1
- package/dist/client/_nuxt/{4DrMDvOf.js → CHQ52sTw.js} +1 -1
- package/dist/client/_nuxt/{BX8u6kVi.js → CIgTPfXa.js} +1 -1
- package/dist/client/_nuxt/{C41DfgCv.js → CO6YgqHh.js} +1 -1
- package/dist/client/_nuxt/{Bwpf36Bl.js → CUJNw4nr.js} +1 -1
- package/dist/client/_nuxt/{Dyh3t1OB.js → CUytAwsx.js} +1 -1
- package/dist/client/_nuxt/{D26FlHPL.js → CYSOmuwz.js} +1 -1
- package/dist/client/_nuxt/{BxZrC5KW.js → Cao9Hf6d.js} +1 -1
- package/dist/client/_nuxt/CeyWeT92.js +1032 -0
- package/dist/client/_nuxt/{s0KB5W3i.js → Cn5ttfU_.js} +1 -1
- package/dist/client/_nuxt/{BhuDhIKJ.js → CpJRPiL9.js} +1 -1
- package/dist/client/_nuxt/CrghN-Ad.js +2 -0
- package/dist/client/_nuxt/{l2Y-wpZG.js → CyeATGho.js} +2 -2
- package/dist/client/_nuxt/{CAWcj-Fr.js → D-4ohUPA.js} +1 -1
- package/dist/client/_nuxt/{BZAoIDF4.js → D3VgjIse.js} +2 -7
- package/dist/client/_nuxt/{8icePJ4I.js → D5WHU7S-.js} +1 -1
- package/dist/client/_nuxt/{DTjbdWHx.js → D6rOzE__.js} +1 -1
- package/dist/client/_nuxt/{B-hub2K2.js → D7I2o642.js} +1 -1
- package/dist/client/_nuxt/D9GqCGb7.js +100 -0
- package/dist/client/_nuxt/{_hj05-RZ.js → DBLkZRmC.js} +1 -1
- package/dist/client/_nuxt/{CQ4DIexe.js → DI2S-mmO.js} +1 -1
- package/dist/client/_nuxt/{D1Dg62su.js → DL0CET1h.js} +1 -1
- package/dist/client/_nuxt/DNH9VLI7.js +43 -0
- package/dist/client/_nuxt/{DGIjOFdj.js → DNTHL55G.js} +1 -1
- package/dist/client/_nuxt/{D_ZAQadg.js → DT3-Im-G.js} +1 -1
- package/dist/client/_nuxt/{CJ4574JA.js → DT7g2OtK.js} +1 -1
- package/dist/client/_nuxt/DZHRk8T6.js +1 -0
- package/dist/client/_nuxt/{D9bWLJbD.js → Da5JKEgm.js} +1 -1
- package/dist/client/_nuxt/DhzPY0Bk.js +1 -0
- package/dist/client/_nuxt/DotVwsdv.js +9 -0
- package/dist/client/_nuxt/{C_mHwna3.js → JMRChio8.js} +1 -1
- package/dist/client/_nuxt/{BZrBobni.js → LSJkDbxe.js} +1 -1
- package/dist/client/_nuxt/{NCodeBlock.Bcfh0aRP.css → NCodeBlock.BJ-XAY5s.css} +1 -1
- package/dist/client/_nuxt/NSectionBlock.Dnwb6MN5.css +1 -0
- package/dist/client/_nuxt/{CnDX42ER.js → QZOV8EJp.js} +1 -1
- package/dist/client/_nuxt/aYYjZ8bg.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/705c4cfa-d5c7-43a4-9f41-3c069a80d514.json +1 -0
- package/dist/client/_nuxt/entry.CuU2sB_i.css +1 -0
- package/dist/client/_nuxt/error-404.CdZ-8tbX.css +1 -0
- package/dist/client/_nuxt/error-500.4KK_ddFR.css +1 -0
- package/dist/client/_nuxt/{CQ0ZKsih.js → mjGmx9GM.js} +2 -2
- package/dist/client/_nuxt/{73fsk-_M.js → oNeXSGv8.js} +1 -1
- package/dist/client/_nuxt/{C49LnR7I.js → p_veFBpZ.js} +1 -1
- package/dist/client/_nuxt/terminals.dNTO8Cf0.css +1 -0
- package/dist/client/_nuxt/{WIBjn-aJ.js → u_lBCHfa.js} +1 -1
- package/dist/client/_nuxt/{CBxMqsuL.js → z73YSsxO.js} +1 -1
- package/dist/client/index.html +25 -26
- package/dist/module.json +2 -2
- package/dist/runtime/function-metrics-helpers.d.ts +1 -1
- package/dist/runtime/{function-metrics-helpers.mjs → function-metrics-helpers.js} +1 -1
- package/dist/runtime/plugins/{devtools.client.mjs → devtools.client.js} +1 -1
- package/dist/runtime/plugins/view/client.d.ts +1 -1
- package/dist/runtime/plugins/view/{client.mjs → client.js} +2 -2
- package/dist/runtime/plugins/view/state.d.ts +1 -1
- package/dist/runtime/plugins/view/{state.mjs → state.js} +1 -1
- package/dist/runtime/settings.d.ts +2 -2
- package/dist/runtime/shared/hooks.d.ts +1 -1
- package/dist/runtime/use-nuxt-devtools.d.ts +1 -1
- package/package.json +33 -35
- package/dist/client/_nuxt/BVT_pDx1.js +0 -9
- package/dist/client/_nuxt/BYLmgL12.js +0 -1
- package/dist/client/_nuxt/C71Avik8.js +0 -1
- package/dist/client/_nuxt/CI_a6Yq_.js +0 -9
- package/dist/client/_nuxt/CQhVfK23.js +0 -99
- package/dist/client/_nuxt/CYpIh8Vy.js +0 -1
- package/dist/client/_nuxt/C_vNhPYi.js +0 -1031
- package/dist/client/_nuxt/D2pUCviE.js +0 -1
- package/dist/client/_nuxt/DGmtW0X_.js +0 -30
- package/dist/client/_nuxt/DW2rdoo9.js +0 -48
- package/dist/client/_nuxt/Ds6yAegc.js +0 -2
- package/dist/client/_nuxt/NSectionBlock.DF4F_onM.css +0 -1
- package/dist/client/_nuxt/builds/meta/923994c1-a7bd-4c91-b02b-513548587468.json +0 -1
- package/dist/client/_nuxt/entry.C09IdXcP.css +0 -1
- package/dist/client/_nuxt/error-404.ClUqCsUG.css +0 -1
- package/dist/client/_nuxt/error-500.Xj6Xfe4d.css +0 -1
- package/dist/client/_nuxt/terminals.bPBXyte9.css +0 -32
- /package/dist/runtime/nitro/{inline.mjs → inline.js} +0 -0
- /package/dist/runtime/plugins/{devtools.server.mjs → devtools.server.js} +0 -0
- /package/dist/runtime/plugins/view/{utils.mjs → utils.js} +0 -0
- /package/dist/runtime/{settings.mjs → settings.js} +0 -0
- /package/dist/runtime/shared/{hooks.mjs → hooks.js} +0 -0
- /package/dist/runtime/{use-nuxt-devtools.mjs → use-nuxt-devtools.js} +0 -0
- /package/dist/runtime/vue-devtools/{overlay.mjs → overlay.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as N,a as C,aX as oe,e as ae,ac as H,r as A,f as t,h as I,j as _,p as x,o,k as e,m as n,n as B,G as O,t as p,F as T,i as d,v as $,ar as V,_ as J,a9 as R,aY as P,aZ as ne,a_ as se,a$ as re,y as ie,z as ce,q as le,b0 as de,b1 as pe,b2 as me,b as ue,b3 as ge,b4 as he,b5 as _e,b6 as G,aA as fe,a2 as ve,l as be,ae as we,I as z,X as xe}from"./
|
|
1
|
+
import{d as N,a as C,aX as oe,e as ae,ac as H,r as A,f as t,h as I,j as _,p as x,o,k as e,m as n,n as B,G as O,t as p,F as T,i as d,v as $,ar as V,_ as J,a9 as R,aY as P,aZ as ne,a_ as se,a$ as re,y as ie,z as ce,q as le,b0 as de,b1 as pe,b2 as me,b as ue,b3 as ge,b4 as he,b5 as _e,b6 as G,aA as fe,a2 as ve,l as be,ae as we,I as z,X as xe}from"./DNH9VLI7.js";import{_ as ye}from"./QZOV8EJp.js";import{_ as U}from"./CO6YgqHh.js";import{_ as q}from"./D7I2o642.js";import{_ as ke}from"./8SMg7xCe.js";import{_ as $e}from"./CIgTPfXa.js";import"./BYuD4knm.js";import"./DBLkZRmC.js";const K=[{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."}],Se={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},Te=["onClick"],Ce=e("div",{border:"b base","flex-auto":""},null,-1),Ne={key:0,"x-divider":""},Me={key:1,"x-divider":""},Oe={flex:"~ gap-1 items-center",class:"px2 pt2",lg:"px4 py2"},Ie=e("div",{"i-carbon-warning":"","text-orange":""},null,-1),Ae={"w-full":"",p2:"",op75:""},Be={key:1,m4:"",flex:"~ col gap-2"},Re={flex:"~ gap-1 wrap items-center"},Le={key:1},je={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Fe=N({__name:"OpenGraphMissingTabs",props:{tags:{},matchedRouteFilepath:{}},setup(h){const s=h,l=C(()=>K.filter(r=>!s.tags?.some(g=>g.name===r.name))),a=C(()=>{let r={};const g={};l.value.forEach(u=>{u.seoMeta?Object.assign(g,u.seoMeta):r=oe(r,u.head)});const b=[];if(Object.keys(g).length){const u=JSON.stringify(g,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useSeoMeta(${u})`)}if(Object.keys(r).length){const u=JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useHead(${u})`)}return b.join(`
|
|
2
2
|
|
|
3
3
|
`)}),m=ae(),y=H(),k=["Missing Tags","Code Snippet"],f=A(k[0]);return(r,g)=>{const b=U,u=V,S=J,M=ke,L=q;return t(l).length?(o(),I(L,{key:0,text:"Missing Tags",description:`${t(l).length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:_(()=>[e("div",Se,[(o(),n(T,null,B(k,(i,c)=>e("button",{key:c,px4:"",py2:"",border:"r t base",hover:"bg-active",class:O(i===t(f)?"":"border-b"),onClick:v=>f.value=i},[e("div",{class:O(i===t(f)?"":"op30"),capitalize:""},p(i),3)],10,Te)),64)),Ce]),t(f)===k[0]?(o(),I(u,{key:0,grid:"~ cols-[1fr] lg:cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),n(T,null,B(t(l),(i,c)=>(o(),n(T,{key:c},[c?(o(),n("div",Ne)):x("",!0),c?(o(),n("div",Me)):x("",!0),e("div",Oe,[Ie,d(b,{"op-50":"",href:i.docs,target:"_blank",n:"orange"},{default:_(()=>[$(p(i.name),1)]),_:2},1032,["href"])]),e("div",Ae,p(i.description),1)],64))),128))]),_:1})):(o(),n("div",Be,[e("p",Re,[d(S,{icon:"carbon-copy",n:"xs","px-2":"",onClick:g[0]||(g[0]=i=>t(m)(t(a),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1}),$(" the following code snippet and paste it into your "),r.matchedRouteFilepath?(o(),I(S,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:g[1]||(g[1]=i=>t(y)(r.matchedRouteFilepath))},{default:_(()=>[$(" page component ")]),_:1})):(o(),n("span",Le,"page component")),$(" to full fill the missing tags. ")]),d(u,{relative:"","n-code-block":""},{default:_(()=>[d(M,{code:t(a),lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),e("div",je,[d(S,{icon:"carbon-copy",onClick:g[2]||(g[2]=i=>t(m)(t(a),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1})])]),_:1})]))]),_:1},8,["description"])):x("",!0)}}}),De={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},ze={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Ee={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},Ge={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},He={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},Ve={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"}},Je=N({__name:"SocialFacebook",props:{card:{}},setup(h){return(s,l)=>(o(),n("div",De,[e("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",ze,[e("div",Ee,p(s.card.url),1),e("div",Ge,[e("div",He,p(s.card.title),1),e("div",Ve,p(s.card.description),1)])])]))}}),Pe={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"}},Ue={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},qe={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},Ke={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},Xe={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},Ye=N({__name:"SocialTwitter",props:{tags:{}},setup(h){const s=h,l=C(()=>P(s.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"}]})),a=C(()=>l.value.image?s.tags.find(m=>m.tag==="meta"&&m.name==="twitter:card")?.value||"summary_large_image":"summary");return(m,y)=>(o(),n("div",Pe,[e("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",t(a)==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[t(a)==="summary_large_image"?(o(),n("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)):(o(),n("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)),e("div",Ue,[e("div",qe,p(t(l).url),1),e("div",Ke,p(t(l).title),1),e("div",Xe,p(t(l).description),1)])],2)]))}}),We={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] shadow-md bg-base"},Ze={class:"break-words p-[10px] antialiased"},Qe={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},et={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},tt={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},ot=N({__name:"SocialLinkedin",props:{card:{}},setup(h){return(s,l)=>(o(),n("div",We,[e("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",Ze,[e("div",Qe,[e("div",et,p(s.card.title),1),e("div",tt,p(s.card.url),1)])])]))}}),at=h=>(ie("data-v-6d584478"),h=h(),ce(),h),nt={class:"relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26] bg-base"},st={class:"pl-[10px] pr-[8px]"},rt={class:"text-[#3390ec] leading-normal underline"},it={class:"quote w-full flex"},ct={class:"flex flex-col gap-1"},lt={key:0,class:"my-[3px] overflow-hidden rounded"},dt=["src"],pt={class:"cursor-pointer text-sm text-[#3390ec]"},mt={class:"cursor-pointer text-sm"},ut={class:"cursor-pointer text-sm"},gt={class:"flex justify-end text-xs text-[#707579]"},ht=at(()=>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)),_t=N({__name:"SocialTelegram",props:{card:{}},setup(h){const s=ne(),l=se(re(),"HH:mm");return(a,m)=>(o(),n("div",nt,[e("div",st,[e("div",rt,p(a.card.url),1),e("div",it,[e("div",ct,[a.card.image?(o(),n("div",lt,[e("img",{class:"h-full max-w-full w-full rounded object-cover",src:a.card.image},null,8,dt)])):x("",!0),e("div",pt,[e("strong",null,p(t(s).hostname),1)]),e("div",mt,[e("strong",null,p(a.card.title),1)]),e("div",ut,p(a.card.description),1)])]),e("div",gt,[e("span",null,p(t(l)),1)])]),ht]))}}),ft=le(_t,[["__scopeId","data-v-6d584478"]]),vt={flex:"~ col"},bt={flex:"~ wrap","w-full":"","flex-none":""},wt=["onClick"],xt=e("div",{border:"b base","flex-auto":""},null,-1),yt={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},kt={key:0},$t={key:1},St={key:2},Tt={key:3},Ct=N({__name:"SocialPreviewGroup",props:{tags:{}},setup(h){const s=h,l=["twitter","facebook","linkedin","telegram"],a=de("nuxt-devtools-social-preview-tab",l[0]),m=C(()=>P(s.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(y,k)=>{const f=Je,r=Ye,g=ot,b=ft;return o(),n("div",vt,[e("div",bt,[(o(),n(T,null,B(l,(u,S)=>e("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(u===t(a)?"":"border-b"),onClick:M=>a.value=u},[e("div",{class:O(u===t(a)?"":"op30"),capitalize:""},p(u),3)],10,wt)),64)),xt]),e("div",yt,[t(a)==="facebook"?(o(),n("div",kt,[d(f,{card:t(m)},null,8,["card"])])):t(a)==="twitter"?(o(),n("div",$t,[d(r,{tags:y.tags},null,8,["tags"])])):t(a)==="linkedin"?(o(),n("div",St,[d(g,{card:t(m)},null,8,["card"])])):t(a)==="telegram"?(o(),n("div",Tt,[d(b,{card:t(m)},null,8,["card"])])):x("",!0)])])}}}),Nt={class:"markdown-body"},Mt=pe('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6),Ot=[Mt],It={__name:"open-graph",setup(h,{expose:s}){return s({frontmatter:{}}),(a,m)=>(o(),n("div",Nt,Ot))}},At={flex:"~ col lg:row","h-full":"","w-full":"","of-hidden":""},Bt={"flex-auto":"","of-auto":""},Rt={"flex-none":"",flex:"~ gap2 items-center"},Lt={flex:"~ col"},jt={key:0,"x-divider":""},Ft={key:1,"x-divider":""},Dt={mr2:"",px4:"",py2:""},qt=N({__name:"open-graph",setup(h){const s=A(0),l=me(),a=ue(async()=>(s.value,(await l.value?.resolveTags()).map(c=>{const v=c.props||{};return c.tag==="htmlAttrs"&&v.lang?{tag:"html",name:"lang",value:v.lang}:v.charset?{tag:"meta",name:"charset",value:v.charset}:{tag:c.tag,name:v.property??v.name??v.rel??c.tag,value:v.content??v.href??c.textContent??JSON.stringify(v)}})),[]),m=A(!0);function y(){s.value+=1}const k=ge(),f=he(),r=A(""),g=_e(),b=H();async function u(){r.value!==f.value.path&&k.value.push(r.value||"/")}const S=C(()=>r.value===f.value.path?[]:k.value.resolve(r.value||"/").matched),M=C(()=>{const i=g.value.find(c=>c.path===f.value?.matched?.[0]?.path);return i?.file||i?.meta?.file});function L(i){return K.find(c=>c.name===i.name)?.docs}return G(f).toBeTruthy().then(i=>{r.value=i.path}),G(k).toBeTruthy().then(i=>{i.afterEach(()=>{fe(()=>{r.value=f.value.path,setTimeout(y,200),setTimeout(y,800)})})}),(i,c)=>{const v=xe,j=J,X=ye,E=U,Y=V,W=q,Z=Fe,Q=Ct,ee=It,te=$e,F=ve("tooltip");return o(),n(T,null,[e("div",At,[e("div",Bt,[d(X,null,{search:_(()=>[d(v,{modelValue:t(r),"onUpdate:modelValue":c[0]||(c[0]=w=>be(r)?r.value=w:null),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:O(["px-5 py-2",t(f)?.path===t(r)?"":t(S).length?"text-green":"text-orange"]),onKeydown:we(u,["enter"])},null,8,["modelValue","class"])]),actions:_(()=>[e("div",Rt,[t(M)?z((o(),I(j,{key:0,"text-lg":"",border:!1,icon:"carbon:launch",title:"Open file in editor",onClick:c[1]||(c[1]=w=>t(b)(t(M)))},null,512)),[[F,"Open file in editor"]]):x("",!0),z(d(j,{"text-lg":"",border:!1,icon:"carbon:reset",title:"Refresh Data",onClick:y},null,512),[[F,"Refresh Data"]]),z(d(j,{"text-lg":"",border:!1,icon:t(m)?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:c[2]||(c[2]=w=>m.value=!t(m))},null,8,["icon"]),[[F,"Toggle Preview"]])])]),_:1}),e("div",Lt,[d(W,{text:"Tags",icon:"carbon:tag-group"},{default:_(()=>[d(Y,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),n(T,null,B(t(a),(w,D)=>(o(),n(T,{key:D},[D?(o(),n("div",jt)):x("",!0),D?(o(),n("div",Ft)):x("",!0),e("div",Dt,[d(E,{op50:"",href:L(w),target:"_blank",n:"primary"},{default:_(()=>[$(p(w.name),1)]),_:2},1032,["href"])]),d(E,{href:String(w.value).match(/^https?:\/\//)?w.value:void 0,target:"_blank","w-full":"",p2:"","font-mono":"",n:"primary"},{default:_(()=>[$(p(w.value),1)]),_:2},1032,["href"])],64))),128))]),_:1})]),_:1}),d(Z,{tags:t(a),"matched-route-filepath":t(M)},null,8,["tags","matched-route-filepath"])])]),t(m)&&t(a)?.length?(o(),I(Q,{key:0,tags:t(a),"flex-none":"","border-base":"","lt-lg":"border-t",lg:"h-full w-140 border-l"},null,8,["tags"])):x("",!0)]),d(te,null,{default:_(()=>[d(ee)]),_:1})],64)}}});export{qt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./
|
|
1
|
+
import{_ as S}from"./LSJkDbxe.js";import{_ as D}from"./CGj_8s-I.js";import{_ as C}from"./6wcy4DsH.js";import{d as v,ab as B,a as x,bg as V,o as n,m,k as t,t as P,i as l,f,h as u,p as d,as as F,aa as N,a6 as H,q as I,j as g,v as y,bi as E,al as W,F as k,n as j,G as L}from"./DNH9VLI7.js";import{_ as M}from"./D7I2o642.js";import{_ as q}from"./CIgTPfXa.js";import"./BYuD4knm.js";const z={flex:"~ gap2","items-center":""},A={w8:"","text-right":"","text-sm":"",op25:""},G={key:0,"flex-auto":"","text-right":""},R=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(p){const e=p,a=B(),r=x(()=>V(e.plugin.src,a.value?.rootDir||"").path);return(i,c)=>{const _=S,o=D,s=C;return n(),m("div",z,[t("div",A,P(i.index),1),l(_,{filepath:e.plugin.src,subpath:!0},null,8,["filepath"]),t("div",null,[f(r).startsWith("#")?(n(),u(o,{key:0,n:"rose",textContent:"virtual"})):f(r).startsWith(".")?d("",!0):(n(),u(o,{key:1,n:"gray",textContent:"module"})),i.plugin.mode==="server"?(n(),u(o,{key:2,n:"teal",textContent:"server"})):d("",!0),i.plugin.mode==="client"?(n(),u(o,{key:3,n:"orange",textContent:"client"})):d("",!0)]),i.plugin.metric?.duration!=null?(n(),m("div",G,[l(s,{duration:i.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),Y={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},J={flex:"~ items-center gap-1","font-bold":""},K=v({__name:"HelpTip",props:{title:{},icon:{}},setup(p){return(e,a)=>{const r=H,i=F("ContentSlot");return n(),m("div",Y,[t("div",J,[e.icon?(n(),u(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),t("div",null,P(e.title),1)]),t("div",null,[N(e.$slots,"default",{},()=>[l(i,{use:e.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),O={};function Q(p,e){const a=K;return n(),u(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:g(()=>[N(p.$slots,"default")]),_:3})}const U=I(O,[["render",Q]]),X={class:"markdown-body"},Z=t("h1",null,"Plugins",-1),tt=t("p",null,[y("Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the "),t("code",null,"plugins/"),y(" directory and they will be automatically imported and registered.")],-1),et=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),nt={__name:"plugins",setup(p,{expose:e}){return e({frontmatter:{}}),(r,i)=>{const c=U;return n(),m("div",X,[Z,tt,l(c,null,{default:g(()=>[y(" Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. ")]),_:1}),et])}}},ot={pt4:""},st={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},it=t("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1),at=t("span",{op50:""},"Total execution time:",-1),dt=v({__name:"plugins",setup(p){const e=E(),a=W(),r=x(()=>{const c=e.value?.plugins||[],_=a.value?.metrics.clientPlugins()||[];return c.map(o=>{const s=typeof o=="string"?{src:o}:o;return{...s,metric:_.find(h=>h.src===s.src||h.src.startsWith(s.src))}})}),i=x(()=>{const c=a.value?.metrics.clientPlugins()||[],_=Math.min(...c.map(s=>s.start));return Math.max(...c.map(s=>s.end))-_});return(c,_)=>{const o=R,s=C,h=M,T=nt,w=q;return n(),m(k,null,[l(h,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${f(r).length}`},{default:g(()=>[t("div",ot,[(n(!0),m(k,null,j(f(r),($,b)=>(n(),u(o,{key:$.src,plugin:$,index:b+1,"ml--4":"","border-base":"",py2:"",class:L(b?"border-t":"")},null,8,["plugin","index","class"]))),128)),t("div",st,[it,at,l(s,{duration:f(i),factor:10},null,8,["duration"])])])]),_:1},8,["description"]),l(w,null,{default:g(()=>[l(T)]),_:1})],64)}}});export{dt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,a0 as $,m as p,k as o,G as i,i as w,j as B,f as l,F as u,I as C,J as S,aa as s,p as d,o as r,v as f,t as v,h as b,y as k,z as I,a6 as N,q as V}from"./
|
|
1
|
+
import{d as y,a0 as $,m as p,k as o,G as i,i as w,j as B,f as l,F as u,I as C,J as S,aa as s,p as d,o as r,v as f,t as v,h as b,y as k,z as I,a6 as N,q as V}from"./DNH9VLI7.js";import{_ as x}from"./BYuD4knm.js";const m=t=>(k("data-v-bae9fa8d"),t=t(),I(),t),z=["open"],T={"text-base":""},D={key:0,"text-sm":"",op50:""},F=m(()=>o("div",{class:"flex-auto"},null,-1)),j=m(()=>o("div",{class:"x-divider"},null,-1)),q=y({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const a=$(t,"open",void 0,{passive:!0});function c(e){a.value=e.target.open}return(e,n)=>{const h=N,g=x;return r(),p(u,null,[o("details",{open:l(a),onToggle:n[0]||(n[0]=(..._)=>c&&c(..._))},[o("summary",{class:i(["cursor-pointer select-none hover:bg-active p4",e.collapse?"":"pointer-events-none"])},[w(g,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:i([l(a)?"op100":"op60",e.headerClass])},{default:B(()=>[o("div",null,[o("div",T,[s(e.$slots,"text",{},()=>[f(v(e.text),1)],!0)]),e.description||e.$slots.description?(r(),p("div",D,[s(e.$slots,"description",{},()=>[f(v(e.description),1)],!0)])):d("",!0)]),F,s(e.$slots,"actions",{},void 0,!0),e.collapse?(r(),b(h,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):d("",!0)]),_:3},8,["icon","text","class"])],2),n._lazyshow1||l(a)?(n._lazyshow1=!0,r(),p(u,null,[C(o("div",{class:i(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[s(e.$slots,"details",{},void 0,!0),o("div",{class:i([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2),[[S,l(a)]])],64)):d("v-show-if",!0)],40,z),j],64)}}}),M=V(q,[["__scopeId","data-v-bae9fa8d"]]);export{M as _};
|