Files
EvoBGP/web
Denozordec f39df7c4bf
CI / changes (push) Successful in 8s
CI / commitlint (push) Has been skipped
CI / openapi (push) Successful in 25s
CI / web (push) Successful in 32s
CI / go (push) Successful in 57s
CI / bird2 (push) Successful in 15s
CI / release (push) Successful in 3m18s
feat(revisions): add pruning estimate and cleanup endpoints
Implemented new endpoints for estimating and pruning revisions, including detailed schemas for requests and responses. The `RevisionPruneEstimate` and `RevisionPruneResult` components were added to the OpenAPI documentation, enhancing the API's functionality for managing revision retention. Updated the backend to support these operations and integrated them into the tenant settings UI for improved user interaction.
2026-06-12 21:56:36 +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