Sync build v0.9.175

Automated sync from private repository.
Commit: 8caf8a1e52ca772261e23a012aecb8bf71c5488d
This commit is contained in:
GitHub Actions Bot
2026-01-23 08:22:43 +00:00
parent b2eed01e6f
commit 4fcdd19ba9
35 changed files with 29 additions and 27 deletions
+1 -1
View File
@@ -1 +1 @@
0.9.174
0.9.175
+1
View File
@@ -0,0 +1 @@
import{j as e}from"./vendor-react-BhIHFXIk.js";import{c as s}from"./recharts-BHeZA2Kf.js";function l({title:l,icon:t,badge:a,subtitle:r,actions:i,iconColor:c="text-icon-card-title",largeTitle:n=!1,listHeader:x=!1,stackActionsOnMobile:m=!1}){return m&&i?e.jsxs("div",{className:s("flex flex-col gap-1 flex-shrink-0",x?"px-4 py-3 border-b border-border-subtle bg-bg-elevated/20":"mb-3"),children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[t&&e.jsx("span",{className:s("icon-md flex items-center justify-center",c),children:t}),e.jsx("span",{className:s(n?"type-subheading text-text-primary":"type-micro"),children:l}),a&&e.jsx("span",{className:"pill-tag",children:a})]}),e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:i})]}),r&&e.jsx("p",{className:"type-label text-text-muted ml-8",children:r})]}):e.jsxs("div",{className:s("flex flex-col gap-1 flex-shrink-0",x?"px-4 py-3 border-b border-border-subtle bg-bg-elevated/20":"mb-3"),children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[t&&e.jsx("span",{className:s("icon-md flex items-center justify-center",c),children:t}),e.jsx("span",{className:s(n?"type-subheading text-text-primary":"type-micro"),children:l}),a&&e.jsx("span",{className:"pill-tag",children:a})]}),i&&e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:i})]}),r&&e.jsx("p",{className:"type-label text-text-muted ml-8",children:r})]})}function t({children:l,centered:t,className:a}){return e.jsx("div",{className:s("flex-1 min-h-0",t&&"flex items-center justify-center",a),children:l})}export{l as C,t as a};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{r as e,j as t,ab as o,$ as a}from"./vendor-react-BhIHFXIk.js";import{c as n}from"./recharts-BHeZA2Kf.js";const s={standard:"w-3 h-3",compact:"w-2.5 h-2.5",responsive:"w-2.5 h-2.5 sm:w-3 sm:h-3"};function c({children:c,copyValue:r,copy:i=!1,size:l="standard",className:p,title:d,color:u}){const[m,h]=e.useState(!1),[x,w]=e.useState(!1),y=e.useRef(null),b=r??("string"==typeof c?c:""),v=s[l],f=e.useCallback(e=>{i&&(e.preventDefault(),e.stopPropagation(),y.current&&clearTimeout(y.current),function(e){var t;if("undefined"!=typeof window&&(window.isSecureContext||"https:"===window.location.protocol||"localhost"===window.location.hostname)&&(null==(t=navigator.clipboard)?void 0:t.writeText))return navigator.clipboard.writeText(e).catch(()=>{}),!0;try{const{scrollX:t,scrollY:o}=window,a=document.createElement("textarea");a.value=e,a.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;pointer-events:none",a.setAttribute("readonly",""),document.body.appendChild(a),a.focus({preventScroll:!0}),a.select(),a.setSelectionRange(0,e.length);const n=document.execCommand("copy");return document.body.removeChild(a),window.scrollTo(t,o),n}catch(o){return!1}}(b),h(!0),y.current=setTimeout(()=>h(!1),2e3))},[i,b]),j="compact"===l?"data-box-compact":"responsive"===l?"data-box-responsive":"",g=i?d||`Click to copy: ${b}`:d;return i?t.jsxs("button",{type:"button",onClick:f,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),className:n("data-box",j,"cursor-pointer select-none gap-1","hover:bg-white/[0.08] hover:border-white/[0.12]","transition-all duration-200",u,p),title:g,"aria-label":`Copy ${b}`,children:[t.jsx("span",{className:n("transition-colors duration-200",m?"text-accent-success":""),children:c}),t.jsx("span",{className:n("flex items-center justify-center","compact"===l?"w-3 h-3":"w-3.5 h-3.5"),children:m?t.jsx(o,{className:n("text-accent-success",v)}):t.jsx(a,{className:n("transition-opacity duration-200",x?"opacity-70":"opacity-40",v)})})]}):t.jsx("span",{className:n("data-box",j,u,p),title:g,children:c})}export{c as D};
-1
View File
@@ -1 +0,0 @@
import{r as t,j as e,ab as o,$ as a}from"./vendor-react-BhIHFXIk.js";import{c as n}from"./recharts-BHeZA2Kf.js";const c={standard:"w-3 h-3",compact:"w-2.5 h-2.5"};function s({children:s,copyValue:r,copy:i=!1,size:l="standard",className:d,title:p,color:u}){const[m,h]=t.useState(!1),[x,w]=t.useState(!1),y=t.useRef(null),b=r??("string"==typeof s?s:""),f=c[l],v=t.useCallback(t=>{i&&(t.preventDefault(),t.stopPropagation(),y.current&&clearTimeout(y.current),function(t){var e;if("undefined"!=typeof window&&(window.isSecureContext||"https:"===window.location.protocol||"localhost"===window.location.hostname)&&(null==(e=navigator.clipboard)?void 0:e.writeText))return navigator.clipboard.writeText(t).catch(()=>{}),!0;try{const{scrollX:e,scrollY:o}=window,a=document.createElement("textarea");a.value=t,a.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;pointer-events:none",a.setAttribute("readonly",""),document.body.appendChild(a),a.focus({preventScroll:!0}),a.select(),a.setSelectionRange(0,t.length);const n=document.execCommand("copy");return document.body.removeChild(a),window.scrollTo(e,o),n}catch(o){return!1}}(b),h(!0),y.current=setTimeout(()=>h(!1),2e3))},[i,b]),j="compact"===l?"data-box-compact":"",g=i?p||`Click to copy: ${b}`:p;return i?e.jsxs("button",{type:"button",onClick:v,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),className:n("data-box",j,"cursor-pointer select-none gap-1","hover:bg-white/[0.08] hover:border-white/[0.12]","transition-all duration-200",u,d),title:g,"aria-label":`Copy ${b}`,children:[e.jsx("span",{className:n("transition-colors duration-200",m?"text-accent-success":""),children:s}),e.jsx("span",{className:n("flex items-center justify-center","compact"===l?"w-3 h-3":"w-3.5 h-3.5"),children:m?e.jsx(o,{className:n("text-accent-success",f)}):e.jsx(a,{className:n("transition-opacity duration-200",x?"opacity-70":"opacity-40",f)})})]}):e.jsx("span",{className:n("data-box",j,u,d),title:g,children:s})}export{s as D};
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{r as e,j as s,F as a,a_ as t,a$ as r}from"./vendor-react-BhIHFXIk.js";import{c as l}from"./recharts-BHeZA2Kf.js";import{ac as i,ad as c,b as n,ae as o,r as m,ab as x,af as d}from"./index-Ca_7rh_v.js";import{u as h}from"./usePolling-B415X9_r.js";import{P as p,b as j,a as g,c as u,L as f}from"./PageLayout-Dg558b3G.js";import"./vendor-core-WoOfkQwm.js";import"./deckgl-DTsmDcfs.js";const v=e.memo(function({log:e}){return s.jsx("div",{className:"p-3 rounded-2xl bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:s.jsxs("div",{className:"flex items-baseline gap-3",children:[s.jsx("span",{className:l("type-data-sm w-14 shrink-0",d(e.level)),children:e.level}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"type-data-sm text-text-primary break-words whitespace-pre-wrap",children:e.message}),s.jsx("p",{className:"type-data-xs text-text-muted mt-1",children:new Date(e.timestamp).toLocaleString()})]})]})})});function w({showDebug:e,onToggle:a}){return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:l("type-data-sm",e?"text-accent-tertiary":"text-accent-primary"),children:e?"DEBUG":"INFO"}),s.jsx("button",{onClick:a,className:l("relative w-10 h-5 rounded-full transition-colors duration-200",e?"bg-accent-tertiary":"bg-accent-primary"),role:"switch","aria-checked":e,children:s.jsx("span",{className:l("absolute top-[2px] left-[2px] w-4 h-4 bg-white rounded-full shadow-sm transition-transform duration-200",e?"translate-x-5":"translate-x-0")})})]})}function N(){const d=i(),N=c(),b=n(),y=o(),k=m(),[D,L]=e.useState(!1),P=e.useCallback(()=>{L(e=>!e)},[]),C=D?d:d.filter(e=>"DEBUG"!==e.level);return h(y,x.logs,b),s.jsxs(p,{children:[s.jsx(j,{title:"System Logs",icon:s.jsx(a,{}),controls:s.jsx(w,{showDebug:D,onToggle:P})}),s.jsxs(g,{noPadding:!0,children:[s.jsx(u,{listHeader:!0,icon:s.jsx(a,{className:"icon-sm"}),title:"Log Entries",actions:s.jsx("button",{onClick:()=>k(!b),className:l("transition-colors",b?"text-signal-critical hover:text-signal-critical/80":"text-accent-primary hover:text-accent-primary/80 animate-pulse-slow"),title:b?"Pause":"Resume",children:b?s.jsx(t,{className:"w-5 h-5"}):s.jsx(r,{className:"w-5 h-5"})})}),s.jsx("div",{className:"space-y-2 max-h-[calc(100vh-300px)] sm:max-h-[calc(100vh-250px)] overflow-y-auto p-4",children:N&&0===d.length?s.jsx(f,{count:10}):0===C.length?s.jsx("div",{className:"text-center py-12 text-text-muted",children:0===d.length?"No logs available":"No logs match selected filters"}):C.map((e,a)=>s.jsx(v,{log:e},`${e.timestamp}-${a}`))})]})]})}export{N as default};
+1
View File
@@ -0,0 +1 @@
import{r as e,j as s,F as a,a_ as t,a$ as r}from"./vendor-react-BhIHFXIk.js";import{c as l}from"./recharts-BHeZA2Kf.js";import{ab as i,ac as c,b as o,ad as n,r as m,aa as x,ae as d}from"./index-GrhhuKwC.js";import{u as p}from"./usePolling-B415X9_r.js";import{P as h,b as j,a as g,L as u}from"./PageLayout-CXQ5iQRo.js";import{C as f}from"./Card-CbzfzjMx.js";import"./vendor-core-WoOfkQwm.js";import"./deckgl-DTsmDcfs.js";const v=e.memo(function({log:e}){return s.jsx("div",{className:"p-3 rounded-2xl bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:s.jsxs("div",{className:"flex items-baseline gap-3",children:[s.jsx("span",{className:l("type-data-sm w-14 shrink-0",d(e.level)),children:e.level}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"type-data-sm text-text-primary break-words whitespace-pre-wrap",children:e.message}),s.jsx("p",{className:"type-data-xs text-text-muted mt-1",children:new Date(e.timestamp).toLocaleString()})]})]})})});function w({showDebug:e,onToggle:a}){return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:l("type-data-sm",e?"text-accent-tertiary":"text-accent-primary"),children:e?"DEBUG":"INFO"}),s.jsx("button",{onClick:a,className:l("relative w-10 h-5 rounded-full transition-colors duration-200",e?"bg-accent-tertiary":"bg-accent-primary"),role:"switch","aria-checked":e,children:s.jsx("span",{className:l("absolute top-[2px] left-[2px] w-4 h-4 bg-white rounded-full shadow-sm transition-transform duration-200",e?"translate-x-5":"translate-x-0")})})]})}function N(){const d=i(),N=c(),b=o(),y=n(),k=m(),[C,D]=e.useState(!1),L=e.useCallback(()=>{D(e=>!e)},[]),P=C?d:d.filter(e=>"DEBUG"!==e.level);return p(y,x.logs,b),s.jsxs(h,{children:[s.jsx(j,{title:"System Logs",icon:s.jsx(a,{}),controls:s.jsx(w,{showDebug:C,onToggle:L})}),s.jsxs(g,{noPadding:!0,children:[s.jsx(f,{listHeader:!0,icon:s.jsx(a,{className:"icon-sm"}),title:"Log Entries",actions:s.jsx("button",{onClick:()=>k(!b),className:l("transition-colors",b?"text-signal-critical hover:text-signal-critical/80":"text-accent-primary hover:text-accent-primary/80 animate-pulse-slow"),title:b?"Pause":"Resume",children:b?s.jsx(t,{className:"w-5 h-5"}):s.jsx(r,{className:"w-5 h-5"})})}),s.jsx("div",{className:"space-y-2 max-h-[calc(100vh-300px)] sm:max-h-[calc(100vh-250px)] overflow-y-auto p-4",children:N&&0===d.length?s.jsx(u,{count:10}):0===P.length?s.jsx("div",{className:"text-center py-12 text-text-muted",children:0===d.length?"No logs available":"No logs match selected filters"}):P.map((e,a)=>s.jsx(v,{log:e},`${e.timestamp}-${a}`))})]})]})}export{N as default};
+1
View File
@@ -0,0 +1 @@
import{j as e,p as s}from"./vendor-react-BhIHFXIk.js";import{a as t}from"./PageLayout-CXQ5iQRo.js";import{D as a}from"./DataBox-CJd3QrAG.js";import{aq as r}from"./index-GrhhuKwC.js";import{C as l}from"./Card-CbzfzjMx.js";function c({nodeName:c,repeaterVersion:m,coreVersion:i,localHash:n,publicKey:d}){return e.jsxs(t,{children:[e.jsx(l,{icon:e.jsx(s,{}),title:"Node Information",largeTitle:!0}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 sm:gap-4",children:[e.jsxs("div",{className:"min-w-0 col-span-2 sm:col-span-1",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Node Name"}),e.jsx("p",{className:"type-body text-text-primary mt-0.5 sm:mt-1 truncate",title:c,children:c})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Repeater"}),e.jsxs("p",{className:"type-data text-text-primary mt-0.5 sm:mt-1 truncate",title:`v${m}`,children:["v",m]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Core"}),e.jsxs("p",{className:"type-data text-text-primary mt-0.5 sm:mt-1 truncate",title:`v${i}`,children:["v",i]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Console"}),e.jsxs("p",{className:"type-data text-text-primary mt-0.5 sm:mt-1 truncate",title:`v${r}`,children:["v",r]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Local Hash"}),e.jsx("div",{className:"mt-0.5 sm:mt-1",children:n?e.jsx(a,{copy:!0,size:"compact",children:n}):e.jsx("span",{className:"type-data-sm text-text-secondary",children:"N/A"})})]})]}),d&&e.jsxs("div",{className:"mt-3 sm:mt-4 pt-3 sm:pt-4 border-t border-border-subtle",children:[e.jsx("span",{className:"type-label text-text-secondary",children:"Public Key"}),e.jsx("div",{className:"mt-0.5 sm:mt-1",children:e.jsx(a,{copy:!0,size:"responsive",children:d})})]})]})}export{c as N};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{j as s}from"./vendor-react-BhIHFXIk.js";import{c as e}from"./recharts-BHeZA2Kf.js";const a=[45,72,33,58,80,42,65,28,55,75,38,62];function l({className:a,style:l}){return s.jsx("div",{className:e("animate-pulse bg-white/[0.06] rounded",a),style:l})}function c(){return s.jsx("div",{className:"p-3 rounded-lg border border-border-subtle bg-bg-subtle",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(l,{className:"w-14 h-6 rounded shrink-0"}),s.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[s.jsx(l,{className:"h-4 w-full"}),s.jsx(l,{className:"h-4 w-3/4"}),s.jsx(l,{className:"h-3 w-32 mt-1"})]})]})})}function r({count:e=8}){return s.jsx("div",{className:"space-y-2",children:Array.from({length:e}).map((e,a)=>s.jsx(c,{},a))})}function i(){return s.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx(l,{className:"h-4 w-24"})]}),s.jsx(l,{className:"h-8 w-20"}),s.jsxs("div",{className:"flex-1 flex flex-col justify-end gap-2",children:[s.jsx(l,{className:"h-3 w-full"}),s.jsx(l,{className:"h-3 w-3/4"})]})]})}function n(){return s.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx(l,{className:"h-4 w-24"})]}),s.jsx("div",{className:"flex-1 flex items-end gap-1",children:a.slice(0,8).map((e,a)=>s.jsx(l,{className:"flex-1",style:{height:`${e}%`}},a))})]})}function t({rows:e=5}){return s.jsxs("div",{className:"flex flex-col h-full","aria-hidden":"true",children:[s.jsx("div",{className:"pb-3 border-b border-border-subtle",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx(l,{className:"h-4 w-24"})]})}),s.jsx("div",{className:"flex-1 pt-3 flex flex-col gap-3",children:Array.from({length:e}).map((e,a)=>s.jsx(l,{className:"h-6 w-full"},a))})]})}function d({children:a,className:l}){return s.jsx("div",{className:e("section-gap",l),children:a})}function x({title:e,icon:a,controls:l,subtitle:c}){return s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-3",children:[s.jsxs("h1",{className:"type-title text-text-primary flex items-center gap-2 sm:gap-3 h-9 min-w-0",children:[a&&s.jsx("span",{className:"w-5 h-5 sm:w-6 sm:h-6 text-icon-page-title flex-shrink-0",children:a}),s.jsx("span",{className:"truncate",children:e})]}),l&&s.jsx("div",{className:"flex items-center gap-2 sm:gap-3 h-9 flex-shrink-0",children:l})]}),c&&s.jsx("div",{children:c})]})}const m={sm:"card-sm",md:"card-md",lg:"card-lg",hero:"card-hero",auto:"card-auto"};function h({children:a,size:l,compact:c,noPadding:r,className:d,style:x,onClick:h,isLoaded:f=!0,skeletonType:o="card"}){return s.jsxs("div",{className:e("glass-card h-full flex flex-col relative",!r&&(c?"card-padding-sm":"card-padding"),l&&m[l],d),style:x,onClick:h,children:[a,!f&&(()=>{switch(o){case"chart":return s.jsx(n,{});case"list":return s.jsx(t,{});default:return s.jsx(i,{})}})()]})}export{i as C,r as L,d as P,l as S,h as a,x as b};
-1
View File
@@ -1 +0,0 @@
import{j as e}from"./vendor-react-BhIHFXIk.js";import{c as s}from"./recharts-BHeZA2Kf.js";const a=[45,72,33,58,80,42,65,28,55,75,38,62];function l({className:a,style:l}){return e.jsx("div",{className:s("animate-pulse bg-white/[0.06] rounded",a),style:l})}function c(){return e.jsx("div",{className:"p-3 rounded-lg border border-border-subtle bg-bg-subtle",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(l,{className:"w-14 h-6 rounded shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[e.jsx(l,{className:"h-4 w-full"}),e.jsx(l,{className:"h-4 w-3/4"}),e.jsx(l,{className:"h-3 w-32 mt-1"})]})]})})}function r({count:s=8}){return e.jsx("div",{className:"space-y-2",children:Array.from({length:s}).map((s,a)=>e.jsx(c,{},a))})}function i(){return e.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-5 h-5"}),e.jsx(l,{className:"h-4 w-24"})]}),e.jsx(l,{className:"h-8 w-20"}),e.jsxs("div",{className:"flex-1 flex flex-col justify-end gap-2",children:[e.jsx(l,{className:"h-3 w-full"}),e.jsx(l,{className:"h-3 w-3/4"})]})]})}function t(){return e.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-5 h-5"}),e.jsx(l,{className:"h-4 w-24"})]}),e.jsx("div",{className:"flex-1 flex items-end gap-1",children:a.slice(0,8).map((s,a)=>e.jsx(l,{className:"flex-1",style:{height:`${s}%`}},a))})]})}function n({rows:s=5}){return e.jsxs("div",{className:"flex flex-col h-full","aria-hidden":"true",children:[e.jsx("div",{className:"pb-3 border-b border-border-subtle",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-5 h-5"}),e.jsx(l,{className:"h-4 w-24"})]})}),e.jsx("div",{className:"flex-1 pt-3 flex flex-col gap-3",children:Array.from({length:s}).map((s,a)=>e.jsx(l,{className:"h-6 w-full"},a))})]})}function d({children:a,className:l}){return e.jsx("div",{className:s("section-gap",l),children:a})}function x({title:s,icon:a,controls:l,subtitle:c}){return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("h1",{className:"type-title text-text-primary flex items-center gap-3 h-9",children:[a&&e.jsx("span",{className:"w-6 h-6 text-icon-page-title flex-shrink-0",children:a}),s]}),l&&e.jsx("div",{className:"flex items-center gap-2 sm:gap-3 h-9",children:l})]}),c&&e.jsx("div",{children:c})]})}const m={sm:"card-sm",md:"card-md",lg:"card-lg",hero:"card-hero",auto:"card-auto"};function h({children:a,size:l,compact:c,noPadding:r,className:d,style:x,onClick:h,isLoaded:o=!0,skeletonType:f="card"}){return e.jsxs("div",{className:s("glass-card h-full flex flex-col relative",!r&&(c?"card-padding-sm":"card-padding"),l&&m[l],d),style:x,onClick:h,children:[a,!o&&(()=>{switch(f){case"chart":return e.jsx(t,{});case"list":return e.jsx(n,{});default:return e.jsx(i,{})}})()]})}function o({icon:a,title:l,badge:c,subtitle:r,actions:i,iconColor:t="text-accent-primary",largeTitle:n=!1,listHeader:d=!1}){return e.jsxs("div",{className:s("flex flex-col gap-1 flex-shrink-0",d?"px-4 py-3 border-b border-border-subtle bg-bg-elevated/20":"mb-3"),children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[a&&e.jsx("span",{className:s("icon-md",t),children:a}),e.jsx("span",{className:n?"type-subheading text-text-primary":"type-micro",children:l}),c&&e.jsx("span",{className:"pill-tag",children:c})]}),i&&e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:i})]}),r&&e.jsx("p",{className:"type-label text-text-muted ml-7",children:r})]})}export{i as C,r as L,d as P,l as S,h as a,x as b,o as c};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{d as t,at as e}from"./index-Ca_7rh_v.js";function o(t){if(Array.isArray(t))return t;if("string"==typeof t&&t.startsWith("["))try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}return[]}function n(n,r,s){const a=new Map;for(const e of r){const o=t(e);a.has(o)||a.set(o,e)}const c=new Map,i=new Map;for(const t of n){const n=t.route??t.route_type;if(!e(n))continue;const r=o(t.original_path);if(0===r.length)continue;const f=r.map(t=>t.toUpperCase());if(!t.transmitted&&f.length>=2){const t=f[f.length-2];if(t){const e=a.get(t);e&&i.set(e,(i.get(e)??0)+1)}}if(f.includes(s))for(const t of f){if(t===s)continue;const e=a.get(t);e&&c.set(e,(c.get(e)??0)+1)}}let f=0,u=0;for(const t of r)f=Math.max(f,c.get(t)??0),u=Math.max(u,i.get(t)??0);const h=new Map;let d=0,g=0,l=0;for(const t of r){const e=c.get(t)??0,o=i.get(t)??0,n=f>0?Math.round(e/f*100):0,r=u>0?Math.round(o/u*100):0,s=n+r;h.set(t,{hash:t,listenerCount:e,loudCount:o,listenerScore:n,loudScore:r,blendedScore:s}),d=Math.max(d,n),g=Math.max(g,r),l=Math.max(l,s)}return{scores:h,maxListenerScore:d,maxLoudScore:g,maxBlendedScore:l}}const r={YELLOW:"#FBBF24",GREEN:"#719872",RED:"#E12672",GRAY:"#505050"};export{r as L,n as c};
import{d as t,at as e}from"./index-GrhhuKwC.js";function o(t){if(Array.isArray(t))return t;if("string"==typeof t&&t.startsWith("["))try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}return[]}function n(n,r,s){const a=new Map;for(const e of r){const o=t(e);a.has(o)||a.set(o,e)}const c=new Map,i=new Map;for(const t of n){const n=t.route??t.route_type;if(!e(n))continue;const r=o(t.original_path);if(0===r.length)continue;const f=r.map(t=>t.toUpperCase());if(!t.transmitted&&f.length>=2){const t=f[f.length-2];if(t){const e=a.get(t);e&&i.set(e,(i.get(e)??0)+1)}}if(f.includes(s))for(const t of f){if(t===s)continue;const e=a.get(t);e&&c.set(e,(c.get(e)??0)+1)}}let f=0,u=0;for(const t of r)f=Math.max(f,c.get(t)??0),u=Math.max(u,i.get(t)??0);const h=new Map;let d=0,g=0,l=0;for(const t of r){const e=c.get(t)??0,o=i.get(t)??0,n=f>0?Math.round(e/f*100):0,r=u>0?Math.round(o/u*100):0,s=n+r;h.set(t,{hash:t,listenerCount:e,loudCount:o,listenerScore:n,loudScore:r,blendedScore:s}),d=Math.max(d,n),g=Math.max(g,r),l=Math.max(l,s)}return{scores:h,maxListenerScore:d,maxLoudScore:g,maxBlendedScore:l}}const r={YELLOW:"#FFB224",GREEN:"#46A758",RED:"#E5484D",GRAY:"#505050"};export{r as L,n as c};
@@ -1 +1 @@
import{am as t}from"./index-Ca_7rh_v.js";async function e(e,r=10){return t("/api/ping_neighbor",{method:"POST",body:JSON.stringify({target_id:e,timeout:r})})}const r=["Chat Node","Repeater","Room Server","Hybrid Node","Unknown"];async function s(s,o=10){if(o<1||o>60)return{success:!1,error:"Timeout must be 1-60 seconds"};let n;const a=s.match(/^(0x)?([0-9a-fA-F]{1,2})$/);if(a)n=`0x${a[2].padStart(2,"0")}`;else{const e=await async function(e){const s=e.toLowerCase();for(const o of r)try{const e=await t(`/api/adverts_by_contact_type?contact_type=${encodeURIComponent(o)}&hours=168`),r=e.success&&e.data?e.data:e,n=(Array.isArray(r)?r:[]).find(t=>t.node_name&&t.node_name.toLowerCase()===s);if(n&&n.pubkey)return`0x${n.pubkey.substring(0,2)}`}catch{continue}return null}(s);if(!e)return{success:!1,error:`Node '${s}' not found`};n=e}const c=await e(n,o);if(!c.success||!c.data)return{success:!1,error:c.error||"Ping failed"};const i=(u=c.data).rtt_ms>500||u.rssi<-120?"Poor":u.rtt_ms>250||u.rssi<-100?"Fair":u.rtt_ms>100||u.rssi<-80?"Good":"Excellent";var u;return{success:!0,data:{...c.data,quality:i}}}export{s as a,e as p};
import{al as t}from"./index-GrhhuKwC.js";async function e(e,r=10){return t("/api/ping_neighbor",{method:"POST",body:JSON.stringify({target_id:e,timeout:r})})}const r=["Chat Node","Repeater","Room Server","Hybrid Node","Unknown"];async function s(s,o=10){if(o<1||o>60)return{success:!1,error:"Timeout must be 1-60 seconds"};let n;const a=s.match(/^(0x)?([0-9a-fA-F]{1,2})$/);if(a)n=`0x${a[2].padStart(2,"0")}`;else{const e=await async function(e){const s=e.toLowerCase();for(const o of r)try{const e=await t(`/api/adverts_by_contact_type?contact_type=${encodeURIComponent(o)}&hours=168`),r=e.success&&e.data?e.data:e,n=(Array.isArray(r)?r:[]).find(t=>t.node_name&&t.node_name.toLowerCase()===s);if(n&&n.pubkey)return`0x${n.pubkey.substring(0,2)}`}catch{continue}return null}(s);if(!e)return{success:!1,error:`Node '${s}' not found`};n=e}const c=await e(n,o);if(!c.success||!c.data)return{success:!1,error:c.error||"Ping failed"};const i=(u=c.data).rtt_ms>500||u.rssi<-120?"Poor":u.rtt_ms>250||u.rssi<-100?"Fair":u.rtt_ms>100||u.rssi<-80?"Good":"Excellent";var u;return{success:!0,data:{...c.data,quality:i}}}export{s as a,e as p};
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -39,10 +39,10 @@
--font-data: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
}
</style>
<script type="module" crossorigin src="/assets/index-Ca_7rh_v.js"></script>
<script type="module" crossorigin src="/assets/index-GrhhuKwC.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vendor-core-WoOfkQwm.js">
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BhIHFXIk.js">
<link rel="stylesheet" crossorigin href="/assets/index-DR06s5a2.css">
<link rel="stylesheet" crossorigin href="/assets/index-CCMk2u-3.css">
</head>
<body>
<div id="root"></div>
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "pymc_console",
"version": "0.9.174",
"version": "0.9.175",
"description": "Vite + React Dashboard for pyMC_Repeater",
"private": true,
"type": "module",