- Introduced new utility functions for date formatting and module interval labeling. - Replaced inline badge variant logic with a dedicated function for improved readability. - Updated imports to streamline component usage and enhance maintainability. - Enhanced the overall structure of the module display for better clarity and user experience.
EvoBGP WebUI
SvelteKit-приложение панели управления EvoBGP. Запуск — docs/quickstart.md.
Разработка UI обязательно следует официальной документации shadcn-svelte и правилам репозитория .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.
Разработка
npm install
npm run dev
npm run check
Добавление компонентов shadcn (из каталога web/):
npx shadcn-svelte@latest add <component> -y -o