-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4aa176b
commit fcc9ee9
Showing
14 changed files
with
768 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { mod as dayjsMod } from './util/dayjsExtensions.js'; | ||
export { scheduleRandomSlots } from './services/randomSlotsService.js'; | ||
export { scheduleTimeSlots } from './services/timeSlotService.js'; | ||
export { mod as dayjsMod } from './util/dayjsExtensions.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ export default defineConfig({ | |
splitting: false, | ||
format: 'esm', | ||
outDir: 'build', | ||
sourcemap: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
web/src/components/slot_scheduler/commonSlotSchedulerOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export type DropdownOption<T extends string | number> = { | ||
value: T; | ||
description: string; | ||
}; | ||
|
||
export type ProgramOption = DropdownOption<string>; | ||
|
||
export const padOptions: DropdownOption<number>[] = [ | ||
{ value: 1, description: 'Do not pad' }, | ||
{ value: 5 * 60 * 1000, description: '0:00, 0:05, 0:10, ..., 0:55' }, | ||
{ value: 10 * 60 * 1000, description: '0:00, 0:10, 0:20, ..., 0:50' }, | ||
{ value: 15 * 60 * 1000, description: '0:00, 0:15, 0:30, ..., 0:45' }, | ||
{ value: 30 * 60 * 1000, description: '0:00, 0:30' }, | ||
{ value: 1 * 60 * 60 * 1000, description: '0:00' }, | ||
]; | ||
|
||
export const flexOptions: DropdownOption<'end' | 'distribute'>[] = [ | ||
{ value: 'distribute', description: 'Between videos' }, | ||
{ value: 'end', description: 'End of the slot' }, | ||
]; |
Oops, something went wrong.