Compare commits

..

3 Commits

Author SHA1 Message Date
mohamad
588abb1217 Refactor i18n message imports and update PWA configuration.
All checks were successful
Deploy to Production, build images and push to Gitea Registry / build_and_push (pull_request) Successful in 1m16s
2025-06-02 19:08:30 +02:00
mohamad
d150dd28c9 Update OAuth redirect URIs and API routing structure
- Changed the Google and Apple redirect URIs in the configuration to include the API version in the path.
- Reorganized the inclusion of OAuth routes in the main application to ensure they are properly prefixed and accessible.

These updates aim to enhance the API structure and ensure consistency in the authentication flow.
2025-06-02 19:08:30 +02:00
mohamad
6b54566cef Refactor API routing and update login URLs
- Updated the OAuth routes to be included under the main API prefix for better organization.
- Changed the Google login URL in the SocialLoginButtons component to reflect the new API structure.

These changes aim to improve the clarity and consistency of the API routing and enhance the login flow for users.
2025-06-02 19:08:12 +02:00
2 changed files with 12 additions and 3 deletions

View File

@ -5,7 +5,10 @@ import { BrowserTracing } from '@sentry/tracing';
import App from './App.vue'; import App from './App.vue';
import router from './router'; import router from './router';
import { createI18n } from 'vue-i18n'; import { createI18n } from 'vue-i18n';
import messages from './i18n'; import enMessages from './i18n/en.json'; // Import en.json directly
import deMessages from './i18n/de.json';
import frMessages from './i18n/fr.json';
import esMessages from './i18n/es.json';
// Global styles // Global styles
import './assets/main.scss'; import './assets/main.scss';
@ -29,7 +32,12 @@ const i18n = createI18n({
legacy: false, // Recommended for Vue 3 legacy: false, // Recommended for Vue 3
locale: 'en', // Default locale locale: 'en', // Default locale
fallbackLocale: 'en', // Fallback locale fallbackLocale: 'en', // Fallback locale
messages, messages: {
en: enMessages,
de: deMessages,
fr: frMessages,
es: esMessages,
},
}); });
const app = createApp(App); const app = createApp(App);

View File

@ -57,9 +57,10 @@ export default defineConfig({
vue(), vue(),
VitePWA(pwaOptions), VitePWA(pwaOptions),
VueI18nPlugin({ VueI18nPlugin({
include: [path.resolve(path.dirname(fileURLToPath(import.meta.url)), './src/i18n/**')], include: [path.resolve(path.dirname(fileURLToPath(import.meta.url)), './src/i18n/**.json')],
strictMessage: false, strictMessage: false,
runtimeOnly: false, runtimeOnly: false,
compositionOnly: false,
}), }),
], ],
resolve: { resolve: {