Upgrade stats page #3
@ -1,5 +1,5 @@
|
||||
/* All Page Init */
|
||||
const version = '2.0.0'
|
||||
const version = '2.0.1'
|
||||
|
||||
/* Feature Detectors */
|
||||
|
||||
|
@ -27,4 +27,9 @@ async function display(data) { // Parses and displays data from API
|
||||
document.getElementById('meta').textContent = dat.meta || '0'
|
||||
document.getElementById('pis').textContent = dat.pis
|
||||
document.getElementById('ver-dbman').textContent = ver.dbmanager || 'Unknown'
|
||||
document.getElementById('user_count').textContent = data.count.users || 'Unknown'
|
||||
document.getElementById('reg_count').textContent = data.count.reg || '0'
|
||||
document.getElementById('pis_count').textContent = data.count.pis || 'Unknown'
|
||||
document.getElementById('corpus_count').textContent = data.count.corpus || 'Unknown'
|
||||
document.getElementById('stations_count').textContent = data.count.stations || 'Unknown'
|
||||
}
|
26
stat.html
26
stat.html
@ -50,6 +50,32 @@
|
||||
<td id="pis"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="margin:auto;text-align:center;">
|
||||
<tr>
|
||||
<th>Database</th>
|
||||
<th>Entry Count</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Users</td>
|
||||
<td id="user_count"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Pending Registrations</td>
|
||||
<td id="reg_count"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PIS Codes</td>
|
||||
<td id="pis_count"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CORPUS Entries</td>
|
||||
<td id="corpus_count"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Station Codes</td>
|
||||
<td id="stations_count"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br><br>
|
||||
<table style="margin:auto;text-align:center;">
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user