From 3871437e571e17f12af2aa56982906a27a529401 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Thu, 17 Jan 2019 16:06:50 +0100 Subject: rework new_status-dnbd3.html with vuejs instead of jquery --- static/new_status-dnbd3.html | 666 ++++++++----------------------------------- 1 file changed, 124 insertions(+), 542 deletions(-) (limited to 'static/new_status-dnbd3.html') diff --git a/static/new_status-dnbd3.html b/static/new_status-dnbd3.html index eec291a..b4049bb 100644 --- a/static/new_status-dnbd3.html +++ b/static/new_status-dnbd3.html @@ -2,551 +2,133 @@ - - - - + -
+
+
+ + + + + + + + + + + + + +
Server IP:{{ server.address }}
Uptime:{{ formatSeconds(server.uptime) }}
Upload speed:{{ formatBytes(server.uploadSpeed) +'/s' }}
Download speed:{{ formatBytes(server.downloadSpeed) +'/s' }}
Total sent:{{ formatBytes(server.bytesSent) }}
Total received:{{ formatBytes(server.bytesReceived) }}
{{ client.address.split( ":" )[0] }}{{ formatBytes(client.uploadSpeed) + '/s' }}
- - - - + \ No newline at end of file + }, + created () { + const urlParams = new URLSearchParams(window.location.search) + this.timespan = parseInt(urlParams.get('timespan')) || 120 + this.updateData() + } +}) + + + + -- cgit v1.2.3-55-g7522