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
09a52594
Commit
09a52594
authored
Jul 04, 2014
by
Thomas Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logfile optional
parent
651f2a5f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
pom.xml
pom.xml
+2
-2
controllers.js
src/main/webapp/public/scripts/controllers/controllers.js
+1
-4
services.js
src/main/webapp/public/scripts/services/services.js
+10
-1
overview.html
src/main/webapp/public/views/apps/overview.html
+1
-1
No files found.
pom.xml
View file @
09a52594
...
...
@@ -3,7 +3,7 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
de.codecentric
</groupId>
<artifactId>
spring-boot-admin
</artifactId>
<version>
1.0.0
-
RC1
</version>
<version>
1.0.0
.
RC1
</version>
<properties>
<spring-boot.version>
1.1.0.RELEASE
</spring-boot.version>
<bootstrap.version>
2.3.2
</bootstrap.version>
...
...
@@ -15,7 +15,7 @@
<dependency>
<groupId>
de.codecentric
</groupId>
<artifactId>
spring-boot-starter-admin-client
</artifactId>
<version>
1.0.0.RC
3
</version>
<version>
1.0.0.RC
4
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
src/main/webapp/public/scripts/controllers/controllers.js
View file @
09a52594
...
...
@@ -7,6 +7,7 @@ angular.module('springBootAdmin')
var
app
=
applications
[
i
];
ApplicationOverview
.
getVersion
(
app
);
ApplicationOverview
.
getHealth
(
app
);
ApplicationOverview
.
getLogfile
(
app
);
}
});
// callback for ng-click 'showDetails':
...
...
@@ -19,10 +20,6 @@ angular.module('springBootAdmin')
ApplicationOverview
.
refresh
(
application
);
});
};
// url for ng-href 'logfile':
$scope
.
logfile
=
function
(
url
)
{
return
url
+
'/logfile'
;
};
})
.
controller
(
'navCtrl'
,
function
(
$scope
,
$location
)
{
$scope
.
navClass
=
function
(
page
)
{
...
...
src/main/webapp/public/scripts/services/services.js
View file @
09a52594
...
...
@@ -36,9 +36,18 @@ angular.module('springBootAdmin.services', ['ngResource'])
app
.
online
=
false
;
});
}
this
.
getLogfile
=
function
(
app
)
{
return
$http
.
get
(
app
.
url
+
'/logfile'
).
success
(
function
(
response
)
{
app
.
providesLogfile
=
true
;
app
.
urlLogfile
=
app
.
url
+
'/logfile'
;
}).
error
(
function
()
{
app
.
providesLogfile
=
false
;
app
.
urlLogfile
=
null
;
});
}
this
.
refresh
=
function
(
app
)
{
return
$http
.
post
(
app
.
url
+
'/refresh'
);
}
;
}
}])
.
service
(
'ApplicationDetails'
,
[
'$http'
,
function
(
$http
)
{
this
.
getInfo
=
function
(
app
)
{
...
...
src/main/webapp/public/views/apps/overview.html
View file @
09a52594
...
...
@@ -26,8 +26,8 @@
</td>
<td>
<span
ng-show=
"application.online"
style=
"float:right"
>
<a
ng-show=
"application.providesLogfile"
target=
"_self"
ng-href=
"application.urlLogfile"
><button
class=
"btn btn-success"
>
Logfile
</button></a>
<button
ng-click=
"showDetails(application.id)"
class=
"btn btn-success"
>
Details
</button>
<a
target=
"_self"
ng-href=
"{{logfile(application.url)}}"
><button
class=
"btn btn-success"
>
Logfile
</button></a>
<!-- <button ng-click="refresh(application.id)" class="btn btn-success">Refresh</button> -->
</span>
</td>
...
...
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