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;
interface locationObject {
location: string,
via?: string,
location: string;
via?: string;
}
function detail(event: any, rid: string, uid: string, tid: string) {
@ -23,7 +23,7 @@
tiplocs.push(location.tiploc);
}
let locationObj: locationObject = {
location: tiplocs.join(' & '),
location: tiplocs.join(' & ')
};
if (locations[0]['via']) {
locationObj.via = locations[0]['via'];
@ -134,9 +134,13 @@
<!-- HEADCODE -->
<td class="id {classes.other}">{service.trainid}</td>
<!-- 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 -->
<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 -->
<td class="plat {classes.other} {classes.plat}">{service.platform || '-'}</td>
<!-- SCHEDULED ARR -->
@ -295,7 +299,9 @@
}
/* Conditional Classes */
.loc.canc, .id.canc, .canc {
.loc.canc,
.id.canc,
.canc {
color: grey;
text-decoration: line-through;
opacity: 0.8;