implement platform config

This commit is contained in:
2024-10-29 19:06:01 +07:00
parent 075610fb9b
commit e003bcd634
11 changed files with 213 additions and 82 deletions

View File

@@ -0,0 +1,46 @@
export const ConfigConstants: Record<
string,
{
name: string
key: string
value: string
visible: boolean
}
> = {
SLOT_DURATION: {
name: 'Slot Duration',
key: 'SLOT_DURATION',
value: '60',
visible: true,
},
SLOT_BREAK_DURATION: {
name: 'Slot Break Duration',
key: 'SLOT_BREAK_DURATION',
value: '15',
visible: true,
},
MID_DAY_BREAK_TIME_START: {
name: 'Mid Day Break Time Start',
key: 'MID_DAY_BREAK_TIME_START',
value: new Date(new Date().setHours(12, 0, 0, 0)).toISOString(),
visible: true,
},
MID_DAY_BREAK_TIME_END: {
name: 'Mid Day Break Time End',
key: 'MID_DAY_BREAK_TIME_END',
value: new Date(new Date().setHours(13, 0, 0, 0)).toISOString(),
visible: true,
},
SLOT_START_TIME: {
name: 'Slot Start Time',
key: 'SLOT_START_TIME',
value: new Date(new Date().setHours(8, 0, 0, 0)).toISOString(),
visible: true,
},
SLOT_END_TIME: {
name: 'Slot End Time',
key: 'SLOT_END_TIME',
value: new Date(new Date().setHours(22, 0, 0, 0)).toISOString(),
visible: true,
},
}