diff --git a/auth.html b/auth.html index 13990db..51a42da 100644 --- a/auth.html +++ b/auth.html @@ -43,7 +43,7 @@ diff --git a/index.html b/index.html index 0bdf15d..7495fb3 100644 --- a/index.html +++ b/index.html @@ -66,7 +66,7 @@ diff --git a/js/lib.main.js b/js/lib.main.js index 22a1841..bd5ce04 100644 --- a/js/lib.main.js +++ b/js/lib.main.js @@ -1,6 +1,6 @@ /* eslint-disable no-unused-vars */ /* All Page Init */ -const version = '2023.5.3' +const version = '2023.5.4' /* Feature Detectors */ diff --git a/js/stat.js b/js/stats.js similarity index 92% rename from js/stat.js rename to js/stats.js index 050e4ef..099d78b 100644 --- a/js/stat.js +++ b/js/stats.js @@ -2,7 +2,8 @@ init() async function init() { // The page init function versionDisplay() - display(await get()) + await display(await get()) + hideLoading() } async function get() { // Fetch data from API @@ -20,7 +21,7 @@ async function display(data) { // Parses and displays data from API document.getElementById('time').textContent = await convertUnixLocal(dat.since) document.getElementById('ldbws').textContent = dat.ldbws || '0' document.getElementById('ldbsvws').textContent = dat.ldbsvws || '0' - document.getElementById('apicorpus').textContent = dat.corpus_api || '0' + document.getElementById('corpus_api').textContent = dat.corpus_api || '0' document.getElementById('corpus').textContent = dat.corpus || '0' document.getElementById('stations').textContent = dat.stations || '0' document.getElementById('users').textContent = dat.user || '0' diff --git a/pis.html b/pis.html index 096da83..3a97bea 100644 --- a/pis.html +++ b/pis.html @@ -71,7 +71,7 @@ \ No newline at end of file diff --git a/settings.html b/settings.html index b8d64c1..f812fd5 100644 --- a/settings.html +++ b/settings.html @@ -37,8 +37,8 @@
- - Home + + Home
diff --git a/stat.html b/stat.html deleted file mode 100644 index 9835e6a..0000000 --- a/stat.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - OwlBoard - Statistics - - - - -

OwlBoard Server Stats

-

Data from:

-

Server Mode:

-

Counters Reset -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ResourceHit Count
Upstream API-LDBWS
Upstream API-LDBSVWS
Upstream API-CORPUS
DB-CORPUS
DB-stations
DB-users
DB-meta
DB-pis
- - - - - - - - - - - - - - - - - - - - - - - - - -
DatabaseEntry Count
Users
Pending Registrations
PIS Codes
CORPUS Entries
Station Codes
-

- - - - - - - - - - - - - - - - - -
SoftwareVersion
- - backend - -
- - db-manager - -
- - web-frontend - - Unknown
-

The statistics represent hits & queries from all instances in the stack.

- - \ No newline at end of file diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..7fee4d2 --- /dev/null +++ b/stats.html @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + OwlBoard - Statistics + + + + + +
+
+
+

Loading

+
+ +
+ + + + Home + + +
+ + + + + + OwlBoard Logo + +

Statistics

+

Server hostname:
+ Runtime Mode:
+ Statistics Reset: +

+

Component Versions

+

OwlBoard Web:
+ OwlBoard Backend:
+ OwlBoard DBManager: +

+

Usage Statistics

+

Public Board Lookups:
+ Staff Board Lookups:
+ CORPUS Data Refreshes:
+ COSPUS Lookups:
+ Station code Lookups:
+ PIS Lookups:
+ User Lookups:
+ Meta Lookups: +

+

Counts

+

Registered Users:
+ Pending Registrations:
+ Available PIS Codes:
+ Available CORPUS Entries:
+ Available Station Entries:

+ + + + \ No newline at end of file diff --git a/styles/stats.css b/styles/stats.css new file mode 100644 index 0000000..e1a7746 --- /dev/null +++ b/styles/stats.css @@ -0,0 +1,8 @@ +.stat_desc { + color: var(--second-text-color); +} + +.stat_result { + font-weight: bold; + color: var(--second-text-color); +} \ No newline at end of file diff --git a/sw.js b/sw.js index d16989a..bce914d 100644 --- a/sw.js +++ b/sw.js @@ -1,6 +1,6 @@ /* Service Worker */ -const swVersion = '2023.5.3-002' +const swVersion = '2023.5.4-001' const cacheName = `owlboard-${swVersion}` const cacheIDs = [cacheName] let staticCache = [