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>
289 lines
5.4 KiB
CSS
289 lines
5.4 KiB
CSS
/* Navigation System - ROA2WEB */
|
|
|
|
/* Header Navigation */
|
|
.header-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.header-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--color-primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.header-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-sm);
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
transition: background-color var(--transition-fast);
|
|
}
|
|
|
|
.header-user:hover {
|
|
background-color: var(--color-bg-secondary);
|
|
}
|
|
|
|
/* Hamburger Menu */
|
|
.hamburger-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
width: 24px;
|
|
height: 18px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
.hamburger-line {
|
|
width: 100%;
|
|
height: 2px;
|
|
background-color: var(--color-text);
|
|
border-radius: 1px;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.hamburger-btn.active .hamburger-line:nth-child(1) {
|
|
transform: rotate(45deg) translate(5px, 5px);
|
|
}
|
|
|
|
.hamburger-btn.active .hamburger-line:nth-child(2) {
|
|
opacity: 0;
|
|
}
|
|
|
|
.hamburger-btn.active .hamburger-line:nth-child(3) {
|
|
transform: rotate(-45deg) translate(5px, -5px);
|
|
}
|
|
|
|
/* Slide-out Menu */
|
|
.slide-menu {
|
|
position: fixed;
|
|
top: var(--header-height);
|
|
left: 0;
|
|
width: var(--sidebar-width);
|
|
height: calc(100vh - var(--header-height));
|
|
background: var(--color-bg);
|
|
border-right: 1px solid var(--color-border);
|
|
box-shadow: var(--shadow-lg);
|
|
transform: translateX(-100%);
|
|
transition: transform var(--transition-normal);
|
|
z-index: var(--z-modal);
|
|
overflow-y: auto;
|
|
/* Flex container for profile section at bottom */
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.slide-menu.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.slide-menu-overlay {
|
|
position: fixed;
|
|
top: var(--header-height);
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all var(--transition-normal);
|
|
z-index: var(--z-modal-backdrop);
|
|
}
|
|
|
|
.slide-menu-overlay.open {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
/* Menu Content */
|
|
.menu-section {
|
|
padding: var(--space-lg);
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.menu-section:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.menu-title {
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--color-text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.menu-list {
|
|
list-style: none;
|
|
}
|
|
|
|
.menu-item {
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.menu-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-sm) var(--space-md);
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
border-radius: var(--radius-md);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.menu-link:hover,
|
|
.menu-link.active {
|
|
background-color: var(--color-bg-secondary);
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.menu-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Dashboard Switcher */
|
|
.dashboard-switcher {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.dashboard-option {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-sm) var(--space-md);
|
|
background: var(--color-bg-secondary);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.dashboard-option:hover {
|
|
background: var(--color-primary);
|
|
color: var(--color-text-inverse);
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
.dashboard-option.active {
|
|
background: var(--color-primary);
|
|
color: var(--color-text-inverse);
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
.dashboard-label {
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
.dashboard-description {
|
|
font-size: var(--text-xs);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Breadcrumb Navigation */
|
|
.breadcrumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-lg);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.breadcrumb-item {
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.breadcrumb-item:last-child {
|
|
color: var(--color-text);
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
.breadcrumb-separator {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
/* Quick Actions Toolbar */
|
|
.quick-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.quick-action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-sm) var(--space-md);
|
|
background: var(--color-bg-secondary);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
font-size: var(--text-sm);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.quick-action-btn:hover {
|
|
background: var(--color-primary);
|
|
color: var(--color-text-inverse);
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
/* Mobile Navigation */
|
|
@media (max-width: 768px) {
|
|
.header-actions {
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.quick-actions {
|
|
display: none;
|
|
}
|
|
|
|
.slide-menu {
|
|
width: 280px;
|
|
}
|
|
|
|
.menu-section {
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
.quick-action-btn {
|
|
justify-content: center;
|
|
padding: var(--space-md);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.header-brand {
|
|
font-size: var(--text-base);
|
|
}
|
|
|
|
.slide-menu {
|
|
width: 100vw;
|
|
max-width: 320px;
|
|
}
|
|
}
|