frontend/src/helpers
konrad 6c999ad148 fix: ensure same protocol for configured api url (#3303)
Resolves https://github.com/go-vikunja/frontend/issues/109

Vikunja would save the api url with `http` instead of `https` when the frontend was accessed via https. This was fine in most cases when the server would redirect all requests made to http to the secure https variant. However, in newer Firefox versions (and soon, Chrome probably as well) the browser would not follow that redirect anymore. Hence, we need to make sure to only make api requests to the same protocol. Doing API requests from an https hosted fronted to an http hosted api would probably fail already anyway.

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/frontend#3303
Reviewed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-authored-by: konrad <k@knt.li>
Co-committed-by: konrad <k@knt.li>
2023-03-26 19:18:47 +00:00
..
color feat: update ganttastic version 2022-10-27 17:45:29 +02:00
time fix(quick add magic): correctly parse "next {weekday}" on the beginning of the text 2023-01-29 15:32:01 +01:00
attachments.ts feat: update eslint config 2022-10-04 13:45:16 +02:00
auth.ts feat: rename http-common to fetcher (#2620) 2022-11-01 13:06:27 +00:00
calculateItemPosition.ts feat: update eslint config 2022-10-04 13:45:16 +02:00
calculateTaskPosition.test.ts feat: replace jest with vitest 2022-01-04 14:16:47 +01:00
case.ts feat: type improvements 2022-10-31 22:42:28 +01:00
checkAndSetApiUrl.ts fix: ensure same protocol for configured api url (#3303) 2023-03-26 19:18:47 +00:00
checklistFromText.test.ts feat: replace jest with vitest 2022-01-04 14:16:47 +01:00
checklistFromText.ts fix: checklist update not working 2021-12-05 14:18:59 +01:00
closeWhenClickedOutside.ts feat: type improvements 2022-10-31 22:42:28 +01:00
createAsyncComponent.ts chore(gantt): wip daterange 2022-10-27 17:46:28 +02:00
downloadBlob.ts User Data Export and import (#699) 2021-09-04 19:26:38 +00:00
fetcher.ts feat: rename http-common to fetcher (#2620) 2022-11-01 13:06:27 +00:00
getBlobFromBlurHash.ts feat: use blurHash when loading list backgrounds (#1188) 2022-04-02 15:05:30 +00:00
getFullBaseUrl.ts fix(base): Use Build Time Base Path 2023-02-03 09:21:06 +01:00
getHumanSize.ts feat: add modelTypes 2022-09-05 17:57:21 +02:00
getInheritedBackgroundColor.ts feat: add-task usability improvements (#2767) 2023-01-04 15:54:09 +00:00
getNamespaceTitle.ts feat: rename list to project everywhere 2023-03-14 14:04:23 +00:00
getProjectTitle.ts feat: rename list to project everywhere 2023-03-14 14:04:23 +00:00
hourToDaytime.test.ts fix: move hourToDaytime to separate file in order to pass tests 2022-10-17 12:35:47 +02:00
hourToDaytime.ts fix: move hourToDaytime to separate file in order to pass tests 2022-10-17 12:35:47 +02:00
isAppleDevice.ts fix: uppercase types (#1810) 2022-04-18 17:32:40 +00:00
isEmail.ts fix: uppercase types (#1810) 2022-04-18 17:32:40 +00:00
markdownRenderer.ts feat: add type info 2022-11-01 13:12:12 +01:00
parseDateOrNull.ts feat: type improvements 2022-10-31 22:42:28 +01:00
parseSubtasksViaIndention.test.ts fix: rename list to project for parsing subtasks via indention 2023-03-16 19:25:04 +01:00
parseSubtasksViaIndention.ts chore(parseSubtasksViaIndention): fix comment (#3259) 2023-03-18 07:41:36 +00:00
playPop.ts fix: pop sound not saved and played when marking tasks done 2022-02-26 14:48:46 +01:00
projectView.ts fix: make sure redirects to a saved view work as intended 2023-03-14 14:04:23 +00:00
quickAddMagicMode.ts feat: enable quick add magic by default 2022-06-30 16:45:04 +02:00
randomId.ts feat: editor script setup 2022-10-04 09:41:59 +02:00
redirectToProvider.ts redirect to oidc provider if configured correctly (#2805) 2023-01-11 21:17:53 +00:00
replaceAll.ts feat: convert some helpers to typescript 2022-04-02 17:16:58 +02:00
saveCollapsedBucketState.ts feat: rename list to project everywhere 2023-03-14 14:04:23 +00:00
saveLastVisited.ts fix: redirect with query parameters 2022-10-23 13:12:04 +02:00
scrollIntoView.ts feat: TaskDetail as script setup (#1792) 2022-10-01 15:02:35 +00:00
setTitle.ts fix ts errors in various files 2022-01-30 16:53:46 +01:00
utils.ts feat: move select filters to dedicated components 2022-11-10 17:11:56 +01:00