@@ -3,9 +3,9 @@ import { useConfiguration } from "@/composables/configuration";
3
3
import moment from " moment" ;
4
4
5
5
const configuration = useConfiguration ();
6
- // "Wed, Jan 15th 2025 10:56:21 +10:00",
6
+
7
7
function formatDate(date : string ) {
8
- return moment (date ).local ().format (" LLLL" ); // .format("ddd, MMM Do YYYY HH:mm:ss Z");
8
+ return moment (date ).local ().format (" LLLL" );
9
9
}
10
10
</script >
11
11
@@ -19,10 +19,10 @@ function formatDate(date: string) {
19
19
<div class =" row margin-bottom-10" >
20
20
<h4 >List of error queues configured in the connector.</h4 >
21
21
<div class =" queues-container" >
22
- <div class =" row margin-gap hover-highlight" v-for =" queue in configuration.mass_transit_connector.error_queues" :key =" queue.name" >
23
- <div :title =" queue.name " >{{ queue.name }}</ div >
24
- <div class =" error-color" v-if = " ! queue.ingesting " >Not ingesting</ div >
25
- <div class = " ok-color " v-else >Ok</ div >
22
+ <div class =" margin-gap hover-highlight" v-for =" queue in configuration.mass_transit_connector.error_queues" :key =" queue.name" >
23
+ <i v-if =" queue.ingesting " class = " fa fa-check info-color " ></ i >
24
+ <i v-else class =" fa fa-times error-color" v-tippy = " `Not ingesting from this queue. Check the logs below for more information.` " ></ i >
25
+ <span >{{ queue.name }}</ span >
26
26
</div >
27
27
</div >
28
28
</div >
@@ -55,15 +55,14 @@ function formatDate(date: string) {
55
55
}
56
56
57
57
.queues-container {
58
- max-width : 100% ;
59
- width : fit-content ;
60
58
padding : 0.75rem ;
61
59
}
62
- .queues-container .row {
63
- display : grid ;
64
- grid-template-columns : 5fr minmax (10em , 1fr );
60
+ .queues-container > div {
61
+ display : flex ;
62
+ align-items : center ;
63
+ gap : 0.5em ;
65
64
}
66
- .queues-container .row div {
65
+ .queues-container > div div {
67
66
overflow-wrap : anywhere;
68
67
}
69
68
@@ -93,7 +92,7 @@ function formatDate(date: string) {
93
92
.error-color {
94
93
color : var (--bs-danger );
95
94
}
96
- .ok -color {
95
+ .info -color {
97
96
color : var (--bs-success );
98
97
}
99
98
</style >
0 commit comments