StaffLDB-Minify #1

Merged
fred.boniface merged 27 commits from StaffLDB-Minify into main 2023-10-03 21:37:00 +01:00
Showing only changes of commit 6ea0af1c26 - Show all commits

View File

@ -8,8 +8,8 @@
export let click: Function; export let click: Function;
interface locationObject { interface locationObject {
location: string, location: string;
via?: string, via?: string;
} }
function detail(event: any, rid: string, uid: string, tid: string) { function detail(event: any, rid: string, uid: string, tid: string) {
@ -23,7 +23,7 @@
tiplocs.push(location.tiploc); tiplocs.push(location.tiploc);
} }
let locationObj: locationObject = { let locationObj: locationObject = {
location: tiplocs.join(' & '), location: tiplocs.join(' & ')
}; };
if (locations[0]['via']) { if (locations[0]['via']) {
locationObj.via = locations[0]['via']; locationObj.via = locations[0]['via'];
@ -134,9 +134,13 @@
<!-- HEADCODE --> <!-- HEADCODE -->
<td class="id {classes.other}">{service.trainid}</td> <td class="id {classes.other}">{service.trainid}</td>
<!-- ORIGIN --> <!-- ORIGIN -->
<td class="loc from {classes.other}">{#await formatLocations(service.origin) then origin}{origin.location}{#if origin.via}<br><span class="via">{origin.via}</span>{/if}{/await}</td> <td class="loc from {classes.other}"
>{#await formatLocations(service.origin) then origin}{origin.location}{#if origin.via}<br /><span class="via">{origin.via}</span>{/if}{/await}</td
>
<!-- DESTINATION --> <!-- DESTINATION -->
<td class="loc to {classes.other}">{#await formatLocations(service.destination) then dest}{dest.location}{#if dest.via}<br><span class="via">{dest.via}</span>{/if}{/await}</td> <td class="loc to {classes.other}"
>{#await formatLocations(service.destination) then dest}{dest.location}{#if dest.via}<br /><span class="via">{dest.via}</span>{/if}{/await}</td
>
<!-- PLATFORM --> <!-- PLATFORM -->
<td class="plat {classes.other} {classes.plat}">{service.platform || '-'}</td> <td class="plat {classes.other} {classes.plat}">{service.platform || '-'}</td>
<!-- SCHEDULED ARR --> <!-- SCHEDULED ARR -->
@ -295,7 +299,9 @@
} }
/* Conditional Classes */ /* Conditional Classes */
.loc.canc, .id.canc, .canc { .loc.canc,
.id.canc,
.canc {
color: grey; color: grey;
text-decoration: line-through; text-decoration: line-through;
opacity: 0.8; opacity: 0.8;