Skip to content

Commit

Permalink
made sure that credentials are always omitted and that retrys are eve…
Browse files Browse the repository at this point in the history
…ry second
  • Loading branch information
CommanderStorm committed Jul 21, 2024
1 parent e1dd9fb commit aaf991a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion webclient/app/components/AppSearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ const url = computed(() => {
const { data, error } = await useFetch<SearchResponse>(url, {
key: "search",
dedupe: "cancel",
credentials: "omit",
retry: 120,
retryDelay: 5000,
retryDelay: 1000,
});
</script>

Expand Down
4 changes: 2 additions & 2 deletions webclient/app/components/CalendarFull.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ async function fetchEvents(arg: EventSourceFuncArg): Promise<EventInput[]> {
const data = await $fetch<CalendarResponse>(url, {
method: "POST",
body: body,
retry: 120,
retryDelay: 5000,
credentials: "omit",
retry: 120,
retryDelay: 1000,
headers: { "Content-Type": "application/json" },
});
extractInfos(data);
Expand Down
3 changes: 2 additions & 1 deletion webclient/app/pages/[view]/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ const url = computed(() => `${runtimeConfig.public.apiURL}/api/get/${route.param
const { data, error } = useFetch<DetailsResponse, string>(url, {
key: "details",
dedupe: "cancel",
credentials: "omit",
retry: 120,
retryDelay: 5000,
retryDelay: 1000,
});
const shownImage = ref<ImageInfo | undefined>(data.value?.imgs?.length ? data.value.imgs[0] : undefined);
Expand Down
3 changes: 2 additions & 1 deletion webclient/app/pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ const apiUrl = computed(() => {
const { data } = useFetch<SearchResponse>(apiUrl, {
key: "search",
dedupe: "cancel",
credentials: "omit",
retry: 120,
retryDelay: 5000,
retryDelay: 1000,
});
const description = computed(() => {
if (!data.value) return "";
Expand Down

0 comments on commit aaf991a

Please sign in to comment.