()
| 135 | registerApiparkTheme() |
| 136 | |
| 137 | function App() { |
| 138 | const { locale } = useLocaleContext() |
| 139 | useInitializeMonaco() |
| 140 | |
| 141 | const validateMessages = useMemo( |
| 142 | () => ({ |
| 143 | required: $t('必填项'), |
| 144 | email: $t('不是有效邮箱地址') |
| 145 | }), |
| 146 | [locale] |
| 147 | ) |
| 148 | |
| 149 | return ( |
| 150 | <StyleProvider hashPriority={'high'}> |
| 151 | <ConfigProvider |
| 152 | locale={locale} |
| 153 | wave={{ disabled: true }} |
| 154 | theme={antdComponentThemeToken} |
| 155 | form={{ validateMessages }} |
| 156 | > |
| 157 | <PluginEventHubProvider> |
| 158 | <GlobalProvider> |
| 159 | <AppAntd className="h-full" message={{ maxCount: 1 }}> |
| 160 | <PluginSlotHubProvider> |
| 161 | <BreadcrumbProvider> |
| 162 | <RenderRoutes /> |
| 163 | </BreadcrumbProvider> |
| 164 | </PluginSlotHubProvider> |
| 165 | </AppAntd> |
| 166 | </GlobalProvider> |
| 167 | </PluginEventHubProvider> |
| 168 | </ConfigProvider> |
| 169 | </StyleProvider> |
| 170 | ) |
| 171 | } |
| 172 | |
| 173 | export default App |
nothing calls this directly
no test coverage detected