Add uptime percentage column.

This commit is contained in:
Kavin 2023-12-14 15:19:01 +00:00
parent 144cf0be74
commit 5ed4f4dd0c
No known key found for this signature in database
GPG Key ID: 6E4598CA5C92C41F
2 changed files with 4 additions and 1 deletions

View File

@ -345,6 +345,7 @@
<th v-t="'preferences.registered_users'" />
<th v-t="'preferences.version'" class="lt-md:hidden" />
<th v-t="'preferences.up_to_date'" />
<th v-t="'preferences.uptime_30d'" />
<th v-t="'preferences.ssl_score'" />
</tr>
</thead>
@ -356,6 +357,7 @@
<td v-text="instance.registered" />
<td class="lt-md:hidden" v-text="instance.version" />
<td v-text="`${instance.up_to_date ? '&#9989;' : '&#10060;'}`" />
<td v-text="`${Number.parseFloat(instance.uptime_30d.toFixed(2))}%`" />
<td>
<a v-t="'actions.view_ssl_score'" :href="sslScore(instance.api_url)" target="_blank" />
</td>

View File

@ -164,7 +164,8 @@
"registered_users": "Registered Users",
"version": "Version",
"up_to_date": "Up to date?",
"ssl_score": "SSL Score"
"ssl_score": "SSL Score",
"uptime_30d": "Uptime (30d)"
},
"login": {
"username": "Username",