diff --git a/src/boot/axios.ts b/src/boot/axios.ts index 0ad51d2..68f13dd 100644 --- a/src/boot/axios.ts +++ b/src/boot/axios.ts @@ -2,10 +2,10 @@ import { defineBoot } from '#q-app/wrappers'; import axios, { type AxiosInstance } from 'axios'; declare module 'vue' { - interface ComponentCustomProperties { - $axios: AxiosInstance; - $api: AxiosInstance; - } + interface ComponentCustomProperties { + $axios: AxiosInstance; + $api: AxiosInstance; + } } // Be careful when using SSR for cross-request state pollution @@ -14,18 +14,21 @@ declare module 'vue' { // good idea to move this instance creation inside of the // "export default () => {}" function below (which runs individually // for each client) -const api = axios.create({ baseURL: import.meta.env.VITE_TARGO_BACKEND_AUTH_URL }); +const api = axios.create({ + baseURL: import.meta.env.VITE_TARGO_BACKEND_AUTH_URL, + withCredentials: true +}); export default defineBoot(({ app }) => { - // for use inside Vue files (Options API) through this.$axios and this.$api + // for use inside Vue files (Options API) through this.$axios and this.$api - app.config.globalProperties.$axios = axios; - // ^ ^ ^ this will allow you to use this.$axios (for Vue Options API form) - // so you won't necessarily have to import axios in each vue file + app.config.globalProperties.$axios = axios; + // ^ ^ ^ this will allow you to use this.$axios (for Vue Options API form) + // so you won't necessarily have to import axios in each vue file - app.config.globalProperties.$api = api; - // ^ ^ ^ this will allow you to use this.$api (for Vue Options API form) - // so you can easily perform requests against your app's API + app.config.globalProperties.$api = api; + // ^ ^ ^ this will allow you to use this.$api (for Vue Options API form) + // so you can easily perform requests against your app's API }); export { api }; diff --git a/src/i18n/en-ca/index.ts b/src/i18n/en-ca/index.ts index 922125b..ae81e67 100644 --- a/src/i18n/en-ca/index.ts +++ b/src/i18n/en-ca/index.ts @@ -25,6 +25,10 @@ export default { tooltip: { coming_soon: "coming soon!", }, + error: { + login_failed: "Failed to login", + popups_blocked: "Popups are blocked on this device", + }, }, nav_bar: { diff --git a/src/i18n/fr-ca/index.ts b/src/i18n/fr-ca/index.ts index 213d174..c4ba08a 100644 --- a/src/i18n/fr-ca/index.ts +++ b/src/i18n/fr-ca/index.ts @@ -25,6 +25,10 @@ export default { tooltip: { coming_soon: "à venir!", }, + error: { + login_failed: "Échec à la connexion", + popups_blocked: "Les fenêtres contextuelles sont bloqués sur cet appareil", + }, }, nav_bar: { diff --git a/src/layouts/components/main-layout-header-bar-notification.vue b/src/layouts/components/main-layout-header-bar-notification.vue index 89e7edf..fbef392 100644 --- a/src/layouts/components/main-layout-header-bar-notification.vue +++ b/src/layouts/components/main-layout-header-bar-notification.vue @@ -1,26 +1,33 @@ - \ No newline at end of file diff --git a/src/layouts/components/main-layout-left-drawer.vue b/src/layouts/components/main-layout-left-drawer.vue index acea4f6..e8c1259 100644 --- a/src/layouts/components/main-layout-left-drawer.vue +++ b/src/layouts/components/main-layout-left-drawer.vue @@ -1,24 +1,27 @@ -