mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 03:26:07 +00:00
fix(settings): lint, size and test follow-ups for the date format
The admin reset link is a component of its own instead of one made during render, the version line of the plugin panels moved into small modules, the new settings rows hand their save on as void, the date picker takes an accessible name for fields without a visible label (the Vacay hire date), the Vacay and poll tests type through the shared picker, and the theme, size and lint baselines are lowered to what the files hold now.
This commit is contained in:
@@ -43,7 +43,14 @@ export const WEEK_START_DAY: Record<WeekStart, number> = { monday: 1, sunday: 0,
|
||||
* own order and separator. Dates written with a month name ("3 Nov") keep the
|
||||
* language's wording either way.
|
||||
*/
|
||||
export const DATE_FORMAT_VALUES = ['auto', 'YYYY-MM-DD', 'YYYY/MM/DD', 'DD.MM.YYYY', 'DD/MM/YYYY', 'MM/DD/YYYY'] as const;
|
||||
export const DATE_FORMAT_VALUES = [
|
||||
'auto',
|
||||
'YYYY-MM-DD',
|
||||
'YYYY/MM/DD',
|
||||
'DD.MM.YYYY',
|
||||
'DD/MM/YYYY',
|
||||
'MM/DD/YYYY',
|
||||
] as const;
|
||||
export type DateFormat = (typeof DATE_FORMAT_VALUES)[number];
|
||||
export const dateFormatSchema = z.enum(DATE_FORMAT_VALUES);
|
||||
/** What a user who never picked one gets. */
|
||||
|
||||
Reference in New Issue
Block a user