@nuxt/devtools 1.3.14 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +6 -6
- package/dist/chunks/vscode.mjs +2 -2
- package/dist/chunks/vue-devtools.mjs +1 -1
- package/dist/client/200.html +20 -20
- package/dist/client/404.html +20 -20
- package/dist/client/_nuxt/{D4Ks82zD.js → 2WsLw058.js} +1 -1
- package/dist/client/_nuxt/{B-wfK0SS.js → A56qLMdk.js} +1 -1
- package/dist/client/_nuxt/{rLudNEh9.js → AIZ3trgN.js} +1 -1
- package/dist/client/_nuxt/{BZvh3yot.js → B2aNs1qV.js} +1 -1
- package/dist/client/_nuxt/{JMx2uAI6.js → B6H_wowy.js} +1 -1
- package/dist/client/_nuxt/{BHBvn5Xs.js → BAJXKRnU.js} +1 -1
- package/dist/client/_nuxt/{CE84j0J9.js → BD_-z3C6.js} +1 -1
- package/dist/client/_nuxt/{CxLTb5RC.js → BF2Zv_ac.js} +1 -1
- package/dist/client/_nuxt/{zjxoDR5L.js → BFisL5PK.js} +1 -1
- package/dist/client/_nuxt/BMbUeBqv.js +1 -1
- package/dist/client/_nuxt/{CPr4CZHz.js → BNFg_2hU.js} +1 -1
- package/dist/client/_nuxt/{Dv0NFAnW.js → BQnF4QpF.js} +1 -1
- package/dist/client/_nuxt/{DwVKZd3-.js → BRmBiXYU.js} +1 -1
- package/dist/client/_nuxt/BTojbgVV.js +1 -0
- package/dist/client/_nuxt/BZflAdyk.js +43 -0
- package/dist/client/_nuxt/{CPWqrNrA.js → Bb8Qkg2j.js} +1 -1
- package/dist/client/_nuxt/{Cb_ad2sg.js → BcmtLNjB.js} +1 -1
- package/dist/client/_nuxt/{DwdKwQHN.js → BgwfQLiC.js} +1 -1
- package/dist/client/_nuxt/BhPGnnSc.js +1 -0
- package/dist/client/_nuxt/{CVW-sDYN.js → Bn9bQn_0.js} +1 -1
- package/dist/client/_nuxt/{ewAh1ZiX.js → BtVX2hui.js} +1 -1
- package/dist/client/_nuxt/{DKlNNSWk.js → BwlD2UKZ.js} +1 -1
- package/dist/client/_nuxt/{DoQHeYxB.js → By8bKr-N.js} +3 -3
- package/dist/client/_nuxt/C8RrL2-P.js +1 -1
- package/dist/client/_nuxt/{C4OO6w_e.js → CD1NqIIM.js} +1 -1
- package/dist/client/_nuxt/{B2TuRHFi.js → CGrOFGU2.js} +1 -1
- package/dist/client/_nuxt/{BMUgLter.js → CHRohc05.js} +1 -1
- package/dist/client/_nuxt/{CyS6YlEb.js → CKMxd-JB.js} +1 -1
- package/dist/client/_nuxt/{BO314c-_.js → CROnmYq8.js} +1 -1
- package/dist/client/_nuxt/{CcKfWHXB.js → CSdo01uo.js} +1 -1
- package/dist/client/_nuxt/CTKqK4eG.js +1 -1
- package/dist/client/_nuxt/{yFeWtr-M.js → CTgwY-nX.js} +1 -1
- package/dist/client/_nuxt/{2tJW9cKr.js → C_QixTwI.js} +1 -1
- package/dist/client/_nuxt/CbViG2Xw.js +1 -1
- package/dist/client/_nuxt/{CA5wVMK1.js → CbWJw1kk.js} +1 -1
- package/dist/client/_nuxt/{CnW1WPg6.js → CmukqgDs.js} +1 -1
- package/dist/client/_nuxt/{DVZAdofw.js → CqEMLpLr.js} +1 -1
- package/dist/client/_nuxt/{BkmSFWMo.js → D43mkQK_.js} +1 -1
- package/dist/client/_nuxt/DDMtKJxh.js +1 -1
- package/dist/client/_nuxt/{CsgBhI1g.js → DEF_vpGm.js} +1 -1
- package/dist/client/_nuxt/{BF_UD7ZT.js → DKNVc3Pf.js} +1 -1
- package/dist/client/_nuxt/{DN0HCnq5.js → DLUNO0Xm.js} +1 -1
- package/dist/client/_nuxt/{viHXAOJs.js → DLu2RzFt.js} +1 -1
- package/dist/client/_nuxt/{Bi99gj7u.js → DO36ltOt.js} +1 -1
- package/dist/client/_nuxt/{CWyKSuRn.js → DQZBaF2J.js} +1 -1
- package/dist/client/_nuxt/{Cic6Ln_D.js → DTOtwcdp.js} +1 -1
- package/dist/client/_nuxt/{BEKXAodE.js → DWfDPvkq.js} +1 -1
- package/dist/client/_nuxt/{BcJweaq3.js → Das97jHp.js} +1 -1
- package/dist/client/_nuxt/{CyvuMq07.js → DeV-19Y9.js} +1 -1
- package/dist/client/_nuxt/{BZZpaKJQ.js → DjP2QASF.js} +1 -1
- package/dist/client/_nuxt/{Di9lD2rK.js → DnvoyAD8.js} +1 -1
- package/dist/client/_nuxt/DpYuRYxj.js +1 -1
- package/dist/client/_nuxt/{BrzmMRQX.js → Dru2Tyw8.js} +1 -1
- package/dist/client/_nuxt/{Bl8OBrwH.js → DwafjdGG.js} +1 -1
- package/dist/client/_nuxt/DxBIjTmI.js +9 -0
- package/dist/client/_nuxt/{CfVBzxeB.js → DyhAO93-.js} +1 -1
- package/dist/client/_nuxt/{gXK6hV6W.js → GjTC5NxA.js} +1 -1
- package/dist/client/_nuxt/{zLQhdF7m.js → L-yiqDbL.js} +1 -1
- package/dist/client/_nuxt/{VNvxalkE.js → SOK9_XgA.js} +1 -1
- package/dist/client/_nuxt/{DYx1ZwvQ.js → Sexyi49-.js} +1 -1
- package/dist/client/_nuxt/{CLVHkiJk.js → T04KvlgM.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/4dfa6860-b8c0-4ad3-a283-0de7e742bb5a.json +1 -0
- package/dist/client/_nuxt/{D8XE2BC8.js → dYpGFgFL.js} +1 -1
- package/dist/client/_nuxt/{D-a-w6CR.js → dnEdyJOX.js} +1 -1
- package/dist/client/_nuxt/error-404.4OGL5unG.css +1 -0
- package/dist/client/_nuxt/error-500.CVlaxm9G.css +1 -0
- package/dist/client/_nuxt/{CmbkPMjd.js → lc4WPc7a.js} +1 -1
- package/dist/client/_nuxt/{awWHqjli.js → sdlgwPR1.js} +1 -1
- package/dist/client/_nuxt/{CjFkCrIW.js → vukXLwum.js} +1 -1
- package/dist/client/_nuxt/{pl_4MfI2.js → wDknflE0.js} +1 -1
- package/dist/client/_nuxt/{BWPbreBU.js → x4RoSwOc.js} +1 -1
- package/dist/client/index.html +20 -20
- package/dist/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- 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} +2 -2
- package/dist/runtime/plugins/view/FrameBox.vue +5 -49
- package/dist/runtime/plugins/view/Main.vue +1 -147
- 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 +1 -1
- package/dist/runtime/shared/hooks.d.ts +1 -1
- package/dist/runtime/use-nuxt-devtools.d.ts +1 -1
- package/package.json +10 -10
- package/dist/client/_nuxt/Cvo3JE8Q.js +0 -1
- package/dist/client/_nuxt/W2Tyz6z1.js +0 -9
- package/dist/client/_nuxt/builds/meta/a69820c2-31c2-48f6-8161-842a62467079.json +0 -1
- package/dist/client/_nuxt/ciodjZaS.js +0 -43
- package/dist/client/_nuxt/error-404.Bssqox27.css +0 -1
- package/dist/client/_nuxt/error-500.D3oXMFZl.css +0 -1
- package/dist/client/_nuxt/z0xAc3RC.js +0 -1
- /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.d.mts → overlay.d.ts} +0 -0
- /package/dist/runtime/vue-devtools/{overlay.mjs → overlay.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"./DpYuRYxj.js";import e from"./
|
|
1
|
+
import t from"./DpYuRYxj.js";import e from"./Dch3xQiY.js";import"./CbViG2Xw.js";import"./CbYhyuC0.js";import"./DC8MraHL.js";import"./CupVZNk8.js";import"./DK4oFTHQ.js";const n=Object.freeze({displayName:"Vue HTML",fileTypes:[],name:"vue-html",patterns:[{include:"source.vue#vue-interpolations"},{begin:"(<)([A-Z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"support.class.component.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<)([a-z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"entity.name.tag.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<\\?)(xml)",captures:{1:{name:"punctuation.definition.tag.html"},2:{name:"entity.name.tag.xml.html"}},end:"(\\?>)",name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:"<!--",captures:{0:{name:"punctuation.definition.comment.html"}},end:"-->",name:"comment.block.html"},{begin:"<!",captures:{0:{name:"punctuation.definition.tag.html"}},end:">",name:"meta.tag.sgml.html",patterns:[{begin:"(?i:DOCTYPE)",captures:{1:{name:"entity.name.tag.doctype.html"}},end:"(?=>)",name:"meta.tag.sgml.doctype.html",patterns:[{match:'"[^">]*"',name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:"\\[CDATA\\[",end:"]](?=>)",name:"constant.other.inline-data.html"},{match:"(\\s*)(?!--|>)\\S(\\s*)",name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:"(</?)([A-Z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:body|head|html)\\b)",captures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.structure.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.inline.any.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-zA-Z0-9:-]+)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.other.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:"<>",name:"invalid.illegal.incomplete.html"},{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}],repository:{entities:{patterns:[{captures:{1:{name:"punctuation.definition.entity.html"},3:{name:"punctuation.definition.entity.html"}},match:"(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",name:"constant.character.entity.html"},{match:"&",name:"invalid.illegal.bad-ampersand.html"}]},"string-double-quoted":{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"string-single-quoted":{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"tag-generic-attribute":{match:"(?<=[^=])\\b([a-zA-Z0-9:\\-_]+)",name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:"\\b(id)\\b\\s*(=)",captures:{1:{name:"entity.other.attribute-name.id.html"},2:{name:"punctuation.separator.key-value.html"}},end:`(?!\\G)(?<='|"|[^\\s<>/])`,name:"meta.attribute-with-value.id.html",patterns:[{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{captures:{0:{name:"meta.toc-list.id.html"}},match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"}]},"tag-stuff":{patterns:[{include:"#vue-directives"},{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#unquoted-attribute"}]},"unquoted-attribute":{match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"},"vue-directives":{begin:"(?:\\b(v-)|(:|@|#))([a-zA-Z0-9\\-_]+)(?:\\:([a-zA-Z\\-_]+))?(?:\\.([a-zA-Z\\-_]+))*\\s*(=)",captures:{1:{name:"entity.other.attribute-name.html"},2:{name:"punctuation.separator.key-value.html"},3:{name:"entity.other.attribute-name.html"},4:{name:"entity.other.attribute-name.html"},5:{name:"entity.other.attribute-name.html"},6:{name:"punctuation.separator.key-value.html"}},end:"(?<='|\")|(?=[\\s<>`])",name:"meta.directive.vue",patterns:[{begin:"`",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"`",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]}]}},scopeName:"text.html.vue-html",embeddedLangs:["vue","javascript"]});var s=[...t,...e,n];export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as D,ao as j,r as A,a as x,aA as q,aB as B,as as $,aC as E,aD as b,aE as M,aF as N,m as I,o as s,aG as L,P,aH as V,aI as C,aJ as W,f as a,h as c,j as y,az as O,A as R,k as u,v as w,t as T,L as S,i as F,at as U,aK as G}from"./
|
|
1
|
+
import{d as D,ao as j,r as A,a as x,aA as q,aB as B,as as $,aC as E,aD as b,aE as M,aF as N,m as I,o as s,aG as L,P,aH as V,aI as C,aJ as W,f as a,h as c,j as y,az as O,A as R,k as u,v as w,t as T,L as S,i as F,at as U,aK as G}from"./BZflAdyk.js";import{_ as z}from"./CmukqgDs.js";import"./BRmBiXYU.js";import"./CTgwY-nX.js";const g=new Map,H=D({__name:"IframeView",props:{tab:{}},setup(f){const m=f,r=j(),v=A(),i=x(()=>m.tab.name),e=A(),t=q(B(v));$(()=>{const o=m.tab.view,l=o.persistent!==!1,h=["clipboard-write","clipboard-read"];if(g.get(i.value)&&l)e.value=g.get(i.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",h.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&g.set(i.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{d(),n(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),E(_)}setTimeout(n,100)}),b(_),b(n),b(d),M(()=>{e.value&&(e.value.style.visibility="hidden")});function n(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",r.value==="dark"),o?.classList.toggle("light",r.value==="dark"),new MutationObserver(()=>{r.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(o,{attributes:!0,attributeFilter:["class"]})}catch{}}const p=N();function d(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=p.value}catch{}}function _(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(o,l)=>(s(),I("div",{ref_key:"anchor",ref:v,"h-full":"","w-full":""},null,512))}}),J={flex:"~ col gap2",mxa:"","items-center":""},K=u("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),X={"text-xl":""},Q={"text-rose":""},Y=u("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1),Z=u("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1),ne=D({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,r=L(),v=P(),i=x(()=>m.name??r.params.name),e=V(),t=x(()=>e.value.find(n=>n.name===i.value));return $(()=>{t.value?t.value.requireAuth&&!C.value&&W():setTimeout(()=>{t.value||v.push("/modules/overview")},2e3)}),(n,p)=>{const d=R,_=G,o=H,l=z,h=U;return a(t)?a(t).requireAuth&&!("isDevAuthed"in n?n.isDevAuthed:a(C))?(s(),c(_,{key:1})):a(t).view.type==="iframe"?(s(),c(o,{key:2,tab:a(t)},null,8,["tab"])):a(t).view.type==="vnode"?(s(),c(O(a(t).view.vnode),{key:3})):a(t).view.type==="launch"?(s(),c(l,{key:4,name:`custom-${a(t).name}`,icon:a(t).view.icon||a(t).icon,title:a(t).view.title||a(t).title,description:a(t).view.description,actions:a(t).view.actions,onAction:p[0]||(p[0]=k=>("rpc"in n?n.rpc:a(S)).customTabAction(a(t).name,k))},null,8,["name","icon","title","description","actions"])):(s(),c(d,{key:5},{default:y(()=>[F(h,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+T(a(t).view),1)]),_:1})]),_:1})):(s(),c(d,{key:0},{default:y(()=>[u("div",J,[K,u("p",X,[w(" Tab "),u("code",Q,T(a(i)),1),w(" not found ")]),Y,Z])]),_:1}))}}});export{ne as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as x}from"./
|
|
1
|
+
import{_ as x}from"./wDknflE0.js";import{_ as y}from"./BgwfQLiC.js";import{o as l,m as p,k as n,v as d,d as b,am as C,bG as k,a as u,f as t,i as e,j as a,p as w,F as N}from"./BZflAdyk.js";import{_ as R}from"./T04KvlgM.js";import"./A56qLMdk.js";import"./CHRohc05.js";import"./L-yiqDbL.js";const T={class:"markdown-body"},B=n("h1",null,"Runtime Configs",-1),V=n("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.",-1),$=n("p",null,[d("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 "),n("code",null,"nuxt.config.js"),d(" file, or check more details in the documentation.")],-1),D=n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),F=[B,V,$,D],P={__name:"runtime-configs",setup(f,{expose:o}){return o({frontmatter:{}}),(m,i)=>(l(),p("div",T,F))}},S=P,j={key:0},J=b({__name:"runtime-configs",setup(f){const o=C(),_=k(),m=u(()=>o.value?.nuxt.payload),i=u(()=>o.value?.revision.value),g=u(()=>{const s={..._.value};return delete s.public,delete s.app,s});return(s,A)=>{const r=x,c=y,h=S,v=R;return l(),p(N,null,[t(o)?(l(),p("div",j,[e(c,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:a(()=>[e(r,{state:t(o).app.appConfig,revision:t(i)},null,8,["state","revision"])]),_:1}),e(c,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:a(()=>[e(r,{state:t(m).config?.public,revision:t(i)},null,8,["state","revision"])]),_:1}),e(c,{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:a(()=>[e(r,{state:t(g),revision:t(i),readonly:""},null,8,["state","revision"])]),_:1})])):w("",!0),e(v,null,{default:a(()=>[e(h)]),_:1})],64)}}});export{J as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bP as xO,c as $O,bD as kO,d as SO,bC as CO,r as Kp,aD as OO,a as Ay,aE as MO,as as EO,w as Gp,f as AO,bo as TO}from"./
|
|
1
|
+
import{bP as xO,c as $O,bD as kO,d as SO,bC as CO,r as Kp,aD as OO,a as Ay,aE as MO,as as EO,w as Gp,f as AO,bo as TO}from"./BZflAdyk.js";function Nn(t){return Array.isArray(t)}function tr(t){return t!==null&&typeof t=="object"&&(t.constructor===void 0||t.constructor.name==="Object")}function hS(t){return t&&typeof t=="object"?t.op==="add":!1}function pS(t){return t&&typeof t=="object"?t.op==="remove":!1}function n0(t){return t&&typeof t=="object"?t.op==="replace":!1}function eg(t){return t&&typeof t=="object"?t.op==="copy":!1}function _l(t){return t&&typeof t=="object"?t.op==="move":!1}function _O(t,e){return JSON.stringify(t)===JSON.stringify(e)}function PO(t,e){return t===e}function mS(t){return t.slice(0,t.length-1)}function RO(t){return t[t.length-1]}function NO(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:PO;if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(!n(t[r],e[r]))return!1;return!0}function gS(t){return typeof t=="object"&&t!==null}function r0(t){if(Nn(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else if(tr(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else return t}function i0(t,e,n){if(t[e]===n)return t;{const r=r0(t);return r[e]=n,r}}function Ye(t,e){let n=t,r=0;for(;r<e.length;)tr(n)?n=n[e[r]]:Nn(n)?n=n[parseInt(e[r])]:n=void 0,r++;return n}function to(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.length===0)return n;const i=e[0],o=to(t?t[i]:void 0,e.slice(1),n,r);if(tr(t)||Nn(t))return i0(t,i,o);if(r){const s=IO.test(i)?[]:{};return s[i]=o,s}else throw new Error("Path does not exist")}const IO=/^\d+$/;function vS(t,e,n){if(e.length===0)return n(t);if(!gS(t))throw new Error("Path doesn't exist");const r=e[0],i=vS(t[r],e.slice(1),n);return i0(t,r,i)}function o0(t,e){if(e.length===0)return t;if(!gS(t))throw new Error("Path does not exist");if(e.length===1){const i=e[0];if(i in t){const o=r0(t);return Nn(o)&&o.splice(parseInt(i),1),tr(o)&&delete o[i],o}else return t}const n=e[0],r=o0(t[n],e.slice(1));return i0(t,n,r)}function s0(t,e,n){const r=e.slice(0,e.length-1),i=e[e.length-1];return vS(t,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const s=r0(o);return s.splice(parseInt(i),0,n),s})}function Di(t,e){return t===void 0?!1:e.length===0?!0:t===null?!1:Di(t[e[0]],e.slice(1))}function ho(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function He(t){return t.map(a0).join("")}function a0(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function Ty(t,e){return t+a0(e)}function Kh(t,e){return t.startsWith(e)&&(t.length===e.length||t[e.length]==="/")}function so(t,e,n){let r=t;for(let i=0;i<e.length;i++){HO(e[i]);let o=e[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const s=r,a=Do(r,o.path);if(o.op==="add")r=BO(r,a,o.value);else if(o.op==="remove")r=LO(r,a);else if(o.op==="replace")r=DO(r,a,o.value);else if(o.op==="copy")r=zO(r,a,tg(o.from));else if(o.op==="move")r=FO(r,a,tg(o.from));else if(o.op==="test")qO(r,a,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,s);l!==void 0&&(r=l)}}return r}function DO(t,e,n){return to(t,e,n)}function LO(t,e){return o0(t,e)}function BO(t,e,n){return Qu(t,e)?s0(t,e,n):to(t,e,n)}function zO(t,e,n){const r=Ye(t,n);if(Qu(t,e))return s0(t,e,r);{const i=Ye(t,n);return to(t,e,i)}}function FO(t,e,n){const r=Ye(t,n),i=o0(t,n);return Qu(i,e)?s0(i,e,r):to(i,e,r)}function qO(t,e,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${He(e)}")`);if(!Di(t,e))throw new Error(`Test failed: path not found (path: "${He(e)}")`);const r=Ye(t,e);if(!_O(r,n))throw new Error(`Test failed, value differs (path: "${He(e)}")`)}function Qu(t,e){if(e.length===0)return!1;const n=Ye(t,mS(e));return Array.isArray(n)}function VO(t,e){if(RO(e)!=="-")return e;const n=mS(e),r=Ye(t,n);return n.concat(r.length)}function HO(t){if(!["add","remove","replace","copy","move","test"].includes(t.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(t.op));if(typeof t.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(t));if((t.op==="copy"||t.op==="move")&&typeof t.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(t))}function Do(t,e){return VO(t,ho(e))}function tg(t){return ho(t)}function yS(t,e,n){let r=[];return so(t,e,{before:(o,s)=>{let a;const l=Do(o,s.path);if(s.op==="add")a=jS(o,l);else if(s.op==="remove")a=wS(o,l);else if(s.op==="replace")a=bS(o,l);else if(s.op==="copy")a=UO(o,l);else if(s.op==="move")a=WO(o,l,tg(s.from));else if(s.op==="test")a=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(s));let c;if(n&&n.before){const u=n.before(o,s,a);if(u&&u.revertOperations&&(a=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),c!==void 0)return{document:c}}}),r}function bS(t,e){return[{op:"replace",path:He(e),value:Ye(t,e)}]}function wS(t,e){return[{op:"add",path:He(e),value:Ye(t,e)}]}function jS(t,e){return Qu(t,e)||!Di(t,e)?[{op:"remove",path:He(e)}]:bS(t,e)}function UO(t,e){return jS(t,e)}function WO(t,e,n){if(e.length<n.length&&NO(n,e))return[{op:"replace",path:He(e),value:t}];const r={op:"move",from:He(e),path:He(n)};return!Qu(t,e)&&Di(t,e)?[r,...wS(t,e)]:[r]}var zd={},_y={b:"\b",f:"\f",n:`
|
|
2
2
|
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},JO=97;zd.parse=function(t,e,n){var r={},i=0,o=0,s=0,a=n&&n.bigint&&typeof BigInt<"u";return{data:l("",!0),pointers:r};function l(H,L){c();var Q;b(H,"value");var D=m();switch(D){case"t":p("rue"),Q=!0;break;case"f":p("alse"),Q=!1;break;case"n":p("ull"),Q=null;break;case'"':Q=u();break;case"[":Q=d(H);break;case"{":Q=h(H);break;default:v(),"-0123456789".indexOf(D)>=0?Q=f():S()}return b(H,"valueEnd"),c(),L&&s<t.length&&S(),Q}function c(){e:for(;s<t.length;){switch(t[s]){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
|
|
3
3
|
`:o=0,i++;break;default:break e}s++}}function u(){for(var H="",L;L=m(),L!='"';)L=="\\"?(L=m(),L in _y?H+=_y[L]:L=="u"?H+=g():M()):H+=L;return H}function f(){var H="",L=!0;t[s]=="-"&&(H+=m()),H+=t[s]=="0"?m():y(),t[s]=="."&&(H+=m()+y(),L=!1),(t[s]=="e"||t[s]=="E")&&(H+=m(),(t[s]=="+"||t[s]=="-")&&(H+=m()),H+=y(),L=!1);var Q=+H;return a&&L&&(Q>Number.MAX_SAFE_INTEGER||Q<Number.MIN_SAFE_INTEGER)?BigInt(H):Q}function d(H){c();var L=[],Q=0;if(m()=="]")return L;for(v();;){var D=H+"/"+Q;L.push(l(D)),c();var U=m();if(U=="]")break;U!=","&&M(),c(),Q++}return L}function h(H){c();var L={};if(m()=="}")return L;for(v();;){var Q=w();m()!='"'&&M();var D=u(),U=H+"/"+ng(D);x(U,"key",Q),b(U,"keyEnd"),c(),m()!=":"&&M(),c(),L[D]=l(U),c();var q=m();if(q=="}")break;q!=","&&M(),c()}return L}function p(H){for(var L=0;L<H.length;L++)m()!==H[L]&&M()}function m(){J();var H=t[s];return s++,o++,H}function v(){s--,o--}function g(){for(var H=4,L=0;H--;){L<<=4;var Q=m().toLowerCase();Q>="a"&&Q<="f"?L+=Q.charCodeAt()-JO+10:Q>="0"&&Q<="9"?L+=+Q:M()}return String.fromCharCode(L)}function y(){for(var H="";t[s]>="0"&&t[s]<="9";)H+=m();if(H.length)return H;J(),S()}function b(H,L){x(H,L,w())}function x(H,L,Q){r[H]=r[H]||{},r[H][L]=Q}function w(){return{line:i,column:o,pos:s}}function S(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function M(){v(),S()}function J(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}};zd.stringify=function(t,e,n){if(!xf(t))return;var r=0,i,o,s=typeof n=="object"?n.space:n;switch(typeof s){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&x(a," "),i=a,o=a;break;case"string":s=s.slice(0,10),i=0,o=0;for(var l=0;l<s.length;l++){var c=s[l];switch(c){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
|
|
4
4
|
`:o=0,r++;break;default:throw new Error("whitespace characters not allowed in JSON")}i++}break;default:s=void 0}var u="",f={},d=0,h=0,p=0,m=n&&n.es6&&typeof Map=="function";return v(t,0,""),{json:u,pointers:f};function v(w,S,M){switch(b(M,"value"),typeof w){case"number":case"bigint":case"boolean":g(""+w);break;case"string":g($f(w));break;case"object":w===null?g("null"):typeof w.toJSON=="function"?g($f(w.toJSON())):Array.isArray(w)?J():m?w.constructor.BYTES_PER_ELEMENT?J():w instanceof Map?L():w instanceof Set?L(!0):H():H()}b(M,"valueEnd");function J(){if(w.length){g("[");for(var Q=S+1,D=0;D<w.length;D++){D&&g(","),y(Q);var U=xf(w[D])?w[D]:null,q=M+"/"+D;v(U,Q,q)}y(S),g("]")}else g("[]")}function H(){var Q=Object.keys(w);if(Q.length){g("{");for(var D=S+1,U=0;U<Q.length;U++){var q=Q[U],X=w[q];if(xf(X)){U&&g(",");var G=M+"/"+ng(q);y(D),b(G,"key"),g($f(q)),b(G,"keyEnd"),g(":"),s&&g(" "),v(X,D,G)}}y(S),g("}")}else g("{}")}function L(Q){if(w.size){g("{");for(var D=S+1,U=!0,q=w.entries(),X=q.next();!X.done;){var G=X.value,Y=G[0],T=Q?!0:G[1];if(xf(T)){U||g(","),U=!1;var I=M+"/"+ng(Y);y(D),b(I,"key"),g($f(Y)),b(I,"keyEnd"),g(":"),s&&g(" "),v(T,D,I)}X=q.next()}y(S),g("}")}else g("{}")}}function g(w){h+=w.length,p+=w.length,u+=w}function y(w){if(s){for(u+=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./
|
|
1
|
+
import{_ as S}from"./BF2Zv_ac.js";import{d as N,r as $,a as g,o as d,m as h,k as t,v as l,G as p,f as n,F as y,n as T,t as _,a9 as F,aL as B,i as m,aM as V,am as D,h as H,j as w,p as C}from"./BZflAdyk.js";import{_ as P}from"./BgwfQLiC.js";import{_ as j}from"./T04KvlgM.js";import"./L-yiqDbL.js";const E={"w-full":""},L={border:"b base"},O={"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":""},Y={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},G={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},M={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},R={"text-sm":""},U={"ws-nowrap":""},q={"text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-center":"","text-sm":""},Q={"w-0":"","text-right":"","text-sm":""},W=N({__name:"HooksTable",props:{hooks:{}},setup(x){const c=x,a=$("duration"),s=$("asc"),k={duration:(e,o)=>(o.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,o)=>e.name.localeCompare(o.name),listener:(e,o)=>o.listeners-e.listeners,start:(e,o)=>o.start-e.start,executions:(e,o)=>o.executions.length-e.executions.length},v=g(()=>c.hooks.map(e=>e.start).sort((e,o)=>e-o)),b=g(()=>{const e=k[a.value],o=[...c.hooks].sort(e);return s.value==="desc"&&o.reverse(),o});function u(e){const o=e.split(":");return o.length===1?"":`${o[0]}:`}function f(e){const o=e.split(":");return o.length===1?e:o.slice(1).join(":")}function i(e){a.value===e?s.value=s.value==="asc"?"desc":"asc":a.value=e}return(e,o)=>{const I=S;return d(),h("table",E,[t("thead",L,[t("tr",null,[t("th",O,[t("button",{onClick:o[0]||(o[0]=r=>i("start"))},[l(" Order "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="start"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",z,[t("button",{onClick:o[1]||(o[1]=r=>i("name"))},[l(" Hook name "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="name"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",A,[t("button",{onClick:o[2]||(o[2]=r=>i("listener"))},[l(" Listeners "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="listener"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",Y,[t("button",{onClick:o[3]||(o[3]=r=>i("executions"))},[l(" Executions "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="executions"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",G,[t("button",{onClick:o[4]||(o[4]=r=>i("duration"))},[l(" Duration "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="duration"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),t("tbody",null,[(d(!0),h(y,null,T(n(b),r=>(d(),h("tr",{key:r.name,border:"b dashed transparent hover:base"},[t("td",M,_(n(v).indexOf(r.start)),1),t("td",{"w-0":"","ws-nowrap":"","text-right":"",style:F({color:("getHashColorFromString"in e?e.getHashColorFromString:n(B))(u(r.name))})},[t("code",R,_(u(r.name)),1)],4),t("td",U,[t("code",q,_(f(r.name)),1)]),t("td",J,_(r.listeners),1),t("td",K,_(r.executions.length+1),1),t("td",Q,[m(I,{duration:r.duration},null,8,["duration"])])]))),128))])])}}}),X={class:"markdown-body"},Z=t("h1",null,"Hooks",-1),tt=t("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 "),t("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),ot=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1),et=[Z,tt,ot],nt={__name:"hooks",setup(x,{expose:c}){return c({frontmatter:{}}),(s,k)=>(d(),h("div",X,et))}},st=nt,dt=N({__name:"hooks",setup(x){const c=V(),a=D(),s=g(()=>a.value?.metrics.clientHooks());return(k,v)=>{const b=W,u=P,f=st,i=j;return d(),h(y,null,[t("div",null,[n(s)?.length?(d(),H(u,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n(s).length}`,padding:"pl4 pr6"},{default:w(()=>[m(b,{hooks:n(s)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0),n(c)?.length?(d(),H(u,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${n(c)?.length}`,padding:"pl4 pr6"},{default:w(()=>[m(b,{hooks:n(c)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0)]),m(i,null,{default:w(()=>[m(f)]),_:1})],64)}}});export{dt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as K}from"./
|
|
1
|
+
import{_ as K}from"./L-yiqDbL.js";import{_ as Q}from"./DLu2RzFt.js";import{d as X,am as Y,c2 as ee,aH as le,aD as E,m,i as t,k as e,F as v,n as N,f as n,j as a,L as oe,_ as te,at as ne,o as r,h as j,t as y,G as A,p as P,v as U,l as c,C as B,B as ae,bZ as se,c3 as ie}from"./BZflAdyk.js";import{_ as ue}from"./vukXLwum.js";import{_ as de}from"./x4RoSwOc.js";import{_ as re}from"./BD_-z3C6.js";const ce={px8:"",py6:""},pe={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},me={flex:"~ col gap-2"},_e=e("h3",{"text-lg":""}," Tabs ",-1),fe={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},ve={capitalize:"",op75:""},ge=e("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),he=e("div",{"flex-auto":""},null,-1),xe={flex:"~ col gap-2"},be=e("h3",{"text-lg":""}," Appearance ",-1),ye=e("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),ke=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),Ve=e("p",null,"UI Scale",-1),Ce=["value"],we=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),Te=e("span",null," Expand Sidebar ",-1),Se=e("span",null," Scrollable Sidebar ",-1),Ne=e("h3",{mt2:"","text-lg":""}," Features ",-1),Ue=e("span",null,"Close DevTools when clicking outside",-1),Oe=e("span",null,"Show help buttons",-1),$e=e("span",null,"Always show the floating panel",-1),Ie=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),De=e("p",null,"Minimize floating panel on inactive",-1),Be=["value"],ze=e("h3",{mt2:"","text-lg":""}," Feedback ",-1),Le=e("span",null,"Send anonymous statistics, help us improving DevTools",-1),Ee=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),je={flex:"~ gap-2"},Ae=e("div",{"i-carbon-data-enrichment":""},null,-1),Pe=e("div",{"i-carbon-debug":""},null,-1),Fe=e("h3",{mt2:"","text-lg":""}," Debug ",-1),Me={flex:"~ gap-2"},He=e("div",{"i-carbon-breaking-change":""},null,-1),Qe=X({__name:"settings",setup(Re){const{interactionCloseOnOutsideClick:k,showPanel:O,showHelpButtons:$,scale:I,hiddenTabs:g,pinnedTabs:u,hiddenTabCategories:h,minimizePanelInactive:V,sidebarExpanded:C,sidebarScrollable:D}=ae(),x=Y(),F=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],M=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],H=ee(le());function R(s,o){o?g.value=g.value.filter(d=>d!==s):g.value.push(s)}function G(s,o){o?h.value=h.value.filter(d=>d!==s):h.value.push(s)}function W(s){u.value.includes(s)?u.value=u.value.filter(o=>o!==s):u.value.push(s)}function z(s,o){const d=u.value.indexOf(s);if(d===-1)return;const _=d+o;if(_<0||_>=u.value.length)return;const b=[...u.value];b.splice(d,1),b.splice(_,0,s),u.value=b}async function Z(){confirm("Are you sure you to reset all local settings & state? The app will reload.")&&(Object.keys(localStorage).forEach(s=>{s.startsWith("nuxt-devtools-")&&localStorage.removeItem(s)}),await oe.clearOptions(),x.value?.app?.reload?.(),window.location.reload())}return E(()=>{x.value&&(x.value.app.frameState.value.closeOnOutsideClick=k.value)}),E(()=>{x.value&&(x.value.app.frameState.value.minimizePanelInactive=V.value)}),(s,o)=>{const d=K,_=Q,b=se,p=te,w=ne,q=ie,L=ue,f=de,J=re;return r(),m("div",ce,[t(d,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),e("div",pe,[e("div",me,[_e,(r(!0),m(v,null,N(n(H),([l,T])=>(r(),m(v,{key:l},[T.length?(r(),j(w,{key:0,p3:"",flex:"~ col gap-1",class:A(n(h).includes(l)?"op50 grayscale":"")},{default:a(()=>[t(_,{flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-lime":"","model-value":!n(h).includes(l),"onUpdate:modelValue":i=>G(l,i)},{default:a(()=>[e("div",fe,[e("span",ve,y(l),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),ge,(r(!0),m(v,null,N(T,i=>(r(),j(_,{key:i.name,flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-primary":"","model-value":!n(g).includes(i.name),"onUpdate:modelValue":S=>R(i.name,S)},{default:a(()=>[e("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"",class:A(n(g).includes(i.name)?"op25":"")},[t(b,{"text-xl":"",icon:i.icon,title:i.title},null,8,["icon","title"]),e("span",null,y(i.title),1),he,n(u).includes(i.name)?(r(),m(v,{key:0},[t(p,{icon:"i-carbon-caret-up",disabled:n(u).indexOf(i.name)===0,border:!1,onClick:S=>z(i.name,-1)},null,8,["disabled","onClick"]),t(p,{icon:"i-carbon-caret-down",disabled:n(u).indexOf(i.name)===n(u).length-1,border:!1,onClick:S=>z(i.name,1)},null,8,["disabled","onClick"])],64)):P("",!0),t(p,{icon:n(u).includes(i.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op50",border:!1,onClick:S=>W(i.name)},null,8,["icon","onClick"])],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):P("",!0)],64))),128))]),e("div",xe,[be,t(w,{p4:"",flex:"~ col gap-2"},{default:a(()=>[e("div",null,[t(q,null,{default:a(({toggle:l,isDark:T})=>[t(p,{n:"primary",onClick:l},{default:a(()=>[ye,U(" "+y(T.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),ke,Ve,t(L,{modelValue:n(I),"onUpdate:modelValue":o[0]||(o[0]=l=>c(I)?I.value=l:null),n:"primary"},{default:a(()=>[(r(),m(v,null,N(F,l=>e("option",{key:l[0],value:l[1]},y(l[0]),9,Ce)),64))]),_:1},8,["modelValue"]),we,t(f,{modelValue:n(C),"onUpdate:modelValue":o[1]||(o[1]=l=>c(C)?C.value=l:null),"n-primary":""},{default:a(()=>[Te]),_:1},8,["modelValue"]),t(f,{modelValue:n(D),"onUpdate:modelValue":o[2]||(o[2]=l=>c(D)?D.value=l:null),disabled:n(C),"n-primary":""},{default:a(()=>[Se]),_:1},8,["modelValue","disabled"])]),_:1}),Ne,t(w,{p4:"",flex:"~ col gap-2"},{default:a(()=>[t(f,{modelValue:n(k),"onUpdate:modelValue":o[3]||(o[3]=l=>c(k)?k.value=l:null),"n-primary":""},{default:a(()=>[Ue]),_:1},8,["modelValue"]),t(f,{modelValue:n($),"onUpdate:modelValue":o[4]||(o[4]=l=>c($)?$.value=l:null),"n-primary":""},{default:a(()=>[Oe]),_:1},8,["modelValue"]),t(f,{modelValue:n(O),"onUpdate:modelValue":o[5]||(o[5]=l=>c(O)?O.value=l:null),"n-primary":""},{default:a(()=>[$e]),_:1},8,["modelValue"]),Ie,De,t(L,{modelValue:n(V),"onUpdate:modelValue":o[6]||(o[6]=l=>c(V)?V.value=l:null),modelModifiers:{number:!0},"n-primary":""},{default:a(()=>[(r(),m(v,null,N(M,l=>e("option",{key:l[0],value:l[1]},y(l[0]),9,Be)),64))]),_:1},8,["modelValue"])]),_:1}),ze,t(w,{p4:"",flex:"~ col gap-2"},{default:a(()=>[t(f,{modelValue:n(B),"onUpdate:modelValue":o[7]||(o[7]=l=>c(B)?B.value=l:null),"n-primary":""},{default:a(()=>[Le,t(J,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op50:"",textContent:"Learn more"})]),_:1},8,["modelValue"]),Ee,e("div",je,[t(p,{n:"blue",to:"https://github.com/nuxt/devtools/discussions/29",target:"_blank"},{default:a(()=>[Ae,U(" Ideas & Suggestions ")]),_:1}),t(p,{n:"orange",to:"https://github.com/nuxt/devtools/issues",target:"_blank"},{default:a(()=>[Pe,U(" Bug Reports ")]),_:1})])]),_:1}),Fe,e("div",Me,[t(p,{n:"orange",onClick:Z},{default:a(()=>[He,U(" Reset Local Settings & State ")]),_:1})])])])])}}});export{Qe as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as N,a as C,aZ as oe,e as ne,ac as H,r as A,f as t,h as I,j as _,p as x,o,k as e,m as s,n as B,G as O,t as p,F as T,i as d,v as $,at as V,_ as J,a9 as R,a_ as P,a$ as se,b0 as ae,b1 as re,y as ie,z as ce,q as le,b2 as de,b3 as pe,b4 as me,b as ue,b5 as ge,b6 as he,b7 as _e,b8 as G,aC 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,aZ as oe,e as ne,ac as H,r as A,f as t,h as I,j as _,p as x,o,k as e,m as s,n as B,G as O,t as p,F as T,i as d,v as $,at as V,_ as J,a9 as R,a_ as P,a$ as se,b0 as ae,b1 as re,y as ie,z as ce,q as le,b2 as de,b3 as pe,b4 as me,b as ue,b5 as ge,b6 as he,b7 as _e,b8 as G,aC as fe,a2 as ve,l as be,ae as we,I as z,X as xe}from"./BZflAdyk.js";import{_ as ye}from"./2WsLw058.js";import{_ as U}from"./BD_-z3C6.js";import{_ as q}from"./BgwfQLiC.js";import{_ as ke}from"./B2aNs1qV.js";import{_ as $e}from"./T04KvlgM.js";import"./L-yiqDbL.js";import"./CTgwY-nX.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 a=h,l=C(()=>K.filter(r=>!a.tags?.some(g=>g.name===r.name))),n=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=ne(),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(),s(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),s(T,null,B(t(l),(i,c)=>(o(),s(T,{key:c},[c?(o(),s("div",Ne)):x("",!0),c?(o(),s("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(),s("div",Be,[e("p",Re,[d(S,{icon:"carbon-copy",n:"xs","px-2":"",onClick:g[0]||(g[0]=i=>t(m)(t(n),"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(),s("span",Le,"page component")),$(" to full fill the missing tags. ")]),d(u,{relative:"","n-code-block":""},{default:_(()=>[d(M,{code:t(n),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(n),"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(a,l)=>(o(),s("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(a.card.image)})`})},null,4),e("div",ze,[e("div",Ee,p(a.card.url),1),e("div",Ge,[e("div",He,p(a.card.title),1),e("div",Ve,p(a.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]"},We={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},Xe=N({__name:"SocialTwitter",props:{tags:{}},setup(h){const a=h,l=C(()=>P(a.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"}]})),n=C(()=>l.value.image?a.tags.find(m=>m.tag==="meta"&&m.name==="twitter:card")?.value||"summary_large_image":"summary");return(m,y)=>(o(),s("div",Pe,[e("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",t(n)==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[t(n)==="summary_large_image"?(o(),s("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(),s("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",We,p(t(l).description),1)])],2)]))}}),Ye={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(a,l)=>(o(),s("div",Ye,[e("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(a.card.image)})`})},null,4),e("div",Ze,[e("div",Qe,[e("div",et,p(a.card.title),1),e("div",tt,p(a.card.url),1)])])]))}}),nt=h=>(ie("data-v-6d584478"),h=h(),ce(),h),st={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"},at={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=nt(()=>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 a=se(),l=ae(re(),"HH:mm");return(n,m)=>(o(),s("div",st,[e("div",at,[e("div",rt,p(n.card.url),1),e("div",it,[e("div",ct,[n.card.image?(o(),s("div",lt,[e("img",{class:"h-full max-w-full w-full rounded object-cover",src:n.card.image},null,8,dt)])):x("",!0),e("div",pt,[e("strong",null,p(t(a).hostname),1)]),e("div",mt,[e("strong",null,p(n.card.title),1)]),e("div",ut,p(n.card.description),1)])]),e("div",gt,[e("span",null,p(t(l)),1)])]),ht]))}}),ft=le(_t,[["__scopeId","data-v-6d584478"]]),vt={flex:"~ col","w-full":""},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 a=h,l=["twitter","facebook","linkedin","telegram"],n=de("nuxt-devtools-social-preview-tab",l[0]),m=C(()=>P(a.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=Xe,g=ot,b=ft;return o(),s("div",vt,[e("div",bt,[(o(),s(T,null,B(l,(u,S)=>e("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(u===t(n)?"":"border-b"),onClick:M=>n.value=u},[e("div",{class:O(u===t(n)?"":"op30"),capitalize:""},p(u),3)],10,wt)),64)),xt]),e("div",yt,[t(n)==="facebook"?(o(),s("div",kt,[d(f,{card:t(m)},null,8,["card"])])):t(n)==="twitter"?(o(),s("div",$t,[d(r,{tags:y.tags},null,8,["tags"])])):t(n)==="linkedin"?(o(),s("div",St,[d(g,{card:t(m)},null,8,["card"])])):t(n)==="telegram"?(o(),s("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:a}){return a({frontmatter:{}}),(n,m)=>(o(),s("div",Nt,Ot))}},At=It,Bt={grid:"~ lg:cols-2","h-full":"","w-full":"","of-hidden":""},Rt={"flex-auto":"","of-auto":""},Lt={"flex-none":"",flex:"~ gap2 items-center"},jt={flex:"~ col"},Ft={key:0,"x-divider":""},Dt={key:1,"x-divider":""},zt={mr2:"",px4:"",py2:""},Kt=N({__name:"open-graph",setup(h){const a=A(0),l=me(),n=ue(async()=>(a.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(){a.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,W=ye,E=U,X=V,Y=q,Z=Fe,Q=Ct,ee=At,te=$e,F=ve("tooltip");return o(),s(T,null,[e("div",Bt,[e("div",Rt,[d(W,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",Lt,[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",jt,[d(Y,{text:"Tags",icon:"carbon:tag-group"},{default:_(()=>[d(X,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),s(T,null,B(t(n),(w,D)=>(o(),s(T,{key:D},[D?(o(),s("div",Ft)):x("",!0),D?(o(),s("div",Dt)):x("",!0),e("div",zt,[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(n),"matched-route-filepath":t(M)},null,8,["tags","matched-route-filepath"])])]),t(m)&&t(n)?.length?(o(),I(Q,{key:0,tags:t(n),"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{Kt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from"./BMbUeBqv.js";import e from"./
|
|
1
|
+
import n from"./BMbUeBqv.js";import e from"./CHuuZgn4.js";import t from"./BiWblMbN.js";import a from"./_ECCzcZq.js";import u from"./Q9LIRUci.js";import m from"./DHFOa8tC.js";const p=Object.freeze({displayName:"Markdown",name:"markdown",patterns:[{include:"#frontMatter"},{include:"#block"}],repository:{ampersand:{comment:"Markdown will convert this for us. We match it so that the HTML grammar will not mark it up as invalid.",match:"&(?!([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);)",name:"meta.other.valid-ampersand.markdown"},block:{patterns:[{include:"#separator"},{include:"#heading"},{include:"#blockquote"},{include:"#lists"},{include:"#fenced_code_block"},{include:"#raw_block"},{include:"#link-def"},{include:"#html"},{include:"#table"},{include:"#paragraph"}]},blockquote:{begin:"(^|\\G)[ ]{0,3}(>) ?",captures:{2:{name:"punctuation.definition.quote.begin.markdown"}},name:"markup.quote.markdown",patterns:[{include:"#block"}],while:"(^|\\G)\\s*(>) ?"},bold:{begin:`(?x) (?<open>(\\*\\*(?=\\w)|(?<!\\w)\\*\\*|(?<!\\w)\\b__))(?=\\S) (?=
|
|
2
2
|
(
|
|
3
3
|
<[^>]*+>
|
|
4
4
|
| (?<raw>\`+)([^\`]|(?!(?<!\`)\\k<raw>(?!\`))\`)*+\\k<raw>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bl as f,c1 as r}from"./
|
|
1
|
+
import{bl as f,c1 as r}from"./BZflAdyk.js";let e;const n=[];function s(i){if(n.push(i),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&n.forEach(o=>o(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(o){o&&n.forEach(t=>t(o))},get(){return e.value},configurable:!0}),()=>{n.splice(n.indexOf(i),1)}}function u(){e||(e=f(),s(o));function i(){e&&r(e)}function o(t){e.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",i)}return e}const c=u();export{c as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as p}from"./
|
|
1
|
+
import{_ as p}from"./BFisL5PK.js";import{d as m,ab as _,m as r,F as s,n as f,o as n,k as o,t as h,h as d,p as k}from"./BZflAdyk.js";const g={mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},x={"text-right":""},N={"ws-nowrap":""},y=m({__name:"StacktraceList",props:{stacktrace:{}},setup($){const i=_();function c(a){try{let t=new URL(a).pathname;return t.startsWith("/_nuxt/")&&(t=t.slice(6)),t.startsWith("/@id/virtual:nuxt:")?`#build/${t.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):t.includes("/@fs/")?`/${t.split("/@fs/")[1]}`:(i.value?.rootDir||"")+t}catch{return a}}return(a,t)=>{const l=p;return n(),r("div",g,[(n(!0),r(s,null,f(a.stacktrace,(e,u)=>(n(),r(s,{key:u},[o("div",x,h(e.functionName||"(anonymous)"),1),o("div",N,[e.fileName?(n(),d(l,{key:0,filepath:`${c(e.fileName)}:${e.lineNumber}:${e.columnNumber}`,subpath:""},null,8,["filepath"])):k("",!0)])],64))),128))])}}});export{y as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import t from"./
|
|
1
|
+
import t from"./Dch3xQiY.js";import e from"./CbYhyuC0.js";const n=Object.freeze({displayName:"HTML",injections:{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{comment:"Uses R: to ensure this matches after any other injections.",patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"html",patterns:[{include:"#xml-processing"},{include:"#comment"},{include:"#doctype"},{include:"#cdata"},{include:"#tags-valid"},{include:"#tags-invalid"},{include:"#entities"}],repository:{attribute:{patterns:[{begin:"(s(hape|cope|t(ep|art)|ize(s)?|p(ellcheck|an)|elected|lot|andbox|rc(set|doc|lang)?)|h(ttp-equiv|i(dden|gh)|e(ight|aders)|ref(lang)?)|n(o(nce|validate|module)|ame)|c(h(ecked|arset)|ite|o(nt(ent(editable)?|rols)|ords|l(s(pan)?|or))|lass|rossorigin)|t(ype(mustmatch)?|itle|a(rget|bindex)|ranslate)|i(s(map)?|n(tegrity|putmode)|tem(scope|type|id|prop|ref)|d)|op(timum|en)|d(i(sabled|r(name)?)|ownload|e(coding|f(er|ault))|at(etime|a)|raggable)|usemap|p(ing|oster|la(ysinline|ceholder)|attern|reload)|enctype|value|kind|for(m(novalidate|target|enctype|action|method)?)?|w(idth|rap)|l(ist|o(op|w)|a(ng|bel))|a(s(ync)?|c(ce(sskey|pt(-charset)?)|tion)|uto(c(omplete|apitalize)|play|focus)|l(t|low(usermedia|paymentrequest|fullscreen))|bbr)|r(ows(pan)?|e(versed|quired|ferrerpolicy|l|adonly))|m(in(length)?|u(ted|ltiple)|e(thod|dia)|a(nifest|x(length)?)))(?![\\w:-])",beginCaptures:{0:{name:"entity.other.attribute-name.html"}},comment:"HTML5 attributes, not event handlers",end:"(?=\\s*+[^=\\s])",name:"meta.attribute.$1.html",patterns:[{include:"#attribute-interior"}]},{begin:"style(?![\\w:-])",beginCaptures:{0:{name:"entity.other.attribute-name.html"}},comment:"HTML5 style attribute",end:"(?=\\s*+[^=\\s])",name:"meta.attribute.style.html",patterns:[{begin:"=",beginCaptures:{0:{name:"punctuation.separator.key-value.html"}},end:"(?<=[^\\s=])(?!\\s*=)|(?=/?>)",patterns:[{begin:"(?=[^\\s=<>`/]|/(?!>))",end:"(?!\\G)",name:"meta.embedded.line.css",patterns:[{captures:{0:{name:"source.css"}},match:"([^\\s\"'=<>`/]|/(?!>))+",name:"string.unquoted.html"},{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"source.css",end:'(")',endCaptures:{0:{name:"punctuation.definition.string.end.html"},1:{name:"source.css"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"source.css",end:"(')",endCaptures:{0:{name:"punctuation.definition.string.end.html"},1:{name:"source.css"}},name:"string.quoted.single.html",patterns:[{include:"#entities"}]}]},{match:"=",name:"invalid.illegal.unexpected-equals-sign.html"}]}]},{begin:"on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o(nline|ffline)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d(data|metadata)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur))(?![\\w:-])",beginCaptures:{0:{name:"entity.other.attribute-name.html"}},comment:"HTML5 attributes, event handlers",end:"(?=\\s*+[^=\\s])",name:"meta.attribute.event-handler.$1.html",patterns:[{begin:"=",beginCaptures:{0:{name:"punctuation.separator.key-value.html"}},end:"(?<=[^\\s=])(?!\\s*=)|(?=/?>)",patterns:[{begin:"(?=[^\\s=<>`/]|/(?!>))",end:"(?!\\G)",name:"meta.embedded.line.js",patterns:[{captures:{0:{name:"source.js"},1:{patterns:[{include:"source.js"}]}},match:"(([^\\s\"'=<>`/]|/(?!>))+)",name:"string.unquoted.html"},{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"source.js",end:'(")',endCaptures:{0:{name:"punctuation.definition.string.end.html"},1:{name:"source.js"}},name:"string.quoted.double.html",patterns:[{captures:{0:{patterns:[{include:"source.js"}]}},match:'([^\\n"/]|/(?![/*]))+'},{begin:"//",beginCaptures:{0:{name:"punctuation.definition.comment.js"}},end:'(?=")|\\n',name:"comment.line.double-slash.js"},{begin:"/\\*",beginCaptures:{0:{name:"punctuation.definition.comment.begin.js"}},end:'(?=")|\\*/',endCaptures:{0:{name:"punctuation.definition.comment.end.js"}},name:"comment.block.js"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"source.js",end:"(')",endCaptures:{0:{name:"punctuation.definition.string.end.html"},1:{name:"source.js"}},name:"string.quoted.single.html",patterns:[{captures:{0:{patterns:[{include:"source.js"}]}},match:"([^\\n'/]|/(?![/*]))+"},{begin:"//",beginCaptures:{0:{name:"punctuation.definition.comment.js"}},end:"(?=')|\\n",name:"comment.line.double-slash.js"},{begin:"/\\*",beginCaptures:{0:{name:"punctuation.definition.comment.begin.js"}},end:"(?=')|\\*/",endCaptures:{0:{name:"punctuation.definition.comment.end.js"}},name:"comment.block.js"}]}]},{match:"=",name:"invalid.illegal.unexpected-equals-sign.html"}]}]},{begin:"(data-[a-z\\-]+)(?![\\w:-])",beginCaptures:{0:{name:"entity.other.attribute-name.html"}},comment:"HTML5 attributes, data-*",end:"(?=\\s*+[^=\\s])",name:"meta.attribute.data-x.$1.html",patterns:[{include:"#attribute-interior"}]},{begin:"(align|bgcolor|border)(?![\\w:-])",beginCaptures:{0:{name:"invalid.deprecated.entity.other.attribute-name.html"}},comment:"HTML attributes, deprecated",end:"(?=\\s*+[^=\\s])",name:"meta.attribute.$1.html",patterns:[{include:"#attribute-interior"}]},{begin:`([^\\x{0020}"'<>/=\\x{0000}-\\x{001F}\\x{007F}-\\x{009F}\\x{FDD0}-\\x{FDEF}\\x{FFFE}\\x{FFFF}\\x{1FFFE}\\x{1FFFF}\\x{2FFFE}\\x{2FFFF}\\x{3FFFE}\\x{3FFFF}\\x{4FFFE}\\x{4FFFF}\\x{5FFFE}\\x{5FFFF}\\x{6FFFE}\\x{6FFFF}\\x{7FFFE}\\x{7FFFF}\\x{8FFFE}\\x{8FFFF}\\x{9FFFE}\\x{9FFFF}\\x{AFFFE}\\x{AFFFF}\\x{BFFFE}\\x{BFFFF}\\x{CFFFE}\\x{CFFFF}\\x{DFFFE}\\x{DFFFF}\\x{EFFFE}\\x{EFFFF}\\x{FFFFE}\\x{FFFFF}\\x{10FFFE}\\x{10FFFF}]+)`,beginCaptures:{0:{name:"entity.other.attribute-name.html"}},comment:"Anything else that is valid",end:"(?=\\s*+[^=\\s])",name:"meta.attribute.unrecognized.$1.html",patterns:[{include:"#attribute-interior"}]},{match:"[^\\s>]+",name:"invalid.illegal.character-not-allowed-here.html"}]},"attribute-interior":{patterns:[{begin:"=",beginCaptures:{0:{name:"punctuation.separator.key-value.html"}},end:"(?<=[^\\s=])(?!\\s*=)|(?=/?>)",patterns:[{match:"([^\\s\"'=<>`/]|/(?!>))+",name:"string.unquoted.html"},{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"#entities"}]},{match:"=",name:"invalid.illegal.unexpected-equals-sign.html"}]}]},cdata:{begin:"<!\\[CDATA\\[",beginCaptures:{0:{name:"punctuation.definition.tag.begin.html"}},contentName:"string.other.inline-data.html",end:"]]>",endCaptures:{0:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.metadata.cdata.html"},comment:{begin:"<!--",captures:{0:{name:"punctuation.definition.comment.html"}},end:"-->",name:"comment.block.html",patterns:[{match:"\\G-?>",name:"invalid.illegal.characters-not-allowed-here.html"},{match:"<!--(?!>)|<!-(?=-->)",name:"invalid.illegal.characters-not-allowed-here.html"},{match:"--!>",name:"invalid.illegal.characters-not-allowed-here.html"}]},"core-minus-invalid":{comment:"This should be the root pattern array includes minus #tags-invalid",patterns:[{include:"#xml-processing"},{include:"#comment"},{include:"#doctype"},{include:"#cdata"},{include:"#tags-valid"},{include:"#entities"}]},doctype:{begin:"<!(?=(?i:DOCTYPE\\s))",beginCaptures:{0:{name:"punctuation.definition.tag.begin.html"}},end:">",endCaptures:{0:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.metadata.doctype.html",patterns:[{match:"\\G(?i:DOCTYPE)",name:"entity.name.tag.html"},{begin:'"',end:'"',name:"string.quoted.double.html"},{match:"[^\\s>]+",name:"entity.other.attribute-name.html"}]},entities:{patterns:[{captures:{1:{name:"punctuation.definition.entity.html"},912:{name:"punctuation.definition.entity.html"}},comment:"Yes this is a bit ridiculous, there are quite a lot of these",match:`(?x)
|
|
2
2
|
(&) (?=[a-zA-Z])
|
|
3
3
|
(
|
|
4
4
|
(a(s(ymp(eq)?|cr|t)|n(d(slope|d|v|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a(h|c|d|e|f|a|g|b))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|e|E|acir)?|elig|f(r)?|w(conint|int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as w}from"./
|
|
1
|
+
import{_ as w}from"./2WsLw058.js";import{_ as B}from"./B2aNs1qV.js";import{o as c,m as _,k as s,d as S,r as h,b$ as j,c0 as P,aD as U,a as p,ah as E,i as l,j as u,F as f,U as G,f as i,l as I,n as R,t as v,G as W,h as z,at as A,A as H}from"./BZflAdyk.js";import{_ as L}from"./T04KvlgM.js";import"./CTgwY-nX.js";const q={class:"markdown-body"},J=s("h1",null,"Virtual Files",-1),K=s("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1),M=[J,K],O={__name:"virtual-files",setup(x,{expose:o}){return o({frontmatter:{}}),(d,a)=>(c(),_("div",q,M))}},Q=O,T=["onClick"],X=s("div",{"x-divider":""},null,-1),Y={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Z={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},ee=s("span",{op75:""},"Select a file to start",-1),le=S({__name:"virtual-files",setup(x){const o=h(""),n=j(),d=P(),a=h();U(()=>{if(!d.value)return;const e=`/_vfs.json/${encodeURIComponent(d.value)}`;fetch(e,{headers:{accept:"application/json"}}).then(t=>t.json()).then(t=>a.value=t.current)});function k(e){if(n.value?.rootDir)return e.startsWith(n.value?.rootDir)?e.slice(n.value.rootDir.length):e}const m=p(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),y=p(()=>new E(m.value,{keys:["id","path"]})),b=p(()=>o.value?y.value.search(o.value).map(e=>e.item):m.value);return(e,t)=>{const $=w,g=B,C=A,F=H,N=G,D=Q,V=L;return c(),_(f,null,[l(N,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:u(()=>[l($,{search:i(o),"onUpdate:search":t[0]||(t[0]=r=>I(o)?o.value=r:null),"no-padding":"",p3:""},null,8,["search"]),(c(!0),_(f,null,R(i(b),r=>(c(),_(f,{key:r.id},[s("button",{block:"","w-full":"","select-none":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:W(r.id===i(a)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:te=>d.value=r.id},v(k(r.id)),11,T),X],64))),128))]),right:u(()=>[i(a)?.content?(c(),_("div",Y,[s("div",Z,[s("code",null,v(i(a).id),1)]),l(g,{"h-full":"","of-auto":"","text-sm":"",code:i(a).content,lang:"typescript"},null,8,["code"])])):(c(),z(F,{key:1},{default:u(()=>[l(C,{px6:"",py2:""},{default:u(()=>[ee]),_:1})]),_:1}))]),_:1}),l(V,null,{default:u(()=>[l(D)]),_:1})],64)}}});export{le as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,h as a,j as o,A as w,o as n,i as r,k as i,t as m,p as l,m as C,n as B,ay as V,v as $,F as v,V as P,bZ as F,a6 as I,_ as L,at as T}from"./
|
|
1
|
+
import{d as y,h as a,j as o,A as w,o as n,i as r,k as i,t as m,p as l,m as C,n as B,ay as V,v as $,F as v,V as P,bZ as F,a6 as I,_ as L,at as T}from"./BZflAdyk.js";import{_ as j}from"./BRmBiXYU.js";const A={"text-xl":""},D={flex:"~ gap2 wrap"},S=y({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(_,{emit:p}){const d=_,u=p;function f(e,s){P("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const k=F,g=j,h=I,b=L,N=T,x=w;return n(),a(x,null,{default:o(()=>[r(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[r(k,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",A,m(e.title),1),e.description?(n(),a(g,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):l("",!0),i("div",D,[(n(!0),C(v,null,B(e.actions,(t,c)=>(n(),a(b,V({key:c,n:"solid primary",disabled:t.pending,to:t.src,target:t.src?"_blank":void 0,ref_for:!0},t.attrs,{onClick:E=>f(t,c)}),{default:o(()=>[t.pending?(n(),a(h,{key:0,icon:"carbon-circle-dash","animate-spin":""})):l("",!0),$(" "+m(t.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{S as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as o,m as t,aa as s,o as a}from"./
|
|
1
|
+
import{q as o,m as t,aa as s,o as a}from"./BZflAdyk.js";const r={},c={"h-full":"","of-auto":""};function n(e,l){return a(),t("div",c,[s(e.$slots,"default")])}const _=o(r,[["render",n]]);export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as s,s as a,o as i,m as u,k as e,t as o,i as c,j as d,v as l,x as p,y as h,z as g}from"./
|
|
1
|
+
import{q as s,s as a,o as i,m as u,k as e,t as o,i as c,j as d,v as l,x as p,y as h,z as g}from"./BZflAdyk.js";const f=t=>(h("data-v-551d0712"),t=t(),g(),t),b={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},x=f(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),m={class:"max-w-520px text-center z-20"},y=["textContent"],k=["textContent"],_={class:"w-full flex items-center justify-center"},w={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"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(t){const n=t;return a({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;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;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--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 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(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: }'}]}),(z,v)=>{const r=p;return i(),u("div",b,[x,e("div",m,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(t.statusCode)},null,8,y),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(t.description)},null,8,k),e("div",_,[c(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:d(()=>[l(o(t.backHome),1)]),_:1})])])])}}},C=s(w,[["__scopeId","data-v-551d0712"]]);export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"./CTKqK4eG.js";import e from"./
|
|
1
|
+
import t from"./CTKqK4eG.js";import e from"./CHuuZgn4.js";import"./BMbUeBqv.js";import"./BiWblMbN.js";import"./_ECCzcZq.js";import"./Q9LIRUci.js";import"./DHFOa8tC.js";const n=Object.freeze({displayName:"Vue HTML",fileTypes:[],name:"vue-html",patterns:[{include:"source.vue#vue-interpolations"},{begin:"(<)([A-Z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"support.class.component.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<)([a-z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"entity.name.tag.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<\\?)(xml)",captures:{1:{name:"punctuation.definition.tag.html"},2:{name:"entity.name.tag.xml.html"}},end:"(\\?>)",name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:"<!--",captures:{0:{name:"punctuation.definition.comment.html"}},end:"-->",name:"comment.block.html"},{begin:"<!",captures:{0:{name:"punctuation.definition.tag.html"}},end:">",name:"meta.tag.sgml.html",patterns:[{begin:"(?i:DOCTYPE)",captures:{1:{name:"entity.name.tag.doctype.html"}},end:"(?=>)",name:"meta.tag.sgml.doctype.html",patterns:[{match:'"[^">]*"',name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:"\\[CDATA\\[",end:"]](?=>)",name:"constant.other.inline-data.html"},{match:"(\\s*)(?!--|>)\\S(\\s*)",name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:"(</?)([A-Z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:body|head|html)\\b)",captures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.structure.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.inline.any.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-zA-Z0-9:-]+)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.other.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:"<>",name:"invalid.illegal.incomplete.html"},{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}],repository:{entities:{patterns:[{captures:{1:{name:"punctuation.definition.entity.html"},3:{name:"punctuation.definition.entity.html"}},match:"(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",name:"constant.character.entity.html"},{match:"&",name:"invalid.illegal.bad-ampersand.html"}]},"string-double-quoted":{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"string-single-quoted":{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"tag-generic-attribute":{match:"(?<=[^=])\\b([a-zA-Z0-9:\\-_]+)",name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:"\\b(id)\\b\\s*(=)",captures:{1:{name:"entity.other.attribute-name.id.html"},2:{name:"punctuation.separator.key-value.html"}},end:`(?!\\G)(?<='|"|[^\\s<>/])`,name:"meta.attribute-with-value.id.html",patterns:[{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{captures:{0:{name:"meta.toc-list.id.html"}},match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"}]},"tag-stuff":{patterns:[{include:"#vue-directives"},{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#unquoted-attribute"}]},"unquoted-attribute":{match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"},"vue-directives":{begin:"(?:\\b(v-)|(:|@|#))([a-zA-Z0-9\\-_]+)(?:\\:([a-zA-Z\\-_]+))?(?:\\.([a-zA-Z\\-_]+))*\\s*(=)",captures:{1:{name:"entity.other.attribute-name.html"},2:{name:"punctuation.separator.key-value.html"},3:{name:"entity.other.attribute-name.html"},4:{name:"entity.other.attribute-name.html"},5:{name:"entity.other.attribute-name.html"},6:{name:"punctuation.separator.key-value.html"}},end:"(?<='|\")|(?=[\\s<>`])",name:"meta.directive.vue",patterns:[{begin:"`",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"`",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]}]}},scopeName:"text.html.vue-html",embeddedLangs:["vue","javascript"]});var d=[...t,...e,n];export{d as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as q,a0 as te,r as E,a1 as J,a2 as ne,m as u,I as X,i as d,f as t,k as e,v as D,F as M,n as Z,h as V,j as x,p as I,G as Q,a3 as pe,a4 as me,V as fe,L as W,M as H,a5 as O,_ as oe,o as s,a6 as se,X as ae,a as S,a7 as ve,a8 as he,a9 as ie,t as F,aa as _e,l as R,b as le,ab as ge,e as xe,ac as be,ad as we,ae as ye,af as $e,Z as ke,ag as Ce,ah as Ve,ai as Pe,aj as Ae,ak as De}from"./
|
|
1
|
+
import{d as q,a0 as te,r as E,a1 as J,a2 as ne,m as u,I as X,i as d,f as t,k as e,v as D,F as M,n as Z,h as V,j as x,p as I,G as Q,a3 as pe,a4 as me,V as fe,L as W,M as H,a5 as O,_ as oe,o as s,a6 as se,X as ae,a as S,a7 as ve,a8 as he,a9 as ie,t as F,aa as _e,l as R,b as le,ab as ge,e as xe,ac as be,ad as we,ae as ye,af as $e,Z as ke,ag as Ce,ah as Ve,ai as Pe,aj as Ae,ak as De}from"./BZflAdyk.js";import{_ as Fe}from"./x4RoSwOc.js";import{_ as Ne}from"./BQnF4QpF.js";import{_ as Ie}from"./2WsLw058.js";import{_ as Se}from"./BgwfQLiC.js";import{_ as Te}from"./BFisL5PK.js";import{_ as Ue}from"./DLUNO0Xm.js";import{_ as je}from"./BwlD2UKZ.js";import{D as Ee}from"./BcJws1i5.js";import"./L-yiqDbL.js";import"./B2aNs1qV.js";import"./CTgwY-nX.js";const Le={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Be={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},Me={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},ze=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),Oe={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Re={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Ke=["src"],Xe={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ze=q({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(B){const l=B,m=te(l,"modelValue"),k=E(),o=E([]);function f(a){k.value=a.target,m.value=!0}function b(a){a.target===k.value&&(m.value=!1)}function T(a){a.preventDefault()}function P(a){a.preventDefault(),v(a.dataTransfer.files)}function v(a){const _=Array.from(a||[]);if(_.length){const g=[],w=o.value.map(r=>r.name);for(const r of _)if(w.includes(r.name)){let A=1;const[y,U]=r.name.split(".");for(;w.includes(`${y} (${A}).${U}`);)A++;const K=`${y}-${A}.${U}`,i=new Blob([r],{type:r.type}),n=new File([i],K,{lastModified:Date.now()});g.push(n),w.push(K)}else r.type===""&&O({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),g.push(r);o.value=[...o.value,...g]}}async function L(){if(pe.value||me.value)return;fe("assets:upload");const a=[];for(const _ of o.value){const g=new FileReader;g.readAsDataURL(_);const r=(await new Promise(A=>{g.onload=()=>A(g.result)})).split(";base64,").pop();a.push({path:_.name,encoding:"base64",content:r})}await W.writeStaticAssets(await H(),[...a],l.folder).then(()=>{p(),O({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(_=>{p(),O({message:`Error uploading files: ${_?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),m.value=!1}function G(a){o.value?.splice(a,1)}function z(a){return URL.createObjectURL(a)}function h(a,_){const[g,w]=a.name.split("."),r=_.replace(/\.\w+$/,""),A=`${r}.${w}`;return r.length===0?(alert("File name must be at least 1 characters long"),g):(Object.defineProperty(a,"name",{value:A,writable:!1}),o.value.splice(o.value.indexOf(a),1,a),a)}function c(){o.value=[]}function p(){m.value=!1,c()}return J("dragenter",f),J("dragleave",b),J("dragover",T),J("drop",P),(a,_)=>{const g=oe,w=se,r=ae,A=ne("tooltip");return s(),u("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Q(t(m)?"opacity-100 visible":"opacity-0 invisible")},[X(d(g,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[A,"Close",void 0,{"bottom-end":!0}]]),t(o)?.length?(s(),u("div",Me,[ze,e("div",Oe,[(s(!0),u(M,null,Z(t(o),(y,U)=>(s(),u("div",{key:y.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[e("div",Re,[e("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:z(y)},null,8,Ke)]),e("div",Xe,[d(r,{n:"xs","h-full":"","flex-auto":"","model-value":y.name,"onUpdate:modelValue":K=>h(y,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(g,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>G(U)},null,8,["onClick"])])]))),128))]),e("div",Ge,[t(o).length?(s(),V(g,{key:0,n:"red",onClick:c},{default:x(()=>[d(w,{icon:"carbon-clean"}),D(" Clear ")]),_:1})):I("",!0),d(g,{disabled:!t(o).length,n:"primary solid",onClick:L},{default:x(()=>[d(w,{icon:"carbon-cloud-upload"}),D(" Upload ")]),_:1},8,["disabled"])])])):(s(),u("div",Le,[e("label",Be,[d(w,{icon:"carbon-cloud-upload","mr-2":""}),D(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:_[0]||(_[0]=y=>v(y.target.files))},null,32)]))],2)}}}),qe=q({__name:"AssetFontPreview",props:{asset:{}},setup(B){const l=B,m=S(()=>`devtools-assets-${ve(l.asset)}`);return he(S(()=>`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: '${m.value}';
|
|
4
4
|
src: url('${l.asset.publicPath}');
|