@nuxt/devtools 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +150 -2
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/Badge.0a290709.js +1 -0
- package/dist/client/_nuxt/{DrawerRight.vue.f3060893.js → DrawerRight.vue.a83a778f.js} +1 -1
- package/dist/client/_nuxt/{DurationDisplay.vue.0d7e7768.js → DurationDisplay.vue.9816695d.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.c7d65dc2.js → FilepathItem.vue.288f8cb4.js} +1 -1
- package/dist/client/_nuxt/LaunchPage.vue.25e8c415.js +1 -0
- package/dist/client/_nuxt/NCheckbox.vue.f52d0a98.js +1 -0
- package/dist/client/_nuxt/NCodeBlock.vue.b2b8c3ac.js +2 -0
- package/dist/client/_nuxt/{NIconButton.vue.8aefaa88.js → NIconButton.vue.c1838c30.js} +1 -1
- package/dist/client/_nuxt/NIconTitle.vue.d1747349.js +1 -0
- package/dist/client/_nuxt/NLoading.f33a8f5a.js +1 -0
- package/dist/client/_nuxt/{NMarkdown.vue.ae60adfb.js → NMarkdown.vue.20a8169f.js} +1 -1
- package/dist/client/_nuxt/NPanelGrids.ac7957ef.js +1 -0
- package/dist/client/_nuxt/NSectionBlock.e666450f.js +1 -0
- package/dist/client/_nuxt/NSelect.vue.7264b851.js +1 -0
- package/dist/client/_nuxt/NSwitch.vue.28747f12.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.352ba30f.js +1 -0
- package/dist/client/_nuxt/NTip.vue.eda7f11a.js +1 -0
- package/dist/client/_nuxt/{NpmVersionCheck.vue.2469b5b3.js → NpmVersionCheck.vue.d7b26b31.js} +1 -1
- package/dist/client/_nuxt/{NuxtLogo.7b90e5d5.js → NuxtLogo.1c0728be.js} +1 -1
- package/dist/client/_nuxt/{PanelLeftRight.vue.73b30819.js → PanelLeftRight.vue.005018fa.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.96fdf802.js → StateEditor.vue.4b8051fa.js} +1 -1
- package/dist/client/_nuxt/{TabIcon.vue.ee21be15.js → TabIcon.vue.84eecba6.js} +1 -1
- package/dist/client/_nuxt/__inspecting.2df5f253.js +1 -0
- package/dist/client/_nuxt/assets.c48069ab.js +16 -0
- package/dist/client/_nuxt/components.0e258eba.js +1 -0
- package/dist/client/_nuxt/constants.bd39e314.js +1 -0
- package/dist/client/_nuxt/{context.10127184.js → context.6844f837.js} +1 -1
- package/dist/client/_nuxt/custom-_name_.5de364a2.js +1 -0
- package/dist/client/_nuxt/default.57fc1d9b.js +1 -0
- package/dist/client/_nuxt/editor.59beec6a.js +1 -0
- package/dist/client/_nuxt/entry.9f02ddf0.css +32 -0
- package/dist/client/_nuxt/{entry.e1ce6ad4.js → entry.bcd35db3.js} +93 -93
- package/dist/client/_nuxt/{error-404.d7646546.js → error-404.5dd28b39.js} +1 -1
- package/dist/client/_nuxt/{error-500.6cac56ab.js → error-500.40852059.js} +1 -1
- package/dist/client/_nuxt/{error-component.a8114c77.js → error-component.7b83568a.js} +2 -2
- package/dist/client/_nuxt/fuse.esm.69d72a3b.js +1 -0
- package/dist/client/_nuxt/{hooks.196bb064.js → hooks.b54081d4.js} +1 -1
- package/dist/client/_nuxt/imports.cca795e7.js +1 -0
- package/dist/client/_nuxt/{index.6a39516e.js → index.b2230878.js} +1 -1
- package/dist/client/_nuxt/layouts.5513175b.js +1 -0
- package/dist/client/_nuxt/{middleware.6a82419a.js → middleware.d5000709.js} +1 -1
- package/dist/client/_nuxt/modules.26682582.js +1 -0
- package/dist/client/_nuxt/{none.c8faecb4.js → none.b1b5b9b7.js} +1 -1
- package/dist/client/_nuxt/overview.28a5ffd6.js +1 -0
- package/dist/client/_nuxt/pages.2c54d081.js +1 -0
- package/dist/client/_nuxt/{payload.a31b3317.js → payload.28c2ffd0.js} +1 -1
- package/dist/client/_nuxt/{plugins.4a0a667e.js → plugins.2a8f86bc.js} +1 -1
- package/dist/client/_nuxt/runtime-configs.255185da.js +1 -0
- package/dist/client/_nuxt/server-routes.f29871aa.js +9 -0
- package/dist/client/_nuxt/{settings.d06b4aaf.js → settings.2b491e6d.js} +1 -1
- package/dist/client/_nuxt/storage.709c30ef.js +1 -0
- package/dist/client/_nuxt/{terminals.1710aa98.js → terminals.7858d68a.js} +1 -1
- package/dist/client/_nuxt/unocss-runtime.f4f04b37.js +2 -0
- package/dist/client/_nuxt/virtual-files.383ad39e.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/modules/assets/index.html +2 -2
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/storage/index.html +2 -2
- package/dist/client/modules/terminals/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +2 -2
- package/dist/module.json +1 -1
- package/package.json +20 -20
- package/dist/client/_nuxt/Badge.b694092e.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.b1763741.js +0 -1
- package/dist/client/_nuxt/NCheckbox.vue.f03c4497.js +0 -1
- package/dist/client/_nuxt/NCodeBlock.vue.f41a0d29.js +0 -1
- package/dist/client/_nuxt/NIconTitle.vue.6c944aa7.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.cef5b3bf.js +0 -1
- package/dist/client/_nuxt/NSelect.vue.bd089297.js +0 -1
- package/dist/client/_nuxt/NSwitch.vue.ce97ebe7.js +0 -1
- package/dist/client/_nuxt/NTextInput.vue.188f5529.js +0 -1
- package/dist/client/_nuxt/NTip.vue.2f192405.js +0 -1
- package/dist/client/_nuxt/__inspecting.6125f0dc.js +0 -1
- package/dist/client/_nuxt/assets.3fa6901a.js +0 -16
- package/dist/client/_nuxt/components.5589dfe1.js +0 -1
- package/dist/client/_nuxt/custom-_name_.3535f298.js +0 -1
- package/dist/client/_nuxt/default.20732cb9.js +0 -1
- package/dist/client/_nuxt/editor.58d10855.js +0 -1
- package/dist/client/_nuxt/entry.2594199e.css +0 -32
- package/dist/client/_nuxt/fuse.esm.88e2763d.js +0 -1
- package/dist/client/_nuxt/imports.0af9087e.js +0 -1
- package/dist/client/_nuxt/layouts.f9116de3.js +0 -1
- package/dist/client/_nuxt/modules.44c94367.js +0 -1
- package/dist/client/_nuxt/overview.8e443c04.js +0 -1
- package/dist/client/_nuxt/pages.0df70537.js +0 -1
- package/dist/client/_nuxt/runtime-configs.2e7a9840.js +0 -1
- package/dist/client/_nuxt/server-routes.47766769.js +0 -1
- package/dist/client/_nuxt/storage.eb42392f.js +0 -1
- package/dist/client/_nuxt/unocss-runtime.4fc34dc6.js +0 -2
- package/dist/client/_nuxt/virtual-files.1b4b12ba.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{am as a,aY as n,o as r,f as l,h as e,t as s,i as d,w as c,l as p,ah as f,aF as h,aG as m}from"./entry.bcd35db3.js";const x=t=>(h("data-v-bf1556d5"),t=t(),m(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=x(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,v)=>{const i=f;return r(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[d(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-bf1556d5"]]);export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{am as i,aY as a,o as r,f as n,h as e,t as s,aF as l,aG as d}from"./entry.bcd35db3.js";const c=t=>(l("data-v-583914b6"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],b={__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 o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(x,u)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(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:s(t.description)},null,8,m)])]))}},w=i(b,[["__scopeId","data-v-583914b6"]]);export{w as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.
|
|
1
|
+
import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.bcd35db3.js";const g={__name:"nuxt-error-page",props:{error:Object},setup(c){const{error:t}=c;(t.stack||"").split(`
|
|
2
2
|
`).splice(1).map(e=>({text:e.replace("webpack:/","").replace(".vue",".js").trim(),internal:e.includes("node_modules")&&!e.includes(".cache")||e.includes("internal")||e.includes("new Promise")})).map(e=>`<span class="stack${e.internal?" internal":""}">${e.text}</span>`).join(`
|
|
3
|
-
`);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.
|
|
3
|
+
`);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.5dd28b39.js"),["./error-404.5dd28b39.js","./entry.bcd35db3.js","./entry.9f02ddf0.css","./error-404.2618a69f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.40852059.js"),["./error-500.40852059.js","./entry.bcd35db3.js","./entry.9f02ddf0.css","./error-500.12a2683b.css"],import.meta.url).then(e=>e.default||e));return(e,d)=>(l(),m(s(_),E(f({statusCode:s(r),statusMessage:s(u),description:s(i),stack:s(p)})),null,16))}},x=g;export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as ut}from"./NTextInput.vue.352ba30f.js";import{a as ft,o as dt,f as gt,h as pt,L as j,x as Q,i as mt}from"./entry.bcd35db3.js";const Mt={flex:"~ gap4"},oe=ft({__name:"Navbar",props:{search:{type:String,default:void 0},noPadding:{type:Boolean,default:!1}},emits:["update:search"],setup(e,{emit:t}){function s(n){t("update:search",n.target.value)}return(n,r)=>{const i=ut;return dt(),gt("div",{flex:"~ col gap2",border:"b base","flex-1":"","navbar-glass":"",class:Q([{p4:!e.noPadding}])},[pt("div",Mt,[j(n.$slots,"search",{},()=>[mt(i,{placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:Q({"px-5 py-2":!e.noPadding}),value:e.search,onInput:s},null,8,["class","value"])]),j(n.$slots,"actions")]),j(n.$slots,"default")],2)}}});function I(e){return Array.isArray?Array.isArray(e):nt(e)==="[object Array]"}const xt=1/0;function _t(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-xt?"-0":t}function Et(e){return e==null?"":_t(e)}function E(e){return typeof e=="string"}function et(e){return typeof e=="number"}function yt(e){return e===!0||e===!1||It(e)&&nt(e)=="[object Boolean]"}function st(e){return typeof e=="object"}function It(e){return st(e)&&e!==null}function m(e){return e!=null}function B(e){return!e.trim().length}function nt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const St="Incorrect 'index' type",At=e=>`Invalid value for key ${e}`,wt=e=>`Pattern length exceeds max of ${e}.`,Lt=e=>`Missing ${e} property in key`,bt=e=>`Property 'weight' in key '${e}' must be a positive integer`,X=Object.prototype.hasOwnProperty;class Rt{constructor(t){this._keys=[],this._keyMap={};let s=0;t.forEach(n=>{let r=rt(n);s+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,s+=r.weight}),this._keys.forEach(n=>{n.weight/=s})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function rt(e){let t=null,s=null,n=null,r=1,i=null;if(E(e)||I(e))n=e,t=J(e),s=K(e);else{if(!X.call(e,"name"))throw new Error(Lt("name"));const c=e.name;if(n=c,X.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(bt(c));t=J(c),s=K(c),i=e.getFn}return{path:t,id:s,weight:r,src:n,getFn:i}}function J(e){return I(e)?e:e.split(".")}function K(e){return I(e)?e.join("."):e}function Nt(e,t){let s=[],n=!1;const r=(i,c,o)=>{if(m(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!m(h))return;if(o===c.length-1&&(E(h)||et(h)||yt(h)))s.push(Et(h));else if(I(h)){n=!0;for(let l=0,f=h.length;l<f;l+=1)r(h[l],c,o+1)}else c.length&&r(h,c,o+1)}};return r(e,E(t)?t.split("."):t,0),n?s:s[0]}const $t={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},kt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},vt={location:0,threshold:.6,distance:100},Ot={useExtendedSearch:!1,getFn:Nt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var u={...kt,...$t,...vt,...Ot};const Ct=/[^ ]+/g;function Tt(e=1,t=3){const s=new Map,n=Math.pow(10,t);return{get(r){const i=r.match(Ct).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*e),o=parseFloat(Math.round(c*n)/n);return s.set(i,o),o},clear(){s.clear()}}}class Y{constructor({getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){this.norm=Tt(s,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,E(this.docs[0])?this.docs.forEach((t,s)=>{this._addString(t,s)}):this.docs.forEach((t,s)=>{this._addObject(t,s)}),this.norm.clear())}add(t){const s=this.size();E(t)?this._addString(t,s):this._addObject(t,s)}removeAt(t){this.records.splice(t,1);for(let s=t,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(t,s){return t[this._keysMap[s]]}size(){return this.records.length}_addString(t,s){if(!m(t)||B(t))return;let n={v:t,i:s,n:this.norm.get(t)};this.records.push(n)}_addObject(t,s){let n={i:s,$:{}};this.keys.forEach((r,i)=>{let c=r.getFn?r.getFn(t):this.getFn(t,r.path);if(m(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(m(l))if(E(l)&&!B(l)){let f={v:l,i:h,n:this.norm.get(l)};o.push(f)}else I(l)&&l.forEach((f,d)=>{a.push({nestedArrIndex:d,value:f})})}n.$[i]=o}else if(E(c)&&!B(c)){let o={v:c,n:this.norm.get(c)};n.$[i]=o}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function it(e,t,{getFn:s=u.getFn,fieldNormWeight:n=u.fieldNormWeight}={}){const r=new Y({getFn:s,fieldNormWeight:n});return r.setKeys(e.map(rt)),r.setSources(t),r.create(),r}function Ft(e,{getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){const{keys:n,records:r}=e,i=new Y({getFn:t,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(r),i}function C(e,{errors:t=0,currentLocation:s=0,expectedLocation:n=0,distance:r=u.distance,ignoreLocation:i=u.ignoreLocation}={}){const c=t/e.length;if(i)return c;const o=Math.abs(n-s);return r?c+o/r:o?1:c}function Pt(e=[],t=u.minMatchCharLength){let s=[],n=-1,r=-1,i=0;for(let c=e.length;i<c;i+=1){let o=e[i];o&&n===-1?n=i:!o&&n!==-1&&(r=i-1,r-n+1>=t&&s.push([n,r]),n=-1)}return e[i-1]&&i-n>=t&&s.push([n,i-1]),s}const R=32;function jt(e,t,s,{location:n=u.location,distance:r=u.distance,threshold:i=u.threshold,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,includeMatches:a=u.includeMatches,ignoreLocation:h=u.ignoreLocation}={}){if(t.length>R)throw new Error(wt(R));const l=t.length,f=e.length,d=Math.max(0,Math.min(n,f));let g=i,p=d;const M=o>1||a,L=M?Array(f):[];let y;for(;(y=e.indexOf(t,p))>-1;){let x=C(t,{currentLocation:y,expectedLocation:d,distance:r,ignoreLocation:h});if(g=Math.min(x,g),p=y+l,M){let S=0;for(;S<l;)L[y+S]=1,S+=1}}p=-1;let N=[],b=1,v=l+f;const lt=1<<l-1;for(let x=0;x<l;x+=1){let S=0,A=v;for(;S<A;)C(t,{errors:x,currentLocation:d+A,expectedLocation:d,distance:r,ignoreLocation:h})<=g?S=A:v=A,A=Math.floor((v-S)/2+S);v=A;let G=Math.max(1,d-A+1),P=c?f:Math.min(d+A,f)+l,$=Array(P+2);$[P+1]=(1<<x)-1;for(let _=P;_>=G;_-=1){let O=_-1,U=s[e.charAt(O)];if(M&&(L[O]=+!!U),$[_]=($[_+1]<<1|1)&U,x&&($[_]|=(N[_+1]|N[_])<<1|1|N[_+1]),$[_]<&&(b=C(t,{errors:x,currentLocation:O,expectedLocation:d,distance:r,ignoreLocation:h}),b<=g)){if(g=b,p=O,p<=d)break;G=Math.max(1,2*d-p)}}if(C(t,{errors:x+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:h})>g)break;N=$}const F={isMatch:p>=0,score:Math.max(.001,b)};if(M){const x=Pt(L,o);x.length?a&&(F.indices=x):F.isMatch=!1}return F}function Bt(e){let t={};for(let s=0,n=e.length;s<n;s+=1){const r=e.charAt(s);t[r]=(t[r]||0)|1<<n-s-1}return t}class ct{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:Bt(d),startIndex:g})},f=this.pattern.length;if(f>R){let d=0;const g=f%R,p=f-g;for(;d<p;)l(this.pattern.substr(d,R),d),d+=R;if(g){const M=f-R;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(t){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(t=t.toLowerCase()),this.pattern===t){let p={isMatch:!0,score:0};return n&&(p.indices=[[0,t.length-1]]),p}const{location:r,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],f=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:L})=>{const{isMatch:y,score:N,indices:b}=jt(t,p,M,{location:r+L,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:n,ignoreLocation:h});y&&(d=!0),f+=N,y&&b&&(l=[...l,...b])});let g={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(g.indices=l),g}}class w{constructor(t){this.pattern=t}static isMultiMatch(t){return Z(t,this.multiRegex)}static isSingleMatch(t){return Z(t,this.singleRegex)}search(){}}function Z(e,t){const s=e.match(t);return s?s[1]:null}class Kt extends w{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const s=t===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Dt extends w{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Wt extends w{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const s=t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class zt extends w{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const s=!t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Vt extends w{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const s=t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ht extends w{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const s=!t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class ot extends w{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){super(t),this._bitapSearch=new ct(t,{location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class at extends w{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let s=0,n;const r=[],i=this.pattern.length;for(;(n=t.indexOf(this.pattern,s))>-1;)s=n+i,r.push([n,s-1]);const c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}const D=[Kt,at,Wt,zt,Ht,Vt,Dt,ot],q=D.length,Yt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Gt="|";function Ut(e,t={}){return e.split(Gt).map(s=>{let n=s.trim().split(Yt).filter(i=>i&&!!i.trim()),r=[];for(let i=0,c=n.length;i<c;i+=1){const o=n[i];let a=!1,h=-1;for(;!a&&++h<q;){const l=D[h];let f=l.isMultiMatch(o);f&&(r.push(new l(f,t)),a=!0)}if(!a)for(h=-1;++h<q;){const l=D[h];let f=l.isSingleMatch(o);if(f){r.push(new l(f,t));break}}}return r})}const Qt=new Set([ot.type,at.type]);class Xt{constructor(t,{isCaseSensitive:s=u.isCaseSensitive,includeMatches:n=u.includeMatches,minMatchCharLength:r=u.minMatchCharLength,ignoreLocation:i=u.ignoreLocation,findAllMatches:c=u.findAllMatches,location:o=u.location,threshold:a=u.threshold,distance:h=u.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:r,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?t:t.toLowerCase(),this.query=Ut(this.pattern,this.options)}static condition(t,s){return s.useExtendedSearch}searchIn(t){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let f=0,d=l.length;f<d;f+=1){const g=l[f],{isMatch:p,indices:M,score:L}=g.search(t);if(p){if(i+=1,o+=L,n){const y=g.constructor.type;Qt.has(y)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let f={isMatch:!0,score:o/i};return n&&(f.indices=c),f}}return{isMatch:!1,score:1}}}const W=[];function Jt(...e){W.push(...e)}function z(e,t){for(let s=0,n=W.length;s<n;s+=1){let r=W[s];if(r.condition(e,t))return new r(e,t)}return new ct(e,t)}const T={AND:"$and",OR:"$or"},V={PATH:"$path",PATTERN:"$val"},H=e=>!!(e[T.AND]||e[T.OR]),Zt=e=>!!e[V.PATH],qt=e=>!I(e)&&st(e)&&!H(e),tt=e=>({[T.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ht(e,t,{auto:s=!0}={}){const n=r=>{let i=Object.keys(r);const c=Zt(r);if(!c&&i.length>1&&!H(r))return n(tt(r));if(qt(r)){const a=c?r[V.PATH]:i[0],h=c?r[V.PATTERN]:r[a];if(!E(h))throw new Error(At(a));const l={keyId:K(a),pattern:h};return s&&(l.searcher=z(h,t)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=r[a];I(h)&&h.forEach(l=>{o.children.push(n(l))})}),o};return H(e)||(e=tt(e)),n(e)}function te(e,{ignoreFieldNorm:t=u.ignoreFieldNorm}){e.forEach(s=>{let n=1;s.matches.forEach(({key:r,norm:i,score:c})=>{const o=r?r.weight:null;n*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(t?1:i))}),s.score=n})}function ee(e,t){const s=e.matches;t.matches=[],m(s)&&s.forEach(n=>{if(!m(n.indices)||!n.indices.length)return;const{indices:r,value:i}=n;let c={indices:r,value:i};n.key&&(c.key=n.key.src),n.idx>-1&&(c.refIndex=n.idx),t.matches.push(c)})}function se(e,t){t.score=e.score}function ne(e,t,{includeMatches:s=u.includeMatches,includeScore:n=u.includeScore}={}){const r=[];return s&&r.push(ee),n&&r.push(se),e.map(i=>{const{idx:c}=i,o={item:t[c],refIndex:c};return r.length&&r.forEach(a=>{a(i,o)}),o})}class k{constructor(t,s={},n){this.options={...u,...s},this.options.useExtendedSearch,this._keyStore=new Rt(this.options.keys),this.setCollection(t,n)}setCollection(t,s){if(this._docs=t,s&&!(s instanceof Y))throw new Error(St);this._myIndex=s||it(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){m(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const s=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,r-=1,s.push(i))}return s}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:s=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=E(t)?E(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return te(a,{ignoreFieldNorm:o}),i&&a.sort(c),et(s)&&s>-1&&(a=a.slice(0,s)),ne(a,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(t){const s=z(t,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&r.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),r}_searchLogical(t){const s=ht(t,this.options),n=(o,a,h)=>{if(!o.children){const{keyId:f,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let f=0,d=o.children.length;f<d;f+=1){const g=o.children[f],p=n(g,a,h);if(p.length)l.push(...p);else if(o.operator===T.AND)return[]}return l},r=this._myIndex.records,i={},c=[];return r.forEach(({$:o,i:a})=>{if(m(o)){let h=n(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(t){const s=z(t,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:c,i:o})=>{if(!m(c))return;let a=[];n.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:t,value:s,searcher:n}){if(!m(s))return[];let r=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=n.searchIn(i);a&&r.push({score:h,key:t,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=n.searchIn(i);o&&r.push({score:a,key:t,value:i,norm:c,indices:h})}return r}}k.version="6.6.2";k.createIndex=it;k.parseIndex=Ft;k.config=u;k.parseQuery=ht;Jt(Xt);export{k as F,oe as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as N}from"./DurationDisplay.vue.
|
|
1
|
+
import{_ as N}from"./DurationDisplay.vue.9816695d.js";import{a as y,D as v,m as w,o as _,f as m,h as e,l as d,x as u,u as s,F as S,v as B,t as p,q as T,i as x,ab as D,b as F,c as V,w as C,y as z}from"./entry.bcd35db3.js";import{_ as E}from"./NSectionBlock.e666450f.js";import"./NIconTitle.vue.d1747349.js";const I={"w-full":""},L={border:"b base"},O={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},j={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},q={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},M={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},P={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},R={"text-sm":""},G={"ws-nowrap":""},J={"text-sm":""},K={"w-0":"","text-center":"","text-sm":""},Q={"w-0":"","text-center":"","text-sm":""},U={"w-0":"","text-right":"","text-sm":""},W=y({__name:"HooksTable",props:{hooks:null},setup(b){const l=b,a=v("duration"),r=v("asc"),f={duration:(o,t)=>(t.duration??1/0)-(o.duration??1/0),name:(o,t)=>o.name.localeCompare(t.name),listener:(o,t)=>t.listeners-o.listeners,start:(o,t)=>t.start-o.start,executions:(o,t)=>t.executions.length-o.executions.length},k=w(()=>l.hooks.map(o=>o.start).sort((o,t)=>o-t)),h=w(()=>{const o=f[a.value],t=[...l.hooks].sort(o);return r.value==="desc"&&t.reverse(),t});function i(o){const t=o.split(":");return t.length===1?"":`${t[0]}:`}function $(o){const t=o.split(":");return t.length===1?o:t.slice(1).join(":")}function H(o){let t=0;for(let n=0;n<o.length;n++)t=o.charCodeAt(n)+((t<<5)-t);return`hsl(${t%360}, 65%, 50%)`}function c(o){a.value===o?r.value=r.value==="asc"?"desc":"asc":a.value=o}return(o,t)=>{const g=N;return _(),m("table",I,[e("thead",L,[e("tr",null,[e("th",O,[e("button",{onClick:t[0]||(t[0]=n=>c("start"))},[d(" Order "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="start"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",j,[e("button",{onClick:t[1]||(t[1]=n=>c("name"))},[d(" Hook name "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="name"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",q,[e("button",{onClick:t[2]||(t[2]=n=>c("listener"))},[d(" Listeners "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="listener"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",A,[e("button",{onClick:t[3]||(t[3]=n=>c("executions"))},[d(" Executions "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="executions"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",M,[e("button",{onClick:t[4]||(t[4]=n=>c("duration"))},[d(" Duration "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="duration"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),e("tbody",null,[(_(!0),m(S,null,B(s(h),n=>(_(),m("tr",{key:n.name,border:"b dashed transparent hover:base"},[e("td",P,p(s(k).indexOf(n.start)),1),e("td",{"w-0":"","ws-nowrap":"","text-right":"",style:T({color:H(i(n.name))})},[e("code",R,p(i(n.name)),1)],4),e("td",G,[e("code",J,p($(n.name)),1)]),e("td",K,p(n.listeners),1),e("td",Q,p(n.executions.length+1),1),e("td",U,[x(g,{duration:n.duration},null,8,["duration"])])]))),128))])])}}}),ot=y({__name:"hooks",setup(b){const l=D(),a=F(),r=w(()=>a.value?.getClientHooksMetrics());return(f,k)=>{const h=W,i=E;return _(),m("div",null,[s(r)?.length?(_(),V(i,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${s(r).length}`,padding:"pl4 pr6"},{default:C(()=>[x(h,{hooks:s(r)},null,8,["hooks"])]),_:1},8,["description"])):z("",!0),x(i,{icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${s(l).length}`,padding:"pl4 pr6"},{default:C(()=>[x(h,{hooks:s(l)},null,8,["hooks"])]),_:1},8,["description"])])}}});export{ot as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as V}from"./NSwitch.vue.28747f12.js";import{F as U,_ as B}from"./fuse.esm.69d72a3b.js";import{_ as N}from"./FilepathItem.vue.288f8cb4.js";import{_ as L}from"./NMarkdown.vue.20a8169f.js";import{a as w,m as M,M as F,o,c as b,w as d,h as l,y as v,i as k,u as e,l as S,f as _,F as E,t as C,v as $,x as X,k as z,A as j,D as A,ac as P,V as K,ad as R,W,K as D}from"./entry.bcd35db3.js";import{u as q,o as G}from"./editor.59beec6a.js";import{_ as H}from"./NSectionBlock.e666450f.js";import{D as T}from"./constants.bd39e314.js";import"./NTextInput.vue.352ba30f.js";import"./context.6844f837.js";import"./NIconTitle.vue.d1747349.js";const J={"hover:text-primary":""},O={key:0,"text-primary":""},Q={"max-w-100":""},Y={px4:"",py3:"","text-sm":""},Z={flex:"~ gap2",n:"primary xs"},ee={border:"t base",px4:"",py3:""},te={"text-sm":""},oe=l("span",{op50:""},"It has been referenced ",-1),ae={"text-primary":""},ne=l("span",{op50:""}," times by:",-1),se={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":""},ie={key:1,"text-sm":"",op50:""},re=w({__name:"ComposableItem",props:{item:null,metadata:null,filepath:null},setup(s){const u=s,y=q(),m=M(()=>u.item.as||u.item.name),p=M(()=>u.metadata?.injectionUsage?.[m.value]?.count||0),i=M(()=>u.metadata?.injectionUsage?.[m.value]?.moduleIds||[]);return(I,f)=>{const a=L,t=z,r=N,x=F("VDropdown");return o(),b(x,{disabled:!u.metadata},{popper:d(()=>[l("div",Q,[l("div",Y,[s.item.meta?.description?(o(),b(a,{key:0,tag:"div",pb3:"","text-sm":"",markdown:s.item.meta.description},null,8,["markdown"])):v("",!0),l("div",Z,[k(t,{"n-solid":"",onClick:f[0]||(f[0]=c=>e(y)(e(m)))},{default:d(()=>[S(" Copy ")]),_:1}),s.filepath?(o(),b(t,{key:0,"n-solid":"",onClick:f[1]||(f[1]=c=>s.filepath&&("openInEditor"in I?I.openInEditor:e(G))(s.filepath))},{default:d(()=>[S(" Source ")]),_:1})):v("",!0),s.item.meta?.docsUrl?(o(),b(t,{key:1,"n-solid":"",to:s.item.meta?.docsUrl,target:"_blank"},{default:d(()=>[S(" Docs ")]),_:1},8,["to"])):v("",!0)])]),l("div",ee,[e(p)?(o(),_(E,{key:0},[l("div",te,[oe,l("strong",ae,C(e(p)),1),ne]),l("div",se,[(o(!0),_(E,null,$(e(i),c=>(o(),b(r,{key:c,filepath:c},null,8,["filepath"]))),128))])],64)):(o(),_("div",ie," Not in use via auto import. "))])])]),default:d(()=>[l("button",J,[l("code",{rounded:"","bg-gray:5":"",px2:"",py1:"","font-mono":"","text-sm":"",class:X(s.metadata&&!e(p)?"op30 hover:op100":"")},[S(C(e(m))+" ",1),e(p)?(o(),_("sup",O,"x"+C(e(p)),1)):v("",!0)],2)])]),_:1},8,["disabled"])}}}),me={flex:"~ wrap gap2",p2:"",pl4:""},le=w({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(s){return(u,y)=>{const m=N,p=re;return o(),_("div",null,[(o(!0),_(E,null,$(s.map.entries(),([i,I])=>(o(),_("div",{key:i},[k(m,{filepath:i,op50:"","hover:underline":""},null,8,["filepath"]),l("div",me,[(o(!0),_(E,null,$(I,f=>(o(),b(p,{key:f.as,item:f,metadata:s.metadata,filepath:i.match(/^[\w@]/)?void 0:i},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),ue={key:0,"h-full":"","of-auto":""},pe={key:0},xe=w({__name:"imports",setup(s){const u=j(),y=A(!1),m=A(""),p=P(),i=M(()=>p.value?.metadata),I=M(()=>p.value?.imports.filter(t=>t.as||t.name).sort((t,r)=>(t.as||t.name).localeCompare(r.as||r.name))||[]),f=M(()=>new U(I.value,{keys:["from","as","name"]})),a=M(()=>{const t=new Map,r=new Map,x=new Map;let c=m.value?f.value.search(m.value).map(n=>n.item):I.value;y.value&&i.value&&(c=c.filter(n=>(n.as||n.name)in i.value.injectionUsage));const g={user:0,lib:0,builtin:0};return c.forEach(n=>{const h=K(n.from)?R(W(n.from))?x:r:t;h.has(n.from)||h.set(n.from,[]),h.get(n.from).push(n),g[h===t?"user":h===r?"lib":"builtin"]++}),{user:t,lib:r,builtin:x,count:g}});return(t,r)=>{const x=V,c=B,g=le,n=H;return e(u)?(o(),_("div",ue,[k(c,{search:e(m),"onUpdate:search":r[1]||(r[1]=h=>D(m)?m.value=h:null),pb2:""},{default:d(()=>[e(i)?(o(),_("div",pe,[k(x,{modelValue:e(y),"onUpdate:modelValue":r[0]||(r[0]=h=>D(y)?y.value=h:null),n:"primary sm"},{default:d(()=>[S(" Show used only ")]),_:1},8,["modelValue"])])):v("",!0)]),_:1},8,["search"]),e(a).user.size?(o(),b(n,{key:0,open:e(a).count.user<=("DETAILS_MAX_ITEMS"in t?t.DETAILS_MAX_ITEMS:e(T)),icon:"carbon-function",text:"User composables",description:`${e(a).count.user} composables from ${e(a).user.size} modules`},{default:d(()=>[k(g,{map:e(a).user,root:e(u).rootDir,metadata:e(i)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):v("",!0),e(a).builtin.size?(o(),b(n,{key:1,open:e(a).count.builtin<=("DETAILS_MAX_ITEMS"in t?t.DETAILS_MAX_ITEMS:e(T)),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(a).count.builtin} composables`},{default:d(()=>[k(g,{map:e(a).builtin,root:e(u).rootDir,metadata:e(i)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):v("",!0),e(a).lib.size?(o(),b(n,{key:2,open:e(a).count.lib<=("DETAILS_MAX_ITEMS"in t?t.DETAILS_MAX_ITEMS:e(T)),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(a).count.lib} composables from ${e(a).lib.size} packages`},{default:d(()=>[k(g,{map:e(a).lib,root:e(u).rootDir,metadata:e(i)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):v("",!0)])):v("",!0)}}});export{xe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as r}from"./NuxtLogo.
|
|
1
|
+
import{_ as r}from"./NuxtLogo.1c0728be.js";import{_ as c}from"./Badge.0a290709.js";import{a as _,o as l,f as u,h as e,i as o,w as p,j as d,k as m,l as t}from"./entry.bcd35db3.js";const x={flex:"~ col gap4",mxa:"","h-screen":"","w-160":"","items-center":"","justify-center":"","text-center":""},f={flex:"~","items-center":"","justify-center":""},h=e("p",{my2:"","text-xl":"","font-bold":""}," 👋 Welcome trying the preview of Nuxt DevTools! ",-1),v=e("p",{"text-lg":""},[e("b",{"font-bold":""},"Nuxt DevTools"),t(" is a set of visual tools that help you to know your app/site better, and enhance your development experience with Nuxt. ")],-1),g=e("p",{"text-lg":""},[t(" Be aware that "),e("span",{rounded:"","bg-orange:10":"",px2:"","py0.5":"","font-bold":"","text-orange":""},"Nuxt DevTools is still in early preview"),t(", features might be incomplete and unstable. "),e("a",{href:"https://github.com/nuxt/devtools",target:"_blank","text-primary":"","hover-underline":""},"Create an issue or discussion"),t(" if you find any bugs or have any suggestions. Thank you and have fun! ")],-1),y=e("span",null,"Get Started",-1),T=_({__name:"index",setup(b){function n(){d.value=!1}return(w,N)=>{const s=r,a=c,i=m;return l(),u("div",x,[e("div",f,[o(s,{"h-16":""}),o(a,{"mr--15":"","mt--5":"","bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})]),h,v,g,o(i,{to:"/modules/overview","mt-4":"",n:"xl primary",onClick:n},{default:p(()=>[y]),_:1})])}}});export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,P as s,o as t,f as o,h as n,t as r,u}from"./entry.bcd35db3.js";const f=a({__name:"layouts",setup(l){const e=s();return(c,p)=>(t(),o("div",null,[n("pre",null,r(u(e)),1)]))}});export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,o as a,f as n}from"./entry.
|
|
1
|
+
import{a as e,o as a,f as n}from"./entry.bcd35db3.js";const s=e({__name:"middleware",setup(o){return(t,r)=>(a(),n("div",null," WIP "))}});export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as V,A as D,m as k,V as F,W as L,ae as R,af as O,ag as W,o as e,c as u,w as d,h as n,u as t,l as P,t as m,f as a,C as z,y as l,i as b,F as w,v as C,ah as G,ai as H,D as I,r as J}from"./entry.bcd35db3.js";import{_ as K}from"./FilepathItem.vue.288f8cb4.js";import{_ as Q}from"./NpmVersionCheck.vue.d7b26b31.js";import{_ as X}from"./NSectionBlock.e666450f.js";import"./editor.59beec6a.js";import"./context.6844f837.js";import"./Badge.0a290709.js";import"./NCodeBlock.vue.b2b8c3ac.js";import"./NCheckbox.vue.f52d0a98.js";import"./NTip.vue.eda7f11a.js";import"./NIconTitle.vue.d1747349.js";const Y={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},Z={"of-hidden":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},tt={key:2},et={key:0,"line-clamp-2":"","mt--1":"","text-sm":"",op50:""},ot=n("div",{"flex-auto":""},null,-1),nt={key:1,flex:"~ gap-2",title:"Documentation"},at=n("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1),st={key:2,flex:"~ gap-2"},it=n("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1),rt={key:3,flex:"~ gap-2",title:"Open on filesystem"},lt=n("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1),ct=n("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),dt=n("code",{"text-sm":"",op50:""},"Upgrading...",-1),pt={key:1,"mx--2":""},mt=["onClick"],ut=n("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),_t=n("code",{"text-xs":""},"Update installed, click to restart",-1),ht=[ut,_t],gt={key:2,"mx--2":""},xt=["onClick"],ft=n("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1),yt={op50:""},vt=n("div",{"i-carbon-arrow-right":"",op50:""},null,-1),kt={"text-green":""},bt={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},wt=n("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1),Pt={"text-sm":"",op50:""},Ct={flex:"~ col"},Mt={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Nt=["src","alt"],$t=n("div",{"i-carbon-circle-dash":"",ma:"","text-4xl":"",op50:""},null,-1),Bt={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},It=["src"],Vt=V({__name:"ModuleItem",props:{mod:null},async setup(h){let g,y;const c=h,_=D(),p=k(()=>c.mod.entryPath&&F(c.mod.entryPath)),s=k(()=>c.mod.meta?.name?c.mod.meta.name:c.mod.entryPath?p.value?L(c.mod.entryPath):_.value?.rootDir?R(c.mod.entryPath,_.value?.rootDir).path:"":""),M=([g,y]=O(()=>W()),g=await g,y(),g),o=k(()=>({name:s,...c.mod?.meta,...(M||[]).find?.(x=>x.npm===s.value||x.name===s.value)})),v="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",i="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",U="https://github.com/",j="https://www.npmjs.com/package/";return(x,N)=>{const f=G,E=K,S=Q,T=H;return e(),u(T,{p4:"",flex:"~ gap2"},{default:d(()=>[n("div",Y,[n("div",Z,[t(p)?(e(),u(f,{key:0,to:j+(t(o).npm||t(o).name),target:"_blank",hover:"underline text-primary"},{default:d(()=>[P(m(t(o).name),1)]),_:1},8,["to"])):h.mod.entryPath?(e(),a("button",{key:1,role:"button",hover:"underline text-primary",onClick:N[0]||(N[0]=r=>("rpc"in x?x.rpc:t(z)).openInEditor(h.mod.entryPath))},m(t(o).name),1)):(e(),a("span",tt,m(t(o).name),1))]),t(o).description?(e(),a("div",et,m(t(o).description),1)):l("",!0),ot,t(o).website?(e(),a("div",nt,[at,b(f,{to:t(o).website,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:d(()=>[P(m(t(o).website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):l("",!0),t(o).github?(e(),a("div",st,[it,b(f,{to:t(o).github,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:d(()=>[P(m(t(o).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):l("",!0),h.mod.entryPath?(e(),a("div",rt,[lt,b(E,{filepath:h.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):l("",!0),t(o).npm?(e(),u(S,{key:t(o).npm,"package-name":t(o).npm,options:{dev:!0}},{default:d(({info:r,update:q,state:$,id:B,restart:A})=>[$==="running"?(e(),u(f,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:B?`/modules/terminals?id=${encodeURIComponent(B)}`:void 0},{default:d(()=>[ct,dt]),_:2},1032,["to"])):$==="updated"?(e(),a("div",pt,[n("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:A},ht,8,mt)])):r?.needsUpdate?(e(),a("div",gt,[n("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:Ut=>q()},[ft,n("code",yt,"v"+m(r.current),1),vt,n("code",kt,"v"+m(r.latest),1)],8,xt)])):r?.latest?(e(),a("div",bt,[wt,n("code",Pt,"v"+m(r.current),1)])):l("",!0)]),_:1},8,["package-name"])):l("",!0)]),n("div",Ct,[t(o).icon||t(p)?(e(),a("div",Mt,[t(o).icon?(e(),a("img",{key:0,src:v+t(o).icon,alt:t(s),ma:""},null,8,Nt)):l("",!0),$t])):l("",!0),t(o).maintainers?.length?(e(),a("div",Bt,[(e(!0),a(w,null,C(t(o).maintainers,r=>(e(),u(f,{key:r.name,target:"_blank",to:U+r.github,title:r.name},{default:d(()=>[n("img",{src:i+r.github,"h-6":"","w-6":"","rounded-full":""},null,8,It)]),_:2},1032,["to","title"]))),128))])):l("",!0)])]),_:1})}}}),Dt={"h-full":"","w-full":"","of-auto":""},Ft=n("div",{px4:""},[n("span",{op50:""},"Find more modules at "),n("a",{href:"https://nuxt.com/modules",target:"_blank",hover:"text-primary underline"},"nuxt.com/modules")],-1),Gt=V({__name:"modules",setup(h){const g=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"],y=D(),c=k(()=>y.value?._installedModules||[]),_=I([]),p=I([]);return J(()=>{_.value.length=0,p.value.length=0;for(const s of c.value)g.includes(s.meta?.name)||(s.entryPath&&F(s.entryPath)?_.value.push(s):p.value.push(s))}),(s,M)=>{const o=Vt,v=X;return e(),a("div",Dt,[b(v,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${t(_).length}`},{footer:d(()=>[Ft]),default:d(()=>[(e(!0),a(w,null,C(t(_),i=>(e(),u(o,{key:i.meta?.name||i.entryPath,mod:i},null,8,["mod"]))),128))]),_:1},8,["description"]),t(p).length?(e(),u(v,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${t(p).length}`},{default:d(()=>[(e(!0),a(w,null,C(t(p),i=>(e(),a(w,{key:i.meta?.name||i.entryPath},[i.meta?.name||i.entryPath?(e(),u(o,{key:0,mod:i},null,8,["mod"])):l("",!0)],64))),128))]),_:1},8,["description"])):l("",!0)])}}});export{Gt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{am as r,L as n}from"./entry.bcd35db3.js";const t={};function o(e,s){return n(e.$slots,"default")}const c=r(t,[["render",o]]);export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as j}from"./NuxtLogo.1c0728be.js";import{_ as B}from"./Badge.0a290709.js";import{_ as V}from"./NpmVersionCheck.vue.d7b26b31.js";import{a as D,b as I,A,Y as R,ac as T,aj as $,ak as F,X as L,o as s,c as a,w as o,u as e,f as d,h as t,i,t as _,F as p,y as c,al as M,l as n,j as O,ah as P,k as W}from"./entry.bcd35db3.js";import{_ as G}from"./NTip.vue.eda7f11a.js";import{_ as E}from"./NPanelGrids.ac7957ef.js";import"./NCodeBlock.vue.b2b8c3ac.js";import"./NCheckbox.vue.f52d0a98.js";const H="0.4.0",U={key:0},X={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p8:"",px20:""},Y=t("div",{"flex-auto":""},null,-1),q={flex:"~ col","mt-20":"","items-center":""},z={flex:"~","mt--10":"","items-center":"","justify-center":""},J={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},K=t("span",{op40:""}," Nuxt DevTools ",-1),Q={op40:""},Z={flex:"~ gap2 wrap"},tt={p4:"","theme-card-green":"",flex:"~ col auto"},et=t("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),ot=t("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1),nt=t("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),st=t("div",{"carbon-function":"","text-3xl":""},null,-1),it=t("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1),lt=t("div",{"carbon-plug":"","text-3xl":""},null,-1),at={flex:"~ col gap2"},ct={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},rt=t("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[t("div",{"i-carbon-star":""}),n(" Star on GitHub ")],-1),ut=t("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[t("div",{"i-carbon-data-enrichment":""}),n(" Ideas & Suggestions ")],-1),_t=t("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[t("div",{"i-carbon-plan":""}),n(" Project Roadmap ")],-1),dt=t("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[t("div",{"i-carbon-debug":""}),n(" Bug Reports ")],-1),pt=t("div",{"i-carbon-settings":""},null,-1),mt=t("div",{"flex-auto":""},null,-1),ht={flex:"~ gap-1","items-center":"","justify-center":"","text-sm":"",op40:""},xt=t("span",null,"+",-1),ft=t("span",null,"+",-1),gt=t("span",null,"+",-1),vt=t("span",null,"+",-1),Dt=D({__name:"overview",setup(bt){const f=I(),l=A(),g=R(),m=T(),v=$(),b=F(),k=L();function w(){O.value=!0,k.push("/")}return(h,kt)=>{const y=j,C=B,x=V,r=P,N=G,u=W,S=E;return s(),a(S,{"h-full":"","w-full":"",flex:""},{default:o(()=>[e(l)?(s(),d("div",X,[Y,t("div",q,[t("div",z,[i(y,{"h-18":""}),t("button",{"mr--16":"","mt--6":"",onClick:w},[i(C,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),t("div",J,[K,t("code",Q,"v"+_(e(H)),1),i(x,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",Z,[t("div",tt,[et,i(x,{"package-name":"nuxt",options:{dev:!0}})]),e(l)?(s(),d(p,{key:0},[e(l)&&e(l).pages&&e(f)?(s(),a(r,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:o(()=>[ot,t("div",null,_(e(v).length)+" pages",1)]),_:1})):c("",!0),e(l)?(s(),a(r,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:o(()=>[nt,t("div",null,_(e(g).length)+" components",1)]),_:1})):c("",!0),e(l)&&e(m)?(s(),a(r,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:o(()=>[st,t("div",null,_(e(m).imports.length)+" imports",1)]),_:1})):c("",!0),e(l)?(s(),a(r,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:o(()=>[it,t("div",null,_(e(l)._installedModules.length)+" modules",1)]),_:1})):c("",!0),e(l)?(s(),a(r,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:o(()=>[lt,t("div",null,_(e(l).plugins.length)+" plugins",1)]),_:1})):c("",!0)],64)):c("",!0)]),t("div",at,[("showConnectionWarning"in h?h.showConnectionWarning:e(M))?(s(),a(N,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:o(()=>[n(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):c("",!0)]),t("div",ct,[rt,ut,_t,dt,i(r,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:o(()=>[pt,n(" Settings ")]),_:1})]),mt,t("div",ht,[n(" Press "),e(b)?(s(),d(p,{key:0},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" ⇧ Shift ")]),_:1}),xt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" ⌥ Option ")]),_:1}),ft,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)):(s(),d(p,{key:1},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" Shift ")]),_:1}),gt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" Alt ")]),_:1}),vt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)),n(" to toggle DevTools ")])])):(s(),d("div",U," Loading... "))]),_:1})}}});export{Dt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as L}from"./NTextInput.vue.352ba30f.js";import{_ as K}from"./Badge.0a290709.js";import{a as I,D as S,m as b,as as M,M as A,u as e,o as n,f as s,h as t,t as k,c as w,w as C,at as F,F as v,v as P,y as $,i as x,l as V,x as B,k as U,au as j,av as z,A as O,O as W,P as q,aw as G,ax as E,a6 as H,K as J,ay as Q,C as X}from"./entry.bcd35db3.js";import{o as T}from"./editor.59beec6a.js";import{_ as Y}from"./NSectionBlock.e666450f.js";import{_ as Z}from"./LaunchPage.vue.25e8c415.js";import"./context.6844f837.js";import"./NIconTitle.vue.d1747349.js";import"./TabIcon.vue.84eecba6.js";import"./NMarkdown.vue.20a8169f.js";import"./NPanelGrids.ac7957ef.js";const ee={block:"","cursor-pointer":""},te={p2:""},ne=["onSubmit"],oe=t("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),ae={flex:"~","items-center":"",p2:"","font-mono":"","text-sm":""},se={key:1},re=I({__name:"RoutePathItem",props:{route:null},emits:["navigate"],setup(m,{emit:d}){const u=m,h=S([]),c=b(()=>{const o=M(u.route.path);return h.value=Array.from({length:o.length},()=>""),o}),i=b(()=>c.value.map((o,a)=>o[0]===":"?h.value[a]:o).join("").replace(/\/+/g,"/")),p=b(()=>u.route.path.includes(":"));function r(){d("navigate",i.value)}return(o,a)=>{const N=L,l=U,f=A("VDropdown");return e(p)?(n(),w(f,{key:1},{popper:C(({hide:_})=>[t("div",te,[t("form",{flex:"~ col",onSubmit:F(()=>{r(),_()},["prevent"])},[e(p)?(n(),s(v,{key:0},[oe,t("div",ae,[(n(!0),s(v,null,P(e(c),(g,y)=>(n(),s(v,{key:y},[g[0]===":"?(n(),w(N,{key:0,modelValue:e(h)[y],"onUpdate:modelValue":R=>e(h)[y]=R,"w-20":"","n-sm":"",placeholder:g.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(n(),s("span",se,k(g),1))],64))),128))])],64)):$("",!0),x(l,{block:"",n:"primary"},{default:C(()=>[V(" Navigate ")]),_:1})],40,ne)])]),default:C(()=>[t("code",ee,[(n(!0),s(v,null,P(e(c),(_,g)=>(n(),s("span",{key:g,class:B(_[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},k(_[0]===":"?_.slice(1):_),3))),128))])]),_:1})):(n(),s("button",{key:0,onClick:r},[t("code",null,k(m.route.path),1)]))}}}),le={"w-full":""},ue=t("thead",{border:"b base"},[t("tr",null,[t("th",{"text-left":""}),t("th",{"text-left":""}," Route Path "),t("th",{"text-left":""}," Name "),t("th",null," Layout ")])],-1),ie={"w-20":"","pr-1":""},ce={flex:"","items-center":"","justify-end":""},de={"text-sm":""},pe={flex:"inline gap3","items-center":""},me={op0:"","group-hover:op100":"",flex:"~ gap1"},he=["onClick"],_e=t("div",{"i-carbon-script-reference":""},null,-1),ge=[_e],fe={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","font-mono":"","text-sm":"",op50:""},ve={"w-0":"","ws-nowrap":"","text-center":"","font-mono":"","text-sm":""},ye={key:0},xe=["onClick"],be=I({__name:"RoutesTable",props:{pages:null,layouts:null,matched:null,matchedPending:null},emits:["navigate"],setup(m){const d=m,u=b(()=>[...d.pages].sort((c,i)=>c.path.localeCompare(i.path)));function h(c){const i=d.layouts.find(p=>p.name===c);i&&T(i.file)}return(c,i)=>{const p=K,r=re;return n(),s("div",null,[t("table",le,[ue,t("tbody",null,[(n(!0),s(v,null,P(e(u),o=>(n(),s("tr",{key:o.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[t("td",ie,[t("div",ce,[m.matched.find(a=>a.name===o.name)?(n(),w(p,{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):$("",!0),m.matchedPending.find(a=>a.name===o.name)?(n(),w(p,{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):$("",!0)])]),t("td",de,[t("div",pe,[x(r,{route:o,class:B(m.matched.find(a=>a.name===o.name)?"text-primary":m.matchedPending.find(a=>a.name===o.name)?"text-teal":""),onNavigate:i[0]||(i[0]=a=>c.$emit("navigate",a))},null,8,["route","class"]),t("div",me,[o.file||o.meta?.file?(n(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:a=>("openInEditor"in c?c.openInEditor:e(T))(o.file||o.meta?.file)},ge,8,he)):$("",!0)])])]),t("td",fe,k(o.name),1),t("td",ve,[o.meta.layout===!1?(n(),s("span",ye,"-")):o.meta.layout?(n(),s("button",{key:1,onClick:a=>h(o.meta.layout)},k(o.meta.layout),9,xe)):(n(),s("button",{key:2,"text-sm":"",op15:"",onClick:i[1]||(i[1]=a=>h("default"))}," (default) "))])]))),128))])])])}}}),ke={key:0,"h-full":"","of-auto":""},$e={border:"b base",flex:"~ col gap1",px4:"",py3:"","navbar-glass":""},we=t("span",{op50:""},"Navigate from ",-1),Ce={"font-mono":""},Ne=t("span",{op50:""}," to ",-1),Re={key:1,op50:""},Pe=t("span",null,[V("Press "),t("b",{"font-bold":""},"Enter"),V(" to navigate")],-1),Ve={key:0,"text-orange":"",op75:""},Ie={key:1,op50:""},je=I({__name:"pages",setup(m){const d=j(),u=z(),h=O(),c=W(),i=q(),p=b(()=>(d.value?.getRoutes()||[]).map(l=>G(l,["path","name","meta","props","children"])).map(l=>({...c.value?.find(f=>f.name&&f.name===l.name),...l}))),r=S("");E(u).toBeTruthy().then(l=>{r.value=l.path}),E(d).toBeTruthy().then(l=>{l.afterEach(()=>{H(()=>{r.value=u.value.path})})});async function o(){r.value!==u.value.path&&d.value.push(r.value||"/")}const a=b(()=>r.value===u.value.path?[]:d.value.resolve(r.value||"/").matched);function N(l){d.value.push(l)}return(l,f)=>{const _=L,g=be,y=Y,R=Z;return e(h)?.pages&&e(d)?(n(),s("div",ke,[t("div",$e,[t("div",null,[e(u).path!==e(r)?(n(),s(v,{key:0},[we,t("span",Ce,k(e(u).path),1),Ne],64)):(n(),s("span",Re,"Current route"))]),x(_,{modelValue:e(r),"onUpdate:modelValue":f[0]||(f[0]=D=>J(r)?r.value=D:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:B(e(u).path===e(r)?"":e(a).length?"text-green":"text-orange"),onKeydown:Q(o,["enter"])},null,8,["modelValue","class","onKeydown"]),t("div",null,[e(u).path!==e(r)?(n(),s(v,{key:0},[Pe,e(a).length?$("",!0):(n(),s("span",Ve," (no match)"))],64)):(n(),s("span",Ie,"Edit path above to navigate"))])]),e(a).length?(n(),w(y,{key:0,icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:C(()=>[x(g,{pages:e(a),layouts:e(i)||[],matched:[],"matched-pending":e(a),onNavigate:N},null,8,["pages","layouts","matched-pending"])]),_:1})):$("",!0),x(y,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${e(p).length} routes registered in your application`,padding:"pr5"},{default:C(()=>[x(g,{pages:e(p),layouts:e(i)||[],matched:e(u).matched,"matched-pending":e(a),onNavigate:N},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"])])):(n(),w(R,{key:1,icon:"carbon-tree-view-alt",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",handle(){return("rpc"in l?l.rpc:e(X)).runWizard("enablePages")}}]},null,8,["actions"]))}}});export{je as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as y}from"./StateEditor.vue.
|
|
1
|
+
import{_ as y}from"./StateEditor.vue.4b8051fa.js";import{a as k,o as t,f as r,F as $,v as g,c as p,w as a,L as S,n as C,g as N,b as B,m as w,u as s,i as c,y as m,l as D,k as E}from"./entry.bcd35db3.js";import{_ as F}from"./NSectionBlock.e666450f.js";import{_ as P}from"./NIconButton.vue.c1838c30.js";import"./NIconTitle.vue.d1747349.js";const R={key:0,flex:"~ col gap-1"},V={key:1,mt2:"",px4:"",italic:"",op35:""},j=k({__name:"StateGroup",props:{state:null,prefix:{default:""}},setup(n){return(i,o)=>{const l=y;return t(),r("div",null,[n.state&&Object.keys(n.state).length>0?(t(),r("div",R,[(t(!0),r($,null,g(n.state,(u,e)=>(t(),p(l,{key:e,state:u,name:e.startsWith(n.prefix)?e.slice(n.prefix.length):e},{actions:a(d=>[S(i.$slots,"actions",C(N(d)))]),_:2},1032,["state","name"]))),128))])):(t(),r("div",V," No data "))])}}}),G={key:0},I=k({__name:"payload",setup(n){const i=B(),o=w(()=>i.value?.nuxt.payload);async function l(u){await i.value?.nuxt.hooks.callHookParallel("app:data:refresh",u)}return(u,e)=>{const d=j,_=F,h=E,b=P,v=y;return s(i)?(t(),r("div",G,[c(_,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[c(d,{state:s(o).state,prefix:"$s"},null,8,["state"])]),_:1}),c(_,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[c(h,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:e[0]||(e[0]=x=>l())},{default:a(()=>[D(" Re-fetch all data ")]),_:1})]),default:a(()=>[c(d,{state:s(o).data},{actions:a(({isOpen:x,name:f})=>[x&&f?(t(),p(b,{key:0,title:`Re-fetch '${f}'`,icon:"carbon-recycle",onClick:K=>l([f])},null,8,["title","onClick"])):m("",!0)]),_:1},8,["state"])]),_:1}),s(o).functions&&Object.keys(s(o).functions).length?(t(),p(_,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions (experimental)"},{default:a(()=>[c(v,{"ml--6":"",state:s(o).functions},null,8,["state"])]),_:1})):m("",!0)])):m("",!0)}}});export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as k}from"./NTip.vue.
|
|
1
|
+
import{_ as k}from"./NTip.vue.eda7f11a.js";import{_ as C}from"./FilepathItem.vue.288f8cb4.js";import{_ as P}from"./Badge.0a290709.js";import{_ as $}from"./DurationDisplay.vue.9816695d.js";import{a as y,A as b,m as v,ae as B,o as e,f as _,h as g,t as N,i as d,u as c,c as i,y as a,b as w,w as h,l as D,v as V,x as F,F as I}from"./entry.bcd35db3.js";import{_ as S}from"./NSectionBlock.e666450f.js";import"./editor.59beec6a.js";import"./context.6844f837.js";import"./NIconTitle.vue.d1747349.js";const T={flex:"~ gap2","items-center":""},W={w8:"","text-right":"","text-sm":"",op25:""},z={key:0,"flex-auto":"","text-right":""},A=y({__name:"PluginItem",props:{plugin:null,index:null},setup(n){const s=n,u=b(),l=v(()=>B(s.plugin.src,u.value?.rootDir||"").path);return(m,p)=>{const o=C,t=P,r=$;return e(),_("div",T,[g("div",W,N(n.index),1),d(o,{filepath:s.plugin.src,subpath:!0},null,8,["filepath"]),g("div",null,[c(l).startsWith("#")?(e(),i(t,{key:0,"bg-rose-400:10":"","text-rose":"",textContent:"virtual"})):c(l).startsWith(".")?a("",!0):(e(),i(t,{key:1,"bg-gray-400:10":"","text-gray":"",textContent:"module"})),n.plugin.mode==="server"?(e(),i(t,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):a("",!0),n.plugin.mode==="client"?(e(),i(t,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):a("",!0)]),n.plugin.metric?.duration!=null?(e(),_("div",z,[d(r,{duration:n.plugin.metric?.duration,factor:10},null,8,["duration"])])):a("",!0)])}}}),E={pt4:""},O=y({__name:"plugins",setup(n){const s=b(),u=w(),l=v(()=>{const m=s.value?.plugins||[],p=u.value.getClientPluginMetrics();return m.map(o=>{const t=typeof o=="string"?{src:o}:o;return{...t,metric:p.find(r=>r.src===t.src||r.src.startsWith(t.src))}})});return(m,p)=>{const o=k,t=A,r=S;return c(s)?(e(),i(r,{key:0,icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${c(s).plugins.length}`},{default:h(()=>[d(o,{n:"green6",icon:"carbon-meter"},{default:h(()=>[D(" Plugins runs before your application at runtime, the time plugins cost will directly affect your application's initial loading time. ")]),_:1}),g("div",E,[(e(!0),_(I,null,V(c(l),(f,x)=>(e(),i(t,{key:f.src,plugin:f,index:x+1,"ml--4":"","border-base":"",py2:"",class:F(x?"border-t":"")},null,8,["plugin","index","class"]))),128))])]),_:1},8,["description"])):a("",!0)}}});export{O as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as u}from"./StateEditor.vue.4b8051fa.js";import{_ as d}from"./NSectionBlock.e666450f.js";import{a as f,b as _,A as m,m as c,u as n,o as g,f as C,i as e,w as i,y as v}from"./entry.bcd35db3.js";import"./NIconButton.vue.c1838c30.js";import"./NIconTitle.vue.d1747349.js";const x={key:0},S=f({__name:"runtime-configs",setup(b){const o=_(),r=m(),l=c(()=>o.value?.nuxt.payload),p=c(()=>{const t={...r.value?.runtimeConfig};return delete t.public,delete t.app,t});return(t,h)=>{const a=u,s=d;return n(o)?(g(),C("div",x,[e(s,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:i(()=>[e(a,{state:n(o).appConfig},null,8,["state"])]),_:1}),e(s,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:i(()=>[e(a,{state:n(l).config?.public},null,8,["state"])]),_:1}),e(s,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:i(()=>[e(a,{state:n(p),readonly:""},null,8,["state"])]),_:1})])):v("",!0)}}});export{S as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{F as te,_ as ne}from"./fuse.esm.69d72a3b.js";import{_ as A}from"./Badge.0a290709.js";import{a as J,A as oe,a4 as ae,m as p,D as x,o as a,f as _,h as d,i as o,w as s,l as f,t as v,u as t,x as $,aH as K,c as g,y as R,F as V,v as G,k as se,H as re,a9 as le,aI as ue,K as ie,ah as ce,ai as de}from"./entry.bcd35db3.js";import{_ as pe}from"./NTextInput.vue.352ba30f.js";import{_ as me}from"./NCodeBlock.vue.b2b8c3ac.js";import{_ as Q}from"./NPanelGrids.ac7957ef.js";import{_ as _e}from"./NLoading.f33a8f5a.js";import{_ as fe}from"./PanelLeftRight.vue.005018fa.js";const ve={"h-full":"","w-full":"",flex:"~ col"},he={flex:"~ col gap-2","flex-none":"",p4:"","navbar-glass":""},ye={flex:"~ gap2"},xe={flex:"~ gap2","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},ge={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},be={"text-right":"","font-mono":""},ke={key:2,px4:"",py2:"",flex:"~ col gap-2",border:"b base"},Ce={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},$e=d("div",null,"Response",-1),Re={key:1,"text-xs":"",op50:""},Te=d("div",{"flex-auto":""},null,-1),je=d("div",{op50:""}," Request finished in ",-1),qe=J({__name:"ServerRouteDetails",props:{route:{type:Object,required:!0}},setup(M){const E=M,C=oe(),l=ae({contentType:"text/plain",data:"",error:void 0}),T=p(()=>l.contentType.includes("application/json")?"json":l.contentType.includes("text/html")?"html":l.contentType.includes("text/css")?"css":l.contentType.includes("text/javascript")?"javascript":l.contentType.includes("text/xml")||l.contentType.includes("application/xml")?"xml":"text"),b=p(()=>T.value==="json"?JSON.stringify(l.data,null,2):l.data),w=x(0),h=x(!1),S=x(!1),L=p(()=>E.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),j=p(()=>L.value?.filter(r=>r.startsWith(":")||r.startsWith("**:"))||[]),k=p(()=>(E.route.method||"GET").toUpperCase()),U=x({}),B=x([{key:"",value:""}]),q=x([{key:"",value:""}]),N=x([{key:"Content-Type",value:"application/json"}]),y=p(()=>q.value.filter(({key:r})=>r).length),H=p(()=>N.value.filter(({key:r})=>r).length),X=p(()=>`http://localhost:${C.value?.devServer.port||3e3}`),P=p(()=>{let r=new URLSearchParams(Object.fromEntries(q.value.filter(({key:e})=>e).map(({key:e,value:n})=>[e,n]))).toString();return r&&(r=`?${r}`),X.value+(L.value?.map(e=>(e.startsWith(":")||e.startsWith("**:"))&&U.value[e]||e).join("")||"")+r});async function W(){S.value=!0,h.value=!0,Object.assign(l,{lang:"text",contentType:"",data:"",content:"",error:void 0});const r=Date.now();try{l.data=await $fetch(P.value,{method:k.value.toUpperCase(),headers:Object.fromEntries(N.value.filter(({key:e,value:n})=>e&&n).map(({key:e,value:n})=>[e,n])),query:Object.fromEntries(q.value.filter(({key:e,value:n})=>e&&n).map(({key:e,value:n})=>[e,n])),body:B.value.reduce((e,n)=>(n.key&&n.value&&(e[n.key]=n.value),e),null),onResponse({response:e}){l.contentType=(e.headers.get("content-type")||"").toString().toLowerCase().trim()},onResponseError({error:e}){console.error(e),l.error=e,l.data=e?.message||e?.toString?.()||"Unknown error"}})}catch{}h.value=!1,w.value=Date.now()-r}const Y=p(()=>{const r=N.value.filter(({key:m,value:u})=>m&&u).map(({key:m,value:u})=>` '${m}': '${u}'`).join(`,
|
|
2
|
+
`),e=B.value.reduce((m,u)=>(u.key&&u.value&&(m[u.key]=u.value),m),{}),n=[];return k.value.toUpperCase()!=="GET"&&n.push(`method: '${k.value.toUpperCase()}'`),r&&n.push(`headers: {
|
|
3
|
+
${r}
|
|
4
|
+
}`),Object.keys(e).length&&n.push(`body: ${JSON.stringify(e,null,2)}`),`await fetch('${P.value}', {
|
|
5
|
+
${n.join(`,
|
|
6
|
+
`).split(`
|
|
7
|
+
`).map(m=>` ${m}`).join(`
|
|
8
|
+
`)}
|
|
9
|
+
})`}),c=x(j.value.length?"params":"query"),O=p(()=>{if(c.value==="query")return q.value;if(c.value==="body")return B.value;if(c.value==="headers")return N.value});return(r,e)=>{const n=se,m=pe,u=re,I=me,Z=Q,ee=_e,z=A;return a(),_("div",ve,[d("div",he,[d("div",ye,[o(n,{class:$(("getRequestMethodClass"in r?r.getRequestMethodClass:t(K))(t(k))),"pointer-events-none":"",tabindex:"-1"},{default:s(()=>[f(v(t(k).toUpperCase()),1)]),_:1},8,["class"]),o(m,{placeholder:t(P),disabled:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"primary xs"},null,8,["placeholder"]),o(n,{n:"primary solid",onClick:W},{default:s(()=>[o(u,{icon:"carbon:send"})]),_:1})])]),d("div",xe,[t(j).length?(a(),g(n,{key:0,class:$(t(c)==="params"?"text-primary n-primary":"border-transparent!"),onClick:e[0]||(e[0]=i=>c.value="params")},{default:s(()=>[o(u,{icon:"i-carbon-text-selection"}),f(" Params ("+v(t(j).length)+") ",1)]),_:1},8,["class"])):R("",!0),o(n,{class:$(t(c)==="query"?"text-primary n-primary":"border-transparent!"),onClick:e[1]||(e[1]=i=>c.value="query")},{default:s(()=>[o(u,{icon:"i-carbon-help"}),f(" Query "+v(t(y)?`(${t(y)})`:""),1)]),_:1},8,["class"]),t(k)!=="GET"?(a(),g(n,{key:1,class:$(t(c)==="body"?"text-primary n-primary":"border-transparent!"),onClick:e[2]||(e[2]=i=>c.value="body")},{default:s(()=>[o(u,{icon:"i-carbon-document"}),f(" Body ")]),_:1},8,["class"])):R("",!0),o(n,{class:$(t(c)==="headers"?"text-primary n-primary":"border-transparent!"),onClick:e[3]||(e[3]=i=>c.value="headers")},{default:s(()=>[o(u,{icon:"i-carbon-html-reference"}),f(" Headers "+v(t(H)?`(${t(H)})`:""),1)]),_:1},8,["class"]),o(n,{class:$(t(c)==="snippet"?"text-primary n-primary":"border-transparent!"),onClick:e[4]||(e[4]=i=>c.value="snippet")},{default:s(()=>[o(u,{icon:"carbon:code"}),f(" Fetch Snippet ")]),_:1},8,["class"])]),t(c)==="params"?(a(),_("div",ge,[(a(!0),_(V,null,G(t(j),i=>(a(),_(V,{key:i},[d("div",be,v(i),1),o(m,{modelValue:t(U)[i],"onUpdate:modelValue":D=>t(U)[i]=D,placeholder:i,"flex-1":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])],64))),128))])):R("",!0),t(c)==="snippet"?(a(),g(I,{key:1,p2:"",border:"b base",code:t(Y),lang:"js"},null,8,["code"])):t(O)?(a(),_("div",ke,[(a(!0),_(V,null,G(t(O),(i,D)=>(a(),_("div",{key:D,flex:"~ gap-2","justify-around":""},[o(m,{modelValue:i.key,"onUpdate:modelValue":F=>i.key=F,placeholder:"Key","flex-1":"","font-mono":"",n:"sm"},null,8,["modelValue","onUpdate:modelValue"]),o(m,{modelValue:i.value,"onUpdate:modelValue":F=>i.value=F,placeholder:"Value","flex-1":"","font-mono":"",n:"sm"},null,8,["modelValue","onUpdate:modelValue"]),o(n,{n:"red",onClick:F=>t(O).splice(D,1)},{default:s(()=>[o(u,{icon:"carbon:delete"})]),_:2},1032,["onClick"])]))),128)),d("div",null,[o(n,{icon:"carbon:add",onClick:e[5]||(e[5]=i=>t(O).push({key:"",value:""}))},{default:s(()=>[f(" Add ")]),_:1})])])):R("",!0),t(S)?t(h)?(a(),g(ee,{key:4,"z-10":"","flex-auto":"","backdrop-blur":""},{default:s(()=>[f(" Fetching... ")]),_:1})):(a(),_(V,{key:5},[d("div",Ce,[$e,t(l).error?(a(),g(z,{key:0,"bg-red-400:10":"","text-red-400":""},{default:s(()=>[f(" Error ")]),_:1})):R("",!0),t(l).contentType?(a(),_("code",Re,v(t(l).contentType),1)):R("",!0),Te,je,o(z,{"bg-green-400:10":"","text-green-400":""},{default:s(()=>[f(v(t(w))+" ms ",1)]),_:1})]),o(I,{"flex-auto":"","overflow-auto":"","py-2":"",code:t(b),lang:t(T)},null,8,["code","lang"])],64)):(a(),g(Z,{key:3},{default:s(()=>[o(n,{n:"primary",onClick:W},{default:s(()=>[o(u,{icon:"carbon:send"}),f(" Send request ")]),_:1})]),_:1}))])}}}),Ne={flex:"~ gap1","text-sm":"",op50:""},Ve={key:0},we={"w-12":"","flex-none":"","text-right":""},Se={"font-mono":"","text-sm":""},Ue=d("div",{"x-divider":""},null,-1),Be=d("span",{op75:""},"Select a route to start",-1),He=J({__name:"server-routes",setup(M){const E=le(),C=ue(),l=p(()=>new te(C.value||[],{keys:["method","route"],shouldSort:!0})),T=p(()=>C.value?.find(h=>h.path===E.query?.path)),b=x(""),w=p(()=>C.value?b.value?l.value.search(b.value).map(h=>h.item):C.value:[]);return(h,S)=>{const L=ne,j=A,k=ce,U=qe,B=de,q=Q,N=fe;return a(),g(N,null,{left:s(()=>[o(L,{search:t(b),"onUpdate:search":S[0]||(S[0]=y=>ie(b)?b.value=y:null),pb2:""},{default:s(()=>[d("div",Ne,[t(b)?(a(),_("span",Ve,v(t(w).length)+" matched · ",1)):R("",!0),d("span",null,v(t(C)?.length)+" routes in total",1)])]),_:1},8,["search"]),(a(!0),_(V,null,G(t(w),y=>(a(),_(V,{key:y.id},[o(k,{flex:"~ gap-2","items-center":"","hover-bg-active":"",px2:"",py1:"",to:{query:{path:y.path}}},{default:s(()=>[d("div",we,[o(j,{class:$(("getRequestMethodClass"in h?h.getRequestMethodClass:t(K))(y.method||"*")),title:"updates available",textContent:v((y.method||"*").toUpperCase())},null,8,["class","textContent"])]),d("span",Se,v(y.route),1)]),_:2},1032,["to"]),Ue],64))),128))]),right:s(()=>[t(T)?(a(),g(U,{key:t(T).path,route:t(T)},null,8,["route"])):(a(),g(q,{key:1},{default:s(()=>[o(B,{px6:"",py2:""},{default:s(()=>[Be]),_:1})]),_:1}))]),_:1})}}});export{He as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./NIconTitle.vue.
|
|
1
|
+
import{_ as S}from"./NIconTitle.vue.d1747349.js";import{_ as C}from"./NSelect.vue.7264b851.js";import{_ as N}from"./NCheckbox.vue.f52d0a98.js";import{_ as U}from"./TabIcon.vue.84eecba6.js";import{_ as $}from"./NSwitch.vue.28747f12.js";import{a as B,aa as D,o as n,f as d,i as a,h as o,w as i,u as l,K as p,F as x,v,U as F,t as g,c as I,x as O}from"./entry.bcd35db3.js";const E={"max-w-100":"",px6:"",py8:""},L={py3:"",flex:"~ col gap-1",border:"b base"},j=o("h3",{mb1:"","text-lg":""}," UI Scale ",-1),z=["value"],H={py3:"",flex:"~ col gap-1",border:"b base"},K=o("h3",{mb1:"","text-lg":""}," Features ",-1),R=o("span",null,"Close DevTools when clicking outside",-1),q=o("span",null,"Show experimental features",-1),A={py3:"",flex:"~ col gap-1"},G=o("h3",{mb1:"","text-lg":""}," Tabs ",-1),Z=B({__name:"settings",setup(J){const{interactionCloseOnOutsideClick:r,showExperimentalFeatures:u,scale:m,hiddenTabs:s}=F(),h=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],y=D();function V(c,t){t?s.value=s.value.filter(_=>_!==c):s.value.push(c)}return(c,t)=>{const _=S,b=C,f=N,T=U,k=$;return n(),d("div",E,[a(_,{class:"text-xl op75",icon:"i-carbon-settings",text:"DevTools Settings"}),o("div",L,[j,a(b,{modelValue:l(m),"onUpdate:modelValue":t[0]||(t[0]=e=>p(m)?m.value=e:null),n:"primary"},{default:i(()=>[(n(),d(x,null,v(h,e=>o("option",{key:e[0],value:e[1]},g(e[0]),9,z)),64))]),_:1},8,["modelValue"])]),o("div",H,[K,a(f,{modelValue:l(r),"onUpdate:modelValue":t[1]||(t[1]=e=>p(r)?r.value=e:null),"n-primary":""},{default:i(()=>[R]),_:1},8,["modelValue"]),a(f,{modelValue:l(u),"onUpdate:modelValue":t[2]||(t[2]=e=>p(u)?u.value=e:null),"n-primary":""},{default:i(()=>[q]),_:1},8,["modelValue"])]),o("div",A,[G,(n(!0),d(x,null,v(l(y).all.value,e=>(n(),I(k,{key:e.name,flex:"~ row-reverse",py1:"","n-primary":"","model-value":!l(s).includes(e.name),"onUpdate:modelValue":w=>V(e.name,w)},{default:i(()=>[o("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"",class:O(l(s).includes(e.name)?"op25":"")},[a(T,{"text-xl":"",icon:e.icon,title:e.title},null,8,["icon","title"]),o("span",null,g(e.title),1)],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))])])}}});export{Z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as re}from"./NIconButton.vue.c1838c30.js";import{_ as le}from"./NSelect.vue.7264b851.js";import{_ as ue}from"./NTextInput.vue.352ba30f.js";import{a as G,o as r,c as m,w as l,L as ie,a3 as H,Z as ce,u as t,ah as J,an as de,X as pe,D as I,m as L,a9 as T,af as E,a7 as me,T as _e,r as fe,e as ye,C as _,ao as F,h as u,i as d,f as p,v as j,t as g,F as b,K as D,l as c,x as P,ay as q,y as z,aC as ve,aD as ge,aJ as he,at as ke,H as xe,k as be,ai as we}from"./entry.bcd35db3.js";import{_ as Ce}from"./NPanelGrids.ac7957ef.js";import{_ as Ke}from"./PanelLeftRight.vue.005018fa.js";import{_ as Ne}from"./FilepathItem.vue.288f8cb4.js";import"./editor.59beec6a.js";import"./context.6844f837.js";const Ve=G({__name:"NLink",props:{to:null,href:null,target:null},setup(w){return(i,v)=>(r(),m(ce(w.href||w.target?"a":t(J)),H(i.$props,{class:"n-link hover:n-link-hover n-transition n-link-base"}),{default:l(()=>[ie(i.$slots,"default")]),_:3},16))}}),$e={class:"h-[48px] flex items-center justify-between gap1 px-3"},Se={class:"w-full text-sm"},Ie=["value"],Le=u("div",{"x-divider":""},null,-1),je={key:0,"h-full":"","of-hidden":"",flex:"~ col"},De={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},qe={class:"flex items-center gap-4"},Ue={key:1},Be=["onKeyup"],Me=u("br",null,null,-1),Ae={key:0,op50:""},Re={key:1},Te=u("code",null,"nitro.storage",-1),Ee=u("br",null,null,-1),Fe={"font-bold":""},Pe=u("br",null,null,-1),ze={"text-sm":""},Ge=u("br",null,null,-1),nt=G({__name:"storage",async setup(w){let i,v;const O=de(),h=pe(),k=I(""),y=I(""),a=L({get(){return T().query?.storage},set(n){h.replace({query:{storage:n}})}}),e=I(),x=L(()=>T().query?.key),{data:C}=([i,v]=E(()=>F("storageMounts",()=>_.getStorageMounts())),i=await i,v(),i),{data:K,refresh:U}=([i,v]=E(async()=>F("storageKeys",async()=>a.value?await _.getStorageKeys(a.value):[])),i=await i,v(),i),W=O.hook("storage:key:update",async(n,s)=>{if(!(!a.value||n.split(":")[0]!==a.value)&&(await U(),x.value===n)){if(s==="remove")return h.replace({query:{storage:a.value}});await V(x.value)}});me(W),_e(a,U),fe(async()=>{if(!x.value){e.value=null;return}V(x.value)}),ye("keydown",n=>{n.key==="s"&&(n.ctrlKey||n.metaKey)&&($(),n.preventDefault())});function N(n){return n.replace(`${a.value}:`,"")}const X=L(()=>K.value?K.value.filter(n=>n.includes(k.value)):[]);async function V(n){const s=await _.getStorageItem(n);e.value={key:n,updatedKey:N(n),editingKey:!1,content:s,updatedContent:s}}async function Z(){if(!y.value||!a.value)return;const n=`${a.value}:${y.value}`;K.value?.includes(n)||await _.setStorageItem(n,""),h.replace({query:{storage:a.value,key:n}}),y.value=""}async function $(){e.value&&(await _.setStorageItem(e.value.key,e.value.updatedContent),await V(e.value.key))}async function Q(){!e.value||!a.value||(await _.removeStorageItem(e.value.key),e.value=null)}async function Y(){if(!e.value||!a.value)return;const n=`${a.value}:${e.value.updatedKey}`;await _.setStorageItem(n,e.value.updatedContent),await _.removeStorageItem(e.value.key),h.replace({query:{storage:a.value,key:n}})}return(n,s)=>{const ee=re,te=le,S=ue,ne=J,oe=xe,B=be,M=Ve,A=we,R=Ce,ae=Ke,se=Ne;return t(a)?(r(),m(ae,{key:0,"storage-key":"tab-storage"},{left:l(()=>[u("div",$e,[d(ee,{icon:"carbon-chevron-left","ml--1":"",onClick:s[0]||(s[0]=o=>a.value="")}),u("div",Se,[d(te,{modelValue:t(a),"onUpdate:modelValue":s[1]||(s[1]=o=>D(a)?a.value=o:null),n:"primary",icon:"carbon-data-base"},{default:l(()=>[(r(!0),p(b,null,j(t(C),(o,f)=>(r(),p("option",{key:f,value:f},g(f),9,Ie))),128))]),_:1},8,["modelValue"])])]),d(S,{modelValue:t(k),"onUpdate:modelValue":s[2]||(s[2]=o=>D(k)?k.value=o:null),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(r(!0),p(b,null,j(t(X),o=>(r(),p(b,{key:o},[d(ne,{block:"",truncate:"",px2:"",py1:"","font-mono":"","text-sm":"",to:{query:{key:o,storage:t(a)}},class:P(o===t(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:l(()=>[c(g(N(o)),1)]),_:2},1032,["to","class"]),Le],64))),128)),d(S,{modelValue:t(y),"onUpdate:modelValue":s[3]||(s[3]=o=>D(y)?y.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:q(Z,["enter"])},null,8,["modelValue","onKeyup"])]),right:l(()=>[t(e)?.key?(r(),p("div",je,[u("div",De,[u("div",qe,[t(e).editingKey?(r(),m(S,{key:0,modelValue:t(e).updatedKey,"onUpdate:modelValue":s[4]||(s[4]=o=>t(e).updatedKey=o),onKeyup:q(Y,["enter"])},null,8,["modelValue","onKeyup"])):(r(),p("code",Ue,[c(g(N(t(e).key))+" ",1),d(oe,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:s[5]||(s[5]=o=>t(e).editingKey=!0)})])),t(e).editingKey?z("",!0):(r(),m(B,{key:2,n:"green xs",disabled:t(e).content===t(e).updatedContent,class:P({"border-green":t(e).content!==t(e).updatedContent}),onClick:$},{default:l(()=>[c(" Save ")]),_:1},8,["disabled","class"]))]),u("div",null,[d(B,{n:"red xs",onClick:Q},{default:l(()=>[c(" Delete ")]),_:1})])]),typeof t(e).content=="object"?(r(),m(t(ve),H({key:0,modelValue:t(e).updatedContent,"onUpdate:modelValue":s[6]||(s[6]=o=>t(e).updatedContent=o),class:[[n.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},n.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):ge((r(),p("textarea",{key:1,"onUpdate:modelValue":s[7]||(s[7]=o=>t(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 font-mono text-sm outline-none",onKeyup:q(ke($,["ctrl"]),["enter"])},null,40,Be)),[[he,t(e).updatedContent]])])):(r(),m(R,{key:1},{default:l(()=>[d(A,{px6:"",py4:""},{default:l(()=>[c(" Select one key to start."),Me,c("Learn more about "),d(M,{href:"https://nitro.unjs.io/guide/introduction/storage",n:"orange",target:"_blank"},{default:l(()=>[c(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(r(),m(R,{key:1,"card-class":"flex flex-col gap-2 items-center text-center p6"},{default:l(()=>[Object.keys(t(C)).length?(r(),p("p",Ae," Select one storage to start: ")):(r(),p("p",Re,[c(" No custom storage defined in "),Te,c("."),Ee,c(" Learn more about "),d(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:l(()=>[c(" Nitro storage ")]),_:1})])),(r(!0),p(b,null,j(t(C),(o,f)=>(r(),m(A,{key:f,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:He=>a.value=f},{default:l(()=>[u("span",Fe,g(f),1),Pe,u("span",ze,g(o.driver)+" driver",1),Ge,o.base?(r(),m(se,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):z("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}});export{nt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as T,D as b,
|
|
1
|
+
import{a as T,D as b,an as $,R as A,aL as R,aM as B,e as E,C as f,o,f as _,h as c,i as V,u as e,c as m,y,t as x,F as C,aN as I,a9 as F,X as L,m as M,r as q,v as D,l as h,w as z,x as w,at as U,H as j,ah as H}from"./entry.bcd35db3.js";import{_ as g}from"./NIconButton.vue.c1838c30.js";const S={border:"t base",flex:"~ gap-2","items-center":"",p2:""},X={"text-sm":"",op50:""},G=T({__name:"TerminalView",props:{id:null},setup(p){const r=p,d=b(),v=$(),n=b();let s;A(async()=>{s=new R.Terminal({convertEol:!0,cols:80,screenReaderMode:!0});const t=new B.FitAddon;s.loadAddon(t),s.open(d.value),t.fit(),E(window,"resize",()=>{t.fit()}),n.value=await f.getTerminalDetail(r.id),n.value?.buffer&&s.write(n.value.buffer),v.hook("devtools:terminal:data",({id:i,data:l})=>{i===r.id&&s.write(l)})});function u(){f.runTerminalAction(r.id,"clear"),s?.clear()}return(t,i)=>{const l=g;return o(),_(C,null,[c("div",{ref_key:"container",ref:d,"h-full":"","w-full":"","of-auto":"","bg-black":""},null,512),c("div",S,[V(l,{title:"Clear",icon:"i-carbon-clean",onClick:i[0]||(i[0]=k=>u())}),e(n)?.restartable?(o(),m(l,{key:0,title:"Restart",icon:"carbon-renew",onClick:i[1]||(i[1]=k=>("rpc"in t?t.rpc:e(f)).runTerminalAction(p.id,"restart"))})):y("",!0),e(n)?.terminatable?(o(),m(l,{key:1,title:"Terminate",icon:"carbon-delete",onClick:i[2]||(i[2]=k=>("rpc"in t?t.rpc:e(f)).runTerminalAction(p.id,"terminate"))})):y("",!0),c("span",X,x(e(n)?.description),1)])],64)}}}),J={key:0,"h-full":"","w-full":"","of-hidden":"",grid:"~ rows-[max-content_1fr_max-content]"},K={flex:"~",border:"b base","flex-1":"","items-center":"","navbar-glass":""},O={key:1,p10:""},P={key:1,"h-full":"",flex:"","items-center":"","justify-center":""},Q=c("em",{op50:""},"No terminal attached",-1),W=[Q],ne=T({__name:"terminals",setup(p){const r=I(),d=F(),v=L(),n=M(()=>{const u=d.query.id;return r.value?.find(t=>t.id===u)});function s(u){f.runTerminalAction(u,"remove"),v.replace("/modules/terminals")}return q(()=>{!d.query.id&&r.value?.length&&v.replace(`/modules/terminals?id=${encodeURIComponent(r.value[0].id)}`)}),(u,t)=>{const i=j,l=g,k=H,N=G;return e(r)?.length?(o(),_("div",J,[c("div",K,[(o(!0),_(C,null,D(e(r),a=>(o(),m(k,{key:a.id,border:"r base",flex:"~ gap-2","items-center":"",px3:"",py2:"",class:w(a.id===e(n)?.id?"bg-active":""),to:`/modules/terminals?id=${encodeURIComponent(a.id)}`},{default:z(()=>[a.icon?(o(),m(i,{key:0,icon:a.icon},null,8,["icon"])):y("",!0),c("span",{class:w(a.id===e(n)?.id?"":"op50")},x(a.name)+x(a.isTerminated?" (terminated)":""),3),a.isTerminated?(o(),m(l,{key:1,icon:"carbon-close","mx--2":"",onClick:U(Y=>s(a.id),["stop"])},null,8,["onClick"])):y("",!0)]),_:2},1032,["class","to"]))),128))]),e(n)?(o(),m(N,{id:e(n).id,key:e(n).id},null,8,["id"])):(o(),_("div",O,[h(" Terminal "),c("code",null,x(e(d).query.id),1),h(" not found ")]))])):(o(),_("div",P,W))}}});export{ne as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$ as be}from"./entry.bcd35db3.js";const K=Object.freeze({left:0,top:0,width:16,height:16}),H=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ue=Object.freeze({...K,...H}),ve=Object.freeze({...ue,body:"",hidden:!1}),Se=Object.freeze({width:null,height:null}),fe=Object.freeze({...Se,...H});function xe(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(r.rotate=i),r}function Z(t,e){const r=xe(t,e);for(const i in ve)i in H?i in t&&!(i in r)&&(r[i]=H[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}function ke(t,e){const r=t.icons,i=t.aliases||Object.create(null),n=Object.create(null);function o(a){if(r[a])return n[a]=[];if(!(a in n)){n[a]=null;const c=i[a]&&i[a].parent,u=c&&o(c);u&&(n[a]=[c].concat(u))}return n[a]}return(e||Object.keys(r).concat(Object.keys(i))).forEach(o),n}function J(t,e,r){const i=t.icons,n=t.aliases||Object.create(null);let o={};function a(c){o=Z(i[c]||n[c],o)}return a(e),r.forEach(a),Z(t,o)}function $e(t,e){if(t.icons[e])return J(t,e,[]);const r=ke(t,[e])[e];return r?J(t,e,r):null}({...K});Object.keys(K).concat(["provider"]);const Ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ce=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Q(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;const i=t.split(Ae);if(i===null||!i.length)return t;const n=[];let o=i.shift(),a=Ce.test(o);for(;;){if(a){const c=parseFloat(o);isNaN(c)?n.push(o):n.push(Math.ceil(c*e*r)/r)}else n.push(o);if(o=i.shift(),o===void 0)return n.join("");a=!a}}const X=t=>t==="unset"||t==="undefined"||t==="none";function Oe(t,e){const r={...ue,...t},i={...fe,...e},n={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,i].forEach($=>{const g=[],m=$.hFlip,k=$.vFlip;let b=$.rotate;m?k?b+=2:(g.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),g.push("scale(-1 1)"),n.top=n.left=0):k&&(g.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),g.push("scale(1 -1)"),n.top=n.left=0);let p;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:p=n.height/2+n.top,g.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:g.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:p=n.width/2+n.left,g.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}b%2===1&&(n.left!==n.top&&(p=n.left,n.left=n.top,n.top=p),n.width!==n.height&&(p=n.width,n.width=n.height,n.height=p)),g.length&&(o='<g transform="'+g.join(" ")+'">'+o+"</g>")});const a=i.width,c=i.height,u=n.width,f=n.height;let l,d;a===null?(d=c===null?"1em":c==="auto"?f:c,l=Q(d,u/f)):(l=a==="auto"?u:a,d=c===null?Q(l,f/u):c==="auto"?f:c);const w={},S=($,g)=>{X(g)||(w[$]=g.toString())};return S("width",l),S("height",d),w.viewBox=n.left.toString()+" "+n.top.toString()+" "+u.toString()+" "+f.toString(),{attributes:w,body:o}}""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);function je(t){return t.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').trim()}function s(t,e){const r="rgb",i=e[0],n=e.length;n>1&&e[1],n>2&&e[2],n>3&&e[3]}s("silver",[192]);s("gray",[128]);s("white",[255]);s("maroon",[128,0,0]);s("red",[255,0,0]);s("purple",[128,0]);s("fuchsia",[255,0]);s("green",[0,128]);s("lime",[0,255]);s("olive",[128,128,0]);s("yellow",[255,255,0]);s("navy",[0,0,128]);s("blue",[0,0,255]);s("teal",[0,128,128]);s("aqua",[0,255,255]);s("aliceblue",[240,248,255]);s("antiquewhite",[250,235,215]);s("aqua",[0,255,255]);s("aquamarine",[127,255,212]);s("azure",[240,255,255]);s("beige",[245,245,220]);s("bisque",[255,228,196]);s("black",[0]);s("blanchedalmond",[255,235,205]);s("blue",[0,0,255]);s("blueviolet",[138,43,226]);s("brown",[165,42,42]);s("burlywood",[222,184,135]);s("cadetblue",[95,158,160]);s("chartreuse",[127,255,0]);s("chocolate",[210,105,30]);s("coral",[255,127,80]);s("cornflowerblue",[100,149,237]);s("cornsilk",[255,248,220]);s("crimson",[220,20,60]);s("cyan",[0,255,255]);s("darkblue",[0,0,139]);s("darkcyan",[0,139,139]);s("darkgoldenrod",[184,134,11]);s("darkgray",[169]);s("darkgreen",[0,100]);s("darkgrey",[169]);s("darkkhaki",[189,183,107]);s("darkmagenta",[139,0]);s("darkolivegreen",[85,107,47]);s("darkorange",[255,140,0]);s("darkorchid",[153,50,204]);s("darkred",[139,0,0]);s("darksalmon",[233,150,122]);s("darkseagreen",[143,188]);s("darkslateblue",[72,61,139]);s("darkslategray",[47,79,79]);s("darkslategrey",[47,79,79]);s("darkturquoise",[0,206,209]);s("darkviolet",[148,0,211]);s("deeppink",[255,20,147]);s("deepskyblue",[0,191,255]);s("dimgray",[105]);s("dimgrey",[105]);s("dodgerblue",[30,144,255]);s("firebrick",[178,34,34]);s("floralwhite",[255,250,240]);s("forestgreen",[34,139]);s("fuchsia",[255,0]);s("gainsboro",[220]);s("ghostwhite",[248,248,255]);s("gold",[255,215,0]);s("goldenrod",[218,165,32]);s("gray",[128]);s("green",[0,128]);s("greenyellow",[173,255,47]);s("grey",[128]);s("honeydew",[240,255]);s("hotpink",[255,105,180]);s("indianred",[205,92,92]);s("indigo",[75,0,130]);s("ivory",[255,255,240]);s("khaki",[240,230,140]);s("lavender",[230,230,250]);s("lavenderblush",[255,240,245]);s("lawngreen",[124,252,0]);s("lemonchiffon",[255,250,205]);s("lightblue",[173,216,230]);s("lightcoral",[240,128,128]);s("lightcyan",[224,255,255]);s("lightgoldenrodyellow",[250,250,210]);s("lightgray",[211]);s("lightgreen",[144,238]);s("lightgrey",[211]);s("lightpink",[255,182,193]);s("lightsalmon",[255,160,122]);s("lightseagreen",[32,178,170]);s("lightskyblue",[135,206,250]);s("lightslategray",[119,136,153]);s("lightslategrey",[119,136,153]);s("lightsteelblue",[176,196,222]);s("lightyellow",[255,255,224]);s("lime",[0,255]);s("limegreen",[50,205]);s("linen",[250,240,230]);s("magenta",[255,0]);s("maroon",[128,0,0]);s("mediumaquamarine",[102,205,170]);s("mediumblue",[0,0,205]);s("mediumorchid",[186,85,211]);s("mediumpurple",[147,112,219]);s("mediumseagreen",[60,179,113]);s("mediumslateblue",[123,104,238]);s("mediumspringgreen",[0,250,154]);s("mediumturquoise",[72,209,204]);s("mediumvioletred",[199,21,133]);s("midnightblue",[25,25,112]);s("mintcream",[245,255,250]);s("mistyrose",[255,228,225]);s("moccasin",[255,228,181]);s("navajowhite",[255,222,173]);s("navy",[0,0,128]);s("oldlace",[253,245,230]);s("olive",[128,128,0]);s("olivedrab",[107,142,35]);s("orange",[255,165,0]);s("orangered",[255,69,0]);s("orchid",[218,112,214]);s("palegoldenrod",[238,232,170]);s("palegreen",[152,251]);s("paleturquoise",[175,238,238]);s("palevioletred",[219,112,147]);s("papayawhip",[255,239,213]);s("peachpuff",[255,218,185]);s("peru",[205,133,63]);s("pink",[255,192,203]);s("plum",[221,160]);s("powderblue",[176,224,230]);s("purple",[128,0]);s("rebeccapurple",[102,51,153]);s("red",[255,0,0]);s("rosybrown",[188,143,143]);s("royalblue",[65,105,225]);s("saddlebrown",[139,69,19]);s("salmon",[250,128,114]);s("sandybrown",[244,164,96]);s("seagreen",[46,139,87]);s("seashell",[255,245,238]);s("sienna",[160,82,45]);s("silver",[192]);s("skyblue",[135,206,235]);s("slateblue",[106,90,205]);s("slategray",[112,128,144]);s("slategrey",[112,128,144]);s("snow",[255,250,250]);s("springgreen",[0,255,127]);s("steelblue",[70,130,180]);s("tan",[210,180,140]);s("teal",[0,128,128]);s("thistle",[216,191]);s("tomato",[255,99,71]);s("turquoise",[64,224,208]);s("violet",[238,130]);s("wheat",[245,222,179]);s("white",[255]);s("whitesmoke",[245]);s("yellow",[255,255,0]);s("yellowgreen",[154,205,50]);const Ee=/\swidth\s*=\s*["'](\w+)["']/,Me=/\sheight\s*=\s*["'](\w+)["']/,N=/<svg\s+/;function _e(t,e,r){const i=t.slice(0,t.indexOf(">")),n=(o,a)=>{const c=a.exec(i),u=c!=null,f=e[o];return!f&&!X(f)&&(typeof r=="number"?r>0&&(e[o]=`${r}em`):c&&(e[o]=c[1])),u};return[n("width",Ee),n("height",Me)]}async function he(t,e,r,i,n,o){const{scale:a,addXmlNs:c=!1}=i??{},{additionalProps:u={},iconCustomizer:f}=i?.customizations??{},l=await n?.()??{};await f?.(e,r,l),Object.keys(u).forEach(g=>{const m=u[g];m!=null&&(l[g]=m)}),o?.(l);const[d,w]=_e(t,l,a);c&&(!t.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const S=Object.keys(l).map(g=>g==="width"&&d||g==="height"&&w?null:`${g}="${l[g]}"`).filter(g=>g!=null);if(S.length&&(t=t.replace(N,`<svg ${S.join(" ")} `)),i){const{defaultStyle:g,defaultClass:m}=i;m&&!t.includes("class=")&&(t=t.replace(N,`<svg class="${m}" `)),g&&!t.includes("style=")&&(t=t.replace(N,`<svg style="${g}" `))}const $=i?.usedProps;return $&&(Object.keys(u).forEach(g=>{const m=l[g];m!=null&&($[g]=m)}),typeof l.width<"u"&&l.width!==null&&($.width=l.width),typeof l.height<"u"&&l.height!==null&&($.height=l.height)),t}async function ee(t,e,r,i){let n;if(typeof t=="function")n=await t(r);else{const o=t[r];n=typeof o=="function"?await o():o}if(n){const o=n.indexOf("<svg");o>0&&(n=n.slice(o));const{transform:a}=i?.customizations??{};return n=typeof a=="function"?await a(n,e,r):n,n.startsWith("<svg")?await he(i?.customizations?.trimCustomSvg===!0?je(n):n,e,r,i,void 0):(console.warn(`Custom icon "${r}" in "${e}" is not a valid SVG`),n)}}async function de(t,e,r,i){let n;const{customize:o}=i?.customizations??{};for(const a of r)if(n=$e(t,a),n){let c={...fe};typeof o=="function"&&(c=o(c));const{attributes:{width:u,height:f,...l},body:d}=Oe(n,c),w=i?.scale;return await he(`<svg >${d}</svg>`,e,a,i,()=>({...l}),S=>{const $=(g,m)=>{const k=S[g];let b;if(!X(k)){if(k)return;typeof w=="number"?w&&(b=`${w}em`):b=m}b?S[g]=b:delete S[g]};$("width",u),$("height",f)})}}const pe=async(t,e,r)=>{const i=r?.customCollections?.[t];if(i)if(typeof i=="function"){const n=await i(e);if(n){if(typeof n=="string")return await ee(()=>n,t,e,r);if("icons"in n){const o=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await de(n,t,o,r)}}}else return await ee(i,t,e,r)};var ze=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","cryptocurrency-color","cryptocurrency","dashicons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline","subway","svg-spinners","system-uicons","tabler","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];function Le(t){const e=new Map;function r(i){if(ze.includes(i))return e.has(i)||e.set(i,be(`${t}@iconify-json/${i}/icons.json`)),e.get(i)}return async(i,n,o)=>{let a=await pe(i,n,o);if(a)return a;const c=await r(i);if(c){const u=[n,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),n.replace(/([a-z])(\d+)/g,"$1-$2")];a=await de(c,i,u,o)}return a}}function Te(t){const e=t.length;let r=-1,i,n="";const o=t.charCodeAt(0);for(;++r<e;){if(i=t.charCodeAt(r),i===0){n+="�";continue}if(i===44){n+="\\,";continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){n+=`\\${i.toString(16)} `;continue}if(r===0&&e===1&&i===45){n+=`\\${t.charAt(r)}`;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}const q=Te;function z(t=[]){return Array.isArray(t)?t:[t]}function R(t){return Array.from(new Set(t))}function j(t){return typeof t=="string"}function F(t){return j(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ie(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>F(e)):[t]:[F(t)]}function Pe(t){return t.filter(([e,r],i)=>{if(e.startsWith("$$"))return!1;for(let n=i-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function G(t){return t==null?"":Pe(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function B(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ge(t,e,r=!1){const i=t,n=e;if(Array.isArray(n))return r&&Array.isArray(n)?[...i,...n]:[...n];const o={...i};return B(i)&&B(n)&&Object.keys(n).forEach(a=>{B(i[a])&&B(n[a])||Array.isArray(i[a])&&Array.isArray(n[a])?o[a]=ge(i[a],n[a],r):Object.assign(o,{[a]:n[a]})}),o}function U(t){let e,r,i;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(i=t[e])&&typeof i=="object"?U(i):i;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:U(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(i=t[e])&&typeof i=="object"?U(i):i;return r}return t}function Re(t){return j(t[0])}function Fe(t){return j(t[0])}const te="$$shortcut-no-merge";function Ve(t){return typeof t=="function"?{match:t}:t}function re(t){return t.length===3}function Be(t){return t!=null}function De(){}class Ue{constructor(){this._map=new Map}get(e,r){const i=this._map.get(e);if(i)return i.get(r)}getFallback(e,r,i){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,i),n.get(r)}set(e,r,i){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,i),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,i])=>Array.from(i.entries()).map(([n,o])=>e(o,r,n)))}}const D={};function He(t=["-",":"]){const e=t.join("|");return D[e]||(D[e]=new RegExp(`((?:[!@\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),D[e].lastIndex=0,D[e]}function Ne(t,e=["-",":"],r=5){const i=He(e);let n=!1,o=t.toString();const a=new Set;do{const c=o;o=o.replace(i,(u,f,l,d)=>e.includes(l)?(a.add(f+l),d.split(/\s/g).filter(Boolean).map(w=>w==="~"?f:w.replace(/^(!?)(.*)/,`$1${f}${l}$2`)).join(" ")):u),n=o!==c,r-=1}while(n&&r);return{prefixes:Array.from(a),expanded:o,hasChanged:n}}function qe(t,e=["-",":"],r=5){const{expanded:i}=Ne(t.toString(),e,r);return typeof t=="string"?i:t.length()?t.overwrite(0,t.length(),i):t}const ne=new Set;function me(t){ne.has(t)||(console.warn("[unocss]",t),ne.add(t))}const Ge=/[\\:]?[\s'"`;{}]+/g;function We(t){return[...new Set(t.split(Ge))]}const Ye={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return We(t)}};function Ke(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}const W="default",Y="preflights",Xe="shortcuts",Ze={[Y]:-100,[Xe]:-10,[W]:0};function ye(t){return z(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ie="_uno_resolved";function Je(t){if(ie in t)return t;t={...t},Object.defineProperty(t,ie,{value:!0,enumerable:!1});const e=t.shortcuts?ye(t.shortcuts):void 0;if(t.shortcuts=e,t.prefix||t.layer){const r=i=>{i[2]||(i[2]={});const n=i[2];n.prefix==null&&t.prefix&&(n.prefix=z(t.prefix)),n.layer==null&&t.layer&&(n.layer=t.layer)};e?.forEach(r),t.rules?.forEach(r)}return t}function we(t){const e=Je(t);if(!e.presets)return[e];const r=(e.presets||[]).flatMap(z).flatMap(we);return[e,...r]}function se(t={},e={}){const r=Object.assign({},e,t),i=R((r.presets||[]).flatMap(z).flatMap(we)),n=[...i.filter(h=>h.enforce==="pre"),...i.filter(h=>!h.enforce),...i.filter(h=>h.enforce==="post")],o=[...n,r],a=[...o].reverse(),c=Object.assign({},Ze,...o.map(h=>h.layers));function u(h){return R(o.flatMap(v=>z(v[h]||[])))}const f=u("extractors");let l=a.find(h=>h.extractorDefault!==void 0)?.extractorDefault;l===void 0&&(l=Ye),l&&!f.includes(l)&&f.unshift(l),f.sort((h,v)=>(h.order||0)-(v.order||0));const d=u("rules"),w={},S=d.length,$=d.map((h,v)=>{if(Re(h)){z(h[2]?.prefix||"").forEach(O=>{w[O+h[0]]=[v,h[1],h[2],h]});return}return[v,...h]}).filter(Boolean).reverse();let g=o.map(h=>h.theme?U(h.theme):{}).reduce((h,v)=>ge(h,v),{});const m=u("extendTheme");for(const h of m)g=h(g)||g;const k={templates:R(o.flatMap(h=>z(h.autocomplete?.templates))),extractors:o.flatMap(h=>z(h.autocomplete?.extractors)).sort((h,v)=>(h.order||0)-(v.order||0))};let b=u("separators");b.length||(b=[":","-"]);const p={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:h=>h,...r,presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:c,theme:g,rulesSize:S,rulesDynamic:$,rulesStaticMap:w,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:k,variants:u("variants").map(Ve).sort((h,v)=>(h.order||0)-(v.order||0)),shortcuts:ye(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:b};for(const h of o)h?.configResolved?.(p);return p}const Qe="0.51.4";class et{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=Qe,this._cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.events=Ke(),this.config=se(e,r),this.events.emit("config",this.config)}setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=se(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,i=new Set){const n={original:e,code:e,id:r,extracted:i};for(const o of this.config.extractors){const a=await o.extract?.(n);if(a)for(const c of a)i.add(c)}return i}makeContext(e,r){const i={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(i,...n),variantMatch:r};return i}async parseToken(e,r){if(this.blocked.has(e))return;const i=`${e}${r?` ${r}`:""}`;if(this._cache.has(i))return this._cache.get(i);let n=e;for(const f of this.config.preprocess)n=f(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(i,null);return}const o=await this.matchVariants(e,n);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(i,null);return}const a=this.makeContext(e,[r||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);const c=await this.expandShortcut(a.currentSelector,a),u=c?await this.stringifyShortcuts(a.variantMatch,a,c[0],c[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(Be);if(u?.length)return this._cache.set(i,u),u;this._cache.set(i,null)}async generate(e,r={}){const{id:i,scope:n,preflights:o=!0,safelist:a=!0,minify:c=!1}=r,u=j(e)?await this.applyExtractors(e,i):Array.isArray(e)?new Set(e):e;a&&this.config.safelist.forEach(p=>u.add(p));const f=c?"":`
|
|
2
|
+
`,l=new Set([W]),d=new Set,w=new Map;let S={};const $=Array.from(u).map(async p=>{if(d.has(p))return;const h=await this.parseToken(p);if(h!=null){d.add(p);for(const v of h){const C=v[3]||"",O=v[4]?.layer;w.has(C)||w.set(C,[]),w.get(C).push(v),O&&l.add(O)}}});await Promise.all($),await(async()=>{if(!o)return;const p={generator:this,theme:this.config.theme},h=new Set([]);this.config.preflights.forEach(({layer:v=Y})=>{l.add(v),h.add(v)}),S=Object.fromEntries(await Promise.all(Array.from(h).map(async v=>{const O=(await Promise.all(this.config.preflights.filter(M=>(M.layer||Y)===v).map(async M=>await M.getCSS(p)))).filter(Boolean).join(f);return[v,O]})))})();const g=this.config.sortLayers(Array.from(l).sort((p,h)=>(this.config.layers[p]??0)-(this.config.layers[h]??0)||p.localeCompare(h))),m={},k=p=>{if(m[p])return m[p];let h=Array.from(w).sort((C,O)=>(this.parentOrders.get(C[0])??0)-(this.parentOrders.get(O[0])??0)||C[0]?.localeCompare(O[0]||"")||0).map(([C,O])=>{const M=O.length,P=O.filter(y=>(y[4]?.layer||W)===p).sort((y,A)=>y[0]-A[0]||(y[4]?.sort||0)-(A[4]?.sort||0)||y[5]?.currentSelector?.localeCompare(A[5]?.currentSelector??"")||y[1]?.localeCompare(A[1]||"")||y[2]?.localeCompare(A[2]||"")||0).map(([,y,A,,E,,_])=>[[[(y&&it(y,n))??"",E?.sort??0]],A,!!(_??E?.noMerge)]);if(!P.length)return;const V=P.reverse().map(([y,A,E],_)=>{if(!E&&this.config.mergeSelectors)for(let I=_+1;I<M;I++){const L=P[I];if(L&&!L[2]&&(y&&L[0]||y==null&&L[0]==null)&&L[1]===A)return y&&L[0]&&L[0].push(...y),null}const T=y?R(y.sort((I,L)=>I[1]-L[1]||I[0]?.localeCompare(L[0]||"")||0).map(I=>I[0]).filter(Boolean)):[];return T.length?`${T.join(`,${f}`)}{${A}}`:A}).filter(Boolean).reverse().join(f);if(!C)return V;const x=C.split(" $$ ");return`${x.join("{")}{${f}${V}${f}}${x.map(y=>"").join("}")}`}).filter(Boolean).join(f);o&&(h=[S[p],h].filter(Boolean).join(f));const v=c?"":`/* layer: ${p} */${f}`;return m[p]=h?v+h:""},b=(p=g,h)=>p.filter(v=>!h?.includes(v)).map(v=>k(v)||"").filter(Boolean).join(f);return{get css(){return b()},layers:g,matched:d,getLayers:b,getLayer:k}}async matchVariants(e,r){const i=new Set,n=[];let o=r||e,a=!1;const c={rawSelector:e,theme:this.config.theme,generator:this};for(;;){a=!1;for(const u of this.config.variants){if(!u.multiPass&&i.has(u))continue;let f=await u.match(o,c);if(f){j(f)&&(f={matcher:f}),o=f.matcher,n.unshift(f),i.add(u),a=!0;break}}if(!a)break;if(n.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,o,n,i]}applyVariants(e,r=e[4],i=e[1]){const o=r.slice().sort((f,l)=>(f.order||0)-(l.order||0)).reduceRight((f,l)=>d=>{const w=l.body?.(d.entries)||d.entries,S=Array.isArray(l.parent)?l.parent:[l.parent,void 0];return(l.handle??ot)({...d,entries:w,selector:l.selector?.(d.selector,w)||d.selector,parent:S[0]||d.parent,parentOrder:S[1]||d.parentOrder,layer:l.layer||d.layer,sort:l.sort||d.sort},f)},f=>f)({prefix:"",selector:st(i),pseudo:"",entries:e[2]}),{parent:a,parentOrder:c}=o;a!=null&&c!=null&&this.parentOrders.set(a,c);const u={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:a,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(const f of this.config.postprocess)f(u);return u}constructCustomCSS(e,r,i){const n=F(r);if(j(n))return n;const{selector:o,entries:a,parent:c}=this.applyVariants([0,i||e.rawSelector,n,void 0,e.variantHandlers]),u=`${o}{${G(a)}}`;return c?`${c}{${u}}`:u}async parseUtil(e,r,i=!1,n){const[o,a,c]=j(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);const u=this.config.rulesStaticMap[a];if(u&&u[1]&&(i||!u[2]?.internal)){this.config.details&&r.rules.push(u[3]);const l=u[0],d=F(u[1]),w=u[2];return j(d)?[[l,d,w]]:[[l,o,d,w,c]]}r.variantHandlers=c;const{rulesDynamic:f}=this.config;for(const[l,d,w,S]of f){if(S?.internal&&!i)continue;let $=a;if(S?.prefix){const b=z(S.prefix);if(n){const p=z(n);if(!b.some(h=>p.includes(h)))continue}else{const p=b.find(h=>a.startsWith(h));if(p==null)continue;$=a.slice(p.length)}}const g=$.match(d);if(!g)continue;const m=await w(g,r);if(!m)continue;this.config.details&&r.rules.push([d,w,S]);const k=Ie(m).filter(b=>b.length);if(k.length)return k.map(b=>j(b)?[l,b,S]:[l,o,b,S,c])}}stringifyUtil(e,r){if(!e)return;if(re(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];const{selector:i,entries:n,parent:o,layer:a,sort:c,noMerge:u}=this.applyVariants(e),f=G(n);if(!f)return;const{layer:l,sort:d,...w}=e[3]??{},S={...w,layer:a??l,sort:c??d};return[e[0],i,f,o,S,this.config.details?r:void 0,u]}async expandShortcut(e,r,i=5){if(i===0)return;const n=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:De;let o,a;for(const c of this.config.shortcuts){let u=e;if(c[2]?.prefix){const l=z(c[2].prefix).find(d=>e.startsWith(d));if(l==null)continue;u=e.slice(l.length)}if(Fe(c)){if(c[0]===u){o=o||c[2],a=c[1],n(c);break}}else{const f=u.match(c[0]);if(f&&(a=c[1](f,r)),a){o=o||c[2],n(c);break}}}if(j(a)&&(a=qe(a.trim()).split(/\s+/g)),!a){const[c,u]=j(e)?await this.matchVariants(e):e;if(c!==u){const f=await this.expandShortcut(u,r,i-1);f&&(a=f[0].map(l=>j(l)?c.replace(u,l):l))}}if(a)return[(await Promise.all(a.map(async c=>(j(c)?(await this.expandShortcut(c,r,i-1))?.[0]:void 0)||[c]))).flat(1).filter(Boolean),o]}async stringifyShortcuts(e,r,i,n={layer:this.config.shortcutsLayer}){const o=new Ue,a=(await Promise.all(R(i).map(async l=>{const d=j(l)?await this.parseUtil(l,r,!0,n.prefix):[[1/0,"{inline}",F(l),void 0,[]]];return d||me(`unmatched utility "${l}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((l,d)=>l[0]-d[0]),[c,,u]=e,f=[];for(const l of a){if(re(l)){f.push([l[0],void 0,l[1],void 0,l[2],r,void 0]);continue}const{selector:d,entries:w,parent:S,sort:$,noMerge:g}=this.applyVariants(l,[...l[4],...u],c);o.getFallback(d,S,[[],l[0]])[0].push([w,!!(g??l[3]?.noMerge),$??0])}return f.concat(o.map(([l,d],w,S)=>{const $=(m,k,b)=>{const p=Math.max(...b.map(v=>v[1])),h=b.map(v=>v[0]);return(m?[h.flat(1)]:h).map(v=>{const C=G(v);if(C)return[d,w,C,S,{...n,noMerge:k,sort:p},r,void 0]})};return[[l.filter(([,m])=>m).map(([m,,k])=>[m,k]),!0],[l.filter(([,m])=>!m).map(([m,,k])=>[m,k]),!1]].map(([m,k])=>[...$(!1,k,m.filter(([b])=>b.some(p=>p[0]===te))),...$(!0,k,m.filter(([b])=>b.every(p=>p[0]!==te)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>j(r)?r===e:r.test(e))}}function tt(t,e){return new et(t,e)}const rt=/\s\$\$\s+/g;function nt(t){return t.match(/\s\$\$\s/)}function it(t,e){return nt(t)?t.replace(rt,e?` ${e} `:" "):e?`${e} ${t}`:t}const oe=/^\[(.+?)(~?=)"(.*)"\]$/;function st(t){return oe.test(t)?t.replace(oe,(e,r,i,n)=>`[${q(r)}${i}"${q(n)}"]`):`.${q(t)}`}function ot(t,e){return e(t)}function at(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ct(t){let e=t.startsWith("<svg>")?t.replace("<svg>","<svg >"):t;return!e.includes(" xmlns:xlink=")&&e.includes(" xlink:")&&(e=e.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),e.includes(" xmlns=")||(e=e.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),at(e)}const lt=3;function ut(t){return function(r={}){const{scale:i=1,mode:n="auto",prefix:o="i-",warn:a=!1,collections:c,extraProperties:u={},customizations:f={},autoInstall:l=!1,layer:d="icons",unit:w}=r,S={addXmlNs:!0,scale:i,customCollections:c,autoInstall:l,warn:void 0,customizations:{...f,additionalProps:{...u},trimCustomSvg:!0,async iconCustomizer(g,m,k){await f.iconCustomizer?.(g,m,k),w&&(k.width||(k.width=`${i}${w}`),k.height||(k.height=`${i}${w}`))}}};let $;return{name:"@unocss/preset-icons",enforce:"pre",options:r,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([g,m,k=n])=>{let b="",p="",h;$=$||await t(r);const v={};if(m.includes(":"))[b,p]=m.split(":"),h=await $(b,p,{...S,usedProps:v});else{const O=m.split(/-/g);for(let M=lt;M>=1&&(b=O.slice(0,M).join("-"),p=O.slice(M).join("-"),h=await $(b,p,{...S,usedProps:v}),!h);M--);}if(!h){a&&me(`failed to load icon "${g}"`);return}const C=`url("data:image/svg+xml;utf8,${ct(h)}")`;return k==="auto"&&(k=h.includes("currentColor")?"mask":"bg"),k==="mask"?{"--un-icon":C,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...v}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...v}},{layer:d,prefix:o}]]}}}const ft=ut(async t=>{const{cdn:e}=t;return e?Le(e):pe});function ht(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function ae(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ce(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var le=["Webkit","Moz","ms"];function dt(t){const e={};function r(i){const n=e[i];if(n)return n;let o=ht(i);if(o!=="filter"&&o in t)return e[i]=ce(o);o=ae(o);for(let a=0;a<le.length;a++){const c=`${le[a]}${o}`;if(c in t)return e[i]=ce(ae(c))}return i}return({entries:i})=>i.forEach(n=>{n[0].startsWith("--")||(n[0]=r(n[0]))})}function pt(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function gt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,r=window.document,i=()=>r.documentElement,n=e.__unocss||{},o=Object.assign({},t,n.runtime),a=o.defaults||{},c=o.cloakAttribute??"un-cloak";o.autoPrefix&&(a.postprocess=z(a.postprocess)).unshift(dt(r.createElement("div").style)),o.configResolved?.(n,a);const u=tt(n,a),f=new Map;let l=!0,d=new Set,w,S,$=[];const g=()=>new Promise(x=>{$.push(x),S!=null&&clearTimeout(S),S=setTimeout(()=>b().then(()=>{const y=$;$=[],y.forEach(A=>A())}),0)});function m(x){if(x.nodeType!==1)return;const y=x;y.hasAttribute(c)&&y.removeAttribute(c),y.querySelectorAll(`[${c}]`).forEach(A=>{A.removeAttribute(c)})}function k(x,y){let A=f.get(x);if(!A)if(A=r.createElement("style"),f.set(x,A),y==null)i().prepend(A);else{const E=k(y),_=E.parentNode;_?_.insertBefore(A,E.nextSibling):i().prepend(A)}return A}async function b(){const x=await u.generate(d);return x.layers.reduce((y,A)=>(k(A,y).innerHTML=x.getLayer(A)??"",A),void 0),d=x.matched,{...x,getStyleElement:y=>f.get(y),getStyleElements:()=>f}}async function p(x){const y=d.size;await u.applyExtractors(x,void 0,d),y!==d.size&&await g()}async function h(){const x=r.body,y=x&&x.outerHTML;y&&(await p(`${y} ${pt(y)}`),m(i()),m(x))}const v=new MutationObserver(x=>{l||x.forEach(async y=>{if(y.target.nodeType!==1)return;const A=y.target;for(const E of f)if(A===E[1])return;if(y.type==="childList")y.addedNodes.forEach(async E=>{if(E.nodeType!==1)return;const _=E;w&&!w(_)||(await p(_.outerHTML),m(_))});else{if(w&&!w(A))return;if(y.attributeName!==c){const E=Array.from(A.attributes).map(T=>T.value?`${T.name}="${T.value}"`:T.name).join(" "),_=`<${A.tagName.toLowerCase()} ${E}>`;await p(_)}A.hasAttribute(c)&&A.removeAttribute(c)}})});let C=!1;function O(){if(C)return;const x=i()||r.body;x&&(v.observe(x,{childList:!0,subtree:!0,attributes:!0}),C=!0)}function M(){h(),O()}function P(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",M):M()}const V=e.__unocss_runtime=e.__unocss_runtime={version:u.version,uno:u,async extract(x){j(x)||(x.forEach(y=>d.add(y)),x=""),await p(x)},extractAll:h,inspect(x){w=x},toggleObserver(x){x===void 0?l=!l:l=!!x,!C&&!l&&P()},update:b};o.ready?.(V)!==!1&&(l=!1,P())}gt({defaults:{presets:[ft({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F as S,_ as U}from"./fuse.esm.69d72a3b.js";import{u as a,m,a4 as j,ao as A,a as E,D as N,af as T,a9 as z,r as I,o as p,c as R,w as d,i as x,K as O,f as F,v as P,F as B,l as V,t as L,x as W,h as g,ah as K,ai as q}from"./entry.bcd35db3.js";import{_ as G}from"./NCodeBlock.vue.b2b8c3ac.js";import{_ as X}from"./NPanelGrids.ac7957ef.js";import{_ as H}from"./PanelLeftRight.vue.005018fa.js";import{h as J}from"./index.c769634a.js";import"./NTextInput.vue.352ba30f.js";function M(u,r,h){const[e={},n]=typeof r=="string"?[{},r]:[r,h],s=e.key||J([n,a(e.baseURL),typeof u=="string"?u:"",a(e.params||e.query)]);if(!s||typeof s!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+s);if(!u)throw new Error("[nuxt] [useFetch] request is missing.");const i=s===n?"$f"+s:s,l=m(()=>{let _=u;return typeof _=="function"&&(_=_()),a(_)}),{server:v,lazy:k,default:b,transform:t,pick:o,watch:w,immediate:$,...C}=e,y=j({...C,cache:typeof e.cache=="boolean"?void 0:e.cache}),D={server:v,lazy:k,default:b,transform:t,pick:o,immediate:$,watch:[y,l,...w||[]]};let f;return A(i,()=>(f?.abort?.(),f=typeof AbortController<"u"?new AbortController:{},typeof l.value=="string"&&l.value.startsWith("/"),(e.$fetch||globalThis.$fetch)(l.value,{signal:f.signal,...y})),D)}const Q=g("div",{"x-divider":""},null,-1),Y={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Z={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},ee=g("span",{op75:""},"Select a file to start",-1),ce=E({__name:"virtual-files",async setup(u){let r,h;const e=N(""),{data:n}=([r,h]=T(()=>M("/_vfs.json",{key:"vfs-list",baseURL:"/",responseType:"json"},"$3wSzD6RdXF")),r=await r,h(),r),s=m(()=>z().query?.id),i=N();I(()=>{if(!s.value)return;const t=`/_vfs.json/${encodeURIComponent(s.value)}`;fetch(t).then(o=>o.json()).then(o=>i.value=o.current)});function l(t){if(n.value?.rootDir)return t.startsWith(n.value?.rootDir)?t.slice(n.value.rootDir.length):t}const v=m(()=>n.value?n.value.entries.filter(t=>!t.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((t,o)=>t.id.localeCompare(o.id)):[]),k=m(()=>new S(v.value,{keys:["id","path"]})),b=m(()=>e.value?k.value.search(e.value).map(t=>t.item):v.value);return(t,o)=>{const w=U,$=K,C=G,y=q,D=X,f=H;return p(),R(f,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:d(()=>[x(w,{search:a(e),"onUpdate:search":o[0]||(o[0]=c=>O(e)?e.value=c:null),"no-padding":"",p3:""},null,8,["search"]),(p(!0),F(B,null,P(a(b),c=>(p(),F(B,{key:c.id},[x($,{block:"","select-none":"",truncate:"",px2:"",py1:"","font-mono":"","text-sm":"",to:`/modules/virtual-files?id=${encodeURIComponent(c.id)}`,class:W(c.id===a(i)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:d(()=>[V(L(l(c.id)),1)]),_:2},1032,["to","class"]),Q],64))),128))]),right:d(()=>[a(i)?.content?(p(),F("div",Y,[g("div",Z,[g("code",null,L(a(i).id),1)]),x(C,{"h-full":"","of-auto":"","text-sm":"",code:a(i).content,lang:"typescript"},null,8,["code"])])):(p(),R(D,{key:1},{default:d(()=>[x(y,{px6:"",py2:""},{default:d(()=>[ee]),_:1})]),_:1}))]),_:1})}}});export{ce as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.bcd35db3.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.9f02ddf0.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.ce8efa93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.57fc1d9b.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/context.6844f837.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NLoading.f33a8f5a.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/TabIcon.vue.84eecba6.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.b1b5b9b7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.f4f04b37.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.7b83568a.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.9f02ddf0.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.bcd35db3.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.bcd35db3.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.9f02ddf0.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.ce8efa93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.57fc1d9b.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/context.6844f837.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NLoading.f33a8f5a.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/TabIcon.vue.84eecba6.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.b1b5b9b7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.f4f04b37.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.7b83568a.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.9f02ddf0.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.bcd35db3.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.bcd35db3.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.9f02ddf0.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.ce8efa93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.57fc1d9b.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/context.6844f837.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NLoading.f33a8f5a.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/TabIcon.vue.84eecba6.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.b1b5b9b7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.f4f04b37.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.7b83568a.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.9f02ddf0.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.bcd35db3.js" crossorigin></script></body>
|
|
7
7
|
</html>
|