@alepha/devtools 0.14.4 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/devtools/actions.html +19 -19
- package/assets/devtools/actions.html.br +0 -0
- package/assets/devtools/actions.html.gz +0 -0
- package/assets/devtools/asset.CMFNRMve.css +1 -0
- package/assets/devtools/asset.CMFNRMve.css.br +0 -0
- package/assets/devtools/asset.CMFNRMve.css.gz +0 -0
- package/assets/devtools/atoms.html +19 -19
- package/assets/devtools/atoms.html.br +0 -0
- package/assets/devtools/atoms.html.gz +0 -0
- package/assets/devtools/caches.html +19 -19
- package/assets/devtools/caches.html.br +0 -0
- package/assets/devtools/caches.html.gz +0 -0
- package/assets/devtools/{chunk.BZpSlmHc.js → chunk.-1T4AUjH.js} +1 -1
- package/assets/devtools/chunk.-1T4AUjH.js.br +0 -0
- package/assets/devtools/chunk.-1T4AUjH.js.gz +0 -0
- package/assets/devtools/{chunk.CsxSstrk.js → chunk.01h1zGjv.js} +1 -1
- package/assets/devtools/chunk.01h1zGjv.js.br +0 -0
- package/assets/devtools/chunk.01h1zGjv.js.gz +0 -0
- package/assets/devtools/chunk.1JiUrdgo.js +1 -0
- package/assets/devtools/chunk.1JiUrdgo.js.br +1 -0
- package/assets/devtools/chunk.1JiUrdgo.js.gz +0 -0
- package/assets/devtools/chunk.42CgRmmy.js +1 -0
- package/assets/devtools/chunk.42CgRmmy.js.br +0 -0
- package/assets/devtools/chunk.42CgRmmy.js.gz +0 -0
- package/assets/devtools/{chunk.CEbDj1NR.js → chunk.6zj3eUIy.js} +1 -1
- package/assets/devtools/chunk.6zj3eUIy.js.br +0 -0
- package/assets/devtools/chunk.6zj3eUIy.js.gz +0 -0
- package/assets/devtools/{chunk.D0jFBu2p.js → chunk.B1BX4OlP.js} +1 -1
- package/assets/devtools/chunk.B1BX4OlP.js.br +0 -0
- package/assets/devtools/chunk.B1BX4OlP.js.gz +0 -0
- package/assets/devtools/{chunk.BCBZ1wAk.js → chunk.B6bX0XQI.js} +1 -1
- package/assets/devtools/chunk.B6bX0XQI.js.br +0 -0
- package/assets/devtools/chunk.B6bX0XQI.js.gz +0 -0
- package/assets/devtools/{chunk.BgMi2Pqe.js → chunk.BD3_boSH.js} +1 -1
- package/assets/devtools/chunk.BD3_boSH.js.br +0 -0
- package/assets/devtools/chunk.BD3_boSH.js.gz +0 -0
- package/assets/devtools/chunk.BZZjyIAY.js +2 -0
- package/assets/devtools/chunk.BZZjyIAY.js.br +0 -0
- package/assets/devtools/chunk.BZZjyIAY.js.gz +0 -0
- package/assets/devtools/{chunk.C3geCUq9.js → chunk.B_arS3yh.js} +1 -1
- package/assets/devtools/chunk.B_arS3yh.js.br +0 -0
- package/assets/devtools/chunk.B_arS3yh.js.gz +0 -0
- package/assets/devtools/{chunk.B-FEo0lV.js → chunk.CC4zyxCR.js} +1 -1
- package/assets/devtools/chunk.CC4zyxCR.js.br +0 -0
- package/assets/devtools/chunk.CC4zyxCR.js.gz +0 -0
- package/assets/devtools/{chunk.BX7p74D8.js → chunk.CQFdZ3hg.js} +1 -1
- package/assets/devtools/chunk.CQFdZ3hg.js.br +0 -0
- package/assets/devtools/chunk.CQFdZ3hg.js.gz +0 -0
- package/assets/devtools/{chunk.BqEqrty9.js → chunk.CXR8SXil.js} +1 -1
- package/assets/devtools/chunk.CXR8SXil.js.br +0 -0
- package/assets/devtools/chunk.CXR8SXil.js.gz +0 -0
- package/assets/devtools/{chunk.BjOMCPQ3.js → chunk.C_WwXcGr.js} +1 -1
- package/assets/devtools/chunk.C_WwXcGr.js.br +0 -0
- package/assets/devtools/chunk.C_WwXcGr.js.gz +0 -0
- package/assets/devtools/chunk.Chph6jJx.js +1 -0
- package/assets/devtools/chunk.Chph6jJx.js.br +0 -0
- package/assets/devtools/chunk.Chph6jJx.js.gz +0 -0
- package/assets/devtools/{chunk.CZ4J9K5b.js → chunk.D8mKET3e.js} +1 -1
- package/assets/devtools/chunk.D8mKET3e.js.br +0 -0
- package/assets/devtools/chunk.D8mKET3e.js.gz +0 -0
- package/assets/devtools/chunk.DP_hRYka.js +1 -0
- package/assets/devtools/chunk.DP_hRYka.js.br +0 -0
- package/assets/devtools/chunk.DP_hRYka.js.gz +0 -0
- package/assets/devtools/{chunk.W-1mjDd7.js → chunk.D_B99PWK.js} +1 -1
- package/assets/devtools/chunk.D_B99PWK.js.br +0 -0
- package/assets/devtools/chunk.D_B99PWK.js.gz +0 -0
- package/assets/devtools/{chunk.CoD2sLa1.js → chunk.Dwq9t2Dl.js} +1 -1
- package/assets/devtools/chunk.Dwq9t2Dl.js.br +0 -0
- package/assets/devtools/chunk.Dwq9t2Dl.js.gz +0 -0
- package/assets/devtools/{chunk.5EOPWu_h.js → chunk.DyNVihb8.js} +2 -2
- package/assets/devtools/chunk.DyNVihb8.js.br +0 -0
- package/assets/devtools/chunk.DyNVihb8.js.gz +0 -0
- package/assets/devtools/{chunk.D7ro5_n3.js → chunk.KNtbB1xL.js} +1 -1
- package/assets/devtools/chunk.KNtbB1xL.js.br +0 -0
- package/assets/devtools/chunk.KNtbB1xL.js.gz +0 -0
- package/assets/devtools/{chunk.lo8X57tY.js → chunk.MMyHzoxt.js} +1 -1
- package/assets/devtools/chunk.MMyHzoxt.js.br +0 -0
- package/assets/devtools/chunk.MMyHzoxt.js.gz +0 -0
- package/assets/devtools/{chunk.CQO49DQF.js → chunk.NIj8k4HU.js} +1 -1
- package/assets/devtools/chunk.NIj8k4HU.js.br +0 -0
- package/assets/devtools/chunk.NIj8k4HU.js.gz +0 -0
- package/assets/devtools/{chunk.CIYikik4.js → chunk.UjSU-RcH.js} +1 -1
- package/assets/devtools/chunk.UjSU-RcH.js.br +0 -0
- package/assets/devtools/chunk.UjSU-RcH.js.gz +0 -0
- package/assets/devtools/{chunk.BQQ5nN1l.js → chunk.Vm7uQYEE.js} +1 -1
- package/assets/devtools/chunk.Vm7uQYEE.js.br +0 -0
- package/assets/devtools/chunk.Vm7uQYEE.js.gz +0 -0
- package/assets/devtools/{chunk._t5z0lP9.js → chunk.WpBi-27p.js} +1 -1
- package/assets/devtools/chunk.WpBi-27p.js.br +0 -0
- package/assets/devtools/chunk.WpBi-27p.js.gz +0 -0
- package/assets/devtools/{chunk.ffYG67rk.js → chunk.X37zJjnv.js} +1 -1
- package/assets/devtools/chunk.X37zJjnv.js.br +0 -0
- package/assets/devtools/chunk.X37zJjnv.js.gz +0 -0
- package/assets/devtools/{chunk.u4exfSZ6.js → chunk.Yc53VNO7.js} +1 -1
- package/assets/devtools/chunk.Yc53VNO7.js.br +0 -0
- package/assets/devtools/chunk.Yc53VNO7.js.gz +0 -0
- package/assets/devtools/{chunk.BKZ6YEV4.js → chunk.jP0GrcaU.js} +1 -1
- package/assets/devtools/chunk.jP0GrcaU.js.br +0 -0
- package/assets/devtools/chunk.jP0GrcaU.js.gz +0 -0
- package/assets/devtools/chunk.ovzUqJjU.js +1 -0
- package/assets/devtools/chunk.ovzUqJjU.js.br +0 -0
- package/assets/devtools/chunk.ovzUqJjU.js.gz +0 -0
- package/assets/devtools/{chunk.albVVSQX.js → chunk.uK7gG_4K.js} +1 -1
- package/assets/devtools/chunk.uK7gG_4K.js.br +0 -0
- package/assets/devtools/chunk.uK7gG_4K.js.gz +0 -0
- package/assets/devtools/chunk.xP6lcP0O.js +2 -0
- package/assets/devtools/chunk.xP6lcP0O.js.br +0 -0
- package/assets/devtools/chunk.xP6lcP0O.js.gz +0 -0
- package/assets/devtools/{chunk.xjh83uy1.js → chunk.yhAz0qwe.js} +1 -1
- package/assets/devtools/chunk.yhAz0qwe.js.br +0 -0
- package/assets/devtools/chunk.yhAz0qwe.js.gz +0 -0
- package/assets/devtools/db.html +16 -16
- package/assets/devtools/db.html.br +0 -0
- package/assets/devtools/db.html.gz +0 -0
- package/assets/devtools/entry.BdraBs_7.js +79 -0
- package/assets/devtools/entry.BdraBs_7.js.br +0 -0
- package/assets/devtools/entry.BdraBs_7.js.gz +0 -0
- package/assets/devtools/env.html +17 -17
- package/assets/devtools/env.html.br +0 -0
- package/assets/devtools/env.html.gz +0 -0
- package/assets/devtools/graph.html +18 -18
- package/assets/devtools/graph.html.br +0 -0
- package/assets/devtools/graph.html.gz +0 -0
- package/assets/devtools/index.html +13 -13
- package/assets/devtools/index.html.br +0 -0
- package/assets/devtools/index.html.gz +0 -0
- package/assets/devtools/logs.html +20 -20
- package/assets/devtools/logs.html.br +0 -0
- package/assets/devtools/logs.html.gz +0 -0
- package/assets/devtools/queues.html +12 -12
- package/assets/devtools/queues.html.br +0 -0
- package/assets/devtools/queues.html.gz +0 -0
- package/assets/devtools/topics.html +20 -20
- package/assets/devtools/topics.html.br +0 -0
- package/assets/devtools/topics.html.gz +0 -0
- package/dist/index.d.ts +336 -1619
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/api/DevToolsProvider.ts +3 -3
- package/src/api/providers/DevToolsDatabaseProvider.ts +1 -1
- package/src/api/providers/DevToolsMetadataProvider.ts +2 -2
- package/assets/devtools/asset.DbJSgVPr.css +0 -1
- package/assets/devtools/asset.DbJSgVPr.css.br +0 -0
- package/assets/devtools/asset.DbJSgVPr.css.gz +0 -0
- package/assets/devtools/chunk.5EOPWu_h.js.br +0 -0
- package/assets/devtools/chunk.5EOPWu_h.js.gz +0 -0
- package/assets/devtools/chunk.B-FEo0lV.js.br +0 -0
- package/assets/devtools/chunk.B-FEo0lV.js.gz +0 -0
- package/assets/devtools/chunk.BCBZ1wAk.js.br +0 -0
- package/assets/devtools/chunk.BCBZ1wAk.js.gz +0 -0
- package/assets/devtools/chunk.BKZ6YEV4.js.br +0 -0
- package/assets/devtools/chunk.BKZ6YEV4.js.gz +0 -0
- package/assets/devtools/chunk.BQQ5nN1l.js.br +0 -0
- package/assets/devtools/chunk.BQQ5nN1l.js.gz +0 -0
- package/assets/devtools/chunk.BX7p74D8.js.br +0 -0
- package/assets/devtools/chunk.BX7p74D8.js.gz +0 -0
- package/assets/devtools/chunk.BZpSlmHc.js.br +0 -0
- package/assets/devtools/chunk.BZpSlmHc.js.gz +0 -0
- package/assets/devtools/chunk.BgMi2Pqe.js.br +0 -0
- package/assets/devtools/chunk.BgMi2Pqe.js.gz +0 -0
- package/assets/devtools/chunk.BjOMCPQ3.js.br +0 -0
- package/assets/devtools/chunk.BjOMCPQ3.js.gz +0 -0
- package/assets/devtools/chunk.BqEqrty9.js.br +0 -0
- package/assets/devtools/chunk.BqEqrty9.js.gz +0 -0
- package/assets/devtools/chunk.BuGWOypT.js +0 -1
- package/assets/devtools/chunk.BuGWOypT.js.br +0 -0
- package/assets/devtools/chunk.BuGWOypT.js.gz +0 -0
- package/assets/devtools/chunk.C3geCUq9.js.br +0 -0
- package/assets/devtools/chunk.C3geCUq9.js.gz +0 -0
- package/assets/devtools/chunk.CEbDj1NR.js.br +0 -0
- package/assets/devtools/chunk.CEbDj1NR.js.gz +0 -0
- package/assets/devtools/chunk.CIYikik4.js.br +0 -0
- package/assets/devtools/chunk.CIYikik4.js.gz +0 -0
- package/assets/devtools/chunk.CQO49DQF.js.br +0 -0
- package/assets/devtools/chunk.CQO49DQF.js.gz +0 -0
- package/assets/devtools/chunk.CWwJDVEM.js +0 -1
- package/assets/devtools/chunk.CWwJDVEM.js.br +0 -0
- package/assets/devtools/chunk.CWwJDVEM.js.gz +0 -0
- package/assets/devtools/chunk.CZ4J9K5b.js.br +0 -4
- package/assets/devtools/chunk.CZ4J9K5b.js.gz +0 -0
- package/assets/devtools/chunk.CoD2sLa1.js.br +0 -0
- package/assets/devtools/chunk.CoD2sLa1.js.gz +0 -0
- package/assets/devtools/chunk.CsxSstrk.js.br +0 -0
- package/assets/devtools/chunk.CsxSstrk.js.gz +0 -0
- package/assets/devtools/chunk.D0jFBu2p.js.br +0 -0
- package/assets/devtools/chunk.D0jFBu2p.js.gz +0 -0
- package/assets/devtools/chunk.D7ro5_n3.js.br +0 -0
- package/assets/devtools/chunk.D7ro5_n3.js.gz +0 -0
- package/assets/devtools/chunk.W-1mjDd7.js.br +0 -0
- package/assets/devtools/chunk.W-1mjDd7.js.gz +0 -0
- package/assets/devtools/chunk._3YEef80.js +0 -1
- package/assets/devtools/chunk._3YEef80.js.br +0 -0
- package/assets/devtools/chunk._3YEef80.js.gz +0 -0
- package/assets/devtools/chunk._t5z0lP9.js.br +0 -0
- package/assets/devtools/chunk._t5z0lP9.js.gz +0 -0
- package/assets/devtools/chunk.albVVSQX.js.br +0 -0
- package/assets/devtools/chunk.albVVSQX.js.gz +0 -0
- package/assets/devtools/chunk.bPNpu2iW.js +0 -1
- package/assets/devtools/chunk.bPNpu2iW.js.br +0 -0
- package/assets/devtools/chunk.bPNpu2iW.js.gz +0 -0
- package/assets/devtools/chunk.fWijEdcZ.js +0 -2
- package/assets/devtools/chunk.fWijEdcZ.js.br +0 -0
- package/assets/devtools/chunk.fWijEdcZ.js.gz +0 -0
- package/assets/devtools/chunk.ffYG67rk.js.br +0 -0
- package/assets/devtools/chunk.ffYG67rk.js.gz +0 -0
- package/assets/devtools/chunk.lo8X57tY.js.br +0 -0
- package/assets/devtools/chunk.lo8X57tY.js.gz +0 -0
- package/assets/devtools/chunk.rqjDVBSo.js +0 -1
- package/assets/devtools/chunk.rqjDVBSo.js.br +0 -0
- package/assets/devtools/chunk.rqjDVBSo.js.gz +0 -0
- package/assets/devtools/chunk.u4exfSZ6.js.br +0 -0
- package/assets/devtools/chunk.u4exfSZ6.js.gz +0 -0
- package/assets/devtools/chunk.xjh83uy1.js.br +0 -0
- package/assets/devtools/chunk.xjh83uy1.js.gz +0 -0
- package/assets/devtools/chunk.yZM2qlCX.js +0 -2
- package/assets/devtools/chunk.yZM2qlCX.js.br +0 -0
- package/assets/devtools/chunk.yZM2qlCX.js.gz +0 -0
- package/assets/devtools/entry.BWhdC3SJ.js +0 -79
- package/assets/devtools/entry.BWhdC3SJ.js.br +0 -0
- package/assets/devtools/entry.BWhdC3SJ.js.gz +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as Se,r as m,M as we,a as Ne,c as Ae,f as j,b as v,j as n,B as x,d as D,R as W,e as f,k as w,g as Ce,h as te,i as Ie,l as ze,I as ke,p as ye,m as Pe,n as Be,o as Re,q as $,s as O,U as _e,t as ne,v as Te,w as N,x as _,F as p,y as Ve,z as Ee,T as q,A as T,C as z,D as ae,E as Fe,G as Le,H as R,N as He,J as De,K as We,L as $e,O as Oe,P as qe,Q as Ke,S as Xe,V as Qe,W as Ge,X as Ue}from"./entry.BWhdC3SJ.js";import{g as le,a as se,A,u as Ye}from"./chunk.C3geCUq9.js";import{n as Je}from"./chunk.BjFrJKj1.js";import{S as Me}from"./chunk.albVVSQX.js";import{D as Ze}from"./chunk.CoD2sLa1.js";import"./chunk.BQQ5nN1l.js";import"./chunk.BlqFPyLh.js";import"./chunk.BCBZ1wAk.js";import"./chunk.uyVen0u2.js";import"./chunk.BX7p74D8.js";function ie(e,t){return Se("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function oe(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(o=>o.remove())}function ce({keepTransitions:e}={}){const t=m.useRef(Je),r=m.useRef(-1),o=m.useContext(we),d=Ne(),l=m.useRef(d?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const a=b=>{o.setColorScheme(b),t.current=e?()=>{}:oe(l.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{t.current?.()},10)},c=()=>{o.clearColorScheme(),t.current=e?()=>{}:oe(l.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{t.current?.()},10)},s=ie("light",{getInitialValueInEffect:!1}),i=o.colorScheme==="auto"?s:o.colorScheme,u=m.useCallback(()=>a(i==="light"?"dark":"light"),[a,i]);return m.useEffect(()=>()=>{t.current?.(),window.clearTimeout(r.current)},[]),{colorScheme:o.colorScheme,setColorScheme:a,clearColorScheme:c,toggleColorScheme:u}}function et(e,t={getInitialValueInEffect:!0}){const r=ie(e,t),{colorScheme:o}=ce();return o==="auto"?r:o}const[tt,C]=Ae("AppShell was not found in tree");var S={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const K=j((e,t)=>{const{classNames:r,className:o,style:d,styles:l,unstyled:a,vars:c,withBorder:s,zIndex:i,mod:u,...b}=v("AppShellAside",null,e),h=C();return h.disabled?null:n.jsx(x,{component:"aside",ref:t,mod:[{"with-border":s??h.withBorder},u],...h.getStyles("aside",{className:D({[W.classNames.zeroRight]:h.offsetScrollbars},o),classNames:r,styles:l,style:d}),...b,__vars:{"--app-shell-aside-z-index":`calc(${i??h.zIndex} + 1)`}})});K.classes=S;K.displayName="@mantine/core/AppShellAside";const X=j((e,t)=>{const{classNames:r,className:o,style:d,styles:l,unstyled:a,vars:c,withBorder:s,zIndex:i,mod:u,...b}=v("AppShellFooter",null,e),h=C();return h.disabled?null:n.jsx(x,{component:"footer",ref:t,mod:[{"with-border":s??h.withBorder},u],...h.getStyles("footer",{className:D({[W.classNames.zeroRight]:h.offsetScrollbars},o),classNames:r,styles:l,style:d}),...b,__vars:{"--app-shell-footer-z-index":(i??h.zIndex)?.toString()}})});X.classes=S;X.displayName="@mantine/core/AppShellFooter";const Q=j((e,t)=>{const{classNames:r,className:o,style:d,styles:l,unstyled:a,vars:c,withBorder:s,zIndex:i,mod:u,...b}=v("AppShellHeader",null,e),h=C();return h.disabled?null:n.jsx(x,{component:"header",ref:t,mod:[{"with-border":s??h.withBorder},u],...h.getStyles("header",{className:D({[W.classNames.zeroRight]:h.offsetScrollbars},o),classNames:r,styles:l,style:d}),...b,__vars:{"--app-shell-header-z-index":(i??h.zIndex)?.toString()}})});Q.classes=S;Q.displayName="@mantine/core/AppShellHeader";const G=j((e,t)=>{const{classNames:r,className:o,style:d,styles:l,vars:a,...c}=v("AppShellMain",null,e),s=C();return n.jsx(x,{component:"main",ref:t,...s.getStyles("main",{className:o,style:d,classNames:r,styles:l}),...c})});G.classes=S;G.displayName="@mantine/core/AppShellMain";function k(e){return typeof e=="object"?e.base:e}function y(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function P(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function st({baseStyles:e,minMediaStyles:t,maxMediaStyles:r,aside:o,theme:d}){const l=o?.width,a="translateX(var(--app-shell-aside-width))",c="translateX(calc(var(--app-shell-aside-width) * -1))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(r[o?.breakpoint]=r[o?.breakpoint]||{},r[o?.breakpoint]["--app-shell-aside-width"]="100%",r[o?.breakpoint]["--app-shell-aside-offset"]="0px"),y(l)){const s=f(k(l));e["--app-shell-aside-width"]=s,e["--app-shell-aside-offset"]=s}if(P(l)&&(typeof l.base<"u"&&(e["--app-shell-aside-width"]=f(l.base),e["--app-shell-aside-offset"]=f(l.base)),w(l).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-aside-width"]=f(l[s]),t[s]["--app-shell-aside-offset"]=f(l[s]))})),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-aside-transform"]=a,t[s]["--app-shell-aside-transform-rtl"]=c,t[s]["--app-shell-aside-offset"]="0px !important",t[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(o?.collapsed?.mobile){const s=le(o.breakpoint,d.breakpoints)-.1;r[s]=r[s]||{},r[s]["--app-shell-aside-width"]="100%",r[s]["--app-shell-aside-offset"]="0px",r[s]["--app-shell-aside-transform"]=a,r[s]["--app-shell-aside-transform-rtl"]=c,r[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function ot({baseStyles:e,minMediaStyles:t,footer:r}){const o=r?.height,d="translateY(var(--app-shell-footer-height))",l=r?.offset??!0;if(y(o)){const a=f(k(o));e["--app-shell-footer-height"]=a,l&&(e["--app-shell-footer-offset"]=a)}P(o)&&(typeof o.base<"u"&&(e["--app-shell-footer-height"]=f(o.base),l&&(e["--app-shell-footer-offset"]=f(o.base))),w(o).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-footer-height"]=f(o[a]),l&&(t[a]["--app-shell-footer-offset"]=f(o[a])))})),r?.collapsed&&(e["--app-shell-footer-transform"]=d,e["--app-shell-footer-offset"]="0px !important")}function rt({baseStyles:e,minMediaStyles:t,header:r}){const o=r?.height,d="translateY(calc(var(--app-shell-header-height) * -1))",l=r?.offset??!0;if(y(o)){const a=f(k(o));e["--app-shell-header-height"]=a,l&&(e["--app-shell-header-offset"]=a)}P(o)&&(typeof o.base<"u"&&(e["--app-shell-header-height"]=f(o.base),l&&(e["--app-shell-header-offset"]=f(o.base))),w(o).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-header-height"]=f(o[a]),l&&(t[a]["--app-shell-header-offset"]=f(o[a])))})),r?.collapsed&&(e["--app-shell-header-transform"]=d,e["--app-shell-header-offset"]="0px !important")}function nt({baseStyles:e,minMediaStyles:t,maxMediaStyles:r,navbar:o,theme:d}){const l=o?.width,a="translateX(calc(var(--app-shell-navbar-width) * -1))",c="translateX(var(--app-shell-navbar-width))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(r[o?.breakpoint]=r[o?.breakpoint]||{},r[o?.breakpoint]["--app-shell-navbar-width"]="100%",r[o?.breakpoint]["--app-shell-navbar-offset"]="0px"),y(l)){const s=f(k(l));e["--app-shell-navbar-width"]=s,e["--app-shell-navbar-offset"]=s}if(P(l)&&(typeof l.base<"u"&&(e["--app-shell-navbar-width"]=f(l.base),e["--app-shell-navbar-offset"]=f(l.base)),w(l).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-navbar-width"]=f(l[s]),t[s]["--app-shell-navbar-offset"]=f(l[s]))})),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-navbar-transform"]=a,t[s]["--app-shell-navbar-transform-rtl"]=c,t[s]["--app-shell-navbar-offset"]="0px !important"}if(o?.collapsed?.mobile){const s=le(o.breakpoint,d.breakpoints)-.1;r[s]=r[s]||{},r[s]["--app-shell-navbar-width"]="100%",r[s]["--app-shell-navbar-offset"]="0px",r[s]["--app-shell-navbar-transform"]=a,r[s]["--app-shell-navbar-transform-rtl"]=c}}function L(e){return Number(e)===0?"0px":Ce(e)}function at({padding:e,baseStyles:t,minMediaStyles:r}){y(e)&&(t["--app-shell-padding"]=L(k(e))),P(e)&&(e.base&&(t["--app-shell-padding"]=L(e.base)),w(e).forEach(o=>{o!=="base"&&(r[o]=r[o]||{},r[o]["--app-shell-padding"]=L(e[o]))}))}function lt({navbar:e,header:t,footer:r,aside:o,padding:d,theme:l}){const a={},c={},s={};nt({baseStyles:s,minMediaStyles:a,maxMediaStyles:c,navbar:e,theme:l}),st({baseStyles:s,minMediaStyles:a,maxMediaStyles:c,aside:o,theme:l}),rt({baseStyles:s,minMediaStyles:a,header:t}),ot({baseStyles:s,minMediaStyles:a,footer:r}),at({baseStyles:s,minMediaStyles:a,padding:d});const i=se(w(a),l.breakpoints).map(h=>({query:`(min-width: ${te(h.px)})`,styles:a[h.value]})),u=se(w(c),l.breakpoints).map(h=>({query:`(max-width: ${te(h.px)})`,styles:c[h.value]})),b=[...i,...u];return{baseStyles:s,media:b}}function it({navbar:e,header:t,aside:r,footer:o,padding:d}){const l=Ie(),a=ze(),{media:c,baseStyles:s}=lt({navbar:e,header:t,footer:o,aside:r,padding:d,theme:l});return n.jsx(ke,{media:c,styles:s,selector:a.cssVariablesSelector})}const U=j((e,t)=>{const{classNames:r,className:o,style:d,styles:l,unstyled:a,vars:c,withBorder:s,zIndex:i,mod:u,...b}=v("AppShellNavbar",null,e),h=C();return h.disabled?null:n.jsx(x,{component:"nav",ref:t,mod:[{"with-border":s??h.withBorder},u],...h.getStyles("navbar",{className:o,classNames:r,styles:l,style:d}),...b,__vars:{"--app-shell-navbar-z-index":`calc(${i??h.zIndex} + 1)`}})});U.classes=S;U.displayName="@mantine/core/AppShellNavbar";const Y=ye((e,t)=>{const{classNames:r,className:o,style:d,styles:l,vars:a,grow:c,mod:s,...i}=v("AppShellSection",null,e),u=C();return n.jsx(x,{ref:t,mod:[{grow:c},s],...u.getStyles("section",{className:o,style:d,classNames:r,styles:l}),...i})});Y.classes=S;Y.displayName="@mantine/core/AppShellSection";function ct({transitionDuration:e,disabled:t}){const[r,o]=m.useState(!0),d=m.useRef(-1),l=m.useRef(-1);return Pe("resize",()=>{o(!0),clearTimeout(d.current),d.current=window.setTimeout(()=>m.startTransition(()=>{o(!1)}),200)}),Be(()=>{o(!0),clearTimeout(l.current),l.current=window.setTimeout(()=>m.startTransition(()=>{o(!1)}),e||0)},[t,e]),r}const dt={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Re("app")},ht=O((e,{transitionDuration:t,transitionTimingFunction:r})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":r}})),g=j((e,t)=>{const r=v("AppShell",dt,e),{classNames:o,className:d,style:l,styles:a,unstyled:c,vars:s,navbar:i,withBorder:u,padding:b,transitionDuration:h,transitionTimingFunction:V,header:I,zIndex:E,layout:B,disabled:F,aside:fe,footer:me,offsetScrollbars:be=!0,mod:ge,attributes:ve,...xe}=r,ee=$({name:"AppShell",classes:S,props:r,className:d,style:l,classNames:o,styles:a,unstyled:c,attributes:ve,vars:s,varsResolver:ht}),je=ct({disabled:F,transitionDuration:h});return n.jsxs(tt,{value:{getStyles:ee,withBorder:u,zIndex:E,disabled:F,offsetScrollbars:be},children:[n.jsx(it,{navbar:i,header:I,aside:fe,footer:me,padding:b}),n.jsx(x,{ref:t,...ee("root"),mod:[{resizing:je,layout:B,disabled:F},ge],...xe})]})});g.classes=S;g.displayName="@mantine/core/AppShell";g.Navbar=U;g.Header=Q;g.Main=G;g.Aside=K;g.Footer=X;g.Section=Y;var de={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const ut=O((e,{color:t,size:r,lineSize:o,transitionDuration:d,transitionTimingFunction:l})=>({root:{"--burger-color":t?Te(t,e):void 0,"--burger-size":ne(r,"burger-size"),"--burger-line-size":o?f(o):void 0,"--burger-transition-duration":d===void 0?void 0:`${d}ms`,"--burger-transition-timing-function":l}})),J=j((e,t)=>{const r=v("Burger",null,e),{classNames:o,className:d,style:l,styles:a,unstyled:c,vars:s,opened:i,children:u,transitionDuration:b,transitionTimingFunction:h,lineSize:V,attributes:I,...E}=r,B=$({name:"Burger",classes:de,props:r,className:d,style:l,classNames:o,styles:a,unstyled:c,attributes:I,vars:s,varsResolver:ut});return n.jsxs(_e,{...B("root"),ref:t,...E,children:[n.jsx(x,{mod:["reduce-motion",{opened:i}],...B("burger")}),u]})});J.classes=de;J.displayName="@mantine/core/Burger";var he={root:"m_dc6f14e2"};const pt=O((e,{size:t})=>({root:{"--kbd-fz":ne(t,"kbd-fz")}})),M=j((e,t)=>{const r=v("Kbd",null,e),{classNames:o,className:d,style:l,styles:a,unstyled:c,vars:s,attributes:i,...u}=r,b=$({name:"Kbd",classes:he,props:r,className:d,style:l,classNames:o,styles:a,unstyled:c,attributes:i,vars:s,varsResolver:pt});return n.jsx(x,{component:"kbd",ref:t,...b("root"),...u})});M.classes=he;M.displayName="@mantine/core/Kbd";const ft=[["path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629",key:"svg-0"}],["path",{d:"M4 6.371h7",key:"svg-1"}],["path",{d:"M5 9c0 2.144 2.252 3.908 6 4",key:"svg-2"}],["path",{d:"M12 20l4 -9l4 9",key:"svg-3"}],["path",{d:"M19.1 18h-6.2",key:"svg-4"}],["path",{d:"M6.694 3l.793 .582",key:"svg-5"}]],mt=N("outline","language","Language",ft);const bt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],gt=N("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",bt);const vt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M15 4v16",key:"svg-1"}],["path",{d:"M9 10l2 2l-2 2",key:"svg-2"}]],xt=N("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",vt);const jt=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008",key:"svg-0"}]],re=N("outline","moon","Moon",jt);const St=[["path",{d:"M12 3c7.2 0 9 1.8 9 9c0 7.2 -1.8 9 -9 9c-7.2 0 -9 -1.8 -9 -9c0 -7.2 1.8 -9 9 -9",key:"svg-0"}]],wt=N("outline","square-rounded","SquareRounded",St);const Nt=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],H=N("outline","sun","Sun",Nt),At=e=>{const[t,r]=_("alepha.ui.sidebar.opened");return n.jsx(J,{opened:t,onClick:()=>r(!t),hiddenFrom:"sm",size:"sm",...e})},ue=e=>{const{setColorScheme:t}=ce(),r=et("light"),[o,d]=m.useState("default"),l=e.mode??"minimal";m.useEffect(()=>{d(r)},[r]);const a=()=>{t(r==="dark"?"light":"dark")};return l==="segmented"?n.jsx(Me,{value:o,onChange:c=>t(c),data:[{value:"light",label:n.jsx(p,{h:20,align:"center",justify:"center",children:n.jsx(H,{size:16})})},{value:"dark",label:n.jsx(p,{h:20,align:"center",justify:"center",children:n.jsx(re,{size:16})})}],w:e.fullWidth?"100%":void 0,...e.segmentedProps}):n.jsx(A,{onClick:a,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",fullWidth:e.fullWidth??!1,icon:o==="dark"?H:o==="light"?re:H,...e.actionProps})},Ct=e=>{const t=Ye();return n.jsx(A,{variant:"default",icon:mt,menu:{items:t.languages.map(r=>({label:t.tr(r),onClick:()=>t.setLang(r),active:t.lang===r}))},...e.actionProps})},Z=e=>n.jsx(A,{variant:"default",onClick:Ve.open,justify:"space-between",rightSection:n.jsx(M,{visibleFrom:"sm",size:"sm",children:"⌘+K"}),radius:"md",...e.actionProps,children:n.jsxs(p,{align:"center",gap:"xs",children:[n.jsx(Ee,{size:16,color:"gray"}),n.jsx(p,{visibleFrom:"sm",miw:192,children:n.jsx(q,{size:"xs",c:"dimmed",children:"Search..."})})]})}),It=e=>{const{items:t=[]}=e,r=(a,c)=>{if("type"in a){if(a.type==="burger")return n.jsx(At,{},c);if(a.type==="dark")return n.jsx(ue,{...a.props},c);if(a.type==="search")return n.jsx(Z,{...a.props},c);if(a.type==="lang")return n.jsx(Ct,{...a.props},c);if(a.type==="spacer")return n.jsx(p,{w:16},c);if(a.type==="divider")return n.jsx(Ze,{orientation:"vertical"},c)}return"element"in a?a.element:null},o=t.filter(a=>a.position==="left"),d=t.filter(a=>a.position==="center"),l=t.filter(a=>a.position==="right");return n.jsxs(p,{h:"100%",align:"center",px:"md",justify:"space-between",...e.flexProps,children:[n.jsx(p,{flex:1,children:o.map((a,c)=>n.jsx(p,{ml:c===0?0:"md",align:"center",children:r(a,c)},c))}),n.jsx(p,{children:d.map((a,c)=>n.jsx(p,{mx:"md",align:"center",children:r(a,c)},c))}),n.jsx(p,{flex:1,align:"center",justify:"end",children:l.map((a,c)=>n.jsx(p,{ml:c===0?0:"md",align:"center",children:r(a,c)},c))})]})},zt=()=>{const[e,t]=_("alepha.ui.sidebar.collapsed");return n.jsx(p,{children:n.jsx(A,{icon:e?n.jsx(xt,{}):n.jsx(gt,{}),variant:"subtle",size:"md",onClick:()=>t(!e),tooltip:{position:"right",label:e?"Show sidebar":"Hide sidebar"}})})},kt=e=>{const t=T(),{onItemClick:r}=e,o=(s,i)=>{if("type"in s){if(s.type==="spacer")return n.jsx(p,{h:16},i);if(s.type==="divider")return n.jsx(p,{h:1,bg:"var(--alepha-border)",my:"md",mx:"sm"},i);if(s.type==="search")return n.jsx(Z,{collapsed:e.collapsed},i);if(s.type==="toggle")return n.jsx(zt,{},i);if(s.type==="section")return e.collapsed?void 0:n.jsxs(p,{mt:"md",mb:"xs",align:"center",gap:"xs",children:[z(s.icon),n.jsx(q,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:s.label},i)]},i)}return"element"in s?n.jsx(p,{children:s.element},i):s.can&&!s.can()?null:e.collapsed?n.jsx(yt,{item:s,level:0,onItemClick:r,theme:e.theme??{}},i):n.jsx(pe,{item:s,level:0,onItemClick:r,theme:e.theme??{}},i)},d=()=>{if(e.items)return e.items;if(e.autoPopulateMenu){const s=t.concretePages.filter(i=>!i.can||i.can()).map(i=>({label:i.label??i.name,icon:z(i.icon),href:t.path(i.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const i=e.autoPopulateMenu.startsWith;return s.filter(u=>u.href?.startsWith(i))}return s}return[]},l="md",a=e.items?e.gap:"xs",c=m.useMemo(()=>d(),[]);return n.jsxs(p,{flex:1,py:l,direction:"column",className:"overflow-auto",...e.flexProps,children:[n.jsx(p,{gap:a,px:l,direction:"column",children:c.filter(s=>s.position==="top").map((s,i)=>o(s,i))}),n.jsx(p,{gap:a,px:l,direction:"column",flex:1,className:"overflow-auto",children:c.filter(s=>!s.position).map((s,i)=>o(s,i))}),n.jsx(p,{gap:a,px:l,direction:"column",children:c.filter(s=>s.position==="bottom").map((s,i)=>o(s,i))})]})},pe=e=>{const{item:t,level:r}=e,o=2,d=T(),l=m.useCallback(i=>{if(!i.children)return!1;for(const u of i.children)if(u.href&&d.isActive(u.href)||l(u))return!0;return!1},[]),[a,c]=m.useState(l(t));if(ae({"react:transition:end":()=>{l(t)&&c(!0)}},[]),r>o)return null;const s=i=>{e.item.target||i.preventDefault(),t.children&&t.children.length>0?c(!a):(e.onItemClick?.(t),t.onClick?.())};return n.jsxs(p,{direction:"column",ps:r===0?0:32,pos:"relative",children:[n.jsx(A,{w:"100%",justify:"space-between",href:e.item.href,target:e.item.target,size:e.item.theme?.size??e.theme.button?.size??(r===0?"sm":"xs"),c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:s,leftSection:n.jsxs(p,{w:"100%",align:"center",gap:"sm",children:[z(t.icon),n.jsxs(p,{direction:"column",children:[n.jsx(p,{children:t.label}),t.description&&n.jsx(q,{size:"xs",c:"dimmed",children:t.description})]})]}),rightSection:t.children?n.jsx(p,{children:a?n.jsx(Fe,{size:14}):n.jsx(Le,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&a&&n.jsxs(p,{direction:"column","data-parent-level":r,children:[n.jsx(p,{style:{position:"absolute",width:1,background:"linear-gradient(to bottom, transparent, var(--alepha-border), transparent)",top:48,left:20+32*r,bottom:16}}),t.children.filter(i=>!i.can||i.can()).map((i,u)=>n.jsx(pe,{item:i,level:r+1,onItemClick:e.onItemClick,theme:e.theme},u))]})]})},yt=e=>{const{item:t,level:r}=e,o=T(),d=m.useCallback(s=>{if(!s.children)return!1;for(const i of s.children)if(i.href&&o.isActive(i.href)||d(i))return!0;return!1},[]),[l,a]=m.useState(d(t)),c=s=>{e.item.target||s.preventDefault(),t.children&&t.children.length>0?a(!l):(e.onItemClick?.(t),t.onClick?.())};return n.jsx(A,{size:e.item.theme?.size??e.theme.button?.size??(r===0?"sm":"xs"),variant:"subtle",variantActive:"default",tooltip:t.children?void 0:{label:t.label,position:"right"},radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:c,icon:z(t.icon)??n.jsx(wt,{}),href:e.item.href,target:e.item.target,menu:t.children?{position:"right",on:"hover",items:t.children.filter(s=>!s.can||s.can()).map(s=>({label:s.label,href:s.href,icon:z(s.icon),children:s.children?.filter(i=>!i.can||i.can())}))}:void 0,...e.item.actionProps})},Pt=e=>{const t=T(),[r,o]=_("alepha.ui.sidebar.opened"),[d]=_("alepha.ui.sidebar.collapsed",e.sidebarProps?.collapsed),l=()=>{if(e.noSidebarWhen?.paths){for(const I of e.noSidebarWhen.paths)if(t.isActive(I,{startWith:!0}))return!1}return!0},[a,c]=m.useState(l());ae({"react:transition:end":()=>{c(l())},"react:transition:begin":()=>{o(!1)}},[]);const s=[{position:"left",type:"burger"}],i=a&&e.sidebarProps!==void 0,u=i||e.appBarProps||e.header,b=u?60:0,h=e.footer?24:0,V=i?d?78:300:0;return n.jsxs(g,{w:"100%",flex:1,padding:"md",header:u?{height:60}:void 0,navbar:i?{width:d?{base:78}:{base:300},breakpoint:"sm",collapsed:{mobile:!r}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[n.jsx(g.Header,{bg:R.colors.surface,...e.appShellHeaderProps,children:e.header??n.jsx(It,{items:s,...e.appBarProps})}),i&&n.jsx(g.Navbar,{bg:R.colors.surface,...e.appShellNavbarProps,children:n.jsx(kt,{collapsed:d,...e.sidebarProps??{}})}),n.jsx(g.Main,{pl:V,pt:b,pb:h,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},...e.appShellMainProps,children:e.children??n.jsx(He,{})}),e.footer&&n.jsx(g.Footer,{bg:R.colors.surface,...e.appShellFooterProps,children:e.footer})]})},Wt=()=>n.jsx(Pt,{appShellHeaderProps:{bg:R.colors.background},appShellNavbarProps:{bg:"transparent"},sidebarProps:{gap:4,collapsed:!0,items:[{label:"Dashboard",icon:n.jsx(De,{}),href:"/"},{type:"divider"},{label:"Actions",icon:n.jsx(We,{}),href:"/actions"},{label:"Queues",icon:n.jsx($e,{}),href:"/queues"},{label:"Topics",icon:n.jsx(Oe,{}),href:"/topics"},{label:"Caches",icon:n.jsx(qe,{}),href:"/caches"},{label:"DB Studio",icon:n.jsx(Ke,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:n.jsx(Xe,{}),href:"/env"},{label:"Atoms",icon:n.jsx(Qe,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:n.jsx(Ge,{}),href:"/graph"},{label:"Logs",icon:n.jsx(Ue,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:n.jsx(p,{h:"60px",w:"78px",style:{marginLeft:"-32px",borderRight:"1px solid var(--mantine-color-default-border)"}})},{position:"left",element:n.jsx(Z,{actionProps:{variant:"outline",bd:"1px solid var(--mantine-color-default-border)"}})},{position:"right",element:n.jsx(ue,{})}]}});export{Wt as DevLayout,Wt as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as h,j as i,B as W,f as oe,b as ae,q as ce,ah as le,s as ie,g as ue,T as A,a5 as de,E as fe,G as he,aa as pe,ab as me,ac as ye,ai as ve,F as ge,H as xe}from"./entry.BWhdC3SJ.js";import{f as G}from"./chunk.BlqFPyLh.js";import{u as ke}from"./chunk.BX7p74D8.js";function Y(e){const r=new Map;return(...n)=>{const t=JSON.stringify(n);if(r.has(t))return r.get(t);const s=e(...n);return r.set(t,s),s}}function L(e,r,n){if(!e||!r)return[];const t=n.indexOf(e),s=n.indexOf(r),c=Math.min(t,s),d=Math.max(t,s);return n.slice(c,d+1)}function H({node:e,getStyles:r,rootIndex:n,controller:t,expandOnClick:s,selectOnClick:c,isSubtree:d,level:p=1,renderNode:g,flatValues:f,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b}){const u=h.useRef(null),y=(e.children||[]).map(o=>i.jsx(H,{node:o,flatValues:f,getStyles:r,rootIndex:void 0,level:p+1,controller:t,expandOnClick:s,isSubtree:!0,renderNode:g,selectOnClick:c,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b},o.value)),v=o=>{if(o.nativeEvent.code==="ArrowRight"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]?o.currentTarget.querySelector("[role=treeitem]")?.focus():t.expand(e.value)),o.nativeEvent.code==="ArrowLeft"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]&&(e.children||[]).length>0?t.collapse(e.value):d&&G(o.currentTarget,"[role=treeitem]")?.focus()),o.nativeEvent.code==="ArrowDown"||o.nativeEvent.code==="ArrowUp"){const w=G(o.currentTarget,"[data-tree-root]");if(!w)return;o.stopPropagation(),o.preventDefault();const T=Array.from(w.querySelectorAll("[role=treeitem]")),O=T.indexOf(o.currentTarget);if(O===-1)return;const I=o.nativeEvent.code==="ArrowDown"?O+1:O-1;if(T[I]?.focus(),o.shiftKey){const E=T[I];E&&t.setSelectedState(L(t.anchorNode,E.dataset.value,f))}}o.nativeEvent.code==="Space"&&(x&&(o.stopPropagation(),o.preventDefault(),t.toggleExpanded(e.value)),b&&(o.stopPropagation(),o.preventDefault(),t.isNodeChecked(e.value)?t.uncheckNode(e.value):t.checkNode(e.value)))},N=o=>{o.stopPropagation(),m&&o.shiftKey&&t.anchorNode?(t.setSelectedState(L(t.anchorNode,e.value,f)),u.current?.focus()):(s&&t.toggleExpanded(e.value),c&&t.select(e.value),u.current?.focus())},C=t.selectedState.includes(e.value),S={...r("label"),onClick:N,"data-selected":C||void 0,"data-value":e.value,"data-hovered":t.hoveredNode===e.value||void 0};return i.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${p-1})`}}),role:"treeitem","aria-selected":C,"data-value":e.value,"data-selected":C||void 0,"data-hovered":t.hoveredNode===e.value||void 0,"data-level":p,tabIndex:n===0?0:-1,onKeyDown:v,ref:u,onMouseOver:o=>{o.stopPropagation(),t.setHoveredNode(e.value)},onMouseLeave:o=>{o.stopPropagation(),t.setHoveredNode(null)},children:[typeof g=="function"?g({node:e,level:p,selected:C,tree:t,expanded:t.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:S}):i.jsx("div",{...S,children:e.label}),t.expandedState[e.value]&&y.length>0&&i.jsx(W,{component:"ul",role:"group",...r("subtree"),"data-level":p,children:y})]})}H.displayName="@mantine/core/TreeNode";function M(e,r,n=[]){const t=[];for(const s of e)if(Array.isArray(s.children)&&s.children.length>0){const c=M(s.children,r,n);if(c.currentTreeChecked.length===s.children.length){const d=c.currentTreeChecked.every(g=>g.checked),p={checked:d,indeterminate:!d,value:s.value,hasChildren:!0};t.push(p),n.push(p)}else if(c.currentTreeChecked.length>0){const d={checked:!1,indeterminate:!0,value:s.value,hasChildren:!0};t.push(d),n.push(d)}}else if(r.includes(s.value)){const c={checked:!0,indeterminate:!1,value:s.value,hasChildren:!1};t.push(c),n.push(c)}return{result:n,currentTreeChecked:t}}function Z(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const t=Z(e,n.children);if(t)return t}}return null}function P(e,r,n=[]){const t=Z(e,r);return t?!Array.isArray(t.children)||t.children.length===0?[t.value]:(t.children.forEach(s=>{Array.isArray(s.children)&&s.children.length>0?P(s.value,r,n):n.push(s.value)}),n):n}function X(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...X(n.children)):r.push(n.value),r),[])}function be(e,r,n){return n.length===0?!1:n.includes(e)?!0:M(r,n).result.some(s=>s.value===e&&s.checked)}const Ne=Y(be);function je(e,r,n){return n.length===0?!1:M(r,n).result.some(s=>s.value===e&&s.indeterminate)}const Ce=Y(je);function _(e,r,n,t={}){return r.forEach(s=>{t[s.value]=s.value in e?e[s.value]:s.value===n,Array.isArray(s.children)&&_(e,s.children,n,t)}),t}function B(e,r){const n=_({},e,[]);return r==="*"?Object.keys(n).reduce((t,s)=>({...t,[s]:!0}),{}):(r.forEach(t=>{n[t]=!0}),n)}function Se(e,r){const n=[];return e.forEach(t=>n.push(...P(t,r))),Array.from(new Set(n))}function Q({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:t=!1,onNodeCollapse:s,onNodeExpand:c}={}){const[d,p]=h.useState([]),[g,f]=h.useState(n),[m,x]=h.useState(e),[b,u]=h.useState(r),[y,v]=h.useState(null),[N,C]=h.useState(null),S=h.useCallback(a=>{f(l=>_(l,a,m)),u(l=>Se(l,a)),p(a)},[m,b]),o=h.useCallback(a=>{f(l=>{const j={...l,[a]:!l[a]};return j[a]?c?.(a):s?.(a),j})},[s,c]),w=h.useCallback(a=>{f(l=>(l[a]!==!1&&s?.(a),{...l,[a]:!1}))},[s]),T=h.useCallback(a=>{f(l=>(l[a]!==!0&&c?.(a),{...l,[a]:!0}))},[c]),O=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!0}),l})},[]),I=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!1}),l})},[]),E=h.useCallback(a=>x(l=>t?l.includes(a)?(v(null),l.filter(j=>j!==a)):(v(a),[...l,a]):l.includes(a)?(v(null),[]):(v(a),[a])),[]),V=h.useCallback(a=>{v(a),x(l=>t?l.includes(a)?l:[...l,a]:[a])},[]),$=h.useCallback(a=>{y===a&&v(null),x(l=>l.filter(j=>j!==a))},[]),D=h.useCallback(()=>{x([]),v(null)},[]),R=h.useCallback(a=>{const l=P(a,d);u(j=>Array.from(new Set([...j,...l])))},[d]),F=h.useCallback(a=>{const l=P(a,d);u(j=>j.filter(se=>!l.includes(se)))},[d]),ne=h.useCallback(()=>{u(()=>X(d))},[d]),re=h.useCallback(()=>{u([])},[]);return{multiple:t,expandedState:g,selectedState:m,checkedState:b,anchorNode:y,initialize:S,toggleExpanded:o,collapse:w,expand:T,expandAllNodes:O,collapseAllNodes:I,setExpandedState:f,checkNode:R,uncheckNode:F,checkAllNodes:ne,uncheckAllNodes:re,setCheckedState:u,toggleSelected:E,select:V,deselect:$,clearSelected:D,setSelectedState:x,hoveredNode:N,setHoveredNode:C,getCheckedNodes:()=>M(d,b).result,isNodeChecked:a=>Ne(a,d,b),isNodeIndeterminate:a=>Ce(a,d,b)}}var z={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function ee(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...ee(n.children)),r),[])}const Ae={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},we=ie((e,{levelOffset:r})=>({root:{"--level-offset":ue(r)}})),q=oe((e,r)=>{const n=ae("Tree",Ae,e),{classNames:t,className:s,style:c,styles:d,unstyled:p,vars:g,data:f,expandOnClick:m,tree:x,renderNode:b,selectOnClick:u,clearSelectionOnOutsideClick:y,allowRangeSelection:v,expandOnSpace:N,levelOffset:C,checkOnSpace:S,attributes:o,...w}=n,T=Q(),O=x||T,I=ce({name:"Tree",classes:z,props:n,className:s,style:c,classNames:t,styles:d,unstyled:p,attributes:o,vars:g,varsResolver:we}),E=ke(()=>y&&O.clearSelected()),V=le(r,E),$=h.useMemo(()=>ee(f),[f]);h.useEffect(()=>{O.initialize(f)},[f]);const D=f.map((R,F)=>i.jsx(H,{node:R,getStyles:I,rootIndex:F,expandOnClick:m,selectOnClick:u,controller:O,renderNode:b,flatValues:$,allowRangeSelection:v,expandOnSpace:N,checkOnSpace:S},R.value));return i.jsx(W,{component:"ul",ref:V,...I("root"),...w,role:"tree","aria-multiselectable":O.multiple,"data-tree-root":!0,children:D})});q.displayName="@mantine/core/Tree";q.classes=z;const U={xs:{icon:14,levelOffset:16},sm:{icon:16,levelOffset:20},md:{icon:18,levelOffset:24},lg:{icon:20,levelOffset:28},xl:{icon:22,levelOffset:32}},k={root:{fontFamily:"var(--mantine-font-family-monospace)"},chevron:{flexShrink:0,color:"var(--mantine-color-dimmed)"},key:{color:"var(--mantine-color-cyan-text)",fontWeight:500},colon:{color:"var(--mantine-color-dimmed)"},string:{color:"var(--mantine-color-teal-text)"},number:{color:"var(--mantine-color-blue-text)"},boolean:{color:"var(--mantine-color-violet-text)"},null:{color:"var(--mantine-color-dimmed)",fontStyle:"italic"},preview:{color:"var(--mantine-color-dimmed)"}},K=e=>e===null?"null":e===void 0?"undefined":Array.isArray(e)?"array":typeof e;function J(e,r=[],n,t=!1,s=10){const c=n!==void 0?[...r,n]:r,d=c.length>0?c.join("."):"root";if(c.length>s)return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t};const p=K(e);if(p==="object"||p==="array"){const f=(p==="array"?e.map((m,x)=>[String(x),m]):Object.entries(e)).map(([m,x])=>J(x,c,m,p==="array",s)).filter(m=>m!==null);return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t,children:f.length>0?f:void 0}}return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t}}function te(e,r,n=0){if(n>=r)return[];const t=[];for(const s of e)s.children&&(t.push(s.value),t.push(...te(s.children,r,n+1)));return t}const Oe=({value:e,iconSize:r})=>{const[n,t]=h.useState(!1),s=h.useCallback(c=>{c.stopPropagation(),navigator.clipboard.writeText(e),t(!0),setTimeout(()=>t(!1),1500)},[e]);return i.jsx(pe,{size:r+4,variant:"transparent",c:n?"green":"dimmed",onClick:s,className:"alepha-json-viewer-copy",children:n?i.jsx(me,{size:r}):i.jsx(ye,{size:r})})},Te=({node:e,expanded:r,hasChildren:n,elementProps:t,size:s,config:c,showQuotes:d,showCopyButton:p,renderValue:g})=>{const{nodeValue:f,nodeKey:m,path:x,isArrayItem:b,isRoot:u}=e,y=K(f),v=y==="object"||y==="array",N=()=>{if(!v)return null;const o=(y==="array"?f:Object.keys(f)).length,w=y==="array"?"item":"key";return r?null:i.jsx(A,{fs:"italic",component:"span",size:s,style:k.preview,children:o===0?y==="array"?"[]":"{}":y==="array"?`[ ${o} ${o===1?w:`${w}s`} ]`:`{ ${o} ${o===1?w:`${w}s`} }`})},C=()=>v?JSON.stringify(f,null,2):String(f??"");return i.jsxs(de,{gap:6,wrap:"nowrap",...t,className:`alepha-json-viewer-row ${t.className||""}`,children:[n?r?i.jsx(fe,{size:c.icon,style:k.chevron}):i.jsx(he,{size:c.icon,style:k.chevron}):i.jsx("span",{style:{width:c.icon,flexShrink:0}}),m!==void 0&&!b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:d?`"${m}"`:m}),i.jsx("span",{style:k.colon,children:":"})]}),m!==void 0&&b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:m}),i.jsx("span",{style:k.colon,children:":"})]}),n?N():v?y==="array"?i.jsx(A,{component:"span",size:s,style:k.preview,children:"[]"}):i.jsx(A,{component:"span",size:s,style:k.preview,children:"{}"}):g(f,m,x),p&&i.jsx(Oe,{value:C(),iconSize:c.icon})]})},Ie=({data:e,defaultExpandedDepth:r=2,maxDepth:n=10,size:t="sm",showQuotes:s=!1,showCopyButton:c=!0,formatValue:d})=>{const p=U[t]||U.sm,g=h.useMemo(()=>{const u=K(e);if(u==="object"||u==="array"){const N=(u==="array"?e.map((S,o)=>[String(o),S]):Object.entries(e)).map(([S,o])=>J(o,[],S,u==="array",n)).filter(S=>S!==null);return[{value:"root",label:"",nodeValue:e,nodeKey:void 0,path:[],isArrayItem:!1,isRoot:!0,children:N.length>0?N:void 0}]}const y=J(e,[],void 0,!1,n);return y?[y]:[]},[e,n]),f=h.useMemo(()=>{if(r===0)return{};if(r===1/0)return B(g,"*");const u=te(g,r+1);return B(g,u)},[g,r]),m=Q({initialExpandedState:f}),x=h.useCallback((u,y,v)=>{const N=d?.(y,u,v);if(N!==void 0)return i.jsx(A,{component:"span",size:t,style:k.string,className:"alepha-json-viewer-value",title:String(u),children:N});const C=K(u);switch(C){case"string":return i.jsxs(A,{style:k.string,component:"span",size:t,className:"alepha-json-viewer-value",title:u,children:['"',u,'"']});case"number":return i.jsx(A,{component:"span",size:t,style:k.number,children:u});case"boolean":return i.jsx(A,{component:"span",size:t,style:k.boolean,children:String(u)});case"null":case"undefined":return i.jsx(A,{component:"span",size:t,style:k.null,children:C});default:return i.jsx(A,{component:"span",size:t,children:String(u)})}},[d,s,t]),b=h.useCallback(({node:u,expanded:y,hasChildren:v,elementProps:N})=>i.jsx(Te,{node:u,expanded:y,hasChildren:v,elementProps:N,size:t,config:p,showQuotes:s,showCopyButton:c,renderValue:x}),[p,x,c,s,t]);return g.length===0?i.jsx(A,{size:t,style:k.null,children:e===null?"null":e===void 0?"undefined":"{}"}):i.jsx(q,{data:g,tree:m,levelOffset:p.levelOffset,expandOnClick:!0,renderNode:b,styles:{root:k.root}})};ve.prototype.json=function(e,r){this.open({size:"lg",title:r?.title||"Json Viewer",...r,content:i.jsx(ge,{bdrs:"md",w:"100%",flex:1,p:"sm",bg:xe.colors.surface,children:i.jsx(Ie,{size:"xs",data:e})})})};export{Ie as J};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w as z,a3 as C,a4 as k,r as h,j as e,F as x,T as r,B as a,H as p,af as L,z as E,ad as v,S,a9 as V,ae as B,ab as I,ac as M}from"./entry.BWhdC3SJ.js";import{d as $}from"./chunk.BKZ6YEV4.js";import{S as y,B as b}from"./chunk.BqEqrty9.js";import{C as w}from"./chunk.rqjDVBSo.js";import{T as t}from"./chunk.CEbDj1NR.js";import{I as H}from"./chunk.CZ4J9K5b.js";const N=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],O=z("outline","settings","Settings",N),A=s=>{const n=new Map;for(const l of s){const i=l.schema;if(i?.properties)for(const[o,c]of Object.entries(i.properties)){if(n.has(o))continue;const d=c,u=l.values[o];let g=d.type??"unknown",m=d.format;if(d.anyOf){const j=d.anyOf.find(f=>f.type!=="null");j&&(g=j.type??"unknown",m=j.format)}n.set(o,{name:o,value:u,type:g,description:d.description,format:m})}}return Array.from(n.values()).sort((l,i)=>l.name.localeCompare(i.name))},F=({variables:s,selectedVar:n,onSelectVar:l,search:i,onSearchChange:o})=>e.jsxs(y,{gap:0,h:"100%",children:[e.jsx(a,{p:"sm",style:{borderBottom:`1px solid ${p.colors.border}`},children:e.jsx(L,{placeholder:"Search variables...",leftSection:e.jsx(E,{size:14}),size:"xs",value:i,onChange:c=>o(c.target.value)})}),e.jsx(v,{style:{flex:1},children:e.jsxs(a,{children:[e.jsxs(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:p.colors.background,borderBottom:`1px solid ${p.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:["Variables (",s.length,")"]}),s.map(c=>{const d=n?.name===c.name;return e.jsxs(x,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>l(c),style:{cursor:"pointer",backgroundColor:d?"#228be615":void 0,borderLeft:d?"2px solid #228be6":"2px solid transparent",borderBottom:`1px solid ${p.colors.border}`},children:[e.jsx(S,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,ff:"monospace",children:c.name})]},c.name)})]})})]}),R=({variable:s})=>{const n=s.value!==void 0&&s.value!=="",l=n?String(s.value):"(not set)",i=s.name.toLowerCase().includes("secret")||s.name.toLowerCase().includes("password")||s.name.toLowerCase().includes("key")||s.name.toLowerCase().includes("token");return e.jsxs(x,{direction:"column",h:"100%",children:[e.jsx(a,{px:"md",py:"sm",style:{borderBottom:`1px solid ${p.colors.border}`,backgroundColor:"#228be608"},children:e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(S,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,ff:"monospace",children:s.name}),e.jsx(b,{size:"xs",variant:"outline",color:"blue",children:s.format||s.type})]})}),e.jsx(v,{style:{flex:1},p:"md",children:e.jsxs(y,{gap:"lg",children:[s.description&&e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Description"}),e.jsx(r,{size:"sm",c:"dimmed",children:s.description})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Current Value"}),e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(w,{block:!0,style:{flex:1,filter:i&&n?"blur(4px)":void 0,transition:"filter 0.2s"},onMouseEnter:o=>{i&&(o.currentTarget.style.filter="none")},onMouseLeave:o=>{i&&n&&(o.currentTarget.style.filter="blur(4px)")},children:l}),n&&e.jsx(V,{value:String(s.value),children:({copied:o,copy:c})=>e.jsx(B,{label:o?"Copied!":"Copy value",children:e.jsx(a,{onClick:c,style:{cursor:"pointer"},c:o?"teal":"dimmed",children:o?e.jsx(I,{size:16}):e.jsx(M,{size:16})})})})]}),i&&e.jsx(r,{size:"xs",c:"dimmed",mt:"xs",children:"Hover to reveal sensitive value"})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Schema"}),e.jsx(t,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(t.Tbody,{children:[e.jsxs(t.Tr,{children:[e.jsx(t.Td,{w:120,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Type"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.type})})]}),s.format&&e.jsxs(t.Tr,{children:[e.jsx(t.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Format"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.format})})]})]})})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Usage"}),e.jsx(w,{block:!0,children:`# Set in .env file or environment
|
|
2
|
-
${s.name}=${n?s.value:"<value>"}`})]})]})})]})},D=()=>e.jsx(x,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(y,{align:"center",gap:"xs",children:[e.jsx(O,{size:48,opacity:.3}),e.jsx(r,{children:"No environment variables found"}),e.jsx(r,{size:"sm",c:"dimmed",children:"Use $env primitive to define expected environment variables"})]})}),U=({variables:s})=>e.jsx(v,{h:"100%",p:"md",children:e.jsx(y,{gap:"lg",children:e.jsxs(a,{children:[e.jsxs(x,{align:"center",gap:"xs",mb:"sm",children:[e.jsx(H,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,children:"All Environment Variables"}),e.jsxs(b,{size:"sm",variant:"light",children:[s.length," variables"]})]}),e.jsxs(t,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(t.Thead,{children:e.jsxs(t.Tr,{children:[e.jsx(t.Th,{children:"Name"}),e.jsx(t.Th,{children:"Type"}),e.jsx(t.Th,{children:"Value"})]})}),e.jsx(t.Tbody,{children:s.map(n=>{const l=n.value!==void 0&&n.value!=="",i=n.name.toLowerCase().includes("secret")||n.name.toLowerCase().includes("password")||n.name.toLowerCase().includes("key")||n.name.toLowerCase().includes("token");return e.jsxs(t.Tr,{children:[e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",fw:500,children:n.name})}),e.jsx(t.Td,{children:e.jsx(b,{size:"xs",variant:"outline",color:"blue",children:n.format||n.type})}),e.jsx(t.Td,{children:l?e.jsxs(r,{size:"sm",ff:"monospace",c:"dimmed",style:{filter:i?"blur(4px)":void 0},children:[String(n.value).slice(0,30),String(n.value).length>30?"...":""]}):e.jsx(r,{size:"sm",c:"dimmed",fs:"italic",children:"(not set)"})})]},n.name)})})]})]})})}),Q=()=>{const s=C(k),[n,l]=h.useState([]),[i,o]=h.useState(!0),[c,d]=h.useState(null),[u,g]=h.useState("");h.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:$}}).then(f=>{l(f.data.envs),o(!1)})},[]);const m=h.useMemo(()=>A(n),[n]),j=h.useMemo(()=>{if(!u)return m;const f=u.toLowerCase();return m.filter(T=>T.name.toLowerCase().includes(f))},[m,u]);return i?e.jsx(x,{align:"center",justify:"center",h:"100%",children:e.jsx(r,{c:"dimmed",children:"Loading..."})}):m.length===0?e.jsx(D,{}):e.jsxs(x,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(a,{w:280,style:{borderRight:`1px solid ${p.colors.border}`,backgroundColor:p.colors.surface},children:e.jsx(F,{variables:j,selectedVar:c,onSelectVar:d,search:u,onSearchChange:g})}),e.jsx(a,{style:{flex:1,overflow:"hidden"},children:c?e.jsx(R,{variable:c}):e.jsx(U,{variables:m})})]})};export{Q as DevEnvExplorer,Q as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as b,b as x,q as f,j as g,B as j,s as N,v as R}from"./entry.BWhdC3SJ.js";var a={root:"m_b183c0a2"};const h=N((e,{color:s})=>({root:{"--code-bg":s?R(s,e):void 0}})),r=b((e,s)=>{const o=x("Code",null,e),{classNames:c,className:l,style:n,styles:m,unstyled:d,vars:p,color:B,block:t,variant:i,mod:v,attributes:u,...y}=o,C=f({name:"Code",props:o,classes:a,className:l,style:n,classNames:c,styles:m,unstyled:d,attributes:u,vars:p,varsResolver:h});return g.jsx(j,{component:t?"pre":"code",variant:i,ref:s,mod:[{block:t},v],...C("root"),...y,dir:"ltr"})});r.classes=a;r.displayName="@mantine/core/Code";export{r as C};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as W,f as B,b as N,j as e,U as xe,B as w,Z as fe,_ as ve,$ as Q,q as je,s as ge,a0 as ye,e as be,a1 as Ce,r as f,a2 as Se,w as ze,T as b,a3 as X,a4 as Z,a5 as A,a6 as Ie,a7 as Y,a8 as Ae,a9 as ee,aa as se,ab as te,ac as oe,ad as ne,ae as we,G as Pe,H as G,F as J,K as Te,af as Ne,z as _e}from"./entry.BWhdC3SJ.js";import{d as Re}from"./chunk.BKZ6YEV4.js";import{B as k,S as O}from"./chunk.BqEqrty9.js";import{C as U}from"./chunk.rqjDVBSo.js";import{T as Ee}from"./chunk._t5z0lP9.js";import{I as Oe}from"./chunk.CIYikik4.js";import{g as V,T as I}from"./chunk.CQO49DQF.js";import{A as re}from"./chunk.BCBZ1wAk.js";import{c as Be}from"./chunk.BlqFPyLh.js";import{I as ke}from"./chunk.BZpSlmHc.js";import{S as Le}from"./chunk.albVVSQX.js";import"./chunk.uyVen0u2.js";const[Je,M]=W("Accordion component was not found in the tree"),[Ue,ae]=W("Accordion.Item component was not found in the tree");var _={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};const $=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,chevron:c,icon:m,onClick:u,onKeyDown:r,children:n,disabled:i,mod:h,...p}=N("AccordionControl",null,s),{value:y}=ae(),a=M(),C=a.isItemActive(y),R=typeof a.order=="number",T=`h${a.order}`,v=e.jsxs(xe,{...p,...a.getStyles("control",{className:d,classNames:t,style:x,styles:l,variant:a.variant}),unstyled:a.unstyled,mod:["accordion-control",{active:C,"chevron-position":a.chevronPosition,disabled:i},h],ref:o,onClick:P=>{u?.(P),a.onChange(y)},type:"button",disabled:i,"aria-expanded":C,"aria-controls":a.getRegionId(y),id:a.getControlId(y),onKeyDown:Be({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:a.loop,orientation:"vertical",onKeyDown:r}),children:[e.jsx(w,{component:"span",mod:{rotate:!a.disableChevronRotation&&C,position:a.chevronPosition},...a.getStyles("chevron",{classNames:t,styles:l}),children:c||a.chevron}),e.jsx("span",{...a.getStyles("label",{classNames:t,styles:l}),children:n}),m&&e.jsx(w,{component:"span",mod:{"chevron-position":a.chevronPosition},...a.getStyles("icon",{classNames:t,styles:l}),children:m})]});return R?e.jsx(T,{...a.getStyles("itemTitle",{classNames:t,styles:l}),children:v}):v});$.displayName="@mantine/core/AccordionControl";$.classes=_;const D=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,value:c,mod:m,...u}=N("AccordionItem",null,s),r=M();return e.jsx(Ue,{value:{value:c},children:e.jsx(w,{ref:o,mod:[{active:r.isItemActive(c)},m],...r.getStyles("item",{className:d,classNames:t,styles:l,style:x,variant:r.variant}),...u})})});D.displayName="@mantine/core/AccordionItem";D.classes=_;const F=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,children:c,...m}=N("AccordionPanel",null,s),{value:u}=ae(),r=M();return e.jsx(fe,{ref:o,...r.getStyles("panel",{className:d,classNames:t,style:x,styles:l}),...m,in:r.isItemActive(u),transitionDuration:r.transitionDuration??200,role:"region",id:r.getRegionId(u),"aria-labelledby":r.getControlId(u),children:e.jsx("div",{...r.getStyles("content",{classNames:t,styles:l}),children:c})})});F.displayName="@mantine/core/AccordionPanel";F.classes=_;const Me={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevronSize:"auto",chevronIconSize:16},$e=ge((s,{transitionDuration:o,chevronSize:t,radius:d})=>({root:{"--accordion-transition-duration":o===void 0?void 0:`${o}ms`,"--accordion-chevron-size":t===void 0?void 0:be(t),"--accordion-radius":d===void 0?void 0:ye(d)}}));function j(s){const o=N("Accordion",Me,s),{classNames:t,className:d,style:x,styles:l,unstyled:g,vars:c,children:m,multiple:u,value:r,defaultValue:n,onChange:i,id:h,loop:p,transitionDuration:y,disableChevronRotation:a,chevronPosition:C,chevronSize:R,order:T,chevron:v,variant:P,radius:Ze,chevronIconSize:le,attributes:ie,...ce}=o,L=ve(h),[S,de]=Q({value:r,defaultValue:n,finalValue:u?[]:null,onChange:i}),ue=z=>Array.isArray(S)?S.includes(z):z===S,me=z=>{const he=Array.isArray(S)?S.includes(z)?S.filter(pe=>pe!==z):[...S,z]:z===S?null:z;de(he)},q=je({name:"Accordion",classes:_,props:o,className:d,style:x,classNames:t,styles:l,unstyled:g,attributes:ie,vars:c,varsResolver:$e});return e.jsx(Je,{value:{isItemActive:ue,onChange:me,getControlId:V(`${L}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:V(`${L}-panel`,"Accordion.Item component was rendered with invalid value or without value"),chevron:v===null?null:v||e.jsx(re,{size:le}),transitionDuration:y,disableChevronRotation:a,chevronPosition:C,order:T,loop:p,getStyles:q,variant:P,unstyled:g},children:e.jsx(w,{...q("root"),id:L,...ce,variant:P,"data-accordion":!0,children:m})})}const De=s=>s;j.extend=De;j.withProps=Ce(j);j.classes=_;j.displayName="@mantine/core/Accordion";j.Item=D;j.Panel=F;j.Control=$;j.Chevron=re;function K(s,o){if(typeof s=="string"&&s.trim().length===0)return!0;try{return o(s),!0}catch{return!1}}const Fe={serialize:JSON.stringify,deserialize:JSON.parse,size:"sm"},H=B((s,o)=>{const{value:t,defaultValue:d,onChange:x,formatOnBlur:l,validationError:g,serialize:c,deserialize:m,onFocus:u,onBlur:r,readOnly:n,error:i,...h}=N("JsonInput",Fe,s),[p,y]=Q({value:t,defaultValue:d,finalValue:"",onChange:x}),[a,C]=f.useState(K(p,m)),R=v=>{u?.(v),C(!0)},T=v=>{typeof r=="function"&&r(v);const P=K(v.currentTarget.value,m);l&&!n&&P&&v.currentTarget.value.trim()!==""&&y(c(m(v.currentTarget.value),null,2)),C(P)};return e.jsx(Ee,{value:p,onChange:v=>y(v.currentTarget.value),onFocus:R,onBlur:T,ref:o,readOnly:n,...h,autoComplete:"off",__staticSelector:"JsonInput",error:a?i:g||!0,"data-monospace":!0})});H.classes=Se.classes;H.displayName="@mantine/core/JsonInput";const He=[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]],qe=ze("outline","terminal","Terminal",He),Ge=(s,o)=>{const t=[`curl -X ${s.method.toUpperCase()}`];return t.push(` '${window.location.origin}${s.fullPath}'`),s.body,t.join(` \\
|
|
2
|
-
`)},Ve={GET:"teal",POST:"blue",PUT:"orange",PATCH:"yellow",DELETE:"red"},Ke=({method:s})=>e.jsx(k,{variant:"light",color:Ve[s.toUpperCase()]||"gray",size:"sm",radius:"sm",w:60,children:s.toUpperCase()}),E=({schema:s,label:o})=>s?e.jsxs(w,{children:[e.jsx(b,{size:"xs",fw:500,c:"dimmed",mb:4,children:o}),e.jsx(U,{block:!0,style:{fontSize:11,maxHeight:200,overflow:"auto"},children:JSON.stringify(s,null,2)})]}):null,We=({action:s})=>{const o=X(Z),[t,d]=f.useState("{}"),[x,l]=f.useState(null),[g,c]=f.useState(!1),[m,u]=f.useState(null),[r,n]=f.useState(null),i=f.useCallback(async()=>{c(!0),n(null),l(null);const h=performance.now();try{let p;if(s.body&&t)try{p=JSON.parse(t)}catch{n("Invalid JSON body"),c(!1);return}const y=await o.fetch(s.fullPath,{method:s.method.toUpperCase(),body:p?JSON.stringify(p):void 0,headers:p?{"Content-Type":"application/json"}:void 0});u(Math.round(performance.now()-h)),l(JSON.stringify(y.data,null,2))}catch(p){u(Math.round(performance.now()-h)),n(p instanceof Error?p.message:"Request failed")}finally{c(!1)}},[o,s,t]);return e.jsxs(O,{gap:"md",children:[s.body&&e.jsx(H,{label:"Request Body",placeholder:'{"key": "value"}',value:t,onChange:d,minRows:4,maxRows:10,autosize:!0,formatOnBlur:!0,validationError:"Invalid JSON"}),e.jsxs(A,{children:[e.jsx(Ie,{leftSection:g?e.jsx(Y,{size:14}):e.jsx(Oe,{size:14}),onClick:i,disabled:g,size:"sm",children:"Execute"}),m!==null&&e.jsxs(b,{size:"xs",c:"dimmed",children:[m,"ms"]})]}),r&&e.jsx(Ae,{p:"sm",bg:"var(--mantine-color-red-light)",children:e.jsx(b,{size:"sm",c:"red",children:r})}),x&&e.jsxs(w,{children:[e.jsxs(A,{justify:"space-between",mb:4,children:[e.jsx(b,{size:"xs",fw:500,c:"dimmed",children:"Response"}),e.jsx(ee,{value:x,children:({copied:h,copy:p})=>e.jsx(se,{size:"xs",variant:"subtle",onClick:p,children:h?e.jsx(te,{size:12}):e.jsx(oe,{size:12})})})]}),e.jsx(ne,{h:200,children:e.jsx(U,{block:!0,style:{fontSize:11},children:x})})]})]})},Qe=({action:s})=>{const o=f.useMemo(()=>Ge(s),[s]);return e.jsxs(j.Item,{value:s.fullPath,opacity:s.disabled?.5:1,children:[e.jsx(j.Control,{children:e.jsxs(A,{gap:"sm",wrap:"nowrap",children:[e.jsx(Ke,{method:s.method}),e.jsx(b,{size:"sm",ff:"monospace",style:{wordBreak:"break-all"},children:s.fullPath}),s.secure&&e.jsx(we,{label:"Requires authentication",children:e.jsx(ke,{size:14,opacity:.5})}),s.disabled&&e.jsx(k,{size:"xs",variant:"light",color:"gray",children:"disabled"})]})}),e.jsx(j.Panel,{children:e.jsxs(O,{gap:"md",children:[(s.description||s.summary)&&e.jsx(b,{size:"sm",c:"dimmed",children:s.description||s.summary}),e.jsxs(I,{defaultValue:"schema",variant:"outline",children:[e.jsxs(I.List,{children:[e.jsx(I.Tab,{value:"schema",size:"xs",children:"Schema"}),e.jsx(I.Tab,{value:"try",size:"xs",children:"Try It"}),e.jsx(I.Tab,{value:"curl",size:"xs",leftSection:e.jsx(qe,{size:12}),children:"cURL"})]}),e.jsx(I.Panel,{value:"schema",pt:"md",children:e.jsxs(O,{gap:"md",children:[e.jsxs(A,{gap:"xl",align:"flex-start",children:[e.jsx(E,{schema:s.params,label:"Path Parameters"}),e.jsx(E,{schema:s.query,label:"Query Parameters"})]}),e.jsx(E,{schema:s.body,label:"Request Body"}),e.jsx(E,{schema:s.response,label:"Response"}),!s.params&&!s.query&&!s.body&&!s.response&&e.jsx(b,{size:"sm",c:"dimmed",children:"No schema defined"})]})}),e.jsx(I.Panel,{value:"try",pt:"md",children:e.jsx(We,{action:s})}),e.jsx(I.Panel,{value:"curl",pt:"md",children:e.jsxs(w,{pos:"relative",children:[e.jsx(ee,{value:o,children:({copied:t,copy:d})=>e.jsx(se,{size:"sm",variant:"subtle",onClick:d,pos:"absolute",top:8,right:8,children:t?e.jsx(te,{size:14}):e.jsx(oe,{size:14})})}),e.jsx(U,{block:!0,style:{fontSize:11},children:o})]})})]})]})})]})},Xe=({group:s,actions:o})=>e.jsxs(w,{children:[e.jsxs(A,{gap:"xs",mb:"xs",children:[e.jsx(Pe,{size:14,opacity:.5}),e.jsx(b,{size:"xs",fw:600,tt:"uppercase",c:"dimmed",children:s}),e.jsx(k,{variant:"light",color:"gray",size:"xs",children:o.length})]}),e.jsx(j,{variant:"separated",styles:{item:{backgroundColor:G.colors.surface,border:`1px solid ${G.colors.border}`}},children:o.map(t=>e.jsx(Qe,{action:t},t.fullPath))})]}),us=()=>{const s=X(Z),[o,t]=f.useState([]),[d,x]=f.useState(!0),[l,g]=f.useState(""),[c,m]=f.useState("all");f.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:Re}}).then(n=>{t(n.data.actions),x(!1)})},[]);const u=f.useMemo(()=>o.filter(n=>{if(n.hide||c!=="all"&&n.method.toUpperCase()!==c)return!1;if(l){const i=l.toLowerCase();return n.fullPath.toLowerCase().includes(i)||n.name.toLowerCase().includes(i)||n.group.toLowerCase().includes(i)||n.description?.toLowerCase().includes(i)}return!0}),[o,l,c]),r=f.useMemo(()=>{const n={};for(const i of u){const h=i.group||"Other";n[h]||(n[h]=[]),n[h].push(i)}return Object.entries(n).sort(([i],[h])=>i.localeCompare(h))},[u]);return d?e.jsx(J,{align:"center",justify:"center",h:"100%",children:e.jsx(Y,{size:"sm"})}):e.jsxs(J,{direction:"column",gap:"md",w:"100%",h:"100%",p:"xl",children:[e.jsx(A,{justify:"space-between",wrap:"nowrap",children:e.jsxs(A,{gap:"sm",children:[e.jsx(Te,{size:24,opacity:.7}),e.jsx(b,{size:"lg",fw:500,children:"Actions"}),e.jsx(k,{variant:"light",color:"gray",size:"sm",children:u.length})]})}),e.jsxs(A,{gap:"sm",children:[e.jsx(Ne,{placeholder:"Search actions...",leftSection:e.jsx(_e,{size:14}),value:l,onChange:n=>g(n.currentTarget.value),style:{flex:1},size:"sm"}),e.jsx(Le,{size:"xs",value:c,onChange:m,data:[{label:"All",value:"all"},{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]})]}),e.jsx(ne,{flex:1,offsetScrollbars:!0,children:r.length===0?e.jsx(J,{align:"center",justify:"center",h:200,children:e.jsx(b,{c:"dimmed",children:"No actions found"})}):e.jsx(O,{gap:"md",children:r.map(([n,i])=>e.jsx(Xe,{group:n,actions:i},n))})})]})};export{us as DevActionsExplorer,us as default};
|
|
Binary file
|
|
Binary file
|