Files
EvoBGP/web-legacy-svelte
Denozordec 3859983ae5
CI / changes (push) Successful in 7s
CI / commitlint (push) Skipped
CI / openapi (push) Skipped
CI / web (push) Successful in 1m7s
CI / go (push) Successful in 2m11s
CI / bird2 (push) Successful in 17s
CI / release (push) Successful in 3m46s
refactor: update UI components to utilize Frame for improved layout and consistency
Refactored multiple components, including PanelCard, SettingsCard, and DataGridShell, to replace Card with Frame for better organization and presentation. Enhanced the DataGridToolbar to support optional ReUI filters and improved the overall structure of the KPI stat grid. Updated .gitignore to include .env.local for local environment configurations, ensuring better management of environment variables.
2026-07-17 15:30:41 +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
npm run lint          # prettier --check; обязательно перед PR (CI job web)

Из корня репозитория (обе проверки как в CI):

powershell -NoProfile -File scripts/lint-web.ps1
sh scripts/lint-web.sh

При падении lint: npx prettier --write . в каталоге web/, затем снова check + lint.

Добавление компонентов shadcn (из каталога web/):

npx shadcn-svelte@latest add <component> -y -o