Consolidate Reports and Data Entry apps into a single Vue.js SPA with: Architecture: - Module-based structure with lazy-loaded routes (@reports, @data-entry) - Error boundaries per module to prevent cascade failures - Dual API proxy in Vite for microservices (reports:8001, data-entry:8003) - Pinia store factories for shared auth, company, and period stores - Vite path aliases for clear module boundaries (@shared, @reports, @data-entry) Service Management: - Granular service control scripts (backend-reports.sh, backend-data-entry.sh, bot.sh, frontend.sh) - 87% faster frontend restart: 7s vs 53s full restart - 38% faster full startup: 33s vs 53s via parallel backend initialization - Enhanced start-dev.sh with proper service timeouts (OCR: 30s, Vite: 15s, Bot: 10s) - status.sh for comprehensive health checks Features: - Auto-select first company on login with period auto-load - Hamburger menu with feature toggle support - JWT token auto-injection via axios interceptors - Unified header with company/period selectors - IIS web.config for production deployment with multi-API routing UX Improvements: - Vue watchers for reactive company/period loading - Lazy store initialization with graceful error handling - Period persistence per user+company in localStorage - Feature flags for optional modules Deployment: - Single IIS site serves unified frontend with API proxy rules - Maintains separate backend processes for microservices - Windows line ending fixes (.env CRLF → LF conversion) Stats: 112 files changed, 38,342 insertions(+), 2,342 deletions(-) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
26 lines
663 B
Vue
26 lines
663 B
Vue
<template>
|
|
<LoginView
|
|
app-title="ROA2WEB"
|
|
app-subtitle="Sistem Unificat - Rapoarte & Introduceri Date"
|
|
app-icon="pi-chart-bar"
|
|
redirect-path="/reports/dashboard"
|
|
:auth-store="authStore"
|
|
/>
|
|
</template>
|
|
|
|
<script setup>
|
|
import LoginView from '@shared/components/LoginView.vue'
|
|
import { createAuthStore } from '@shared/stores/auth.js'
|
|
import axios from 'axios'
|
|
|
|
// API service for auth (uses reports API)
|
|
const authApi = axios.create({
|
|
baseURL: '/api/reports',
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
|
|
// Create and instantiate auth store
|
|
const useAuthStore = createAuthStore(authApi)
|
|
const authStore = useAuthStore()
|
|
</script>
|