Files
EvoBGP/web
DenozordecandCursor e06ee880b2 fix(web): align settings with shadcn notify and superforms
WEB-07: notify вместо svelte-sonner; ui/core imports; WEB-05: zod + superforms + FormField для полей настроек.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 14:50:58 +07:00
..

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