From b5bb288ac0a8c4c503f2b52f6b1945e95eac39a6 Mon Sep 17 00:00:00 2001 From: cat Date: Tue, 15 Jan 2013 19:40:26 +0100 Subject: [PATCH] LSP: added server stats page and version update check --- lsp/functions.js | 6 +- lsp/main.js | 259 ++++++++++++++++++++++++++++++++--------------- lsp/server.html | 1 + lsp/style.css | 18 +++- 4 files changed, 200 insertions(+), 84 deletions(-) diff --git a/lsp/functions.js b/lsp/functions.js index 924cb3b5..9f3cd4cf 100644 --- a/lsp/functions.js +++ b/lsp/functions.js @@ -339,7 +339,7 @@ delete data.statistics; // same goes for the stats //IE breaks if the console isn't opened, so keep commented when committing - //console.log('[763] SEND', data); + console.log('[763] SEND', data); $.ajax( { @@ -363,7 +363,7 @@ $('#shield').remove(); // remove loading display //IE breaks if the console isn't opened, so keep commented when committing - //console.log('[785] RECV', d); + console.log('[785] RECV', d); if(d && d['authorize'] && d['authorize']['challenge']) { @@ -387,7 +387,7 @@ "version": "" }, "streams": {}, - "capabilities": {}, + "capabilities": {}, "log": {}, "statistics": {} }, d); diff --git a/lsp/main.js b/lsp/main.js index b70d6ff2..8eda23ec 100644 --- a/lsp/main.js +++ b/lsp/main.js @@ -79,6 +79,8 @@ // what kind of streams should be displayed? Format is [recorded, live]; var streamsdisplay = [true, true]; + // used on the overview page to decide then to ask the controller for an update check + var updatelastchecked; /** * Display a certain page. It contains a (giant) switch-statement, that builds a page depending on the tab requested @@ -172,82 +174,117 @@ case 'overview': - $('#page').append( - $('
').attr('id', 'editserver').append( - $('