mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
92 lines
2.0 KiB
TypeScript
92 lines
2.0 KiB
TypeScript
"use client";
|
|
import { AssignmentSubmissionType } from "@/features/local/assignments/models/assignmentSubmissionType";
|
|
import { LocalCourseSettings } from "@/features/local/course/localCourseSettings";
|
|
|
|
export function getAssignmentHelpString(settings: LocalCourseSettings) {
|
|
const groupNames = settings.assignmentGroups.map((g) => g.name).join("\n- ");
|
|
const helpString = `
|
|
Assignment Group Names:
|
|
- ${groupNames}
|
|
SubmissionTypes:
|
|
- ${AssignmentSubmissionType.ONLINE_TEXT_ENTRY}
|
|
- ${AssignmentSubmissionType.ONLINE_UPLOAD}
|
|
- ${AssignmentSubmissionType.DISCUSSION_TOPIC}
|
|
AllowedFileUploadExtensions:
|
|
- pdf
|
|
- jpg
|
|
- jpeg
|
|
- png
|
|
---
|
|
|
|
description goes here
|
|
|
|
|
|
## Markdown
|
|
You can use markdown to format your assignment description. For example, you can make lists like this:
|
|
- Item 1
|
|
- Item 2
|
|
- Item 3
|
|
|
|
**Bold text**
|
|
|
|
*Italic text*
|
|
|
|
[Link to Canvas](https://canvas.instructure.com)
|
|
|
|
|
|
\`Inline code\`
|
|
|
|
> Blockquote
|
|
|
|
---
|
|
|
|
1. First item
|
|
2. Second item
|
|
3. Third item
|
|
|
|
you can make mermaid diagrams like this:
|
|
|
|
\`\`\`mermaid
|
|
flowchart TD
|
|
A[Christmas] -->|Get money| B(Go shopping)
|
|
B --> C{Let me think}
|
|
C -->|One| D[Laptop]
|
|
C -->|Two| E[iPhone]
|
|
C -->|Three| F[fa:fa-car Car]
|
|
\`\`\`
|
|
|
|
## LaTeX Math
|
|
|
|
**Inline math:** The Fibonacci sequence is defined as: \$F(n) = F(n-1) + F(n-2)\$ where \$F(0) = 0\$ and \$F(1) = 1\$.
|
|
|
|
**Block math:**
|
|
\$\$F(n) = F(n-1) + F(n-2)\$\$
|
|
|
|
**Complex equations:**
|
|
\$\$
|
|
F(n) = \\begin{cases}
|
|
0 & \\text{if } n = 0 \\\\
|
|
1 & \\text{if } n = 1 \\\\
|
|
F(n-1) + F(n-2) & \\text{if } n > 1
|
|
\\end{cases}
|
|
\$\$
|
|
|
|
## github classroom links will be replaced by the GithubClassroomAssignmentShareLink setting
|
|
|
|
[Github Classroom](insert_github_classroom_url)
|
|
|
|
## Files
|
|
|
|
If you have mounted a folder in the /app/public/images directory, you can link to files like this:
|
|
|
|

|
|
|
|
## Rubric
|
|
|
|
- 1pt: singular point
|
|
- 1pts: plural points
|
|
- 10pts: (extra credit) extra credit points
|
|
- 10pts: (Extra Credit) Caps also works`;
|
|
return helpString;
|
|
}
|