|
8 | 8 | <th colspan=2>Status Page</th> |
9 | 9 |
|
10 | 10 | <th>Last Refresh</th> |
11 | | - <th>TLS Expiry</th> |
| 11 | + <th>Site Cert Expiry</th> |
| 12 | + <th>TLS Cert Expiry</th> |
12 | 13 | <th>WSS</th> |
13 | | - <th>Site Cert</th> |
14 | 14 | <th>Revision</th> |
15 | 15 |
|
16 | 16 | <th v-for="node in routers">{{ node.shortname }}</th> |
|
43 | 43 |
|
44 | 44 | <td :class="{ |
45 | 45 | 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> |
47 | 56 | <td :class="{ |
48 | 57 | forceshort: true, |
49 | 58 | warning: (router.status?.tls?.expiry ?? -1) < 0, |
50 | 59 | 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> |
53 | 63 | <td :class="{ |
54 | 64 | okay: !!router.status?.['ws-tls'], |
55 | 65 | warning: !router.status?.['ws-tls'], |
56 | 66 | }"> |
57 | 67 | {{ router.status?.['ws-tls'] ? 'OK' : '' }} |
58 | 68 | </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> |
64 | 69 | <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 }} |
69 | 72 | </a> |
70 | 73 | </td> |
71 | 74 |
|
72 | 75 | <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] || '' }} |
78 | 81 | </td> |
79 | 82 |
|
80 | 83 | <td>{{ router.status?.host_info?.os }}</td> |
|
0 commit comments