-
-
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.
fix: implement "slot pad" mode in random slots (#1000)
This enables more tight packing of random slots (i.e. moderate length slots w/ short shows) by aligngin slots to pad times, instead of individual episodes within a schedule This also includes a host of other fixes and improvements for the random slot algorithm, UI, and slots in general. It also changes the implementation of random slots to use a generator function - this is a trial usage
- Loading branch information
1 parent
aeee37b
commit ec8b943
Showing
14 changed files
with
537 additions
and
325 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import dayjs from 'dayjs'; | ||
import duration from 'dayjs/plugin/duration.js'; | ||
import timezone from 'dayjs/plugin/timezone.js'; | ||
import utc from 'dayjs/plugin/utc.js'; | ||
|
||
dayjs.extend(duration); | ||
dayjs.extend(timezone); | ||
dayjs.extend(utc); | ||
|
||
export default dayjs; |
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
Oops, something went wrong.