Features: - Backend: Node.js/Express mit MySQL/MariaDB - Frontend: Vue.js 3 mit Composition API - UTC-Zeithandling für korrekte Zeiterfassung - Timewish-basierte Überstundenberechnung - Wochenübersicht mit Urlaubs-/Krankheits-/Feiertagshandling - Bereinigtes Arbeitsende (Generell/Woche) - Überstunden-Offset für historische Daten - Fixed Layout mit scrollbarem Content - Kompakte UI mit grünem Theme
26 lines
583 B
JavaScript
26 lines
583 B
JavaScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import './assets/main.css'
|
|
|
|
const app = createApp(App)
|
|
const pinia = createPinia()
|
|
|
|
app.use(pinia)
|
|
app.use(router)
|
|
|
|
// Session beim App-Start wiederherstellen
|
|
import { useAuthStore } from './stores/authStore'
|
|
const authStore = useAuthStore()
|
|
|
|
// Versuche Token aus localStorage zu laden
|
|
if (authStore.loadToken()) {
|
|
authStore.fetchCurrentUser().catch(err => {
|
|
console.error('Session-Wiederherstellung fehlgeschlagen:', err)
|
|
})
|
|
}
|
|
|
|
app.mount('#app')
|
|
|