From cb8dd05cbfec745229e06ca0d800ea802632096d Mon Sep 17 00:00:00 2001 From: Ewout Verlinde Date: Tue, 9 Apr 2024 23:21:45 +0200 Subject: [PATCH] Backend Dockerfile fix (#280) (#281) * fix: copy docker file * fix: images * chore: linting * chore: cleanup --- backend/Dockerfile | 2 ++ frontend/src/components/courses/CourseDetailCard.vue | 1 + frontend/src/components/courses/CourseGeneralCard.vue | 2 +- frontend/src/vite-env.d.ts | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 996314c1..f95477dd 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -7,3 +7,5 @@ WORKDIR /code COPY pyproject.toml poetry.lock ./ RUN poetry install --only main + +COPY . ./ \ No newline at end of file diff --git a/frontend/src/components/courses/CourseDetailCard.vue b/frontend/src/components/courses/CourseDetailCard.vue index 910f9a1b..dc5689c9 100644 --- a/frontend/src/components/courses/CourseDetailCard.vue +++ b/frontend/src/components/courses/CourseDetailCard.vue @@ -17,6 +17,7 @@ const { t } = useI18n(); const images = Object.keys( import.meta.glob('@/assets/img/placeholders/*', { eager: true, + query: 'url', }), ); diff --git a/frontend/src/components/courses/CourseGeneralCard.vue b/frontend/src/components/courses/CourseGeneralCard.vue index 8243b985..aa3bf8f2 100644 --- a/frontend/src/components/courses/CourseGeneralCard.vue +++ b/frontend/src/components/courses/CourseGeneralCard.vue @@ -17,7 +17,7 @@ const { user } = storeToRefs(useAuthStore()); /* State */ const images = Object.keys( import.meta.glob('@/assets/img/faculties/*', { - eager: true, + eager: true, query: 'url' }), ); diff --git a/frontend/src/vite-env.d.ts b/frontend/src/vite-env.d.ts index 710a84d5..2dfd5544 100644 --- a/frontend/src/vite-env.d.ts +++ b/frontend/src/vite-env.d.ts @@ -1,3 +1,4 @@ // eslint-disable-next-line @typescript-eslint/triple-slash-reference /// declare module 'js-cookie'; +declare module 'jsdom';