15dcb09036
* Migrate check_copyright to Rust * Add a new lint to check accidental usages of /// in ts/svelte comments * Fix a bunch of incorrect jdoc comments * Move contributor check into minilints Will allow users to detect the issue locally with './ninja check' before pushing to CI. * Make Cargo.toml consistent with other crates
27 lines
652 B
TypeScript
27 lines
652 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
export enum CardType {
|
|
New = 0,
|
|
Learn = 1,
|
|
Review = 2,
|
|
Relearn = 3,
|
|
}
|
|
|
|
export enum CardQueue {
|
|
/** due is the order cards are shown in */
|
|
New = 0,
|
|
/** due is a unix timestamp */
|
|
Learn = 1,
|
|
/** due is days since creation date */
|
|
Review = 2,
|
|
DayLearn = 3,
|
|
/** due is a unix timestamp. */
|
|
/** preview cards only placed here when failed. */
|
|
PreviewRepeat = 4,
|
|
/** cards are not due in these states */
|
|
Suspended = -1,
|
|
SchedBuried = -2,
|
|
UserBuried = -3,
|
|
}
|