From 49a167fb6862abda24830827adecd0cb17a14920 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Fri, 24 Jan 2025 07:56:58 -0500 Subject: [PATCH] Added whiteboard view. --- .../classroom_compliance/EntriesTable.vue | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/app/src/apps/classroom_compliance/EntriesTable.vue b/app/src/apps/classroom_compliance/EntriesTable.vue index 18c9e1c..49ee342 100644 --- a/app/src/apps/classroom_compliance/EntriesTable.vue +++ b/app/src/apps/classroom_compliance/EntriesTable.vue @@ -19,9 +19,15 @@ const props = defineProps<{ }>() const apiClient = new ClassroomComplianceAPIClient(authStore) +enum TableView { + FULL = "Full", + GRADING = "Grading", + WHITEBOARD = "Whiteboard" +} + const students: Ref = ref([]) const sortingChoice: Ref = ref('name') -const gradingView = ref(false) +const selectedView: Ref = ref(TableView.FULL) const lastSaveState: Ref = ref(null) const lastSaveStateTimestamp: Ref = ref(0) @@ -207,32 +213,39 @@ function addAllEntriesForDate(dateStr: string) { - - + - +
- - + + + - + - + +
Student DeskScoreScore
@@ -245,7 +258,7 @@ function addAllEntriesForDate(dateStr: string) { width: 100%; } -.entries-table-grading-view { +.entries-table-reduced-view { width: auto; max-width: 100%; }