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
b539ae5a
Commit
b539ae5a
authored
Jun 18, 2014
by
Thomas Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
about
parent
60f9b29f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
12 deletions
+32
-12
index.html
src/main/webapp/public/index.html
+4
-4
app.js
src/main/webapp/public/scripts/app.js
+10
-4
controllers.js
src/main/webapp/public/scripts/controllers/controllers.js
+9
-3
services.js
src/main/webapp/public/scripts/services/services.js
+1
-1
about.html
src/main/webapp/public/views/about.html
+8
-0
No files found.
src/main/webapp/public/index.html
View file @
b539ae5a
...
...
@@ -11,7 +11,7 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/webjars/bootstrap/${bootstrap.version}/css/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/styles/main.css"
/>
</head>
<body
ng-app=
"
registry
"
>
<body
ng-app=
"
springBootAdmin
"
>
<script
type=
"text/javascript"
>
// Work around Google font rendering issues in webkit browsers on Windows 7
if
(
navigator
.
userAgent
.
indexOf
(
"NT 6.1"
)
!=
-
1
)
{
...
...
@@ -25,9 +25,9 @@
<div
class=
"spring-logo--container"
>
<a
class=
"spring-logo"
href=
"/"
><span></span></a>
</div>
<ul
class=
"nav pull-right"
>
<li
class=
"navbar-link"
ng-class=
"
{ active: $state.includes('home.apps') }"
><a
ui-sref=
"home.apps.tabs.definitions
"
>
Applications
</a></li>
<li
class=
"navbar-link"
ng-class=
"
{ active: $state.includes('home.about') }"
><a
ui-sref=
"home.
about"
>
About
</a></li>
<ul
class=
"nav pull-right"
ng-controller=
'navCtrl'
>
<li
class=
"navbar-link"
ng-class=
"
navClass('main')"
><a
href=
"/#/main
"
>
Applications
</a></li>
<li
class=
"navbar-link"
ng-class=
"
navClass('about')"
><a
href=
"/#/
about"
>
About
</a></li>
<li
class=
"navbar-link"
ng-if=
"authenticationEnabled"
class=
"dropdown"
><a
data-target=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
><span
class=
"glyphicon glyphicon-user"
></span><b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
>
...
...
src/main/webapp/public/scripts/app.js
View file @
b539ae5a
'use strict'
;
angular
.
module
(
'
registry
'
,
[
angular
.
module
(
'
springBootAdmin
'
,
[
'ngCookies'
,
'ngResource'
,
'ngSanitize'
,
'ngRoute'
,
'
registry
.services'
'
springBootAdmin
.services'
])
.
config
(
function
(
$routeProvider
)
{
$routeProvider
.
when
(
'/'
,
{
.
when
(
'/
main
'
,
{
templateUrl
:
'views/main.html'
,
controller
:
'MainCtrl'
controller
:
'mainCtrl'
})
.
when
(
'/about'
,
{
templateUrl
:
'views/about.html'
})
.
when
(
'/'
,
{
redirectTo
:
'/main'
})
.
otherwise
({
redirectTo
:
'/'
...
...
src/main/webapp/public/scripts/controllers/controllers.js
View file @
b539ae5a
'use strict'
;
angular
.
module
(
'registry'
)
.
controller
(
'MainCtrl'
,
function
(
$scope
,
Application
,
ApplicationInfo
,
$location
,
$http
)
{
angular
.
module
(
'springBootAdmin'
)
.
controller
(
'mainCtrl'
,
function
(
$scope
,
Application
,
ApplicationInfo
,
$location
,
$http
)
{
// Gets the service from /api/services
$scope
.
applications
=
Application
.
query
({},
function
(
applications
)
{
...
...
@@ -14,4 +13,10 @@ angular.module('registry')
}
});
})
.
controller
(
'navCtrl'
,
function
(
$scope
,
$location
)
{
$scope
.
navClass
=
function
(
page
)
{
var
currentRoute
=
$location
.
path
().
substring
(
1
)
||
'main'
;
return
page
==
currentRoute
?
'active'
:
''
;
};
});
\ No newline at end of file
src/main/webapp/public/scripts/services/services.js
View file @
b539ae5a
'use strict'
;
angular
.
module
(
'
registry
.services'
,
[
'ngResource'
])
angular
.
module
(
'
springBootAdmin
.services'
,
[
'ngResource'
])
.
factory
(
'Application'
,
[
'$resource'
,
function
(
$resource
){
return
$resource
(
...
...
src/main/webapp/public/views/about.html
0 → 100644
View file @
b539ae5a
<div
class=
"container"
>
<div
class=
"main-template"
>
This is an administration GUI for Spring-Boot applications. All applications has to register itself at this application.
This is done by including
<a
href=
"#"
target=
"_blank"
>
spring-boot-starters-admin-client
</a>
as dependency. This will
auto-configure a registrator that registers the application.
</div>
</div>
<!-- /.container -->
\ No newline at end of file
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