forked from vikunja/frontend
Jef Oliver
e92559dc00
* 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> |
||
---|---|---|
.. | ||
color | ||
time | ||
attachments.ts | ||
auth.ts | ||
calculateItemPosition.ts | ||
calculateTaskPosition.test.ts | ||
case.ts | ||
checkAndSetApiUrl.ts | ||
checklistFromText.test.ts | ||
checklistFromText.ts | ||
closeWhenClickedOutside.ts | ||
createAsyncComponent.ts | ||
downloadBlob.ts | ||
fetcher.ts | ||
getBlobFromBlurHash.ts | ||
getFullBaseUrl.ts | ||
getHumanSize.ts | ||
getInheritedBackgroundColor.ts | ||
getListTitle.ts | ||
getNamespaceTitle.ts | ||
hourToDaytime.test.ts | ||
hourToDaytime.ts | ||
isAppleDevice.ts | ||
isEmail.ts | ||
markdownRenderer.ts | ||
parseDateOrNull.ts | ||
parseSubtasksViaIndention.test.ts | ||
parseSubtasksViaIndention.ts | ||
playPop.ts | ||
quickAddMagicMode.ts | ||
randomId.ts | ||
redirectToProvider.ts | ||
replaceAll.ts | ||
saveCollapsedBucketState.ts | ||
saveLastVisited.ts | ||
saveListView.ts | ||
scrollIntoView.ts | ||
setTitle.ts | ||
utils.ts |