diff --git a/src/routes/more/statistics/+page.svelte b/src/routes/more/statistics/+page.svelte index f5cbed2..234d042 100644 --- a/src/routes/more/statistics/+page.svelte +++ b/src/routes/more/statistics/+page.svelte @@ -1,47 +1,88 @@
+{#if error} + +

Unable to connect to server

+
+{/if} + {#if isLoading} -{:else} +{:else if !isLoading && !error} +

API Server:
{data?.hostname}

+

Runtime Mode: {data?.runtimeMode}

+

Stats Reset: {U2L(data?.reset) || 'Unknown'}

Last Update

-

Timetable Data: {update_timetable}

-

Location Reference Data: {update_corpus}

-

PIS Codes Data: {update_pis}

+

Timetable: {U2L(data?.updateTimes?.timetable)}

+

Location Ref: {U2L(data?.updateTimes?.corpus)}

+

PIS Codes: {U2L(data?.updateTimes?.pis)}

+

Reason Codes: {U2L(data?.updateTimes?.reasonCodes)}

Request Counts

-

LDBWS API: {count_ldbws_api}

-

LDBSVWS API: {count_ldbsvws_api}

-

Location Reference API: {count_corpus_api}

-

Timetable: {count_timetable_db}

-

PIS: {count_pis_db}

-

Location Reference: {count_corpus_db}

-

Stations: {count_stations_db}

+

LDBWS API: {data?.requestCounts?.ldbws_api}

+

LDBSVWS API: {data?.requestCounts?.lsbsvws_api}

+

Location Reference API: {data?.requestCounts?.corpus_api}

+

Timetable: {data?.requestCounts?.timetable_db}

+

PIS: {data?.requestCounts?.pis_db}

+

Location Reference: {data?.requestCounts?.corpus_db}

+

Stations: {data?.requestCounts?.stations_db}

Database Lengths

-

Users: {length_users}

-

Pending Registrations: {length_registrations}

-

CORPUS: {length_corpus}

-

Stations: {length_stations}

-

PIS: {length_pis}

-

Timetable: {length_timetable}

+

Users: {data?.dbLengths?.users}

+

Pending Registrations: {data?.dbLengths?.registrations}

+

CORPUS: {data?.dbLengths?.corpus}

+

Stations: {data?.dbLengths?.stations}

+

PIS: {data?.dbLengths?.pis}

+

Timetable: {data?.dbLengths?.timetable}

+

Reason Codes: {data?.dbLengths?.reasonCodes}

{/if} -