Skip to content

Commit 93e0ba1

Browse files
committed
status: reorder cert expiry columns
1 parent dc2cf86 commit 93e0ba1

File tree

1 file changed

+22
-19
lines changed
  • framework/ndn-testbed-status/src

1 file changed

+22
-19
lines changed

framework/ndn-testbed-status/src/App.vue

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<th colspan=2>Status Page</th>
99

1010
<th>Last Refresh</th>
11-
<th>TLS Expiry</th>
11+
<th>Site Cert Expiry</th>
12+
<th>TLS Cert Expiry</th>
1213
<th>WSS</th>
13-
<th>Site Cert</th>
1414
<th>Revision</th>
1515

1616
<th v-for="node in routers">{{ node.shortname }}</th>
@@ -43,38 +43,41 @@
4343

4444
<td :class="{
4545
warning: getFromNow(router.status?.timestamp ?? 0) < -1800,
46-
}">{{ getFromNowStr(router.status?.timestamp, 'seconds') }}</td>
46+
}">
47+
{{ getFromNowStr(router.status?.timestamp, 'seconds') }}
48+
</td>
49+
<td :class="{
50+
forceshort: true,
51+
warning: (router.status?.site_cert_expiry ?? -1) < 0,
52+
okay: getFromNow(router.status?.site_cert_expiry ?? -1) > 7 * 86400,
53+
}">
54+
{{ getFromNowStr(router.status?.site_cert_expiry, 'days') }}
55+
</td>
4756
<td :class="{
4857
forceshort: true,
4958
warning: (router.status?.tls?.expiry ?? -1) < 0,
5059
okay: getFromNow(router.status?.tls?.expiry ?? -1) > 7 * 86400,
51-
}" :title="router.status?.tls?.error ?? ''"
52-
>{{ getFromNowStr(router.status?.tls?.expiry, 'days') || router.status?.tls?.error }}</td>
60+
}" :title="router.status?.tls?.error ?? ''">
61+
{{ getFromNowStr(router.status?.tls?.expiry, 'days') || router.status?.tls?.error }}
62+
</td>
5363
<td :class="{
5464
okay: !!router.status?.['ws-tls'],
5565
warning: !router.status?.['ws-tls'],
5666
}">
5767
{{ router.status?.['ws-tls'] ? 'OK' : '' }}
5868
</td>
59-
<td :class="{
60-
forceshort: true,
61-
warning: (router.status?.site_cert_expiry ?? -1) < 0,
62-
okay: getFromNow(router.status?.site_cert_expiry ?? -1) > 7 * 86400,
63-
}">{{ getFromNowStr(router.status?.site_cert_expiry, 'days') }}</td>
6469
<td>
65-
<a v-if="router.status?.revision"
66-
:href="getRevUrl(router)"
67-
target="_blank">
68-
{{ router.status?.revision }}
70+
<a v-if="router.status?.revision" :href="getRevUrl(router)" target="_blank">
71+
{{ router.status?.revision }}
6972
</a>
7073
</td>
7174

7275
<td v-for="node in routers" :class="{
73-
error: router.status && !router.status?.ndnping[node.shortname],
74-
okay: router.status && (router.shortname != node.shortname) && (router.status?.ndnping[node.shortname] ?? 0 > 0),
75-
blue: router.status && (router.shortname == node.shortname),
76-
}">
77-
{{ router.status?.ndnping[node.shortname] || '' }}
76+
error: router.status && !router.status?.ndnping[node.shortname],
77+
okay: router.status && (router.shortname != node.shortname) && (router.status?.ndnping[node.shortname] ?? 0 > 0),
78+
blue: router.status && (router.shortname == node.shortname),
79+
}">
80+
{{ router.status?.ndnping[node.shortname] || '' }}
7881
</td>
7982

8083
<td>{{ router.status?.host_info?.os }}</td>

0 commit comments

Comments
 (0)