Update config files to TS

This commit is contained in:
Fred Boniface
2023-07-24 11:05:08 +01:00
parent 8dc0b102a0
commit 69949fb8f4
8 changed files with 125 additions and 108 deletions

View File

@@ -1,13 +1,14 @@
<script>
import tocMap from "$lib/stores/tocMap";
export let toc = ""
export let full = false;
<script lang="ts">
export let toc: string
export let full: boolean = false;
let text = ""
import { tocs as map } from "$lib/stores/tocMap";
let text: string
$: {
if (full) {
text = tocMap[toc.toLowerCase()] || toc;
text = map.get(toc.toLowerCase()) || toc;
} else {
text = toc;
}
@@ -23,6 +24,8 @@
border-radius: 5px;
border-style: solid;
border-width: 1px;
background-color: white;
color: black;
}
.gw { /* GWR */
background-color: #07352d;
@@ -85,7 +88,7 @@
background-color: rgb(40, 40, 40);
color: rgb(219, 123, 5);
}
.le { /*Greater Anglia */
.le, .ga { /*Greater Anglia */
background-color: rgb(122, 124, 154);
color: rgb(151, 0, 0);
border-color: red;
@@ -175,4 +178,8 @@
background-color: rgb(89, 89, 89);
color: white;
}
.uk {
background-color: whitesmoke;
color: black;
}
</style>