mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-31 00:47:14 +00:00
feat(dashboard): Network page with a live traffic flow diagram
Next to Diagnostics (health_view): game and web clients, auth, chat, worlds per zone (expandable), other reporting servers, master, the dashboard and the UGC server, with a lane each way per link sized by bytes/s, animated by packets/s and coloured by load against its own 5 minute peak. Estimated links (servers without a split) are dashed. Clicking a box shows its links, busiest message types and a sparkline, with a link to Diagnostics (which now takes ?server=). A connections table lists each remote address; single clients can be drawn too. Narrow screens get a list. Drawing stops while the tab is hidden. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
var COLORS = ['var(--tr-1)', 'var(--tr-2)', 'var(--tr-3)', 'var(--tr-4)', 'var(--tr-5)', 'var(--tr-6)'];
|
||||
var OTHER = 'var(--tr-other)';
|
||||
var range = (document.querySelector('input[name="trRange"]:checked') || {}).value || '5m';
|
||||
var server = '';
|
||||
var server = new URLSearchParams(location.search).get('server') || ''; // the Network page links here with ?server=<key>
|
||||
var direction = 'in';
|
||||
var data = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user