--- /dev/null
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset='utf-8'>
+ <meta name='viewport' content='width=device-width,initial-scale=1'>
+
+ <title>Nominatim Demo</title>
+
+ <link rel="icon" type="image/png" href="theme/favicon-194x194.png" sizes="194x194">
+ <link rel="icon" type="image/png" href="theme/favicon-32x32.png" sizes="32x32">
+
+ <link rel='stylesheet' href='build/bundle.css'>
+ <link rel='stylesheet' href='theme/style.css'>
+
+ <script src='config.defaults.js'></script>
+ <script src='theme/config.theme.js'></script>
+ <script defer src='build/bundle.js'></script>
+</head>
+
+<body>
+</body>
+</html>
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;
<DeletablePage />
{:else if view === 'polygons'}
<PolygonsPage />
+{:else if view === 'status'}
+<StatusPage />
{:else if view === 'about'}
<AboutPage />
{/if}
<script>
+ import PageLink from './PageLink.svelte';
import * as timeago from 'timeago.js';
import { last_api_request_url_store } from '../lib/stores.js';
import { fetch_from_api } from '../lib/api_utils.js';
Data last updated:
<abbr id="data-date" title="{last_updated_date} (UTC timezone)">{timeago.format(new Date(last_updated_date))}</abbr>
{/if}
+ (<PageLink page="status">Details</PageLink>)
</div>
</div>
</div>
* the requested query parameters. It may also be omitted completely for a
* link without query parameters.
*/
-const pagenames = ['search', 'reverse', 'details', 'deletable', 'polygons', 'about'];
+const pagenames = ['search', 'reverse', 'details', 'deletable', 'polygons', 'status', 'about'];
export function refresh_page(pagename, params) {
if (typeof pagename === 'undefined') {
--- /dev/null
+<script>
+ import { onMount } from 'svelte';
+ import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
+
+ import Header from '../components/Header.svelte';
+
+ let aStatusData = {};
+
+ function loaddata() {
+ fetch_from_api('status', { format: 'json' }, function (data) {
+ aStatusData = data;
+ });
+ update_html_title('Server status');
+ }
+ onMount(loaddata);
+</script>
+
+<Header/>
+<div class="container">
+ <div class="row">
+ <div class="col-sm-12">
+ <h1>Server status</h1>
+
+ <dl>
+ <dt>API Endpoint</dt>
+ <dd><a href={Nominatim_Config.Nominatim_API_Endpoint}>{Nominatim_Config.Nominatim_API_Endpoint}</a></dd>
+
+ <dt>Software version</dt>
+ <dd>{aStatusData.software_version}</dd>
+
+ <dt>Database version</dt>
+ <dd>{aStatusData.database_version}</dd>
+
+ <dt>Data last updated</dt>
+ <dd>{aStatusData.data_updated}</dd>
+ </dl>
+ </div>
+ </div>
+</div>