Update config files to TS
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user