@nuxt/devtools 1.3.6 → 1.3.8
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 +5 -6
- package/dist/client/200.html +21 -22
- package/dist/client/404.html +21 -22
- package/dist/client/_nuxt/{WM2j0JTY.js → 8q1pCtVS.js} +1 -1
- package/dist/client/_nuxt/{D1ai4dMD.js → B04hL9Ab.js} +1 -1
- package/dist/client/_nuxt/B6E6ObS_.js +8 -0
- package/dist/client/_nuxt/{CeEyhwqV.js → B6TDWpKk.js} +1 -1
- package/dist/client/_nuxt/{qjjxT3sB.js → BG5RUyXI.js} +1 -1
- package/dist/client/_nuxt/{iVffBGw4.js → BLxIf9BH.js} +1 -1
- package/dist/client/_nuxt/BM3cCZms.js +15 -0
- package/dist/client/_nuxt/{D4gp4vy1.js → BRFlSxxW.js} +1 -1
- package/dist/client/_nuxt/{le4cTzpD.js → BS5FcDmG.js} +1 -1
- package/dist/client/_nuxt/{D0a-fr3P.js → BTj8T8Us.js} +1 -1
- package/dist/client/_nuxt/{BV7UswB-.js → B_lF4o9u.js} +1 -1
- package/dist/client/_nuxt/{gXEBKoIH.js → BdSLTmjP.js} +1 -1
- package/dist/client/_nuxt/{CaYna3zI.js → BjYCaXNT.js} +1 -1
- package/dist/client/_nuxt/BnXFHUk0.js +1 -0
- package/dist/client/_nuxt/{CIBl9CV2.js → BvHZCDLj.js} +1 -1
- package/dist/client/_nuxt/{DcU8UfXq.js → BwKcIQOa.js} +1 -1
- package/dist/client/_nuxt/{BNQzKmJG.js → Bxh-fvdv.js} +1 -1
- package/dist/client/_nuxt/{C3yfYbN6.js → C2c19bzT.js} +1 -1
- package/dist/client/_nuxt/{CzF78jgR.js → C3FSKLnj.js} +1 -1
- package/dist/client/_nuxt/{DmAOJaWQ.js → C7cYo4YF.js} +1 -1
- package/dist/client/_nuxt/{mNWHE61E.js → C8N9kWh2.js} +1 -1
- package/dist/client/_nuxt/{JA61WTyb.js → CCEQErg8.js} +1 -1
- package/dist/client/_nuxt/{23UkCXk9.js → CGZO0Dbu.js} +1 -1
- package/dist/client/_nuxt/{C1dTBAc9.js → CH-roGkP.js} +1 -1
- package/dist/client/_nuxt/{CGDVgZTR.js → CHQglk26.js} +2 -2
- package/dist/client/_nuxt/{BqquXJFk.js → CPUwo9Dx.js} +1 -1
- package/dist/client/_nuxt/{BrtwsvwD.js → CSGOJSAd.js} +1 -1
- package/dist/client/_nuxt/{DCRELQON.js → CbM9OHn3.js} +1 -1
- package/dist/client/_nuxt/{BKyy5G7o.js → Cda7aUrs.js} +1 -1
- package/dist/client/_nuxt/{BOxnhk4W.js → CfkdovQd.js} +31 -31
- package/dist/client/_nuxt/{zd9j1bFf.js → Ckn823xU.js} +95 -95
- package/dist/client/_nuxt/{EGB1eG4E.js → Csl1JfEo.js} +1 -1
- package/dist/client/_nuxt/{C1sxBnXr.js → CssX2CxZ.js} +1 -1
- package/dist/client/_nuxt/Cuq1Z6bh.js +1 -0
- package/dist/client/_nuxt/CwTcTc2N.js +43 -0
- package/dist/client/_nuxt/CyiHZscW.js +1 -0
- package/dist/client/_nuxt/D0h9jATl.js +1 -0
- package/dist/client/_nuxt/D5ctTtkd.js +1 -0
- package/dist/client/_nuxt/{DSpVgsos.js → D7m39p-9.js} +1 -1
- package/dist/client/_nuxt/{DRbi-AHv.js → DE5e3ZuV.js} +1 -1
- package/dist/client/_nuxt/{CJyLsSWQ.js → DETXY6Xa.js} +1 -1
- package/dist/client/_nuxt/{CRLCUxrw.js → DEkvPDn8.js} +1 -1
- package/dist/client/_nuxt/DJS8TjB-.js +1 -0
- package/dist/client/_nuxt/{D1PyVebX.js → DJdrWIcn.js} +1 -1
- package/dist/client/_nuxt/DKSts1V4.js +1 -0
- package/dist/client/_nuxt/DVk2I1gO.js +1 -0
- package/dist/client/_nuxt/{xooHg0zg.js → DX-YUedo.js} +51 -51
- package/dist/client/_nuxt/{CSjnDvWq.js → DdjW6vu9.js} +1 -1
- package/dist/client/_nuxt/{BBl1za1W.js → DeSj8VZN.js} +1 -1
- package/dist/client/_nuxt/{wuvOqWUR.js → DluxqTUE.js} +1 -1
- package/dist/client/_nuxt/{BMGqu_eq.js → Dslz6rss.js} +1 -1
- package/dist/client/_nuxt/{DI2S-mmO.js → DuFGBY9A.js} +1 -1
- package/dist/client/_nuxt/{BJ7-F_-K.js → DvDu1JUs.js} +1 -1
- package/dist/client/_nuxt/{DaiXQWiC.js → GdB9kz-4.js} +1 -1
- package/dist/client/_nuxt/{D-oZYQtF.js → QBzUTbSD.js} +1 -1
- package/dist/client/_nuxt/{BbLM2rJC.js → QQ7YbgtC.js} +1 -1
- package/dist/client/_nuxt/{4Dr4Cj7R.js → Xpd7UJs5.js} +1 -1
- package/dist/client/_nuxt/{BTgTnXCo.js → _OFeGLwh.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/8ac9da91-0524-4abf-a805-60b3d6199fe9.json +1 -0
- package/dist/client/_nuxt/{VY7KastK.js → dXjzJhiW.js} +2 -2
- package/dist/client/_nuxt/{entry.IakuBfY1.css → entry.hxdKUDpu.css} +1 -1
- package/dist/client/_nuxt/error-404.C4UNnO0a.css +1 -0
- package/dist/client/_nuxt/error-500.BbJ9e2Fk.css +1 -0
- package/dist/client/_nuxt/{CKhZMZp5.js → fwfpIEej.js} +2 -2
- package/dist/client/_nuxt/{8B46VhQd.js → ix9IAXj6.js} +1 -1
- package/dist/client/_nuxt/{DUMJFAjE.js → mQFKENXH.js} +1 -1
- package/dist/client/_nuxt/{xLwx2Q8v.js → o8QbmO42.js} +1 -1
- package/dist/client/_nuxt/{CoViSLbB.js → pA_iBoe4.js} +2 -2
- package/dist/client/_nuxt/wGyJxDW5.js +9 -0
- package/dist/client/index.html +21 -22
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/view/Main.vue +1 -1
- package/package.json +13 -13
- package/dist/client/_nuxt/B11h7Ese.js +0 -1
- package/dist/client/_nuxt/BD4ddXSe.js +0 -15
- package/dist/client/_nuxt/BHXtCixK.js +0 -1
- package/dist/client/_nuxt/BIR-zdoB.js +0 -43
- package/dist/client/_nuxt/Cts2COMF.js +0 -1
- package/dist/client/_nuxt/Cu-emya-.js +0 -1
- package/dist/client/_nuxt/D2vAxeLa.js +0 -9
- package/dist/client/_nuxt/D5r6TWiw.js +0 -1
- package/dist/client/_nuxt/DFF-wSSt.js +0 -8
- package/dist/client/_nuxt/DKqjZTFM.js +0 -1
- package/dist/client/_nuxt/MxM3SGVW.js +0 -1
- package/dist/client/_nuxt/builds/meta/fa3e000a-5062-43b8-9d7a-e19f63f0ca92.json +0 -1
- package/dist/client/_nuxt/error-404.CdZ-8tbX.css +0 -1
- package/dist/client/_nuxt/error-500.4KK_ddFR.css +0 -1
- package/dist/client/_nuxt/fFj225Ww.js +0 -1
- package/dist/client/_nuxt/rLhPImdI.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as v}from"./CeEyhwqV.js";import{_ as x}from"./D-oZYQtF.js";import{o as r,m as u,k as e,v as _,d as y,am as b,bF as C,a as d,f as i,i as t,j as a,p as k,F as w}from"./BIR-zdoB.js";import{_ as N}from"./xLwx2Q8v.js";import"./DCRELQON.js";import"./xooHg0zg.js";import"./BTgTnXCo.js";const R={class:"markdown-body"},T=e("h1",null,"Runtime Configs",-1),B=e("p",null,"Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables.",-1),F=e("p",null,[_("In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your "),e("code",null,"nuxt.config.js"),_(" file, or check more details in the documentation.")],-1),V=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),$=[T,B,F,V],D={__name:"runtime-configs",setup(f,{expose:o}){return o({frontmatter:{}}),(p,m)=>(r(),u("div",R,$))}},P={key:0},z=y({__name:"runtime-configs",setup(f){const o=b(),l=C(),p=d(()=>o.value?.nuxt.payload),m=d(()=>{const n={...l.value};return delete n.public,delete n.app,n});return(n,S)=>{const s=v,c=x,g=D,h=N;return r(),u(w,null,[i(o)?(r(),u("div",P,[t(c,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:a(()=>[t(s,{state:i(o).app.appConfig},null,8,["state"])]),_:1}),t(c,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:a(()=>[t(s,{state:i(p).config?.public},null,8,["state"])]),_:1}),t(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(()=>[t(s,{state:i(m),readonly:""},null,8,["state"])]),_:1})])):k("",!0),t(h,null,{default:a(()=>[t(g)]),_:1})],64)}}});export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as P,a as I,r as V,o,m as s,k as e,F as _,n as j,G as S,f as t,t as p,p as b,H as U,i as u,j as r,v as f,I as A,J as D,K as X,L as F,M as E,_ as G,N as q,O as ee,P as ne,Q as te,R as oe,S as le,U as ie,V as se,W as C,h as z,l as R,X as ae,Y as re,Z as ue,A as de}from"./BIR-zdoB.js";import{_ as ce}from"./23UkCXk9.js";import{_ as me}from"./BqquXJFk.js";import{_ as _e}from"./DaiXQWiC.js";import{_ as pe}from"./xLwx2Q8v.js";import"./BrtwsvwD.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ve={flex:"~ wrap","w-full":""},he=["onClick"],ye=e("div",{border:"b base","flex-auto":""},null,-1),be={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},$e=e("div",{"flex-auto":""},null,-1),ge={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},xe=e("div",{"i-carbon-commit":"","text-xl":""},null,-1),we=e("div",{"text-sm":"",op50:""}," Name ",-1),ze=e("div",{"i-carbon-time":"","text-xl":""},null,-1),Be=e("div",{"text-sm":"",op50:""}," Build duration ",-1),Ce=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1),ke=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1),Ne=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1),Te=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1),Ae=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1),De=e("div",{"text-sm":"",op50:""}," Built ",-1),Ie=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1),Ve=e("div",{"text-sm":"",op50:""}," Report Path ",-1),Se=e("div",{"flex-auto":""},null,-1),Fe=P({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(k){const v=k,g=`${X().app.baseURL}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),x=I(()=>{const n=[{name:"Overview",id:"overview"}];return v.current.features.bundleClient&&n.push({name:"Client Bundle",id:"bundle-client"}),v.current.features.bundleNitro&&n.push({name:"Nitro Bundle",id:"bundle-nitro"}),v.current.features.viteInspect&&n.push({name:"Vite Inspect",id:"vite-inspect"}),n}),i=V(x.value[0]);function h(n){return n<1024?`${n}B`:n<1024*1024?`${(n/1024).toFixed(1)}KB`:n<1024*1024*1024?`${(n/1024/1024).toFixed(1)}MB`:`${(n/1024/1024/1024).toFixed(1)}GB`}function d(n){return`${((n.endTime-n.startTime)/1e3).toFixed(1)}s`}async function N(n){return F.clearAnalyzeBuilds(await E(),[n])}return(n,c)=>{const B=ce,T=G;return o(),s("div",fe,[e("div",ve,[(o(!0),s(_,null,j(t(x),(l,m)=>(o(),s("button",{key:m,px4:"",py2:"",border:"r base",hover:"bg-active",class:S(l.id===t(i).id?"":"border-b"),onClick:w=>i.value=l},[e("div",{class:S(l.id===t(i).id?"":"op30")},p(l.name),3)],10,he))),128)),ye]),t(i).id==="overview"?(o(),s("div",be,[$e,e("div",ge,[xe,e("div",null,[we,e("div",null,p(n.current.name),1)]),ze,e("div",null,[Be,e("div",null,p(d(n.current)),1)]),n.current.size?.clientBundle?(o(),s(_,{key:0},[Ce,e("div",null,[ke,e("div",null,p(h(n.current.size.clientBundle)),1)])],64)):b("",!0),n.current.size.nitroBundle?(o(),s(_,{key:1},[Ne,e("div",null,[Te,e("div",null,p(h(n.current.size.nitroBundle)),1)])],64)):b("",!0),Ae,e("div",null,[De,e("div",null,p(t(U)(new Date(n.current.endTime))),1)]),Ie,e("div",null,[Ve,u(B,{filepath:n.current.analyzeDir},null,8,["filepath"])])]),Se,u(T,{n:"rose",icon:"carbon-delete",onClick:c[0]||(c[0]=l=>N(n.current.name))},{default:r(()=>[f(" Delete this report ")]),_:1})])):b("",!0),c._lazyshow1||t(i).id==="bundle-client"?(c._lazyshow1=!0,o(),s(_,null,[A(e("iframe",{src:`${t(g)}${n.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,t(i).id==="bundle-client"]])],64)):b("v-show-if",!0),c._lazyshow2||t(i).id==="bundle-nitro"?(c._lazyshow2=!0,o(),s(_,null,[A(e("iframe",{src:`${t(g)}${n.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,t(i).id==="bundle-nitro"]])],64)):b("v-show-if",!0),c._lazyshow3||t(i).id==="vite-inspect"?(c._lazyshow3=!0,o(),s(_,null,[A(e("iframe",{src:`${t(g)}${n.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[D,t(i).id==="vite-inspect"]])],64)):b("v-show-if",!0)])}}}),Re={class:"markdown-body"},Pe=e("h1",null,"Build Analyze",-1),je=e("p",null,[f("DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command "),e("code",null,"nuxt build --analyze"),f(" and present the output data directly in DevTools for easy browsing and comparing.")],-1),Ue=[Pe,je],Ee={__name:"analyze-build",setup(k,{expose:v}){return v({frontmatter:{}}),(g,x)=>(o(),s("div",Re,Ue))}},Ge={flex:"~ col"},Le=["onClick"],Oe={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},He=e("div",{"i-carbon-time":""},null,-1),Ke=e("div",{"flex-auto":""},null,-1),Me=e("div",{"x-divider":""},null,-1),We={flex:"~ items-center justify-center wrap",p4:""},Ye={flex:"~ col gap-1","w-250":"",p4:""},Ze=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1),Je=e("p",{op50:""}," Enter the name of the build: ",-1),Qe=e("div",{my3:"","x-divider":""},null,-1),Xe=e("p",{op50:""}," The following command will be executed in your terminal: ",-1),qe={flex:"~ gap-3",mt2:"","justify-end":""},an=P({__name:"analyze-build",setup(k){const v=q(),$=ee(),g=ne(),x=te("analyze-build:slug",""),i=I(()=>$.value?.builds.find(l=>l.slug===x.value)??$.value?.builds[0]),h=V(!1),d=V(""),N=I(()=>$.value?.builds.some(l=>l.name===d.value.trim()));async function n(){d.value=await F.generateAnalyzeBuildName(),await v.start()&&(se("analyze-build:start"),C.value={name:d.value,processId:await F.startAnalyzeBuild(await E(),d.value)},h.value&&B())}const c=oe();function B(){C.value?.processId&&(c.value=C.value.processId,g.push("/modules/terminals"))}function T(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:n}]),(l,m)=>{const w=G,L=Fe,O=de,H=ie,K=ae,M=re,W=me,Y=_e,Z=ue,J=Ee,Q=pe;return o(),s(_,null,[u(H,{"left-size":30},{left:r(()=>[e("div",Ge,[(o(!0),s(_,null,j(t($)?.builds,a=>(o(),s(_,{key:a.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:S(a.slug===t(i)?.slug?"text-primary bg-active":""),onClick:y=>x.value=a.slug},[e("code",null,p(a.name),1),e("div",Oe,[He,e("span",null,p(T(a)),1),Ke,e("span",null,p(t(U)(new Date(a.endTime))),1)])],10,Le),Me],64))),128)),e("div",We,[("processAnalyzeBuildInfo"in l?l.processAnalyzeBuildInfo:t(C))?(o(),z(w,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:m[1]||(m[1]=a=>B())},{default:r(()=>[f(" Building... ")]),_:1})):(o(),z(w,{key:0,n:"primary",icon:"carbon-edge-node",onClick:m[0]||(m[0]=a=>n())},{default:r(()=>[f(" Start a new build ")]),_:1}))])])]),right:r(()=>[t(i)?(o(),z(L,{key:0,current:t(i)},null,8,["current"])):(o(),z(O,{key:1}))]),_:1}),u(t(v),null,{default:r(({resolve:a})=>[u(Z,{"model-value":!0,onClose:y=>a(!1)},{default:r(()=>[e("div",Ye,[Ze,Je,u(K,{modelValue:t(d),"onUpdate:modelValue":m[2]||(m[2]=y=>R(d)?d.value=y:null),placeholder:"Build name"},null,8,["modelValue"]),t(N)?(o(),z(M,{key:0,"n-orange":""},{default:r(()=>[f(" A build with the same name already exists, continue would overrides the previous build result. ")]),_:1})):b("",!0),Qe,Xe,u(W,{code:`npx nuxi analyze --no-serve --name=${t(d)}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),u(Y,{modelValue:t(h),"onUpdate:modelValue":m[3]||(m[3]=y=>R(h)?h.value=y:null),mt2:"",n:"primary"},{default:r(()=>[f(" Navigate to terminal ")]),_:1},8,["modelValue"]),e("div",qe,[u(w,{onClick:y=>a(!1)},{default:r(()=>[f(" Cancel ")]),_:2},1032,["onClick"]),u(w,{n:"solid primary",onClick:y=>a(!0)},{default:r(()=>[f(" Start ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),u(Q,null,{default:r(()=>[u(J)]),_:1})],64)}}});export{an as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{d as x,am as y,a as _,m as d,f as i,i as N,j as C,k as m,t as p,p as h,h as w,Y as S,o as l,v as $}from"./BIR-zdoB.js";import{_ as O}from"./DmAOJaWQ.js";import"./23UkCXk9.js";const R=/(^|@)\S+:\d+/,k=/^\s*at .*(\S+:\d+|\(native\))/m,A=/^(eval@)?(\[native code])?$/;function F(e,t){if(typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u")return P(e,t);if(e.stack&&e.stack.match(k))return I(e,t);if(e.stack)return T(e,t);throw new Error("Cannot parse given Error object")}function v(e){if(!e.includes(":"))return[e,void 0,void 0];const s=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[s[1],s[2]||void 0,s[3]||void 0]}function f(e,t){return t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e}function I(e,t){return b(e.stack,t)}function b(e,t){return f(e.split(`
|
|
2
|
-
`).filter(n=>!!n.match(k)),t).map(n=>{n.includes("(eval ")&&(n=n.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=n.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const c=r.match(/ (\(.+\)$)/);r=c?r.replace(c[0],""):r;const o=v(c?c[1]:r),a=c&&r||void 0,u=["eval","<anonymous>"].includes(o[0])?void 0:o[0];return{function:a,file:u,line:o[1]?+o[1]:void 0,col:o[2]?+o[2]:void 0,raw:n}})}function T(e,t){return V(e.stack,t)}function V(e,t){return f(e.split(`
|
|
3
|
-
`).filter(n=>!n.match(A)),t).map(n=>{if(n.includes(" > eval")&&(n=n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!n.includes("@")&&!n.includes(":"))return{function:n};{const r=/((.*".+"[^@]*)?[^@]*)(?:@)/,c=n.match(r),o=c&&c[1]?c[1]:void 0,a=v(n.replace(r,""));return{function:o,file:a[0],line:a[1]?+a[1]:void 0,col:a[2]?+a[2]:void 0,raw:n}}})}function P(e,t){return!e.stacktrace||e.message.includes(`
|
|
4
|
-
`)&&e.message.split(`
|
|
5
|
-
`).length>e.stacktrace.split(`
|
|
6
|
-
`).length?B(e):e.stack?X(e,t):L(e)}function B(e,t){const s=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split(`
|
|
7
|
-
`),r=[];for(let c=2,o=n.length;c<o;c+=2){const a=s.exec(n[c]);a&&r.push({file:a[2],line:+a[1],raw:n[c]})}return f(r,t)}function L(e,t){const s=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split(`
|
|
8
|
-
`),r=[];for(let c=0,o=n.length;c<o;c+=2){const a=s.exec(n[c]);a&&r.push({function:a[3]||void 0,file:a[2],line:a[1]?+a[1]:void 0,raw:n[c]})}return f(r,t)}function X(e,t){return f(e.stack.split(`
|
|
9
|
-
`).filter(n=>!!n.match(R)&&!n.match(/^Error created at/)),t).map(n=>{const r=n.split("@"),c=v(r.pop()),o=r.shift()||"",a=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;let u;o.match(/\(([^)]*)\)/)&&(u=o.replace(/^[^(]+\(([^)]*)\)$/,"$1"));const E=u===void 0||u==="[arguments not available]"?void 0:u.split(",");return{function:a,args:E,file:c[0],line:c[1]?+c[1]:void 0,col:c[2]?+c[2]:void 0,raw:n}})}function D(e){return e.map(t=>({functionName:t.function,args:t.args,fileName:t.file,lineNumber:t.line,columnNumber:t.col,source:t.raw}))}function g(e,t){return D(F(e,t))}const G={p6:""},M={key:0},j={"text-6xl":""},K={key:0,op75:""},z={my4:"","text-xl":"","text-red":""},H={key:1,"of-auto":"",rounded:"","bg-active":"",p2:""},U=m("div",{px1:"",op50:""}," Stacktrace ",-1),W=["textContent"],Y={key:1,op50:""},Z=x({__name:"error",setup(e){const t=y(),s=_(()=>{const r=t.value?.nuxt?.payload?.error;return r&&(console.error("[Nuxt DevTools] Error in payload:"),console.error(r),console.error({...r})),r}),n=_(()=>{if(!s.value?.stack)return[];try{return s.value.stack.startsWith("<pre>")?g({stack:s.value.stack.replace(/<.*?>/g,"")}):g(s.value)}catch(r){return console.error(r),[]}});return(r,c)=>{const o=S,a=O;return l(),d("div",G,[i(s)?(l(),d("div",M,[N(o,{n:"red",icon:"i-carbon-warning-alt-filled",mb5:""},{default:C(()=>[$(" Error occurred in this page ")]),_:1}),m("div",j,p(i(s).statusCode||"Client Error"),1),i(s).statusMessage?(l(),d("div",K,p(i(s).statusMessage),1)):h("",!0),m("div",z,p(i(s).message||i(s).description||"Unknown error"),1),i(n).length||i(s).stack?(l(),d("div",H,[U,i(n).length?(l(),w(a,{key:0,px2:"",stacktrace:i(n)},null,8,["stacktrace"])):(l(),d("pre",{key:1,textContent:p(i(s).stack)},null,8,W))])):h("",!0)])):(l(),d("div",Y," No error "))])}}});export{Z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=[{id:"doc:getting-started:introduction",title:"Introduction",description:"Nuxt's goal is to make web development intuitive and performant with a great Developer Experience in mind.",url:"https://nuxt.com/docs/getting-started/introduction"},{id:"doc:getting-started:deployment",title:"Deployment",description:"Deploy on a Node.js server, pre-render for static hosting and to serverless or edge environments.",url:"https://nuxt.com/docs/getting-started/deployment"},{id:"doc:getting-started:testing",title:"Testing",url:"https://nuxt.com/docs/getting-started/testing"},{id:"doc:getting-started:upgrade",title:"Upgrade Guide",description:"Have a Nuxt 2 project to migrate? Use these guides to upgrade your applications to Nuxt 3.",url:"https://nuxt.com/docs/getting-started/upgrade"},{id:"doc:getting-started:installation",title:"Installation",url:"https://nuxt.com/docs/getting-started/installation"},{id:"doc:getting-started:configuration",title:"Configuration",description:"Nuxt is configured with sensible defaults. The config file can override or extend them.",url:"https://nuxt.com/docs/getting-started/configuration"},{id:"doc:getting-started:views",title:"Views",url:"https://nuxt.com/docs/getting-started/views"},{id:"doc:getting-started:assets",title:"Assets",url:"https://nuxt.com/docs/getting-started/assets"},{id:"doc:getting-started:routing",title:"Routing",description:"Nuxt file-system routing creates a route for every file in the pages/ directory.",url:"https://nuxt.com/docs/getting-started/routing"},{id:"doc:getting-started:seo-meta",title:"SEO and Meta",description:"Improve your Nuxt app's SEO with powerful head config, composables and components.",url:"https://nuxt.com/docs/getting-started/seo-meta"},{id:"doc:getting-started:transitions",title:"Transitions",description:"Nuxt leverages Vue's Transition component to apply transitions between pages and layouts.",url:"https://nuxt.com/docs/getting-started/transitions"},{id:"doc:getting-started:data-fetching",title:"Data fetching",description:"Nuxt provides composables to handle data fetching within your application.",url:"https://nuxt.com/docs/getting-started/data-fetching"},{id:"doc:getting-started:state-management",title:"State Management",description:"Nuxt provides powerful state management libraries and the useState composable to create a reactive and SSR-friendly shared state.",url:"https://nuxt.com/docs/getting-started/state-management"},{id:"doc:getting-started:error-handling",title:"Error handling",url:"https://nuxt.com/docs/getting-started/error-handling"},{id:"doc:getting-started:layers",title:"Layers",description:"Nuxt provides a powerful system that allows you to extend the default files, configs, and much more.",url:"https://nuxt.com/docs/getting-started/layers"},{id:"doc:guide:concepts:auto-imports",title:"Auto imports",description:"Nuxt auto-imports helper functions, composables and Vue APIs.",url:"https://nuxt.com/docs/guide/concepts/auto-imports"},{id:"doc:guide:concepts:vuejs-development",title:"Vue.js Development",description:"Nuxt uses Vue and adds features such as component auto-imports and file-based routing.",url:"https://nuxt.com/docs/guide/concepts/vuejs-development"},{id:"doc:guide:concepts:rendering",title:"Rendering Modes",description:"Nuxt supports different rendering modes, univeral rendering, client-side rendering but also offers hybrid-rendering and the possibility to render on CDN Edge Servers.",url:"https://nuxt.com/docs/guide/concepts/rendering"},{id:"doc:guide:concepts:server-engine",title:"Server Engine",url:"https://nuxt.com/docs/guide/concepts/server-engine"},{id:"doc:guide:concepts:modules",title:"Modules",description:"Nuxt provides a module system to extend the framework core and simplify integrations.",url:"https://nuxt.com/docs/guide/concepts/modules"},{id:"doc:guide:concepts:esm",title:"ES Modules",description:"Nuxt 3 (and Bridge) uses Native ES Modules.",url:"https://nuxt.com/docs/guide/concepts/esm"},{id:"doc:guide:concepts:typescript",title:"TypeScript",description:"Nuxt 3 is fully typed and provides accurate type information when you are coding.",url:"https://nuxt.com/docs/guide/concepts/typescript"},{id:"doc:guide:directory-structure:nuxt",title:".nuxt",description:"Nuxt uses the .nuxt/ directory in development to generate your Vue application.",url:"https://nuxt.com/docs/guide/directory-structure/nuxt"},{id:"doc:guide:directory-structure:output",title:".output",description:"Nuxt creates the .output/ directory when building your application for production.",url:"https://nuxt.com/docs/guide/directory-structure/output"},{id:"doc:guide:directory-structure:assets",title:"assets",description:"The assets/ directory is used to add all the website's assets that the build tool will process.",url:"https://nuxt.com/docs/guide/directory-structure/assets"},{id:"doc:guide:directory-structure:components",title:"components",description:"The components/ directory is where you put all your Vue components.",url:"https://nuxt.com/docs/guide/directory-structure/components"},{id:"doc:guide:directory-structure:composables",title:"composables",description:"Use the composables/ directory to auto-import your Vue composables into your application.",url:"https://nuxt.com/docs/guide/directory-structure/composables"},{id:"doc:guide:directory-structure:content",title:"content",description:"The Content module reads the content/ directory to create a file-based CMS for your application.",url:"https://nuxt.com/docs/guide/directory-structure/content"},{id:"doc:guide:directory-structure:layouts",title:"layouts",description:"Nuxt provides a layouts framework to extract common UI patterns into reusable layouts.",url:"https://nuxt.com/docs/guide/directory-structure/layouts"},{id:"doc:guide:directory-structure:middleware",title:"middleware",description:"Nuxt provides middleware to run code before navigating to a particular route.",url:"https://nuxt.com/docs/guide/directory-structure/middleware"},{id:"doc:guide:directory-structure:modules",title:"modules",description:"Use the modules/ directory to automatically register local modules within your application.",url:"https://nuxt.com/docs/guide/directory-structure/modules"},{id:"doc:guide:directory-structure:node_modules",title:"node_modules",description:"The package manager stores the dependencies of your project in the node_modules/ directory.",url:"https://nuxt.com/docs/guide/directory-structure/node_modules"},{id:"doc:guide:directory-structure:pages",title:"pages",description:"Nuxt provides a file-based routing to create routes within your web application.",url:"https://nuxt.com/docs/guide/directory-structure/pages"},{id:"doc:guide:directory-structure:plugins",title:"plugins",description:"Nuxt reads the files in your plugins directory and loads them at the creation of the Vue application.",url:"https://nuxt.com/docs/guide/directory-structure/plugins"},{id:"doc:guide:directory-structure:public",title:"public",description:"The public/ directory is used to serve your website's static assets.",url:"https://nuxt.com/docs/guide/directory-structure/public"},{id:"doc:guide:directory-structure:server",title:"server",description:"The server/ directory is used to register API and server handlers to your application.",url:"https://nuxt.com/docs/guide/directory-structure/server"},{id:"doc:guide:directory-structure:utils",title:"utils",description:"Use the utils/ directory to auto-import your utility functions throughout your application.",url:"https://nuxt.com/docs/guide/directory-structure/utils"},{id:"doc:guide:directory-structure:env",title:".env",description:"A .env file specifies your build/dev-time environment variables.",url:"https://nuxt.com/docs/guide/directory-structure/env"},{id:"doc:guide:directory-structure:gitignore",title:".gitignore",description:"A .gitignore file specifies intentionally untracked files that git should ignore.",url:"https://nuxt.com/docs/guide/directory-structure/gitignore"},{id:"doc:guide:directory-structure:nuxtignore",title:".nuxtignore",description:"The .nuxtignore file lets Nuxt ignore files in your project’s root directory during the build phase.",url:"https://nuxt.com/docs/guide/directory-structure/nuxtignore"},{id:"doc:guide:directory-structure:app-config",title:"app.config.ts",description:"Nuxt 3 provides the app.config file to expose reactive configuration within your application.",url:"https://nuxt.com/docs/guide/directory-structure/app-config"},{id:"doc:guide:directory-structure:app",title:"app.vue",description:"The app.vue file is the main component in your Nuxt 3 applications.",url:"https://nuxt.com/docs/guide/directory-structure/app"},{id:"doc:guide:directory-structure:nuxt.config",title:"nuxt.config.ts",description:"Nuxt can be easily configured with a single nuxt.config file.",url:"https://nuxt.com/docs/guide/directory-structure/nuxt.config"},{id:"doc:guide:directory-structure:package",title:"package.json",description:"The package.json file contains all the dependencies and scripts for your application.",url:"https://nuxt.com/docs/guide/directory-structure/package"},{id:"doc:guide:directory-structure:tsconfig",title:"tsconfig.json",description:"Nuxt generates a .nuxt/tsconfig.json file with sensible defaults and your aliases.",url:"https://nuxt.com/docs/guide/directory-structure/tsconfig"},{id:"doc:guide:going-further:internals",title:"How Nuxt Works?",description:"Nuxt is a minimal but highly customizable framework to build web applications.",url:"https://nuxt.com/docs/guide/going-further/internals"},{id:"doc:guide:going-further:runtime-config",title:"Runtime Config",description:"Nuxt provides a runtime config API to expose configuration within your application.",url:"https://nuxt.com/docs/guide/going-further/runtime-config"},{id:"doc:guide:going-further:edge-channel",title:"Edge Channel",description:"Edge channel allows to use latest commits from the repository.",url:"https://nuxt.com/docs/guide/going-further/edge-channel"},{id:"doc:guide:going-further:hooks",title:"Lifecycle Hooks",description:"Nuxt provides a powerful hooking system to expand almost every aspect using hooks.",url:"https://nuxt.com/docs/guide/going-further/hooks"},{id:"doc:guide:going-further:modules",title:"Module Author Guide",description:"Learn how to create a Nuxt Module to integrate, enhance or extend any Nuxt applications.",url:"https://nuxt.com/docs/guide/going-further/modules"},{id:"doc:guide:going-further:kit",title:"Nuxt Kit",description:"@nuxt/kit provides features for module authors.",url:"https://nuxt.com/docs/guide/going-further/kit"},{id:"doc:guide:going-further:nuxt-app",title:"NuxtApp",description:"In Nuxt 3, you can access runtime app context within composables, components and plugins.",url:"https://nuxt.com/docs/guide/going-further/nuxt-app"},{id:"doc:guide:going-further:layers",title:"Authoring Nuxt Layers",description:"Nuxt provides a powerful system that allows you to extend the default files, configs, and much more.",url:"https://nuxt.com/docs/guide/going-further/layers"},{id:"doc:guide:going-further:custom-routing",title:"Custom routing",description:"In Nuxt 3, your routing is defined by the structure of your files inside the pages directory. However, since it uses vue-router under the hood, Nuxt offers you several ways to add custom routes in your project.",url:"https://nuxt.com/docs/guide/going-further/custom-routing"},{id:"doc:guide:going-further:debugging",title:"Debugging",description:"In Nuxt 3, you can get started with debugging your application directly in the browser as well as in your IDE.",url:"https://nuxt.com/docs/guide/going-further/debugging"},{id:"doc:api:composables:use-app-config",title:"useAppConfig",url:"https://nuxt.com/docs/api/composables/use-app-config"},{id:"doc:api:composables:use-async-data",title:"useAsyncData",description:"useAsyncData provides access to data that resolves asynchronously.",url:"https://nuxt.com/docs/api/composables/use-async-data"},{id:"doc:api:composables:use-cookie",title:"useCookie",description:"useCookie is an SSR-friendly composable to read and write cookies.",url:"https://nuxt.com/docs/api/composables/use-cookie"},{id:"doc:api:composables:use-error",title:"useError",description:"useError composable returns the global Nuxt error that is being handled.",url:"https://nuxt.com/docs/api/composables/use-error"},{id:"doc:api:composables:use-fetch",title:"useFetch",url:"https://nuxt.com/docs/api/composables/use-fetch"},{id:"doc:api:composables:use-head-safe",title:"useHeadSafe",description:"The recommended way to provide head data with user input.",url:"https://nuxt.com/docs/api/composables/use-head-safe"},{id:"doc:api:composables:use-head",title:"useHead",description:"useHead customizes the head properties of individual pages of your Nuxt app.",url:"https://nuxt.com/docs/api/composables/use-head"},{id:"doc:api:composables:use-hydration",title:"useHydration",url:"https://nuxt.com/docs/api/composables/use-hydration"},{id:"doc:api:composables:use-lazy-async-data",title:"useLazyAsyncData",description:"This wrapper around useAsyncData triggers navigation immediately.",url:"https://nuxt.com/docs/api/composables/use-lazy-async-data"},{id:"doc:api:composables:use-lazy-fetch",title:"useLazyFetch",description:"This wrapper around useFetch triggers navigation immediately.",url:"https://nuxt.com/docs/api/composables/use-lazy-fetch"},{id:"doc:api:composables:use-nuxt-app",title:"useNuxtApp",url:"https://nuxt.com/docs/api/composables/use-nuxt-app"},{id:"doc:api:composables:use-nuxt-data",title:"useNuxtData",url:"https://nuxt.com/docs/api/composables/use-nuxt-data"},{id:"doc:api:composables:use-request-event",title:"useRequestEvent",description:"You can use useRequestEvent to access the incoming request.",url:"https://nuxt.com/docs/api/composables/use-request-event"},{id:"doc:api:composables:use-request-headers",title:"useRequestHeaders",description:"Use useRequestHeaders to access the incoming request headers.",url:"https://nuxt.com/docs/api/composables/use-request-headers"},{id:"doc:api:composables:use-request-url",title:"useRequestURL",url:"https://nuxt.com/docs/api/composables/use-request-url"},{id:"doc:api:composables:use-route",title:"useRoute",description:"The useRoute composable returns the current route.",url:"https://nuxt.com/docs/api/composables/use-route"},{id:"doc:api:composables:use-router",title:"useRouter",description:"The useRouter composable returns the router instance.",url:"https://nuxt.com/docs/api/composables/use-router"},{id:"doc:api:composables:use-runtime-config",title:"useRuntimeConfig",url:"https://nuxt.com/docs/api/composables/use-runtime-config"},{id:"doc:api:composables:use-seo-meta",title:"useSeoMeta",description:"The useSeoMeta composable lets you define your site's SEO meta tags as a flat object with full TypeScript support.",url:"https://nuxt.com/docs/api/composables/use-seo-meta"},{id:"doc:api:composables:use-server-seo-meta",title:"useServerSeoMeta",description:"The useServerSeoMeta composable lets you define your site's SEO meta tags as a flat object with full TypeScript support.",url:"https://nuxt.com/docs/api/composables/use-server-seo-meta"},{id:"doc:api:composables:use-state",title:"useState",description:"The useState composable creates a reactive and SSR-friendly shared state.",url:"https://nuxt.com/docs/api/composables/use-state"},{id:"doc:api:components:client-only",title:"<ClientOnly>",description:"The <ClientOnly> component renders its slot only in client-side.",url:"https://nuxt.com/docs/api/components/client-only"},{id:"doc:api:components:nuxt-client-fallback",title:"<NuxtClientFallback>",description:"Nuxt provides `<NuxtClientFallback>` component to render its content on the client if any of its children trigger an error in SSR",url:"https://nuxt.com/docs/api/components/nuxt-client-fallback"},{id:"doc:api:components:nuxt-page",title:"<NuxtPage>",description:"The NuxtPage component is required to display pages located in the pages/ directory.",url:"https://nuxt.com/docs/api/components/nuxt-page"},{id:"doc:api:components:nuxt-layout",title:"<NuxtLayout>",url:"https://nuxt.com/docs/api/components/nuxt-layout"},{id:"doc:api:components:nuxt-link",title:"<NuxtLink>",description:"Nuxt provides <NuxtLink> component to handle any kind of links within your application.",url:"https://nuxt.com/docs/api/components/nuxt-link"},{id:"doc:api:components:nuxt-loading-indicator",title:"<NuxtLoadingIndicator>",url:"https://nuxt.com/docs/api/components/nuxt-loading-indicator"},{id:"doc:api:components:nuxt-error-boundary",title:"<NuxtErrorBoundary>",description:"The <NuxtErrorBoundary> component handles client-side errors happening in its default slot.",url:"https://nuxt.com/docs/api/components/nuxt-error-boundary"},{id:"doc:api:components:nuxt-welcome",title:"<NuxtWelcome>",description:"The `<NuxtWelcome>` component greets users in new projects made from the starter template.",url:"https://nuxt.com/docs/api/components/nuxt-welcome"},{id:"doc:api:components:teleports",title:"<Teleport>",description:"The <Teleport> component teleports a component to a different location in the DOM.",url:"https://nuxt.com/docs/api/components/teleports"},{id:"doc:api:utils:$fetch",title:"$fetch",description:"Nuxt uses ofetch to expose globally the $fetch helper for making HTTP requests.",url:"https://nuxt.com/docs/api/utils/$fetch"},{id:"doc:api:utils:abort-navigation",title:"abortNavigation",url:"https://nuxt.com/docs/api/utils/abort-navigation"},{id:"doc:api:utils:add-route-middleware",title:"addRouteMiddleware",description:"addRouteMiddleware() is a helper function to dynamically add middleware in your application.",url:"https://nuxt.com/docs/api/utils/add-route-middleware"},{id:"doc:api:utils:clear-error",title:"clearError",description:"The clearError composable clears all handled errors.",url:"https://nuxt.com/docs/api/utils/clear-error"},{id:"doc:api:utils:clear-nuxt-data",title:"clearNuxtData",url:"https://nuxt.com/docs/api/utils/clear-nuxt-data"},{id:"doc:api:utils:create-error",title:"createError",description:"You can use this function to create an error object with additional metadata.",url:"https://nuxt.com/docs/api/utils/create-error"},{id:"doc:api:utils:define-nuxt-component",title:"defineNuxtComponent",description:"defineNuxtComponent() is a helper function for defining type safe components with Options API.",url:"https://nuxt.com/docs/api/utils/define-nuxt-component"},{id:"doc:api:utils:define-nuxt-route-middleware",title:"defineNuxtRouteMiddleware",url:"https://nuxt.com/docs/api/utils/define-nuxt-route-middleware"},{id:"doc:api:utils:define-page-meta",title:"definePageMeta",url:"https://nuxt.com/docs/api/utils/define-page-meta"},{id:"doc:api:utils:navigate-to",title:"navigateTo",description:"navigateTo is a helper function that programmatically navigates users.",url:"https://nuxt.com/docs/api/utils/navigate-to"},{id:"doc:api:utils:on-before-route-leave",title:"onBeforeRouteLeave",description:"The onBeforeRouteLeave composable allows registering a route guard within a component.",url:"https://nuxt.com/docs/api/utils/on-before-route-leave"},{id:"doc:api:utils:on-before-route-update",title:"onBeforeRouteUpdate",description:"The onBeforeRouteUpdate composable allows registering a route guard within a component.",url:"https://nuxt.com/docs/api/utils/on-before-route-update"},{id:"doc:api:utils:on-nuxt-ready",title:"onNuxtReady",description:"The onNuxtReady composable allows running a callback after your app has finished initializing.",url:"https://nuxt.com/docs/api/utils/on-nuxt-ready"},{id:"doc:api:utils:prefetch-components",title:"prefetchComponents",description:"Nuxt provides utilities to give you control over prefetching and preloading components.",url:"https://nuxt.com/docs/api/utils/prefetch-components"},{id:"doc:api:utils:preload-components",title:"preloadComponents",description:"Nuxt provides utilities to give you control over prefetching and preloading components.",url:"https://nuxt.com/docs/api/utils/preload-components"},{id:"doc:api:utils:preload-route-components",title:"preloadRouteComponents",url:"https://nuxt.com/docs/api/utils/preload-route-components"},{id:"doc:api:utils:refresh-nuxt-data",title:"refreshNuxtData",description:"refreshNuxtData refetches all data from the server and updates the page.",url:"https://nuxt.com/docs/api/utils/refresh-nuxt-data"},{id:"doc:api:utils:reload-nuxt-app",title:"reloadNuxtApp",description:"reloadNuxtApp will perform a hard reload of the page.",url:"https://nuxt.com/docs/api/utils/reload-nuxt-app"},{id:"doc:api:utils:set-page-layout",title:"setPageLayout",description:"setPageLayout allows you to dynamically change the layout of a page.",url:"https://nuxt.com/docs/api/utils/set-page-layout"},{id:"doc:api:utils:set-response-status",title:"setResponseStatus",description:"setResponseStatus sets the statusCode (and optionally the statusMessage) of the response.",url:"https://nuxt.com/docs/api/utils/set-response-status"},{id:"doc:api:utils:show-error",title:"showError",url:"https://nuxt.com/docs/api/utils/show-error"},{id:"doc:api:utils:update-app-config",title:"updateAppConfig",url:"https://nuxt.com/docs/api/utils/update-app-config"},{id:"doc:api:advanced:hooks",title:"Lifecycle Hooks",description:"Nuxt provides a powerful hooking system to expand almost every aspect using hooks.",url:"https://nuxt.com/docs/api/advanced/hooks"},{id:"doc:api:advanced:kit",title:"Kit Utilities",description:"Nuxt Kit provides composable utilities to help interacting with Nuxt Hooks and Nuxt Builder.",url:"https://nuxt.com/docs/api/advanced/kit"},{id:"doc:api:commands:add",title:"nuxi add",description:"Scaffold an entity into your Nuxt application.",url:"https://nuxt.com/docs/api/commands/add"},{id:"doc:api:commands:analyze",title:"nuxi analyze",description:"Analyze the production bundle or your Nuxt application.",url:"https://nuxt.com/docs/api/commands/analyze"},{id:"doc:api:commands:build-module",title:"nuxi build-module",url:"https://nuxt.com/docs/api/commands/build-module"},{id:"doc:api:commands:build",title:"nuxi build",description:"Build your Nuxt application.",url:"https://nuxt.com/docs/api/commands/build"},{id:"doc:api:commands:cleanup",title:"nuxi cleanup",description:"Remove common generated Nuxt files and caches.",url:"https://nuxt.com/docs/api/commands/cleanup"},{id:"doc:api:commands:dev",title:"nuxi dev",description:"The dev command starts a development server with hot module replacement at http://localhost:3000",url:"https://nuxt.com/docs/api/commands/dev"},{id:"doc:api:commands:devtools",title:"nuxi devtools",description:"The devtools command allows you to enable or disable Nuxt DevTools on a per-project basis.",url:"https://nuxt.com/docs/api/commands/devtools"},{id:"doc:api:commands:generate",title:"nuxi generate",description:"Pre-renders every route of the application and stores the result in plain HTML files.",url:"https://nuxt.com/docs/api/commands/generate"},{id:"doc:api:commands:info",title:"nuxi info",description:"The info command logs information about the current or specified Nuxt project.",url:"https://nuxt.com/docs/api/commands/info"},{id:"doc:api:commands:init",title:"nuxi init",description:"The init command initializes a fresh Nuxt project.",url:"https://nuxt.com/docs/api/commands/init"},{id:"doc:api:commands:prepare",title:"nuxi prepare",description:"The prepare command creates a .nuxt directory in your application and generates types.",url:"https://nuxt.com/docs/api/commands/prepare"},{id:"doc:api:commands:preview",title:"nuxi preview",description:"The preview command starts a server to preview your application after the build command.",url:"https://nuxt.com/docs/api/commands/preview"},{id:"doc:api:commands:typecheck",title:"nuxi typecheck",description:"The typecheck command runs vue-tsc to check types throughout your app.",url:"https://nuxt.com/docs/api/commands/typecheck"},{id:"doc:api:commands:upgrade",title:"nuxi upgrade",description:"The upgrade command upgrades Nuxt 3 to the latest version.",url:"https://nuxt.com/docs/api/commands/upgrade"},{id:"doc:api:configuration:nuxt-config",title:"Nuxt Config",url:"https://nuxt.com/docs/api/configuration/nuxt-config"}];export{t as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* vanilla-picker v2.12.3
|
|
3
|
-
* https://vanilla-picker.js.org
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2017-2024 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
|
|
6
|
-
* Released under the ISC license.
|
|
7
|
-
*/var O=function(l,i){if(!(l instanceof i))throw new TypeError("Cannot call a class as a function")},R=function(){function l(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}return function(i,e,t){return e&&l(i.prototype,e),t&&l(i,t),i}}(),y=function(){function l(i,e){var t=[],r=!0,n=!1,o=void 0;try{for(var c=i[Symbol.iterator](),a;!(r=(a=c.next()).done)&&(t.push(a.value),!(e&&t.length===e));r=!0);}catch(s){n=!0,o=s}finally{try{!r&&c.return&&c.return()}finally{if(n)throw o}}return t}return function(i,e){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return l(i,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();String.prototype.startsWith=String.prototype.startsWith||function(l){return this.indexOf(l)===0};String.prototype.padStart=String.prototype.padStart||function(l,i){for(var e=this;e.length<l;)e=i+e;return e};var N={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function A(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=i>0?l.toFixed(i).replace(/0+$/,"").replace(/\.$/,""):l.toString();return e||"0"}var z=function(){function l(i,e,t,r){O(this,l);var n=this;function o(a){if(a.startsWith("hsl")){var s=a.match(/([\-\d\.e]+)/g).map(Number),p=y(s,4),u=p[0],f=p[1],d=p[2],b=p[3];b===void 0&&(b=1),u/=360,f/=100,d/=100,n.hsla=[u,f,d,b]}else if(a.startsWith("rgb")){var m=a.match(/([\-\d\.e]+)/g).map(Number),h=y(m,4),v=h[0],g=h[1],E=h[2],k=h[3];k===void 0&&(k=1),n.rgba=[v,g,E,k]}else a.startsWith("#")?n.rgba=l.hexToRgb(a):n.rgba=l.nameToRgb(a)||l.hexToRgb(a)}if(i!==void 0)if(Array.isArray(i))this.rgba=i;else if(t===void 0){var c=i&&""+i;c&&o(c.toLowerCase())}else this.rgba=[i,e,t,r===void 0?1:r]}return R(l,[{key:"printRGB",value:function(e){var t=e?this.rgba:this.rgba.slice(0,3),r=t.map(function(n,o){return A(n,o===3?3:0)});return e?"rgba("+r+")":"rgb("+r+")"}},{key:"printHSL",value:function(e){var t=[360,100,100,1],r=["","%","%",""],n=e?this.hsla:this.hsla.slice(0,3),o=n.map(function(c,a){return A(c*t[a],a===3?3:1)+r[a]});return e?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=l.hslToRgb(this._hsla)},set:function(e){e.length===3&&(e[3]=1),this._rgba=e,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=l.rgbToHsl(this._rgba)},set:function(e){e.length===3&&(e[3]=1),this._hsla=e,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var e=this.rgba,t=e.map(function(r,n){return n<3?r.toString(16):Math.round(r*255).toString(16)});return"#"+t.map(function(r){return r.padStart(2,"0")}).join("")},set:function(e){this.rgba=l.hexToRgb(e)}}],[{key:"hexToRgb",value:function(e){var t=(e.startsWith("#")?e.slice(1):e).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!t.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+e);var r=t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(n){return parseInt(n,16)});return r[3]=r[3]/255,r}},{key:"nameToRgb",value:function(e){var t=e.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=N[t];return r===void 0?r:l.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(e){var t=y(e,4),r=t[0],n=t[1],o=t[2],c=t[3];r/=255,n/=255,o/=255;var a=Math.max(r,n,o),s=Math.min(r,n,o),p=void 0,u=void 0,f=(a+s)/2;if(a===s)p=u=0;else{var d=a-s;switch(u=f>.5?d/(2-a-s):d/(a+s),a){case r:p=(n-o)/d+(n<o?6:0);break;case n:p=(o-r)/d+2;break;case o:p=(r-n)/d+4;break}p/=6}return[p,u,f,c]}},{key:"hslToRgb",value:function(e){var t=y(e,4),r=t[0],n=t[1],o=t[2],c=t[3],a=void 0,s=void 0,p=void 0;if(n===0)a=s=p=o;else{var u=function(h,v,g){return g<0&&(g+=1),g>1&&(g-=1),g<.16666666666666666?h+(v-h)*6*g:g<.5?v:g<.6666666666666666?h+(v-h)*(.6666666666666666-g)*6:h},f=o<.5?o*(1+n):o+n-o*n,d=2*o-f;a=u(d,f,r+1/3),s=u(d,f,r),p=u(d,f,r-1/3)}var b=[a*255,s*255,p*255].map(Math.round);return b[3]=c,b}}]),l}(),F=function(){function l(){O(this,l),this._events=[]}return R(l,[{key:"add",value:function(e,t,r){e.addEventListener(t,r,!1),this._events.push({target:e,type:t,handler:r})}},{key:"remove",value:function(e,t,r){this._events=this._events.filter(function(n){var o=!0;return e&&e!==n.target&&(o=!1),t&&t!==n.type&&(o=!1),r&&r!==n.handler&&(o=!1),o&&l._doRemove(n.target,n.type,n.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(e){return l._doRemove(e.target,e.type,e.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(e,t,r){e.removeEventListener(t,r,!1)}}]),l}();function U(l){var i=document.createElement("div");return i.innerHTML=l,i.firstElementChild}function L(l,i,e){var t=!1;function r(a,s,p){return Math.max(s,Math.min(a,p))}function n(a,s,p){if(p&&(t=!0),!!t){a.preventDefault();var u=i.getBoundingClientRect(),f=u.width,d=u.height,b=s.clientX,m=s.clientY,h=r(b-u.left,0,f),v=r(m-u.top,0,d);e(h/f,v/d)}}function o(a,s){var p=a.buttons===void 0?a.which:a.buttons;p===1?n(a,a,s):t=!1}function c(a,s){a.touches.length===1?n(a,a.touches[0],s):t=!1}l.add(i,"mousedown",function(a){o(a,!0)}),l.add(i,"touchstart",function(a){c(a,!0)}),l.add(window,"mousemove",o),l.add(i,"touchmove",c),l.add(window,"mouseup",function(a){t=!1}),l.add(i,"touchend",function(a){t=!1}),l.add(i,"touchcancel",function(a){t=!1})}var B=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
|
|
8
|
-
linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,G=360,P="keydown",x="mousedown",T="focusin";function _(l,i){return(i||document).querySelector(l)}function M(l){l.preventDefault(),l.stopPropagation()}function H(l,i,e,t,r){l.add(i,P,function(n){e.indexOf(n.key)>=0&&(r&&M(n),t(n))})}var W=function(){function l(i){O(this,l),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new F,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(i)}return R(l,[{key:"setOptions",value:function(e){var t=this;if(!e)return;var r=this.settings;function n(s,p,u){for(var f in s)u&&u.indexOf(f)>=0||(p[f]=s[f])}if(e instanceof HTMLElement)r.parent=e;else{r.parent&&e.parent&&r.parent!==e.parent&&(this._events.remove(r.parent),this._popupInited=!1),n(e,r),e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose);var o=e.color||e.colour;o&&this._setColor(o)}var c=r.parent;if(c&&r.popup&&!this._popupInited){var a=function(p){return t.openHandler(p)};this._events.add(c,"click",a),H(this._events,c,[" ","Spacebar","Enter"],a),this._popupInited=!0}else e.parent&&!r.popup&&this.show()}},{key:"openHandler",value:function(e){if(this.show()){e&&e.preventDefault(),this.settings.parent.style.pointerEvents="none";var t=e&&e.type===P?this._domEdit:this.domElement;setTimeout(function(){return t.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(e){var t=e&&e.type,r=!1;if(!e)r=!0;else if(t===x||t===T){var n=(this.__containedEvent||0)+100;e.timeStamp>n&&(r=!0)}else M(e),r=!0;r&&this.hide()&&(this.settings.parent.style.pointerEvents="",t!==x&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:"setColor",value:function(e,t){this._setColor(e,{silent:t})}},{key:"_setColor",value:function(e,t){if(typeof e=="string"&&(e=e.trim()),!!e){t=t||{};var r=void 0;try{r=new z(e)}catch(o){if(t.failSilently)return;throw o}if(!this.settings.alpha){var n=r.hsla;n[3]=1,r.hsla=n}this.colour=this.color=r,this._setHSLA(null,null,null,null,t)}}},{key:"setColour",value:function(e,t){this.setColor(e,t)}},{key:"show",value:function(){var e=this.settings.parent;if(!e)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',n=U(r);return this.domElement=n,this._domH=_(".picker_hue",n),this._domSL=_(".picker_sl",n),this._domA=_(".picker_alpha",n),this._domEdit=_(".picker_editor input",n),this._domSample=_(".picker_sample",n),this._domOkay=_(".picker_done button",n),this._domCancel=_(".picker_cancel button",n),n.classList.add("layout_"+this.settings.layout),this.settings.alpha||n.classList.add("no_alpha"),this.settings.editor||n.classList.add("no_editor"),this.settings.cancelButton||n.classList.add("no_cancel"),this._ifPopup(function(){return n.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var e=this,t=this,r=this.domElement,n=this._events;function o(s,p,u){n.add(s,p,u)}o(r,"click",function(s){return s.preventDefault()}),L(n,this._domH,function(s,p){return t._setHSLA(s)}),L(n,this._domSL,function(s,p){return t._setHSLA(null,s,1-p)}),this.settings.alpha&&L(n,this._domA,function(s,p){return t._setHSLA(null,null,null,1-p)});var c=this._domEdit;o(c,"input",function(s){t._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(c,"focus",function(s){var p=this;p.selectionStart===p.selectionEnd&&p.select()}),this._ifPopup(function(){var s=function(f){return e.closeHandler(f)};o(window,x,s),o(window,T,s),H(n,r,["Esc","Escape"],s);var p=function(f){e.__containedEvent=f.timeStamp};o(r,x,p),o(r,T,p),o(e._domCancel,"click",s)});var a=function(p){e._ifPopup(function(){return e.closeHandler(p)}),e.onDone&&e.onDone(e.colour)};o(this._domOkay,"click",a),H(n,r,["Enter"],a)}},{key:"_setPosition",value:function(){var e=this.settings.parent,t=this.domElement;e!==t.parentNode&&e.appendChild(t),this._ifPopup(function(r){getComputedStyle(e).position==="static"&&(e.style.position="relative");var n=r===!0?"popup_right":"popup_"+r;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===n?t.classList.add(o):t.classList.remove(o)}),t.classList.add(n)})}},{key:"_setHSLA",value:function(e,t,r,n,o){o=o||{};var c=this.colour,a=c.hsla;[e,t,r,n].forEach(function(s,p){(s||s===0)&&(a[p]=s)}),c.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(c)}},{key:"_updateUI",value:function(e){if(!this.domElement)return;e=e||{};var t=this.colour,r=t.hsla,n="hsl("+r[0]*G+", 100%, 50%)",o=t.hslString,c=t.hslaString,a=this._domH,s=this._domSL,p=this._domA,u=_(".picker_selector",a),f=_(".picker_selector",s),d=_(".picker_selector",p);function b(I,S,C){S.style.left=C*100+"%"}function m(I,S,C){S.style.top=C*100+"%"}b(a,u,r[0]),this._domSL.style.backgroundColor=this._domH.style.color=n,b(s,f,r[1]),m(s,f,1-r[2]),s.style.color=o,m(p,d,1-r[3]);var h=o,v=h.replace("hsl","hsla").replace(")",", 0)"),g="linear-gradient("+[h,v]+")";if(this._domA.style.background=g+", "+B,!e.fromEditor){var E=this.settings.editorFormat,k=this.settings.alpha,w=void 0;switch(E){case"rgb":w=t.printRGB(k);break;case"hsl":w=t.printHSL(k);break;default:w=t.printHex(k)}this._domEdit.value=w}this._domSample.style.color=c}},{key:"_ifPopup",value:function(e,t){this.settings.parent&&this.settings.popup?e&&e(this.settings.popup):t&&t()}},{key:"_toggleDOM",value:function(e){var t=this.domElement;if(!t)return!1;var r=e?"":"none",n=t.style.display!==r;return n&&(t.style.display=r),n}}]),l}();{var D=document.createElement("style");D.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(D),W.StyleElement=D}export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as I}from"./DaiXQWiC.js";import{d as O,a0 as R,a as N,w as T,o as s,m as t,F as f,n as k,aa as b,f as r,h as p,p as y,G as v,i as m,j as V,k as S,t as A,v as C,X as E,a6 as L,_ as z}from"./BIR-zdoB.js";import{_ as G}from"./BV7UswB-.js";const K={p4:"",flex:"~ col gap-4"},M={key:1,ml2:"",flex:""},X=["value"],q={key:0,flex:"","gap-4":""},H=S("div",{"flex-auto":""},null,-1),Y=O({__name:"ServerRouteInputs",props:{modelValue:{},keys:{default:()=>[]},default:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(U,{emit:w}){const g=U,u=R(g,"modelValue",w,{passive:!0}),$=N(()=>[...g.keys,"active","key","value","type"]),B=N(()=>{const a={};for(const e of $.value)a[e]=g.default[e]||"";return a}),j=["string","number","boolean","file","date","time","datetime-local"];function D(a,e){const d=e.target;if(d.files&&d.files[0]){const i=d.files[0],c=new FileReader;c.readAsDataURL(i),c.onload=()=>{u.value[a].value=c.result}}}return T(()=>u,a=>{a.value.forEach(e=>{if(e.type==="number"&&typeof e.value!="number"){const d=Number.parseFloat(e.value);e.value=Number.isNaN(d)?0:d}else e.type==="boolean"&&typeof e.value!="boolean"?e.value=!0:e.type==="file"&&typeof e.value!="object"?e.value="":e.type==="date"&&typeof e.value=="string"&&!e.value.match(/^\d{4}-\d{2}-\d{2}$/)?e.value=new Date().toISOString().slice(0,10):e.type==="time"&&typeof e.value=="string"&&!e.value.match(/^\d{2}:\d{2}$/)?e.value=new Date().toISOString().slice(11,16):e.type==="datetime-local"&&typeof e.value=="string"&&!e.value.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/)?e.value=new Date().toISOString().slice(0,16):e.type==="string"&&(e.value=e.value.toString())})},{deep:!0,immediate:!0,flush:"sync"}),(a,e)=>{const d=I,i=E,c=G,F=L,_=z;return s(),t("div",K,[(s(!0),t(f,null,k(r(u),(l,h)=>(s(),t("div",{key:h,flex:"~ gap-2","justify-around":""},[b(a.$slots,"input",{item:l}),(s(!0),t(f,null,k(r($),n=>(s(),t(f,{key:n},[l.type!==null&&n==="active"?(s(),p(d,{key:0,modelValue:l[n],"onUpdate:modelValue":o=>l[n]=o,n:"sm primary",disabled:a.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):y("",!0),l.type!==null&&n==="key"?(s(),p(i,{key:1,modelValue:l[n],"onUpdate:modelValue":o=>l[n]=o,placeholder:n,"flex-1":"","font-mono":"",n:"sm primary",disabled:a.disabled,class:v(a.disabled?"op50":"")},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","class"])):n==="value"?(s(),t(f,{key:2},[l.type==="file"?(s(),p(i,{key:0,type:"file",disabled:a.disabled,class:v(a.disabled?"op75":""),onChange:o=>D(h,o)},null,8,["disabled","class","onChange"])):l.type==="boolean"?(s(),t("div",M,[m(d,{modelValue:l.value,"onUpdate:modelValue":o=>l.value=o,placeholder:"Value",n:"green lg",disabled:a.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])])):(s(),p(i,{key:2,modelValue:l.value,"onUpdate:modelValue":o=>l.value=o,type:l.type,placeholder:"Value","flex-1":"","font-mono":"",n:"sm primary",disabled:a.disabled,class:v(a.disabled?"op75":"")},null,8,["modelValue","onUpdate:modelValue","type","disabled","class"]))],64)):n==="type"?(s(),p(c,{key:3,modelValue:l.type,"onUpdate:modelValue":o=>l.type=o,n:"sm green",class:v(a.disabled?"op75":""),disabled:a.disabled},{default:V(()=>[(s(),t(f,null,k(j,o=>S("option",{key:o,value:o},A(o),9,X)),64))]),_:2},1032,["modelValue","onUpdate:modelValue","class","disabled"])):y("",!0)],64))),128)),b(a.$slots,"input-actions",{},()=>[m(_,{n:"red",disabled:a.disabled,class:v(a.disabled?"op0!":""),onClick:n=>r(u).splice(h,1)},{default:V(()=>[m(F,{icon:"carbon:trash-can"})]),_:2},1032,["disabled","class","onClick"])])]))),128)),a.disabled?y("",!0):(s(),t("div",q,[b(a.$slots,"actions",{params:r(u)},()=>[m(_,{icon:"carbon-add",n:"sm primary",my1:"","px-3":"",onClick:e[0]||(e[0]=l=>r(u).push({...r(B)}))},{default:V(()=>[C(" Add ")]),_:1}),H,r(u).length?(s(),p(_,{key:0,icon:"carbon-trash-can",n:"sm red",my1:"","px-3":"",onClick:e[1]||(e[1]=l=>u.value=[])},{default:V(()=>[C(" Remove All ")]),_:1})):y("",!0)])])),b(a.$slots,"default")])}}});export{Y as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as T,o as s,m as i,F as M,n as S,i as p,k as _,h as I,aM as k,f as e,p as b,a as g,aw as C,aN as B,t as X,ab as U,r as D,ah as z,av as H,j as v,l as N,a6 as j}from"./BIR-zdoB.js";import{_ as P}from"./CSjnDvWq.js";import{_ as R}from"./4Dr4Cj7R.js";import{_ as L}from"./23UkCXk9.js";import{_ as Y}from"./D0a-fr3P.js";import{_ as q}from"./D-oZYQtF.js";import{_ as G}from"./xLwx2Q8v.js";import{D as E}from"./BcJws1i5.js";import"./CRLCUxrw.js";import"./BrtwsvwD.js";import"./BTgTnXCo.js";const J={flex:"~ wrap gap2",p2:"",pl4:""},K=T({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(y){return(r,m)=>{const a=L,d=Y;return s(),i("div",null,[(s(!0),i(M,null,S(r.map.entries(),([o,h])=>(s(),i("div",{key:o},[p(a,{filepath:o,op50:"","hover:underline":""},null,8,["filepath"]),_("div",J,[(s(!0),i(M,null,S(h,$=>(s(),I(d,{key:$.as,item:$,metadata:r.metadata,filepath:o.match(/^[\w@]/)?void 0:o},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),O={key:0,flex:"~ col gap-2 items-start"},Q=T({__name:"HelpImportsDirs",setup(y){const r=k();return(m,a)=>{const d=L;return e(r)?.dirs?(s(),i("div",O,[(s(!0),i(M,null,S(e(r).dirs,o=>(s(),I(d,{key:o,filepath:o,"text-primary":""},null,8,["filepath"]))),128))])):b("",!0)}}}),W={flex:"~ gap-2 wrap",mb6:""},Z=T({__name:"HelpImportsModules",setup(y){const r=k(),m=g(()=>[...new Set(r.value?.imports.map(a=>C(a.from)).filter(a=>!!a&&!B(a)))]);return(a,d)=>(s(),i("div",W,[(s(!0),i(M,null,S(e(m),o=>(s(),i("code",{key:o,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},X(o),1))),128))]))}}),ee={class:"markdown-body"},oe=_("h1",null,"Auto imports",-1),te=_("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1),se=_("hr",null,null,-1),ne=_("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1),ae=_("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1),re=_("hr",null,null,-1),le=_("p",null,[_("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),ie={__name:"imports",setup(y,{expose:r}){return r({frontmatter:{}}),(a,d)=>{const o=Q,h=Z;return s(),i("div",ee,[oe,te,se,ne,p(o),ae,p(h),re,le])}}},ue={key:0,relative:"","h-full":"","of-auto":""},pe={key:0,flex:"~ gap-2 items-center"},ye=T({__name:"imports",setup(y){const r=U(),m=D("all"),a=D(""),d=k(),o=g(()=>d.value?.metadata),h=g(()=>d.value?.imports.filter(n=>n.as||n.name).sort((n,u)=>(n.as||n.name).localeCompare(u.as||u.name))||[]),$=g(()=>new z(h.value,{keys:["from","as","name"]})),l=g(()=>{const n=new Map,u=new Map,w=new Map;let f=a.value?$.value.search(a.value).map(t=>t.item):h.value;m.value==="using"&&o.value?f=f.filter(t=>(t.as||t.name)in o.value.injectionUsage):m.value==="not-used"&&o.value&&(f=f.filter(t=>!((t.as||t.name)in o.value.injectionUsage)));const A={user:0,lib:0,builtin:0};return f.forEach(t=>{const c=H(t.from)?B(C(t.from))?w:u:n;c.has(t.from)||c.set(t.from,[]),c.get(t.from).push(t),A[c===n?"user":c===u?"lib":"builtin"]++}),{user:n,lib:u,builtin:w,count:A}});return(n,u)=>{const w=j,f=P,A=R,t=K,c=q,F=ie,V=G;return s(),i(M,null,[e(r)?(s(),i("div",ue,[p(A,{search:e(a),"onUpdate:search":u[1]||(u[1]=x=>N(a)?a.value=x:null),pb3:""},{default:v(()=>[e(o)?(s(),i("div",pe,[p(w,{icon:"carbon-filter",op50:""}),p(f,{modelValue:e(m),"onUpdate:modelValue":u[0]||(u[0]=x=>N(m)?m.value=x:null),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])):b("",!0)]),_:1},8,["search"]),e(l).user.size?(s(),I(c,{key:0,open:e(l).count.user<=("DETAILS_MAX_ITEMS"in n?n.DETAILS_MAX_ITEMS:e(E)),icon:"carbon-function",text:"User composables",description:`${e(l).count.user} composables from ${e(l).user.size} modules`},{default:v(()=>[p(t,{map:e(l).user,root:e(r).rootDir,metadata:e(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),e(l).builtin.size?(s(),I(c,{key:1,open:e(l).count.builtin<=("DETAILS_MAX_ITEMS"in n?n.DETAILS_MAX_ITEMS:e(E)),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(l).count.builtin} composables`},{default:v(()=>[p(t,{map:e(l).builtin,root:e(r).rootDir,metadata:e(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),e(l).lib.size?(s(),I(c,{key:2,open:e(l).count.lib<=("DETAILS_MAX_ITEMS"in n?n.DETAILS_MAX_ITEMS:e(E)),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(l).count.lib} composables from ${e(l).lib.size} packages`},{default:v(()=>[p(t,{map:e(l).lib,root:e(r).rootDir,metadata:e(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0)])):b("",!0),p(V,null,{default:v(()=>[p(F)]),_:1})],64)}}});export{ye as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"fa3e000a-5062-43b8-9d7a-e19f63f0ca92","timestamp":1718995251121,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-9c63cc3f]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-9c63cc3f]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-9c63cc3f]{background-color:#ffffff4d}.gradient-border[data-v-9c63cc3f]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-9c63cc3f]{background-color:#1414144d}.gradient-border[data-v-9c63cc3f]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-9c63cc3f]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-9c63cc3f]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-9c63cc3f]{position:fixed}.left-0[data-v-9c63cc3f]{left:0}.right-0[data-v-9c63cc3f]{right:0}.z-10[data-v-9c63cc3f]{z-index:10}.z-20[data-v-9c63cc3f]{z-index:20}.grid[data-v-9c63cc3f]{display:grid}.mb-16[data-v-9c63cc3f]{margin-bottom:4rem}.mb-8[data-v-9c63cc3f]{margin-bottom:2rem}.max-w-520px[data-v-9c63cc3f]{max-width:520px}.min-h-screen[data-v-9c63cc3f]{min-height:100vh}.w-full[data-v-9c63cc3f]{width:100%}.flex[data-v-9c63cc3f]{display:flex}.cursor-pointer[data-v-9c63cc3f]{cursor:pointer}.place-content-center[data-v-9c63cc3f]{place-content:center}.items-center[data-v-9c63cc3f]{align-items:center}.justify-center[data-v-9c63cc3f]{justify-content:center}.overflow-hidden[data-v-9c63cc3f]{overflow:hidden}.bg-white[data-v-9c63cc3f]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-9c63cc3f]{padding-left:1rem;padding-right:1rem}.px-8[data-v-9c63cc3f]{padding-left:2rem;padding-right:2rem}.py-2[data-v-9c63cc3f]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-9c63cc3f]{text-align:center}.text-8xl[data-v-9c63cc3f]{font-size:6rem;line-height:1}.text-xl[data-v-9c63cc3f]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-9c63cc3f]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-9c63cc3f]{font-weight:300}.font-medium[data-v-9c63cc3f]{font-weight:500}.leading-tight[data-v-9c63cc3f]{line-height:1.25}.font-sans[data-v-9c63cc3f]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-9c63cc3f]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-9c63cc3f]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-9c63cc3f]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-9c63cc3f]{padding-left:0;padding-right:0}.sm\:px-6[data-v-9c63cc3f]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-9c63cc3f]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-9c63cc3f]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-9c63cc3f]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-051f8ac4]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-051f8ac4]{position:fixed}.-bottom-1\/2[data-v-051f8ac4]{bottom:-50%}.left-0[data-v-051f8ac4]{left:0}.right-0[data-v-051f8ac4]{right:0}.grid[data-v-051f8ac4]{display:grid}.mb-16[data-v-051f8ac4]{margin-bottom:4rem}.mb-8[data-v-051f8ac4]{margin-bottom:2rem}.h-1\/2[data-v-051f8ac4]{height:50%}.max-w-520px[data-v-051f8ac4]{max-width:520px}.min-h-screen[data-v-051f8ac4]{min-height:100vh}.place-content-center[data-v-051f8ac4]{place-content:center}.overflow-hidden[data-v-051f8ac4]{overflow:hidden}.bg-white[data-v-051f8ac4]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-051f8ac4]{padding-left:2rem;padding-right:2rem}.text-center[data-v-051f8ac4]{text-align:center}.text-8xl[data-v-051f8ac4]{font-size:6rem;line-height:1}.text-xl[data-v-051f8ac4]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-051f8ac4]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-051f8ac4]{font-weight:300}.font-medium[data-v-051f8ac4]{font-weight:500}.leading-tight[data-v-051f8ac4]{line-height:1.25}.font-sans[data-v-051f8ac4]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-051f8ac4]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-051f8ac4]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-051f8ac4]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-051f8ac4]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-051f8ac4]{font-size:2.25rem;line-height:2.5rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as a,s as o,o as s,m as i,k as e,t as r,y as u,z as c}from"./BIR-zdoB.js";const l=t=>(u("data-v-051f8ac4"),t=t(),c(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=l(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],b=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({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}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: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,b)])]))}},k=a(f,[["__scopeId","data-v-051f8ac4"]]);export{k as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as k}from"./CeEyhwqV.js";import{d as v,o as e,m as c,F as x,n as C,h as f,j as a,aa as N,ax as B,k as $,am as w,a as F,a2 as O,f as r,i as o,p as u,v as V,I as j,_ as E}from"./BIR-zdoB.js";import{_ as P}from"./D-oZYQtF.js";import{_ as R}from"./xLwx2Q8v.js";import"./DCRELQON.js";import"./xooHg0zg.js";import"./BTgTnXCo.js";const A={key:0,flex:"~ col gap-1"},G={key:1,mt2:"",px4:"",italic:"",op35:""},H=v({__name:"StateGroup",props:{state:{},prefix:{default:""}},setup(m){return(t,n)=>{const i=k;return e(),c("div",null,[t.state&&Object.keys(t.state).length>0?(e(),c("div",A,[(e(!0),c(x,null,C(t.state,(l,s)=>(e(),f(i,{key:s,state:l,name:s.startsWith(t.prefix)?s.slice(t.prefix.length):s},{actions:a(_=>[N(t.$slots,"actions",B({ref_for:!0},_))]),_:2},1032,["state","name"]))),128))])):(e(),c("div",G," No data "))])}}}),K={class:"markdown-body"},T=$("h1",null,"State & Async Data",-1),I=$("p",null,"// TODO",-1),L=[T,I],W={__name:"payload",setup(m,{expose:t}){return t({frontmatter:{}}),(i,l)=>(e(),c("div",K,L))}},q={key:0},tt=v({__name:"payload",setup(m){const t=w(),n=F(()=>t.value?.nuxt.payload);async function i(l){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",l)}return(l,s)=>{const _=H,d=P,h=E,b=k,S=W,g=R,D=O("tooltip");return e(),c(x,null,[r(t)?(e(),c("div",q,[o(d,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[o(_,{state:r(n).state,prefix:"$s"},null,8,["state"])]),_:1}),o(d,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[o(h,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:s[0]||(s[0]=y=>i())},{default:a(()=>[V(" Re-fetch all data ")]),_:1})]),default:a(()=>[o(_,{state:r(n).data},{actions:a(({isOpen:y,name:p})=>[y&&p?j((e(),f(h,{key:0,title:`Re-fetch '${p}'`,icon:"carbon-recycle",border:!1,onClick:z=>i([p])},null,8,["title","onClick"])),[[D,`Re-fetch '${p}'`,void 0,{bottom:!0}]]):u("",!0)]),_:1},8,["state"])]),_:1}),r(n).functions&&Object.keys(r(n).functions).length?(e(),f(d,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions"},{default:a(()=>[o(b,{"ml--6":"",state:r(n).functions},null,8,["state"])]),_:1})):u("",!0)])):u("",!0),o(g,null,{default:a(()=>[o(S)]),_:1})],64)}}});export{tt as default};
|