| | |
| | | import { Layout } from "./layout"; |
| | | import AuthProvider from "./config/authProvider"; |
| | | import DataProvider from "./config/dataProvider"; |
| | | import Dashboard from "./page/dashboard/Dashboard"; |
| | | import Settings from "./page/settings/Settings"; |
| | | import Login from "./page/login/Login"; |
| | | import Dashboard from "./page/dashboard"; |
| | | import Settings from "./page/settings"; |
| | | import Login from "./page/login"; |
| | | import * as Common from './utils/common' |
| | | import { themes } from './themes/themes'; |
| | | import { SPA_NAME, SPA_VERSION, DEFAULT_THEME_NAME, DEFAULT_THEME_MODE, DATA_PROVIDER_SPRING } from "./config/setting"; |
| | | import ResourceContent from "./page/ResourceContent"; |
| | | import { getSystemInfo } from '@/api/auth'; |
| | | |
| | | const i18nProvider = polyglotI18nProvider( |
| | | locale => { |
| | |
| | | const lightTheme = themes.find(theme => theme.name === themeName)?.light; |
| | | const darkTheme = themes.find(theme => theme.name === themeName)?.dark; |
| | | |
| | | useEffect(() => { |
| | | getSystemInfo().then(data => { |
| | | localStorage.setItem("system", JSON.stringify(data)); |
| | | }) |
| | | }, []); |
| | | |
| | | return ( |
| | | <> |
| | | <Admin |