@nuxt/devtools 1.3.8 → 1.3.9
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 +523 -3
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +18 -18
- package/dist/client/404.html +18 -18
- package/dist/client/_nuxt/{DvDu1JUs.js → -vLCBS-N.js} +1 -1
- package/dist/client/_nuxt/{C8N9kWh2.js → 2LcXl48m.js} +1 -1
- package/dist/client/_nuxt/{B04hL9Ab.js → 2e6xxFgg.js} +1 -1
- package/dist/client/_nuxt/{pA_iBoe4.js → 9vVlwvR0.js} +2 -2
- package/dist/client/_nuxt/A4w2ZRz2.js +1 -0
- package/dist/client/_nuxt/{C7cYo4YF.js → B3Xn0-WD.js} +1 -1
- package/dist/client/_nuxt/{CbM9OHn3.js → B3xdBQzM.js} +1 -1
- package/dist/client/_nuxt/{QQ7YbgtC.js → BEWN4pmm.js} +1 -1
- package/dist/client/_nuxt/BHNRcs4v.js +1 -0
- package/dist/client/_nuxt/{Bxh-fvdv.js → BJnuIykn.js} +1 -1
- package/dist/client/_nuxt/BMkcc7VF.js +1 -0
- package/dist/client/_nuxt/{B_lF4o9u.js → BfZiPQjx.js} +1 -1
- package/dist/client/_nuxt/{o8QbmO42.js → BgkXDMve.js} +1 -1
- package/dist/client/_nuxt/{Xpd7UJs5.js → BgweL_3l.js} +1 -1
- package/dist/client/_nuxt/{DJdrWIcn.js → BiD_nEzt.js} +1 -1
- package/dist/client/_nuxt/Bjf-a2fi.js +1 -0
- package/dist/client/_nuxt/Bmn7JOho.js +1 -0
- package/dist/client/_nuxt/{BM3cCZms.js → Bsa9pMTD.js} +1 -1
- package/dist/client/_nuxt/{BTj8T8Us.js → C0RAjPaQ.js} +1 -1
- package/dist/client/_nuxt/{8q1pCtVS.js → C5ufIXkV.js} +1 -1
- package/dist/client/_nuxt/{DluxqTUE.js → C8cCu25J.js} +1 -1
- package/dist/client/_nuxt/{_OFeGLwh.js → C8k43jHS.js} +1 -1
- package/dist/client/_nuxt/{CGZO0Dbu.js → CDN3PKDC.js} +1 -1
- package/dist/client/_nuxt/{Dslz6rss.js → CG8l32IX.js} +1 -1
- package/dist/client/_nuxt/{QBzUTbSD.js → CHDbzgkk.js} +1 -1
- package/dist/client/_nuxt/{BnXFHUk0.js → CHVLsZmm.js} +1 -1
- package/dist/client/_nuxt/{CHQglk26.js → CSiYmMfO.js} +2 -2
- package/dist/client/_nuxt/{fwfpIEej.js → CVc_vzB8.js} +1 -1
- package/dist/client/_nuxt/CVnen6aX.js +1 -0
- package/dist/client/_nuxt/{DE5e3ZuV.js → CeCFyH2L.js} +1 -1
- package/dist/client/_nuxt/{mQFKENXH.js → Cfh5adMM.js} +1 -1
- package/dist/client/_nuxt/{GdB9kz-4.js → CktVnUy9.js} +1 -1
- package/dist/client/_nuxt/{CPUwo9Dx.js → Ctb-QkcA.js} +1 -1
- package/dist/client/_nuxt/{Cda7aUrs.js → D8-i-l8m.js} +1 -1
- package/dist/client/_nuxt/{BRFlSxxW.js → DCIux9Jq.js} +1 -1
- package/dist/client/_nuxt/{CfkdovQd.js → DDT2yUXF.js} +1 -1
- package/dist/client/_nuxt/{DdjW6vu9.js → DL9aipy8.js} +1 -1
- package/dist/client/_nuxt/{C2c19bzT.js → DMEbMliD.js} +1 -1
- package/dist/client/_nuxt/DMp3ub-8.js +1 -0
- package/dist/client/_nuxt/{D7m39p-9.js → DMviwfII.js} +1 -1
- package/dist/client/_nuxt/{BwKcIQOa.js → DbOyCHOq.js} +1 -1
- package/dist/client/_nuxt/{DeSj8VZN.js → Dcjed-xK.js} +3 -3
- package/dist/client/_nuxt/{CCEQErg8.js → DeJGQFsa.js} +1 -1
- package/dist/client/_nuxt/{dXjzJhiW.js → Diu0Y0PU.js} +1 -1
- package/dist/client/_nuxt/{DX-YUedo.js → DkQfqnYF.js} +1 -1
- package/dist/client/_nuxt/{CssX2CxZ.js → Dp08BkoM.js} +1 -1
- package/dist/client/_nuxt/{BjYCaXNT.js → H8p8AdfC.js} +1 -1
- package/dist/client/_nuxt/{Ckn823xU.js → JOMs3kJS.js} +1 -1
- package/dist/client/_nuxt/{CH-roGkP.js → OAG_rOo8.js} +1 -1
- package/dist/client/_nuxt/{DVk2I1gO.js → QIDSXraL.js} +1 -1
- package/dist/client/_nuxt/{D0h9jATl.js → ZTrlmdYI.js} +1 -1
- package/dist/client/_nuxt/{DEkvPDn8.js → b-sJbkBg.js} +1 -1
- package/dist/client/_nuxt/{BdSLTmjP.js → brJlGqJM.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/a9356a90-0031-4b93-8375-47585faa7c3c.json +1 -0
- package/dist/client/_nuxt/{BLxIf9BH.js → dyz0QDHl.js} +1 -1
- package/dist/client/_nuxt/eUQ_X7Id.js +43 -0
- package/dist/client/_nuxt/error-404.D-YMsRWn.css +1 -0
- package/dist/client/_nuxt/error-500.B8squ7MD.css +1 -0
- package/dist/client/_nuxt/{DKSts1V4.js → nbOvh45q.js} +1 -1
- package/dist/client/_nuxt/{BS5FcDmG.js → pOm0j4bx.js} +1 -1
- package/dist/client/_nuxt/qnM-VzkH.js +9 -0
- package/dist/client/_nuxt/{BG5RUyXI.js → s01ATyxb.js} +1 -1
- package/dist/client/_nuxt/{wGyJxDW5.js → s9jguXLC.js} +1 -1
- package/dist/client/_nuxt/{Csl1JfEo.js → tIa4hiZQ.js} +1 -1
- package/dist/client/_nuxt/terminals.BIEho_Pa.css +1 -0
- package/dist/client/_nuxt/{Cuq1Z6bh.js → xORP-8Ow.js} +1 -1
- package/dist/client/index.html +18 -18
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/view/client.mjs +4 -2
- package/package.json +6 -6
- package/dist/client/_nuxt/B6TDWpKk.js +0 -1
- package/dist/client/_nuxt/BvHZCDLj.js +0 -9
- package/dist/client/_nuxt/C3FSKLnj.js +0 -1
- package/dist/client/_nuxt/CSGOJSAd.js +0 -1
- package/dist/client/_nuxt/CwTcTc2N.js +0 -43
- package/dist/client/_nuxt/CyiHZscW.js +0 -1
- package/dist/client/_nuxt/D5ctTtkd.js +0 -1
- package/dist/client/_nuxt/DETXY6Xa.js +0 -1
- package/dist/client/_nuxt/DJS8TjB-.js +0 -1
- package/dist/client/_nuxt/builds/meta/8ac9da91-0524-4abf-a805-60b3d6199fe9.json +0 -1
- package/dist/client/_nuxt/error-404.C4UNnO0a.css +0 -1
- package/dist/client/_nuxt/error-500.BbJ9e2Fk.css +0 -1
- package/dist/client/_nuxt/terminals.dNTO8Cf0.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,al as c,m as _,f as t,h as o,j as l,an as r,o as e,v as f}from"./
|
|
1
|
+
import{d as s,al as c,m as _,f as t,h as o,j as l,an as r,o as e,v as f}from"./eUQ_X7Id.js";import{l as i}from"./Bsa9pMTD.js";const m={class:"h-full w-full"},x=s({__name:"pinia",setup(p){const{connected:n}=c();return(u,d)=>{const a=r;return e(),_("div",m,[t(n)?(e(),o(t(i),{key:0})):(e(),o(a,{key:1},{default:l(()=>[f(" Connecting.... ")]),_:1}))])}}});export{x as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as x,am as N,a as _,m as p,f as i,i as y,j as C,k as m,t as f,p as h,h as w,Y as S,o as l,v as $}from"./
|
|
1
|
+
import{d as x,am as N,a as _,m as p,f as i,i as y,j as C,k as m,t as f,p as h,h as w,Y as S,o as l,v as $}from"./eUQ_X7Id.js";import{_ as O}from"./B3Xn0-WD.js";import"./CDN3PKDC.js";const R=/(^|@)\S+:\d+/,k=/^\s*at .*(\S+:\d+|\(native\))/m,F=/^(eval@)?(\[native code])?$/;function I(t,c){if(typeof t.stacktrace<"u"||typeof t["opera#sourceloc"]<"u")return P(t);if(t.stack&&t.stack.match(k))return b(t);if(t.stack)return T(t);throw new Error("Cannot parse given Error object")}function v(t){if(!t.includes(":"))return[t,void 0,void 0];const s=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return[s[1],s[2]||void 0,s[3]||void 0]}function d(t,c){return t}function b(t,c){return A(t.stack)}function A(t,c){return d(t.split(`
|
|
2
2
|
`).filter(e=>!!e.match(k))).map(e=>{e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=n.match(/ (\(.+\)$)/);n=o?n.replace(o[0],""):n;const a=v(o?o[1]:n),r=o&&n||void 0,u=["eval","<anonymous>"].includes(a[0])?void 0:a[0];return{function:r,file:u,line:a[1]?+a[1]:void 0,col:a[2]?+a[2]:void 0,raw:e}})}function T(t,c){return V(t.stack)}function V(t,c){return d(t.split(`
|
|
3
3
|
`).filter(e=>!e.match(F))).map(e=>{if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return{function:e};{const n=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(n),a=o&&o[1]?o[1]:void 0,r=v(e.replace(n,""));return{function:a,file:r[0],line:r[1]?+r[1]:void 0,col:r[2]?+r[2]:void 0,raw:e}}})}function P(t,c){return!t.stacktrace||t.message.includes(`
|
|
4
4
|
`)&&t.message.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as J,ao as ae,
|
|
1
|
+
import{d as J,ao as ae,bR as oe,P as se,r as M,Q as R,bS as E,aD as le,w as re,aC as ue,a1 as ie,a as de,L as f,M as h,f as t,o as l,h as _,j as u,k as r,i as c,l as U,m as i,F as x,n as A,t as k,G as F,ae as L,v as d,p as z,ax as ce,I as pe,bi as _e,af as me,bT as G,_ as fe,X as ve,a6 as ye,as as ge,A as he,U as ke,aJ as be}from"./eUQ_X7Id.js";import{_ as xe}from"./BfZiPQjx.js";import{_ as we}from"./CG8l32IX.js";import{_ as Ce}from"./CDN3PKDC.js";import{e as Ke}from"./DkQfqnYF.js";const Se={class:"h-[48px] flex items-center justify-between gap1 px-3"},Ve={class:"w-full text-sm"},$e=["value"],Ne=["onClick"],Ie=r("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"},Me={class:"flex items-center gap-4"},Ue={key:1},Ae=["onKeyup"],Le=r("br",null,null,-1),Be={key:0,op50:""},Pe={key:1},Te=r("code",null,"nitro.storage",-1),qe=r("br",null,null,-1),Re={"font-bold":""},Ee=r("br",null,null,-1),Fe={"text-sm":""},ze=r("br",null,null,-1),Ge=J({__name:"StorageDetails",async setup(O){let p,g;const w=ae(),C=oe(),K=se(),b=M(""),v=M(""),s=R("storage:current",""),e=M(),y=R("storage:file:state",""),{data:S}=([p,g]=E(()=>G("storageMounts",()=>f.getStorageMounts())),p=await p,g(),p),{data:V,refresh:B}=([p,g]=E(async()=>G("storageKeys",async()=>s.value?await f.getStorageKeys(s.value):[])),p=await p,g(),p),Q=C.hook("storage:key:update",async(n,a)=>{if(!(!s.value||n.split(":")[0]!==s.value)&&(await B(),y.value===n)){if(a==="remove")return K.replace({query:{storage:s.value}});await N(y.value)}});le(Q),re(s,()=>{B(),y.value=""}),ue(async()=>{if(!y.value){e.value=null;return}N(y.value)}),ie("keydown",n=>{n.key==="s"&&(n.ctrlKey||n.metaKey)&&(I(),n.preventDefault())});function $(n){return n.replace(`${s.value}:`,"")}const W=de(()=>V.value?V.value.filter(n=>n.includes(b.value)):[]);async function N(n){const a=await f.getStorageItem(await h(),n);e.value={key:n,updatedKey:$(n),editingKey:!1,content:a,updatedContent:a}}async function X(){if(!v.value||!s.value)return;const n=`${s.value}:${v.value}`;V.value?.includes(n)||await f.setStorageItem(await h(),n,""),K.replace({query:{storage:s.value,key:n}}),v.value=""}async function I(){e.value&&(await f.setStorageItem(await h(),e.value.key,e.value.updatedContent),await N(e.value.key))}async function H(){!e.value||!s.value||(await f.removeStorageItem(await h(),e.value.key),e.value=null)}async function Y(){if(!e.value||!s.value)return;const n=`${s.value}:${e.value.updatedKey}`,a=await h();await f.setStorageItem(a,n,e.value.updatedContent),await f.removeStorageItem(a,e.value.key),K.replace({query:{storage:s.value,key:n}})}return(n,a)=>{const j=fe,Z=xe,D=ve,ee=ye,P=we,T=ge,q=he,te=ke,ne=Ce;return t(s)?(l(),_(te,{key:0,"storage-key":"tab-storage"},{left:u(()=>[r("div",Se,[c(j,{icon:"carbon-chevron-left","ml--1":"",border:!1,onClick:a[0]||(a[0]=o=>s.value="")}),r("div",Ve,[c(Z,{modelValue:t(s),"onUpdate:modelValue":a[1]||(a[1]=o=>U(s)?s.value=o:null),n:"primary",icon:"carbon-data-base"},{default:u(()=>[(l(!0),i(x,null,A(t(S),(o,m)=>(l(),i("option",{key:m,value:m},k(m),9,$e))),128))]),_:1},8,["modelValue"])])]),c(D,{modelValue:t(b),"onUpdate:modelValue":a[2]||(a[2]=o=>U(b)?b.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"]),(l(!0),i(x,null,A(t(W),o=>(l(),i(x,{key:o},[r("button",{block:"","w-full":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:F(o===t(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:m=>y.value=o},k($(o)),11,Ne),Ie],64))),128)),c(D,{modelValue:t(v),"onUpdate:modelValue":a[3]||(a[3]=o=>U(v)?v.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:L(X,["enter"])},null,8,["modelValue"])]),right:u(()=>[t(e)?.key?(l(),i("div",je,[r("div",De,[r("div",Me,[t(e).editingKey?(l(),_(D,{key:0,modelValue:t(e).updatedKey,"onUpdate:modelValue":a[4]||(a[4]=o=>t(e).updatedKey=o),onKeyup:L(Y,["enter"])},null,8,["modelValue"])):(l(),i("code",Ue,[d(k($(t(e).key))+" ",1),c(ee,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:a[5]||(a[5]=o=>t(e).editingKey=!0)})])),t(e).editingKey?z("",!0):(l(),_(j,{key:2,n:"green xs",disabled:t(e).content===t(e).updatedContent,class:F({"border-green":t(e).content!==t(e).updatedContent}),onClick:I},{default:u(()=>[d(" Save ")]),_:1},8,["disabled","class"]))]),r("div",null,[c(j,{n:"red xs",onClick:H},{default:u(()=>[d(" Delete ")]),_:1})])]),typeof t(e).content=="object"?(l(),_(t(Ke),ce({key:0,modelValue:t(e).updatedContent,"onUpdate:modelValue":a[6]||(a[6]=o=>t(e).updatedContent=o),class:[[t(w)==="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"])):pe((l(),i("textarea",{key:1,"onUpdate:modelValue":a[7]||(a[7]=o=>t(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 text-sm font-mono outline-none",onKeyup:L(_e(I,["ctrl"]),["enter"])},null,40,Ae)),[[me,t(e).updatedContent]])])):(l(),_(q,{key:1},{default:u(()=>[c(T,{px6:"",py4:""},{default:u(()=>[d(" Select one key to start."),Le,d("Learn more about "),c(P,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[d(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(l(),_(q,{key:1},{default:u(()=>[Object.keys(t(S)).length?(l(),i("p",Be," Select one storage to start: ")):(l(),i("p",Pe,[d(" No custom storage defined in "),Te,d("."),qe,d(" Learn more about "),c(P,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[d(" Nitro storage ")]),_:1})])),(l(!0),i(x,null,A(t(S),(o,m)=>(l(),_(T,{key:m,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:Je=>s.value=m},{default:u(()=>[r("span",Re,k(m),1),Ee,r("span",Fe,k(o.driver)+" driver",1),ze,o.base?(l(),_(ne,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):z("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}}),Ye=J({__name:"storage",setup(O){return(p,g)=>{const w=Ge,C=be;return l(),_(C,null,{default:u(()=>[c(w)]),_:1})}}});export{Ye as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{border:0;height:0;left:-9999em;margin:0;opacity:0;overflow:hidden;padding:0;position:absolute;resize:none;top:0;white-space:nowrap;width:0;z-index:-5}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;cursor:default;inset:0;overflow-y:scroll;position:absolute}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{left:0;position:absolute;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;left:-9999em;line-height:normal;position:absolute;top:0;visibility:hidden}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{color:transparent;inset:0;pointer-events:none;position:absolute;z-index:10}.xterm .xterm-accessibility-tree:not(.debug) ::-moz-selection{color:transparent}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:pre}.xterm .live-region{height:1px;left:-9999px;overflow:hidden;position:absolute;width:1px}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{position:absolute;z-index:6}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{pointer-events:none;position:absolute;right:0;top:0;z-index:8}.xterm-decoration-top{position:relative;z-index:2}.xterm{padding-left:1rem;padding-right:1rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as I}from"./
|
|
1
|
+
import{_ as I}from"./CktVnUy9.js";import{d as O,a0 as R,a as N,w as T,o,m as u,F as f,n as k,aa as v,f as r,h as p,p as y,G as b,i as m,j as V,k as S,t as A,v as C,X as E,a6 as L,_ as z}from"./eUQ_X7Id.js";import{_ as G}from"./BfZiPQjx.js";const K={p4:"",flex:"~ col gap-4"},M={key:1,ml2:"",flex:""},X=["value"],q={key:0,flex:"","gap-4":""},H=S("div",{"flex-auto":""},null,-1),Y=O({__name:"ServerRouteInputs",props:{modelValue:{},keys:{default:()=>[]},default:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(U,{emit:w}){const g=U,d=R(g,"modelValue",w,{passive:!0}),$=N(()=>[...g.keys,"active","key","value","type"]),B=N(()=>{const a={};for(const e of $.value)a[e]=g.default[e]||"";return a}),j=["string","number","boolean","file","date","time","datetime-local"];function D(a,e){const t=e.target;if(t.files&&t.files[0]){const i=t.files[0],c=new FileReader;c.readAsDataURL(i),c.onload=()=>{d.value[a].value=c.result}}}return T(()=>d,a=>{a.value.forEach(e=>{if(e.type==="number"&&typeof e.value!="number"){const t=Number.parseFloat(e.value);e.value=Number.isNaN(t)?0:t}else e.type==="boolean"&&typeof e.value!="boolean"?e.value=!0:e.type==="file"&&typeof e.value!="object"?e.value="":e.type==="date"&&typeof e.value=="string"&&!e.value.match(/^\d{4}-\d{2}-\d{2}$/)?e.value=new Date().toISOString().slice(0,10):e.type==="time"&&typeof e.value=="string"&&!e.value.match(/^\d{2}:\d{2}$/)?e.value=new Date().toISOString().slice(11,16):e.type==="datetime-local"&&typeof e.value=="string"&&!e.value.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/)?e.value=new Date().toISOString().slice(0,16):e.type==="string"&&(e.value=e.value.toString())})},{deep:!0,immediate:!0,flush:"sync"}),(a,e)=>{const t=I,i=E,c=G,F=L,h=z;return o(),u("div",K,[(o(!0),u(f,null,k(r(d),(l,_)=>(o(),u("div",{key:_,flex:"~ gap-2","justify-around":""},[v(a.$slots,"input",{item:l}),(o(!0),u(f,null,k(r($),n=>(o(),u(f,{key:n},[l.type!==null&&n==="active"?(o(),p(t,{key:0,modelValue:l[n],"onUpdate:modelValue":s=>l[n]=s,n:"sm primary",disabled:a.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):y("",!0),l.type!==null&&n==="key"?(o(),p(i,{key:1,modelValue:l[n],"onUpdate:modelValue":s=>l[n]=s,placeholder:n,"flex-1":"","font-mono":"",n:"sm primary",disabled:a.disabled,class:b(a.disabled?"op50":"")},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","class"])):n==="value"?(o(),u(f,{key:2},[l.type==="file"?(o(),p(i,{key:0,type:"file",disabled:a.disabled,class:b(a.disabled?"op75":""),onChange:s=>D(_,s)},null,8,["disabled","class","onChange"])):l.type==="boolean"?(o(),u("div",M,[m(t,{modelValue:l.value,"onUpdate:modelValue":s=>l.value=s,placeholder:"Value",n:"green lg",disabled:a.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])])):(o(),p(i,{key:2,modelValue:l.value,"onUpdate:modelValue":s=>l.value=s,type:l.type,placeholder:"Value","flex-1":"","font-mono":"",n:"sm primary",disabled:a.disabled,class:b(a.disabled?"op75":"")},null,8,["modelValue","onUpdate:modelValue","type","disabled","class"]))],64)):n==="type"?(o(),p(c,{key:3,modelValue:l.type,"onUpdate:modelValue":s=>l.type=s,n:"sm green",class:b(a.disabled?"op75":""),disabled:a.disabled},{default:V(()=>[(o(),u(f,null,k(j,s=>S("option",{key:s,value:s},A(s),9,X)),64))]),_:2},1032,["modelValue","onUpdate:modelValue","class","disabled"])):y("",!0)],64))),128)),v(a.$slots,"input-actions",{},()=>[m(h,{n:"red",disabled:a.disabled,class:b(a.disabled?"op0!":""),onClick:n=>r(d).splice(_,1)},{default:V(()=>[m(F,{icon:"carbon:trash-can"})]),_:2},1032,["disabled","class","onClick"])])]))),128)),a.disabled?y("",!0):(o(),u("div",q,[v(a.$slots,"actions",{params:r(d)},()=>[m(h,{icon:"carbon-add",n:"sm primary",my1:"","px-3":"",onClick:e[0]||(e[0]=l=>r(d).push({...r(B)}))},{default:V(()=>[C(" Add ")]),_:1}),H,r(d).length?(o(),p(h,{key:0,icon:"carbon-trash-can",n:"sm red",my1:"","px-3":"",onClick:e[1]||(e[1]=l=>r(d).splice(0,r(d).length))},{default:V(()=>[C(" Remove All ")]),_:1})):y("",!0)])])),v(a.$slots,"default")])}}});export{Y as _};
|
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
3
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.hxdKUDpu.css">
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/eUQ_X7Id.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Blr6EMNg.js">
|
|
6
6
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Bxkoe-BC.js">
|
|
7
7
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Br6ll-O0.js">
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DvyTQcux.js">
|
|
17
17
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZfs-ost.js">
|
|
18
18
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CsTmP73Z.js">
|
|
19
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
20
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
19
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/2LcXl48m.js">
|
|
20
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BJnuIykn.js">
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dyz0QDHl.js">
|
|
22
22
|
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.BJ-XAY5s.css">
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
24
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
25
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
31
|
-
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.
|
|
32
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
33
|
-
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.
|
|
34
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
35
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
36
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/JOMs3kJS.js">
|
|
24
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BfZiPQjx.js">
|
|
25
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/brJlGqJM.js">
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/2e6xxFgg.js">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Ctb-QkcA.js">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/A4w2ZRz2.js">
|
|
29
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BMkcc7VF.js">
|
|
30
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dp08BkoM.js">
|
|
31
|
+
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.D-YMsRWn.css">
|
|
32
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BHNRcs4v.js">
|
|
33
|
+
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.B8squ7MD.css">
|
|
34
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CVnen6aX.js">
|
|
35
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/eUQ_X7Id.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
|
|
36
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"a9356a90-0031-4b93-8375-47585faa7c3c",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
|
@@ -76,7 +76,8 @@ export async function setupDevToolsClient({
|
|
|
76
76
|
clientHooks: () => Object.values(clientHooks),
|
|
77
77
|
clientTimeline: () => timeline,
|
|
78
78
|
loading: () => timeMetric
|
|
79
|
-
}
|
|
79
|
+
},
|
|
80
|
+
revision: ref(0)
|
|
80
81
|
});
|
|
81
82
|
window.__NUXT_DEVTOOLS_HOST__ = client;
|
|
82
83
|
let iframe;
|
|
@@ -92,7 +93,8 @@ export async function setupDevToolsClient({
|
|
|
92
93
|
function getIframe() {
|
|
93
94
|
if (!iframe) {
|
|
94
95
|
const runtimeConfig = useRuntimeConfig();
|
|
95
|
-
const
|
|
96
|
+
const CLIENT_BASE = "/__nuxt_devtools__/client";
|
|
97
|
+
const CLIENT_PATH = `${runtimeConfig.app.baseURL.replace(CLIENT_BASE, "/")}${CLIENT_BASE}`.replace(/\/+/g, "/");
|
|
96
98
|
const initialUrl = CLIENT_PATH + state.value.route;
|
|
97
99
|
iframe = document.createElement("iframe");
|
|
98
100
|
for (const [key, value] of Object.entries(runtimeConfig.app.devtools?.iframeProps || {}))
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://devtools.nuxt.com",
|
|
7
7
|
"repository": {
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"vite-plugin-vue-inspector": "^5.1.2",
|
|
69
69
|
"which": "^3.0.1",
|
|
70
70
|
"ws": "^8.17.1",
|
|
71
|
-
"@nuxt/devtools-kit": "1.3.
|
|
72
|
-
"@nuxt/devtools-wizard": "1.3.
|
|
71
|
+
"@nuxt/devtools-kit": "1.3.9",
|
|
72
|
+
"@nuxt/devtools-wizard": "1.3.9"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@iconify-json/bxl": "^1.1.10",
|
|
@@ -90,6 +90,8 @@
|
|
|
90
90
|
"@vitest/ui": "^1.6.0",
|
|
91
91
|
"@vue/devtools-applet": "7.3.3",
|
|
92
92
|
"@vueuse/nuxt": "^10.11.0",
|
|
93
|
+
"@xterm/addon-fit": "^0.10.0",
|
|
94
|
+
"@xterm/xterm": "^5.5.0",
|
|
93
95
|
"esno": "^4.7.0",
|
|
94
96
|
"floating-vue": "5.0.2",
|
|
95
97
|
"fuse.js": "^7.0.0",
|
|
@@ -111,9 +113,7 @@
|
|
|
111
113
|
"vis-network": "^9.1.9",
|
|
112
114
|
"vue-tsc": "^2.0.24",
|
|
113
115
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
114
|
-
"
|
|
115
|
-
"xterm-addon-fit": "^0.8.0",
|
|
116
|
-
"@nuxt/devtools": "1.3.8"
|
|
116
|
+
"@nuxt/devtools": "1.3.9"
|
|
117
117
|
},
|
|
118
118
|
"scripts": {
|
|
119
119
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:client && esno scripts/prepare.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as N,a0 as V,ao as _,r as w,bg as O,bG as C,a2 as $,o as i,m as p,k as u,G as c,f as t,t as J,p as l,aa as D,bp as G,bq as P,F as R,I as j,i as z,h as v,ax as A,bA as F,l as M,aB as E,_ as q}from"./CwTcTc2N.js";import{_ as I}from"./CbM9OHn3.js";import{e as T}from"./DX-YUedo.js";const U=["open"],Y={flex:"~ gap2","select-none":"","items-center":"",px4:""},W=N({__name:"StateEditor",props:{name:{},open:{type:Boolean},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(b,{emit:g}){const s=b,n=V(s,"open",g,{passive:!0}),k=_(),o=w(),m=O(s.name,"$9Gvv2FGyYa");s.state?o.value=JSON.parse(JSON.stringify(s.state)):(typeof s.state=="number"||typeof s.state!="string")&&(o.value=s.state);const d=C(o,e=>{typeof e!="number"&&typeof e!="string"?f(e,s.state):m.value=e},{deep:!0});function f(e,r){for(const a in e)e[a]===null?r[a]=null:Array.isArray(e[a])?r[a]=e[a].slice():typeof e[a]=="object"?f(e[a],r[a]):r[a]=e[a]}async function h(){d.pause(),o.value=JSON.parse(JSON.stringify(s.state)),await E(),d.resume()}return(e,r)=>{const a=q,S=I,B=$("tooltip");return i(),p("div",{class:"state-editor-details",open:e.name?t(n):!0},[u("div",Y,[e.name?(i(),p("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:c(t(n)?"":"op50"),onClick:r[0]||(r[0]=y=>n.value=!t(n))},[u("div",{"i-carbon-chevron-right":"",transition:"",class:c(t(n)?"rotate-90 op0":"")},null,2),u("code",{px3:"",py1:"","font-mono":"",class:c(t(n)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},J(e.name),3)],2)):l("",!0),D(e.$slots,"actions",G(P({isOpen:t(n),name:e.name,state:t(m)}))),t(n)?(i(),p(R,{key:1},[j(z(a,{title:"Refresh View",icon:"carbon-renew",border:!1,onClick:h},null,512),[[B,"Refresh View",void 0,{bottom:!0}]]),t(o)?(i(),v(S,{key:0,getter:()=>({name:e.name,input:JSON.stringify(t(o))})},null,8,["getter"])):l("",!0)],64)):l("",!0)]),t(n)||!e.name?(i(),v(t(T),A({key:0,modelValue:t(o),"onUpdate:modelValue":r[1]||(r[1]=y=>M(o)?o.value=y:null)},e.$attrs,{class:["json-editor-vue",[t(k)==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:t(F),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"])):l("",!0)],8,U)}}});export{W as _};
|