File tree 2 files changed +30
-1
lines changed
spring-boot-admin-samples/spring-boot-admin-sample-custom-ui/src
2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change
1
+ .mx-1 {
2
+ margin-left : .5rem ;
3
+ margin-right : .5rem ;
4
+ }
5
+
6
+ .m-4 {
7
+ margin : 2rem ;
8
+ }
Original file line number Diff line number Diff line change 15
15
-->
16
16
17
17
<template>
18
- <pre v-text="stringify(applications, null, 4)" />
18
+ <div class="m-4">
19
+ <template v-for="application in applications" :key="application.name">
20
+ <sba-panel :title="application.name">
21
+ This application has the following instances:
22
+
23
+ <ul>
24
+ <template v-for="instance in application.instances">
25
+ <li>
26
+ <span class="mx-1" v-text="instance.registration.name"></span>
27
+
28
+ <!-- SBA components are registered globally and can be used without importing them! -->
29
+ <!-- They are defined in spring-boot-admin-server-ui -->
30
+ <sba-status :status="instance.statusInfo.status" class="mx-1" />
31
+ <sba-tag :value="instance.id" class="mx-1" label="id" />
32
+ </li>
33
+ </template>
34
+ </ul>
35
+ </sba-panel>
36
+ </template>
37
+ <pre v-text="applications"></pre>
38
+ </div>
19
39
</template>
20
40
21
41
<script>
22
42
/* global SBA */
43
+ import "./custom.css";
23
44
24
45
export default {
25
46
setup() {
You can’t perform that action at this time.
0 commit comments