Files
TERES_web_frontend/src/App.tsx
guangfei.zhao 5c937df5ed feat(knowledge): add knowledge base management with dialog system
- Implement knowledge base list, create, and detail pages
- Add dialog provider and components for confirmation and alerts
- Include knowledge card and grid view components
- Enhance header with user menu and logout functionality
- Implement knowledge operations hooks for CRUD operations
2025-10-13 12:26:10 +08:00

39 lines
922 B
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 { BrowserRouter } from 'react-router-dom';
import { CssBaseline, ThemeProvider } from '@mui/material';
import { theme } from './theme';
import AppRoutes from './routes';
import SnackbarProvider from './components/Provider/SnackbarProvider';
import DialogProvider from './components/Provider/DialogProvider';
import AuthGuard from './components/AuthGuard';
import './locales';
import './utils/request'
/**
* 封装MaterialUIApp将主题、基础样式和路由包裹起来
*/
function MaterialUIApp() {
return (
<ThemeProvider theme={theme}>
<CssBaseline />
<SnackbarProvider>
<DialogProvider>
<BrowserRouter>
<AuthGuard>
<AppRoutes />
</AuthGuard>
</BrowserRouter>
</DialogProvider>
</SnackbarProvider>
</ThemeProvider>
);
}
function App() {
return (
<MaterialUIApp />
);
}
export default App;