CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/course/common/consts.ts
Views: 687
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
export const STEPS_INTL = defineMessage({
26
id: "course.student-assignment-info.steps",
27
// string as select match does not work, this is the index in the STEPS array
28
defaultMessage: `{step, select,
29
0 {Assign}
30
1 {Collect}
31
2 {Peer Assign}
32
3 {Peer Collect}
33
4 {Return}
34
other {Unknown}
35
}`,
36
description:
37
"Label on a button, indicating the operation on files for a student in an online course.",
38
});
39
40
export const STEPS_INTL_ACTIVE = defineMessage({
41
id: "course.student-assignment-info.steps.active",
42
defaultMessage: `{step, select,
43
0 {Assigning}
44
1 {Collecting}
45
2 {Peer Assigning}
46
3 {Peer Collecting}
47
4 {Returning}
48
other {Unknown}
49
}`,
50
description:
51
"Label on a button, indicating the active operation on files for a student in an online course.",
52
});
53
54