1616
1717<template >
1818 <section class =" wallboard section" >
19- <div class =" flex gap-2 justify-end absolute w-full md:w-[28rem] top-14 right-0 bg-black/20 py-3 px-4 rounded-bl" >
19+ <div
20+ class =" flex gap-2 justify-end absolute w-full md:w-[28rem] top-14 right-0 bg-black/20 py-3 px-4 rounded-bl"
21+ >
2022 <sba-input
21- class =" flex-1"
2223 v-model =" termFilter"
24+ class =" flex-1"
2325 :placeholder =" $t('term.filter')"
2426 name =" filter"
2527 type =" search"
2628 >
2729 <template #prepend >
28- <font-awesome-icon icon =" filter" />
30+ <font-awesome-icon icon =" filter" />
2931 </template >
3032 </sba-input >
3133
3436 v-model =" statusFilter"
3537 class =" relative focus:z-10 focus:ring-indigo-500 focus:border-indigo-500 block sm:text-sm border-gray-300 rounded"
3638 >
37- <option selected value =" none" v-text =" $t('term.all')" />
39+ <option selected value =" none" v-text =" $t('term.all')" />
3840 <optgroup :label =" t('health.label')" >
3941 <option
4042 v-for =" status in healthStatus"
5456 severity =" WARN"
5557 />
5658
57- <sba-loading-spinner
58- v-if =" !applicationsInitialized"
59- />
59+ <sba-loading-spinner v-if =" !applicationsInitialized" />
6060
6161 <template v-if =" applicationsInitialized " >
62- <div class =" flex w-full h-full items-center text-center text-white text-xl"
63- v-if =" termFilter.length > 0 && applications.length === 0"
64- v-text =" t('term.no_results_for_term', {
65- term: termFilter
66- })" />
62+ <div
63+ v-if =" termFilter.length > 0 && applications.length === 0"
64+ class =" flex w-full h-full items-center text-center text-white text-xl"
65+ v-text ="
66+ t('term.no_results_for_term', {
67+ term: termFilter,
68+ })
69+ "
70+ />
6771 <hex-mesh
6872 v-if =" applicationsInitialized"
6973 :class-for-item =" classForApplication"
7276 >
7377 <template #item =" { item: application } " >
7478 <div :key =" application.name" class =" hex__body application" >
75- <div class =" application__status-indicator" />
79+ <div class =" application__status-indicator" />
7680 <div class =" application__header application__time-ago is-muted" >
77- <sba-time-ago :date =" application.statusTimestamp" />
81+ <sba-time-ago :date =" application.statusTimestamp" />
7882 </div >
7983 <div class =" application__body" >
80- <h1 class =" application__name" v-text =" application.name" />
84+ <h1 class =" application__name" v-text =" application.name" />
8185 <p
8286 class =" application__instances is-muted"
8387 v-text ="
98102
99103<script >
100104import Fuse from ' fuse.js' ;
101- import {computed , ref } from ' vue' ;
102- import {useI18n } from ' vue-i18n' ;
105+ import { computed , ref } from ' vue' ;
106+ import { useI18n } from ' vue-i18n' ;
103107
104- import {HealthStatus } from ' @/HealthStatus' ;
105- import {useApplicationStore } from ' @/composables/useApplicationStore' ;
108+ import { HealthStatus } from ' @/HealthStatus' ;
109+ import { useApplicationStore } from ' @/composables/useApplicationStore' ;
106110import hexMesh from ' @/views/wallboard/hex-mesh' ;
107111
108112export default {
109- components: {hexMesh},
113+ components: { hexMesh },
110114 setup () {
111- const {t } = useI18n ();
115+ const { t } = useI18n ();
112116 const termFilter = ref (' ' );
113117 const statusFilter = ref (' none' );
114118
115- const {applications , applicationsInitialized , error } =
119+ const { applications , applicationsInitialized , error } =
116120 useApplicationStore ();
117121
118122 const fuse = computed (
@@ -122,7 +126,7 @@ export default {
122126 useExtendedSearch: true ,
123127 threshold: 0.25 ,
124128 keys: [' name' , ' buildVersion' , ' instances.name' , ' instances.id' ],
125- })
129+ }),
126130 );
127131
128132 const filteredApplications = computed (() => {
@@ -137,7 +141,7 @@ export default {
137141 function filterByStatus (result ) {
138142 if (statusFilter .value !== ' none' ) {
139143 return result .filter (
140- (application ) => application .status === statusFilter .value
144+ (application ) => application .status === statusFilter .value ,
141145 );
142146 }
143147
@@ -193,17 +197,17 @@ export default {
193197 if (application .instances .length === 1 ) {
194198 this .$router .push ({
195199 name: ' instances/details' ,
196- params: {instanceId: application .instances [0 ].id },
200+ params: { instanceId: application .instances [0 ].id },
197201 });
198202 } else {
199203 this .$router .push ({
200204 name: ' applications' ,
201- params: {selected: application .name },
205+ params: { selected: application .name },
202206 });
203207 }
204208 },
205209 },
206- install ({viewRegistry}) {
210+ install ({ viewRegistry }) {
207211 viewRegistry .addView ({
208212 path: ' /wallboard' ,
209213 name: ' wallboard' ,
@@ -237,6 +241,7 @@ export default {
237241 width : 100 % ;
238242 padding : 2.5 % ;
239243 color : #fff ;
244+ word-break : break-word;
240245 font-size : 2 em ;
241246 font-weight : 600 ;
242247 line-height : 1.125 ;
0 commit comments