multica/apps/desktop/README.md
Naiyuan Qing a8143735e9 feat(desktop): initialize electron app with routing and cleanup
Remove template boilerplate (sample SVGs, test IPC message, comments),
add react-router-dom v7 with createHashRouter, scaffold home and chat
pages using @multica/ui components, and add READMEs for desktop, ui,
and store packages documenting import conventions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:17:31 +08:00

22 lines
576 B
Markdown

# @multica/desktop
Electron desktop app. Vite + React + `createHashRouter`.
## Development
```bash
multica dev desktop
```
## Build
```bash
pnpm --filter @multica/desktop build
```
## Conventions
- **Routing**: `react-router-dom` v7 with `createHashRouter` (Electron loads via `file://`, BrowserRouter won't work). Pages go in `src/pages/`.
- **UI**: All components from `@multica/ui`. No local UI components.
- **State**: Store hooks from `@multica/store`.
- **Styles**: Tailwind CSS v4 via `@multica/ui/globals.css`, imported in `src/main.tsx`.