From 336b6e44e63b864208afa0af4bf77315c96e892f Mon Sep 17 00:00:00 2001 From: Joshi83 Date: Mon, 15 Sep 2014 16:07:11 +0200 Subject: [PATCH 1/4] Update env.html --- .../webapp/public/views/apps/details/env.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/public/views/apps/details/env.html b/src/main/webapp/public/views/apps/details/env.html index 71b07fdce7d..a9c723e69f1 100644 --- a/src/main/webapp/public/views/apps/details/env.html +++ b/src/main/webapp/public/views/apps/details/env.html @@ -1,16 +1,21 @@ - - - + + + - - - - + + + + + + + + +
ProfilesSystem PropertiesSystem EnvironmentEnvironmentKeyValue
{{ application.env.profiles }}{{ application.env.systemProp }}{{ application.env.systemEnv }}
{{envkey}}
 {{propkey}}{{propvalue}}
From d212d60e7d481f686ed26f7ffdf3bfc7b5810041 Mon Sep 17 00:00:00 2001 From: Joshi83 Date: Mon, 15 Sep 2014 16:07:36 +0200 Subject: [PATCH 2/4] Nicer rendering / no Json in View --- .../webapp/public/views/apps/details/infos.html | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/public/views/apps/details/infos.html b/src/main/webapp/public/views/apps/details/infos.html index c4c8dcb104c..e55d907b8d4 100644 --- a/src/main/webapp/public/views/apps/details/infos.html +++ b/src/main/webapp/public/views/apps/details/infos.html @@ -1,14 +1,21 @@ - + - - + + + + + + + + + + +
Info JSONInfo JSON
- {{ application.info }} -
{{infokey}}
 {{propkey}}{{propvalue}}
From ad43d9c6c1c9c5e23aa288b0aa13e21e2c6a0eca Mon Sep 17 00:00:00 2001 From: Joshi83 Date: Mon, 15 Sep 2014 16:07:55 +0200 Subject: [PATCH 3/4] Nicer rendering / no Json in View --- .../webapp/public/views/apps/details/props.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/public/views/apps/details/props.html b/src/main/webapp/public/views/apps/details/props.html index 635f693600f..13a03ad3566 100644 --- a/src/main/webapp/public/views/apps/details/props.html +++ b/src/main/webapp/public/views/apps/details/props.html @@ -2,13 +2,19 @@ Resource - Properties + Property-Key + Property-Value - - {{ prop.key }} - {{ prop.value }} + + {{ prop.key }} + +   + {{propkey}} + {{propvalue}} + + From 5e8e44185f93229f7e2fbda25749694062fd1c70 Mon Sep 17 00:00:00 2001 From: Joshi83 Date: Mon, 15 Sep 2014 16:09:42 +0200 Subject: [PATCH 4/4] Don't Convert to JSON-String --- src/main/webapp/public/scripts/services/services.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/public/scripts/services/services.js b/src/main/webapp/public/scripts/services/services.js index 3b787bb33d1..79aa80bba92 100644 --- a/src/main/webapp/public/scripts/services/services.js +++ b/src/main/webapp/public/scripts/services/services.js @@ -71,7 +71,7 @@ angular.module('springBootAdmin.services', ['ngResource']) .service('ApplicationDetails', ['$http', function($http) { this.getInfo = function(app) { return $http.get(app.url + '/info').success(function(response) { - app.info = angular.toJson(response, true); + app.info = response; }); } this.getMetrics = function(app) { @@ -82,8 +82,6 @@ angular.module('springBootAdmin.services', ['ngResource']) this.getEnv = function(app) { return $http.get(app.url + '/env').success(function(response) { app.env = response; - app.env.systemProp = angular.toJson(app.env['systemProperties'], true); - app.env.systemEnv = angular.toJson(app.env['systemEnvironment'], true); }); } this.getProps = function(app) { @@ -93,7 +91,7 @@ angular.module('springBootAdmin.services', ['ngResource']) if (attr.indexOf('[') != -1 && attr.indexOf('.properties]') != -1) { var prop = new Object(); prop.key = attr; - prop.value = angular.toJson(response[attr], true); + prop.value = response[attr]; app.props.push(prop); } }