diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 5eeabe2..defd648 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/app/components/layout/NavBar.vue b/app/components/layout/NavBar.vue index 3a508c9..a6d0db9 100644 --- a/app/components/layout/NavBar.vue +++ b/app/components/layout/NavBar.vue @@ -94,7 +94,7 @@ let logo_url = ref('') onMounted(async () => { if (settings.value && settings.value.page_logo) { - logo_url.value = await pb.files.getUrl( + logo_url.value = await pb.files.getURL( settings.value, settings.value.page_logo, ) diff --git a/app/components/user/UserIcon.vue b/app/components/user/UserIcon.vue index 9315c1d..b44fbff 100644 --- a/app/components/user/UserIcon.vue +++ b/app/components/user/UserIcon.vue @@ -39,7 +39,7 @@ const pocketbaseAuth = JSON.parse(localStorage.getItem('pocketbase_auth')) const user = ref(pocketbaseAuth.model) const dialogOpen = ref(false); const { t } = useI18n(); -const image = pb.files.getUrl(user.value, user.value.avatar, {'thumb': '100x100'}); +const image = pb.files.getURL(user.value, user.value?.avatar, {'thumb': '100x100'}); const items = [ { diff --git a/app/layouts/default.vue b/app/layouts/default.vue index f1c492a..98974cb 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -54,7 +54,7 @@ const refreshSession = async () => { const setFavicon = () => { if (!settings.value?.page_icon) return - const favUrl = pb.files.getUrl(settings.value, settings.value.page_icon) + const favUrl = pb.files.getURL(settings.value, settings.value.page_icon) let link = document.querySelector("link[rel~='icon']") || document.createElement('link') diff --git a/app/pages/login.vue b/app/pages/login.vue index e1257e8..051638d 100644 --- a/app/pages/login.vue +++ b/app/pages/login.vue @@ -18,9 +18,8 @@
Hello,
\nWe noticed a login to your {APP_NAME} account from a new location.
\nIf this was you, you may disregard this email.
\nIf this wasn't you, you should immediately change your {APP_NAME} account password to revoke access from all other locations.
\n\n Thanks,
\n {APP_NAME} team\n
Hello,
\nClick on the button below to confirm your new email address.
\n\n Confirm new email\n
\nIf you didn't ask to change your email address, you can ignore this email.
\n\n Thanks,
\n {APP_NAME} team\n
Hello,
\nYour one-time password is: {OTP}
\nIf you didn't ask for the one-time password, you can ignore this email.
\n\n Thanks,
\n {APP_NAME} team\n
Hello,
\nClick on the button below to reset your password.
\n\n Reset password\n
\nIf you didn't ask to reset your password, you can ignore this email.
\n\n Thanks,
\n {APP_NAME} team\n
Hello,
\nThank you for joining us at {APP_NAME}.
\nClick on the button below to verify your email address.
\n\n Verify\n
\n\n Thanks,
\n {APP_NAME} team\n
Hello,
\nWe noticed a login to your {APP_NAME} account from a new location.
\nIf this was you, you may disregard this email.
\nIf this wasn't you, you should immediately change your {APP_NAME} account password to revoke access from all other locations.
\n\n Thanks,
\n {APP_NAME} team\n
Hello,
\nClick on the button below to confirm your new email address.
\n\n Confirm new email\n
\nIf you didn't ask to change your email address, you can ignore this email.
\n\n Thanks,
\n {APP_NAME} team\n
Hello,
\nYour one-time password is: {OTP}
\nIf you didn't ask for the one-time password, you can ignore this email.
\n\n Thanks,
\n {APP_NAME} team\n
Hello,
\nClick on the button below to reset your password.
\n\n Reset password\n
\nIf you didn't ask to reset your password, you can ignore this email.
\n\n Thanks,
\n {APP_NAME} team\n
Hello,
\nThank you for joining us at {APP_NAME}.
\nClick on the button below to verify your email address.
\n\n Verify\n
\n\n Thanks,
\n {APP_NAME} team\n