From 47321fb9fd4873042468be4942b8bf0e7cf866d4 Mon Sep 17 00:00:00 2001 From: Steven Lageveen Date: Wed, 23 Oct 2024 09:13:00 -0400 Subject: [PATCH] fixed build errors --- .../pages/admin/datawizard/datawizard.tsx | 42 +++++++++++-------- IguideME.Web/Frontend/src/mocks/entries.ts | 22 ++++++++++ IguideME.Web/Frontend/src/mocks/tiles.ts | 23 ++++++++++ charts/iguideme/Chart.yaml | 4 +- 4 files changed, 71 insertions(+), 20 deletions(-) diff --git a/IguideME.Web/Frontend/src/components/pages/admin/datawizard/datawizard.tsx b/IguideME.Web/Frontend/src/components/pages/admin/datawizard/datawizard.tsx index 65873d07..c71ae682 100644 --- a/IguideME.Web/Frontend/src/components/pages/admin/datawizard/datawizard.tsx +++ b/IguideME.Web/Frontend/src/components/pages/admin/datawizard/datawizard.tsx @@ -1,5 +1,10 @@ import { getStudentsByCourse } from '@/api/courses'; -import { getExternalAssignments, patchExternalAssignmentTitle, postExternalAssignment, deleteExternalAssignment } from '@/api/entries'; +import { + getExternalAssignments, + patchExternalAssignmentTitle, + postExternalAssignment, + deleteExternalAssignment, +} from '@/api/entries'; import AdminTitle from '@/components/atoms/admin-titles/admin-titles'; import UploadManager from '@/components/crystals/upload-manager/upload-manager'; import QueryError from '@/components/particles/QueryError'; @@ -57,6 +62,7 @@ const Wizard: FC = (): ReactElement => { id: -1, course_id: -1, title: 'Title', + html_url: '', published: 2, muted: false, due_date: -1, @@ -124,7 +130,7 @@ const ViewExternalAssignment: FC = ({ assignment, s return (
-
+
{!uploadMenuOpen && ( -
+
diff --git a/IguideME.Web/Frontend/src/mocks/entries.ts b/IguideME.Web/Frontend/src/mocks/entries.ts index b109ca1f..37a8721b 100644 --- a/IguideME.Web/Frontend/src/mocks/entries.ts +++ b/IguideME.Web/Frontend/src/mocks/entries.ts @@ -58,6 +58,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 1, course_id: 17320, title: 'Quiz 1: Anatomische termen van positie', + html_url: '', published: 0, muted: false, due_date: 1707688872519, @@ -68,6 +69,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 2, course_id: 17320, title: 'Quiz 2: Neurotransmitter systemen', + html_url: '', published: 1, muted: false, due_date: 1707688872519, @@ -78,6 +80,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 3, course_id: 17320, title: 'Quiz 3: Macro Anatomie', + html_url: '', published: 1, muted: false, due_date: 1707688872519, @@ -88,6 +91,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 4, course_id: 17320, title: 'Quiz 4: Micro anatomie', + html_url: '', published: 1, muted: false, due_date: 1707688872519, @@ -98,6 +102,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 5, course_id: 17320, title: 'Cijfers deeltoets 1', + html_url: '', published: 1, muted: false, due_date: 1707688872519, @@ -108,6 +113,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 6, course_id: 17320, title: 'Cijfers deeltoets 2', + html_url: '', published: 1, muted: false, due_date: 1707688872519, @@ -118,6 +124,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 7, course_id: 17320, title: 'Cijfer presentatie', + html_url: '', published: 1, muted: false, due_date: 1707688872519, @@ -128,6 +135,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 8, course_id: 17320, title: 'Cijfer deeltoets 3', + html_url: '', published: 1, muted: false, due_date: 1707688872519, @@ -138,6 +146,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 9, course_id: 17320, title: 'Perusall assignment 1', + html_url: '', published: 2, muted: false, due_date: 1707688872519, @@ -148,6 +157,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 10, course_id: 17320, title: 'Perusall assignment 2', + html_url: '', published: 2, muted: false, due_date: 1707688872519, @@ -158,6 +168,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 11, course_id: 17320, title: 'Perusall assignment 3', + html_url: '', published: 2, muted: false, due_date: 1707688872519, @@ -168,6 +179,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 12, course_id: 17320, title: 'Artikelen college DSM', + html_url: '', published: 1, muted: false, due_date: 1707688872519, @@ -178,6 +190,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 13, course_id: 17320, title: 'Artikelen college Alzheimer', + html_url: '', published: 1, muted: false, due_date: 1707688872519, @@ -188,6 +201,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 14, course_id: 17320, title: 'Artikelen college Migraine', + html_url: '', published: 0, muted: false, due_date: 1707688872519, @@ -198,6 +212,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 15, course_id: 17320, title: 'Artikelen college Epilepsie', + html_url: '', published: 0, muted: false, due_date: 1707688872519, @@ -208,6 +223,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 16, course_id: 17320, title: 'Artikelen college Eetstoornissen', + html_url: '', published: 0, muted: false, due_date: 1707688872519, @@ -218,6 +234,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 17, course_id: 17320, title: 'Artikelen college Pijn en Angst', + html_url: '', published: 0, muted: false, due_date: 1707688872519, @@ -228,6 +245,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 18, course_id: 17320, title: 'Artikel college MS', + html_url: '', published: 0, muted: false, due_date: 1707688872519, @@ -238,6 +256,7 @@ export const MOCK_ASSIGNMENTS: Assignment[] = [ id: 19, course_id: 17320, title: 'Artikelen college Depressie', + html_url: '', published: 0, muted: false, due_date: 1707688872519, @@ -253,6 +272,7 @@ export const MOCK_TOPICS: DiscussionTopic[] = [ course_id: 994, title: 'Third discussion', author: '46647543', + html_url: '', date: 1602173738, message: 'Discussion number 3', }, @@ -262,6 +282,7 @@ export const MOCK_TOPICS: DiscussionTopic[] = [ course_id: 994, title: 'Second discussion', author: '55571292', + html_url: '', date: 1602173834, message: 'Discussion number 2', }, @@ -271,6 +292,7 @@ export const MOCK_TOPICS: DiscussionTopic[] = [ course_id: 994, title: 'First discussion', author: '45476233', + html_url: '', date: 1602173991, message: 'Discussion number 1', }, diff --git a/IguideME.Web/Frontend/src/mocks/tiles.ts b/IguideME.Web/Frontend/src/mocks/tiles.ts index b27b5b03..7db9512b 100644 --- a/IguideME.Web/Frontend/src/mocks/tiles.ts +++ b/IguideME.Web/Frontend/src/mocks/tiles.ts @@ -98,24 +98,28 @@ export const MOCK_TILES: Tile[] = [ { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 1)!.title, + html_url: '', weight: 0.25, content_id: 1, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 2)!.title, + html_url: '', weight: 0.25, content_id: 2, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 3)!.title, + html_url: '', weight: 0.25, content_id: 3, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 4)!.title, + html_url: '', weight: 0.25, content_id: 4, }, @@ -136,18 +140,21 @@ export const MOCK_TILES: Tile[] = [ { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 9)!.title, + html_url: '', weight: 0.33, content_id: 9, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 10)!.title, + html_url: '', weight: 0.33, content_id: 10, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 11)!.title, + html_url: '', weight: 0.33, content_id: 11, }, @@ -181,48 +188,56 @@ export const MOCK_TILES: Tile[] = [ { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 12)!.title, + html_url: '', weight: 0.125, content_id: 12, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 13)!.title, + html_url: '', weight: 0.125, content_id: 13, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 14)!.title, + html_url: '', weight: 0.125, content_id: 14, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 15)!.title, + html_url: '', weight: 0.125, content_id: 15, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 16)!.title, + html_url: '', weight: 0.125, content_id: 16, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 17)!.title, + html_url: '', weight: 0.125, content_id: 17, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 18)!.title, + html_url: '', weight: 0.125, content_id: 18, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((ass) => ass.id === 19)!.title, + html_url: '', weight: 0.125, content_id: 19, }, @@ -243,24 +258,28 @@ export const MOCK_TILES: Tile[] = [ { tile_id: 1, title: MOCK_ASSIGNMENTS.find((top) => top.id === 5)!.title, + html_url: '', weight: 0.25, content_id: 5, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((top) => top.id === 6)!.title, + html_url: '', weight: 0.25, content_id: 6, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((top) => top.id === 7)!.title, + html_url: '', weight: 0.25, content_id: 7, }, { tile_id: 1, title: MOCK_ASSIGNMENTS.find((top) => top.id === 8)!.title, + html_url: '', weight: 0.25, content_id: 8, }, @@ -281,18 +300,21 @@ export const MOCK_TILES: Tile[] = [ { tile_id: 7, title: MOCK_TOPICS.find((top) => top.id === 1)!.title, + html_url: '', weight: 0.333, content_id: 1, }, { tile_id: 7, title: MOCK_TOPICS.find((top) => top.id === 2)!.title, + html_url: '', weight: 0.333, content_id: 2, }, { tile_id: 7, title: MOCK_TOPICS.find((top) => top.id === 3)!.title, + html_url: '', weight: 0.333, content_id: 3, }, @@ -313,6 +335,7 @@ export const MOCK_TILES: Tile[] = [ { tile_id: 7, title: MOCK_GOALS.find((goal) => goal.id === 1)!.title, + html_url: '', weight: 1, content_id: 1, }, diff --git a/charts/iguideme/Chart.yaml b/charts/iguideme/Chart.yaml index c526990f..6924d450 100644 --- a/charts/iguideme/Chart.yaml +++ b/charts/iguideme/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: iguideme description: IguideME type: application -version: 0.3.227 -appVersion: "0.3.227" +version: 0.3.228 +appVersion: "0.3.228"