arm-core/web/src/index.tsx
Andrey Epifancev 175343b843 fix(web): вернуть синхронизацию фронта #139/#140, затёртую в ветке шахматки (ревью #158)
Коммит 7891430 откатил синхронизацию фронта (5bec434, #139/#140) и форматирование Prettier (#137).
Из origin/main восстановлены файлы, не относящиеся к шахматке:
- index.tsx (тема antd: Layout.fontSize, Form.labelFontSize/labelColor);
- layouts/DocumentPage.tsx (переключатель документа, комментарий к документу);
- services/api: consolidations.ts (getChecklist), documents.ts (postComment), files.ts (removeFile),
  directories/catalogue_jur.ts; types/consolidations/version_members.ts (ChecklistBackendShape);
- widgets: ConsoleLegalEntities (ChecklistModal, checklist_utils), FilesDrawer (DeleteModal, ReplaceDocModal,
  documentRows), DocumentReview (CommentModal, StatementReview, reviewCounters, reviewView),
  CatalogueJurForm, CatalogueJurTable, CompanyGroupsList;
- hooks/useVirtualList.tsx и components/TableTag/presets.tsx (форматирование Prettier).

В файлах шахматки оставлены её изменения: App.tsx, layouts/index.ts, api/client.ts (init в apiFetchBlob), OsvTabs.tsx,
ConsolidatedOsvContent.tsx. Из main возвращён key={version_id}: страница отчёта разделена на обёртку с key и
содержимое, чтобы при смене версии состояние (карточка, фильтры, страница) создавалось заново, как в ConsolidatedOsvPage.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 14:04:19 +04:00

61 lines
1.3 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 locale from 'antd/locale/ru_RU';
import dayjs from 'dayjs';
import App from './App';
import 'dayjs/locale/ru';
dayjs.locale('ru');
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error('Не найден корневой элемент #root');
}
createRoot(rootElement).render(
// <StrictMode>
<ConfigProvider
locale={locale}
theme={{
token: {
colorPrimary: 'rgba(46, 166, 75, 0.8)',
fontFamily: 'Geist',
// colorPrimaryHover: "black",
colorBgLayout: 'rgb(247, 248, 250)',
colorBgTextHover: '#f8fafc',
},
components: {
Layout: {
siderBg: '#fff',
fontSize: 13,
},
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)',
},
Form: {
labelFontSize: 12,
labelColor: '#667085',
},
},
}}>
<App />
</ConfigProvider>,
// </StrictMode>,
);