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
5bb5fd09
Commit
5bb5fd09
authored
Oct 10, 2014
by
joshiste
Committed by
Johannes Stelzer
Nov 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added classpath section to details-view
parent
7808d798
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
5 deletions
+38
-5
app.js
...g-boot-admin-server/src/main/webapp/public/scripts/app.js
+5
-0
controllers.js
...src/main/webapp/public/scripts/controllers/controllers.js
+6
-1
services.js
...erver/src/main/webapp/public/scripts/services/services.js
+9
-4
details.html
...min-server/src/main/webapp/public/views/apps/details.html
+1
-0
classpath.html
.../src/main/webapp/public/views/apps/details/classpath.html
+17
-0
No files found.
spring-boot-admin-server/src/main/webapp/public/scripts/app.js
View file @
5bb5fd09
...
@@ -67,6 +67,11 @@ angular.module('springBootAdmin', [
...
@@ -67,6 +67,11 @@ angular.module('springBootAdmin', [
templateUrl
:
'views/apps/details/props.html'
,
templateUrl
:
'views/apps/details/props.html'
,
controller
:
'detailsPropsCtrl'
controller
:
'detailsPropsCtrl'
})
})
.
state
(
'apps.details.classpath'
,
{
url
:
'/classpath'
,
templateUrl
:
'views/apps/details/classpath.html'
,
controller
:
'detailsClasspathCtrl'
})
.
state
(
'apps.logging'
,
{
.
state
(
'apps.logging'
,
{
url
:
'/logging/:id'
,
url
:
'/logging/:id'
,
abstract
:
true
,
abstract
:
true
,
...
...
spring-boot-admin-server/src/main/webapp/public/scripts/controllers/controllers.js
View file @
5bb5fd09
...
@@ -156,7 +156,7 @@ angular.module('springBootAdmin')
...
@@ -156,7 +156,7 @@ angular.module('springBootAdmin')
$scope
.
abbreviateFunction
=
function
(
targetLength
,
preserveLast
,
shortenThreshold
){
$scope
.
abbreviateFunction
=
function
(
targetLength
,
preserveLast
,
shortenThreshold
){
return
function
(
s
)
{
return
function
(
s
)
{
return
Abbreviator
.
abbreviate
(
s
,
targetLength
,
preserveLast
,
shortenThreshold
)
return
Abbreviator
.
abbreviate
(
s
,
'.'
,
targetLength
,
preserveLast
,
shortenThreshold
)
};
};
}
}
...
@@ -183,6 +183,11 @@ angular.module('springBootAdmin')
...
@@ -183,6 +183,11 @@ angular.module('springBootAdmin')
ApplicationDetails
.
getProps
(
application
);
ApplicationDetails
.
getProps
(
application
);
});
});
})
})
.
controller
(
'detailsClasspathCtrl'
,
function
(
$scope
,
$stateParams
,
Application
,
ApplicationDetails
,
Abbreviator
)
{
$scope
.
application
=
Application
.
query
({
id
:
$stateParams
.
id
},
function
(
application
)
{
ApplicationDetails
.
getClasspath
(
application
);
});
})
.
controller
(
'loggingCtrl'
,
function
(
$scope
,
$stateParams
,
Application
)
{
.
controller
(
'loggingCtrl'
,
function
(
$scope
,
$stateParams
,
Application
)
{
$scope
.
application
=
Application
.
query
({
id
:
$stateParams
.
id
});
$scope
.
application
=
Application
.
query
({
id
:
$stateParams
.
id
});
})
})
...
...
spring-boot-admin-server/src/main/webapp/public/scripts/services/services.js
View file @
5bb5fd09
...
@@ -98,6 +98,11 @@ angular.module('springBootAdmin.services', ['ngResource'])
...
@@ -98,6 +98,11 @@ angular.module('springBootAdmin.services', ['ngResource'])
}
}
});
});
}
}
this
.
getClasspath
=
function
(
app
)
{
return
$http
.
get
(
app
.
url
+
'/env'
).
success
(
function
(
response
)
{
app
.
classpath
=
response
[
'systemProperties'
][
'java.class.path'
].
split
(
":"
);
});
}
}])
}])
.
service
(
'ApplicationLogging'
,
[
'$http'
,
function
(
$http
)
{
.
service
(
'ApplicationLogging'
,
[
'$http'
,
function
(
$http
)
{
this
.
getLoglevel
=
function
(
app
)
{
this
.
getLoglevel
=
function
(
app
)
{
...
@@ -126,13 +131,13 @@ angular.module('springBootAdmin.services', ['ngResource'])
...
@@ -126,13 +131,13 @@ angular.module('springBootAdmin.services', ['ngResource'])
}
}
}])
}])
.
service
(
'Abbreviator'
,
[
function
()
{
.
service
(
'Abbreviator'
,
[
function
()
{
function
_computeDotIndexes
(
fqName
,
preserveLast
)
{
function
_computeDotIndexes
(
fqName
,
delimiter
,
preserveLast
)
{
var
dotArray
=
[];
var
dotArray
=
[];
//iterate over String and find dots
//iterate over String and find dots
var
lastIndex
=
-
1
;
var
lastIndex
=
-
1
;
do
{
do
{
lastIndex
=
fqName
.
indexOf
(
'.'
,
lastIndex
+
1
);
lastIndex
=
fqName
.
indexOf
(
delimiter
,
lastIndex
+
1
);
if
(
lastIndex
!==
-
1
)
{
if
(
lastIndex
!==
-
1
)
{
dotArray
.
push
(
lastIndex
);
dotArray
.
push
(
lastIndex
);
}
}
...
@@ -169,12 +174,12 @@ angular.module('springBootAdmin.services', ['ngResource'])
...
@@ -169,12 +174,12 @@ angular.module('springBootAdmin.services', ['ngResource'])
return
lengthArray
;
return
lengthArray
;
}
}
this
.
abbreviate
=
function
(
fqName
,
targetLength
,
preserveLast
,
shortenThreshold
)
{
this
.
abbreviate
=
function
(
fqName
,
delimiter
,
targetLength
,
preserveLast
,
shortenThreshold
)
{
if
(
fqName
.
length
<
targetLength
)
{
if
(
fqName
.
length
<
targetLength
)
{
return
fqName
;
return
fqName
;
}
}
var
dotIndexesArray
=
_computeDotIndexes
(
fqName
,
preserveLast
);
var
dotIndexesArray
=
_computeDotIndexes
(
fqName
,
delimiter
,
preserveLast
);
if
(
dotIndexesArray
.
length
===
0
)
{
if
(
dotIndexesArray
.
length
===
0
)
{
return
fqName
;
return
fqName
;
...
...
spring-boot-admin-server/src/main/webapp/public/views/apps/details.html
View file @
5bb5fd09
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<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.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.env({id: application.id})"
>
Environment
</a></li>
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.props({id: application.id})"
>
Properties
</a></li>
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.props({id: application.id})"
>
Properties
</a></li>
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.classpath({id: application.id})"
>
Classpath
</a></li>
</ul>
</ul>
<div
class=
"tab-content"
>
<div
class=
"tab-content"
>
<div
ui-view
></div>
<div
ui-view
></div>
...
...
spring-boot-admin-server/src/main/webapp/public/views/apps/details/classpath.html
0 → 100644
View file @
5bb5fd09
<table
class=
"table table-striped"
>
<col
style=
"width:30%"
>
<col
style=
"width:auto"
>
<thead>
<tr>
<th>
Classpath
<small
class=
"pull-right"
><a
href=
"{{ application.url }}/env"
>
raw JSON
</a></small></th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"element in application.classpath"
>
<td
style=
"text-wrap: none;"
>
{{ element }}
</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