diff --git a/playwright.global-setup.mjs b/playwright.global-setup.mjs index 69caa7d0..03b1f00a 100644 --- a/playwright.global-setup.mjs +++ b/playwright.global-setup.mjs @@ -386,12 +386,21 @@ async function warmModuleGraph(entryUrl, { depth = 2, timeoutMs = 120_000 } = {} async function warmUpDevServer(url) { const warmupTargets = await buildWarmupTargets(); + const selfServeEntryModules = [ + "/src/views/dashboards/userDashboard/wash/MyWash.vue", + "/src/views/dashboards/userDashboard/wash/MyWashStart.vue", + "/src/views/dashboards/departmentDashboard/modules/self-serve/DepartmentSelfServeStudio.vue", + "/src/views/guest/book/GuestBookExteriorWash.vue", + ]; for (const target of warmupTargets) { await warmUpAsset(new URL(target.pathname, url).toString(), target.expectedContentType); } await warmModuleGraph(new URL("/src/main.js", url).toString()); + for (const entryModule of selfServeEntryModules) { + await warmModuleGraph(new URL(entryModule, url).toString(), { depth: 2 }); + } await new Promise((resolve) => setTimeout(resolve, 1000)); } diff --git a/src/App.vue b/src/App.vue index 4be08c13..db248338 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,13 +4,13 @@ import { computed, defineAsyncComponent, onMounted, watch } from "vue"; import { useHead } from "@vueuse/head"; import favicon from '@/assets/favicon.ico'; import {useRoute} from "vue-router"; -import LayoutV2 from "@/components/page/wrappers/LayoutV2.vue"; import { useI18n } from "vue-i18n"; import { hasStoredSessionToken } from "@/services/sessionStorage.js"; const route = useRoute(); const { t, te, locale } = useI18n({ useScope: "global" }); const APP_TITLE = "Truck Wash"; +const LayoutV2 = defineAsyncComponent(() => import("@/components/page/wrappers/LayoutV2.vue")); const DefaultPageWrapper = defineAsyncComponent(() => import("@/components/page/wrappers/DefaultPageWrapper.vue")); const VersionCheck = defineAsyncComponent(() => import("@/components/global/VersionCheck.vue")); const RequestQueueProgress = defineAsyncComponent(() => import("@/components/global/RequestQueueProgress.vue")); diff --git a/src/components/displays/department/tables/SelfServeTryModal.vue b/src/components/displays/department/tables/SelfServeTryModal.vue index 17feb73b..3c37fa24 100644 --- a/src/components/displays/department/tables/SelfServeTryModal.vue +++ b/src/components/displays/department/tables/SelfServeTryModal.vue @@ -62,6 +62,7 @@ const { syncVehicleAnswer, clearVehicleAnswers, evaluateCondition, + downloadAttachment, } = useSelfServeLogic(); const emptyCompletedTasks = computed(() => ({})); @@ -429,7 +430,7 @@ watch(dynamicImageUrl, () => { :completedTasks="emptyCompletedTasks" :show-checkboxes="false" @toggle-task="() => {}" - @download-attachment="() => {}" + @download-attachment="downloadAttachment" />
Ingen aktive tasks.
diff --git a/src/components/displays/selfServe/SelfServeQuestionCards.vue b/src/components/displays/selfServe/SelfServeQuestionCards.vue index 45abbbd0..c74e2f90 100644 --- a/src/components/displays/selfServe/SelfServeQuestionCards.vue +++ b/src/components/displays/selfServe/SelfServeQuestionCards.vue @@ -4,8 +4,6 @@ import WhiteBoxCard from "@/components/displays/boxes/WhiteBoxCard.vue"; defineProps<{ visibleQuestions: Array<{ id: number; question: string; description?: string }>; answers: Record