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
accb52d1
Commit
accb52d1
authored
Nov 16, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show status detials in journal and application list
When hovering over the status a summary of the health indicators pops up in application list and journal. closes #334
parent
68173d87
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
4 deletions
+64
-4
statusInfo.js
...n-server-ui/modules/applications/components/statusInfo.js
+43
-0
statusInfo.tpl.html
...er-ui/modules/applications/components/statusInfo.tpl.html
+16
-0
module.js
spring-boot-admin-server-ui/modules/applications/module.js
+1
-0
applications-list.html
...rver-ui/modules/applications/views/applications-list.html
+3
-3
events.html
spring-boot-admin-server-ui/modules/events/events.html
+1
-1
No files found.
spring-boot-admin-server-ui/modules/applications/components/statusInfo.js
0 → 100644
View file @
accb52d1
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict'
;
var
angular
=
require
(
'angular'
);
module
.
exports
=
{
bindings
:
{
statusInfo
:
'<statusInfo'
},
controller
:
function
()
{
'ngInject'
;
var
ctrl
=
this
;
ctrl
.
showPopover
=
false
;
var
isDetail
=
function
(
detail
)
{
return
detail
!==
null
&&
!
Array
.
isArray
(
detail
)
&&
typeof
detail
===
'object'
&&
'status'
in
detail
;
};
ctrl
.
$onChanges
=
function
()
{
ctrl
.
details
=
[];
angular
.
forEach
(
ctrl
.
statusInfo
.
details
,
function
(
value
,
key
)
{
if
(
isDetail
(
value
))
{
ctrl
.
details
.
push
({
name
:
key
,
status
:
value
.
status
});
}
});
};
},
template
:
require
(
'./statusInfo.tpl.html'
)
};
spring-boot-admin-server-ui/modules/applications/components/statusInfo.tpl.html
0 → 100644
View file @
accb52d1
<span
class=
"status-{{$ctrl.statusInfo.status}}"
ng-bind=
"$ctrl.statusInfo.status"
ng-mouseenter=
"$ctrl.showPopover=true"
ng-mouseleave=
"$ctrl.showPopover=false"
></span>
<sba-popover
popover-toggle=
"$ctrl.showPopover"
>
<table
class=
"table cable-condensed"
>
<tr
ng-repeat=
"detail in $ctrl.details | orderBy:'name'"
>
<td
style=
"text-transform: capitalize;"
ng-bind=
"detail.name"
></td>
<td
ng-bind=
"detail.status "
class=
"status-{{detail.status}}"
></td>
</tr>
</table>
<div
style=
"max-width: 400px;"
class=
"alert alert-error"
ng-if=
"$ctrl.statusInfo.details.message"
>
<b
style=
"word-break: break-all;"
ng-if=
"$ctrl.statusInfo.details.exception"
ng-bind=
"$ctrl.statusInfo.details.exception + ':'"
></b><br>
<span
ng-bind=
"$ctrl.statusInfo.details.message"
></span>
</div>
<small
class=
"pull-right muted"
ng-bind=
"$ctrl.statusInfo.timestamp | date:'dd.MM.yyyy HH:mm:ss'"
></small>
</sba-popover>
\ No newline at end of file
spring-boot-admin-server-ui/modules/applications/module.js
View file @
accb52d1
...
...
@@ -38,6 +38,7 @@ module.component('sbaAccordionGroup', require('./components/accordionGroup.js'))
module
.
component
(
'sbaNotificationSettings'
,
require
(
'./components/notificationSettings.js'
));
module
.
component
(
'sbaPopover'
,
require
(
'./components/popover.js'
));
module
.
component
(
'sbaLimitedText'
,
require
(
'./components/limitedText.js'
));
module
.
component
(
'sbaStatusInfo'
,
require
(
'./components/statusInfo.js'
));
require
(
'./css/module.css'
);
...
...
spring-boot-admin-server-ui/modules/applications/views/applications-list.html
View file @
accb52d1
...
...
@@ -24,7 +24,7 @@
</thead>
<tbody>
<tr
ng-repeat-start=
"group in applicationGroups.groups|orderBy:order.column:order.descending|orderBy:'status':false|filter:searchFilter track by group.name"
ng-init=
"group.collapsed = group.applications.length > 1 &&
!expandAll"
ng-show=
"group.collapsed"
>
ng-init=
"group.collapsed = group.applications.length > 1 &&
!expandAll"
ng-show=
"group.collapsed"
>
<td
class=
"group-column"
ng-click=
"group.collapsed = false"
><i
class=
"fa fa-plus"
></i></td>
<td
ng-bind=
"group.name"
></td>
<td><span
ng-bind=
"group.version"
></span></td>
...
...
@@ -43,8 +43,8 @@
<td
class=
"scroll"
>
<sba-limited-text
max-lines=
"3"
bind-html=
"application.info | yaml | linkify:60"
></sba-limited-text>
</td>
<td><span
class=
"status-{{application.statusInfo.status}}"
title=
"{{application.statusInfo.timestamp | date:'dd.MM.yyyy HH:mm:ss' }}"
ng-bind=
"application.statusInfo.status"
></span
>
<td>
<sba-status-info
status-info=
"application.statusInfo"
></sba-status-info
>
<span
ng-show=
"application.refreshing"
><i
class=
"fa fa-spinner fa-pulse fa-lg"
></i></span>
</td>
<td>
...
...
spring-boot-admin-server-ui/modules/events/events.html
View file @
accb52d1
...
...
@@ -22,7 +22,7 @@
<td>
{{ event.type }}
<br/>
<span
ng-if=
"event.type == 'STATUS_CHANGE'"
>
<span
class=
"status-{{event.from.status}}"
>
{{ event.from.status }}
</span>
-
>
<span
class=
"status-{{event.to.status}}"
>
{{ event.to.status }}
</span
>
<sba-status-info
status-info=
"event.from"
></sba-status-info>
-
>
<sba-status-info
status-info=
"event.to"
></sba-status-info
>
</span>
</td>
</tr>
...
...
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