Initial commit: TimeClock v3 - Node.js/Vue.js Zeiterfassung
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
This commit is contained in:
25
frontend/src/main.js
Normal file
25
frontend/src/main.js
Normal file
@@ -0,0 +1,25 @@
|
||||
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')
|
||||
|
||||
Reference in New Issue
Block a user