fe66575ffe
Login: add an in-memory per-IP throttle (8 failed attempts -> 15-min lockout, 429 + Retry-After), raise the change-password minimum to 8 with a 72-char cap, and apply the same minimum on the StartOS Set Login Password action. Records: add a record_floor column for manually-pinned bests plus recomputeRecord(); the live record is now the direction-aware best of the best logged value and the floor, recomputed on entry edit/delete so it can drop again (never below the floor). Settings exposes the floor as an override and shows the live best as a placeholder. Bump package 0.1.6:0 -> 0.1.7:0 and the service-worker cache to v7.
27 lines
658 B
TypeScript
27 lines
658 B
TypeScript
export const DEFAULT_LANG = 'en_US'
|
|
|
|
const dict = {
|
|
// main.ts
|
|
'Starting Premier Gunner!': 0,
|
|
'Web Interface': 1,
|
|
'The web interface is ready': 2,
|
|
'The web interface is not ready': 3,
|
|
|
|
// interfaces.ts
|
|
'Premier Gunner': 4,
|
|
'The Premier Gunner training tracker web app': 5,
|
|
|
|
// actions
|
|
'Set Login Password': 6,
|
|
'Set the password Gunner uses to log in to Premier Gunner': 7,
|
|
'Password': 8,
|
|
'The password Gunner types on the login screen (at least 8 characters)': 9,
|
|
} as const
|
|
|
|
/**
|
|
* Plumbing. DO NOT EDIT.
|
|
*/
|
|
export type I18nKey = keyof typeof dict
|
|
export type LangDict = Record<(typeof dict)[I18nKey], string>
|
|
export default dict
|