diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index ebbe9da6..6a20bda1 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -46,11 +46,13 @@ "form-data": "^4.0.0", "hotkeys-js": "^3.11.2", "html-to-image": "^1.11.11", + "html2pdf.js": "^0.10.2", "js-yaml": "^4.1.0", "lodash": "^4.17.21", "openai-edge": "^1.2.2", + "papaparse": "^5.4.1", "pluralize": "^8.0.0", - "posthog-js": "^1.141.4", + "posthog-js": "^1.155.0", "shared": "workspace:*", "sirv": "^2.0.3", "stripe": "^14.22.0", diff --git a/apps/dashboard/src/lib/utils/translations/de.json b/apps/dashboard/src/lib/utils/translations/de.json index 6a4aec0c..abc20397 100644 --- a/apps/dashboard/src/lib/utils/translations/de.json +++ b/apps/dashboard/src/lib/utils/translations/de.json @@ -475,7 +475,11 @@ "title": "Markierungen", "student": "Student", "total": "Gesamt", - "no_student": "Kein Student hinzugefügt" + "no_student": "Kein Student hinzugefügt", + "export": { + "csv": "Als CSV exportieren", + "pdf": "Als PDF exportieren" + } }, "submissions": { "title": "Eingereichte Übungen", diff --git a/apps/dashboard/src/lib/utils/translations/en.json b/apps/dashboard/src/lib/utils/translations/en.json index 392dccb0..4241db9b 100644 --- a/apps/dashboard/src/lib/utils/translations/en.json +++ b/apps/dashboard/src/lib/utils/translations/en.json @@ -801,6 +801,10 @@ "title": "Marks", "student": "Student", "total": "Total", + "export": { + "csv": "Export as CSV", + "pdf": "Export as PDF" + }, "no_student": "No Student Added" }, diff --git a/apps/dashboard/src/lib/utils/translations/es.json b/apps/dashboard/src/lib/utils/translations/es.json index 6a0fa929..fe8c7ea0 100644 --- a/apps/dashboard/src/lib/utils/translations/es.json +++ b/apps/dashboard/src/lib/utils/translations/es.json @@ -475,7 +475,11 @@ "title": "Marcas", "student": "Alumno", "total": "Total", - "no_student": "No se agregó ningún estudiante" + "no_student": "No se agregó ningún estudiante", + "export": { + "csv": "Exportar como CSV", + "pdf": "Exportar como PDF" + } }, "submissions": { "title": "Ejercicios enviados", diff --git a/apps/dashboard/src/lib/utils/translations/fr.json b/apps/dashboard/src/lib/utils/translations/fr.json index 9b95e089..4b2738a3 100644 --- a/apps/dashboard/src/lib/utils/translations/fr.json +++ b/apps/dashboard/src/lib/utils/translations/fr.json @@ -475,7 +475,11 @@ "title": "Des marques", "student": "Étudiant", "total": "Total", - "no_student": "Aucun étudiant ajouté" + "no_student": "Aucun étudiant ajouté", + "export": { + "csv": "Exporter au format CSV", + "pdf": "Exporter au format PDF" + } }, "submissions": { "title": "Exercices soumis", diff --git a/apps/dashboard/src/lib/utils/translations/hi.json b/apps/dashboard/src/lib/utils/translations/hi.json index 7a8f9d66..77a77171 100644 --- a/apps/dashboard/src/lib/utils/translations/hi.json +++ b/apps/dashboard/src/lib/utils/translations/hi.json @@ -475,7 +475,11 @@ "title": "निशान", "student": "विद्यार्थी", "total": "कुल", - "no_student": "कोई छात्र नहीं जोड़ा गया" + "no_student": "कोई छात्र नहीं जोड़ा गया", + "export": { + "csv": "सीएसवी के रूप में निर्यात करें", + "pdf": "पीडीएफ के रूप में निर्यात करें" + } }, "submissions": { "title": "प्रस्तुत अभ्यास", diff --git a/apps/dashboard/src/lib/utils/translations/pt.json b/apps/dashboard/src/lib/utils/translations/pt.json index 52dcef55..1fc910c5 100644 --- a/apps/dashboard/src/lib/utils/translations/pt.json +++ b/apps/dashboard/src/lib/utils/translations/pt.json @@ -475,7 +475,11 @@ "title": "Marcas", "student": "Estudante", "total": "Total", - "no_student": "Nenhum aluno adicionado" + "no_student": "Nenhum aluno adicionado", + "export": { + "csv": "Exportar como CSV", + "pdf": "Exportar como PDF" + } }, "submissions": { "title": "Exercícios enviados", diff --git a/apps/dashboard/src/lib/utils/translations/ru.json b/apps/dashboard/src/lib/utils/translations/ru.json index 927ed73d..1891eb36 100644 --- a/apps/dashboard/src/lib/utils/translations/ru.json +++ b/apps/dashboard/src/lib/utils/translations/ru.json @@ -475,7 +475,11 @@ "title": "Метки", "student": "Студент", "total": "Общий", - "no_student": "Студент не добавлен" + "no_student": "Студент не добавлен", + "export": { + "csv": "Экспортировать в формате CSV", + "pdf": "Экспортировать в PDF" + } }, "submissions": { "title": "Отправленные упражнения", diff --git a/apps/dashboard/src/lib/utils/translations/vi.json b/apps/dashboard/src/lib/utils/translations/vi.json index b026bda4..e649db93 100644 --- a/apps/dashboard/src/lib/utils/translations/vi.json +++ b/apps/dashboard/src/lib/utils/translations/vi.json @@ -475,7 +475,11 @@ "title": "Điểm", "student": "Học sinh", "total": "Tổng cộng", - "no_student": "Không có sinh viên nào được thêm vào" + "no_student": "Không có sinh viên nào được thêm vào", + "export": { + "csv": "Xuất dưới dạng CSV", + "pdf": "Xuất dưới dạng PDF" + } }, "submissions": { "title": "Bài tập đã gửi", diff --git a/apps/dashboard/src/routes/courses/[id]/marks/+page.svelte b/apps/dashboard/src/routes/courses/[id]/marks/+page.svelte index 2e473da4..aef7dbcb 100644 --- a/apps/dashboard/src/routes/courses/[id]/marks/+page.svelte +++ b/apps/dashboard/src/routes/courses/[id]/marks/+page.svelte @@ -1,6 +1,10 @@