@nuxt/devtools-nightly 2.5.0-beta.2-29150288.5c8decd → 2.6.0-29190223.62443ec
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 +95 -16
- package/dist/client/200.html +23 -23
- package/dist/client/404.html +23 -23
- package/dist/client/_nuxt/__blank-n1wcnoye.js +1 -0
- package/dist/client/_nuxt/{analyze-build-c8n8w1is.js → analyze-build-lua220f1.js} +1 -1
- package/dist/client/_nuxt/{assets-f19dtlim.js → assets-chzq84q1.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/929e0531-d885-4b16-81d1-f4d4628fb1dc.json +1 -0
- package/dist/client/_nuxt/{client-jlcyzfwz.js → client-oeqdl4pb.js} +1 -1
- package/dist/client/_nuxt/{code-diff.vue-iuef2e0d.js → code-diff.vue-gjjpd6bh.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-lcv571et.js → code-snippets.vue-owujsx1h.js} +1 -1
- package/dist/client/_nuxt/{components-e0sl8q7l.js → components-kpbimro7.js} +1 -1
- package/dist/client/_nuxt/{composable-item.vue-cywhx0x4.js → composable-item.vue-otlqsaxp.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-o9cvmxyw.js → custom-_name_-mpec33a6.js} +1 -1
- package/dist/client/_nuxt/{data-schema-button.vue-mqkicq6m.js → data-schema-button.vue-c5emhda6.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-hogf5xu5.js → data-schema-drawer-e6tcdq2j.js} +1 -1
- package/dist/client/_nuxt/{debug-ivuffd74.js → debug-lafv4s98.js} +1 -1
- package/dist/client/_nuxt/{default-pbh9q2kx.js → default-lunt1270.js} +1 -1
- package/dist/client/_nuxt/{duration-display.vue-l7hutejt.js → duration-display.vue-mr4ha0rw.js} +1 -1
- package/dist/client/_nuxt/{entry.css-gmgc8zz6.css → entry.css-mloq4mxl.css} +1 -1
- package/dist/client/_nuxt/{error-404-co9kq9bc.js → error-404-kzd4p30i.js} +1 -1
- package/dist/client/_nuxt/error-404.css-nshsg2y9.css +1 -0
- package/dist/client/_nuxt/{error-500-ch0d12ts.js → error-500-l9vu675f.js} +1 -1
- package/dist/client/_nuxt/error-500.css-oevnk76c.css +1 -0
- package/dist/client/_nuxt/{error-k6e8l2nx.js → error-ecy3gfvz.js} +1 -1
- package/dist/client/_nuxt/{filepath-item.vue-nec1tiua.js → filepath-item.vue-ynkfzj3r.js} +1 -1
- package/dist/client/_nuxt/full-iq99sd10.js +1 -0
- package/dist/client/_nuxt/{help-fab.vue-j4hsr7fl.js → help-fab.vue-cj92m15n.js} +1 -1
- package/dist/client/_nuxt/{hooks-jal8g45d.js → hooks-ftbd6g7y.js} +1 -1
- package/dist/client/_nuxt/{imports-g135ykem.js → imports-lkdpl84i.js} +1 -1
- package/dist/client/_nuxt/{index-fmhuvr9r.js → index-eu1ra0nc.js} +1 -1
- package/dist/client/_nuxt/{launch-page.vue-cj56ksf6.js → launch-page.vue-pbah0k38.js} +1 -1
- package/dist/client/_nuxt/{modules-jbycp970.js → modules-d2xomait.js} +1 -1
- package/dist/client/_nuxt/nbadge-m508oo8v.js +1 -0
- package/dist/client/_nuxt/{ncheckbox.vue-ez8ceehj.js → ncheckbox.vue-b4bppou0.js} +1 -1
- package/dist/client/_nuxt/{ncode-block.vue-lge6rogf.js → ncode-block.vue-ctkw4rc7.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-nl4kbgle.js → ndrawer.vue-onjco0e1.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-j5j0m6g1.js → ndropdown.vue-guq41hch.js} +1 -1
- package/dist/client/_nuxt/{nicon-title.vue-d27ih16g.js → nicon-title.vue-ejocqf9t.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-chc4mw8i.js → nlink.vue-gjd0rduh.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown.vue-isat7p33.js → nmarkdown.vue-mk2gi3ky.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-m6u99xdq.js → nnavbar.vue-mxygea1z.js} +1 -1
- package/dist/client/_nuxt/none-ifj445wg.js +1 -0
- package/dist/client/_nuxt/nsection-block-cek050fo.js +1 -0
- package/dist/client/_nuxt/nsection-block.css-h1lgpwgm.css +1 -0
- package/dist/client/_nuxt/{nselect-tabs.vue-cv6z1jnp.js → nselect-tabs.vue-b5ba9eki.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-d6agf93x.js → nselect.vue-abs64kz7.js} +1 -1
- package/dist/client/_nuxt/{nswitch.vue-f07mzo8x.js → nswitch.vue-bpoo3j7g.js} +1 -1
- package/dist/client/_nuxt/ok52i9pn.js +15 -0
- package/dist/client/_nuxt/{open-graph-nws9tgvm.js → open-graph-dyrmfp1z.js} +2 -2
- package/dist/client/_nuxt/{open-graph.css-e21qzmvj.css → open-graph.css-me89qec1.css} +1 -1
- package/dist/client/_nuxt/overview-mxnxq79i.js +1 -0
- package/dist/client/_nuxt/{pages-f84avxfp.js → pages-ojvzvdyj.js} +1 -1
- package/dist/client/_nuxt/{payload-boaifw7u.js → payload-b2lctmvq.js} +1 -1
- package/dist/client/_nuxt/pinia-nkeryynx.js +1 -0
- package/dist/client/_nuxt/{plugins-em732omz.js → plugins-kjs76eyy.js} +1 -1
- package/dist/client/_nuxt/{render-tree-iwcxj33n.js → render-tree-j0eh1eoz.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-ey41sy4o.js → runtime-configs-l8s2dagx.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-e88v81qh.js → server-discovery-hgaojij9.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-clci6g9v.js → server-route-inputs.vue-jqzlxb15.js} +1 -1
- package/dist/client/_nuxt/{server-routes-gecli2i0.js → server-routes-b9cu2jem.js} +1 -1
- package/dist/client/_nuxt/{server-tasks-c37ave67.js → server-tasks-gc91dzyy.js} +1 -1
- package/dist/client/_nuxt/{settings-e0w9xf3z.js → settings-buingl5k.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list.vue-g9vgsi1y.js → stacktrace-list.vue-due6t2z1.js} +1 -1
- package/dist/client/_nuxt/{state-components-finoop9s.js → state-components-k3ywj6u4.js} +1 -1
- package/dist/client/_nuxt/{state-editor.vue-fvagydt1.js → state-editor.vue-lls9ykmk.js} +1 -1
- package/dist/client/_nuxt/{state-modules-jhjy9g0e.js → state-modules-f1kloxi2.js} +1 -1
- package/dist/client/_nuxt/{storage-glu460fx.js → storage-h0f42vz6.js} +1 -1
- package/dist/client/_nuxt/{terminals-gid5bjyv.js → terminals-nncpfcjm.js} +1 -1
- package/dist/client/_nuxt/{timeline-b26y3n4n.js → timeline-efm8teax.js} +1 -1
- package/dist/client/_nuxt/timeline.css-otdwftpy.css +1 -0
- package/dist/client/_nuxt/{unocss-runtime-n76zvjc0.js → unocss-runtime-cdytntxi.js} +1 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-m9gzt21j.js +3869 -0
- package/dist/client/_nuxt/vendor/{quicktype-core-lhaz4hgj.js → quicktype-core-dsrweb93.js} +3 -3
- package/dist/client/_nuxt/vendor/{shiki-hjqm7vcp.js → shiki-imfwxqoq.js} +16 -16
- package/dist/client/_nuxt/vendor/unocss-oyl7opas.js +2 -0
- package/dist/client/_nuxt/vendor/vis-n7jjo36l.js +89 -0
- package/dist/client/_nuxt/{virtual-files-k71pao6g.js → virtual-files-fa3xyz9v.js} +1 -1
- package/dist/client/_nuxt/{vue-devtools-mn79zusm.js → vue-devtools-lx1d4jqv.js} +2 -2
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-nuoya9vo.js → vue-virtual-scroller.esm-k5helfir.js} +1 -1
- package/dist/client/index.html +23 -23
- package/dist/module.json +1 -1
- package/dist/webcomponents/index.mjs +15 -15
- package/package.json +36 -36
- package/dist/client/_nuxt/__blank-mumgdw29.js +0 -1
- package/dist/client/_nuxt/builds/meta/27eb4014-aa91-4d5c-a619-e937951c559e.json +0 -1
- package/dist/client/_nuxt/error-404.css-elh6uwdu.css +0 -1
- package/dist/client/_nuxt/error-500.css-bxkdntg7.css +0 -1
- package/dist/client/_nuxt/full-bpxo9637.js +0 -1
- package/dist/client/_nuxt/h0tvruov.js +0 -15
- package/dist/client/_nuxt/nbadge-j82qwdzi.js +0 -1
- package/dist/client/_nuxt/none-abku8qqc.js +0 -1
- package/dist/client/_nuxt/nsection-block-mv0zng0n.js +0 -1
- package/dist/client/_nuxt/nsection-block.css-e7kbjm7k.css +0 -1
- package/dist/client/_nuxt/overview-i4bvonsm.js +0 -1
- package/dist/client/_nuxt/pinia-kf0d3irp.js +0 -1
- package/dist/client/_nuxt/timeline.css-pdb8jvzb.css +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-pb6xqf2y.js +0 -3857
- package/dist/client/_nuxt/vendor/unocss-k776m6tm.js +0 -2
- package/dist/client/_nuxt/vendor/vis-gqe7ml2e.js +0 -98
package/dist/client/_nuxt/{data-schema-button.vue-mqkicq6m.js → data-schema-button.vue-c5emhda6.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as r,_ as c}from"./
|
|
1
|
+
import{u as r,_ as c}from"./ok52i9pn.js";import{p as s,ai as i,ac as p,a3 as _,V as m}from"./vendor/json-editor-vue-m9gzt21j.js";const D=s({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(u){const t=r();return(o,e)=>{const n=c,a=i("tooltip");return p((_(),m(n,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=l=>t.value=o.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{D as _};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as A}from"./nselect.vue-
|
|
1
|
+
import{_ as A}from"./nselect.vue-abs64kz7.js";import{u as E,c as F,a as W,_ as q}from"./ok52i9pn.js";import{_ as z}from"./nswitch.vue-bpoo3j7g.js";import{_ as J}from"./ndropdown.vue-guq41hch.js";import{_ as O}from"./ncode-block.vue-ctkw4rc7.js";import{_ as G}from"./ndrawer.vue-onjco0e1.js";import{A as h,d as x}from"./vendor/quicktype-core-dsrweb93.js";import{p as H,k,q as N,x as C,V as c,U as m,a3 as n,a5 as d,a4 as r,S as i,J as f,F as D,ag as S,u as _,aa as V,ae as K}from"./vendor/json-editor-vue-m9gzt21j.js";import"./vendor/unocss-oyl7opas.js";import"./vendor/shiki-imfwxqoq.js";import"./client-oeqdl4pb.js";const M={border:"b base",flex:"~ items-center gap-2",sticky:"","left-0":"","right-0":"","top-0":"","z-1":"","bg-base":"",p3:""},P={key:0,flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--2":"","h-4":"","w-4":"","rounded-full":"","bg-lime:30":"","text-8px":""},Q={flex:"~ col","w-100":"","of-auto":"",py2:""},R={"text-xs":"",capitalize:"",op75:""},ie=H({__name:"DataSchemaDrawer",setup(X){const s=E(),b=k(0),l=k("TypeScript"),v=N(()=>h.all.find(e=>e.displayName===l.value)),o=k(v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")),y=F(async()=>{if(b.value,!s.value)return"";const e=x.jsonInputForTargetLanguage(l.value);await e.addSource({name:s.value.name??"Data",samples:[s.value.input]});const t=new x.InputData;return t.addInput(e),(await x.quicktype({inputData:t,lang:l.value,rendererOptions:o.value?.reduce((u,p)=>(u[p.name]=p.defaultValue,u),{})})).lines.join(`
|
|
2
2
|
`)}),j=N(()=>{const e=l.value.toLocaleLowerCase();return e.startsWith("javascript")?"javascript":e.startsWith("json")?"json":e.startsWith("typescript")?"typescript":e});C(o,()=>{b.value++},{deep:!0}),C(l,()=>{o.value=v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")});const $=W();function B(){$(y.value||"")}return(e,t)=>{const w=A,u=q,p=z,L=J,I=O,T=G;return v.value?(n(),c(K,{key:0,to:"body"},[d(T,{"model-value":!!_(s)?.input,"auto-close":"","max-w-screen":"","w-2xl":"","n-code-block":"",onClose:t[2]||(t[2]=a=>s.value=null)},{default:r(()=>[i("div",M,[t[3]||(t[3]=i("p",{"mr-2":""}," Schema ",-1)),d(w,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),n:"xs primary"},{default:r(()=>[(n(!0),f(D,null,S(_(h.all),a=>(n(),f("option",{key:a.displayName},V(a.displayName),1))),128))]),_:1},8,["modelValue"]),o.value?.length?(n(),c(L,{key:0,n:"sm lime"},{trigger:r(({click:a})=>[d(u,{icon:"carbon-settings","h-full":"",onClick:g=>a()},null,8,["onClick"]),o.value?(n(),f("span",P,V(o.value.length),1)):m("",!0)]),default:r(()=>[i("div",Q,[(n(!0),f(D,null,S(o.value,(a,g)=>(n(),c(p,{key:a.name,modelValue:o.value[g].defaultValue,"onUpdate:modelValue":U=>o.value[g].defaultValue=U,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:r(()=>[i("span",R,V(a.description),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):m("",!0),t[4]||(t[4]=i("div",{"flex-auto":""},null,-1)),d(u,{icon:"carbon-copy","mr-6":"","h-full":"",onClick:t[1]||(t[1]=a=>B())})]),_(y)?(n(),c(I,{key:0,lang:j.value,code:_(y)},null,8,["lang","code"])):m("",!0)]),_:1},8,["model-value"])])):m("",!0)}}});export{ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as D}from"./nsection-block-
|
|
1
|
+
import{_ as D}from"./nsection-block-cek050fo.js";import{_ as H}from"./ncheckbox.vue-b4bppou0.js";import{g as M}from"./color-mt9xuhgy.js";import{_ as I}from"./nbadge-m508oo8v.js";import{p as V,q as S,V as y,a3 as l,a4 as d,ab as P,W as j,aa as k,X as z,k as p,J as u,F as x,S as t,a5 as s,U as B,ag as N,Z as E,u as $}from"./vendor/json-editor-vue-m9gzt21j.js";import{_ as W,p as O}from"./ok52i9pn.js";import{_ as q}from"./filepath-item.vue-ynkfzj3r.js";import{_ as J}from"./ncode-block.vue-ctkw4rc7.js";import"./nicon-title.vue-ejocqf9t.js";import"./vendor/unocss-oyl7opas.js";import"./vendor/shiki-imfwxqoq.js";import"./client-oeqdl4pb.js";const K=V({__name:"NBadgeHashed",props:{text:{}},setup(_){const i=_,c=S(()=>{const a=M(i.text,50,60),r=M(i.text,50,60,.05);return{color:a,background:r}});return(a,r)=>(l(),y(I,{style:z(c.value)},{default:d(()=>[P(k(a.text),1),j(a.$slots,"default")]),_:3},8,["style"]))}}),L={flex:"~ gap-2 col",mb4:""},X={flex:"~ gap-3 items-center"},Z={key:0,flex:"~ gap-1","items-center":"",p1:"",border:"~ base rounded"},A={"max-w-full":"","of-auto":""},G={"text-center":"",op50:""},Q={flex:"~",px4:""},Y={key:0,op50:""},ee={px2:"","text-center":""},te={"of-auto":""},oe=V({__name:"DebugModuleMutationRecords",props:{moduleMutationRecords:{}},setup(_){const i=_;function c(n){return n.startsWith("/")||n.match(/^[a-z]:[\\/]/i)}const a=p(!1),r=p(!1),v=p(!1),b=p(!1),w=p(!1),m=p(""),R=S(()=>{let n=i.moduleMutationRecords;return a.value||(n=n.filter(e=>!e.name.startsWith("nuxt:")&&e.name!=="@nuxt/devtools")),r.value||(n=n.filter(e=>e.keys.join(".")!=="build.templates")),v.value||(n=n.filter(e=>e.keys.join(".")!=="build.transpile")),b.value||(n=n.filter(e=>e.keys.join(".")!=="plugins")),w.value||(n=n.filter(e=>e.method||e.value!=="[]"&&e.value!=="{}")),m.value&&(n=n.filter(e=>e.name===m.value)),n});return(n,e)=>{const f=H,g=K,F=W,U=q,T=J;return l(),u(x,null,[t("div",L,[t("div",X,[s(f,{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=o=>a.value=o),n:"primary"},{default:d(()=>e[6]||(e[6]=[t("span",{"ws-nowrap":"",op75:""},"Builtin Modules",-1)])),_:1,__:[6]},8,["modelValue"]),s(f,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=o=>r.value=o),n:"primary"},{default:d(()=>e[7]||(e[7]=[t("span",{"ws-nowrap":"",op75:""},"Templates",-1)])),_:1,__:[7]},8,["modelValue"]),s(f,{modelValue:v.value,"onUpdate:modelValue":e[2]||(e[2]=o=>v.value=o),n:"primary"},{default:d(()=>e[8]||(e[8]=[t("span",{"ws-nowrap":"",op75:""},"Transpile",-1)])),_:1,__:[8]},8,["modelValue"]),s(f,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=o=>b.value=o),n:"primary"},{default:d(()=>e[9]||(e[9]=[t("span",{"ws-nowrap":"",op75:""},"Plugins",-1)])),_:1,__:[9]},8,["modelValue"]),s(f,{modelValue:w.value,"onUpdate:modelValue":e[4]||(e[4]=o=>w.value=o),n:"primary"},{default:d(()=>e[10]||(e[10]=[t("span",{"ws-nowrap":"",op75:""},"Empty Initial",-1)])),_:1,__:[10]},8,["modelValue"]),m.value?(l(),u("div",Z,[s(g,{"font-mono":"",text:m.value},null,8,["text"]),s(F,{icon:"carbon-close",border:!1,onClick:e[5]||(e[5]=o=>m.value="")})])):B("",!0)])]),t("table",A,[e[11]||(e[11]=t("thead",{border:"b base"},[t("tr",null,[t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Index "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Module "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Key Path "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Method "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Value ")])],-1)),t("tbody",null,[(l(!0),u(x,null,N(R.value,o=>(l(),u("tr",{key:n.moduleMutationRecords.indexOf(o),border:"b dashed transparent hover:base"},[t("td",G,[t("div",null,k(n.moduleMutationRecords.indexOf(o)+1),1)]),t("td",null,[o.name&&c(o.name)?(l(),y(U,{key:0,filepath:o.name},null,8,["filepath"])):(l(),y(g,{key:1,role:"button","font-mono":"",text:o.name,onClick:h=>m.value=o.name},null,8,["text","onClick"]))]),t("td",null,[t("code",Q,[(l(!0),u(x,null,N(o.keys,(h,C)=>(l(),u(x,{key:C},[t("span",null,k(h),1),C<o.keys.length-1?(l(),u("span",Y," . ")):B("",!0)],64))),128))])]),t("td",ee,[s(g,{"font-mono":"",text:o.method||"=",class:E(o.method?"":"saturate-0")},null,8,["text","class"])]),t("td",te,[s(T,{code:String(o.value),lang:"ts","grammar-context-code":"let a = ","ws-normal":"","break-all":"",py1:"",lines:!1,inline:!0},null,8,["code"])])]))),128))])])],64)}}}),ne={key:0,p6:""},le={key:1},ve=V({__name:"debug",setup(_){const i=O();return(c,a)=>{const r=D;return $(i)?(l(),u("div",le,[s(r,{icon:"carbon-container-image-push-pull",text:"Module Mutation Records",description:"Records of module mutations to nuxt options"},{default:d(()=>[s(oe,{"module-mutation-records":$(i).moduleMutationRecords||[]},null,8,["module-mutation-records"])]),_:1})])):(l(),u("div",ne,a[0]||(a[0]=[t("div",null,"No Debug Context Found",-1),t("div",null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)])))}}});export{ve as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"./
|
|
1
|
+
import{b as o}from"./ok52i9pn.js";import{J as t,a3 as s,S as r,W as a}from"./vendor/json-editor-vue-m9gzt21j.js";import"./vendor/unocss-oyl7opas.js";import"./vendor/shiki-imfwxqoq.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,f){return s(),t("div",c,[r("div",l,[a(e.$slots,"default")])])}const u=o(n,[["render",d]]);export{u as default};
|
package/dist/client/_nuxt/{duration-display.vue-l7hutejt.js → duration-display.vue-mr4ha0rw.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as i,q as u,J as d,a3 as f,Z as l,W as o,ab as p,S as c,aa as a}from"./vendor/json-editor-vue-
|
|
1
|
+
import{p as i,q as u,J as d,a3 as f,Z as l,W as o,ab as p,S as c,aa as a}from"./vendor/json-editor-vue-m9gzt21j.js";const m={"ml-1":"","text-xs":"",op50:""},g=i({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(n){const t=n;function s(e){return t.color?e?(e=e*t.factor,e<.5?"text-gray:50":e>1e3?"text-red-400":e>500?"text-orange-400":e>200?"text-yellow-400":""):"text-gray-400":""}const r=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(e,x)=>(f(),d("div",{class:l(s(e.duration))},[o(e.$slots,"before"),p(" "+a(r.value[0]),1),c("span",m,a(r.value[1]),1),o(e.$slots,"after")],2))}});export{g as _};
|