CI / changes (push) Successful in 17s
CI / commitlint (push) Has been skipped
CI / openapi (push) Successful in 26s
CI / web (push) Successful in 46s
CI / go (push) Successful in 1m1s
CI / bird2 (push) Successful in 17s
CI / release (push) Failing after 2m22s
Web UI полностью переведён с SvelteKit на новый стек: React 19, TanStack Router/Query/Table/Virtual, shadcn/ui (base-nova) и ReUI enterprise-компоненты (data-grid, filters, autocomplete). Новый код разложен по слоям: packages/ui (shadcn-примитивы), apps/web (роуты, shared-обёртки, ReUI-адаптации). BREAKING CHANGE: меняется структура и инструментинг фронтенда. - apps/web/ — новый Vite + React-проект (@evobgp/web), file-based роуты TanStack Router; экраны dashboard, modules, monitoring, network, operations, schedule, settings, tenant-settings, access, directories. - packages/ui/ — shadcn/ui-примитивы (@evobgp/ui) с общими стилями globals.css и cn-утилитой; CLI shadcn запускается из apps/web. - apps/web/src/components/reui/ — enterprise-паттерны ReUI. - pnpm workspace (pnpm-workspace.yaml, pnpm-lock.yaml, tsconfig.base.json) заменяет npm-проект в web/. - web/ переименован в web-legacy-svelte/ (архив-референс для миграции); импорты оттуда запрещены правилом WEB-22. - CI (.gitea/workflows/ci.yaml): job web переведён на Node 22 + pnpm 10 (typecheck/lint/build через pnpm --filter @evobgp/web); пути триггеров обновлены под apps/web|packages/ui. - deploy/docker/evobgp-web/Dockerfile: сборка из корня репозитория, pnpm install --frozen-lockfile, выход dist из apps/web/dist. - .cursor/rules/web-shadcn.mdc, context7-stack.mdc, engineering.mdc, AGENTS.md — обновлены под React-стек (WEB-01..WEB-22, DOC-SYNC-06/07). Проверки WEB-19 локально: typecheck, lint, build — exit 0. Co-authored-by: Cursor <[email protected]>
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
import { createFileRoute, Link } from '@tanstack/react-router'
|
|
import { Card, CardContent } from '@evobgp/ui/components/card'
|
|
import { Button } from '@evobgp/ui/components/button'
|
|
import { PageHeader } from '@/components/page-header'
|
|
|
|
export const Route = createFileRoute('/_auth/modules/new')({
|
|
component: NewModuleComponent,
|
|
})
|
|
|
|
function NewModuleComponent() {
|
|
return (
|
|
<div className="mx-auto flex max-w-3xl flex-col gap-6">
|
|
<PageHeader
|
|
title="Новый модуль"
|
|
description="Создание модуля — через API или будущая форма"
|
|
/>
|
|
<Card>
|
|
<CardContent className="flex flex-col gap-3 py-6 text-sm text-muted-foreground">
|
|
<p>
|
|
Форма создания модуля будет добавлена позже. Сейчас модули можно создать через API:
|
|
</p>
|
|
<pre className="overflow-x-auto rounded-md border bg-muted/40 p-3 font-mono text-xs">
|
|
{`POST /v1/modules
|
|
{ "type": "DOMAINS", "name": "Мой список" }`}
|
|
</pre>
|
|
<Button variant="outline" size="sm" className="self-start" render={<Link to="/modules" />}>
|
|
Назад к списку
|
|
</Button>
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
)
|
|
}
|