CI / changes (push) Successful in 7s
CI / openapi (push) Has been skipped
CI / web (push) Successful in 29s
CI / go (push) Has been skipped
CI / docker-web (push) Successful in 1m22s
CI / docker-bird (push) Has been skipped
CI / bird2 (push) Has been skipped
CI / docker-go (push) Has been skipped
- Standardized formatting in various Svelte components for better readability. - Updated README.md and .prettierrc for consistent styling and improved documentation. - Refactored class attributes in UI components to enhance clarity and maintainability. - Adjusted layout files to ensure proper alignment and spacing in the application interface.
31 lines
1.5 KiB
Markdown
31 lines
1.5 KiB
Markdown
# EvoBGP WebUI
|
|
|
|
SvelteKit-приложение панели управления EvoBGP. Запуск — [docs/quickstart.md](../docs/quickstart.md).
|
|
|
|
Разработка UI **обязательно** следует официальной документации [shadcn-svelte](https://shadcn-svelte.com/docs) и правилам репозитория [.cursor/rules/web-shadcn.mdc](../.cursor/rules/web-shadcn.mdc): максимум нативных компонентов из registry, установка только через CLI в `src/lib/ui/core/`.
|
|
|
|
## UI-архитектура
|
|
|
|
| Путь | Назначение |
|
|
| ------------------------ | ------------------------------------------------------------------- |
|
|
| `src/lib/ui/core/` | shadcn-svelte (только через `npx shadcn-svelte@latest add … -y -o`) |
|
|
| `src/lib/ui/app/` | Layout, PageHeader, toast (`notify`) |
|
|
| `src/lib/ui/patterns/` | FormField, AppDataTable, ConfirmDialog, EmptyState |
|
|
| `src/lib/components/ui/` | Re-export на `ui/core` (совместимость) |
|
|
|
|
Токены темы: `src/routes/layout.css`. Справочник: `src/lib/ui/app/tokens.md`.
|
|
|
|
## Разработка
|
|
|
|
```sh
|
|
npm install
|
|
npm run dev
|
|
npm run check
|
|
```
|
|
|
|
Добавление компонентов shadcn (из каталога `web/`):
|
|
|
|
```sh
|
|
npx shadcn-svelte@latest add <component> -y -o
|
|
```
|