@nuxt/devtools 0.6.0 → 0.6.2
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 +16 -8
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__blank/index.html +2 -2
- package/dist/client/_nuxt/AuthRequiredPanel.vue.4f66b5dd.js +1 -0
- package/dist/client/_nuxt/{Badge.bb04dbdf.js → Badge.2cc4687e.js} +1 -1
- package/dist/client/_nuxt/{CodeSnippets.vue.b3f0f3dc.js → CodeSnippets.vue.1e158b8f.js} +1 -1
- package/dist/client/_nuxt/{DrawerRight.vue.48c2c3d6.js → DrawerRight.vue.d80827fd.js} +1 -1
- package/dist/client/_nuxt/{DurationDisplay.vue.1f2b63ce.js → DurationDisplay.vue.a48b74dd.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.67a3bac2.js → FilepathItem.vue.df9b46ef.js} +1 -1
- package/dist/client/_nuxt/{HelpFab.vue.e0c5b3b9.js → HelpFab.vue.49173e4b.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.a3f71c42.js → LaunchPage.vue.b85270dd.js} +1 -1
- package/dist/client/_nuxt/{NCheckbox.vue.56878d59.js → NCheckbox.vue.df53e265.js} +1 -1
- package/dist/client/_nuxt/{NCodeBlock.vue.2f00c5a7.js → NCodeBlock.vue.de2cd5a6.js} +1 -1
- package/dist/client/_nuxt/{NIconButton.vue.afd698ce.js → NIconButton.vue.e211c1b6.js} +1 -1
- package/dist/client/_nuxt/{NIconTitle.vue.025b1812.js → NIconTitle.vue.4e3340eb.js} +1 -1
- package/dist/client/_nuxt/{NLink.vue.efbf2660.js → NLink.vue.53529111.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.4a55718e.js → NMarkdown.vue.26c114a8.js} +1 -1
- package/dist/client/_nuxt/{NPanelGrids.e209861e.js → NPanelGrids.fc7166ff.js} +1 -1
- package/dist/client/_nuxt/{NSectionBlock.a9d6a8bd.js → NSectionBlock.0eaaa956.js} +1 -1
- package/dist/client/_nuxt/{NSelect.vue.0258c4d8.js → NSelect.vue.94ec8f3c.js} +1 -1
- package/dist/client/_nuxt/{NSwitch.vue.774134ee.js → NSwitch.vue.7f4e43b3.js} +1 -1
- package/dist/client/_nuxt/{NTip.vue.b7996913.js → NTip.vue.c99855ad.js} +1 -1
- package/dist/client/_nuxt/{Navbar.vue.97a344a8.js → Navbar.vue.a50c38bf.js} +1 -1
- package/dist/client/_nuxt/{NpmVersionCheck.vue.5857e84f.js → NpmVersionCheck.vue.029b0cde.js} +1 -1
- package/dist/client/_nuxt/{PanelLeftRight.vue.4252eb45.js → PanelLeftRight.vue.1e85c7f2.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.a6af1a3f.js → StateEditor.vue.4e5aa888.js} +1 -1
- package/dist/client/_nuxt/{__blank.f74f0354.js → __blank.8e143dfc.js} +1 -1
- package/dist/client/_nuxt/{analyze-build.d8530c6c.js → analyze-build.d94a4835.js} +1 -1
- package/dist/client/_nuxt/{assets.e5e05d1f.js → assets.cea82447.js} +1 -1
- package/dist/client/_nuxt/{client.c658398a.js → client.aa60153e.js} +1 -1
- package/dist/client/_nuxt/{components.c29053f6.js → components.67be79c1.js} +1 -1
- package/dist/client/_nuxt/custom-_name_.ed0df2f5.js +1 -0
- package/dist/client/_nuxt/{default.a568b6bd.js → default.29185309.js} +1 -1
- package/dist/client/_nuxt/{editor.beb173d9.js → editor.24e006dd.js} +1 -1
- package/dist/client/_nuxt/entry.f3de3eb8.js +19 -0
- package/dist/client/_nuxt/{error-404.47f56ae7.js → error-404.09e25f4a.js} +1 -1
- package/dist/client/_nuxt/{error-500.3d8abd19.js → error-500.0bde1cc6.js} +1 -1
- package/dist/client/_nuxt/{error-component.97bd3af7.js → error-component.753dcd89.js} +2 -2
- package/dist/client/_nuxt/{full.039e8e59.js → full.e7e50a56.js} +1 -1
- package/dist/client/_nuxt/{hooks.4df47b77.js → hooks.c5f385b4.js} +1 -1
- package/dist/client/_nuxt/{imports.dd38df5c.js → imports.ab8bf33a.js} +1 -1
- package/dist/client/_nuxt/{index.ee7015bb.js → index.31423b81.js} +1 -1
- package/dist/client/_nuxt/{index.2d500b42.js → index.686c37b5.js} +1 -1
- package/dist/client/_nuxt/{json-editor-vue.6b7715bf.js → json-editor-vue.0e484aeb.js} +61 -61
- package/dist/client/_nuxt/{middleware.a6f1dc81.js → middleware.08e999fd.js} +1 -1
- package/dist/client/_nuxt/{modules.8de52693.js → modules.b435656d.js} +1 -1
- package/dist/client/_nuxt/{none.7a55d586.js → none.548277ee.js} +1 -1
- package/dist/client/_nuxt/{open-graph.ba654e1e.js → open-graph.a806949f.js} +1 -1
- package/dist/client/_nuxt/{overview.4725a261.js → overview.08fa2255.js} +1 -1
- package/dist/client/_nuxt/{pages.46157a67.js → pages.9797a06b.js} +1 -1
- package/dist/client/_nuxt/{payload.b59c0588.js → payload.f6049d4c.js} +1 -1
- package/dist/client/_nuxt/{plugins.6a2cae7a.js → plugins.7ff70558.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.4a7ef849.js → runtime-configs.c19cf62e.js} +1 -1
- package/dist/client/_nuxt/{server-routes.2d06f2c7.js → server-routes.34b80486.js} +1 -1
- package/dist/client/_nuxt/{settings.1b865c96.js → settings.223347c0.js} +1 -1
- package/dist/client/_nuxt/{state-components.ed0b4287.js → state-components.7a725a3e.js} +1 -1
- package/dist/client/_nuxt/storage.446005cc.js +1 -0
- package/dist/client/_nuxt/{terminals.195d8588.js → terminals.838c617b.js} +6 -6
- package/dist/client/_nuxt/{unocss-runtime.032bcb78.js → unocss-runtime.8cb4743c.js} +1 -1
- package/dist/client/_nuxt/{virtual-files.5f7c5d81.js → virtual-files.0f8a6122.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/modules/analyze-build/index.html +2 -2
- package/dist/client/modules/assets/index.html +2 -2
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/open-graph/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/storage/index.html +2 -2
- package/dist/client/modules/terminals/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/view/Main.vue +21 -20
- package/dist/runtime/plugins/view/utils.mjs +1 -1
- package/package.json +15 -15
- package/dist/client/_nuxt/custom-_name_.85ea5a6a.js +0 -1
- package/dist/client/_nuxt/entry.eb90118b.js +0 -19
- package/dist/client/_nuxt/storage.b18c38a9.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as ne}from"./NIconButton.vue.afd698ce.js";import{_ as oe}from"./NSelect.vue.0258c4d8.js";import{a as ae,b4 as se,C as re,r as $,l as S,D as P,b5 as R,ak as le,a4 as ue,aj as ie,L as de,y as p,u as n,c as _,w as u,b6 as E,o as r,b as l,f as d,e as c,m as j,t as v,F as x,H as U,j as i,p as F,aO as q,q as T,af as ce,v as me,b7 as pe,aV as _e,J as fe,I as ye,P as ve,h as ge,a6 as he}from"./entry.eb90118b.js";import{_ as ke}from"./NLink.vue.efbf2660.js";import{_ as be}from"./NPanelGrids.e209861e.js";import{_ as xe}from"./PanelLeftRight.vue.4252eb45.js";import{_ as we}from"./FilepathItem.vue.67a3bac2.js";import{U as Ce}from"./json-editor-vue.6b7715bf.js";import"./editor.beb173d9.js";const Ke={class:"h-[48px] flex items-center justify-between gap1 px-3"},Ve={class:"w-full text-sm"},Ne=["value"],Ie=l("div",{"x-divider":""},null,-1),$e={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Se={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},je={class:"flex items-center gap-4"},Ue={key:1},qe=["onKeyup"],Le=l("br",null,null,-1),Be={key:0,op50:""},De={key:1},Me=l("code",null,"nitro.storage",-1),Ae=l("br",null,null,-1),Pe={"font-bold":""},Re=l("br",null,null,-1),Ee={"text-sm":""},Fe=l("br",null,null,-1),et=ae({__name:"storage",async setup(Te){let m,g;const z=se(),h=re(),k=$(""),y=$(""),a=S({get(){return P().query?.storage},set(t){h.replace({query:{storage:t}})}}),e=$(),b=S(()=>P().query?.key),{data:w}=([m,g]=R(()=>E("storageMounts",()=>p.getStorageMounts())),m=await m,g(),m),{data:C,refresh:L}=([m,g]=R(async()=>E("storageKeys",async()=>a.value?await p.getStorageKeys(a.value):[])),m=await m,g(),m),O=z.hook("storage:key:update",async(t,s)=>{if(!(!a.value||t.split(":")[0]!==a.value)&&(await L(),b.value===t)){if(s==="remove")return h.replace({query:{storage:a.value}});await V(b.value)}});le(O),ue(a,L),ie(async()=>{if(!b.value){e.value=null;return}V(b.value)}),de("keydown",t=>{t.key==="s"&&(t.ctrlKey||t.metaKey)&&(N(),t.preventDefault())});function K(t){return t.replace(`${a.value}:`,"")}const G=S(()=>C.value?C.value.filter(t=>t.includes(k.value)):[]);async function V(t){const s=await p.getStorageItem(t);e.value={key:t,updatedKey:K(t),editingKey:!1,content:s,updatedContent:s}}async function H(){if(!y.value||!a.value)return;const t=`${a.value}:${y.value}`;C.value?.includes(t)||await p.setStorageItem(t,""),h.replace({query:{storage:a.value,key:t}}),y.value=""}async function N(){e.value&&(await p.setStorageItem(e.value.key,e.value.updatedContent),await V(e.value.key))}async function J(){!e.value||!a.value||(await p.removeStorageItem(e.value.key),e.value=null)}async function W(){if(!e.value||!a.value)return;const t=`${a.value}:${e.value.updatedKey}`;await p.setStorageItem(t,e.value.updatedContent),await p.removeStorageItem(e.value.key),h.replace({query:{storage:a.value,key:t}})}return(t,s)=>{const Q=ne,X=oe,I=fe,Y=ye,Z=ve,B=ge,D=ke,M=he,A=be,ee=xe,te=we;return n(a)?(r(),_(ee,{key:0,"storage-key":"tab-storage"},{left:u(()=>[l("div",Ke,[d(Q,{icon:"carbon-chevron-left","ml--1":"",onClick:s[0]||(s[0]=o=>a.value="")}),l("div",Ve,[d(X,{modelValue:n(a),"onUpdate:modelValue":s[1]||(s[1]=o=>U(a)?a.value=o:null),n:"primary",icon:"carbon-data-base"},{default:u(()=>[(r(!0),c(x,null,j(n(w),(o,f)=>(r(),c("option",{key:f,value:f},v(f),9,Ne))),128))]),_:1},8,["modelValue"])])]),d(I,{modelValue:n(k),"onUpdate:modelValue":s[2]||(s[2]=o=>U(k)?k.value=o:null),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(r(!0),c(x,null,j(n(G),o=>(r(),c(x,{key:o},[d(Y,{block:"",truncate:"",px2:"",py1:"","font-mono":"","text-sm":"",to:{query:{key:o,storage:n(a)}},class:F(o===n(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:u(()=>[i(v(K(o)),1)]),_:2},1032,["to","class"]),Ie],64))),128)),d(I,{modelValue:n(y),"onUpdate:modelValue":s[3]||(s[3]=o=>U(y)?y.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:q(H,["enter"])},null,8,["modelValue","onKeyup"])]),right:u(()=>[n(e)?.key?(r(),c("div",$e,[l("div",Se,[l("div",je,[n(e).editingKey?(r(),_(I,{key:0,modelValue:n(e).updatedKey,"onUpdate:modelValue":s[4]||(s[4]=o=>n(e).updatedKey=o),onKeyup:q(W,["enter"])},null,8,["modelValue","onKeyup"])):(r(),c("code",Ue,[i(v(K(n(e).key))+" ",1),d(Z,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:s[5]||(s[5]=o=>n(e).editingKey=!0)})])),n(e).editingKey?T("",!0):(r(),_(B,{key:2,n:"green xs",disabled:n(e).content===n(e).updatedContent,class:F({"border-green":n(e).content!==n(e).updatedContent}),onClick:N},{default:u(()=>[i(" Save ")]),_:1},8,["disabled","class"]))]),l("div",null,[d(B,{n:"red xs",onClick:J},{default:u(()=>[i(" Delete ")]),_:1})])]),typeof n(e).content=="object"?(r(),_(n(Ce),ce({key:0,modelValue:n(e).updatedContent,"onUpdate:modelValue":s[6]||(s[6]=o=>n(e).updatedContent=o),class:[[t.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},t.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):me((r(),c("textarea",{key:1,"onUpdate:modelValue":s[7]||(s[7]=o=>n(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 font-mono text-sm outline-none",onKeyup:q(_e(N,["ctrl"]),["enter"])},null,40,qe)),[[pe,n(e).updatedContent]])])):(r(),_(A,{key:1},{default:u(()=>[d(M,{px6:"",py4:""},{default:u(()=>[i(" Select one key to start."),Le,i("Learn more about "),d(D,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[i(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(r(),_(A,{key:1},{default:u(()=>[Object.keys(n(w)).length?(r(),c("p",Be," Select one storage to start: ")):(r(),c("p",De,[i(" No custom storage defined in "),Me,i("."),Ae,i(" Learn more about "),d(D,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[i(" Nitro storage ")]),_:1})])),(r(!0),c(x,null,j(n(w),(o,f)=>(r(),_(M,{key:f,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:ze=>a.value=f},{default:u(()=>[l("span",Pe,v(f),1),Re,l("span",Ee,v(o.driver)+" driver",1),Fe,o.base?(r(),_(te,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):T("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}});export{et as default};
|