Implement ClientSchedule state tracking class
Write the logic of keeping track of location modifications and applying updates from the server into the ClientSchedule class. This should serve as the foundation for replacing the prototype in-component update logic which have turned into an unmaintainable spagetti.
This commit is contained in:
parent
aa52a6c651
commit
e100555304
5 changed files with 1005 additions and 1 deletions
11
shared/utils/luxon.ts
Normal file
11
shared/utils/luxon.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Wrapper around Luxon to make sure the throwOnInvalid option is set
|
||||
import { Settings, DateTime, FixedOffsetZone, Zone } from "luxon";
|
||||
|
||||
Settings.throwOnInvalid = true;
|
||||
declare module 'luxon' {
|
||||
interface TSSettings {
|
||||
throwOnInvalid: true;
|
||||
}
|
||||
}
|
||||
|
||||
export { DateTime, FixedOffsetZone, Zone }
|
Loading…
Add table
Add a link
Reference in a new issue