diff options
| author | bobzel <zzzman@gmail.com> | 2023-05-22 11:25:32 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-05-22 11:25:32 -0400 |
| commit | bed3309e1fda6597b2a8fea10ad82cd3a0402051 (patch) | |
| tree | fe599bbdc5fca2c221e1e0f7a60995b7cd39f870 /views/stats.pug | |
| parent | 887a4f7e0fc25fde87b20a5de2e7b0aee561cc78 (diff) | |
| parent | 3d26d5b2654841a9b92f3d66b28d1dc8e36cca6a (diff) | |
merged physics with master
Diffstat (limited to 'views/stats.pug')
| -rw-r--r-- | views/stats.pug | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/views/stats.pug b/views/stats.pug new file mode 100644 index 000000000..c1f961e9f --- /dev/null +++ b/views/stats.pug @@ -0,0 +1,30 @@ +extends ./layout + +//- stats.pug is the frontend for the stats page +block content + style + include ./stylesheets/authentication.css + include ./stylesheets/statsview.css + script(src=`https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.5.0/socket.io.js`) + script + include ./resources/statsviewcontroller.js + script. + var socket = io.connect(`http://${window.location.hostname}:4321`); + socket.on("connect", () => console.log("connected to socket")); + + socket.on("a2cf757f-abd7-537b-953e-ef2f4f798f7e", (data) => handleStatsUpdate(data)); + .outermost + .stats-container + h1 Dash Stats + + p(class="stats-content" id="connection-count") Current Connections: #{numConnections} + div(class="stats-content stats-server-status-container") + p Server Status: + div(id="stats-traffic-message" class="stats-server-status-item stats-server-status-" + serverTraffic) + p #{serverTrafficMessage} + div(class="stats-content stats-connected-users") + p Connected Users: + ul(id="connected-user-list") + + +
\ No newline at end of file |
