frontend/src/helpers
Jef Oliver e92559dc00
fix(base): Use Build Time Base Path
* If a base path is provided at build time, use it.
  * Base path can be set with `VIKUNJA_FRONTEND_BASE` at
    build time
    * `VIKUNJA_FRONTEND_BASE` sets `import.meta.env.BASE_URL` after Vite resolves it.
    * Usages of `import.meta.env.BASE_URL` are statically replaced
      at build time.
    * If base path is not provided, `import.meta.env.BASE_URL`
      defaults to '/'.
    * Documentation:
      https://vitejs.dev/guide/env-and-mode.html

* Fixes:
  * Manifest not loading because of incorrect path.
  * Service Worker not loading because path is incorrect in
    manifest.
  * Service Worker crashing because import of workbox is from
    wrong path.
  * Service Worker not loading a task because path is incorrect
    in event listener.
  * Incorrect URLs being set on window because base path is
    incorrect.
    * ex: `/login` vs `/base/login`

Signed-off-by: Jef Oliver <jef@eljef.me>
2023-02-03 09:21:06 +01: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 feat: port config store to pinia 2022-09-23 13:30:09 +02: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
getListTitle.ts feat: improve models 2022-09-13 14:59:02 +00:00
getNamespaceTitle.ts feat: improve models 2022-09-13 14:59:02 +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(task): pass a list specified via quick add magic down to all subtasks created via indention 2022-12-02 18:39:52 +01:00
parseSubtasksViaIndention.ts fix(task): pass a list specified via quick add magic down to all subtasks created via indention 2022-12-02 18:39:52 +01:00
playPop.ts fix: pop sound not saved and played when marking tasks done 2022-02-26 14:48:46 +01: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: ListKanban script setup (#2643) 2022-11-07 17:23:11 +00:00
saveLastVisited.ts fix: redirect with query parameters 2022-10-23 13:12:04 +02:00
saveListView.ts feat: add type info 2022-11-01 13:12:12 +01: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