Add QuickLinks based on 'frecency' pattern

This commit is contained in:
2026-04-21 19:54:00 +01:00
parent a07315cec2
commit 8c0d385772
6 changed files with 181 additions and 23 deletions

View File

@@ -18,11 +18,13 @@ export const load: PageLoad = async ({ url }) => {
});
}
if (locId) {
const location = LOCATIONS.find(locId);
let BoardLocation;
if (location) {
title = location.n || location.t;
if (locId) {
BoardLocation = LOCATIONS.find(locId);
if (BoardLocation) {
title = BoardLocation.n || BoardLocation.t || 'Live Arr/Dep';
} else {
error(404, {
message: `Location (${locId.toUpperCase()}) not found`,
@@ -32,6 +34,6 @@ export const load: PageLoad = async ({ url }) => {
}
return {
title,
location
BoardLocation
};
};