MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / App

Function App

frontend/packages/core/src/App.tsx:137–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135registerApiparkTheme()
136
137function 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
173export default App

Callers

nothing calls this directly

Calls 3

useLocaleContextFunction · 0.90
$tFunction · 0.90
useInitializeMonacoFunction · 0.85

Tested by

no test coverage detected