list: cleanup, include offset in DateAttempt

included UTC offset in minutes in DateAttempt, will be used shortly.
Also moved this stuff (ParsedDate, DateAttempt) to the common d.ts, and
the method for parsing from a string (now parseDateString) to common.
Also pre-emptively load the user cache when the admin page loads.
This commit is contained in:
Harvey Tindall
2025-05-27 14:20:17 +01:00
parent 18f8921eba
commit b40abafb95
8 changed files with 53 additions and 46 deletions
+15
View File
@@ -161,5 +161,20 @@ interface PaginatedReqDTO {
ascending: boolean;
};
interface DateAttempt {
year?: number;
month?: number;
day?: number;
hour?: number;
minute?: number;
offsetMinutesFromUTC?: number;
}
interface ParsedDate {
attempt: DateAttempt;
date: Date;
text: string;
};
declare var config: Object;
declare var modifiedConfig: Object;