Lead Radar: исходный код

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
yuriandClaude Opus 5.5 committed 2026-10-25 23:11:04 +04:00
commit 9749da5ae7
201 files changed
+97685

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
import './index.css';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router';
import { ApiError } from './api.ts';
import { App } from './App.tsx';
import { LangProvider } from './i18n.tsx';
import { telegramSignIn } from './telegram.ts';
// Тема применяется до первого кадра, чтобы светлая не мигала тёмной.
if (localStorage.getItem('lr_theme') === 'light') document.documentElement.dataset.theme = 'light';
const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 30_000,
refetchOnWindowFocus: false,
retry: (count, error) => !(error instanceof ApiError && error.status < 500) && count < 1,
},
},
});
await telegramSignIn();
createRoot(document.getElementById('root')!).render(
<StrictMode>
<QueryClientProvider client={queryClient}>
<LangProvider>
<BrowserRouter>
<App />
</BrowserRouter>
</LangProvider>
</QueryClientProvider>
</StrictMode>,
);