feat: add download metadata to website (#6034)

* feat: add download metadata to website

* add to project cards
This commit is contained in:
Prospector
2026-05-07 19:20:54 -07:00
committed by GitHub
parent fd5d2797b3
commit 3d7aea5a45
13 changed files with 335 additions and 30 deletions

View File

@@ -8,6 +8,15 @@ export function queryAsString(query: LocationQueryValue | LocationQueryValue[]):
return Array.isArray(query) ? (query[0] ?? null) : (query ?? null)
}
export function queryAsStringArray(
query: LocationQueryValue | LocationQueryValue[],
): string | null {
if (query === undefined || query === null) {
return []
}
return Array.isArray(query) ? query.map(String) : [String(query)]
}
export function routeNameAsString(name: RouteRecordNameGeneric | undefined): string | undefined {
return name && typeof name === 'string' ? (name as string) : undefined
}