Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/course/common/consts.ts
5899 views
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { defineMessage } from "react-intl";
7
8
import { CSS } from "@cocalc/frontend/app-framework";
9
10
export const SEARCH_STYLE: CSS = { marginBottom: "0px" } as const;
11
12
// this could get translated somehow...
13
export const DUE_DATE_FILENAME = "DUE_DATE.txt";
14
15
export const STEP_NAMES = [
16
"Assign",
17
"Collect",
18
"Peer Assign",
19
"Peer Collect",
20
"Return",
21
] as const;
22
23
export type Steps = (typeof STEP_NAMES)[number];
24
25
// Relative width for the Grade column when using flex layouts.
26
export const GRADE_FLEX = "1.5";
27
28
export const STEPS_INTL = defineMessage({
29
id: "course.student-assignment-info.steps",
30
// string as select match does not work, this is the index in the STEPS array
31
defaultMessage: `{step, select,
32
0 {Assign}
33
1 {Collect}
34
2 {Peer Assign}
35
3 {Peer Collect}
36
4 {Return}
37
other {Unknown}
38
}`,
39
description:
40
"Label on a button, indicating the operation on files for a student in an online course.",
41
});
42
43
export const STEPS_INTL_ACTIVE = defineMessage({
44
id: "course.student-assignment-info.steps.active",
45
defaultMessage: `{step, select,
46
0 {Assigning}
47
1 {Collecting}
48
2 {Peer Assigning}
49
3 {Peer Collecting}
50
4 {Returning}
51
other {Unknown}
52
}`,
53
description:
54
"Label on a button, indicating the active operation on files for a student in an online course.",
55
});
56
57