@nuxt/devtools 1.6.1 → 1.6.3
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/analyze-build.mjs +3 -2
- package/dist/chunks/module-main.mjs +94 -43
- package/dist/chunks/vite-inspect.mjs +6 -4
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +17 -17
- package/dist/client/404.html +17 -17
- package/dist/client/_nuxt/__blank-de0hkpjk.js +1 -0
- package/dist/client/_nuxt/analyze-build-j23co4xl.js +1 -0
- package/dist/client/_nuxt/{assets-jvf69cxf.js → assets-gveiuobi.js} +1 -1
- package/dist/client/_nuxt/b04z4mtb.js +17 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/9de2d2d7-41a1-455e-a918-e709c65a4eef.json +1 -0
- package/dist/client/_nuxt/{client-dgt05ivb.js → client-h8sz7blv.js} +1 -1
- package/dist/client/_nuxt/{code-diff.vue-i05ynbel.js → code-diff.vue-d033ilzm.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-17pri79b.js → code-snippets.vue-dfzf4hjg.js} +1 -1
- package/dist/client/_nuxt/components-di4szfh1.js +1 -0
- package/dist/client/_nuxt/{components-tree-gcdwuwyn.js → components-tree-kvov1ov6.js} +1 -1
- package/dist/client/_nuxt/{composable-item.vue-ihurs8kc.js → composable-item.vue-hct37ofv.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-ik277266.js → custom-_name_-lkfamiei.js} +1 -1
- package/dist/client/_nuxt/default-mov6ggbr.js +1 -0
- package/dist/client/_nuxt/{duration-display.vue-n7a3864v.js → duration-display.vue-eesjgxfp.js} +1 -1
- package/dist/client/_nuxt/entry.css-nccln8bf.css +1 -0
- package/dist/client/_nuxt/{error-404-chhw212o.js → error-404-o0v6zwya.js} +1 -1
- package/dist/client/_nuxt/error-404.css-jbmkerk1.css +1 -0
- package/dist/client/_nuxt/{error-500-oi6j6wh4.js → error-500-nvrn53d3.js} +1 -1
- package/dist/client/_nuxt/error-500.css-ey2nctyr.css +1 -0
- package/dist/client/_nuxt/{error-kcw3c5n2.js → error-nplhidsi.js} +2 -2
- package/dist/client/_nuxt/{filepath-item.vue-jp3k05dh.js → filepath-item.vue-fxcmp74h.js} +1 -1
- package/dist/client/_nuxt/full-di1z4oob.js +1 -0
- package/dist/client/_nuxt/{help-fab.vue-kqlhhn29.js → help-fab.vue-bn738d5b.js} +1 -1
- package/dist/client/_nuxt/{hooks-bbeec6rm.js → hooks-hq8uyu2l.js} +1 -1
- package/dist/client/_nuxt/imports-kl1hqkd2.js +1 -0
- package/dist/client/_nuxt/{index-h6urifqi.js → index-gevf5c2a.js} +1 -1
- package/dist/client/_nuxt/{index-f7gtpn4a.js → index-gl2r4pge.js} +2 -2
- package/dist/client/_nuxt/launch-page.vue-mooqljf0.js +1 -0
- package/dist/client/_nuxt/{modules-dckgmu9u.js → modules-oz44fq8t.js} +1 -1
- package/dist/client/_nuxt/nbadge-ijt69lj7.js +1 -0
- package/dist/client/_nuxt/{ncheckbox.vue-ir8t2t9x.js → ncheckbox.vue-nkgx3uyq.js} +1 -1
- package/dist/client/_nuxt/{ncode-block.css-enx2fys6.css → ncode-block.css-c9cb29at.css} +1 -1
- package/dist/client/_nuxt/{ncode-block.vue-d334f2dp.js → ncode-block.vue-ljovji7o.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-fdnlfvql.js → ndrawer.vue-7slc0a0y.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-haoov59z.js → ndropdown.vue-707esowt.js} +1 -1
- package/dist/client/_nuxt/{nicon-title.vue-ef3vf9hr.js → nicon-title.vue-fq2kswl5.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-eq8gk3iz.js → nlink.vue-o5cnbwht.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown.vue-bwv440ol.js → nmarkdown.vue-e812br8q.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-jap952ju.js → nnavbar.vue-npaum0f1.js} +1 -1
- package/dist/client/_nuxt/none-kkznunwn.js +1 -0
- package/dist/client/_nuxt/{nsection-block-hjiyf44n.js → nsection-block-nwjsicuf.js} +1 -1
- package/dist/client/_nuxt/nsection-block.css-e7kbjm7k.css +1 -0
- package/dist/client/_nuxt/{nselect-tabs.vue-ctgj28x2.js → nselect-tabs.vue-o8nb5cg8.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-kb4ychx8.js → nselect.vue-ftj5oit6.js} +1 -1
- package/dist/client/_nuxt/{open-graph-fwcucpwr.js → open-graph-o1nebcdd.js} +2 -2
- package/dist/client/_nuxt/{overview-du74wcc9.js → overview-g8z27615.js} +1 -1
- package/dist/client/_nuxt/pages-o9jycrzn.js +1 -0
- package/dist/client/_nuxt/payload-m2o6yfwm.js +1 -0
- package/dist/client/_nuxt/pinia-ia7yx3pb.js +1 -0
- package/dist/client/_nuxt/plugins-lylckcgn.js +1 -0
- package/dist/client/_nuxt/runtime-configs-eb4rnmru.js +1 -0
- package/dist/client/_nuxt/{server-route-inputs.vue-hs0k8usl.js → server-route-inputs.vue-mqgmbgbg.js} +1 -1
- package/dist/client/_nuxt/{server-routes-chengpen.js → server-routes-kvmgxxaj.js} +1 -1
- package/dist/client/_nuxt/server-tasks-d8o9ub0x.js +1 -0
- package/dist/client/_nuxt/settings-ewfhwgou.js +1 -0
- package/dist/client/_nuxt/{stacktrace-list.vue-n51hjl65.js → stacktrace-list.vue-znh71v05.js} +1 -1
- package/dist/client/_nuxt/{state-components-j9dsopcn.js → state-components-clf8fxbn.js} +1 -1
- package/dist/client/_nuxt/{state-editor.vue-eev8247c.js → state-editor.vue-g0afnqvy.js} +1 -1
- package/dist/client/_nuxt/{state-modules-jx57qxz7.js → state-modules-t9odg4rk.js} +1 -1
- package/dist/client/_nuxt/{storage-c7x4faia.js → storage-m7qw796t.js} +1 -1
- package/dist/client/_nuxt/terminals-c4kt82na.js +1 -0
- package/dist/client/_nuxt/{timeline-bpt56wqz.js → timeline-kgvttrkl.js} +2 -2
- package/dist/client/_nuxt/{unocss-runtime-ks657l4w.js → unocss-runtime-e1m6uiw9.js} +1 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-nhjd65sz.js +3818 -0
- package/dist/client/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css +1 -0
- package/dist/client/_nuxt/vendor/shiki-enrzjv18.js +57 -0
- package/dist/client/_nuxt/vendor/unocss-pcs99qrd.js +2 -0
- package/dist/client/_nuxt/vendor/unocss.css-mhvipxpl.css +1 -0
- package/dist/client/_nuxt/vendor/{xterm-h0ftnevm.js → xterm-dbpzgj7s.js} +3 -3
- package/dist/client/_nuxt/vendor/xterm.css-egmhki83.css +32 -0
- package/dist/client/_nuxt/virtual-files-bbwlwv17.js +1 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-dbbmx9wu.js → vue-virtual-scroller.esm-f2cudvpd.js} +1 -1
- package/dist/client/index.html +17 -17
- package/dist/dirs.mjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/devtools.client.js +1 -1
- package/dist/runtime/plugins/view/client.d.ts +1 -1
- package/dist/runtime/plugins/view/client.js +1 -1
- package/dist/runtime/plugins/view/state.d.ts +1 -1
- package/dist/shared/{devtools.68e43ed6.mjs → devtools.5ac54dae.mjs} +1 -1
- package/package.json +41 -41
- package/dist/client/_nuxt/__blank-9iu4tv0f.js +0 -1
- package/dist/client/_nuxt/analyze-build-nqeql2rs.js +0 -1
- package/dist/client/_nuxt/builds/meta/ab41567e-1b8e-4e48-840c-591dd62a1246.json +0 -1
- package/dist/client/_nuxt/components-d1yojeh6.js +0 -1
- package/dist/client/_nuxt/default-c97elafe.js +0 -1
- package/dist/client/_nuxt/entry.css-kzp9yj98.css +0 -1
- package/dist/client/_nuxt/error-404.css-l9hojrit.css +0 -1
- package/dist/client/_nuxt/error-500.css-jiufalsw.css +0 -1
- package/dist/client/_nuxt/full-j1e8c0fm.js +0 -1
- package/dist/client/_nuxt/imports-cadcbs1b.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-opmg26gw.js +0 -1
- package/dist/client/_nuxt/nbadge-ggvrch1r.js +0 -1
- package/dist/client/_nuxt/none-oo3u4xub.js +0 -1
- package/dist/client/_nuxt/nsection-block.css-nz74xks7.css +0 -1
- package/dist/client/_nuxt/nxp3p1l5.js +0 -16
- package/dist/client/_nuxt/pages-m3ksw3nx.js +0 -1
- package/dist/client/_nuxt/payload-np4rk8uw.js +0 -1
- package/dist/client/_nuxt/pinia-n87t5bm8.js +0 -1
- package/dist/client/_nuxt/plugins-jcz0d5g6.js +0 -1
- package/dist/client/_nuxt/runtime-configs-h7di7gvu.js +0 -1
- package/dist/client/_nuxt/server-tasks-il5b1l64.js +0 -1
- package/dist/client/_nuxt/settings-k964fibj.js +0 -1
- package/dist/client/_nuxt/terminals-lb2z98e5.js +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-f126ciji.js +0 -124
- package/dist/client/_nuxt/vendor/json-editor-vue.css-o0jf01nd.css +0 -1
- package/dist/client/_nuxt/vendor/shiki-hhqxa887.js +0 -161
- package/dist/client/_nuxt/vendor/unocss-mnpxkox6.js +0 -2
- package/dist/client/_nuxt/vendor/unocss.css-na153c8v.css +0 -1
- package/dist/client/_nuxt/vendor/xterm.css-egivkam7.css +0 -1
- package/dist/client/_nuxt/virtual-files-o77aoqwj.js +0 -1
- /package/dist/client/_nuxt/{assets.css-l0xw7n9m.css → assets.css-hmxl533k.css} +0 -0
- /package/dist/client/_nuxt/{help-fab.css-l22fo390.css → help-fab.css-ms50khsu.css} +0 -0
- /package/dist/client/_nuxt/{open-graph.css-np61an3p.css → open-graph.css-e21qzmvj.css} +0 -0
- /package/dist/client/_nuxt/{terminals.css-o071tnq5.css → terminals.css-mejv43xm.css} +0 -0
- /package/dist/client/_nuxt/{timeline.css-i7fpg75n.css → timeline.css-lhkpu01p.css} +0 -0
- /package/dist/client/_nuxt/{virtual-files.css-i6taatd1.css → virtual-files.css-gqpg2wnb.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{v as A,e as H,J as K,ay as D,ak as J,al as Q,H as Y,U as Z,am as q,r as G,h as X}from"./nxp3p1l5.js";import{_ as S}from"./nbadge-ggvrch1r.js";import{k as L,b as E,l as k,R as ee,Q as t,S as a,U as e,a5 as w,O as y,$ as x,ah as te,F as g,ab as B,W as P,a0 as _,a6 as T,Y as M,u as m,x as ne,Z as oe}from"./vendor/json-editor-vue-f126ciji.js";import{_ as F}from"./filepath-item.vue-jp3k05dh.js";import{_ as ae}from"./nsection-block-hjiyf44n.js";import{_ as se}from"./launch-page.vue-opmg26gw.js";import{_ as re}from"./help-fab.vue-kqlhhn29.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";import"./nicon-title.vue-ef3vf9hr.js";import"./nmarkdown.vue-bwv440ol.js";import"./client-dgt05ivb.js";const le={block:"","cursor-pointer":""},ue={p2:""},ie=["onSubmit"],de={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},pe={key:1},ce=L({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:u}){const h=V,$=u,c=E([]),v=k(()=>{const i=N(h.route.path);return c.value=Array.from({length:i.length},()=>""),i});function N(i){return i.split(/(:\w+[?*]?(?:\(\))?)/).filter(Boolean).map(d=>d[0]===":"?d.replace(/\(\)$/,"?"):d)}const s=k(()=>v.value.map((i,d)=>i[0]===":"?c.value[d]:i).join("").replace(/\/+/g,"/")),n=k(()=>h.route.path.includes(":"));function f(){$("navigate",s.value)}return(i,d)=>{const o=A,l=H,p=ee("VDropdown");return n.value?(t(),y(p,{key:1},{popper:x(({hide:r})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:te(()=>{f(),r()},["prevent"])},[n.value?(t(),a(g,{key:0},[d[0]||(d[0]=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),e("div",de,[(t(!0),a(g,null,B(v.value,(b,R)=>(t(),a(g,{key:R},[b[0]===":"?(t(),y(o,{key:0,modelValue:c.value[R],"onUpdate:modelValue":I=>c.value[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(t(),a("span",pe,w(b),1))],64))),128))])],64)):P("",!0),_(l,{type:"submit",block:"",n:"primary"},{default:x(()=>d[1]||(d[1]=[T(" Navigate ")])),_:1})],40,ie)])]),default:x(()=>[e("code",le,[(t(!0),a(g,null,B(v.value,(r,b)=>(t(),a("span",{key:b,class:M(r[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},w(r[0]===":"?r.slice(1):r),3))),128))])]),_:1})):(t(),a("button",{key:0,onClick:f},[e("code",null,w(i.route.path),1)]))}}}),me={"w-full":""},he={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},_e={"text-sm":""},fe={flex:"inline gap3","items-center":""},ge={op0:"","group-hover:op100":"",flex:"~ gap1"},ye=["onClick"],be={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},xe={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},ke={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},we={key:0},$e=["onClick"],Ne=L({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const u=V,h=K(),$=D(),c=k(()=>[...u.pages].sort((s,n)=>s.path.localeCompare(n.path)));function v(s){const n=u.layouts.find(f=>f.name===s);n&&h(n.file)}function N(s){if(typeof s=="string")return $.value?.middleware.find(n=>n.name===s)?.path}return(s,n)=>{const f=S,i=ce,d=F;return t(),a("div",null,[e("table",me,[n[3]||(n[3]=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1)),e("tbody",null,[(t(!0),a(g,null,B(c.value,o=>(t(),a("tr",{key:o.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",he,[e("div",ve,[s.matched.find(l=>l.name===o.name)?(t(),y(f,{key:0,n:"green",title:"active",textContent:"active"})):s.matchedPending.find(l=>l.name===o.name)?(t(),y(f,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",_e,[e("div",fe,[_(i,{route:o,class:M(s.matched.find(l=>l.name===o.name)?"text-primary":s.matchedPending.find(l=>l.name===o.name)?"text-teal":""),onNavigate:n[0]||(n[0]=l=>s.$emit("navigate",l))},null,8,["route","class"]),e("div",ge,[o.file||o.meta?.file?(t(),a("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>m(h)(o.file||o.meta?.file)},n[2]||(n[2]=[e("div",{"i-carbon-script-reference":""},null,-1)]),8,ye)):P("",!0)])])]),e("td",be,w(o.name),1),e("td",xe,[_(d,{filepath:N(o.meta.middleware),override:`${o.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",ke,[o.meta.layout===!1?(t(),a("span",we,"-")):o.meta.layout?(t(),a("button",{key:1,onClick:l=>v(o.meta.layout)},w(o.meta.layout),9,$e)):(t(),a("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=l=>v("default"))}," (default) "))])]))),128))])])])}}}),Re={class:"markdown-body"},Ce={__name:"pages",setup(V,{expose:u}){return u({frontmatter:{}}),($,c)=>(t(),a("div",Re,c[0]||(c[0]=[e("h1",null,"Pages",-1),e("p",null,[T("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),T(" directory.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),e("hr",null,null,-1),e("h1",null,"Middlewares",-1),e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Pe=Ce,Ve={key:0,"h-full":"","of-auto":""},Ie={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Te={"font-mono":""},Be={key:1,op50:""},Ee={key:0,"text-orange":"",op75:""},Le={key:1,op50:""},Me={"min-h-14":""},Ae={key:1,class:"py-4 text-center"},De={"w-full":""},Se={mr1:""},qe=L({__name:"pages",setup(V){const u=J(),h=Q(),$=Y(),c=D(),v=Z(),N=q(),s=k(()=>c.value?.middleware||[]),n=E(""),f=E(0),i=k(()=>(s.value,n.value,v.value,f.value,u.value?.currentRoute?.value?.path));ne(()=>{h.value&&(n.value=u.value?.currentRoute?.value?.path),u.value?.beforeEach(p=>{n.value=p.fullPath}),u.value?.afterEach(p=>{n.value=p.fullPath})});async function d(){n.value!==u.value?.currentRoute?.value?.path&&u.value.push(n.value||"/")}const o=k(()=>u.value.resolve(n.value||"/").matched);function l(p){u.value.push(p),n.value=p}return(p,r)=>{const b=A,R=Ne,I=ae,j=S,U=F,z=se,O=Pe,W=re;return t(),a(g,null,[m($)?.pages&&m(u)?(t(),a("div",Ve,[e("div",Ie,[e("div",null,[i.value!==n.value?(t(),a(g,{key:0},[r[1]||(r[1]=e("span",{op50:""},"Navigate from ",-1)),e("span",Te,w(i.value),1),r[2]||(r[2]=e("span",{op50:""}," to ",-1))],64)):(t(),a("span",Be,"Current route"))]),_(b,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=C=>n.value=C),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:M(i.value===n.value?"":o.value.length?"text-green":"text-orange"),onKeydown:oe(d,["enter"])},null,8,["modelValue","class"]),e("div",null,[i.value!==n.value?(t(),a(g,{key:0},[r[3]||(r[3]=e("span",null,[T("Press "),e("b",{"font-bold":""},"Enter"),T(" to navigate")],-1)),o.value.length?P("",!0):(t(),a("span",Ee," (no match)"))],64)):(t(),a("span",Le,"Edit path above to navigate"))])]),_(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Me,[o.value.length?(t(),y(R,{key:0,pages:o.value,layouts:m(v)||[],matched:m(h).matched,"matched-pending":o.value,onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])):(t(),a("div",Ae,r[4]||(r[4]=[e("span",{op50:""},"No routes matched",-1)])))])]),_:1}),_(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${m(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[_(R,{pages:m(N),layouts:m(v)||[],matched:m(h).matched,"matched-pending":o.value,onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),s.value.length?(t(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${s.value.length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",De,[r[5]||(r[5]=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1)),(t(!0),a(g,null,B(s.value,C=>(t(),a("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",Se,w(C.name),1),C.global?(t(),y(j,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[_(U,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(t(),y(z,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in p?p.rpc:m(G)).runWizard(await("ensureDevAuthToken"in p?p.ensureDevAuthToken:m(X))(),"enablePages")}}]},null,8,["actions"])),_(W,null,{default:x(()=>[_(O)]),_:1})],64)}}});export{qe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as h}from"./state-editor.vue-eev8247c.js";import{k as x,Q as e,S as i,F as $,ab as N,O as d,$ as a,V as B,a1 as O,U as k,l as b,af as V,u as w,a0 as o,W as p,a6 as F,a8 as E}from"./vendor/json-editor-vue-f126ciji.js";import{_ as P}from"./nsection-block-hjiyf44n.js";import{Q as R,e as j}from"./nxp3p1l5.js";import{_ as A}from"./help-fab.vue-kqlhhn29.js";import"./nicon-title.vue-ef3vf9hr.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";const G={key:0,flex:"~ col gap-1"},H={key:1,mt2:"",px4:"",italic:"",op35:""},K=x({__name:"StateGroup",props:{state:{},revision:{},prefix:{default:""}},setup(f){return(t,n)=>{const c=h;return e(),i("div",null,[t.state&&Object.keys(t.state).length>0?(e(),i("div",G,[(e(!0),i($,null,N(t.state,(s,r)=>(e(),d(c,{key:r,revision:t.revision,state:s,name:r.startsWith(t.prefix)?r.slice(t.prefix.length):r},{actions:a(l=>[B(t.$slots,"actions",O({ref_for:!0},l))]),_:2},1032,["revision","state","name"]))),128))])):(e(),i("div",H," No data "))])}}}),Q={class:"markdown-body"},T={__name:"payload",setup(f,{expose:t}){return t({frontmatter:{}}),(c,s)=>(e(),i("div",Q,s[0]||(s[0]=[k("h1",null,"State & Async Data",-1),k("p",null,"// TODO",-1)])))}},W=T,L={key:0},tt=x({__name:"payload",setup(f){const t=R(),n=b(()=>t.value?.nuxt.payload),c=b(()=>t.value?.revision.value);async function s(r){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",r)}return(r,l)=>{const m=K,_=P,v=j,S=h,g=W,D=A,C=V("tooltip");return e(),i($,null,[w(t)?(e(),i("div",L,[o(_,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[o(m,{state:n.value.state,revision:c.value,prefix:"$s"},null,8,["state","revision"])]),_:1}),o(_,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[o(v,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:l[0]||(l[0]=y=>s())},{default:a(()=>l[1]||(l[1]=[F(" Re-fetch all data ")])),_:1})]),default:a(()=>[o(m,{state:n.value.data,revision:c.value},{actions:a(({isOpen:y,name:u})=>[y&&u?E((e(),d(v,{key:0,title:`Re-fetch '${u}'`,icon:"carbon-recycle",border:!1,onClick:U=>s([u])},null,8,["title","onClick"])),[[C,`Re-fetch '${u}'`,void 0,{bottom:!0}]]):p("",!0)]),_:1},8,["state","revision"])]),_:1}),n.value.functions&&Object.keys(n.value.functions).length?(e(),d(_,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions"},{default:a(()=>[o(S,{"ml--6":"",state:n.value.functions,revision:c.value},null,8,["state","revision"])]),_:1})):p("",!0)])):p("",!0),o(D,null,{default:a(()=>[o(g)]),_:1})],64)}}});export{tt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as r,R as p}from"./nxp3p1l5.js";import{p as c}from"./index-f7gtpn4a.js";import{k as i,S as m,u as o,O as n,$ as _,Q as t,a6 as l}from"./vendor/json-editor-vue-f126ciji.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";import"./vue-virtual-scroller.esm-dbbmx9wu.js";const u={class:"h-full w-full"},v=i({__name:"pinia",setup(f){const{connected:s}=r();return(d,e)=>{const a=p;return t(),m("div",u,[o(s)?(t(),n(o(c),{key:0})):(t(),n(a,{key:1},{default:_(()=>e[0]||(e[0]=[l(" Connecting.... ")])),_:1}))])}}});export{v as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as T}from"./filepath-item.vue-jp3k05dh.js";import{_ as w}from"./nbadge-ggvrch1r.js";import{_ as k}from"./duration-display.vue-n7a3864v.js";import{H as D,ax as B,D as V,_ as H,ay as F,Q as I}from"./nxp3p1l5.js";import{k as v,l as h,Q as o,S as _,U as n,a5 as C,a0 as u,O as p,W as d,R as W,V as P,$ as g,a6 as x,F as b,ab as E,Y as L}from"./vendor/json-editor-vue-f126ciji.js";import{_ as M}from"./nsection-block-hjiyf44n.js";import{_ as Q}from"./help-fab.vue-kqlhhn29.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";import"./nicon-title.vue-ef3vf9hr.js";const R={flex:"~ gap2","items-center":""},Y={w8:"","text-right":"","text-sm":"",op25:""},j={key:0,"flex-auto":"","text-right":""},z=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(m){const e=m,a=D(),l=h(()=>B(e.plugin.src,a.value?.rootDir||"").path);return(t,c)=>{const r=T,s=w,i=k;return o(),_("div",R,[n("div",Y,C(t.index),1),u(r,{filepath:e.plugin.src,subpath:!0},null,8,["filepath"]),n("div",null,[l.value.startsWith("#")?(o(),p(s,{key:0,n:"rose",textContent:"virtual"})):l.value.startsWith(".")?d("",!0):(o(),p(s,{key:1,n:"gray",textContent:"module"})),t.plugin.mode==="server"?(o(),p(s,{key:2,n:"teal",textContent:"server"})):d("",!0),t.plugin.mode==="client"?(o(),p(s,{key:3,n:"orange",textContent:"client"})):d("",!0)]),t.plugin.metric?.duration!=null?(o(),_("div",j,[u(i,{duration:t.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),A={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},O={flex:"~ items-center gap-1","font-bold":""},U=v({__name:"HelpTip",props:{title:{},icon:{}},setup(m){return(e,a)=>{const l=V,t=W("ContentSlot");return o(),_("div",A,[n("div",O,[e.icon?(o(),p(l,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),n("div",null,C(e.title),1)]),n("div",null,[P(e.$slots,"default",{},()=>[u(t,{use:e.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),q={};function G(m,e){const a=U;return o(),p(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:g(()=>[P(m.$slots,"default")]),_:3})}const J=H(q,[["render",G]]),K={class:"markdown-body"},X={__name:"plugins",setup(m,{expose:e}){return e({frontmatter:{}}),(l,t)=>{const c=J;return o(),_("div",K,[t[1]||(t[1]=n("h1",null,"Plugins",-1)),t[2]||(t[2]=n("p",null,[x("Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the "),n("code",null,"plugins/"),x(" directory and they will be automatically imported and registered.")],-1)),u(c,null,{default:g(()=>t[0]||(t[0]=[x(" Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. ")])),_:1}),t[3]||(t[3]=n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},Z=X,tt={pt4:""},nt={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},mt=v({__name:"plugins",setup(m){const e=F(),a=I(),l=h(()=>{const c=e.value?.plugins||[],r=a.value?.metrics.clientPlugins()||[];return c.map(s=>{const i=typeof s=="string"?{src:s}:s;return{...i,metric:r.find(f=>f.src===i.src||f.src.startsWith(i.src))}})}),t=h(()=>{const c=a.value?.metrics.clientPlugins()||[],r=Math.min(...c.map(i=>i.start));return Math.max(...c.map(i=>i.end))-r});return(c,r)=>{const s=z,i=k,f=M,N=Z,S=Q;return o(),_(b,null,[u(f,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${l.value.length}`},{default:g(()=>[n("div",tt,[(o(!0),_(b,null,E(l.value,(y,$)=>(o(),p(s,{key:y.src,plugin:y,index:$+1,"ml--4":"","border-base":"",py2:"",class:L($?"border-t":"")},null,8,["plugin","index","class"]))),128)),n("div",nt,[r[0]||(r[0]=n("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1)),r[1]||(r[1]=n("span",{op50:""},"Total execution time:",-1)),u(i,{duration:t.value,factor:10},null,8,["duration"])])])]),_:1},8,["description"]),u(S,null,{default:g(()=>[u(N)]),_:1})],64)}}});export{mt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as x}from"./state-editor.vue-eev8247c.js";import{_ as y}from"./nsection-block-hjiyf44n.js";import{Q as u,S as l,U as o,a6 as d,k as C,l as c,u as _,a0 as e,$ as a,W as b,F as k}from"./vendor/json-editor-vue-f126ciji.js";import{_ as w}from"./help-fab.vue-kqlhhn29.js";import{Q as N,aZ as R}from"./nxp3p1l5.js";import"./nicon-title.vue-ef3vf9hr.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";const T={class:"markdown-body"},$={__name:"runtime-configs",setup(f,{expose:t}){return t({frontmatter:{}}),(m,n)=>(u(),l("div",T,n[0]||(n[0]=[o("h1",null,"Runtime Configs",-1),o("p",null,"Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables.",-1),o("p",null,[d("In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your "),o("code",null,"nuxt.config.js"),d(" file, or check more details in the documentation.")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},B=$,S={key:0},H=C({__name:"runtime-configs",setup(f){const t=N(),p=R(),m=c(()=>t.value?.nuxt.payload),n=c(()=>t.value?.revision.value),g=c(()=>{const i={...p.value};return delete i.public,delete i.app,i});return(i,V)=>{const s=x,r=y,v=B,h=w;return u(),l(k,null,[_(t)?(u(),l("div",S,[e(r,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:a(()=>[e(s,{state:_(t).app.appConfig,revision:n.value},null,8,["state","revision"])]),_:1}),e(r,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:a(()=>[e(s,{state:m.value.config?.public,revision:n.value},null,8,["state","revision"])]),_:1}),e(r,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:a(()=>[e(s,{state:g.value,revision:n.value,readonly:""},null,8,["state","revision"])]),_:1})])):b("",!0),e(h,null,{default:a(()=>[e(v)]),_:1})],64)}}});export{H as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b4 as ne,D as re,b as se,b1 as ke,S as Oe,H as xe,J as Te,ai as Se,b2 as we,I as Xe,a$ as De,q as Ee,e as ue,v as Me,c as le,R as Ce,b5 as Ie,M as $e,p as Ue,W as Le}from"./nxp3p1l5.js";import{_ as Ne}from"./nnavbar.vue-jap952ju.js";import{_ as ce}from"./nbadge-ggvrch1r.js";import{q as Ae,k as K,b as H,l as U,Q as g,S as $,U as v,a0 as O,a5 as A,F as W,ab as Z,Y as F,u as E,W as j,r as ie,w as Re,af as fe,a8 as G,$ as I,a6 as P,O as R,a1 as Ve,aw as je,X as We,V as Be,K as He}from"./vendor/json-editor-vue-f126ciji.js";import{_ as pe}from"./server-route-inputs.vue-hs0k8usl.js";import{_ as ze}from"./ncode-block.vue-d334f2dp.js";import{S as de}from"./constants-b32h69zq.js";import{_ as qe}from"./nsection-block-hjiyf44n.js";import{_ as Ye}from"./ndrawer.vue-fdnlfvql.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";import"./ncheckbox.vue-ir8t2t9x.js";import"./nselect.vue-kb4ychx8.js";import"./client-dgt05ivb.js";import"./nicon-title.vue-ef3vf9hr.js";var ve={exports:{}};(function(q,L){(function(x,w){q.exports=w()})(globalThis,()=>(()=>{var N={794:(b,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var o=_(586),d=function(){function y(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return y.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.startsWith("@")){var r=this.parseSpecial(this.expression);e=this.extractParts(r)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},y.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},y.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var r=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});r.length===0&&r.push("*"),r.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=r.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var n=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";n?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},y.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(c){var h=c.replace(/\D/,""),f=h;return e.dayOfWeekStartIndexZero?h=="7"&&(f="0"):f=(parseInt(h)-1).toString(),c.replace(h,f)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in a)t[5]=t[5].replace(new RegExp(r,"gi"),a[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(c){var h=c.replace(/\D/,""),f=h;return e.monthStartIndexZero&&(f=(parseInt(h)+1).toString()),c.replace(h,f)});var n={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var s in n)t[4]=t[4].replace(new RegExp(s,"gi"),n[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(c){return c!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var u=null;switch(i){case 4:u="12";break;case 5:u="6";break;case 6:u="9999";break;default:u=null;break}if(u!==null){var m=t[i].split("/");t[i]="".concat(m[0],"-").concat(u,"/").concat(m[1])}}},y.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},y.prototype.validateRange=function(t){o.default.secondRange(t[0]),o.default.minuteRange(t[1]),o.default.hourRange(t[2]),o.default.dayOfMonthRange(t[3]),o.default.monthRange(t[4],this.monthStartIndexZero),o.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},y.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},y}();p.CronParser=d},728:(b,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var o=_(910),d=_(794),y=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var r=a===void 0?{}:a,n=r.throwExceptionOnParseError,s=n===void 0?!0:n,i=r.verbose,u=i===void 0?!1:i,m=r.dayOfWeekStartIndexZero,c=m===void 0?!0:m,h=r.monthStartIndexZero,f=h===void 0?!1:h,C=r.use24HourTimeFormat,T=r.locale,B=T===void 0?null:T,V=r.tzOffset,D=V===void 0?0:V,z={throwExceptionOnParseError:s,verbose:u,dayOfWeekStartIndexZero:c,monthStartIndexZero:f,use24HourTimeFormat:C,locale:B,tzOffset:D},ee=new t(e,z);return ee.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new d.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var r=this.getTimeOfDayDescription(),n=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),u=this.getYearDescription();e+=r+n+i+s+u,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(m){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(m)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],r=this.expressionParts[2],n="";if(!o.StringUtilities.containsAny(a,t.specialCharacters)&&!o.StringUtilities.containsAny(r,t.specialCharacters)&&!o.StringUtilities.containsAny(e,t.specialCharacters))n+=this.i18n.atSpace()+this.formatTime(r,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!o.StringUtilities.containsAny(r,t.specialCharacters)){var s=a.split("-");n+=o.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(r,s[0],""),this.formatTime(r,s[1],""))}else if(!e&&r.indexOf(",")>-1&&r.indexOf("-")==-1&&r.indexOf("/")==-1&&!o.StringUtilities.containsAny(a,t.specialCharacters)){var i=r.split(",");n+=this.i18n.at();for(var u=0;u<i.length;u++)n+=" ",n+=this.formatTime(i[u],a,""),u<i.length-2&&(n+=","),u==i.length-2&&(n+=this.i18n.spaceAnd())}else{var m=this.getSecondsDescription(),c=this.getMinutesDescription(),h=this.getHoursDescription();if(n+=m,n&&c&&(n+=", "),n+=c,c===h)return n;n&&h&&(n+=", "),n+=h}return n},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(r){return r},function(r){return o.StringUtilities.format(e.i18n.everyX0Seconds(r),r)},function(r){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(r){return r=="0"?"":parseInt(r)<20?e.i18n.atX0SecondsPastTheMinute(r):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(r)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],r=this.expressionParts[2],n=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return o.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&r.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return n},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],r=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return o.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(r&&a.includes("-")&&this.expressionParts[1]!="0"){var n=Array.from(r.matchAll(/:00/g));if(n.length>1){var s=n[n.length-1].index;r=r.substring(0,s)+":59"+r.substring(s+3)}}return r},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),r=null;return this.expressionParts[5]=="*"?r="":r=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,s){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var u=parseInt(i);if(e.options.tzOffset){var m=e.expressionParts[2],c=parseInt(m)+(e.options.tzOffset?e.options.tzOffset:0);c>=24?u++:c<0&&u--,u>6?u=0:u<0&&(u=6)}var h=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[u]:a[u];if(n.indexOf("#")>-1){var f=null,C=n.substring(n.indexOf("#")+1),T=n.substring(0,n.indexOf("#"));switch(C){case"1":f=e.i18n.first(T);break;case"2":f=e.i18n.second(T);break;case"3":f=e.i18n.third(T);break;case"4":f=e.i18n.fourth(T);break;case"5":f=e.i18n.fifth(T);break}h=f+" "+h}return h},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(n),n)},function(n){var s=n.substring(0,n.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(n){var s=null;if(n.indexOf("#")>-1){var i=n.substring(n.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(n.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(n.replace("L",""));else{var u=e.expressionParts[3]!="*";s=u?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(n)}return s}),r},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),r=this.getSegmentDescription(this.expressionParts[4],"",function(n,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(n)-1]:a[parseInt(n)-1]},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0Months(n),n)},function(n){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return r},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,r=this.expressionParts[3];switch(r){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var n=r.match(/(\d{1,2}W)|(W\d{1,2})/);if(n){var s=parseInt(n[0].replace("W","")),i=s==1?this.i18n.firstWeekday():o.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=o.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var u=r.match(/L-(\d{1,2})/);if(u){var m=u[1];a=o.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(m),m);break}else{if(r=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(r,this.i18n.commaEveryDay(),function(c){return c=="L"?e.i18n.lastDay():e.i18n.dayX0?o.StringUtilities.format(e.i18n.dayX0(),c):c},function(c){return c=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(c)},function(c){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(c)},function(c){return e.i18n.commaOnDayX0OfTheMonth(c)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(r){return/^\d+$/.test(r)?new Date(parseInt(r),1).getFullYear().toString():r},function(r){return o.StringUtilities.format(e.i18n.commaEveryX0Years(r),r)},function(r){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(r){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,r,n,s,i){var u=null,m=e.indexOf("/")>-1,c=e.indexOf("-")>-1,h=e.indexOf(",")>-1;if(!e)u="";else if(e==="*")u=a;else if(!m&&!c&&!h)u=o.StringUtilities.format(i(e),r(e));else if(h){for(var f=e.split(","),C="",T=0;T<f.length;T++)if(T>0&&f.length>2&&(C+=",",T<f.length-1&&(C+=" ")),T>0&&f.length>1&&(T==f.length-1||f.length==2)&&(C+="".concat(this.i18n.spaceAnd()," ")),f[T].indexOf("/")>-1||f[T].indexOf("-")>-1){var B=f[T].indexOf("-")>-1&&f[T].indexOf("/")==-1,V=this.getSegmentDescription(f[T],a,r,n,B?this.i18n.commaX0ThroughX1:s,i);B&&(V=V.replace(", ","")),C+=V}else m?C+=this.getSegmentDescription(f[T],a,r,n,s,i):C+=r(f[T]);m?u=C:u=o.StringUtilities.format(i(e),C)}else if(m){var f=e.split("/");if(u=o.StringUtilities.format(n(f[1]),f[1]),f[0].indexOf("-")>-1){var D=this.generateRangeSegmentDescription(f[0],s,r);D.indexOf(", ")!=0&&(u+=", "),u+=D}else if(f[0].indexOf("*")==-1){var z=o.StringUtilities.format(i(f[0]),r(f[0]));z=z.replace(", ",""),u+=o.StringUtilities.format(this.i18n.commaStartingX0(),z)}}else c&&(u=this.generateRangeSegmentDescription(e,s,r));return u},t.prototype.generateRangeSegmentDescription=function(e,a,r){var n="",s=e.split("-"),i=r(s[0],1),u=r(s[1],2),m=a(e);return n+=o.StringUtilities.format(m,i,u),n},t.prototype.formatTime=function(e,a,r){var n=0,s=0;this.options.tzOffset&&(n=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+n,u=parseInt(a)+s;u>=60?(u-=60,i+=1):u<0&&(u+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var m="",c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),m=c?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var h="";return r&&(h=":".concat(("00"+r).substring(r.length))),"".concat(c?m:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+u.toString()).substring(u.toString().length)).concat(h).concat(c?"":m)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=y},336:(b,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var o=_(751),d=function(){function y(){}return y.prototype.load=function(t){t.en=new o.en},y}();p.enLocaleLoader=d},751:(b,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var _=function(){function o(){}return o.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},o.prototype.atX0MinutesPastTheHourGt20=function(){return null},o.prototype.commaMonthX0ThroughMonthX1=function(){return null},o.prototype.commaYearX0ThroughYearX1=function(){return null},o.prototype.use24HourTimeFormatByDefault=function(){return!1},o.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},o.prototype.everyMinute=function(){return"every minute"},o.prototype.everyHour=function(){return"every hour"},o.prototype.atSpace=function(){return"At "},o.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},o.prototype.at=function(){return"At"},o.prototype.spaceAnd=function(){return" and"},o.prototype.everySecond=function(){return"every second"},o.prototype.everyX0Seconds=function(){return"every %s seconds"},o.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},o.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},o.prototype.everyX0Minutes=function(){return"every %s minutes"},o.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},o.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},o.prototype.everyX0Hours=function(){return"every %s hours"},o.prototype.betweenX0AndX1=function(){return"between %s and %s"},o.prototype.atX0=function(){return"at %s"},o.prototype.commaEveryDay=function(){return", every day"},o.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},o.prototype.commaX0ThroughX1=function(){return", %s through %s"},o.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},o.prototype.first=function(){return"first"},o.prototype.second=function(){return"second"},o.prototype.third=function(){return"third"},o.prototype.fourth=function(){return"fourth"},o.prototype.fifth=function(){return"fifth"},o.prototype.commaOnThe=function(){return", on the "},o.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},o.prototype.lastDay=function(){return"the last day"},o.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},o.prototype.commaOnlyOnX0=function(){return", only on %s"},o.prototype.commaAndOnX0=function(){return", and on %s"},o.prototype.commaEveryX0Months=function(){return", every %s months"},o.prototype.commaOnlyInX0=function(){return", only in %s"},o.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},o.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},o.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},o.prototype.firstWeekday=function(){return"first weekday"},o.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},o.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},o.prototype.commaEveryX0Days=function(){return", every %s days"},o.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},o.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},o.prototype.commaEveryHour=function(){return", every hour"},o.prototype.commaEveryX0Years=function(){return", every %s years"},o.prototype.commaStartingX0=function(){return", starting %s"},o.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},o}();p.en=_},586:(b,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function _(d,y){if(!d)throw new Error(y)}var o=function(){function d(){}return d.secondRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},d.minuteRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},d.hourRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},d.dayOfMonthRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},d.monthRange=function(y,t){for(var e=y.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);_(r>=1&&r<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},d.dayOfWeekRange=function(y,t){for(var e=y.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);_(r>=0&&r<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},d}();p.default=o},910:(b,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var _=function(){function o(){}return o.format=function(d){for(var y=[],t=1;t<arguments.length;t++)y[t-1]=arguments[t];return d.replace(/%s/g,function(e){return y.shift()})},o.containsAny=function(d,y){return y.some(function(t){return d.indexOf(t)>-1})},o}();p.StringUtilities=_}},x={};function w(b){var p=x[b];if(p!==void 0)return p.exports;var _=x[b]={exports:{}};return N[b](_,_.exports,w),_.exports}var X={};return(()=>{var b=X;Object.defineProperty(b,"__esModule",{value:!0}),b.toString=void 0;var p=w(728),_=w(336);p.ExpressionDescriptor.initialize(new _.enLocaleLoader),b.default=p.ExpressionDescriptor;var o=p.ExpressionDescriptor.toString;b.toString=o})(),X})())})(ve);var Pe=ve.exports;const Fe=Ae(Pe),Ge=["title"],Ze={"flex-none":"","text-left":""},Je={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Qe={class:"truncate"},Ke={"text-xs":"",op50:""},et={key:0},tt=["onClick"],nt=K({__name:"CronCollection",props:{collection:{}},setup(q){const L=q,N=ne(),x=H(!0),w=U(()=>Fe.toString(L.collection.cron));return(X,b)=>{const p=re,_=ce;return g(),$("div",null,[v("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:w.value,onClick:b[0]||(b[0]=o=>x.value=!x.value)},[v("div",Ze,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":x.value?90:0,transition:""},null,8,["transform-rotate"])]),v("span",Je,[O(_,{class:"font-mono n-primary",textContent:A(X.collection.cron)},null,8,["textContent"]),v("span",Qe,A(w.value),1),v("span",Ke,"("+A(X.collection.tasks.length)+")",1)])],8,Ge),b[2]||(b[2]=v("div",{"x-divider":""},null,-1)),x.value?(g(),$("ul",et,[(g(!0),$(W,null,Z(X.collection.tasks,o=>(g(),$("li",{key:o},[v("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":E(N)===o}]),onClick:d=>N.value=o},A(o),11,tt),b[1]||(b[1]=v("div",{"x-divider":""},null,-1))]))),128))])):j("",!0)])}}}),rt={"h-full":"","w-full":"",flex:"~ col"},ot={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},at={flex:"~ gap2 items-center"},it={relative:"","w-full":""},st={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},ut={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},lt={class:"hidden md:block"},ct={flex:"~ gap2","mb--2":"","items-center":"",op50:""},ft={key:0,border:"b base",relative:"","n-code-block":""},pt={flex:"~ wrap","w-full":""},dt=["onClick"],vt={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},ht={key:1,"text-xs":"",op50:""},mt=K({__name:"ServerTaskDetails",props:{task:{}},emits:["openDefaultInput"],setup(q,{emit:L}){const N=q,x=L,w=H({payload:{}}),{inputDefaults:X}=se("serverRoutes"),[b,p]=ke(),_=Oe(),o=xe(),d=ie({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),y=U(()=>JSON.stringify(d.data,null,2)),t=U(()=>d.contentType.includes("application/json")?"json":"text"),e=H(!1),a=H(!1),r=Te(),n=H(),s=["json"],i=H(s[0]),u=ie({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),m=U({get:()=>u[n.value],set:k=>{u[n.value]=k}}),c=U(()=>({...D(X.value.query),...D(u.query)})),h=U(()=>({...D(X.value.headers)})),f=U(()=>Object.keys(w.value?.payload??{}).length?{...w.value}:void 0),C=U(()=>f.value?"POST":"GET"),T=U(()=>{let k=window?.location.origin;return k.charAt(k.length-1)==="/"&&(k=k.slice(0,-1)),k}),B=U(()=>{let k=new URLSearchParams(c.value).toString();k&&(k=`?${k}`);const l=`/_nitro/tasks/${N.task.name}${k}`;let M=o.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+l}),V=U(()=>T.value+B.value);function D(k){const l=Object.fromEntries(k.filter(({active:M,key:Y,value:J})=>M&&Y&&J!==void 0).map(({key:M,value:Y})=>[M,Y]));return Object.entries(l).length?l:void 0}async function z(){a.value=!0,e.value=!0;const k=Date.now();Ee("server-tasks:run",{method:C.value});try{d.data=await $fetch(V.value,{method:"POST",headers:h.value,query:c.value,body:f.value,onResponse({response:l}){d.contentType=(l.headers.get("content-type")||"").toString().toLowerCase().trim(),d.statusCode=l.status,d.error=void 0},onResponseError(l){d.error=l.response._data,d.data=l.response._data}})}catch{}e.value=!1,d.fetchTime=Date.now()-k}const ee=U(()=>{const k=[];return k.push({name:"Query",slug:"query",length:u.query.length}),k.push({name:"Body",slug:"body",length:u.body.length}),k});Re(()=>{if(i.value==="json"&&typeof w.value=="string")try{w.value=JSON.parse(w.value)}catch{}});const oe=Se("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});we([u,n],()=>{const k=oe.value?.find(l=>l.task===N.task.name);if(k){n.value||(n.value=k.tab),k.tab!==n.value&&(k.tab=n.value);const{body:l,query:M,headers:Y}=k.inputs;Object.assign(u,{body:l,query:M,headers:Y})}else{const l={task:N.task.name,tab:"query",inputs:u};oe.value.push(l),n.value||(n.value=l.tab)}},{immediate:!0,deep:!0,debounce:500});const me=Xe();return(k,l)=>{const M=ue,Y=Me,J=re,ae=pe,ye=le,ge=Ce,te=ce,_e=ze,Q=fe("tooltip");return g(),$("div",rt,[v("div",ot,[v("div",at,[G((g(),$("div",null,[O(M,{class:F(["n-badge-base n-sm",E(De)(C.value)]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:I(()=>[P(A(C.value),1)]),_:1},8,["class"])])),[[Q,`Method is ${C.value} as ${C.value==="GET"?"no":""} json body is sent`]]),v("div",it,[O(Y,{"model-value":B.value,readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),v("div",st,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:l[0]||(l[0]=S=>E(me)(V.value,"server-task-url"))},null,512),[[Q,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:l[1]||(l[1]=S=>E(r)(k.task.handler))},null,512),[[Q,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:z},{default:I(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),v("div",ut,[(g(!0),$(W,null,Z(ee.value,S=>G((g(),R(M,{key:S.slug,class:F(n.value===S.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:be=>n.value=S.slug},{default:I(()=>[O(J,{icon:E(de)[S.slug]},null,8,["icon"]),v("div",lt,[P(A(S.name)+" "+A(S?.length?`(${S.length})`:"")+" ",1),v("span",null,A(E(X)[S.slug]?.length?`(${E(X)[S.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[Q,S.name]])),128))]),O(E(b),null,{default:I(()=>[O(ae,{modelValue:m.value,"onUpdate:modelValue":l[4]||(l[4]=S=>m.value=S),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:I(()=>[E(X)[n.value]?.length?(g(),$(W,{key:0},[v("div",ct,[l[6]||(l[6]=v("div",{"w-5":"","x-divider":""},null,-1)),l[7]||(l[7]=v("div",{"flex-none":""}," Default Inputs ",-1)),O(M,{icon:"i-carbon-edit",border:!1,onClick:l[2]||(l[2]=S=>x("openDefaultInput"))}),l[8]||(l[8]=v("div",{"x-divider":""},null,-1))]),O(ae,{modelValue:E(X)[n.value],"onUpdate:modelValue":l[3]||(l[3]=S=>E(X)[n.value]=S),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),m.value?(g(),$("div",ft,[n.value==="body"?(g(),$(W,{key:0},[v("div",pt,[(g(),$(W,null,Z(s,S=>v("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":S!==i.value}),onClick:be=>i.value=S},[v("div",{class:F({op30:S!==i.value}),"font-mono":""},A(S),3)],10,dt)),64)),l[9]||(l[9]=v("div",{border:"b base","flex-auto":""},null,-1))]),i.value==="input"?(g(),R(E(p),{key:0})):i.value==="json"?(g(),R(E(je),Ve({key:1,modelValue:w.value,"onUpdate:modelValue":l[5]||(l[5]=S=>w.value=S),class:[E(_)==="dark"?"jse-theme-dark":"light","json-editor-vue of-auto text-sm outline-none"]},k.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(g(),R(E(p),{key:1}))])):j("",!0),a.value?e.value?(g(),R(ge,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:I(()=>l[11]||(l[11]=[P(" Running... ")])),_:1})):(g(),$(W,{key:3},[v("div",vt,[l[13]||(l[13]=v("div",null,"Result",-1)),d.error?(g(),R(te,{key:0,n:"red"},{default:I(()=>l[12]||(l[12]=[P(" Error ")])),_:1})):j("",!0),O(te,{n:d.error?"orange":"green",textContent:A(d.statusCode)},null,8,["n","textContent"]),d.contentType?(g(),$("code",ht,A(d.contentType),1)):j("",!0),l[14]||(l[14]=v("div",{"flex-auto":""},null,-1)),l[15]||(l[15]=v("div",{op50:""}," Tasks finished in ",-1)),O(te,{n:"green"},{default:I(()=>[P(A(d.fetchTime)+" ms ",1)]),_:1})]),O(_e,{"flex-auto":"","overflow-auto":"","py-2":"",code:y.value,lang:t.value},null,8,["code","lang"])],64)):(g(),R(ye,{key:1},{default:I(()=>[O(M,{n:"primary",onClick:z},{default:I(()=>[O(J,{icon:"carbon:send"}),l[10]||(l[10]=P(" Run task "))]),_:1})]),_:1}))])}}}),yt={"flex-none":"","text-left":""},gt={flex:"","items-center":"","text-sm":"","font-mono":""},he=K({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(q){const L=H(!0),N=ne();return(x,w)=>{const X=re,b=he;return g(),$("div",null,[v("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":E(N)===x.item.name}]),style:We({paddingLeft:`calc(0.5rem + ${x.index*1.5}em)`}),onClick:w[0]||(w[0]=p=>{L.value=!L.value,N.value=x.item.name})},[v("div",yt,[x.item.type==="collection"?(g(),R(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":L.value?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),v("span",gt,[x.item.type==="collection"?(g(),R(X,{key:0,title:`${x.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(g(),R(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),P(" "+A(x.item.name),1)])],6),w[1]||(w[1]=v("div",{"x-divider":""},null,-1)),L.value?Be(x.$slots,"default",{key:0},()=>[(g(!0),$(W,null,Z(x.item.tasks,p=>(g(),R(b,{key:p.name,item:p,index:x.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),_t={flex:"~ gap1","text-sm":""},bt={key:0,op50:""},kt={op50:""},At=K({__name:"server-tasks",setup(q){const L=H(!1),N=Ie(),x=U(()=>Object.keys(N.value?.tasks??{}).map(r=>({name:r,...N.value.tasks[r],type:"task"}))),w=U(()=>Object.entries(N.value?.scheduledTasks??{}).map(([r,n])=>({cron:r,tasks:n}))),X=ne(),{view:b,selectedTask:p,inputDefaults:_}=se("serverTasks"),o=U(()=>{!X.value&&p.value&&(X.value=p.value.name);const r=x.value.find(n=>n.name===X.value);return X.value!==p.value?.name&&r&&(p.value=r),r}),d=H(""),y=U(()=>new $e(x.value,{keys:["key","description"],shouldSort:!0})),t=U(()=>d.value?y.value.search(d.value).map(n=>n.item):x.value),e=U(()=>{const r=[],n=(i,u)=>{i.tasks||=[],i.tasks.push(u)},s=(i,u)=>{const m=u?u.tasks?.find(h=>h.name===i):r.find(h=>h.name===i);if(m)return{...m,type:"collection"};const c={name:i,handler:i,description:"",type:"collection",tasks:[]};return u?n(u,c):r.push(c),c};return t.value.forEach(i=>{let u;const m={...i,type:"task"},h=i.name.split(":").concat();h.length>0&&h[h.length-1].includes(".")&&h.pop(),h.forEach(f=>{u=s(f,u)}),u?n(u,m):r.push(m)}),r});function a(){b.value=b.value==="tree"?"list":"tree"}return(r,n)=>{const s=ue,i=Ne,u=nt,m=Ue,c=mt,h=Le,f=le,C=pe,T=qe,B=Ye,V=fe("tooltip");return g(),$(W,null,[O(m,{"storage-key":"tab-server-tasks"},{left:I(()=>[O(m,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:I(()=>[O(i,{search:d.value,"onUpdate:search":n[1]||(n[1]=D=>d.value=D),pb2:""},{actions:I(()=>[G(O(s,{"text-lg":"",icon:E(b)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:n[0]||(n[0]=D=>L.value=!L.value)},null,512),[[V,"Default Inputs"]])]),default:I(()=>[v("div",_t,[d.value?(g(),$("span",bt,A(t.value.length)+" matched · ",1)):j("",!0),v("span",kt,A(x.value?.length)+" tasks in total",1)])]),_:1},8,["search"]),(g(!0),$(W,null,Z(E(b)==="tree"?e.value:t.value,D=>(g(),R(he,{key:D.name,item:D},null,8,["item"]))),128))]),right:I(()=>[n[6]||(n[6]=v("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1)),v("div",null,[v("ul",null,[(g(!0),$(W,null,Z(w.value,D=>(g(),$("li",{key:D.cron},[O(u,{collection:D},null,8,["collection"])]))),128))])])]),_:1})]),right:I(()=>[(g(),R(He,{max:10},[o.value?(g(),R(c,{key:o.value.name,task:o.value,onOpenDefaultInput:n[2]||(n[2]=D=>L.value=!0)},null,8,["task"])):j("",!0)],1024)),o.value?j("",!0):(g(),R(f,{key:0},{default:I(()=>[O(h,{px6:"",py2:""},{default:I(()=>n[7]||(n[7]=[v("span",{op75:""},"Select a task to start",-1)])),_:1})]),_:1}))]),_:1}),O(B,{modelValue:L.value,"onUpdate:modelValue":n[4]||(n[4]=D=>L.value=D),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:n[5]||(n[5]=D=>L.value=!1)},{default:I(()=>[v("div",null,[n[8]||(n[8]=v("div",{p4:"",border:"b base"},[v("span",{"text-lg":""},"Default Inputs"),v("br"),v("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1)),O(T,{text:`Query ${E(_).query.length?`(${E(_).query.length})`:""}`,padding:!1,icon:E(de).query},{default:I(()=>[O(C,{modelValue:E(_).query,"onUpdate:modelValue":n[3]||(n[3]=D=>E(_).query=D),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{At as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as J}from"./nicon-title.vue-ef3vf9hr.js";import{k as F,Q as r,S as b,a8 as X,ay as ee,u as o,U as l,y as f,Z as le,V as ne,w as M,a0 as t,F as k,ab as h,$ as s,O as A,a5 as _,Y as P,W as j,a6 as B}from"./vendor/json-editor-vue-f126ciji.js";import{y as te,b as oe,Q as ae,bg as se,a2 as ie,r as ue,e as de,W as re,t as I,bc as pe,bh as me}from"./nxp3p1l5.js";import{_ as fe}from"./nselect.vue-kb4ychx8.js";import{_ as ve}from"./ncheckbox.vue-ir8t2t9x.js";import{_ as be}from"./nlink.vue-eq8gk3iz.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";const ce=["checked","disabled"],ge=["disabled"],xe=F({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(z,{emit:g}){const d=te(z,"modelValue",g,{passive:!0});return(p,a)=>(r(),b("label",{class:"n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled",checked:o(d)||null,disabled:p.disabled||null},[X(l("input",{"onUpdate:modelValue":a[0]||(a[0]=v=>f(d)?d.value=v:null),type:"checkbox",class:"peer absolute op0",disabled:p.disabled,onKeypress:a[1]||(a[1]=le(v=>d.value=!o(d),["enter"]))},null,40,ge),[[ee,o(d)]]),a[2]||(a[2]=l("div",{class:"n-switch-slider n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},[l("div",{class:"n-checked:n-switch-thumb-checked n-switch-thumb n-transition"})],-1)),ne(p.$slots,"default")],8,ce))}}),ye={px8:"",py6:""},ke={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},Ve={flex:"~ col gap-2"},we={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},_e={capitalize:"",op75:""},Ce={flex:"~ col gap-2"},Se=["value"],Te=["value"],$e={flex:"~ gap-2"},Ne={flex:"~ gap-2"},Le=F({__name:"settings",setup(z){const{interactionCloseOnOutsideClick:g,showPanel:C,showHelpButtons:S,scale:d,hiddenTabs:p,pinnedTabs:a,hiddenTabCategories:v,minimizePanelInactive:T,sidebarExpanded:$,sidebarScrollable:D}=oe("ui"),V=ae(),R=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],W=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],H=se(ie());function K(i,e){e?p.value=p.value.filter(m=>m!==i):p.value.push(i)}function Q(i,e){e?v.value=v.value.filter(m=>m!==i):v.value.push(i)}function Y(i){a.value.includes(i)?a.value=a.value.filter(e=>e!==i):a.value.push(i)}function E(i,e){const m=a.value.indexOf(i);if(m===-1)return;const x=m+e;if(x<0||x>=a.value.length)return;const w=[...a.value];w.splice(m,1),w.splice(x,0,i),a.value=w}async function Z(){confirm("Are you sure you to reset all local settings & state? The app will reload.")&&(Object.keys(localStorage).forEach(i=>{i.startsWith("nuxt-devtools-")&&localStorage.removeItem(i)}),await ue.clearOptions(),V.value?.app?.reload?.(),window.location.reload())}return M(()=>{V.value&&(V.value.app.frameState.value.closeOnOutsideClick=g.value)}),M(()=>{V.value&&(V.value.app.frameState.value.minimizePanelInactive=T.value)}),(i,e)=>{const m=J,x=xe,w=pe,c=de,N=re,q=me,L=fe,y=ve,G=be;return r(),b("div",ye,[t(m,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),l("div",ke,[l("div",Ve,[e[10]||(e[10]=l("h3",{"text-lg":""}," Tabs ",-1)),(r(!0),b(k,null,h(o(H),([n,U])=>(r(),b(k,{key:n},[U.length?(r(),A(N,{key:0,p3:"",flex:"~ col gap-1",class:P(o(v).includes(n)?"op50 grayscale":"")},{default:s(()=>[t(x,{flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-lime":"","model-value":!o(v).includes(n),"onUpdate:modelValue":u=>Q(n,u)},{default:s(()=>[l("div",we,[l("span",_e,_(n),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e[9]||(e[9]=l("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),(r(!0),b(k,null,h(U,u=>(r(),A(x,{key:u.name,flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-primary":"","model-value":!o(p).includes(u.name),"onUpdate:modelValue":O=>K(u.name,O)},{default:s(()=>[l("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"",class:P(o(p).includes(u.name)?"op25":"")},[t(w,{"text-xl":"",icon:u.icon,title:u.title},null,8,["icon","title"]),l("span",null,_(u.title),1),e[8]||(e[8]=l("div",{"flex-auto":""},null,-1)),o(a).includes(u.name)?(r(),b(k,{key:0},[t(c,{icon:"i-carbon-caret-up",disabled:o(a).indexOf(u.name)===0,border:!1,onClick:O=>E(u.name,-1)},null,8,["disabled","onClick"]),t(c,{icon:"i-carbon-caret-down",disabled:o(a).indexOf(u.name)===o(a).length-1,border:!1,onClick:O=>E(u.name,1)},null,8,["disabled","onClick"])],64)):j("",!0),t(c,{icon:o(a).includes(u.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op50",border:!1,onClick:O=>Y(u.name)},null,8,["icon","onClick"])],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):j("",!0)],64))),128))]),l("div",Ce,[e[27]||(e[27]=l("h3",{"text-lg":""}," Appearance ",-1)),t(N,{p4:"",flex:"~ col gap-2"},{default:s(()=>[l("div",null,[t(q,null,{default:s(({toggle:n,isDark:U})=>[t(c,{n:"primary",onClick:n},{default:s(()=>[e[11]||(e[11]=l("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),B(" "+_(U.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),e[14]||(e[14]=l("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),e[15]||(e[15]=l("p",null,"UI Scale",-1)),t(L,{modelValue:o(d),"onUpdate:modelValue":e[0]||(e[0]=n=>f(d)?d.value=n:null),n:"primary"},{default:s(()=>[(r(),b(k,null,h(R,n=>l("option",{key:n[0],value:n[1]},_(n[0]),9,Se)),64))]),_:1},8,["modelValue"]),e[16]||(e[16]=l("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),t(y,{modelValue:o($),"onUpdate:modelValue":e[1]||(e[1]=n=>f($)?$.value=n:null),"n-primary":""},{default:s(()=>e[12]||(e[12]=[l("span",null," Expand Sidebar ",-1)])),_:1},8,["modelValue"]),t(y,{modelValue:o(D),"onUpdate:modelValue":e[2]||(e[2]=n=>f(D)?D.value=n:null),disabled:o($),"n-primary":""},{default:s(()=>e[13]||(e[13]=[l("span",null," Scrollable Sidebar ",-1)])),_:1},8,["modelValue","disabled"])]),_:1}),e[28]||(e[28]=l("h3",{mt2:"","text-lg":""}," Features ",-1)),t(N,{p4:"",flex:"~ col gap-2"},{default:s(()=>[t(y,{modelValue:o(g),"onUpdate:modelValue":e[3]||(e[3]=n=>f(g)?g.value=n:null),"n-primary":""},{default:s(()=>e[17]||(e[17]=[l("span",null,"Close DevTools when clicking outside",-1)])),_:1},8,["modelValue"]),t(y,{modelValue:o(S),"onUpdate:modelValue":e[4]||(e[4]=n=>f(S)?S.value=n:null),"n-primary":""},{default:s(()=>e[18]||(e[18]=[l("span",null,"Show help buttons",-1)])),_:1},8,["modelValue"]),t(y,{modelValue:o(C),"onUpdate:modelValue":e[5]||(e[5]=n=>f(C)?C.value=n:null),"n-primary":""},{default:s(()=>e[19]||(e[19]=[l("span",null,"Always show the floating panel",-1)])),_:1},8,["modelValue"]),e[20]||(e[20]=l("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),e[21]||(e[21]=l("p",null,"Minimize floating panel on inactive",-1)),t(L,{modelValue:o(T),"onUpdate:modelValue":e[6]||(e[6]=n=>f(T)?T.value=n:null),modelModifiers:{number:!0},"n-primary":""},{default:s(()=>[(r(),b(k,null,h(W,n=>l("option",{key:n[0],value:n[1]},_(n[0]),9,Te)),64))]),_:1},8,["modelValue"])]),_:1}),e[29]||(e[29]=l("h3",{mt2:"","text-lg":""}," Feedback ",-1)),t(N,{p4:"",flex:"~ col gap-2"},{default:s(()=>[t(y,{modelValue:o(I),"onUpdate:modelValue":e[7]||(e[7]=n=>f(I)?I.value=n:null),"n-primary":""},{default:s(()=>[e[22]||(e[22]=l("span",null,"Send anonymous statistics, help us improving DevTools",-1)),t(G,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op50:"",textContent:"Learn more"})]),_:1},8,["modelValue"]),e[25]||(e[25]=l("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),l("div",$e,[t(c,{n:"blue",to:"https://github.com/nuxt/devtools/discussions/29",target:"_blank"},{default:s(()=>e[23]||(e[23]=[l("div",{"i-carbon-data-enrichment":""},null,-1),B(" Ideas & Suggestions ")])),_:1}),t(c,{n:"orange",to:"https://github.com/nuxt/devtools/issues",target:"_blank"},{default:s(()=>e[24]||(e[24]=[l("div",{"i-carbon-debug":""},null,-1),B(" Bug Reports ")])),_:1})])]),_:1}),e[30]||(e[30]=l("h3",{mt2:"","text-lg":""}," Debug ",-1)),l("div",Ne,[t(c,{n:"orange",onClick:Z},{default:s(()=>e[26]||(e[26]=[l("div",{"i-carbon-breaking-change":""},null,-1),B(" Reset Local Settings & State ")])),_:1})])])])])}}});export{Le as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b6 as B,z as E,r as f,h as p,e as $,b8 as V,n as D,D as F,a5 as z}from"./nxp3p1l5.js";import{x as I,a as M}from"./vendor/xterm-h0ftnevm.js";import{k as y,b as g,x as P,Q as t,S as d,U as c,a0 as A,O as m,W as v,a5 as _,F as N,l as R,w as L,u as w,ab as S,Y as h,ah as j,a6 as C,$ as q}from"./vendor/json-editor-vue-f126ciji.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.js";const O={border:"t base",flex:"~ gap-2","items-center":"",p2:""},Q={"text-sm":"",op50:""},U=y({__name:"TerminalView",props:{id:{}},setup(b){const n=b,i=g(),r=B(),o=g();let a;P(async()=>{a=new I.Terminal({convertEol:!0,cols:80,screenReaderMode:!0});const u=new M.FitAddon;a.loadAddon(u),a.open(i.value),u.fit(),E(window,"resize",()=>{u.fit()}),o.value=await f.getTerminalDetail(await p(),n.id),o.value?.buffer&&a.write(o.value.buffer),r.hook("devtools:terminal:data",({id:e,data:l})=>{e===n.id&&a.write(l)})});async function s(){f.runTerminalAction(await p(),n.id,"clear"),a?.clear()}async function k(){f.runTerminalAction(await p(),n.id,"restart")}async function x(){f.runTerminalAction(await p(),n.id,"terminate")}return(u,e)=>{const l=$;return t(),d(N,null,[c("div",{ref_key:"container",ref:i,"h-full":"","w-full":"","of-auto":"","bg-black":""},null,512),c("div",O,[A(l,{title:"Clear",icon:"i-carbon-clean",border:!1,onClick:e[0]||(e[0]=T=>s())}),o.value?.restartable?(t(),m(l,{key:0,title:"Restart",icon:"carbon-renew",border:!1,onClick:e[1]||(e[1]=T=>k())})):v("",!0),o.value?.terminatable?(t(),m(l,{key:1,title:"Terminate",icon:"carbon-delete",border:!1,onClick:e[2]||(e[2]=T=>x())})):v("",!0),c("span",Q,_(o.value?.description),1)])],64)}}}),W={key:0,"h-full":"","w-full":"","of-hidden":"",grid:"~ rows-[max-content_1fr_max-content]"},Y={flex:"~",border:"b base","flex-1":"","items-center":"","n-navbar-glass":""},G=["onClick"],H={key:1,p10:""},J={key:1,"h-full":"",flex:"","items-center":"","justify-center":""},K=y({__name:"TerminalPage",setup(b){const n=V(),i=D(),r=R(()=>n.value?.find(a=>a.id===i.value));async function o(a){f.runTerminalAction(await p(),a,"remove")}return L(()=>{!i.value&&n.value?.length&&(i.value=n.value[0].id)}),(a,s)=>{const k=F,x=$,u=U;return w(n)?.length?(t(),d("div",W,[c("div",Y,[(t(!0),d(N,null,S(w(n),e=>(t(),d("button",{key:e.id,border:"r base",flex:"~ gap-2","items-center":"",px3:"",py2:"",class:h(e.id===r.value?.id?"bg-active":""),onClick:l=>i.value=e.id},[e.icon?(t(),m(k,{key:0,icon:e.icon},null,8,["icon"])):v("",!0),c("span",{class:h(e.id===r.value?.id?"":"op50")},_(e.name)+_(e.isTerminated?" (terminated)":""),3),e.isTerminated?(t(),m(x,{key:1,icon:"carbon-close","mx--2":"",border:!1,onClick:j(l=>o(e.id),["stop"])},null,8,["onClick"])):v("",!0)],10,G))),128))]),r.value?(t(),m(u,{id:r.value.id,key:r.value.id},null,8,["id"])):(t(),d("div",H,[s[0]||(s[0]=C(" Terminal ")),c("code",null,_(w(i)),1),s[1]||(s[1]=C(" not found "))]))])):(t(),d("div",J,s[2]||(s[2]=[c("em",{op50:""},"No terminal attached",-1)])))}}}),ae=y({__name:"terminals",setup(b){return(n,i)=>{const r=K,o=z;return t(),m(o,null,{default:q(()=>[A(r)]),_:1})}}});export{ae as default};
|