From aaf991a326eba71f28428c9469f2013cabcbeaca Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sun, 21 Jul 2024 16:10:01 +0200 Subject: [PATCH] made sure that credentials are always omitted and that retrys are every second --- webclient/app/components/AppSearchBar.vue | 3 ++- webclient/app/components/CalendarFull.vue | 4 ++-- webclient/app/pages/[view]/[id].vue | 3 ++- webclient/app/pages/search.vue | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/webclient/app/components/AppSearchBar.vue b/webclient/app/components/AppSearchBar.vue index c1606f470..a930bc75f 100644 --- a/webclient/app/components/AppSearchBar.vue +++ b/webclient/app/components/AppSearchBar.vue @@ -119,8 +119,9 @@ const url = computed(() => { const { data, error } = await useFetch(url, { key: "search", dedupe: "cancel", + credentials: "omit", retry: 120, - retryDelay: 5000, + retryDelay: 1000, }); diff --git a/webclient/app/components/CalendarFull.vue b/webclient/app/components/CalendarFull.vue index fea7fef68..b891631e3 100644 --- a/webclient/app/components/CalendarFull.vue +++ b/webclient/app/components/CalendarFull.vue @@ -53,9 +53,9 @@ async function fetchEvents(arg: EventSourceFuncArg): Promise { const data = await $fetch(url, { method: "POST", body: body, - retry: 120, - retryDelay: 5000, credentials: "omit", + retry: 120, + retryDelay: 1000, headers: { "Content-Type": "application/json" }, }); extractInfos(data); diff --git a/webclient/app/pages/[view]/[id].vue b/webclient/app/pages/[view]/[id].vue index a702e35b2..2598fbaea 100644 --- a/webclient/app/pages/[view]/[id].vue +++ b/webclient/app/pages/[view]/[id].vue @@ -27,8 +27,9 @@ const url = computed(() => `${runtimeConfig.public.apiURL}/api/get/${route.param const { data, error } = useFetch(url, { key: "details", dedupe: "cancel", + credentials: "omit", retry: 120, - retryDelay: 5000, + retryDelay: 1000, }); const shownImage = ref(data.value?.imgs?.length ? data.value.imgs[0] : undefined); diff --git a/webclient/app/pages/search.vue b/webclient/app/pages/search.vue index 02d86acb0..2f778883a 100644 --- a/webclient/app/pages/search.vue +++ b/webclient/app/pages/search.vue @@ -34,8 +34,9 @@ const apiUrl = computed(() => { const { data } = useFetch(apiUrl, { key: "search", dedupe: "cancel", + credentials: "omit", retry: 120, - retryDelay: 5000, + retryDelay: 1000, }); const description = computed(() => { if (!data.value) return "";