diff --git a/repeater/web/html/assets/CADCalibration-N3xuvAD8.js b/repeater/web/html/assets/CADCalibration-Cn1OhhCt.js
similarity index 98%
rename from repeater/web/html/assets/CADCalibration-N3xuvAD8.js
rename to repeater/web/html/assets/CADCalibration-Cn1OhhCt.js
index 0b91496..97cdaf1 100644
--- a/repeater/web/html/assets/CADCalibration-N3xuvAD8.js
+++ b/repeater/web/html/assets/CADCalibration-Cn1OhhCt.js
@@ -1 +1 @@
-import{r as e}from"./chunk-DECur_0Z.js";import{C as t,S as n,f as r,ft as i,g as a,l as o,o as s,p as c,pt as l,s as u,u as d,w as f,z as p}from"./runtime-core.esm-bundler-HnidnMFy.js";import{c as m,t as h}from"./api-BXShkfsc.js";import{t as g}from"./system-A4EFgrwh.js";import{t as _}from"./_plugin-vue_export-helper-B7aGp3iI.js";import{t as v}from"./plotly.min-Dl7ekyci.js";var y=e(v(),1),ee={class:`p-6 space-y-6`},b={class:`glass-card rounded-[15px] p-6`},te={class:`flex justify-center`},ne={class:`flex gap-4`},re=[`disabled`],ie=[`disabled`],ae={class:`glass-card rounded-[15px] p-6 space-y-4`},oe={class:`text-content-primary dark:text-content-primary`},se={key:0,class:`p-4 bg-primary/10 border border-primary/30 rounded-lg`},ce={class:`text-content-primary dark:text-primary`},le={class:`space-y-2`},ue={class:`w-full bg-white/10 rounded-full h-2`},de={class:`text-content-secondary dark:text-content-muted text-sm`},fe={class:`grid grid-cols-2 md:grid-cols-4 gap-4`},x={class:`glass-card rounded-[15px] p-4 text-center`},S={class:`text-2xl font-bold text-primary`},C={class:`glass-card rounded-[15px] p-4 text-center`},w={class:`text-2xl font-bold text-primary`},T={class:`glass-card rounded-[15px] p-4 text-center`},E={class:`text-2xl font-bold text-primary`},D={class:`glass-card rounded-[15px] p-4 text-center`},O={class:`text-2xl font-bold text-primary`},k={key:0,class:`glass-card rounded-[15px] p-6 space-y-4`},A={key:0,class:`p-4 bg-accent-green/10 border border-accent-green/30 rounded-lg`},j={class:`text-content-primary dark:text-content-primary mb-4`},M={key:1,class:`p-4 bg-secondary/20 border border-secondary/40 rounded-lg`},N=_(a({name:`CADCalibrationView`,__name:`CADCalibration`,setup(e){let a=g(),_=s(()=>document.documentElement.classList.contains(`dark`)),v=()=>{let e=_.value;return{title:e?`#F9FAFB`:`#111827`,subtitle:e?`#9CA3AF`:`#6B7280`,axis:e?`#D1D5DB`:`#374151`,tick:e?`#9CA3AF`:`#6B7280`,grid:e?`rgba(148, 163, 184, 0.1)`:`rgba(107, 114, 128, 0.15)`,zeroline:e?`rgba(148, 163, 184, 0.2)`:`rgba(107, 114, 128, 0.25)`,line:e?`rgba(148, 163, 184, 0.3)`:`rgba(107, 114, 128, 0.35)`,colorbarBorder:e?`rgba(255,255,255,0.2)`:`rgba(0,0,0,0.15)`,markerLine:e?`rgba(255,255,255,0.2)`:`rgba(0,0,0,0.15)`}},N=p(!1),P=p(null),F=p(null),I=p({}),L=p(null),R=p([]),z=p({}),B=p(`Ready to start calibration`),V=p(0),H=p(0),U=p(0),W=p(0),G=p(0),K=p(0),q=p(null),J=p(!1),Y=p(!1),X=p(!1),Z=p(!1),Q=null,pe={responsive:!0,displayModeBar:!0,modeBarButtonsToRemove:[`pan2d`,`select2d`,`lasso2d`,`autoScale2d`],displaylogo:!1,toImageButtonOptions:{format:`png`,filename:`cad-calibration-heatmap`,height:600,width:800,scale:2}};function me(){let e=v(),t=[{x:[],y:[],z:[],mode:`markers`,type:`scatter`,marker:{size:12,color:[],colorscale:[[0,`rgba(75, 85, 99, 0.4)`],[.1,`rgba(6, 182, 212, 0.3)`],[.5,`rgba(6, 182, 212, 0.6)`],[1,`rgba(16, 185, 129, 0.9)`]],showscale:!0,colorbar:{title:{text:`Detection Rate (%)`,font:{color:e.axis,size:14}},tickfont:{color:e.tick},bgcolor:`rgba(0,0,0,0)`,bordercolor:e.colorbarBorder,borderwidth:1,thickness:15},line:{color:e.markerLine,width:1}},hovertemplate:`Peak: %{x}
Min: %{y}
Detection Rate: %{marker.color:.1f}%
Channel Activity Detection Calibration`,font:{color:e.title,size:18},x:.5},xaxis:{title:{text:`CAD Peak Threshold`,font:{color:e.axis,size:14}},tickfont:{color:e.tick},gridcolor:e.grid,zerolinecolor:e.zeroline,linecolor:e.line},yaxis:{title:{text:`CAD Min Threshold`,font:{color:e.axis,size:14}},tickfont:{color:e.tick},gridcolor:e.grid,zerolinecolor:e.zeroline,linecolor:e.line},plot_bgcolor:`rgba(0, 0, 0, 0)`,paper_bgcolor:`rgba(0, 0, 0, 0)`,font:{color:e.title,family:`Inter, system-ui, sans-serif`},margin:{l:80,r:80,t:100,b:80},showlegend:!1};y.default.newPlot(`plotly-chart`,t,n,pe)}function he(){if(Object.keys(I.value).length===0)return;let e=Object.values(I.value),t=[],n=[],r=[];for(let i of e)t.push(i.det_peak),n.push(i.det_min),r.push(i.detection_rate);let i={x:[t],y:[n],"marker.color":[r],hovertemplate:`Peak: %{x}
Min: %{y}
Detection Rate: %{marker.color:.1f}%
Status: Tested
Manage companion identities (TCP frame server)
Manage companion identities (TCP frame server)
Permit flooding
Block flooding
Permit flooding
Block flooding
API tokens are used for machine-to-machine authentication. Include the token in the X-API-Key header when making API requests.
Tokens are only shown once at creation. Store them securely.
PyMC Console must be installed at /opt/pymc_console/web/html before selecting this option.
Web frontend changes will take effect after restarting the pymc-repeater service.
How the three systems work together: Each layer can be enabled/disabled independently and the others will still function.
Decision flow when all enabled: Adaptive tier check → Penalty box check → Token bucket check → Violation recording (triggers penalty box)
Activity tiers:Quiet (bypass limiting) → Normal (lighter: 0.5x intervals) → Busy (base: 1.0x intervals) → Congested (stricter: 2.0x intervals)
Note: Adaptive mode scales refill/min-interval timing; bucket capacity stays at the configured base value.
Mesh traffic can reach your repeater through different paths, so duplicate advert packets are expected.
This is normal behavior and helps prevent repeated rebroadcasts from flooding the mesh.
Each sender has a token bucket. Every forwarded advert uses one token.
If a sender keeps hitting the limit, it is temporarily blocked.
Adaptive mode adjusts limits based on recent advert activity.
This page is served over HTTP, not HTTPS. Exported data (including identity keys) will be transmitted in plain text. Only use these features on a trusted local network.
Download a complete backup including all passwords, JWT secrets, and identity keys. Required for restoring to a new device or recovering from a failed SD card.
Contains sensitive data. The backup file will include plain-text passwords and private keys. Store it securely and never share it.
Download the repeater's private identity key for backup. This key determines the node's address and cryptographic identity on the mesh.
Sensitive data. The identity key is the repeater's private key. Anyone with this key can impersonate your node. Store the exported file securely and never share it.
Memory tracing is running. Let the repeater run for a few minutes, then click Check Again to see which parts of the code are using more memory.
`,2)]])):g(``,!0),o.value&&p.value?(w(),C(`div`,Xl,[S(`div`,{class:u([`mb-5 p-4 rounded-lg border flex items-start gap-3`,L.value])},[S(`div`,{class:`mt-0.5`,innerHTML:R.value},null,8,Zl),S(`div`,null,[S(`p`,Ql,b(z.value),1),S(`p`,$l,b(B.value),1)])],2),S(`div`,eu,[o.value.rss_mb===void 0?g(``,!0):(w(),C(`div`,tu,[s[6]||=S(`p`,{class:`text-xs text-content-muted mb-1`},`Total Memory Used`,-1),S(`p`,nu,b(o.value.rss_mb)+` MB`,1)])),o.value.traced_current_mb===void 0?g(``,!0):(w(),C(`div`,ru,[s[7]||=S(`p`,{class:`text-xs text-content-muted mb-1`},`Tracked Now`,-1),S(`p`,iu,b(o.value.traced_current_mb)+` MB`,1)])),o.value.traced_peak_mb===void 0?g(``,!0):(w(),C(`div`,au,[s[8]||=S(`p`,{class:`text-xs text-content-muted mb-1`},`Peak Tracked`,-1),S(`p`,ou,b(o.value.traced_peak_mb)+` MB`,1)]))]),o.value.growth_since_baseline&&o.value.growth_since_baseline.length>0?(w(),C(`div`,su,[s[9]||=S(`h4`,{class:`text-sm font-semibold text-content-primary dark:text-content-primary mb-1`},`Memory Growth Breakdown`,-1),s[10]||=S(`p`,{class:`text-xs text-content-muted mb-3`},` Items at the top with red/orange tags are the most likely cause of memory issues. Green items are normal and can be ignored. `,-1),S(`div`,cu,[(w(!0),C(x,null,i(o.value.growth_since_baseline,(e,t)=>(w(),C(`div`,{key:t,class:u([`rounded-lg border p-3 transition-colors`,k(e)])},[S(`div`,lu,[S(`div`,uu,[S(`span`,du,b(t+1),1),S(`span`,{class:u([`shrink-0 inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold`,O(e)])},b(D(e)),3)]),S(`div`,fu,[S(`span`,{class:u([`font-mono text-sm font-semibold`,j(e)])},`+`+b(M(e.size_diff_kb)),3),S(`p`,pu,b(M(e.current_size_kb))+` total`,1)])]),S(`div`,mu,[S(`p`,hu,b(P(e.file)),1),e.count_diff===0?g(``,!0):(w(),C(`p`,gu,b(e.count_diff>0?`+`:``)+b(e.count_diff)+` new allocation`+b(Math.abs(e.count_diff)===1?``:`s`),1))])],2))),128))])])):o.value.growth_since_baseline&&o.value.growth_since_baseline.length===0?(w(),C(`div`,_u,[...s[11]||=[S(`svg`,{class:`w-5 h-5 text-green-600 dark:text-green-400 shrink-0`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[S(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z`})],-1),S(`span`,{class:`text-green-700 dark:text-green-400`},`No memory growth detected. Everything looks healthy.`,-1)]])):g(``,!0),o.value.current_top_20&&o.value.current_top_20.length>0?(w(),C(`div`,vu,[S(`button`,{onClick:s[0]||=e=>f.value=!f.value,class:`flex items-center gap-2 text-sm font-semibold text-content-secondary dark:text-content-muted hover:text-content-primary dark:hover:text-content-primary transition-colors mb-3`},[(w(),C(`svg`,{class:u([`w-4 h-4 transition-transform`,{"rotate-90":f.value}]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...s[12]||=[S(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9 5l7 7-7 7`},null,-1)]],2)),s[13]||=y(` Advanced: Current Top Allocations `,-1)]),_(N,{name:`expand`},{default:t(()=>[f.value?(w(),C(`div`,yu,[S(`table`,bu,[s[14]||=S(`thead`,null,[S(`tr`,{class:`bg-background-mute dark:bg-background/30 text-left`},[S(`th`,{class:`px-3 py-2 text-xs font-medium text-content-muted`},`#`),S(`th`,{class:`px-3 py-2 text-xs font-medium text-content-muted`},`Location`),S(`th`,{class:`px-3 py-2 text-xs font-medium text-content-muted text-right`},`Size`),S(`th`,{class:`px-3 py-2 text-xs font-medium text-content-muted text-right`},`Count`)])],-1),S(`tbody`,null,[(w(!0),C(x,null,i(o.value.current_top_20,(e,t)=>(w(),C(`tr`,{key:t,class:`border-t border-stroke-subtle/50 dark:border-stroke/5 hover:bg-background-mute/50 dark:hover:bg-background/20 transition-colors`},[S(`td`,xu,b(t+1),1),S(`td`,Su,b(P(e.file)),1),S(`td`,Cu,b(M(e.size_kb)),1),S(`td`,wu,b(e.count),1)]))),128))])])])):g(``,!0)]),_:1})])):g(``,!0)])):g(``,!0),!n.value&&!r.value&&!c.value&&!p.value&&!a.value&&l.value===null?(w(),C(`div`,Tu,[...s[15]||=[y(` Click `,-1),S(`strong`,null,`Start Tracing`,-1),y(` to enable memory diagnostics. `,-1),S(`br`,null,null,-1),S(`span`,{class:`text-xs`},`Tracing uses extra memory — remember to stop it when done.`,-1)]])):g(``,!0)])]))}}),[[`__scopeId`,`data-v-50d93367`]]),Du={class:`p-3 sm:p-6 space-y-4 sm:space-y-6`},Ou={class:`glass-card rounded-[15px] z-10 p-3 sm:p-4 border border-cyan-400 dark:border-primary/30 bg-cyan-500/10 dark:bg-primary/10`},ku={class:`text-cyan-700 dark:text-primary text-sm sm:text-base`},Au={class:`mt-1 sm:mt-2 text-cyan-600 dark:text-primary/80`},ju={class:`glass-card rounded-[15px] p-3 sm:p-6`},Mu={class:`relative -mx-3 sm:mx-0 mb-4 sm:mb-6`},Nu={key:0,class:`absolute left-0 top-0 bottom-[1px] w-12 z-10 flex items-center`},Pu={key:0,class:`absolute right-0 top-0 bottom-[1px] w-12 z-10 flex items-center justify-end`},Fu=[`onClick`],Iu={class:`flex items-center gap-1 sm:gap-2`},Lu={key:0,class:`w-3.5 h-3.5 sm:w-4 sm:h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Ru={key:1,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},zu={key:2,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Bu={key:3,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Vu={key:4,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Hu={key:5,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Uu={key:6,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Wu={key:7,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Gu={key:8,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Ku={key:9,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},qu={key:10,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Ju={key:11,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Yu={class:`min-h-[400px]`},Xu={key:0,class:`flex items-center justify-center py-12`},Zu={key:1,class:`flex items-center justify-center py-12`},Qu={class:`text-center`},$u={class:`text-content-secondary dark:text-content-muted text-sm mb-4`},ed={key:2},td=M(f({name:`ConfigurationView`,__name:`Configuration`,setup(e){let n=j(),o=E(H(`configuration_activeTab`,`radio`)),l=E(!1),d=E(null),f=E(!1),p=E(!1);function v(){if(!d.value)return;let e=d.value;p.value=e.scrollLeft>4,f.value=e.scrollLeftPermit flooding
Block flooding
Permit flooding
Block flooding
API tokens are used for machine-to-machine authentication. Include the token in the X-API-Key header when making API requests.
Tokens are only shown once at creation. Store them securely.
PyMC Console must be installed at /opt/pymc_console/web/html before selecting this option.
Web frontend changes will take effect after restarting the pymc-repeater service.
How the three systems work together: Each layer can be enabled/disabled independently and the others will still function.
Decision flow when all enabled: Adaptive tier check → Penalty box check → Token bucket check → Violation recording (triggers penalty box)
Activity tiers:Quiet (bypass limiting) → Normal (lighter: 0.5x intervals) → Busy (base: 1.0x intervals) → Congested (stricter: 2.0x intervals)
Note: Adaptive mode scales refill/min-interval timing; bucket capacity stays at the configured base value.
Mesh traffic can reach your repeater through different paths, so duplicate advert packets are expected.
This is normal behavior and helps prevent repeated rebroadcasts from flooding the mesh.
Each sender has a token bucket. Every forwarded advert uses one token.
If a sender keeps hitting the limit, it is temporarily blocked.
Adaptive mode adjusts limits based on recent advert activity.
This page is served over HTTP, not HTTPS. Exported data (including identity keys) will be transmitted in plain text. Only use these features on a trusted local network.
Download a complete backup including all passwords, JWT secrets, and identity keys. Required for restoring to a new device or recovering from a failed SD card.
Contains sensitive data. The backup file will include plain-text passwords and private keys. Store it securely and never share it.
Download the repeater's private identity key for backup. This key determines the node's address and cryptographic identity on the mesh.
Sensitive data. The identity key is the repeater's private key. Anyone with this key can impersonate your node. Store the exported file securely and never share it.
Memory tracing is running. Let the repeater run for a few minutes, then click Check Again to see which parts of the code are using more memory.
`,2)]])):g(``,!0),o.value&&p.value?(w(),C(`div`,Xl,[S(`div`,{class:u([`mb-5 p-4 rounded-lg border flex items-start gap-3`,L.value])},[S(`div`,{class:`mt-0.5`,innerHTML:R.value},null,8,Zl),S(`div`,null,[S(`p`,Ql,b(z.value),1),S(`p`,$l,b(B.value),1)])],2),S(`div`,eu,[o.value.rss_mb===void 0?g(``,!0):(w(),C(`div`,tu,[s[6]||=S(`p`,{class:`text-xs text-content-muted mb-1`},`Total Memory Used`,-1),S(`p`,nu,b(o.value.rss_mb)+` MB`,1)])),o.value.traced_current_mb===void 0?g(``,!0):(w(),C(`div`,ru,[s[7]||=S(`p`,{class:`text-xs text-content-muted mb-1`},`Tracked Now`,-1),S(`p`,iu,b(o.value.traced_current_mb)+` MB`,1)])),o.value.traced_peak_mb===void 0?g(``,!0):(w(),C(`div`,au,[s[8]||=S(`p`,{class:`text-xs text-content-muted mb-1`},`Peak Tracked`,-1),S(`p`,ou,b(o.value.traced_peak_mb)+` MB`,1)]))]),o.value.growth_since_baseline&&o.value.growth_since_baseline.length>0?(w(),C(`div`,su,[s[9]||=S(`h4`,{class:`text-sm font-semibold text-content-primary dark:text-content-primary mb-1`},`Memory Growth Breakdown`,-1),s[10]||=S(`p`,{class:`text-xs text-content-muted mb-3`},` Items at the top with red/orange tags are the most likely cause of memory issues. Green items are normal and can be ignored. `,-1),S(`div`,cu,[(w(!0),C(x,null,i(o.value.growth_since_baseline,(e,t)=>(w(),C(`div`,{key:t,class:u([`rounded-lg border p-3 transition-colors`,k(e)])},[S(`div`,lu,[S(`div`,uu,[S(`span`,du,b(t+1),1),S(`span`,{class:u([`shrink-0 inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold`,O(e)])},b(D(e)),3)]),S(`div`,fu,[S(`span`,{class:u([`font-mono text-sm font-semibold`,j(e)])},`+`+b(M(e.size_diff_kb)),3),S(`p`,pu,b(M(e.current_size_kb))+` total`,1)])]),S(`div`,mu,[S(`p`,hu,b(P(e.file)),1),e.count_diff===0?g(``,!0):(w(),C(`p`,gu,b(e.count_diff>0?`+`:``)+b(e.count_diff)+` new allocation`+b(Math.abs(e.count_diff)===1?``:`s`),1))])],2))),128))])])):o.value.growth_since_baseline&&o.value.growth_since_baseline.length===0?(w(),C(`div`,_u,[...s[11]||=[S(`svg`,{class:`w-5 h-5 text-green-600 dark:text-green-400 shrink-0`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[S(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z`})],-1),S(`span`,{class:`text-green-700 dark:text-green-400`},`No memory growth detected. Everything looks healthy.`,-1)]])):g(``,!0),o.value.current_top_20&&o.value.current_top_20.length>0?(w(),C(`div`,vu,[S(`button`,{onClick:s[0]||=e=>f.value=!f.value,class:`flex items-center gap-2 text-sm font-semibold text-content-secondary dark:text-content-muted hover:text-content-primary dark:hover:text-content-primary transition-colors mb-3`},[(w(),C(`svg`,{class:u([`w-4 h-4 transition-transform`,{"rotate-90":f.value}]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...s[12]||=[S(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9 5l7 7-7 7`},null,-1)]],2)),s[13]||=y(` Advanced: Current Top Allocations `,-1)]),_(N,{name:`expand`},{default:t(()=>[f.value?(w(),C(`div`,yu,[S(`table`,bu,[s[14]||=S(`thead`,null,[S(`tr`,{class:`bg-background-mute dark:bg-background/30 text-left`},[S(`th`,{class:`px-3 py-2 text-xs font-medium text-content-muted`},`#`),S(`th`,{class:`px-3 py-2 text-xs font-medium text-content-muted`},`Location`),S(`th`,{class:`px-3 py-2 text-xs font-medium text-content-muted text-right`},`Size`),S(`th`,{class:`px-3 py-2 text-xs font-medium text-content-muted text-right`},`Count`)])],-1),S(`tbody`,null,[(w(!0),C(x,null,i(o.value.current_top_20,(e,t)=>(w(),C(`tr`,{key:t,class:`border-t border-stroke-subtle/50 dark:border-stroke/5 hover:bg-background-mute/50 dark:hover:bg-background/20 transition-colors`},[S(`td`,xu,b(t+1),1),S(`td`,Su,b(P(e.file)),1),S(`td`,Cu,b(M(e.size_kb)),1),S(`td`,wu,b(e.count),1)]))),128))])])])):g(``,!0)]),_:1})])):g(``,!0)])):g(``,!0),!n.value&&!r.value&&!c.value&&!p.value&&!a.value&&l.value===null?(w(),C(`div`,Tu,[...s[15]||=[y(` Click `,-1),S(`strong`,null,`Start Tracing`,-1),y(` to enable memory diagnostics. `,-1),S(`br`,null,null,-1),S(`span`,{class:`text-xs`},`Tracing uses extra memory — remember to stop it when done.`,-1)]])):g(``,!0)])]))}}),[[`__scopeId`,`data-v-50d93367`]]),Du={class:`p-3 sm:p-6 space-y-4 sm:space-y-6`},Ou={class:`glass-card rounded-[15px] z-10 p-3 sm:p-4 border border-cyan-400 dark:border-primary/30 bg-cyan-500/10 dark:bg-primary/10`},ku={class:`text-cyan-700 dark:text-primary text-sm sm:text-base`},Au={class:`mt-1 sm:mt-2 text-cyan-600 dark:text-primary/80`},ju={class:`glass-card rounded-[15px] p-3 sm:p-6`},Mu={class:`relative -mx-3 sm:mx-0 mb-4 sm:mb-6`},Nu={key:0,class:`absolute left-0 top-0 bottom-[1px] w-12 z-10 flex items-center`},Pu={key:0,class:`absolute right-0 top-0 bottom-[1px] w-12 z-10 flex items-center justify-end`},Fu=[`onClick`],Iu={class:`flex items-center gap-1 sm:gap-2`},Lu={key:0,class:`w-3.5 h-3.5 sm:w-4 sm:h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Ru={key:1,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},zu={key:2,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Bu={key:3,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Vu={key:4,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Hu={key:5,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Uu={key:6,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Wu={key:7,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Gu={key:8,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Ku={key:9,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},qu={key:10,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Ju={key:11,class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},Yu={class:`min-h-[400px]`},Xu={key:0,class:`flex items-center justify-center py-12`},Zu={key:1,class:`flex items-center justify-center py-12`},Qu={class:`text-center`},$u={class:`text-content-secondary dark:text-content-muted text-sm mb-4`},ed={key:2},td=M(f({name:`ConfigurationView`,__name:`Configuration`,setup(e){let n=j(),o=E(H(`configuration_activeTab`,`radio`)),l=E(!1),d=E(null),f=E(!1),p=E(!1);function v(){if(!d.value)return;let e=d.value;p.value=e.scrollLeft>4,f.value=e.scrollLeftActivity (Last 24 Hours)
Activity (Last 24 Hours)
No logs match the current filter criteria.
`,3)]])):(f(),d(`div`,j,[(f(!0),d(l,null,e(K.value,(e,t)=>(f(),d(`div`,{key:t,class:`flex items-start gap-4 p-4 hover:bg-background-mute dark:hover:bg-stroke/5 transition-colors font-mono text-sm`},[u(`span`,M,` [`+c(X(e.timestamp))+`] `,1),u(`span`,N,c(U(e.message)),1),u(`span`,{class:n([`flex-shrink-0 px-2 py-1 text-xs font-medium rounded`,Z(e.level)])},c(e.level),3),u(`span`,P,c(ee(e.message)),1)]))),128))]))]))])]))}});export{F as default}; \ No newline at end of file +import{E as e,S as t,dt as n,f as r,g as i,l as a,o,p as s,pt as c,r as l,s as u,u as d,w as f,x as p,z as m}from"./runtime-core.esm-bundler-HnidnMFy.js";import{t as h}from"./api-DdIgU01d.js";var g={class:`space-y-6`},_={class:`glass-card backdrop-blur border border-stroke-subtle dark:border-white/10 rounded-[15px] p-6`},v={class:`flex items-center justify-between mb-4`},y=[`disabled`],b={class:`bg-gray-50 dark:bg-white/5 border border-stroke-subtle dark:border-stroke/10 rounded-lg p-4`},x={class:`flex flex-wrap gap-2`},S=[`onClick`],C={key:0,class:`w-px h-6 bg-stroke-subtle dark:bg-stroke/20 mx-2 self-center`},w=[`onClick`],T={class:`glass-card backdrop-blur border border-stroke-subtle dark:border-white/10 rounded-[15px] overflow-hidden`},E={key:0,class:`p-8 text-center`},D={key:1,class:`p-8 text-center`},O={class:`text-content-secondary dark:text-content-muted mb-4`},k={key:2,class:`max-h-[600px] overflow-y-auto`},A={key:0,class:`p-8 text-center`},j={key:1,class:`divide-y divide-gray-200 dark:divide-white/5`},M={class:`flex-shrink-0 text-content-secondary dark:text-content-muted`},N={class:`flex-shrink-0 px-2 py-1 text-xs font-medium rounded bg-blue-500/20 text-blue-600 dark:text-blue-400`},P={class:`text-content-primary dark:text-content-primary flex-1 break-all`},F=i({name:`LogsView`,__name:`Logs`,setup(i){let F=m([]),I=m(new Set),L=m(new Set([`DEBUG`,`INFO`,`WARNING`,`ERROR`])),R=m(new Set),z=m(new Set),B=m(!0),V=m(null),H=null,U=e=>{let t=e.match(/- ([^-]+) - (?:DEBUG|INFO|WARNING|ERROR) -/);return t?t[1].trim():`Unknown`},ee=e=>{let t=e.match(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3} - [^-]+ - (?:DEBUG|INFO|WARNING|ERROR) - (.+)$/);return t?t[1]:e},W=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0},G=async()=>{try{let e=await h.getLogs();if(e.logs&&e.logs.length>0){F.value=e.logs;let t=new Set;F.value.forEach(e=>{let n=U(e.message);t.add(n)});let n=new Set;F.value.forEach(e=>{n.add(e.level)}),I.value.size===0&&(I.value=new Set(t));let r=!W(R.value,t),i=!W(z.value,n);r&&(R.value=t),i&&(z.value=n),V.value=null}}catch(e){console.error(`Error loading logs:`,e),V.value=e instanceof Error?e.message:`Failed to load logs`}finally{B.value=!1}},K=o(()=>F.value.filter(e=>{let t=U(e.message),n=I.value.has(t),r=L.value.has(e.level);return n&&r})),q=o(()=>Array.from(R.value).sort()),J=o(()=>{let e=[`ERROR`,`WARNING`,`WARN`,`INFO`,`DEBUG`];return Array.from(z.value).sort((t,n)=>{let r=e.indexOf(t),i=e.indexOf(n);return r!==-1&&i!==-1?r-i:t.localeCompare(n)})}),Y=e=>{L.value.has(e)?L.value.delete(e):L.value.add(e),L.value=new Set(L.value)},X=e=>new Date(e).toLocaleTimeString(`en-US`,{hour12:!1,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),Z=e=>({ERROR:`text-red-600 dark:text-red-400 bg-red-900/20`,WARNING:`text-yellow-600 dark:text-yellow-400 bg-yellow-900/20`,WARN:`text-yellow-600 dark:text-yellow-400 bg-yellow-900/20`,INFO:`text-blue-600 dark:text-blue-400 bg-blue-900/20`,DEBUG:`text-gray-400 bg-gray-900/20`})[e]||`text-gray-400 bg-gray-900/20`,Q=(e,t)=>t?{ERROR:`bg-red-100 dark:bg-red-500/20 text-red-600 dark:text-red-400 border-red-500/50`,WARNING:`bg-yellow-100 dark:bg-yellow-500/20 text-yellow-600 dark:text-yellow-400 border-yellow-500/50`,WARN:`bg-yellow-100 dark:bg-yellow-500/20 text-yellow-600 dark:text-yellow-400 border-yellow-500/50`,INFO:`bg-blue-500/20 text-blue-600 dark:text-blue-400 border-blue-500/50`,DEBUG:`bg-gray-500/20 text-gray-400 border-gray-500/50`}[e]||`bg-primary/20 text-primary border-primary/50`:`bg-background-mute dark:bg-white/5 text-content-muted dark:text-white/60 border-stroke-subtle dark:border-white/20 hover:bg-stroke-subtle dark:hover:bg-white/10`,$=e=>{I.value.has(e)?I.value.delete(e):I.value.add(e),I.value=new Set(I.value)},te=()=>{I.value=new Set(R.value)},ne=()=>{I.value=new Set},re=()=>{L.value=new Set(z.value)},ie=()=>{L.value=new Set},ae=()=>{H&&clearInterval(H),H=setInterval(G,5e3)},oe=()=>{H&&=(clearInterval(H),null)};return t(()=>{G(),ae()}),p(()=>{oe()}),(t,i)=>(f(),d(`div`,g,[u(`div`,_,[u(`div`,v,[i[1]||=u(`div`,null,[u(`h1`,{class:`text-content-primary dark:text-content-primary text-2xl font-semibold mb-2`},` System Logs `),u(`p`,{class:`text-content-secondary dark:text-content-muted`},` Real-time system events and diagnostics `)],-1),u(`button`,{onClick:G,disabled:B.value,class:`flex items-center gap-2 px-4 py-2 bg-primary/20 hover:bg-primary/30 text-primary border border-primary/50 rounded-lg transition-colors disabled:opacity-50`},[(f(),d(`svg`,{class:n([`w-4 h-4`,{"animate-spin":B.value}]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...i[0]||=[u(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15`},null,-1)]],2)),s(` `+c(B.value?`Loading...`:`Refresh`),1)],8,y)]),u(`div`,b,[u(`div`,{class:`flex flex-wrap items-center gap-3 mb-4`},[i[2]||=u(`span`,{class:`text-content-primary dark:text-content-primary font-medium`},`Filters:`,-1),u(`button`,{onClick:te,class:`px-3 py-1 text-xs bg-accent-green/20 hover:bg-accent-green/30 text-accent-green border border-accent-green/50 rounded transition-colors`},` All Loggers `),u(`button`,{onClick:ne,class:`px-3 py-1 text-xs bg-accent-red/20 hover:bg-accent-red/30 text-accent-red border border-accent-red/50 rounded transition-colors`},` Clear Loggers `),i[3]||=u(`div`,{class:`w-px h-4 bg-white/20 mx-1`},null,-1),u(`button`,{onClick:re,class:`px-3 py-1 text-xs bg-accent-green/20 hover:bg-accent-green/30 text-accent-green border border-accent-green/50 rounded transition-colors`},` All Levels `),u(`button`,{onClick:ie,class:`px-3 py-1 text-xs bg-accent-red/20 hover:bg-accent-red/30 text-accent-red border border-accent-red/50 rounded transition-colors`},` Clear Levels `)]),u(`div`,x,[(f(!0),d(l,null,e(q.value,e=>(f(),d(`button`,{key:`logger-`+e,onClick:t=>$(e),class:n([`px-3 py-1 text-xs border rounded-full transition-colors`,I.value.has(e)?`bg-primary/20 text-primary border-primary/50`:`bg-background-mute dark:bg-white/5 text-content-secondary dark:text-content-muted border-stroke-subtle dark:border-stroke/20 hover:bg-stroke-subtle dark:hover:bg-white/10`])},c(e),11,S))),128)),q.value.length>0&&J.value.length>0?(f(),d(`div`,C)):a(``,!0),(f(!0),d(l,null,e(J.value,e=>(f(),d(`button`,{key:`level-`+e,onClick:t=>Y(e),class:n([`px-3 py-1 text-xs border rounded-full transition-colors font-medium`,L.value.has(e)?Q(e,!0):Q(e,!1)])},c(e),11,w))),128))])])]),u(`div`,T,[B.value&&F.value.length===0?(f(),d(`div`,E,[...i[4]||=[u(`div`,{class:`animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto mb-4`},null,-1),u(`p`,{class:`text-content-secondary dark:text-content-muted`},`Loading system logs...`,-1)]])):V.value?(f(),d(`div`,D,[i[5]||=u(`div`,{class:`text-red-600 dark:text-red-400 mb-4`},[u(`svg`,{class:`w-12 h-12 mx-auto mb-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[u(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z`})])],-1),i[6]||=u(`h3`,{class:`text-content-primary dark:text-content-primary text-lg font-medium mb-2`},` Error Loading Logs `,-1),u(`p`,O,c(V.value),1),u(`button`,{onClick:G,class:`px-4 py-2 bg-red-100 dark:bg-red-500/20 hover:bg-red-500/30 text-red-600 dark:text-red-400 border border-red-500/50 rounded-lg transition-colors`},` Try Again `)])):(f(),d(`div`,k,[K.value.length===0?(f(),d(`div`,A,[...i[7]||=[r(`No logs match the current filter criteria.
`,3)]])):(f(),d(`div`,j,[(f(!0),d(l,null,e(K.value,(e,t)=>(f(),d(`div`,{key:t,class:`flex items-start gap-4 p-4 hover:bg-background-mute dark:hover:bg-stroke/5 transition-colors font-mono text-sm`},[u(`span`,M,` [`+c(X(e.timestamp))+`] `,1),u(`span`,N,c(U(e.message)),1),u(`span`,{class:n([`flex-shrink-0 px-2 py-1 text-xs font-medium rounded`,Z(e.level)])},c(e.level),3),u(`span`,P,c(ee(e.message)),1)]))),128))]))]))])]))}});export{F as default}; \ No newline at end of file diff --git a/repeater/web/html/assets/MessageDialog-Bxq30GhY.js b/repeater/web/html/assets/MessageDialog-B-IqQT8Y.js similarity index 94% rename from repeater/web/html/assets/MessageDialog-Bxq30GhY.js rename to repeater/web/html/assets/MessageDialog-B-IqQT8Y.js index 9e8eb9b..d6dd01c 100644 --- a/repeater/web/html/assets/MessageDialog-Bxq30GhY.js +++ b/repeater/web/html/assets/MessageDialog-B-IqQT8Y.js @@ -1 +1 @@ -import{dt as e,g as t,l as n,pt as r,s as i,u as a,w as o}from"./runtime-core.esm-bundler-HnidnMFy.js";import{h as s}from"./index-C6ELfnbI.js";var c={class:`mb-6`},l={key:0,class:`w-6 h-6`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},u={key:1,class:`w-6 h-6`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},d={key:2,class:`w-6 h-6`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},f={class:`text-content-secondary dark:text-content-primary/80 text-base leading-relaxed`},p={class:`flex`},m=t({__name:`MessageDialog`,props:{show:{type:Boolean},message:{},variant:{default:`success`}},emits:[`close`],setup(t,{emit:m}){let h=t,g=m,_=e=>{e.target===e.currentTarget&&g(`close`)},v={success:`bg-green-100 dark:bg-green-500/20 border-green-600/40 dark:border-green-500/30 text-green-600 dark:text-green-400`,error:`bg-red-100 dark:bg-red-500/20 border-red-500/30 text-red-600 dark:text-red-400`,info:`bg-blue-500/20 border-blue-500/30 text-blue-600 dark:text-blue-400`},y={success:`bg-green-500 hover:bg-green-600`,error:`bg-red-500 hover:bg-red-600`,info:`bg-blue-500 hover:bg-blue-600`};return(t,m)=>h.show?(o(),a(`div`,{key:0,onClick:_,class:`fixed inset-0 bg-black/40 backdrop-blur-lg z-[99999] flex items-center justify-center p-4`,style:{"backdrop-filter":`blur(8px) saturate(180%)`,position:`fixed`,top:`0`,left:`0`,right:`0`,bottom:`0`}},[i(`div`,{class:`bg-white dark:bg-surface-elevated backdrop-blur-xl rounded-[20px] p-6 w-full max-w-md border border-stroke-subtle dark:border-white/10`,onClick:m[1]||=s(()=>{},[`stop`])},[i(`div`,c,[i(`div`,{class:e([`inline-flex p-3 rounded-xl mb-4`,v[h.variant]])},[h.variant===`success`?(o(),a(`svg`,l,[...m[2]||=[i(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 13l4 4L19 7`},null,-1)]])):h.variant===`error`?(o(),a(`svg`,u,[...m[3]||=[i(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M6 18L18 6M6 6l12 12`},null,-1)]])):(o(),a(`svg`,d,[...m[4]||=[i(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z`},null,-1)]]))],2),i(`p`,f,r(h.message),1)]),i(`div`,p,[i(`button`,{onClick:m[0]||=e=>g(`close`),class:e([`flex-1 px-4 py-3 rounded-xl text-white transition-all duration-200`,y[h.variant]])},` OK `,2)])])])):n(``,!0)}});export{m as t}; \ No newline at end of file +import{dt as e,g as t,l as n,pt as r,s as i,u as a,w as o}from"./runtime-core.esm-bundler-HnidnMFy.js";import{h as s}from"./index-ZOJT60Eu.js";var c={class:`mb-6`},l={key:0,class:`w-6 h-6`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},u={key:1,class:`w-6 h-6`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},d={key:2,class:`w-6 h-6`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},f={class:`text-content-secondary dark:text-content-primary/80 text-base leading-relaxed`},p={class:`flex`},m=t({__name:`MessageDialog`,props:{show:{type:Boolean},message:{},variant:{default:`success`}},emits:[`close`],setup(t,{emit:m}){let h=t,g=m,_=e=>{e.target===e.currentTarget&&g(`close`)},v={success:`bg-green-100 dark:bg-green-500/20 border-green-600/40 dark:border-green-500/30 text-green-600 dark:text-green-400`,error:`bg-red-100 dark:bg-red-500/20 border-red-500/30 text-red-600 dark:text-red-400`,info:`bg-blue-500/20 border-blue-500/30 text-blue-600 dark:text-blue-400`},y={success:`bg-green-500 hover:bg-green-600`,error:`bg-red-500 hover:bg-red-600`,info:`bg-blue-500 hover:bg-blue-600`};return(t,m)=>h.show?(o(),a(`div`,{key:0,onClick:_,class:`fixed inset-0 bg-black/40 backdrop-blur-lg z-[99999] flex items-center justify-center p-4`,style:{"backdrop-filter":`blur(8px) saturate(180%)`,position:`fixed`,top:`0`,left:`0`,right:`0`,bottom:`0`}},[i(`div`,{class:`bg-white dark:bg-surface-elevated backdrop-blur-xl rounded-[20px] p-6 w-full max-w-md border border-stroke-subtle dark:border-white/10`,onClick:m[1]||=s(()=>{},[`stop`])},[i(`div`,c,[i(`div`,{class:e([`inline-flex p-3 rounded-xl mb-4`,v[h.variant]])},[h.variant===`success`?(o(),a(`svg`,l,[...m[2]||=[i(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 13l4 4L19 7`},null,-1)]])):h.variant===`error`?(o(),a(`svg`,u,[...m[3]||=[i(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M6 18L18 6M6 6l12 12`},null,-1)]])):(o(),a(`svg`,d,[...m[4]||=[i(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z`},null,-1)]]))],2),i(`p`,f,r(h.message),1)]),i(`div`,p,[i(`button`,{onClick:m[0]||=e=>g(`close`),class:e([`flex-1 px-4 py-3 rounded-xl text-white transition-all duration-200`,y[h.variant]])},` OK `,2)])])])):n(``,!0)}});export{m as t}; \ No newline at end of file diff --git a/repeater/web/html/assets/Neighbors-Bimq_VCm.js b/repeater/web/html/assets/Neighbors-C9fH2pPD.js similarity index 81% rename from repeater/web/html/assets/Neighbors-Bimq_VCm.js rename to repeater/web/html/assets/Neighbors-C9fH2pPD.js index be99123..541e740 100644 --- a/repeater/web/html/assets/Neighbors-Bimq_VCm.js +++ b/repeater/web/html/assets/Neighbors-C9fH2pPD.js @@ -1,4 +1,4 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{A as t,C as n,E as r,S as i,b as a,c as o,dt as s,f as c,ft as l,g as u,i as d,j as f,k as p,l as m,m as h,o as g,p as _,pt as v,r as y,s as b,u as x,w as S,z as C}from"./runtime-core.esm-bundler-HnidnMFy.js";import{t as w}from"./api-BXShkfsc.js";import{t as T}from"./system-A4EFgrwh.js";import{t as E}from"./_plugin-vue_export-helper-B7aGp3iI.js";import{c as D,d as O,f as k,h as A,p as j}from"./index-C6ELfnbI.js";import{t as M}from"./leaflet-src-PYB8oVmQ.js";/* empty css */import{n as N,t as P}from"./preferences-Bv8i60GL.js";import{t as F}from"./useSignalQuality-Bb0MJfxa.js";var I={class:`bg-gray-50 dark:bg-white/5 border border-stroke-subtle dark:border-stroke/10 rounded-lg p-4 mb-6`},L={class:`flex items-center gap-3`},R={class:`flex-1 min-w-0`},z={class:`text-content-primary dark:text-content-primary font-medium truncate`},B={class:`text-content-secondary dark:text-content-muted text-sm font-mono`},V={key:0,class:`text-white/50 text-xs`},H={key:1,class:`text-white/50 text-xs`},U=u({__name:`DeleteNeighborModal`,props:{show:{type:Boolean},neighbor:{}},emits:[`close`,`delete`],setup(e,{emit:t}){let n=e,r=t,i=()=>{n.neighbor&&(r(`delete`,n.neighbor.id),a())},a=()=>{r(`close`)},o=e=>{e.target===e.currentTarget&&a()};return(t,n)=>e.show&&e.neighbor?(S(),x(`div`,{key:0,onClick:o,class:`fixed inset-0 bg-black/80 backdrop-blur-lg z-[99999] flex items-center justify-center p-4`,style:{"backdrop-filter":`blur(8px) saturate(180%)`,position:`fixed`,top:`0`,left:`0`,right:`0`,bottom:`0`}},[b(`div`,{class:`bg-white dark:bg-surface-elevated backdrop-blur-xl rounded-[20px] p-6 w-full max-w-md border border-stroke-subtle dark:border-white/10`,onClick:n[0]||=A(()=>{},[`stop`])},[b(`div`,{class:`flex items-center gap-3 mb-6`},[n[2]||=b(`svg`,{class:`w-6 h-6 text-accent-red`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[b(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z`})],-1),n[3]||=b(`div`,null,[b(`h3`,{class:`text-xl font-semibold text-content-primary dark:text-content-primary`},` Delete Neighbor `),b(`p`,{class:`text-content-secondary dark:text-content-muted text-sm mt-1`},` Are you sure you want to delete this neighbor? `)],-1),b(`button`,{onClick:a,class:`ml-auto text-content-secondary dark:text-content-muted hover:text-content-primary dark:hover:text-content-primary transition-colors`},[...n[1]||=[b(`svg`,{class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[b(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M6 18L18 6M6 6l12 12`})],-1)]])]),b(`div`,I,[b(`div`,L,[b(`div`,R,[b(`div`,z,v(e.neighbor?.node_name||e.neighbor?.long_name||e.neighbor?.short_name||`Unknown`),1),b(`div`,B,` ID: `+v(e.neighbor?.node_num_hex||e.neighbor?.node_num||e.neighbor?.id||`N/A`),1),e.neighbor?.contact_type?(S(),x(`div`,V,v(e.neighbor.contact_type),1)):m(``,!0),e.neighbor?.hw_model?(S(),x(`div`,H,v(e.neighbor.hw_model),1)):m(``,!0)])])]),n[4]||=b(`div`,{class:`bg-accent-red/10 border border-accent-red/30 rounded-lg p-4 mb-6`},[b(`div`,{class:`flex items-center gap-2 text-accent-red text-sm`},[b(`svg`,{class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[b(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 9v2m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z`})]),b(`span`,null,`This action cannot be undone`)])],-1),b(`div`,{class:`flex gap-3`},[b(`button`,{onClick:a,class:`flex-1 px-4 py-3 bg-background-mute dark:bg-white/5 hover:bg-stroke-subtle dark:hover:bg-white/10 border border-stroke-subtle dark:border-stroke/20 text-content-primary dark:text-content-primary rounded-lg transition-colors`},` Cancel `),b(`button`,{onClick:i,class:`flex-1 px-4 py-3 bg-accent-red/20 hover:bg-accent-red/30 border border-accent-red/50 text-accent-red rounded-lg transition-colors font-medium`},` Delete `)])])])):m(``,!0)}}),W={class:`bg-gradient-to-r from-primary/20 to-accent-cyan/20 border-b border-stroke-subtle dark:border-stroke/10 px-6 py-4`},G={class:`flex items-center justify-between`},K={class:`flex items-center gap-3`},ee={key:0,class:`text-sm text-content-secondary dark:text-content-muted`},te={class:`p-6`},q={key:0,class:`text-center py-8`},ne={key:1,class:`text-center py-8`},re={class:`text-content-secondary dark:text-content-muted text-sm`},ie={key:2,class:`space-y-4`},ae={class:`bg-background-mute dark:bg-background/50 border border-stroke-subtle dark:border-stroke/10 rounded-[15px] p-4`},oe={class:`flex items-center justify-between mb-2`},se={class:`flex items-baseline gap-2`},ce={class:`text-3xl font-bold text-content-primary dark:text-content-primary`},le={class:`grid grid-cols-2 gap-3`},ue={class:`bg-background-mute dark:bg-background/50 border border-stroke-subtle dark:border-stroke/10 rounded-[15px] p-4`},de={class:`flex items-center gap-2 mb-2`},fe={class:`flex gap-0.5`},pe={class:`flex items-baseline gap-1`},me={class:`text-xl font-bold text-content-primary dark:text-content-primary`},he={class:`bg-background-mute dark:bg-background/50 border border-stroke-subtle dark:border-stroke/10 rounded-[15px] p-4`},ge={class:`flex items-baseline gap-1`},_e={class:`text-xl font-bold text-content-primary dark:text-content-primary`},ve={key:0,class:`flex items-start gap-3 bg-amber-500/10 border border-amber-500/30 rounded-[12px] p-3`},ye={class:`text-xs leading-relaxed`},be={class:`font-semibold text-amber-600 dark:text-amber-400 mb-0.5`},xe={class:`bg-background-mute dark:bg-background/50 border border-stroke-subtle dark:border-stroke/10 rounded-[15px] p-4`},Se={class:`relative`},Ce={class:`flex items-center gap-2 overflow-x-auto pb-2`},we={key:0,class:`relative flex items-center`},Te={key:0,class:`absolute left-1/2 -translate-x-1/2 animate-pulse`},Ee={class:`text-content-muted dark:text-content-muted text-xs mt-2 flex items-center justify-between`},De={key:0,class:`text-cyan-500 dark:text-primary animate-pulse`},Oe={class:`flex items-center justify-between text-xs text-content-muted dark:text-content-muted pt-2`},ke=E(u({__name:`PingResultModal`,props:{show:{type:Boolean},nodeName:{default:null},result:{default:null},error:{default:null},loading:{type:Boolean,default:!1}},emits:[`close`],setup(e,{emit:n}){let i=e,a=n,c=T(),{getSignalQuality:l}=F(),u=C(0),f=C(!1),_=g(()=>{let e=c.stats?.config?.radio?.spreading_factor??7,t=c.stats?.config?.radio?.bandwidth??125,n=c.stats?.config?.radio?.coding_rate??5;return 2**e/t*(8+4.25*(n-4)+20)}),w=g(()=>{if(!i.result)return{color:`text-gray-400`,label:`Unknown`};let e=i.result.rtt_ms,t=_.value,n=i.result.path.length,r=2*t*n+500*n;return eNo valid coordinates available
Configure base station location to view map
No mesh neighbors have been discovered in your area yet.
`,3),b(`button`,{onClick:oe,class:`mt-4 px-4 py-2 bg-primary/20 text-primary border border-primary/30 rounded-lg hover:bg-primary/30 transition-colors`},` Refresh `)])):re.value.length===0&&q.value?(S(),x(`div`,hr,[t[21]||=c(`Try adjusting your filter criteria to see more results.
`,3),b(`button`,{onClick:te,class:`px-4 py-2 bg-primary/20 text-primary border border-primary/30 rounded-lg hover:bg-primary/30 transition-colors`},` Clear Filters `)])):m(``,!0)],64)),h(U,{show:M.value,neighbor:W.value,onClose:he,onDelete:ge},null,8,[`show`,`neighbor`]),h(ke,{show:F.value,"node-name":z.value,result:L.value,error:R.value,loading:I.value,onClose:de},null,8,[`show`,`node-name`,`result`,`error`,`loading`]),h(gt,{"is-open":V.value,neighbor:H.value,"base-latitude":G.value,"base-longitude":K.value,onClose:me},null,8,[`is-open`,`neighbor`,`base-latitude`,`base-longitude`])]))}});export{gr as default}; \ No newline at end of file + `);f.value.set(o.pubkey,p);let m=p.getElement();m&&(m.style.opacity=`0`,m.style.transition=`opacity 0.5s ease-out`),s(o,e,t,i,r),setTimeout(()=>{m&&(m.style.opacity=`1`)},r+1e3),r+=100}})};if(w.value&&o.adverts.length>0)try{R(L(o.adverts));let n=Math.min(14,d.getZoom());d.setZoom(n),setTimeout(()=>{try{c()}catch(n){console.warn(`Error updating clusters:`,n),l(e,t)}},100),d.on(`moveend`,()=>{try{c()}catch(e){console.warn(`Error updating clusters on move:`,e)}}),d.on(`zoomend`,()=>{try{c()}catch(e){console.warn(`Error updating clusters on zoom:`,e)}})}catch(n){console.warn(`Error initializing clustering:`,n),l(e,t)}else l(e,t);setTimeout(()=>{d&&d.invalidateSize()},1e3)}catch(e){console.error(`Error initializing map:`,e)}};return t({highlightNode:e=>{let t=f.value.get(e);if(t){let e=t.getElement();if(e){let t=e.querySelector(`div`);t&&t.classList.add(`marker-highlight`)}}},unhighlightNode:e=>{let t=f.value.get(e);if(t){let e=t.getElement();if(e){let t=e.querySelector(`div`);t&&t.classList.remove(`marker-highlight`)}}},initializeOpenStreetMap:z}),p(()=>o.adverts,()=>{d&&k.value&&setTimeout(()=>{z()},100)},{immediate:!1}),i(()=>{O.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),k.value&&o.adverts.length>0&&setTimeout(()=>{z()},300)}),n(()=>{O.disconnect(),F()}),(t,n)=>(S(),x(`div`,Ft,[k.value?(S(),x(`div`,{key:1,ref_key:`mapContainer`,ref:u,class:`leaflet-map-container h-96 w-full glass-card backdrop-blur border border-black/6 dark:border-white/10 rounded-[12px] overflow-hidden shadow-sm dark:shadow-none`,style:{"min-height":`384px`,position:`relative`}},null,512)):(S(),x(`div`,It,[...n[0]||=[c(`No valid coordinates available
Configure base station location to view map
No mesh neighbors have been discovered in your area yet.
`,3),b(`button`,{onClick:se,class:`mt-4 px-4 py-2 bg-primary/20 text-primary border border-primary/30 rounded-lg hover:bg-primary/30 transition-colors`},` Refresh `)])):ie.value.length===0&&q.value?(S(),x(`div`,hr,[t[22]||=c(`Try adjusting your filter criteria to see more results.
`,3),b(`button`,{onClick:ne,class:`px-4 py-2 bg-primary/20 text-primary border border-primary/30 rounded-lg hover:bg-primary/30 transition-colors`},` Clear Filters `)])):m(``,!0)],64)),h(U,{show:F.value,neighbor:ee.value,onClose:ge,onDelete:_e},null,8,[`show`,`neighbor`]),h(ke,{show:I.value,"node-name":B.value,result:R.value,error:z.value,loading:L.value,onClose:fe},null,8,[`show`,`node-name`,`result`,`error`,`loading`]),h(gt,{"is-open":H.value,neighbor:W.value,"base-latitude":G.value,"base-longitude":K.value,onClose:he},null,8,[`is-open`,`neighbor`,`base-latitude`,`base-longitude`])]))}});export{gr as default}; \ No newline at end of file diff --git a/repeater/web/html/assets/Neighbors-Cfo189NY.css b/repeater/web/html/assets/Neighbors-envRVHqg.css similarity index 77% rename from repeater/web/html/assets/Neighbors-Cfo189NY.css rename to repeater/web/html/assets/Neighbors-envRVHqg.css index e379b7d..34c8350 100644 --- a/repeater/web/html/assets/Neighbors-Cfo189NY.css +++ b/repeater/web/html/assets/Neighbors-envRVHqg.css @@ -1 +1 @@ -.modal-enter-active[data-v-dacea749],.modal-leave-active[data-v-dacea749]{transition:opacity .2s}.modal-enter-from[data-v-dacea749],.modal-leave-to[data-v-dacea749]{opacity:0}.modal-enter-active>div[data-v-dacea749],.modal-leave-active>div[data-v-dacea749]{transition:transform .2s}.modal-enter-from>div[data-v-dacea749],.modal-leave-to>div[data-v-dacea749]{transform:scale(.95)}.packet-enter-active[data-v-dacea749],.packet-leave-active[data-v-dacea749]{transition:all .15s}.packet-enter-from[data-v-dacea749],.packet-leave-to[data-v-dacea749]{opacity:0;transform:translate(-50%)scale(.5)}.custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-track{background:0 0}.custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-thumb{background:#0003;border-radius:4px}.dark .custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-thumb{background:#fff3}.custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-thumb:hover{background:#0000004d}.dark .custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.modal-enter-active[data-v-2fb1fa15],.modal-leave-active[data-v-2fb1fa15]{transition:opacity .3s}.modal-enter-active>div[data-v-2fb1fa15],.modal-leave-active>div[data-v-2fb1fa15]{transition:transform .3s,opacity .3s}.modal-enter-from[data-v-2fb1fa15],.modal-leave-to[data-v-2fb1fa15]{opacity:0}.modal-enter-from>div[data-v-2fb1fa15],.modal-leave-to>div[data-v-2fb1fa15]{opacity:0;transform:scale(.95)}.leaflet-container{background:0 0}.custom-marker{background:0 0!important;border:none!important}.map-container[data-v-61a18eed]{background:0 0;border-radius:15px;position:relative;overflow:hidden}.leaflet-map-container[data-v-61a18eed]{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:linear-gradient(135deg,#09090bcc 0%,#0009 100%)}.map-legend[data-v-61a18eed]{color:#fff;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);z-index:1000;background:#0006;border:1px solid #ffffff1a;border-radius:15px;min-width:150px;max-width:180px;padding:12px;font-size:12px;position:absolute;top:10px;right:10px;box-shadow:0 8px 32px #0000004d}.legend-title[data-v-61a18eed]{color:#fff;margin-bottom:10px;font-size:13px;font-weight:700}.legend-section[data-v-61a18eed]{margin-bottom:10px}.legend-section[data-v-61a18eed]:last-of-type{margin-bottom:8px}.legend-subtitle[data-v-61a18eed]{color:#fffc;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;font-size:11px;font-weight:600}.legend-footer[data-v-61a18eed]{color:#fff9;text-align:center;border-top:1px solid #ffffff1a;margin-top:10px;padding-top:8px;font-size:10px}.legend-items[data-v-61a18eed]{flex-direction:column;gap:4px;display:flex}.legend-item[data-v-61a18eed]{align-items:center;gap:6px;display:flex}.legend-icon[data-v-61a18eed]{border:1px solid #fffc;border-radius:50%;flex-shrink:0;width:8px;height:8px;box-shadow:0 1px 2px #0003}.legend-icon.cluster-icon[data-v-61a18eed]{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border:1px solid #aae8e8;border-radius:50%;width:16px;height:16px}.legend-line[data-v-61a18eed]{border-radius:1px;flex-shrink:0;width:16px;height:2px;position:relative}.legend-line-dashed[data-v-61a18eed]{background-color:#0000!important;background-image:repeating-linear-gradient(90deg,currentColor 0 4px,#0000 4px 8px)!important}.legend-line-dashed[style*=\#FFC246][data-v-61a18eed]{color:#ffc246!important}.legend-line-dashed[style*=\#ea580c][data-v-61a18eed]{color:#ea580c!important}.marker-highlight{z-index:1000!important;border-radius:50%!important;animation:1s ease-in-out infinite marker-glow-61a18eed!important;position:relative!important;transform:scale(1.2)!important;box-shadow:0 0 0 3px #a5e5b6,0 0 8px #a5e5b6,0 0 16px #a5e5b6!important}@keyframes marker-glow-61a18eed{0%,to{filter:brightness();box-shadow:0 0 0 3px #a5e5b6,0 0 8px #a5e5b6,0 0 16px #a5e5b6}50%{filter:brightness(1.3);box-shadow:0 0 0 5px #a5e5b6,0 0 12px #a5e5b6,0 0 24px #a5e5b6}}@keyframes pulse-highlight-61a18eed{0%{box-shadow:0 0 #3b82f6b3}70%{box-shadow:0 0 0 8px #3b82f600}to{box-shadow:0 0 #3b82f600}}.leaflet-popup-content-wrapper{color:#fff!important;-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background:#0006!important;border:1px solid #ffffff1a!important;border-radius:15px!important;box-shadow:0 8px 32px #0000004d!important}.leaflet-popup-tip{background:#0006!important;border:1px solid #ffffff1a!important}.leaflet-popup-close-button{color:#fff9!important;font-size:18px!important}.leaflet-popup-close-button:hover{color:#fff!important}.custom-div-icon,.custom-cluster-icon{background:0 0!important;border:none!important}.custom-cluster-icon div{cursor:pointer!important;transition:all .3s!important}.custom-cluster-icon:hover div{transform:scale(1.1)!important;box-shadow:0 6px 16px #aae8e880!important}.leaflet-control-zoom{overflow:hidden;-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;border:1px solid #ffffff1a!important;border-radius:15px!important}.leaflet-control-zoom a{color:#fff!important;background-color:#0006!important;border-bottom:1px solid #ffffff1a!important;transition:all .2s!important}.leaflet-control-zoom a:hover{color:#fff!important;background-color:#ffffff1a!important}.leaflet-control-attribution{color:#9ca3af!important;background-color:#1f2937cc!important;border-top:1px solid #4b55634d!important;border-radius:4px!important;padding:4px 8px!important;font-size:11px!important}.leaflet-control-attribution a{text-decoration:none;color:#60a5fa!important}.leaflet-control-attribution a:hover{text-decoration:underline;color:#93c5fd!important}.leaflet-bottom.leaflet-left .leaflet-control-attribution{margin-bottom:10px!important;margin-left:10px!important}.map-attribution[data-v-61a18eed]{color:#fff9;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);z-index:1000;background:#0006;border:1px solid #ffffff1a;border-radius:15px;padding:4px 8px;font-size:10px;position:absolute;bottom:10px;left:10px}@media (width<=640px){.leaflet-control-attribution{display:none!important}} +.modal-enter-active[data-v-dacea749],.modal-leave-active[data-v-dacea749]{transition:opacity .2s}.modal-enter-from[data-v-dacea749],.modal-leave-to[data-v-dacea749]{opacity:0}.modal-enter-active>div[data-v-dacea749],.modal-leave-active>div[data-v-dacea749]{transition:transform .2s}.modal-enter-from>div[data-v-dacea749],.modal-leave-to>div[data-v-dacea749]{transform:scale(.95)}.packet-enter-active[data-v-dacea749],.packet-leave-active[data-v-dacea749]{transition:all .15s}.packet-enter-from[data-v-dacea749],.packet-leave-to[data-v-dacea749]{opacity:0;transform:translate(-50%)scale(.5)}.custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-track{background:0 0}.custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-thumb{background:#0003;border-radius:4px}.dark .custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-thumb{background:#fff3}.custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-thumb:hover{background:#0000004d}.dark .custom-scrollbar[data-v-2fb1fa15]::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.modal-enter-active[data-v-2fb1fa15],.modal-leave-active[data-v-2fb1fa15]{transition:opacity .3s}.modal-enter-active>div[data-v-2fb1fa15],.modal-leave-active>div[data-v-2fb1fa15]{transition:transform .3s,opacity .3s}.modal-enter-from[data-v-2fb1fa15],.modal-leave-to[data-v-2fb1fa15]{opacity:0}.modal-enter-from>div[data-v-2fb1fa15],.modal-leave-to>div[data-v-2fb1fa15]{opacity:0;transform:scale(.95)}.leaflet-container{background:0 0}.custom-marker{background:0 0!important;border:none!important}.map-container[data-v-22c729ac]{background:0 0;border-radius:15px;position:relative;overflow:hidden}.leaflet-map-container[data-v-22c729ac]{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:linear-gradient(135deg,#09090bcc 0%,#0009 100%)}.map-legend[data-v-22c729ac]{color:#fff;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);z-index:1000;background:#0006;border:1px solid #ffffff1a;border-radius:15px;min-width:150px;max-width:180px;padding:12px;font-size:12px;position:absolute;top:10px;right:10px;box-shadow:0 8px 32px #0000004d}.legend-title[data-v-22c729ac]{color:#fff;margin-bottom:10px;font-size:13px;font-weight:700}.legend-section[data-v-22c729ac]{margin-bottom:10px}.legend-section[data-v-22c729ac]:last-of-type{margin-bottom:8px}.legend-subtitle[data-v-22c729ac]{color:#fffc;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;font-size:11px;font-weight:600}.legend-footer[data-v-22c729ac]{color:#fff9;text-align:center;border-top:1px solid #ffffff1a;margin-top:10px;padding-top:8px;font-size:10px}.legend-items[data-v-22c729ac]{flex-direction:column;gap:4px;display:flex}.legend-item[data-v-22c729ac]{align-items:center;gap:6px;display:flex}.legend-icon[data-v-22c729ac]{border:1px solid #fffc;border-radius:50%;flex-shrink:0;width:8px;height:8px;box-shadow:0 1px 2px #0003}.legend-icon.cluster-icon[data-v-22c729ac]{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border:1px solid #aae8e8;border-radius:50%;width:16px;height:16px}.legend-line[data-v-22c729ac]{border-radius:1px;flex-shrink:0;width:16px;height:2px;position:relative}.legend-line-dashed[data-v-22c729ac]{background-color:#0000!important;background-image:repeating-linear-gradient(90deg,currentColor 0 4px,#0000 4px 8px)!important}.legend-line-dashed[style*=\#FFC246][data-v-22c729ac]{color:#ffc246!important}.legend-line-dashed[style*=\#ea580c][data-v-22c729ac]{color:#ea580c!important}.marker-highlight{z-index:1000!important;border-radius:50%!important;animation:1s ease-in-out infinite marker-glow-22c729ac!important;position:relative!important;transform:scale(1.2)!important;box-shadow:0 0 0 3px #a5e5b6,0 0 8px #a5e5b6,0 0 16px #a5e5b6!important}@keyframes marker-glow-22c729ac{0%,to{filter:brightness();box-shadow:0 0 0 3px #a5e5b6,0 0 8px #a5e5b6,0 0 16px #a5e5b6}50%{filter:brightness(1.3);box-shadow:0 0 0 5px #a5e5b6,0 0 12px #a5e5b6,0 0 24px #a5e5b6}}@keyframes pulse-highlight-22c729ac{0%{box-shadow:0 0 #3b82f6b3}70%{box-shadow:0 0 0 8px #3b82f600}to{box-shadow:0 0 #3b82f600}}.leaflet-popup-content-wrapper{color:#fff!important;-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background:#0006!important;border:1px solid #ffffff1a!important;border-radius:15px!important;box-shadow:0 8px 32px #0000004d!important}.leaflet-popup-tip{background:#0006!important;border:1px solid #ffffff1a!important}.leaflet-popup-close-button{color:#fff9!important;font-size:18px!important}.leaflet-popup-close-button:hover{color:#fff!important}.custom-div-icon,.custom-cluster-icon{background:0 0!important;border:none!important}.custom-cluster-icon div{cursor:pointer!important;transition:all .3s!important}.custom-cluster-icon:hover div{transform:scale(1.1)!important;box-shadow:0 6px 16px #aae8e880!important}.leaflet-control-zoom{overflow:hidden;-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;border:1px solid #ffffff1a!important;border-radius:15px!important}.leaflet-control-zoom a{color:#fff!important;background-color:#0006!important;border-bottom:1px solid #ffffff1a!important;transition:all .2s!important}.leaflet-control-zoom a:hover{color:#fff!important;background-color:#ffffff1a!important}.leaflet-control-attribution{color:#9ca3af!important;background-color:#1f2937cc!important;border-top:1px solid #4b55634d!important;border-radius:4px!important;padding:4px 8px!important;font-size:11px!important}.leaflet-control-attribution a{text-decoration:none;color:#60a5fa!important}.leaflet-control-attribution a:hover{text-decoration:underline;color:#93c5fd!important}.leaflet-bottom.leaflet-left .leaflet-control-attribution{margin-bottom:10px!important;margin-left:10px!important}.map-attribution[data-v-22c729ac]{color:#fff9;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);z-index:1000;background:#0006;border:1px solid #ffffff1a;border-radius:15px;padding:4px 8px;font-size:10px;position:absolute;bottom:10px;left:10px}@media (width<=640px){.leaflet-control-attribution{display:none!important}} diff --git a/repeater/web/html/assets/RFNoiseFloor-DJ5u0yyJ.js b/repeater/web/html/assets/RFNoiseFloor-DJ5u0yyJ.js new file mode 100644 index 0000000..6d2ee1e --- /dev/null +++ b/repeater/web/html/assets/RFNoiseFloor-DJ5u0yyJ.js @@ -0,0 +1 @@ +import{n as e}from"./index-ZOJT60Eu.js";export{e as default}; \ No newline at end of file diff --git a/repeater/web/html/assets/RFNoiseFloor-DP2Od1kp.js b/repeater/web/html/assets/RFNoiseFloor-DP2Od1kp.js deleted file mode 100644 index 0d89c40..0000000 --- a/repeater/web/html/assets/RFNoiseFloor-DP2Od1kp.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e}from"./index-C6ELfnbI.js";export{e as default}; \ No newline at end of file diff --git a/repeater/web/html/assets/RoomServers-D-6s9Xs_.js b/repeater/web/html/assets/RoomServers-BN2tf2TI.js similarity index 99% rename from repeater/web/html/assets/RoomServers-D-6s9Xs_.js rename to repeater/web/html/assets/RoomServers-BN2tf2TI.js index dc2fd7b..cb1d7d5 100644 --- a/repeater/web/html/assets/RoomServers-D-6s9Xs_.js +++ b/repeater/web/html/assets/RoomServers-BN2tf2TI.js @@ -1 +1 @@ -import{E as e,S as t,dt as n,f as r,g as i,j as a,k as ee,l as o,m as s,p as c,pt as l,r as u,s as d,u as f,w as p,z as m}from"./runtime-core.esm-bundler-HnidnMFy.js";import{t as h}from"./api-BXShkfsc.js";import{f as g,h as _,m as v}from"./index-C6ELfnbI.js";import{t as te}from"./ConfirmDialog-COAlYCXc.js";import{t as ne}from"./MessageDialog-Bxq30GhY.js";import{n as re,t as ie}from"./preferences-Bv8i60GL.js";var ae={class:`p-6 space-y-6`},oe={class:`relative overflow-hidden rounded-[20px] p-6 mb-6 glass-card backdrop-blur-xl border border-stroke-subtle dark:border-white/10`},se={class:`relative flex items-center justify-between`},ce={key:0,class:`grid grid-cols-1 md:grid-cols-3 gap-4`},le={class:`group relative overflow-hidden glass-card backdrop-blur-xl border border-stroke-subtle dark:border-white/10 rounded-[15px] p-5 hover:scale-[1.02] transition-all duration-300 cursor-pointer`},ue={class:`relative flex items-center justify-between`},de={class:`text-3xl font-bold text-content-primary dark:text-content-primary mb-1`},fe={class:`group relative overflow-hidden glass-card backdrop-blur-xl border border-stroke-subtle dark:border-white/10 rounded-[15px] p-5 hover:scale-[1.02] transition-all duration-300 cursor-pointer`},pe={class:`relative flex items-center justify-between`},me={class:`text-3xl font-bold text-primary mb-1`},he={class:`group relative overflow-hidden glass-card backdrop-blur-xl border border-stroke-subtle dark:border-white/10 rounded-[15px] p-5 hover:scale-[1.02] transition-all duration-300 cursor-pointer`},ge={class:`relative flex items-center justify-between`},_e={key:0,class:`w-6 h-6 text-accent-green`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},ve={key:1,class:`w-6 h-6 text-accent-yellow`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},ye={class:`glass-card backdrop-blur-xl border border-stroke-subtle dark:border-white/10 rounded-[15px] p-6`},be={key:0,class:`flex items-center justify-center py-12`},xe={key:1,class:`flex items-center justify-center py-12`},Se={class:`text-center`},Ce={class:`text-content-secondary dark:text-content-muted text-sm mb-4`},we={key:2,class:`space-y-4`},Te={class:`relative flex items-start justify-between`},Ee={class:`flex-1`},De={class:`flex items-center gap-3 mb-4`},Oe={class:`relative`},ke={key:0,class:`absolute inset-0 bg-accent-green/50 rounded-full animate-ping`},Ae={class:`text-xl font-bold text-content-primary dark:text-content-primary group-hover:text-primary transition-colors`},je={key:0,class:`text-content-muted dark:text-content-muted text-sm`},Me={class:`grid grid-cols-1 md:grid-cols-2 gap-3 text-sm mb-3`},Ne={class:`text-content-primary dark:text-content-primary/90 ml-2`},Pe={class:`flex items-center gap-2`},y={key:0,class:`text-content-primary dark:text-content-primary/90 font-mono ml-2 text-xs`},Fe={key:1,class:`text-content-muted dark:text-content-muted ml-2 text-xs`},Ie=[`onClick`],Le={class:`text-content-primary dark:text-content-primary/90 ml-2`},Re={key:0},ze={class:`text-content-primary dark:text-content-primary/90 ml-2`},Be={key:0,class:`text-accent-green`},Ve={key:1,class:`text-content-muted dark:text-content-muted`},He={key:2,class:`text-primary`},Ue={key:0,class:`text-xs text-content-muted dark:text-content-muted font-mono`},We={class:`ml-4 flex flex-wrap gap-2`},Ge=[`onClick`,`disabled`,`title`],Ke=[`onClick`,`disabled`,`title`],qe=[`onClick`],Je=[`onClick`],Ye={key:3,class:`text-center py-12 text-content-secondary dark:text-content-muted`},Xe={key:1,class:`fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4`},Ze={class:`bg-white dark:bg-surface-elevated backdrop-blur-xl border border-stroke-subtle dark:border-white/10 rounded-[15px] p-6 max-w-2xl w-full max-h-[90vh] overflow-y-auto`},Qe={class:`space-y-4`},$e={class:`block text-content-secondary dark:text-content-primary/70 text-sm mb-2`},et={key:0},tt={key:1,class:`text-content-secondary dark:text-content-muted text-sm`},nt={class:`grid grid-cols-2 gap-4`},rt={class:`grid grid-cols-2 gap-4`},it={key:2,class:`fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4`},at={class:`bg-white dark:bg-surface-elevated backdrop-blur-xl border border-stroke-subtle dark:border-white/10 rounded-[15px] p-6 max-w-2xl w-full max-h-[90vh] overflow-y-auto`},ot={class:`space-y-4`},st=[`value`],ct={class:`block text-content-secondary dark:text-content-primary/70 text-sm mb-2`},lt={key:0},ut={key:1,class:`text-content-secondary dark:text-content-muted text-sm`},dt={class:`grid grid-cols-2 gap-4`},ft={class:`grid grid-cols-2 gap-4`},pt={key:0,class:`fixed inset-0 bg-black/70 backdrop-blur-md flex items-center justify-center z-50 p-4`},mt={class:`bg-white dark:bg-surface-elevated backdrop-blur-xl border border-stroke-subtle dark:border-white/10 rounded-[20px] p-6 max-w-4xl w-full h-[85vh] flex flex-col shadow-2xl`},ht={class:`relative overflow-hidden rounded-[15px] mb-6 p-5 bg-white/50 dark:bg-white/5 border border-stroke-subtle dark:border-white/10`},gt={class:`relative flex items-center justify-between`},_t={class:`flex items-center gap-4`},vt={class:`text-content-secondary dark:text-content-muted text-sm flex items-center gap-2`},yt={class:`text-primary font-semibold`},bt={class:`flex items-center gap-2`},xt={class:`bg-primary/30 px-1.5 py-0.5 rounded-full text-[10px]`},St={class:`flex-1 overflow-y-auto mb-4 space-y-3`},Ct={key:0,class:`flex items-center justify-center py-12`},wt={key:1,class:`flex items-center justify-center py-12`},Tt={class:`text-center`},Et={class:`text-content-secondary dark:text-content-muted text-sm mb-4`},Dt={key:2,class:`space-y-3`},Ot={class:`relative flex items-start justify-between gap-3`},kt={class:`flex-1 min-w-0`},At={class:`flex items-center gap-2 mb-3`},jt={class:`flex items-center gap-2 flex-wrap`},Mt={key:0,class:`text-primary text-sm font-bold`},Nt={key:1,class:`text-primary/80 text-xs font-mono bg-primary/10 px-2 py-1 rounded-md border border-primary/20`},Pt={key:2,class:`text-content-muted dark:text-content-muted text-xs`},Ft={class:`text-content-secondary dark:text-content-muted text-xs flex items-center gap-1`},It={key:3,class:`text-content-muted dark:text-content-muted/50 text-[10px] font-mono bg-background-mute dark:bg-white/5 px-1.5 py-0.5 rounded`},Lt={class:`text-content-primary dark:text-content-primary/90 text-sm leading-relaxed break-words whitespace-pre-wrap bg-gray-50 dark:bg-white/5 p-3 rounded-[10px] border border-stroke-subtle dark:border-white/5`},Rt=[`onClick`],zt={key:0,class:`text-center pt-4`},Bt={key:1,class:`text-center pt-4`},Vt={key:3,class:`flex items-center justify-center h-full`},Ht={class:`relative overflow-hidden rounded-[15px] border-t border-stroke-subtle dark:border-white/20 pt-4 mt-4`},Ut={class:`relative space-y-3`},Wt={class:`flex gap-3`},Gt={class:`flex-1 relative`},Kt=[`onKeydown`],qt=[`disabled`],Jt={key:1,class:`fixed inset-0 bg-black/70 backdrop-blur-md flex items-center justify-center z-[60] p-4`},Yt={class:`bg-white dark:bg-surface-elevated backdrop-blur-xl border border-stroke-subtle dark:border-white/10 rounded-[15px] p-6 max-w-3xl w-full max-h-[80vh] flex flex-col`},Xt={class:`flex items-center justify-between mb-4 pb-4 border-b border-stroke-subtle dark:border-white/10`},Zt={class:`text-content-secondary dark:text-content-primary/70 text-sm mt-1`},Qt={class:`text-primary`},b={class:`flex-1 overflow-y-auto space-y-3`},$t={key:0,class:`text-center py-12`},en={class:`space-y-2`},tn={class:`flex items-center justify-between`},nn={class:`flex items-center gap-2`},rn={class:`text-content-primary dark:text-content-primary font-semibold`},an={class:`flex items-center gap-2`},on={class:`text-content-secondary dark:text-content-muted text-xs`},sn=[`onClick`],cn={class:`space-y-1 text-xs`},ln={class:`flex items-center gap-2`},un={class:`text-primary font-mono bg-primary/10 px-2 py-0.5 rounded`},dn={class:`flex items-center gap-2`},fn={class:`text-primary font-mono bg-primary/10 px-2 py-0.5 rounded text-[10px] break-all`},pn={class:`flex items-center justify-between text-xs text-content-secondary dark:text-content-muted`},mn={class:`flex items-center gap-4`},hn={key:0},gn={key:1},_n={key:0},x=i({name:`RoomServersView`,__name:`RoomServers`,setup(i){let x=m(!1),S=m(null),C=m(null),w=m(!1),T=m(!1),E=m(null),D=m(!1),O=m(!1),k=m(new Set),A=m(!1),j=m(``),M=m(!1),N=m({message:``,variant:`success`}),P=m(!1),F=m(``),I=m(``),L=m([]),R=m(!1),z=m(null),B=m(``),V=m(ie(`roomServers_messagesLimit`,50)),H=m(0),U=m(!0);ee(V,e=>re(`roomServers_messagesLimit`,e));let W=m([]),G=m(!1),K=m({name:``,identity_key:``,type:`room_server`,settings:{node_name:``,latitude:0,longitude:0,admin_password:``,guest_password:``}});t(async()=>{await q()});async function q(){x.value=!0,S.value=null;try{let e=await h.getIdentities();e.success?C.value=e.data:S.value=e.error||`Failed to load identities`}catch(e){S.value=e instanceof Error?e.message:`Failed to load identities`}finally{x.value=!1}}async function vn(){try{let e=await h.createIdentity(K.value);e.success?(w.value=!1,Y(),await q(),J(e.message||`Identity created successfully!`,`success`)):J(`Failed to create identity: ${e.error}`,`error`)}catch(e){J(`Error creating identity: ${e}`,`error`)}}async function yn(){try{let e=await h.updateIdentity(E.value);e.success?(T.value=!1,E.value=null,await q(),J(e.message||`Identity updated successfully!`,`success`)):J(`Failed to update identity: ${e.error}`,`error`)}catch(e){J(`Error updating identity: ${e}`,`error`)}}function bn(e){j.value=e,A.value=!0}async function xn(){let e=j.value;A.value=!1;try{let t=await h.deleteIdentity(e);t.success?(await q(),J(t.message||`Identity deleted successfully!`,`success`)):J(`Failed to delete identity: ${t.error}`,`error`)}catch(e){J(`Error deleting identity: ${e}`,`error`)}finally{j.value=``}}function J(e,t){N.value={message:e,variant:t},M.value=!0}async function Sn(e){try{let t=await h.sendRoomServerAdvert(e);t.success?J(t.message||`Advert sent for '${e}'!`,`success`):J(`Failed to send advert: ${t.error}`,`error`)}catch(e){J(`Error sending advert: ${e}`,`error`)}}function Cn(e){E.value=JSON.parse(JSON.stringify(e)),E.value.settings||(E.value.settings={}),E.value.settings.admin_password||(E.value.settings.admin_password=``),E.value.settings.guest_password||(E.value.settings.guest_password=``),O.value=!1,T.value=!0}function Y(){K.value={name:``,identity_key:``,type:`room_server`,settings:{node_name:``,latitude:0,longitude:0,admin_password:``,guest_password:``}},D.value=!1}function X(){w.value=!1,T.value=!1,E.value=null,D.value=!1,O.value=!1,Y()}function wn(e){k.value.has(e)?k.value.delete(e):k.value.add(e)}async function Tn(e){F.value=e,P.value=!0,H.value=0,U.value=!0,I.value=C.value?.configured.find(t=>t.name===e)?.hash||``,await Z(),await Q(!0)}async function Z(){try{let e=await h.getACLClients({identity_hash:I.value,identity_name:F.value});e.success&&e.data&&(W.value=e.data.clients||[])}catch(e){console.error(`Failed to fetch ACL clients:`,e)}}async function Q(e=!1){e&&(H.value=0,L.value=[]),R.value=!0,z.value=null;try{let t=await h.getRoomMessages({room_name:F.value,limit:V.value,offset:H.value});if(t.success&&t.data){let n=t.data.messages||[];e?L.value=n:L.value=[...L.value,...n],U.value=n.length===V.value}else z.value=t.error||`Failed to load messages`}catch(e){z.value=e instanceof Error?e.message:`Failed to load messages`}finally{R.value=!1}}async function En(){H.value+=V.value,await Q(!1)}async function $(){if(B.value.trim())try{let e=await h.postRoomMessage({room_name:F.value,message:B.value,author_pubkey:`server`});e.success?(B.value=``,await Q(!0)):J(`Failed to send message: ${e.error}`,`error`)}catch(e){J(`Error sending message: ${e}`,`error`)}}async function Dn(e){if(confirm(`Are you sure you want to delete this message?`))try{let t=await h.deleteRoomMessage({room_name:F.value,message_id:e});t.success?(await Q(!0),J(`Message deleted successfully`,`success`)):J(`Failed to delete message: ${t.error}`,`error`)}catch(e){J(`Error deleting message: ${e}`,`error`)}}function On(){P.value=!1,F.value=``,I.value=``,L.value=[],B.value=``,z.value=null,W.value=[]}function kn(e){return e?new Date(e*1e3).toLocaleString():`Unknown`}async function An(e,t){if(confirm(`Are you sure you want to remove this client from the ACL?`))try{let n=await h.removeACLClient({public_key:e,identity_hash:t});n.success?(await Z(),J(`Client removed successfully`,`success`)):J(`Failed to remove client: ${n.error}`,`error`)}catch(e){J(`Error removing client: ${e}`,`error`)}}return(t,i)=>(p(),f(u,null,[d(`div`,ae,[d(`div`,oe,[i[26]||=d(`div`,{class:`absolute inset-0 bg-gradient-to-br from-primary/20 via-secondary/10 to-accent-purple/20 opacity-50`},null,-1),i[27]||=d(`div`,{class:`absolute inset-0 bg-gradient-to-tl from-accent-green/10 via-transparent to-primary/10 animate-pulse`},null,-1),d(`div`,se,[i[25]||=r(`Manage room server identities and messages
No messages yet
Be the first to start the conversation
Manage room server identities and messages
No messages yet
Be the first to start the conversation
Welcome to your pyMC Repeater! Let's get you set up in just a few steps.
You'll configure:
Welcome to your pyMC Repeater! Let's get you set up in just a few steps.
You'll configure:
Packet Rate (RX/TX PER HOUR)
Packet Rate (RX/TX PER HOUR)
In Progress
In Progress