arm-web/src/index.tsx
Andrey Epifancev 841299b12b chore: убрано наследие старого АРМ, vitest, зелёный make check (#3)
Удалены экраны и моки старого АРМ (FileViewer, FilesList, FileUploaderModel,
PDFResultViewer, mocks.ts), рендер PDF перенесён в widgets/DocumentReview/PdfPages.tsx.
Подключён vitest (npm test, make test, в make check). Исправлены все ошибки tsc и biome:
типизированы ответы api.get, слайсы и thunks, убраны console.log и пустые catch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EAKRDNzXtRrwmWz9z6PZu3
2026-10-08 00:45:53 +04:00

49 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createRoot } from 'react-dom/client';
import './index.css';
import { ConfigProvider } from 'antd';
import App from './App';
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error('Не найден корневой элемент #root');
}
createRoot(rootElement).render(
// <StrictMode>
<ConfigProvider
theme={{
token: {
colorPrimary: 'rgba(46, 166, 75, 0.8)',
fontFamily: 'Geist',
// colorPrimaryHover: "black",
colorBgLayout: 'rgb(247, 248, 250)',
colorBgTextHover: '#f8fafc',
},
components: {
Layout: {
siderBg: '#fff',
},
Button: {
defaultBorderColor: '#c7cdd5',
defaultHoverBg: '#f8fafc',
defaultHoverColor: 'black',
defaultHoverBorderColor: '#c7cdd5',
fontWeight: 500,
},
Input: {
activeBorderColor: 'rgba(46, 166, 75, 0.35)',
activeShadow: '0 0 0 1px #2ea64b59,0 1px 2px #0000000f',
hoverBorderColor: 'rgba(46, 166, 75, 0.35)',
},
Table: {
headerColor: '#667085',
headerBg: 'rgb(248, 250, 252)',
},
},
}}
>
<App />
</ConfigProvider>,
// </StrictMode>,
);