- Added support for Google Gemini, OpenAI, Anthropic, and Azure OpenAI - Implemented API key validation with auto model detection - Added Error Boundary for better error handling - Migrated PDF generation to native jsPDF (better quality) - Added PWA support with offline capabilities - Implemented tests with Vitest - Fixed language consistency (PT-BR) - Improved accessibility (ARIA)
22 lines
577 B
TypeScript
22 lines
577 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import App from './App';
|
|
import { ThemeProvider } from './context/ThemeContext';
|
|
import { ErrorBoundary } from './components/ErrorBoundary';
|
|
import './index.css';
|
|
|
|
const rootElement = document.getElementById('root');
|
|
if (!rootElement) {
|
|
throw new Error("Could not find root element to mount to");
|
|
}
|
|
|
|
const root = ReactDOM.createRoot(rootElement);
|
|
root.render(
|
|
<React.StrictMode>
|
|
<ErrorBoundary>
|
|
<ThemeProvider>
|
|
<App />
|
|
</ThemeProvider>
|
|
</ErrorBoundary>
|
|
</React.StrictMode>
|
|
); |