mitlist/fe/src/main.ts
mohamad 10845d2e5f
All checks were successful
Deploy to Production, build images and push to Gitea Registry / build_and_push (pull_request) Successful in 1m23s
feat: Enhance OCR processing and UI components
This commit introduces significant updates to the OCR processing logic and UI components:

- Updated the OCR extraction prompt in `config.py` to provide detailed instructions for handling shopping list images, improving accuracy in item identification and extraction.
- Upgraded the `GEMINI_MODEL_NAME` to a newer version for enhanced OCR capabilities.
- Added a new `CreateGroupModal.vue` component for creating groups, improving user interaction.
- Updated `MainLayout.vue` to integrate the new group creation modal and enhance the user menu and language selector functionality.
- Improved styling and structure in various components, including `ChoresPage.vue` and `GroupDetailPage.vue`, for better user experience and visual consistency.

These changes aim to enhance the overall functionality and usability of the application.
2025-06-09 14:04:30 +02:00

62 lines
1.4 KiB
TypeScript

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as Sentry from '@sentry/vue'
import { BrowserTracing } from '@sentry/tracing'
import App from './App.vue'
import router from './router'
import { createI18n } from 'vue-i18n'
import enMessages from './i18n/en.json'
import deMessages from './i18n/de.json'
import frMessages from './i18n/fr.json'
import esMessages from './i18n/es.json'
import nlMessages from './i18n/nl.json'
import './assets/main.scss'
import { api, globalAxios } from '@/services/api'
import { useAuthStore } from '@/stores/auth'
const i18n = createI18n({
legacy: false,
locale: 'en',
fallbackLocale: 'en',
messages: {
en: enMessages,
de: deMessages,
fr: frMessages,
es: esMessages,
nl: nlMessages,
},
})
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
Sentry.init({
app,
dsn: import.meta.env.VITE_SENTRY_DSN,
integrations: [
new BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
tracingOrigins: ['localhost', /^\//],
}),
],
tracesSampleRate: 1.0,
environment: import.meta.env.MODE,
})
const authStore = useAuthStore()
if (authStore.accessToken) {
authStore.fetchCurrentUser().catch((error) => {
console.error('Failed to initialize current user state:', error)
})
}
app.use(router)
app.use(i18n)
app.config.globalProperties.$api = api
app.config.globalProperties.$axios = globalAxios
app.mount('#app')