@nuxt/devtools 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +1 -1
- package/dist/chunks/vite-inspect.mjs +1 -1
- package/dist/client/200.html +16 -16
- package/dist/client/404.html +16 -16
- package/dist/client/_nuxt/{Q7nnK7Qc.js → 0ECj5KoP.js} +1 -1
- package/dist/client/_nuxt/{CfHFjL7B.js → 5gOKvhnM.js} +1 -1
- package/dist/client/_nuxt/{ZE0VCOak.js → 8M2ZArSR.js} +1 -1
- package/dist/client/_nuxt/{umEljDYG.js → 9nmHRZiL.js} +1 -1
- package/dist/client/_nuxt/{BnAGfJBz.js → B-KlQcCq.js} +1 -1
- package/dist/client/_nuxt/{Bf1S6EjZ.js → B1Qvv_W6.js} +1 -1
- package/dist/client/_nuxt/{SL4hgOWE.js → B34u2F_K.js} +1 -1
- package/dist/client/_nuxt/{A7mPcb2X.js → B3w9ZjT2.js} +1 -1
- package/dist/client/_nuxt/{qconjYUY.js → BDGXTeaJ.js} +1 -1
- package/dist/client/_nuxt/{BbLu0gK3.js → BUdaSSAW.js} +1 -1
- package/dist/client/_nuxt/{DGRvMt5e.js → B_BLxwpg.js} +1 -1
- package/dist/client/_nuxt/{rsCuH6KG.js → B_hov9lI.js} +1 -1
- package/dist/client/_nuxt/{C18DXqvQ.js → BdVFjCXC.js} +1 -1
- package/dist/client/_nuxt/{B2r_b20K.js → BflD8-TM.js} +1 -1
- package/dist/client/_nuxt/{CONeJx-f.js → BgFcW465.js} +1 -1
- package/dist/client/_nuxt/{CImIArwG.js → BhKjQrbd.js} +1 -1
- package/dist/client/_nuxt/{CyMn_7E8.js → Bj3Bekvw.js} +1 -1
- package/dist/client/_nuxt/{DUJvhUDB.js → BnSh6hlr.js} +1 -1
- package/dist/client/_nuxt/{c4U6bssZ.js → Br83zsHb.js} +1 -1
- package/dist/client/_nuxt/{C1lMG4ou.js → BrC6rypa.js} +1 -1
- package/dist/client/_nuxt/{DyyV4TBn.js → ByczdwHV.js} +1 -1
- package/dist/client/_nuxt/{BJ340BMQ.js → BzxmABFR.js} +1 -1
- package/dist/client/_nuxt/{BAELqe1b.js → C8hDz-wQ.js} +1 -1
- package/dist/client/_nuxt/{E5bzeklK.js → CES52tjx.js} +1 -1
- package/dist/client/_nuxt/{MnF_lTcE.js → CEdN8S4v.js} +1 -1
- package/dist/client/_nuxt/{DAHuBrvD.js → CHgHv_XG.js} +1 -1
- package/dist/client/_nuxt/{Cmwp7sVR.js → CKA-9FRr.js} +1 -1
- package/dist/client/_nuxt/{CkIDxyWJ.js → CY0uLiRl.js} +1 -1
- package/dist/client/_nuxt/{MCXdiprW.js → Caokbars.js} +1 -1
- package/dist/client/_nuxt/{bXdL5_p6.js → CfWZksSX.js} +1 -1
- package/dist/client/_nuxt/{rxQ7aZDp.js → CgqO_dPK.js} +12 -12
- package/dist/client/_nuxt/{BkmU8no0.js → ChZyr1Qo.js} +1 -1
- package/dist/client/_nuxt/{DNxVz1bn.js → CulMtG1h.js} +1 -1
- package/dist/client/_nuxt/{Bc-Wv2Rh.js → CwJAxf0e.js} +1 -1
- package/dist/client/_nuxt/{vjZETg4l.js → CyTWEZ1C.js} +1 -1
- package/dist/client/_nuxt/{B99jUuYa.js → D-MdnXbW.js} +1 -1
- package/dist/client/_nuxt/{BD1k7X45.js → D1T_Af_5.js} +1 -1
- package/dist/client/_nuxt/{DYga3iFw.js → D9sigLWP.js} +1 -1
- package/dist/client/_nuxt/{C4xQldoj.js → DCIMJJMV.js} +1 -1
- package/dist/client/_nuxt/{BCWO_fJA.js → DQVUztzW.js} +1 -1
- package/dist/client/_nuxt/{PqRD-BCA.js → DUE-gbeb.js} +1 -1
- package/dist/client/_nuxt/{Bly90YQr.js → DVIkezwA.js} +1 -1
- package/dist/client/_nuxt/{ByN-pkB2.js → DcMlxMkO.js} +1 -1
- package/dist/client/_nuxt/{B3HlHHFo.js → DfuY3p1W.js} +1 -1
- package/dist/client/_nuxt/{TLcw2K8g.js → Dhy1s6Ov.js} +1 -1
- package/dist/client/_nuxt/{B7nnZPIC.js → DjzVnWV-.js} +1 -1
- package/dist/client/_nuxt/{hGgpqISx.js → DqHjaVvD.js} +1 -1
- package/dist/client/_nuxt/{n35U0NKY.js → Dsi0eEJ6.js} +1 -1
- package/dist/client/_nuxt/{CWRygh1a.js → DwmWVGDS.js} +1 -1
- package/dist/client/_nuxt/{DN2sc0bu.js → GFjhHEHy.js} +1 -1
- package/dist/client/_nuxt/{C4NBPtyr.js → GcVquUAz.js} +1 -1
- package/dist/client/_nuxt/{DmgqTWca.js → HWlWHQb4.js} +1 -1
- package/dist/client/_nuxt/{CjMgoBpi.js → MadyLOQV.js} +1 -1
- package/dist/client/_nuxt/{CgoesWrN.js → WstCOOAW.js} +1 -1
- package/dist/client/_nuxt/{DG66fmB6.js → YN8BIR6E.js} +1 -1
- package/dist/client/_nuxt/{C8s0xKxd.js → bUZNM7_n.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/47e69d29-cda4-4447-8cad-506a023a9bf1.json +1 -0
- package/dist/client/_nuxt/{entry.C4Fmc-BV.css → entry.An-f-zS5.css} +1 -1
- package/dist/client/_nuxt/{DfQ7hiV2.js → h5yVVie-.js} +1 -1
- package/dist/client/_nuxt/{pinia.uD6MMfzP.css → pinia.BtNy_tpA.css} +1 -1
- package/dist/client/_nuxt/{BsAoISO6.js → rnGGU-BS.js} +1 -1
- package/dist/client/_nuxt/{Cyze1quq.js → voSa2Wxu.js} +1 -1
- package/dist/client/_nuxt/{fHgwel4O.js → wVx_DGYO.js} +1 -1
- package/dist/client/index.html +16 -16
- package/dist/module.json +1 -1
- package/package.json +10 -10
- package/dist/client/_nuxt/builds/meta/08fea4d8-ea80-4927-93be-e58169055550.json +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as q,a0 as te,r as E,a1 as J,a2 as ne,m as r,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 r,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"./CgqO_dPK.js";import{_ as Fe}from"./B1Qvv_W6.js";import{_ as Ne}from"./BDGXTeaJ.js";import{_ as Ie}from"./CwJAxf0e.js";import{_ as Se}from"./BrC6rypa.js";import{_ as Te}from"./h5yVVie-.js";import{_ as Ue}from"./DqHjaVvD.js";import{_ as je}from"./BflD8-TM.js";import{D as Ee}from"./BcJws1i5.js";import"./BUdaSSAW.js";import"./CfWZksSX.js";import"./B_BLxwpg.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"),$=E(),o=E([]);function f(a){$.value=a.target,m.value=!0}function b(a){a.target===$.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(i=>i.name);for(const i of _)if(w.includes(i.name)){let A=1;const[y,U]=i.name.split(".");for(;w.includes(`${y} (${A}).${U}`);)A++;const K=`${y}-${A}.${U}`,c=new Blob([i],{type:i.type}),n=new File([c],K,{lastModified:Date.now()});g.push(n),w.push(K)}else i.type===""&&O({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),g.push(i);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 i=(await new Promise(A=>{g.onload=()=>A(g.result)})).split(";base64,").pop();a.push({path:_.name,encoding:"base64",content:i})}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("."),i=_.replace(/\.\w+$/,""),A=`${i}.${w}`;return i.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 u(){o.value=[]}function p(){m.value=!1,u()}return J("dragenter",f),J("dragleave",b),J("dragover",T),J("drop",P),(a,_)=>{const g=oe,w=se,i=ae,A=ne("tooltip");return s(),r("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(),r("div",Me,[ze,e("div",Oe,[(s(!0),r(M,null,Z(t(o),(y,U)=>(s(),r("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(i,{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:u},{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(),r("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}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e,m as n,o}from"./
|
|
1
|
+
import{d as e,m as n,o}from"./CgqO_dPK.js";const t={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(c){return(s,_)=>(o(),n("div",t))}});export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,m as p,k as d,aa as a,G as s,o,h as i,p as m,X as u}from"./
|
|
1
|
+
import{d as l,m as p,k as d,aa as a,G as s,o,h as i,p as m,X as u}from"./CgqO_dPK.js";const h={flex:"~ gap4","items-center":""},g=l({__name:"NNavbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(f,{emit:n}){const r=n;function t(e){r("update:search",e.target.value)}return(e,v)=>{const c=u;return o(),p("div",{flex:"~ col gap2",border:"b base","flex-1":"","n-navbar-glass":"",class:s([{p4:!e.noPadding}])},[d("div",h,[a(e.$slots,"search",{},()=>[e.search!==void 0?(o(),i(c,{key:0,placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:s({"px-5 py-2":!e.noPadding}),value:e.search,onInput:t},null,8,["class","value"])):m("",!0)]),a(e.$slots,"actions")]),a(e.$slots,"default")],2)}}});export{g as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,a as u,o as d,m as f,v as p,t as o,f as n,k as c,G as m}from"./
|
|
1
|
+
import{d as s,a as u,o as d,m as f,v as p,t as o,f as n,k as c,G as m}from"./CgqO_dPK.js";const x={"ml-1":"","text-xs":"",op50:""},g=s({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function i(r){return t.color?r?(r=r*t.factor,r<.5?"text-gray:50":r>1e3?"text-red-400":r>500?"text-orange-400":r>200?"text-yellow-400":""):"text-gray-400":""}const e=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(r,l)=>(d(),f("div",{class:m(i(r.duration))},[p(o(n(e)[0]),1),c("span",x,o(n(e)[1]),1)],2))}});export{g as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as g,av as N,a as m,m as u,f as a,i as E,j as x,k as p,t as d,p as v,h as y,Y as C,o as l,v as b}from"./
|
|
1
|
+
import{d as g,av as N,a as m,m as u,f as a,i as E,j as x,k as p,t as d,p as v,h as y,Y as C,o as l,v as b}from"./CgqO_dPK.js";import{_ as S}from"./CHgHv_XG.js";import"./h5yVVie-.js";const R=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,$=/^(eval@)?(\[native code])?$/;function _(n){if(typeof n.stacktrace<"u"||typeof n["opera#sourceloc"]<"u")return A(n);if(n.stack&&n.stack.match(h))return O(n);if(n.stack)return w(n);throw new Error("Cannot parse given Error object")}function f(n){if(!n.includes(":"))return[n];const e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(n.replace(/[()]/g,""));return[e[1],e[2]||void 0,e[3]||void 0]}function O(n){return n.stack.split(`
|
|
2
2
|
`).filter(e=>!!e.match(h)).map(e=>{e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let s=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const t=s.match(/ (\(.+\)$)/);s=t?s.replace(t[0],""):s;const r=f(t?t[1]:s),o=t&&s||void 0,i=["eval","<anonymous>"].includes(r[0])?void 0:r[0];return{functionName:o,fileName:i,lineNumber:r[1]?+r[1]:void 0,columnNumber:r[2]?+r[2]:void 0,source:e}})}function w(n){return n.stack.split(`
|
|
3
3
|
`).filter(e=>!e.match($)).map(e=>{if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return{functionName:e};{const s=/((.*".+"[^@]*)?[^@]*)(?:@)/,t=e.match(s),r=t&&t[1]?t[1]:void 0,o=f(e.replace(s,""));return{functionName:r,fileName:o[0],lineNumber:o[1]?+o[1]:void 0,columnNumber:o[2]?+o[2]:void 0,source:e}}})}function A(n){return!n.stacktrace||n.message.includes(`
|
|
4
4
|
`)&&n.message.split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as me,r as q,bE as Se,o as u,m as _,k as c,G as F,h as x,f as e,bF as re,t as O,p as N,v as K,a9 as We,aa as Ke,F as L,n as J,a6 as Te,by as $e,bz as Re,w as Ee,bv as Qe,bG as Xe,bH as Ye,az as Ze,bI as et,ab as tt,av as ot,ax as fe,a as E,ac as nt,aA as st,a$ as at,bJ as rt,e as lt,a2 as je,j as w,l as Y,i as m,I as Z,au as it,ak as De,V as ut,_ as Ve,X as ct,A as Ie,bB as dt,bK as pt,ah as ft,U as mt,bL as vt,ap as ht}from"./rxQ7aZDp.js";import{_ as yt}from"./Bc-Wv2Rh.js";import{_ as Ue}from"./CfHFjL7B.js";import{_ as _t}from"./Cyze1quq.js";import{_ as Oe}from"./fHgwel4O.js";import{_ as gt}from"./hGgpqISx.js";import{_ as bt}from"./A7mPcb2X.js";import{_ as kt}from"./bXdL5_p6.js";import{C as ke,S as Ne}from"./BcJws1i5.js";import{U as wt}from"./DYga3iFw.js";import{_ as Ct}from"./C1lMG4ou.js";import{_ as xt}from"./B2r_b20K.js";import"./Bf1S6EjZ.js";import"./DGRvMt5e.js";import"./BbLu0gK3.js";const ae=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function St(t,r){if(typeof t!="string")throw new TypeError("argument str must be a string");const n={},h=(r||{}).decode||Rt;let v=0;for(;v<t.length;){const d=t.indexOf("=",v);if(d===-1)break;let f=t.indexOf(";",v);if(f===-1)f=t.length;else if(f<d){v=t.lastIndexOf(";",d-1)+1;continue}const a=t.slice(v,d).trim();if(n[a]===void 0){let S=t.slice(d+1,f).trim();S.codePointAt(0)===34&&(S=S.slice(1,-1)),n[a]=$t(S,h)}v=f+1}return n}function we(t,r,n){const o=n||{},h=o.encode||Et;if(typeof h!="function")throw new TypeError("option encode is invalid");if(!ae.test(t))throw new TypeError("argument name is invalid");const v=h(r);if(v&&!ae.test(v))throw new TypeError("argument val is invalid");let d=t+"="+v;if(o.maxAge!==void 0&&o.maxAge!==null){const f=o.maxAge-0;if(Number.isNaN(f)||!Number.isFinite(f))throw new TypeError("option maxAge is invalid");d+="; Max-Age="+Math.floor(f)}if(o.domain){if(!ae.test(o.domain))throw new TypeError("option domain is invalid");d+="; Domain="+o.domain}if(o.path){if(!ae.test(o.path))throw new TypeError("option path is invalid");d+="; Path="+o.path}if(o.expires){if(!Tt(o.expires)||Number.isNaN(o.expires.valueOf()))throw new TypeError("option expires is invalid");d+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(d+="; HttpOnly"),o.secure&&(d+="; Secure"),o.priority)switch(typeof o.priority=="string"?o.priority.toLowerCase():o.priority){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return d}function Tt(t){return Object.prototype.toString.call(t)==="[object Date]"||t instanceof Date}function $t(t,r){try{return r(t)}catch{return t}}function Rt(t){return t.includes("%")?decodeURIComponent(t):t}function Et(t){return encodeURIComponent(t)}function M(t){if(typeof t!="object")return t;var r,n,o=Object.prototype.toString.call(t);if(o==="[object Object]"){if(t.constructor!==Object&&typeof t.constructor=="function"){n=new t.constructor;for(r in t)t.hasOwnProperty(r)&&n[r]!==t[r]&&(n[r]=M(t[r]))}else{n={};for(r in t)r==="__proto__"?Object.defineProperty(n,r,{value:M(t[r]),configurable:!0,enumerable:!0,writable:!0}):n[r]=M(t[r])}return n}if(o==="[object Array]"){for(r=t.length,n=Array(r);r--;)n[r]=M(t[r]);return n}return o==="[object Set]"?(n=new Set,t.forEach(function(h){n.add(M(h))}),n):o==="[object Map]"?(n=new Map,t.forEach(function(h,v){n.set(M(v),M(h))}),n):o==="[object Date]"?new Date(+t):o==="[object RegExp]"?(n=new RegExp(t.source,t.flags),n.lastIndex=t.lastIndex,n):o==="[object DataView]"?new t.constructor(M(t.buffer)):o==="[object ArrayBuffer]"?t.slice(0):o.slice(-6)==="Array]"?new t.constructor(t):t}const jt=c("div",{"x-divider":""},null,-1),Ae=me({__name:"ServerRouteListItem",props:{item:{},index:{default:0}},setup(t){const r=q(!0),n=Se();return(o,h)=>{const v=Te,d=Ue,f=Ae;return u(),_("div",null,[c("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":e(n)===o.item.filepath}]),style:We({paddingLeft:`calc(0.5rem + ${o.index*1.5}em)`}),onClick:h[0]||(h[0]=a=>{r.value=!e(r),n.value=o.item.filepath})},[c("div",{class:F({"w-12":!o.item.routes}),"flex-none":"","text-left":""},[o.item.type==="collection"?(u(),x(v,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":e(r)?90:0,transition:""},null,8,["transform-rotate"])):(u(),x(d,{key:1,class:F(("getRequestMethodClass"in o?o.getRequestMethodClass:e(re))(o.item.method||"*")),textContent:O((o.item.method||"*").toUpperCase())},null,8,["class","textContent"]))],2),c("span",{class:F({"flex items-center":o.item.routes}),"text-sm":"","font-mono":""},[o.item.type==="collection"?(u(),x(v,{key:0,title:`${o.item.routes?.length} routes`,icon:"carbon:folder",mr1:""},null,8,["title"])):N("",!0),K(" "+O(o.item.route),1)],2)],6),jt,e(r)?Ke(o.$slots,"default",{key:0},()=>[(u(!0),_(L,null,J(o.item.routes,a=>(u(),x(f,{key:a.filepath,item:a,index:o.index+1},null,8,["item","index"]))),128))]):N("",!0)])}}}),Dt={path:"/",watch:!0,decode:t=>Xe(decodeURIComponent(t)),encode:t=>encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))},Vt=void 0;function It(t,r){const n={...Dt,...r},o=Ce(n)||{};let h;n.maxAge!==void 0?h=n.maxAge*1e3:n.expires&&(h=n.expires.getTime()-Date.now());const v=h!==void 0&&h<=0,d=M(v?void 0:o[t]??n.default?.()),f=h&&!v?Nt(d,h,n.watch&&n.watch!=="shallow"):q(d);{let a=null;try{!Vt&&typeof BroadcastChannel<"u"&&(a=new BroadcastChannel(`nuxt:cookies:${t}`))}catch{}const S=()=>{n.readonly||Ye(f.value,o[t])||(Ot(t,f.value,n),o[t]=M(f.value),a?.postMessage({value:n.encode(f.value)}))},V=z=>{const ee=z.refresh?Ce(n)?.[t]:n.decode(z.value);A=!0,o[t]=f.value=ee,Ze(()=>{A=!1})};let A=!1;$e()&&Re(()=>{A=!0,S(),a?.close()}),a&&(a.onmessage=({data:z})=>V(z)),n.watch?Ee(f,()=>{A||S()},{deep:n.watch!=="shallow"}):S()}return f}function Ce(t={}){return St(document.cookie,t)}function Ut(t,r,n={}){return r==null?we(t,r,{...n,maxAge:-1}):we(t,r,n)}function Ot(t,r,n={}){document.cookie=Ut(t,r,n)}const xe=2147483647;function Nt(t,r,n){let o,h,v=0;const d=n?q(t):{value:t};return $e()&&Re(()=>{h?.(),clearTimeout(o)}),Qe((f,a)=>{n&&(h=Ee(d,a));function S(){clearTimeout(o);const V=r-v,A=V<xe?V:xe;o=setTimeout(()=>{if(v+=A,v<r)return S();d.value=void 0,a()},A)}return{get(){return f(),d.value},set(V){S(),d.value=V,a()}}})}const At={"h-full":"","w-full":"",flex:"~ col"},Lt={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},qt={flex:"~ gap2 items-center"},Pt={relative:"","w-full":""},Bt={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},Mt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},Ft={class:"hidden md:block"},zt=c("div",{"flex-auto":""},null,-1),Ht=c("div",{"text-xs":"",op50:""}," Send from ",-1),Gt=c("option",{value:"app"}," App ",-1),Jt=c("option",{value:"devtools"}," DevTools ",-1),Wt={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},Kt={"text-right":"","font-mono":""},Qt={key:1,border:"b base",p4:"",flex:"~ col gap-4","font-mono":""},Xt={flex:"~ gap-4"},Yt={flex:"~ gap2","mb--2":"","items-center":"",op50:""},Zt=c("div",{"w-5":"","x-divider":""},null,-1),eo=c("div",{"flex-none":""}," Default Inputs ",-1),to=c("div",{"x-divider":""},null,-1),oo={key:2},no={key:3,border:"b base",relative:"","n-code-block":""},so={flex:"~ wrap","w-full":""},ao=["onClick"],ro=c("div",{border:"b base","flex-auto":""},null,-1),lo={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},io=c("div",null,"Response",-1),uo={key:1,"text-xs":"",op50:""},co=c("div",{"flex-auto":""},null,-1),po=c("div",{op50:""}," Request finished in ",-1),fo={key:0,"flex-auto":"","overflow-auto":""},mo={border:"~ base","h-full":"","w-full":"",rounded:""},vo=["data"],ho={key:2,"flex-auto":"","overflow-auto":"",p4:""},yo={border:"~ base",rounded:""},_o=["src"],go={key:1,controls:"",rounded:""},bo=["src"],ko=me({__name:"ServerRouteDetails",props:{route:{}},emits:["open-default-input"],setup(t,{emit:r}){const n=t,o=r,[h,v]=et(),d=tt(),f=ot(),a=fe({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),S=E(()=>a.contentType.includes("application/json")?"json":a.contentType.includes("text/html")?"html":a.contentType.includes("text/css")?"css":a.contentType.includes("text/javascript")?"javascript":a.contentType.includes("image")||a.contentType.includes("video")?"media":a.contentType.includes("text/xml")||a.contentType.includes("application/xml")?"xml":a.contentType.includes("application/pdf")?"pdf":"text"),V=E(()=>{if(S.value==="json")return JSON.stringify(a.data,null,2);if(S.value==="media"||S.value==="pdf"){const s=new Blob([a.data],{type:a.contentType});return URL.createObjectURL(s)}return a.data}),A=q(!1),z=q(!1),ee=nt(),j=E(()=>n.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),g=E(()=>j.value?.filter(s=>s.startsWith(":")||s.startsWith("**:"))||[]),I=q(n.route.method||"GET"),b=q({}),y=fe({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[{active:!0,key:"Content-Type",value:"application/json",type:"string"}]}),D=q({}),{inputDefaults:T,sendFrom:U}=De("serverRoutes"),P=E(()=>f?.value?.app?.$fetch?U.value:"devtools"),le=["GET","POST","PUT","PATCH","DELETE","HEAD"],ie=["PATCH","POST","PUT","DELETE"],te=E(()=>ie.includes(I.value.toUpperCase())),k=q(),$=["input","json"],H=q($[0]),oe=E({get:()=>y[k.value],set:s=>{y[k.value]=s}}),ve=E(()=>({...W(T.value.query),...W(y.query)})),he=E(()=>({...W(T.value.headers),...W(y.headers)})),ue=E(()=>te.value?H.value==="json"?{...W(T.value.body),...D.value}:{...W(T.value.body),...W(y.body)}:void 0),Le=E(()=>{let s=window?.location.origin;return s.charAt(s.length-1)==="/"&&(s=s.slice(0,-1)),s}),ne=E(()=>{let s=new URLSearchParams(ve.value).toString();s&&(s=`?${s}`);const i=(j.value?.map(R=>(R.startsWith(":")||R.startsWith("**:"))&&b.value[R]||R).join("")||"")+s;let p=d.value?.app.baseURL||"";return(p==="./"||p===".")&&(p=""),p.endsWith("/")&&(p=p.slice(0,-1)),p+i}),ye=E(()=>Le.value+ne.value);function W(s){const i=Object.fromEntries(s.filter(({active:p,key:R,value:C})=>p&&R&&C!==void 0).map(({key:p,value:R})=>[p,R]));return Object.entries(i).length?i:void 0}async function _e(){z.value=!0,A.value=!0;const s=Date.now(),i=P.value==="app"?f.value.app.$fetch:$fetch;ut("server-routes:fetch",{method:I.value,sendFrom:P.value});try{a.data=await i(ye.value,{method:I.value.toUpperCase(),headers:he.value,query:ve.value,body:ue.value,onResponse({response:p}){a.contentType=(p.headers.get("content-type")||"").toString().toLowerCase().trim(),a.statusCode=p.status,a.error=void 0},onResponseError(p){a.error=p.response._data,a.data=p.response._data}})}catch{}A.value=!1,a.fetchTime=Date.now()-s}const ge=E(()=>{const s=[],i=[],p=Object.entries(he.value).filter(([C,B])=>C&&B&&!(C==="Content-Type"&&B==="application/json")).map(([C,B])=>` '${C}': '${B}'`).join(`,
|
|
1
|
+
import{d as me,r as q,bE as Se,o as u,m as _,k as c,G as F,h as x,f as e,bF as re,t as O,p as N,v as K,a9 as We,aa as Ke,F as L,n as J,a6 as Te,by as $e,bz as Re,w as Ee,bv as Qe,bG as Xe,bH as Ye,az as Ze,bI as et,ab as tt,av as ot,ax as fe,a as E,ac as nt,aA as st,a$ as at,bJ as rt,e as lt,a2 as je,j as w,l as Y,i as m,I as Z,au as it,ak as De,V as ut,_ as Ve,X as ct,A as Ie,bB as dt,bK as pt,ah as ft,U as mt,bL as vt,ap as ht}from"./CgqO_dPK.js";import{_ as yt}from"./CwJAxf0e.js";import{_ as Ue}from"./5gOKvhnM.js";import{_ as _t}from"./voSa2Wxu.js";import{_ as Oe}from"./wVx_DGYO.js";import{_ as gt}from"./DqHjaVvD.js";import{_ as bt}from"./B3w9ZjT2.js";import{_ as kt}from"./CfWZksSX.js";import{C as ke,S as Ne}from"./BcJws1i5.js";import{U as wt}from"./D9sigLWP.js";import{_ as Ct}from"./BrC6rypa.js";import{_ as xt}from"./BflD8-TM.js";import"./B1Qvv_W6.js";import"./B_BLxwpg.js";import"./BUdaSSAW.js";const ae=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function St(t,r){if(typeof t!="string")throw new TypeError("argument str must be a string");const n={},h=(r||{}).decode||Rt;let v=0;for(;v<t.length;){const d=t.indexOf("=",v);if(d===-1)break;let f=t.indexOf(";",v);if(f===-1)f=t.length;else if(f<d){v=t.lastIndexOf(";",d-1)+1;continue}const a=t.slice(v,d).trim();if(n[a]===void 0){let S=t.slice(d+1,f).trim();S.codePointAt(0)===34&&(S=S.slice(1,-1)),n[a]=$t(S,h)}v=f+1}return n}function we(t,r,n){const o=n||{},h=o.encode||Et;if(typeof h!="function")throw new TypeError("option encode is invalid");if(!ae.test(t))throw new TypeError("argument name is invalid");const v=h(r);if(v&&!ae.test(v))throw new TypeError("argument val is invalid");let d=t+"="+v;if(o.maxAge!==void 0&&o.maxAge!==null){const f=o.maxAge-0;if(Number.isNaN(f)||!Number.isFinite(f))throw new TypeError("option maxAge is invalid");d+="; Max-Age="+Math.floor(f)}if(o.domain){if(!ae.test(o.domain))throw new TypeError("option domain is invalid");d+="; Domain="+o.domain}if(o.path){if(!ae.test(o.path))throw new TypeError("option path is invalid");d+="; Path="+o.path}if(o.expires){if(!Tt(o.expires)||Number.isNaN(o.expires.valueOf()))throw new TypeError("option expires is invalid");d+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(d+="; HttpOnly"),o.secure&&(d+="; Secure"),o.priority)switch(typeof o.priority=="string"?o.priority.toLowerCase():o.priority){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return d}function Tt(t){return Object.prototype.toString.call(t)==="[object Date]"||t instanceof Date}function $t(t,r){try{return r(t)}catch{return t}}function Rt(t){return t.includes("%")?decodeURIComponent(t):t}function Et(t){return encodeURIComponent(t)}function M(t){if(typeof t!="object")return t;var r,n,o=Object.prototype.toString.call(t);if(o==="[object Object]"){if(t.constructor!==Object&&typeof t.constructor=="function"){n=new t.constructor;for(r in t)t.hasOwnProperty(r)&&n[r]!==t[r]&&(n[r]=M(t[r]))}else{n={};for(r in t)r==="__proto__"?Object.defineProperty(n,r,{value:M(t[r]),configurable:!0,enumerable:!0,writable:!0}):n[r]=M(t[r])}return n}if(o==="[object Array]"){for(r=t.length,n=Array(r);r--;)n[r]=M(t[r]);return n}return o==="[object Set]"?(n=new Set,t.forEach(function(h){n.add(M(h))}),n):o==="[object Map]"?(n=new Map,t.forEach(function(h,v){n.set(M(v),M(h))}),n):o==="[object Date]"?new Date(+t):o==="[object RegExp]"?(n=new RegExp(t.source,t.flags),n.lastIndex=t.lastIndex,n):o==="[object DataView]"?new t.constructor(M(t.buffer)):o==="[object ArrayBuffer]"?t.slice(0):o.slice(-6)==="Array]"?new t.constructor(t):t}const jt=c("div",{"x-divider":""},null,-1),Ae=me({__name:"ServerRouteListItem",props:{item:{},index:{default:0}},setup(t){const r=q(!0),n=Se();return(o,h)=>{const v=Te,d=Ue,f=Ae;return u(),_("div",null,[c("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":e(n)===o.item.filepath}]),style:We({paddingLeft:`calc(0.5rem + ${o.index*1.5}em)`}),onClick:h[0]||(h[0]=a=>{r.value=!e(r),n.value=o.item.filepath})},[c("div",{class:F({"w-12":!o.item.routes}),"flex-none":"","text-left":""},[o.item.type==="collection"?(u(),x(v,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":e(r)?90:0,transition:""},null,8,["transform-rotate"])):(u(),x(d,{key:1,class:F(("getRequestMethodClass"in o?o.getRequestMethodClass:e(re))(o.item.method||"*")),textContent:O((o.item.method||"*").toUpperCase())},null,8,["class","textContent"]))],2),c("span",{class:F({"flex items-center":o.item.routes}),"text-sm":"","font-mono":""},[o.item.type==="collection"?(u(),x(v,{key:0,title:`${o.item.routes?.length} routes`,icon:"carbon:folder",mr1:""},null,8,["title"])):N("",!0),K(" "+O(o.item.route),1)],2)],6),jt,e(r)?Ke(o.$slots,"default",{key:0},()=>[(u(!0),_(L,null,J(o.item.routes,a=>(u(),x(f,{key:a.filepath,item:a,index:o.index+1},null,8,["item","index"]))),128))]):N("",!0)])}}}),Dt={path:"/",watch:!0,decode:t=>Xe(decodeURIComponent(t)),encode:t=>encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))},Vt=void 0;function It(t,r){const n={...Dt,...r},o=Ce(n)||{};let h;n.maxAge!==void 0?h=n.maxAge*1e3:n.expires&&(h=n.expires.getTime()-Date.now());const v=h!==void 0&&h<=0,d=M(v?void 0:o[t]??n.default?.()),f=h&&!v?Nt(d,h,n.watch&&n.watch!=="shallow"):q(d);{let a=null;try{!Vt&&typeof BroadcastChannel<"u"&&(a=new BroadcastChannel(`nuxt:cookies:${t}`))}catch{}const S=()=>{n.readonly||Ye(f.value,o[t])||(Ot(t,f.value,n),o[t]=M(f.value),a?.postMessage({value:n.encode(f.value)}))},V=z=>{const ee=z.refresh?Ce(n)?.[t]:n.decode(z.value);A=!0,o[t]=f.value=ee,Ze(()=>{A=!1})};let A=!1;$e()&&Re(()=>{A=!0,S(),a?.close()}),a&&(a.onmessage=({data:z})=>V(z)),n.watch?Ee(f,()=>{A||S()},{deep:n.watch!=="shallow"}):S()}return f}function Ce(t={}){return St(document.cookie,t)}function Ut(t,r,n={}){return r==null?we(t,r,{...n,maxAge:-1}):we(t,r,n)}function Ot(t,r,n={}){document.cookie=Ut(t,r,n)}const xe=2147483647;function Nt(t,r,n){let o,h,v=0;const d=n?q(t):{value:t};return $e()&&Re(()=>{h?.(),clearTimeout(o)}),Qe((f,a)=>{n&&(h=Ee(d,a));function S(){clearTimeout(o);const V=r-v,A=V<xe?V:xe;o=setTimeout(()=>{if(v+=A,v<r)return S();d.value=void 0,a()},A)}return{get(){return f(),d.value},set(V){S(),d.value=V,a()}}})}const At={"h-full":"","w-full":"",flex:"~ col"},Lt={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},qt={flex:"~ gap2 items-center"},Pt={relative:"","w-full":""},Bt={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},Mt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},Ft={class:"hidden md:block"},zt=c("div",{"flex-auto":""},null,-1),Ht=c("div",{"text-xs":"",op50:""}," Send from ",-1),Gt=c("option",{value:"app"}," App ",-1),Jt=c("option",{value:"devtools"}," DevTools ",-1),Wt={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},Kt={"text-right":"","font-mono":""},Qt={key:1,border:"b base",p4:"",flex:"~ col gap-4","font-mono":""},Xt={flex:"~ gap-4"},Yt={flex:"~ gap2","mb--2":"","items-center":"",op50:""},Zt=c("div",{"w-5":"","x-divider":""},null,-1),eo=c("div",{"flex-none":""}," Default Inputs ",-1),to=c("div",{"x-divider":""},null,-1),oo={key:2},no={key:3,border:"b base",relative:"","n-code-block":""},so={flex:"~ wrap","w-full":""},ao=["onClick"],ro=c("div",{border:"b base","flex-auto":""},null,-1),lo={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},io=c("div",null,"Response",-1),uo={key:1,"text-xs":"",op50:""},co=c("div",{"flex-auto":""},null,-1),po=c("div",{op50:""}," Request finished in ",-1),fo={key:0,"flex-auto":"","overflow-auto":""},mo={border:"~ base","h-full":"","w-full":"",rounded:""},vo=["data"],ho={key:2,"flex-auto":"","overflow-auto":"",p4:""},yo={border:"~ base",rounded:""},_o=["src"],go={key:1,controls:"",rounded:""},bo=["src"],ko=me({__name:"ServerRouteDetails",props:{route:{}},emits:["open-default-input"],setup(t,{emit:r}){const n=t,o=r,[h,v]=et(),d=tt(),f=ot(),a=fe({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),S=E(()=>a.contentType.includes("application/json")?"json":a.contentType.includes("text/html")?"html":a.contentType.includes("text/css")?"css":a.contentType.includes("text/javascript")?"javascript":a.contentType.includes("image")||a.contentType.includes("video")?"media":a.contentType.includes("text/xml")||a.contentType.includes("application/xml")?"xml":a.contentType.includes("application/pdf")?"pdf":"text"),V=E(()=>{if(S.value==="json")return JSON.stringify(a.data,null,2);if(S.value==="media"||S.value==="pdf"){const s=new Blob([a.data],{type:a.contentType});return URL.createObjectURL(s)}return a.data}),A=q(!1),z=q(!1),ee=nt(),j=E(()=>n.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),g=E(()=>j.value?.filter(s=>s.startsWith(":")||s.startsWith("**:"))||[]),I=q(n.route.method||"GET"),b=q({}),y=fe({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[{active:!0,key:"Content-Type",value:"application/json",type:"string"}]}),D=q({}),{inputDefaults:T,sendFrom:U}=De("serverRoutes"),P=E(()=>f?.value?.app?.$fetch?U.value:"devtools"),le=["GET","POST","PUT","PATCH","DELETE","HEAD"],ie=["PATCH","POST","PUT","DELETE"],te=E(()=>ie.includes(I.value.toUpperCase())),k=q(),$=["input","json"],H=q($[0]),oe=E({get:()=>y[k.value],set:s=>{y[k.value]=s}}),ve=E(()=>({...W(T.value.query),...W(y.query)})),he=E(()=>({...W(T.value.headers),...W(y.headers)})),ue=E(()=>te.value?H.value==="json"?{...W(T.value.body),...D.value}:{...W(T.value.body),...W(y.body)}:void 0),Le=E(()=>{let s=window?.location.origin;return s.charAt(s.length-1)==="/"&&(s=s.slice(0,-1)),s}),ne=E(()=>{let s=new URLSearchParams(ve.value).toString();s&&(s=`?${s}`);const i=(j.value?.map(R=>(R.startsWith(":")||R.startsWith("**:"))&&b.value[R]||R).join("")||"")+s;let p=d.value?.app.baseURL||"";return(p==="./"||p===".")&&(p=""),p.endsWith("/")&&(p=p.slice(0,-1)),p+i}),ye=E(()=>Le.value+ne.value);function W(s){const i=Object.fromEntries(s.filter(({active:p,key:R,value:C})=>p&&R&&C!==void 0).map(({key:p,value:R})=>[p,R]));return Object.entries(i).length?i:void 0}async function _e(){z.value=!0,A.value=!0;const s=Date.now(),i=P.value==="app"?f.value.app.$fetch:$fetch;ut("server-routes:fetch",{method:I.value,sendFrom:P.value});try{a.data=await i(ye.value,{method:I.value.toUpperCase(),headers:he.value,query:ve.value,body:ue.value,onResponse({response:p}){a.contentType=(p.headers.get("content-type")||"").toString().toLowerCase().trim(),a.statusCode=p.status,a.error=void 0},onResponseError(p){a.error=p.response._data,a.data=p.response._data}})}catch{}A.value=!1,a.fetchTime=Date.now()-s}const ge=E(()=>{const s=[],i=[],p=Object.entries(he.value).filter(([C,B])=>C&&B&&!(C==="Content-Type"&&B==="application/json")).map(([C,B])=>` '${C}': '${B}'`).join(`,
|
|
2
2
|
`);I.value.toUpperCase()!=="GET"&&i.push(`method: '${I.value.toUpperCase()}'`),p&&i.push(`headers: {
|
|
3
3
|
${p}
|
|
4
4
|
}`),ue.value&&i.push(`body: ${JSON.stringify(ue.value,null,2)}`);const R=i.length?`, {
|
|
@@ -4,7 +4,7 @@ function __vite__mapDeps(indexes) {
|
|
|
4
4
|
}
|
|
5
5
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
6
6
|
}
|
|
7
|
-
import{bN as P5,c as R5,bZ as N5,d as I5,bx as D5,r as Lp,aB as L5,ao as B5,w as sf,f as z5,bn as q5}from"./
|
|
7
|
+
import{bN as P5,c as R5,bZ as N5,d as I5,bx as D5,r as Lp,aB as L5,ao as B5,w as sf,f as z5,bn as q5}from"./CgqO_dPK.js";function Tn(t){return Array.isArray(t)}function er(t){return t!==null&&typeof t=="object"&&(t.constructor===void 0||t.constructor.name==="Object")}function Ik(t){return t&&typeof t=="object"?t.op==="add":!1}function Dk(t){return t&&typeof t=="object"?t.op==="remove":!1}function Dv(t){return t&&typeof t=="object"?t.op==="replace":!1}function Fm(t){return t&&typeof t=="object"?t.op==="copy":!1}function vl(t){return t&&typeof t=="object"?t.op==="move":!1}function F5(t,e){return JSON.stringify(t)===JSON.stringify(e)}function V5(t,e){return t===e}function Lk(t){return t.slice(0,t.length-1)}function H5(t){return t[t.length-1]}function U5(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V5;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 Bk(t){return typeof t=="object"&&t!==null}function Lv(t){if(Tn(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else if(er(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else return t}function Bv(t,e,n){if(t[e]===n)return t;{const r=Lv(t);return r[e]=n,r}}function Ye(t,e){let n=t,r=0;for(;r<e.length;)er(n)?n=n[e[r]]:Tn(n)?n=n[parseInt(e[r])]:n=void 0,r++;return n}function Ki(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=Ki(t?t[i]:void 0,e.slice(1),n,r);if(er(t)||Tn(t))return Bv(t,i,o);if(r){const s=W5.test(i)?[]:{};return s[i]=o,s}else throw new Error("Path does not exist")}const W5=/^\d+$/;function zk(t,e,n){if(e.length===0)return n(t);if(!Bk(t))throw new Error("Path doesn't exist");const r=e[0],i=zk(t[r],e.slice(1),n);return Bv(t,r,i)}function zv(t,e){if(e.length===0)return t;if(!Bk(t))throw new Error("Path does not exist");if(e.length===1){const i=e[0];if(i in t){const o=Lv(t);return Tn(o)&&o.splice(parseInt(i),1),er(o)&&delete o[i],o}else return t}const n=e[0],r=zv(t[n],e.slice(1));return Bv(t,n,r)}function qv(t,e,n){const r=e.slice(0,e.length-1),i=e[e.length-1];return zk(t,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const s=Lv(o);return s.splice(parseInt(i),0,n),s})}function Ri(t,e){return t===void 0?!1:e.length===0?!0:t===null?!1:Ri(t[e[0]],e.slice(1))}function io(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function Ve(t){return t.map(qk).join("")}function qk(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function uy(t,e){return t+qk(e)}function Ih(t,e){return t.startsWith(e)&&(t.length===e.length||t[e.length]==="/")}function eo(t,e,n){let r=t;for(let i=0;i<e.length;i++){eO(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=Eo(r,o.path);if(o.op==="add")r=G5(r,a,o.value);else if(o.op==="remove")r=K5(r,a);else if(o.op==="replace")r=J5(r,a,o.value);else if(o.op==="copy")r=Q5(r,a,Vm(o.from));else if(o.op==="move")r=Y5(r,a,Vm(o.from));else if(o.op==="test")X5(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 J5(t,e,n){return Ki(t,e,n)}function K5(t,e){return zv(t,e)}function G5(t,e,n){return Nu(t,e)?qv(t,e,n):Ki(t,e,n)}function Q5(t,e,n){const r=Ye(t,n);if(Nu(t,e))return qv(t,e,r);{const i=Ye(t,n);return Ki(t,e,i)}}function Y5(t,e,n){const r=Ye(t,n),i=zv(t,n);return Nu(i,e)?qv(i,e,r):Ki(i,e,r)}function X5(t,e,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${Ve(e)}")`);if(!Ri(t,e))throw new Error(`Test failed: path not found (path: "${Ve(e)}")`);const r=Ye(t,e);if(!F5(r,n))throw new Error(`Test failed, value differs (path: "${Ve(e)}")`)}function Nu(t,e){if(e.length===0)return!1;const n=Ye(t,Lk(e));return Array.isArray(n)}function Z5(t,e){if(H5(e)!=="-")return e;const n=Lk(e),r=Ye(t,n);return n.concat(r.length)}function eO(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 Eo(t,e){return Z5(t,io(e))}function Vm(t){return io(t)}function Fk(t,e,n){let r=[];return eo(t,e,{before:(o,s)=>{let a;const l=Eo(o,s.path);if(s.op==="add")a=Uk(o,l);else if(s.op==="remove")a=Hk(o,l);else if(s.op==="replace")a=Vk(o,l);else if(s.op==="copy")a=tO(o,l);else if(s.op==="move")a=nO(o,l,Vm(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 Vk(t,e){return[{op:"replace",path:Ve(e),value:Ye(t,e)}]}function Hk(t,e){return[{op:"add",path:Ve(e),value:Ye(t,e)}]}function Uk(t,e){return Nu(t,e)||!Ri(t,e)?[{op:"remove",path:Ve(e)}]:Vk(t,e)}function tO(t,e){return Uk(t,e)}function nO(t,e,n){if(e.length<n.length&&U5(n,e))return[{op:"replace",path:Ve(e),value:t}];const r={op:"move",from:Ve(e),path:Ve(n)};return!Nu(t,e)&&Ri(t,e)?[r,...Hk(t,e)]:[r]}var Ad={},fy={b:"\b",f:"\f",n:`
|
|
8
8
|
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},rO=97;Ad.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(z,O){c();var L;x(z,"value");var R=m();switch(R){case"t":p("rue"),L=!0;break;case"f":p("alse"),L=!1;break;case"n":p("ull"),L=null;break;case'"':L=u();break;case"[":L=d(z);break;case"{":L=h(z);break;default:g(),"-0123456789".indexOf(R)>=0?L=f():w()}return x(z,"valueEnd"),c(),O&&s<t.length&&w(),L}function c(){e:for(;s<t.length;){switch(t[s]){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
|
|
9
9
|
`:o=0,i++;break;default:break e}s++}}function u(){for(var z="",O;O=m(),O!='"';)O=="\\"?(O=m(),O in fy?z+=fy[O]:O=="u"?z+=v():k()):z+=O;return z}function f(){var z="",O=!0;t[s]=="-"&&(z+=m()),z+=t[s]=="0"?m():y(),t[s]=="."&&(z+=m()+y(),O=!1),(t[s]=="e"||t[s]=="E")&&(z+=m(),(t[s]=="+"||t[s]=="-")&&(z+=m()),z+=y(),O=!1);var L=+z;return a&&O&&(L>Number.MAX_SAFE_INTEGER||L<Number.MIN_SAFE_INTEGER)?BigInt(z):L}function d(z){c();var O=[],L=0;if(m()=="]")return O;for(g();;){var R=z+"/"+L;O.push(l(R)),c();var G=m();if(G=="]")break;G!=","&&k(),c(),L++}return O}function h(z){c();var O={};if(m()=="}")return O;for(g();;){var L=b();m()!='"'&&k();var R=u(),G=z+"/"+Hm(R);j(G,"key",L),x(G,"keyEnd"),c(),m()!=":"&&k(),c(),O[R]=l(G),c();var V=m();if(V=="}")break;V!=","&&k(),c()}return O}function p(z){for(var O=0;O<z.length;O++)m()!==z[O]&&k()}function m(){N();var z=t[s];return s++,o++,z}function g(){s--,o--}function v(){for(var z=4,O=0;z--;){O<<=4;var L=m().toLowerCase();L>="a"&&L<="f"?O+=L.charCodeAt()-rO+10:L>="0"&&L<="9"?O+=+L:k()}return String.fromCharCode(O)}function y(){for(var z="";t[s]>="0"&&t[s]<="9";)z+=m();if(z.length)return z;N(),w()}function x(z,O){j(z,O,b())}function j(z,O,L){r[z]=r[z]||{},r[z][O]=L}function b(){return{line:i,column:o,pos:s}}function w(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function k(){g(),w()}function N(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}};Ad.stringify=function(t,e,n){if(!af(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&&j(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`
|
|
10
10
|
`: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 g(t,0,""),{json:u,pointers:f};function g(b,w,k){switch(x(k,"value"),typeof b){case"number":case"bigint":case"boolean":v(""+b);break;case"string":v(lf(b));break;case"object":b===null?v("null"):typeof b.toJSON=="function"?v(lf(b.toJSON())):Array.isArray(b)?N():m?b.constructor.BYTES_PER_ELEMENT?N():b instanceof Map?O():b instanceof Set?O(!0):z():z()}x(k,"valueEnd");function N(){if(b.length){v("[");for(var L=w+1,R=0;R<b.length;R++){R&&v(","),y(L);var G=af(b[R])?b[R]:null,V=k+"/"+R;g(G,L,V)}y(w),v("]")}else v("[]")}function z(){var L=Object.keys(b);if(L.length){v("{");for(var R=w+1,G=0;G<L.length;G++){var V=L[G],Q=b[V];if(af(Q)){G&&v(",");var Y=k+"/"+Hm(V);y(R),x(Y,"key"),v(lf(V)),x(Y,"keyEnd"),v(":"),s&&v(" "),g(Q,R,Y)}}y(w),v("}")}else v("{}")}function O(L){if(b.size){v("{");for(var R=w+1,G=!0,V=b.entries(),Q=V.next();!Q.done;){var Y=Q.value,q=Y[0],T=L?!0:Y[1];if(af(T)){G||v(","),G=!1;var F=k+"/"+Hm(q);y(R),x(F,"key"),v(lf(q)),x(F,"keyEnd"),v(":"),s&&v(" "),g(T,R,F)}Q=V.next()}y(w),v("}")}else v("{}")}}function v(b){h+=b.length,p+=b.length,u+=b}function y(b){if(s){for(u+=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,a as l,o as a,h as i,j as p,aa as u,m as c,p as m,au as _,x as k}from"./
|
|
1
|
+
import{d as s,a as l,o as a,h as i,j as p,aa as u,m as c,p as m,au as _,x as k}from"./CgqO_dPK.js";const d={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},g=s({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(o){const t=o,n=l(()=>t.href||t.to);return(e,h)=>{const r=k;return a(),i(r,_(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:p(()=>[u(e.$slots,"default"),n.value&&e.target==="_blank"?(a(),c("div",d)):m("",!0)]),_:3},16,["class"])}}});export{g as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as o,m as s,k as t,aa as a,o as n}from"./
|
|
1
|
+
import{q as o,m as s,k as t,aa as a,o as n}from"./CgqO_dPK.js";const r={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,_){return n(),s("div",c,[t("div",l,[a(e.$slots,"default")])])}const i=o(r,[["render",d]]);export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{av as m,bb as n,a as s,L as o}from"./
|
|
1
|
+
import{av as m,bb as n,a as s,L as o}from"./CgqO_dPK.js";function u(){const p=m(),t=n("getComponents",()=>o.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(t.value||[]).find(a=>a.pascalName===e.pascalName)));return s(()=>[...l.value,...t.value||[]].sort((e,a)=>e.pascalName.localeCompare(a.pascalName)))}function r(){return n("getComponentsRelationships",()=>o.getComponentsRelationships())}export{r as a,u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as B,r as T,a as k,aq as W,f as t,o,m as s,k as e,t as $,h as y,j as x,bg as q,F as v,n as M,p as P,i as h,v as L,G as E,X as A,_ as G,ac as H,bh as D,b2 as X,b3 as J,ab as Q,an as Y,b4 as Z,ao as ee,l as te,ae as oe,L as ne,M as ae}from"./
|
|
1
|
+
import{d as B,r as T,a as k,aq as W,f as t,o,m as s,k as e,t as $,h as y,j as x,bg as q,F as v,n as M,p as P,i as h,v as L,G as E,X as A,_ as G,ac as H,bh as D,b2 as X,b3 as J,ab as Q,an as Y,b4 as Z,ao as ee,l as te,ae as oe,L as ne,M as ae}from"./CgqO_dPK.js";import{_ as j}from"./5gOKvhnM.js";import{_ as F}from"./h5yVVie-.js";import{_ as se}from"./BrC6rypa.js";import{_ as re}from"./CES52tjx.js";import{_ as le}from"./Br83zsHb.js";import"./BUdaSSAW.js";import"./bUZNM7_n.js";import"./B_BLxwpg.js";const ie={block:"","cursor-pointer":""},ue={p2:""},ce=["onSubmit"],de=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),pe={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},_e={key:1},he=B({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const d=V,w=i,m=T([]),p=k(()=>{const u=N(d.route.path);return m.value=Array.from({length:u.length},()=>""),u});function N(u){return u.split(/(:\w+[\?\*]?(?:\(\))?)/).filter(Boolean).map(_=>_[0]===":"?_.replace(/\(\)$/,"?"):_)}const r=k(()=>p.value.map((u,_)=>u[0]===":"?m.value[_]:u).join("").replace(/\/+/g,"/")),n=k(()=>d.route.path.includes(":"));function f(){w("navigate",r.value)}return(u,_)=>{const a=A,l=G,c=W("VDropdown");return t(n)?(o(),y(c,{key:1},{popper:x(({hide:g})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:q(()=>{f(),g()},["prevent"])},[t(n)?(o(),s(v,{key:0},[de,e("div",pe,[(o(!0),s(v,null,M(t(p),(b,R)=>(o(),s(v,{key:R},[b[0]===":"?(o(),y(a,{key:0,modelValue:t(m)[R],"onUpdate:modelValue":I=>t(m)[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",_e,$(b),1))],64))),128))])],64)):P("",!0),h(l,{block:"",n:"primary"},{default:x(()=>[L(" Navigate ")]),_:1})],40,ce)])]),default:x(()=>[e("code",ie,[(o(!0),s(v,null,M(t(p),(g,b)=>(o(),s("span",{key:b,class:E(g[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(g[0]===":"?g.slice(1):g),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:f},[e("code",null,$(u.route.path),1)]))}}}),me={"w-full":""},fe=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),ge={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},ye={"text-sm":""},be={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},ke=["onClick"],$e=e("div",{"i-carbon-script-reference":""},null,-1),we=[$e],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ve=["onClick"],Ie=B({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,d=H(),w=D(),m=k(()=>[...i.pages].sort((r,n)=>r.path.localeCompare(n.path)));function p(r){const n=i.layouts.find(f=>f.name===r);n&&d(n.file)}function N(r){if(typeof r=="string")return w.value?.middleware.find(n=>n.name===r)?.path}return(r,n)=>{const f=j,u=he,_=F;return o(),s("div",null,[e("table",me,[fe,e("tbody",null,[(o(!0),s(v,null,M(t(m),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ge,[e("div",ve,[r.matched.find(l=>l.name===a.name)?(o(),y(f,{key:0,n:"green",title:"active",textContent:"active"})):r.matchedPending.find(l=>l.name===a.name)?(o(),y(f,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",ye,[e("div",be,[h(u,{route:a,class:E(r.matched.find(l=>l.name===a.name)?"text-primary":r.matchedPending.find(l=>l.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(d)(a.file||a.meta?.file)},we,8,ke)):P("",!0)])])]),e("td",Ne,$(a.name),1),e("td",Re,[h(_,{filepath:N(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ce,[a.meta.layout===!1?(o(),s("span",Pe,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:l=>p(a.meta.layout)},$(a.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=l=>p("default"))}," (default) "))])]))),128))])])])}}}),Le={class:"markdown-body"},Me=e("h1",null,"Pages",-1),Te=e("p",null,[L("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),L(" directory.")],-1),Be=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Ee=e("hr",null,null,-1),Ae=e("h1",null,"Middlewares",-1),De=e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),je=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Fe=[Me,Te,Be,Ee,Ae,De,je],Se={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),(w,m)=>(o(),s("div",Le,Fe))}},ze={key:0,"h-full":"","of-auto":""},Ue={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Ke=e("span",{op50:""},"Navigate from ",-1),Oe={"font-mono":""},We=e("span",{op50:""}," to ",-1),qe={key:1,op50:""},Ge=e("span",null,[L("Press "),e("b",{"font-bold":""},"Enter"),L(" to navigate")],-1),He={key:0,"text-orange":"",op75:""},Xe={key:1,op50:""},Je={"min-h-14":""},Qe={key:1,class:"py-4 text-center"},Ye=e("span",{op50:""},"No routes matched",-1),Ze=[Ye],et={"w-full":""},tt=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),ot={mr1:""},pt=B({__name:"pages",setup(V){const i=X(),d=J(),w=Q(),m=D(),p=Y(),N=Z(),r=k(()=>m.value?.middleware||[]),n=T(""),f=T(0),u=k(()=>(r.value,n.value,p.value,f.value,i.value?.currentRoute?.value?.path));ee(()=>{d.value&&(n.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(c=>{n.value=c.fullPath}),i.value?.afterEach(c=>{n.value=c.fullPath})});async function _(){n.value!==i.value?.currentRoute?.value?.path&&i.value.push(n.value||"/")}const a=k(()=>i.value.resolve(n.value||"/").matched);function l(c){i.value.push(c),n.value=c}return(c,g)=>{const b=A,R=Ie,I=se,S=j,z=F,U=re,K=Se,O=le;return o(),s(v,null,[t(w)?.pages&&t(i)?(o(),s("div",ze,[e("div",Ue,[e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ke,e("span",Oe,$(t(u)),1),We],64)):(o(),s("span",qe,"Current route"))]),h(b,{modelValue:t(n),"onUpdate:modelValue":g[0]||(g[0]=C=>te(n)?n.value=C:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(t(u)===t(n)?"":t(a).length?"text-green":"text-orange"),onKeydown:oe(_,["enter"])},null,8,["modelValue","class"]),e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ge,t(a).length?P("",!0):(o(),s("span",He," (no match)"))],64)):(o(),s("span",Xe,"Edit path above to navigate"))])]),h(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Je,[t(a).length?(o(),y(R,{key:0,pages:t(a),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])):(o(),s("div",Qe,Ze))])]),_:1}),h(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[h(R,{pages:t(N),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",et,[tt,(o(!0),s(v,null,M(t(r),C=>(o(),s("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",ot,$(C.name),1),C.global?(o(),y(S,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[h(z,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(o(),y(U,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in c?c.rpc:t(ne)).runWizard(await("ensureDevAuthToken"in c?c.ensureDevAuthToken:t(ae))(),"enablePages")}}]},null,8,["actions"])),h(O,null,{default:x(()=>[h(K)]),_:1})],64)}}});export{pt as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as N,a as C,aW as oe,e as ae,ac as H,r as A,f as t,h as I,j as _,p as x,o,k as e,m as n,n as B,G as O,t as p,F as T,i as d,v as $,ap as V,_ as J,a9 as R,aX as P,aY as ne,aZ as se,a_ as re,y as ie,z as ce,q as le,a$ as de,b0 as pe,b1 as me,b as ue,b2 as ge,b3 as he,b4 as _e,b5 as G,az as fe,a2 as ve,l as be,ae as we,I as D,X as xe}from"./
|
|
1
|
+
import{d as N,a as C,aW as oe,e as ae,ac as H,r as A,f as t,h as I,j as _,p as x,o,k as e,m as n,n as B,G as O,t as p,F as T,i as d,v as $,ap as V,_ as J,a9 as R,aX as P,aY as ne,aZ as se,a_ as re,y as ie,z as ce,q as le,a$ as de,b0 as pe,b1 as me,b as ue,b2 as ge,b3 as he,b4 as _e,b5 as G,az as fe,a2 as ve,l as be,ae as we,I as D,X as xe}from"./CgqO_dPK.js";import{_ as ye}from"./CwJAxf0e.js";import{_ as U}from"./DCIMJJMV.js";import{_ as q}from"./BrC6rypa.js";import{_ as ke}from"./CfWZksSX.js";import{_ as $e}from"./Br83zsHb.js";import"./BUdaSSAW.js";import"./B_BLxwpg.js";const K=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"optional",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"optional",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"optional",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"optional",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],Se={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},Te=["onClick"],Ce=e("div",{border:"b base","flex-auto":""},null,-1),Ne={key:0,"x-divider":""},Me={key:1,"x-divider":""},Oe={flex:"~ gap-1 items-center",class:"px2 pt2",lg:"px4 py2"},Ie=e("div",{"i-carbon-warning":"","text-orange":""},null,-1),Ae={"w-full":"",p2:"",op75:""},Be={key:1,m4:"",flex:"~ col gap-2"},Re={flex:"~ gap-1 wrap items-center"},Le={key:1},je={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Fe=N({__name:"OpenGraphMissingTabs",props:{tags:{},matchedRouteFilepath:{}},setup(h){const s=h,l=C(()=>K.filter(r=>!s.tags?.some(g=>g.name===r.name))),a=C(()=>{let r={};const g={};l.value.forEach(u=>{u.seoMeta?Object.assign(g,u.seoMeta):r=oe(r,u.head)});const b=[];if(Object.keys(g).length){const u=JSON.stringify(g,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useSeoMeta(${u})`)}if(Object.keys(r).length){const u=JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useHead(${u})`)}return b.join(`
|
|
2
2
|
|
|
3
3
|
`)}),m=ae(),y=H(),k=["Missing Tags","Code Snippet"],f=A(k[0]);return(r,g)=>{const b=U,u=V,S=J,M=ke,L=q;return t(l).length?(o(),I(L,{key:0,text:"Missing Tags",description:`${t(l).length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:_(()=>[e("div",Se,[(o(),n(T,null,B(k,(i,c)=>e("button",{key:c,px4:"",py2:"",border:"r t base",hover:"bg-active",class:O(i===t(f)?"":"border-b"),onClick:v=>f.value=i},[e("div",{class:O(i===t(f)?"":"op30"),capitalize:""},p(i),3)],10,Te)),64)),Ce]),t(f)===k[0]?(o(),I(u,{key:0,grid:"~ cols-[1fr] lg:cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),n(T,null,B(t(l),(i,c)=>(o(),n(T,{key:c},[c?(o(),n("div",Ne)):x("",!0),c?(o(),n("div",Me)):x("",!0),e("div",Oe,[Ie,d(b,{"op-50":"",href:i.docs,target:"_blank",n:"orange"},{default:_(()=>[$(p(i.name),1)]),_:2},1032,["href"])]),e("div",Ae,p(i.description),1)],64))),128))]),_:1})):(o(),n("div",Be,[e("p",Re,[d(S,{icon:"carbon-copy",n:"xs","px-2":"",onClick:g[0]||(g[0]=i=>t(m)(t(a),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1}),$(" the following code snippet and paste it into your "),r.matchedRouteFilepath?(o(),I(S,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:g[1]||(g[1]=i=>t(y)(r.matchedRouteFilepath))},{default:_(()=>[$(" page component ")]),_:1})):(o(),n("span",Le,"page component")),$(" to full fill the missing tags. ")]),d(u,{relative:"","n-code-block":""},{default:_(()=>[d(M,{code:t(a),lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),e("div",je,[d(S,{icon:"carbon-copy",onClick:g[2]||(g[2]=i=>t(m)(t(a),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1})])]),_:1})]))]),_:1},8,["description"])):x("",!0)}}}),ze={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},De={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Ee={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},Ge={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},He={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},Ve={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},Je=N({__name:"SocialFacebook",props:{card:{}},setup(h){return(s,l)=>(o(),n("div",ze,[e("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",De,[e("div",Ee,p(s.card.url),1),e("div",Ge,[e("div",He,p(s.card.title),1),e("div",Ve,p(s.card.description),1)])])]))}}),Pe={class:"max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1",style:{"font-family":"TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"}},Ue={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},qe={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},Ke={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},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 s=h,l=C(()=>P(s.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),a=C(()=>l.value.image?s.tags.find(m=>m.tag==="meta"&&m.name==="twitter:card")?.value||"summary_large_image":"summary");return(m,y)=>(o(),n("div",Pe,[e("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",t(a)==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[t(a)==="summary_large_image"?(o(),n("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)):(o(),n("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)),e("div",Ue,[e("div",qe,p(t(l).url),1),e("div",Ke,p(t(l).title),1),e("div",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(s,l)=>(o(),n("div",Ye,[e("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",Ze,[e("div",Qe,[e("div",et,p(s.card.title),1),e("div",tt,p(s.card.url),1)])])]))}}),at=h=>(ie("data-v-6d584478"),h=h(),ce(),h),nt={class:"relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26] bg-base"},st={class:"pl-[10px] pr-[8px]"},rt={class:"text-[#3390ec] leading-normal underline"},it={class:"quote w-full flex"},ct={class:"flex flex-col gap-1"},lt={key:0,class:"my-[3px] overflow-hidden rounded"},dt=["src"],pt={class:"cursor-pointer text-sm text-[#3390ec]"},mt={class:"cursor-pointer text-sm"},ut={class:"cursor-pointer text-sm"},gt={class:"flex justify-end text-xs text-[#707579]"},ht=at(()=>e("svg",{width:"11",height:"20",viewBox:"0 0 11 20",xmlns:"http://www.w3.org/2000/svg",class:"absolute bottom-0 ml-[-8.4px] translate-y-px text-white"},[e("g",{transform:"translate(9 -14)","fill-rule":"evenodd"},[e("path",{id:"corner-fill",d:"M-6 16h6v17c-.193-2.84-.876-5.767-2.05-8.782-.904-2.325-2.446-4.485-4.625-6.48A1 1 0 01-6 16z",transform:"matrix(1 0 0 -1 0 49)",fill:"currentColor"})])],-1)),_t=N({__name:"SocialTelegram",props:{card:{}},setup(h){const s=ne(),l=se(re(),"HH:mm");return(a,m)=>(o(),n("div",nt,[e("div",st,[e("div",rt,p(a.card.url),1),e("div",it,[e("div",ct,[a.card.image?(o(),n("div",lt,[e("img",{class:"h-full max-w-full w-full rounded object-cover",src:a.card.image},null,8,dt)])):x("",!0),e("div",pt,[e("strong",null,p(t(s).hostname),1)]),e("div",mt,[e("strong",null,p(a.card.title),1)]),e("div",ut,p(a.card.description),1)])]),e("div",gt,[e("span",null,p(t(l)),1)])]),ht]))}}),ft=le(_t,[["__scopeId","data-v-6d584478"]]),vt={flex:"~ col"},bt={flex:"~ wrap","w-full":"","flex-none":""},wt=["onClick"],xt=e("div",{border:"b base","flex-auto":""},null,-1),yt={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},kt={key:0},$t={key:1},St={key:2},Tt={key:3},Ct=N({__name:"SocialPreviewGroup",props:{tags:{}},setup(h){const s=h,l=["twitter","facebook","linkedin","telegram"],a=de("nuxt-devtools-social-preview-tab",l[0]),m=C(()=>P(s.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return(y,k)=>{const f=Je,r=Xe,g=ot,b=ft;return o(),n("div",vt,[e("div",bt,[(o(),n(T,null,B(l,(u,S)=>e("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(u===t(a)?"":"border-b"),onClick:M=>a.value=u},[e("div",{class:O(u===t(a)?"":"op30"),capitalize:""},p(u),3)],10,wt)),64)),xt]),e("div",yt,[t(a)==="facebook"?(o(),n("div",kt,[d(f,{card:t(m)},null,8,["card"])])):t(a)==="twitter"?(o(),n("div",$t,[d(r,{tags:y.tags},null,8,["tags"])])):t(a)==="linkedin"?(o(),n("div",St,[d(g,{card:t(m)},null,8,["card"])])):t(a)==="telegram"?(o(),n("div",Tt,[d(b,{card:t(m)},null,8,["card"])])):x("",!0)])])}}}),Nt={class:"markdown-body"},Mt=pe('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6),Ot=[Mt],It={__name:"open-graph",setup(h,{expose:s}){return s({frontmatter:{}}),(a,m)=>(o(),n("div",Nt,Ot))}},At={flex:"~ col lg:row","h-full":"","w-full":"","of-hidden":""},Bt={"flex-auto":"","of-auto":""},Rt={"flex-none":"",flex:"~ gap2 items-center"},Lt={flex:"~ col"},jt={key:0,"x-divider":""},Ft={key:1,"x-divider":""},zt={mr2:"",px4:"",py2:""},qt=N({__name:"open-graph",setup(h){const s=A(0),l=me(),a=ue(async()=>(s.value,(await l.value?.resolveTags()).map(c=>{const v=c.props||{};return c.tag==="htmlAttrs"&&v.lang?{tag:"html",name:"lang",value:v.lang}:v.charset?{tag:"meta",name:"charset",value:v.charset}:{tag:c.tag,name:v.property??v.name??v.rel??c.tag,value:v.content??v.href??c.textContent??JSON.stringify(v)}})),[]),m=A(!0);function y(){s.value+=1}const k=ge(),f=he(),r=A(""),g=_e(),b=H();async function u(){r.value!==f.value.path&&k.value.push(r.value||"/")}const S=C(()=>r.value===f.value.path?[]:k.value.resolve(r.value||"/").matched),M=C(()=>{const i=g.value.find(c=>c.path===f.value?.matched?.[0]?.path);return i?.file||i?.meta?.file});function L(i){return K.find(c=>c.name===i.name)?.docs}return G(f).toBeTruthy().then(i=>{r.value=i.path}),G(k).toBeTruthy().then(i=>{i.afterEach(()=>{fe(()=>{r.value=f.value.path,setTimeout(y,200),setTimeout(y,800)})})}),(i,c)=>{const v=xe,j=J,W=ye,E=U,X=V,Y=q,Z=Fe,Q=Ct,ee=It,te=$e,F=ve("tooltip");return o(),n(T,null,[e("div",At,[e("div",Bt,[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",Rt,[t(M)?D((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),D(d(j,{"text-lg":"",border:!1,icon:"carbon:reset",title:"Refresh Data",onClick:y},null,512),[[F,"Refresh Data"]]),D(d(j,{"text-lg":"",border:!1,icon:t(m)?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:c[2]||(c[2]=w=>m.value=!t(m))},null,8,["icon"]),[[F,"Toggle Preview"]])])]),_:1}),e("div",Lt,[d(Y,{text:"Tags",icon:"carbon:tag-group"},{default:_(()=>[d(X,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),n(T,null,B(t(a),(w,z)=>(o(),n(T,{key:z},[z?(o(),n("div",jt)):x("",!0),z?(o(),n("div",Ft)):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(a),"matched-route-filepath":t(M)},null,8,["tags","matched-route-filepath"])])]),t(m)&&t(a)?.length?(o(),I(Q,{key:0,tags:t(a),"flex-none":"","border-base":"","lt-lg":"border-t",lg:"h-full w-140 border-l"},null,8,["tags"])):x("",!0)]),d(te,null,{default:_(()=>[d(ee)]),_:1})],64)}}});export{qt as default};
|