CI / changes (push) Successful in 10s
CI / commitlint (push) Has been skipped
CI / openapi (push) Successful in 27s
CI / web (push) Successful in 38s
CI / go (push) Successful in 2m36s
CI / bird2 (push) Successful in 15s
CI / release (push) Failing after 3m7s
Refactored the project structure to support a monorepo setup, moving the web application to `apps/web/` and updating related configurations. Adjusted pre-commit hooks to use `pnpm` for linting and formatting. Updated CI workflows to reflect the new directory structure and dependencies. Removed legacy files and configurations from the previous `web/` directory, streamlining the project for better maintainability and clarity.
41 lines
1.5 KiB
Markdown
41 lines
1.5 KiB
Markdown
# EvoBGP WebUI (`@evobgp/web`)
|
|
|
|
SvelteKit-панель управления EvoBGP. Monorepo: `apps/web` + `packages/ui` + `packages/shared`.
|
|
|
|
Правила: [.cursor/rules/web-shadcn.mdc](../../.cursor/rules/web-shadcn.mdc), [frontend-monorepo.mdc](../../.cursor/rules/frontend-monorepo.mdc).
|
|
|
|
## Структура
|
|
|
|
| Путь | Назначение |
|
|
| ------------------------------ | ------------------------------------------- |
|
|
| `packages/ui/src/components/` | shadcn-svelte примитивы (`@evobgp/ui`) |
|
|
| `src/lib/components/` | PageShell, QueryState, SectionCards, domain |
|
|
| `src/lib/components/patterns/` | AppDataTable, FormField, ConfirmDialog |
|
|
| `src/lib/ui/app/` | PageHeader, nav, toast |
|
|
| `src/lib/queries/` | TanStack Query factories |
|
|
| `packages/shared/` | API types + Zod contracts |
|
|
|
|
## Разработка
|
|
|
|
Из корня репозитория:
|
|
|
|
```powershell
|
|
pnpm install
|
|
pnpm --filter @evobgp/web dev
|
|
pnpm --filter @evobgp/web check
|
|
pnpm --filter @evobgp/web lint
|
|
pnpm --filter @evobgp/web build
|
|
```
|
|
|
|
Добавление shadcn-svelte (из `apps/web/`):
|
|
|
|
```powershell
|
|
pnpm dlx shadcn-svelte@latest add <component> -y -o
|
|
```
|
|
|
|
Тема: `packages/ui/src/styles/globals.css` → импорт в `src/routes/layout.css`.
|
|
|
|
## Проверка перед PR
|
|
|
|
`pnpm --filter @evobgp/web check` и `lint` — exit 0 (WEB-19).
|