From b712f906bc8f94888b660d4326ceeb7b0a424a02 Mon Sep 17 00:00:00 2001 From: Claudius Weinberger Date: Sat, 1 Mar 2014 22:04:48 +0100 Subject: [PATCH] some UI changes --- .../js/templates/showCluster.ejs | 13 +++++--- .../js/views/showClusterView.js | 6 ++-- js/apps/system/aardvark/frontend/img/cpu.svg | 1 + js/apps/system/aardvark/frontend/img/ram.svg | 1 + .../system/aardvark/frontend/img/requests.svg | 1 + .../js/templates/statisticBarView.ejs | 15 ++++----- .../frontend/js/views/dashboardView.js | 31 +++++++++++++----- .../frontend/js/views/statisticBarView.js | 29 +++++++++++++++++ .../frontend/scss/_dashboardHttpGroup.scss | 10 +++--- .../aardvark/frontend/scss/_statMenu.scss | 0 .../aardvark/frontend/scss/_statisticBar.scss | 31 ++++++++++++++++++ .../aardvark/frontend/scss/generated.css | 32 ++++++++++++++++--- .../system/aardvark/frontend/scss/style.scss | 2 +- 13 files changed, 139 insertions(+), 33 deletions(-) create mode 100644 js/apps/system/aardvark/frontend/img/cpu.svg create mode 100644 js/apps/system/aardvark/frontend/img/ram.svg create mode 100644 js/apps/system/aardvark/frontend/img/requests.svg delete mode 100644 js/apps/system/aardvark/frontend/scss/_statMenu.scss create mode 100644 js/apps/system/aardvark/frontend/scss/_statisticBar.scss diff --git a/js/apps/system/aardvark/clusterFrontend/js/templates/showCluster.ejs b/js/apps/system/aardvark/clusterFrontend/js/templates/showCluster.ejs index 8d5cedbd89..0a3064ef62 100644 --- a/js/apps/system/aardvark/clusterFrontend/js/templates/showCluster.ejs +++ b/js/apps/system/aardvark/clusterFrontend/js/templates/showCluster.ejs @@ -93,9 +93,14 @@ Cluster Statistics
-
-
Virtual Memory Size
-
-
+
+
+
Virtual Memory Size
+
+
+
+
+
+
diff --git a/js/apps/system/aardvark/clusterFrontend/js/views/showClusterView.js b/js/apps/system/aardvark/clusterFrontend/js/views/showClusterView.js index 582f7d5918..01526465d2 100644 --- a/js/apps/system/aardvark/clusterFrontend/js/views/showClusterView.js +++ b/js/apps/system/aardvark/clusterFrontend/js/views/showClusterView.js @@ -166,7 +166,7 @@ var pieData = []; var self = this; this.data.forEach(function(m) { - pieData.push({key: m.get("name"), value :m.get("system").virtualSize, + pieData.push({key: m.get("name"), value :m.get("system").residentSize, time: self.serverTime}); }); return pieData; @@ -273,8 +273,8 @@ }, renderPieChart: function(dataset) { - var w = 500; - var h = 250; + var w = 150; + var h = 150; var radius = Math.min(w, h) / 2; //change 2 to 1.4. It's hilarious. var color = d3.scale.category20(); diff --git a/js/apps/system/aardvark/frontend/img/cpu.svg b/js/apps/system/aardvark/frontend/img/cpu.svg new file mode 100644 index 0000000000..480871b985 --- /dev/null +++ b/js/apps/system/aardvark/frontend/img/cpu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/js/apps/system/aardvark/frontend/img/ram.svg b/js/apps/system/aardvark/frontend/img/ram.svg new file mode 100644 index 0000000000..157035646e --- /dev/null +++ b/js/apps/system/aardvark/frontend/img/ram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/js/apps/system/aardvark/frontend/img/requests.svg b/js/apps/system/aardvark/frontend/img/requests.svg new file mode 100644 index 0000000000..7e2ac88485 --- /dev/null +++ b/js/apps/system/aardvark/frontend/img/requests.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/js/apps/system/aardvark/frontend/js/templates/statisticBarView.ejs b/js/apps/system/aardvark/frontend/js/templates/statisticBarView.ejs index a68c5921e2..ba7e9f5ba7 100644 --- a/js/apps/system/aardvark/frontend/js/templates/statisticBarView.ejs +++ b/js/apps/system/aardvark/frontend/js/templates/statisticBarView.ejs @@ -1,16 +1,15 @@