From d7fc469d21068cd4812ede69677490c96292dd6d Mon Sep 17 00:00:00 2001 From: mtmail Date: Fri, 12 Mar 2021 16:52:04 +0100 Subject: [PATCH] new /status.html page (#104) --- dist/status.html | 22 +++++++++++++++++ src/App.svelte | 3 +++ src/components/LastUpdated.svelte | 2 ++ src/lib/stores.js | 2 +- src/pages/StatusPage.svelte | 39 +++++++++++++++++++++++++++++++ 5 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 dist/status.html create mode 100644 src/pages/StatusPage.svelte diff --git a/dist/status.html b/dist/status.html new file mode 100644 index 0000000..99aa904 --- /dev/null +++ b/dist/status.html @@ -0,0 +1,22 @@ + + + + + + + Nominatim Demo + + + + + + + + + + + + + + + diff --git a/src/App.svelte b/src/App.svelte index 05533e9..98ba029 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -10,6 +10,7 @@ import DetailsPage from './pages/DetailsPage.svelte'; import PolygonsPage from './pages/PolygonsPage.svelte'; import DeletablePage from './pages/DeletablePage.svelte'; + import StatusPage from './pages/StatusPage.svelte'; import AboutPage from './pages/AboutPage.svelte'; $: view = $page.tab; @@ -30,6 +31,8 @@ {:else if view === 'polygons'} +{:else if view === 'status'} + {:else if view === 'about'} {/if} diff --git a/src/components/LastUpdated.svelte b/src/components/LastUpdated.svelte index 3f914ce..a51b4b6 100644 --- a/src/components/LastUpdated.svelte +++ b/src/components/LastUpdated.svelte @@ -1,4 +1,5 @@ + +
+
+
+
+

Server status

+ +
+
API Endpoint
+
{Nominatim_Config.Nominatim_API_Endpoint}
+ +
Software version
+
{aStatusData.software_version}
+ +
Database version
+
{aStatusData.database_version}
+ +
Data last updated
+
{aStatusData.data_updated}
+
+
+
+
-- 2.39.5