-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(console): support client serving and optimize ui (#3065)
- Loading branch information
Showing
12 changed files
with
464 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
import React from 'react' | ||
import { Provider as StyletronProvider } from 'styletron-react' | ||
import { BaseProvider } from 'baseui' | ||
import { BaseProvider, LocaleProvider } from 'baseui' | ||
import DeepTheme from '@starwhale/ui/theme' | ||
import { Client as Styletron } from 'styletron-engine-atomic' | ||
import { QueryClient, QueryClientProvider } from 'react-query' | ||
import ServingPage from './ServingPage' | ||
import { initI18n } from '@/i18n' | ||
|
||
initI18n() | ||
|
||
export default function App(): any { | ||
return ( | ||
<StyletronProvider value={new Styletron()}> | ||
<BaseProvider theme={DeepTheme}> | ||
<QueryClientProvider client={new QueryClient()}> | ||
<ServingPage /> | ||
</QueryClientProvider> | ||
</BaseProvider> | ||
</StyletronProvider> | ||
<QueryClientProvider client={new QueryClient()}> | ||
<StyletronProvider value={new Styletron()}> | ||
<BaseProvider theme={DeepTheme}> | ||
<LocaleProvider locale={{}}> | ||
<ServingPage /> | ||
</LocaleProvider> | ||
</BaseProvider> | ||
</StyletronProvider> | ||
</QueryClientProvider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.