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
7b1e6906
Commit
7b1e6906
authored
Nov 15, 2014
by
Johannes Stelzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Less flickering on overview refresh
parent
47e108bb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
16 deletions
+33
-16
refresh.gif
...-boot-admin-server/src/main/webapp/public/img/refresh.gif
+0
-0
index.html
spring-boot-admin-server/src/main/webapp/public/index.html
+1
-1
controllers.js
...src/main/webapp/public/scripts/controllers/controllers.js
+22
-12
main.css
...-boot-admin-server/src/main/webapp/public/styles/main.css
+7
-0
overview.html
...t-admin-server/src/main/webapp/public/views/overview.html
+3
-3
No files found.
spring-boot-admin-server/src/main/webapp/public/img/refresh.gif
0 → 100644
View file @
7b1e6906
1.81 KB
spring-boot-admin-server/src/main/webapp/public/index.html
View file @
7b1e6906
...
...
@@ -3,7 +3,7 @@
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title></title>
<title>
Spring Boot Admin
</title>
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width"
>
<link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"/img/favicon.png"
/>
...
...
spring-boot-admin-server/src/main/webapp/public/scripts/controllers/controllers.js
View file @
7b1e6906
...
...
@@ -16,25 +16,36 @@
'use strict'
;
angular
.
module
(
'springBootAdmin'
)
.
controller
(
'overviewCtrl'
,
[
'$scope'
,
'$location'
,
'$interval'
,
'Applications'
,
'ApplicationOverview'
,
'Application'
,
function
(
$scope
,
$location
,
$interval
,
Applications
,
ApplicationOverview
,
Application
)
{
$scope
.
loadData
=
function
()
{
.
controller
(
'overviewCtrl'
,
[
'$scope'
,
'$location'
,
'$interval'
,
'$q'
,
'Applications'
,
'ApplicationOverview'
,
'Application'
,
function
(
$scope
,
$location
,
$interval
,
$q
,
Applications
,
ApplicationOverview
,
Application
)
{
$scope
.
loadData
=
function
()
{
Applications
.
query
(
function
(
applications
)
{
for
(
var
i
=
0
;
i
<
applications
.
length
;
i
++
)
{
var
app
=
applications
[
i
];
ApplicationOverview
.
getInfo
(
app
);
ApplicationOverview
.
getHealth
(
app
);
ApplicationOverview
.
getLogfile
(
app
);
(
function
(
app
)
{
//find application in known applications and copy state --> less flickering
for
(
var
j
=
0
;
$scope
.
applications
!=
null
&&
j
<
$scope
.
applications
.
length
;
j
++
)
{
if
(
app
.
id
===
$scope
.
applications
[
j
].
id
)
{
app
.
info
=
$scope
.
applications
[
j
].
info
;
app
.
version
=
$scope
.
applications
[
j
].
version
;
app
.
status
=
$scope
.
applications
[
j
].
status
;
app
.
providesLogfile
=
$scope
.
applications
[
j
].
providesLogfile
;
break
;
}
}
app
.
refreshing
=
true
;
$q
.
all
(
ApplicationOverview
.
getInfo
(
app
),
ApplicationOverview
.
getHealth
(
app
),
ApplicationOverview
.
getLogfile
(
app
)).
finally
(
function
()
{
app
.
refreshing
=
false
;
});
})(
applications
[
i
]);
}
$scope
.
applications
=
applications
;
});
}
$scope
.
loadData
();
$scope
.
refresh
=
function
(
application
)
{
ApplicationOverview
.
refresh
(
application
);
};
$scope
.
remove
=
function
(
application
)
{
Application
.
remove
({
id
:
application
.
id
},
function
()
{
var
index
=
$scope
.
applications
.
indexOf
(
application
);
...
...
@@ -43,7 +54,6 @@ angular.module('springBootAdmin')
}
});
}
// reload site every 30 seconds
var
task
=
$interval
(
function
()
{
...
...
spring-boot-admin-server/src/main/webapp/public/styles/main.css
View file @
7b1e6906
...
...
@@ -174,6 +174,13 @@ span.status-UNKNOWN {
color
:
#FF8800
;
}
span
.refresh
{
display
:
block
;
width
:
16px
;
height
:
16px
;
background
:
url("../img/refresh.gif")
no-repeat
;
}
/** Headings and Tabs in Detail-View **/
.accordion-heading
,
.accordion-heading
>
a
,
...
...
spring-boot-admin-server/src/main/webapp/public/views/overview.html
View file @
7b1e6906
...
...
@@ -7,8 +7,7 @@
<th>
Application / URL
</th>
<th>
Version
</th>
<th>
Info
</th>
<th>
Status
</th>
<th></th>
<th
colspan=
"2"
>
Status
</th>
</tr>
</thead>
<tbody>
...
...
@@ -16,7 +15,8 @@
<td>
{{ application.name }}
<br/><span
class=
"muted"
>
{{ application.url }}
</span></td>
<td>
{{ application.version }}
</td>
<td><span
ng-repeat=
"(name, value) in application.info track by name"
>
{{name}}: {{value}}
<br></span></td>
<td><span
class=
"status-{{application.status}}"
>
{{ application.status }}
</span></td>
<td><span
class=
"status-{{application.status}}"
>
{{ application.status }}
</span>
<span
ng-show=
"application.refreshing"
class=
"refresh"
></span></td>
<td>
<div
class=
"btn-group pull-right"
ng-hide=
"application.status == null || application.status == 'OFFLINE'"
>
<a
ng-disabled=
"!application.providesLogfile"
target=
"_self"
class=
"btn btn-success"
ng-href=
"{{application.providesLogfile ? application.url + '/logfile' :''}}"
><i
class=
"icon-file icon-white"
></i>
Log
</a>
...
...
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