Add tunnel component and map connector component
This commit is contained in:
8
src/routes/healthz/+server.ts
Normal file
8
src/routes/healthz/+server.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { json } from '@sveltejs/kit';
|
||||
import type { RequestHandler } from './$types';
|
||||
|
||||
export const GET: RequestHandler = () => {
|
||||
return json({ status: 'ok', uptime: process.uptime() }, {
|
||||
status: 200
|
||||
});
|
||||
};
|
||||
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import RouteRow from '$lib/components/RouteRow.svelte';
|
||||
import RouteEndLink from '$lib/components/mapIcons/RouteEndLink.svelte';
|
||||
import { slide } from 'svelte/transition';
|
||||
|
||||
// data.route contains: routeName, routeId, elecStart, elecEnd, routeDetail[]
|
||||
@@ -15,7 +16,8 @@
|
||||
signallerChange: true,
|
||||
electrificationChange: true,
|
||||
siteof: true,
|
||||
junction: true
|
||||
junction: true,
|
||||
tunnel: true,
|
||||
};
|
||||
|
||||
let showFilters = false;
|
||||
@@ -106,12 +108,15 @@
|
||||
<main class="map-spine">
|
||||
<div class="container">
|
||||
{#each filteredFeatures as f, i (`${f.type}-${f.miles}-${f.chains}-${i}`)}
|
||||
{#if (f.type === 'continues')}
|
||||
<RouteEndLink feature={f} />
|
||||
{:else}
|
||||
<RouteRow feature={f} activeElec={f.activeElec} {reversed} />
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.map-layout {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user