Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
efa71e4c
Commit
efa71e4c
authored
Jul 04, 2014
by
Thomas Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show properties
parent
7e16e193
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
4 deletions
+39
-4
app.js
src/main/webapp/public/scripts/app.js
+5
-0
controllers.js
src/main/webapp/public/scripts/controllers/controllers.js
+5
-0
services.js
src/main/webapp/public/scripts/services/services.js
+13
-1
details.html
src/main/webapp/public/views/apps/details.html
+1
-0
env.html
src/main/webapp/public/views/apps/details/env.html
+1
-3
props.html
src/main/webapp/public/views/apps/details/props.html
+14
-0
No files found.
src/main/webapp/public/scripts/app.js
View file @
efa71e4c
...
...
@@ -45,6 +45,11 @@ angular.module('springBootAdmin', [
url
:
'/env'
,
templateUrl
:
'views/apps/details/env.html'
,
controller
:
'envCtrl'
})
.
state
(
'apps.details.props'
,
{
url
:
'/props'
,
templateUrl
:
'views/apps/details/props.html'
,
controller
:
'propsCtrl'
});
})
.
run
(
function
(
$rootScope
,
$state
,
$stateParams
,
$log
)
{
...
...
src/main/webapp/public/scripts/controllers/controllers.js
View file @
efa71e4c
...
...
@@ -47,4 +47,9 @@ angular.module('springBootAdmin')
$scope
.
application
=
Application
.
query
({
id
:
$stateParams
.
id
},
function
(
application
)
{
ApplicationDetails
.
getEnv
(
application
);
});
})
.
controller
(
'propsCtrl'
,
function
(
$scope
,
$stateParams
,
Application
,
ApplicationDetails
)
{
$scope
.
application
=
Application
.
query
({
id
:
$stateParams
.
id
},
function
(
application
)
{
ApplicationDetails
.
getProps
(
application
);
});
});
src/main/webapp/public/scripts/services/services.js
View file @
efa71e4c
...
...
@@ -56,7 +56,19 @@ angular.module('springBootAdmin.services', ['ngResource'])
app
.
env
=
response
;
app
.
env
.
systemProp
=
angular
.
toJson
(
app
.
env
[
'systemProperties'
],
true
);
app
.
env
.
systemEnv
=
angular
.
toJson
(
app
.
env
[
'systemEnvironment'
],
true
);
//app.env.config = response['applicationConfig: [classpath:/application.properties]'];
});
}
this
.
getProps
=
function
(
app
)
{
return
$http
.
get
(
app
.
url
+
'/env'
).
success
(
function
(
response
)
{
app
.
props
=
[];
for
(
var
attr
in
response
)
{
if
(
attr
.
indexOf
(
'['
)
!=
-
1
&&
attr
.
indexOf
(
'.properties]'
)
!=
-
1
)
{
var
prop
=
new
Object
();
prop
.
key
=
attr
;
prop
.
value
=
angular
.
toJson
(
response
[
attr
],
true
);
app
.
props
.
push
(
prop
);
}
}
});
}
}]);
src/main/webapp/public/views/apps/details.html
View file @
efa71e4c
...
...
@@ -11,6 +11,7 @@
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.infos({id: application.id})"
>
Infos
</a></li>
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.metrics({id: application.id})"
>
Metrics
</a></li>
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.env({id: application.id})"
>
Environment
</a></li>
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.props({id: application.id})"
>
Properties
</a></li>
</ul>
<div
class=
"tab-content"
>
<div
ui-view
></div>
...
...
src/main/webapp/public/views/apps/details/env.html
View file @
efa71e4c
...
...
@@ -4,15 +4,13 @@
<th>
Profiles
</th>
<th
width=
"400"
>
System Properties
</th>
<th
width=
"400"
>
System Environment
</th>
<!-- <th width="250">Application Config</th> -->
</tr>
</thead>
<tbody>
<tr>
<td>
{{ application.env
['profiles']
}}
</td>
<td>
{{ application.env
.profiles
}}
</td>
<td
style=
"word-break: break-all; "
>
{{ application.env.systemProp }}
</td>
<td
style=
"word-break: break-all; "
>
{{ application.env.systemEnv }}
</td>
<!-- <td style="word-break: break-all; ">{{ application.env.config }}</td> -->
</tr>
</tbody>
</table>
src/main/webapp/public/views/apps/details/props.html
0 → 100644
View file @
efa71e4c
<table
class=
"table table-striped"
>
<thead>
<tr>
<th>
Resource
</th>
<th>
Properties
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"prop in application.props"
>
<td>
{{ prop.key }}
</td>
<td
style=
"word-break: normal; "
>
{{ prop.value }}
</td>
</tr>
</tbody>
</table>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment