Path: blob/master/src/packages/frontend/course/common/consts.ts
5899 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { defineMessage } from "react-intl";67import { CSS } from "@cocalc/frontend/app-framework";89export const SEARCH_STYLE: CSS = { marginBottom: "0px" } as const;1011// this could get translated somehow...12export const DUE_DATE_FILENAME = "DUE_DATE.txt";1314export const STEP_NAMES = [15"Assign",16"Collect",17"Peer Assign",18"Peer Collect",19"Return",20] as const;2122export type Steps = (typeof STEP_NAMES)[number];2324// Relative width for the Grade column when using flex layouts.25export const GRADE_FLEX = "1.5";2627export const STEPS_INTL = defineMessage({28id: "course.student-assignment-info.steps",29// string as select match does not work, this is the index in the STEPS array30defaultMessage: `{step, select,310 {Assign}321 {Collect}332 {Peer Assign}343 {Peer Collect}354 {Return}36other {Unknown}37}`,38description:39"Label on a button, indicating the operation on files for a student in an online course.",40});4142export const STEPS_INTL_ACTIVE = defineMessage({43id: "course.student-assignment-info.steps.active",44defaultMessage: `{step, select,450 {Assigning}461 {Collecting}472 {Peer Assigning}483 {Peer Collecting}494 {Returning}50other {Unknown}51}`,52description:53"Label on a button, indicating the active operation on files for a student in an online course.",54});555657