Full React + MUI + TypeScript SPA at frontend/: - API client with typed interfaces for all endpoints - AuthContext (session cookies, dev impersonation) - OrgContext (org list, active org switcher) - Money formatting (cents → display, satoshis → BCH) App shell: - Sidebar navigation with collapsible Ledgers and Financial sections - Top bar with org switcher, language selector (EN/SV/DE), user chip - Material UI theme with Inter font Live data pages (connected to real migrated production data): - Dashboard: YTD P&L cards, pending tasks, quick links - Balance Sheet: date picker, assets/debts tables with totals - Profit & Loss: year selector, income/costs breakdown, net result - Chart of Accounts: grouped by type with status chips - Crypto Treasury: total balance, address table with BCH amounts - Expense Claims: list with amounts, VAT, status chips Placeholder pages for: Inspect Ledgers, Budget vs Actual, Inbound/ Outbound Invoices, Payouts, End of Month, Org Settings, User Management Vite dev server proxies /api to ASP.NET Core backend on port 5222. Made-with: Cursor
18 lines
383 B
TypeScript
18 lines
383 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: '../src/UsingCash.Api/wwwroot',
|
|
emptyOutDir: true,
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': 'http://localhost:5222',
|
|
'/ws': { target: 'ws://localhost:5222', ws: true },
|
|
},
|
|
},
|
|
})
|