Fix local dev API wiring and theme default
This commit is contained in:
@@ -10,9 +10,9 @@ Updated: 2026-04-02
|
||||
- `compose.yaml`: Docker Compose entrypoint for the bundled panel + 3proxy runtime, including panel auth env defaults
|
||||
- `Dockerfile`: multi-stage image that builds the panel and compiles 3proxy
|
||||
- `README.md`: quick start and current project scope
|
||||
- `package.json`: frontend scripts and dependencies
|
||||
- `package.json`: frontend/backend scripts and dependencies, including combined local `dev` startup
|
||||
- `tsconfig.server.json`: server type-check configuration
|
||||
- `vite.config.ts`: Vite + Vitest configuration
|
||||
- `vite.config.ts`: Vite + Vitest configuration plus local `/api` proxy to the control-plane backend
|
||||
|
||||
## Documentation
|
||||
|
||||
@@ -23,14 +23,14 @@ Updated: 2026-04-02
|
||||
## Frontend
|
||||
|
||||
- `src/main.tsx`: application bootstrap
|
||||
- `src/App.tsx`: authenticated panel shell with API-backed login, `sessionStorage` token persistence, localized labels, theme application, and protected panel mutations
|
||||
- `src/App.tsx`: authenticated panel shell with API-backed login, `sessionStorage` token persistence, localized labels, early theme application, and protected panel mutations
|
||||
- `src/SystemTab.tsx`: Settings tab with panel language/style preferences, unified service type editing, remove confirmation, and generated config preview
|
||||
- `src/App.test.tsx`: login-gate, preferences persistence, modal interaction, pause/resume, delete-confirm, and settings-save UI tests
|
||||
- `src/app.css`: full panel styling
|
||||
- `src/data/mockDashboard.ts`: default panel state and frontend fallback snapshot
|
||||
- `src/lib/3proxy.ts`: formatting and status helpers
|
||||
- `src/lib/3proxy.test.ts`: paranoia-oriented tests for core domain rules
|
||||
- `src/lib/panelPreferences.ts`: `localStorage`-backed panel language/theme preferences plus theme application helpers
|
||||
- `src/lib/panelPreferences.ts`: `localStorage`-backed panel language/theme preferences plus theme application helpers with `system` as the default theme
|
||||
- `src/lib/panelText.ts`: English/Russian UI text catalog for the panel shell and settings flows
|
||||
- `src/shared/contracts.ts`: shared panel, service, user, and API data contracts
|
||||
- `src/shared/validation.ts`: shared validation for user creation, system edits, service type mapping, and quota conversion
|
||||
|
||||
Reference in New Issue
Block a user