diff options
| author | bobzel <zzzman@gmail.com> | 2023-04-17 15:07:17 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-04-17 15:07:17 -0400 |
| commit | 62f80ef79e6e592602ad8e4d4cc81ce317f1260c (patch) | |
| tree | 5c2b3f6125573276957375e2ce9054cbbe3f4e87 /views/stats.pug | |
| parent | e45cf590cf20d3af2bc07e4af78d69470ebfe665 (diff) | |
| parent | 8619a61dd33cdbfa1b8fe3e762306bbf52dbcbad (diff) | |
Merge branch 'master' into pres-trail-sophie
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..16c28087e --- /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=`http://localhost:4321/socket.io/socket.io.js`) + script + include ./resources/statsviewcontroller.js + script. + var socket = io.connect("http://localhost: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 |
