-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: opti event group-by algo (#123)
- Loading branch information
Showing
3 changed files
with
135 additions
and
102 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { EventScale } from "./event"; | ||
|
||
export enum DurationType { | ||
Passed = "passed", //already done. | ||
Now = "now", // in the duration of event. | ||
Soon = "soon", // in the same month of event start date. | ||
Next = "next", // not start yet but plan in this year. | ||
NextYear = "nextYear", // in the next year | ||
} | ||
|
||
export type SelectedFilterType = { | ||
onlyAvailable: boolean; | ||
eventScale: (typeof EventScale)[keyof typeof EventScale][]; | ||
}; |
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