-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # README_ZH.md
- Loading branch information
Showing
263 changed files
with
4,144 additions
and
3,409 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import {lazy, Suspense} from 'react'; | ||
import {Route, Routes} from "react-router-dom"; | ||
import Loading from "./ui/loading/Loading"; | ||
import {ConfigProvider, MappingAlgorithm, theme} from "antd"; | ||
import GlobalMessage from "./framework/message/GlobalMessage"; | ||
|
||
const DemoMain = lazy(() => import('./test/DemoMain')); | ||
const Login = lazy(() => import('./pages/login/Login').then(module => ({default: module.Login}))); | ||
const Designer = lazy(() => import('./designer/Designer')); | ||
const DesignerView = lazy(() => import('./designer/view/DesignerView')); | ||
const Home = lazy(() => import('./pages/home/Home')); | ||
|
||
export const studioDarkAlgorithm: MappingAlgorithm = (seedToken, mapToken) => { | ||
// 使用 antd 默认的暗色算法生成基础token,这样其他不需要定制的部分则保持原样 | ||
const baseToken = theme.darkAlgorithm(seedToken, mapToken); | ||
return { | ||
...baseToken, | ||
colorBgLayout: '#20252b', // Layout 背景色 | ||
colorBgContainer: '#282c34', // 组件容器背景色 | ||
colorBgElevated: '#32363e', // 悬浮容器背景色 | ||
}; | ||
}; | ||
|
||
|
||
export default function MainRouter() { | ||
return ( | ||
<ConfigProvider theme={{ | ||
algorithm: studioDarkAlgorithm, | ||
components: { | ||
Menu: { | ||
itemBg: 'none', | ||
itemColor: '#bfbfbf', | ||
} | ||
} | ||
}}> | ||
<Suspense fallback={<Loading/>}> | ||
<Routes> | ||
<Route path={'/designer'} element={<Designer/>}/> | ||
<Route path={'/view'} element={<DesignerView/>}/> | ||
<Route path={'/test'} element={<DemoMain/>}/> | ||
<Route path={'/login'} element={<Login/>}/> | ||
<Route path={'/home'} element={<Home/>}/> | ||
<Route path={'/'} element={<Login/>}/> | ||
</Routes> | ||
</Suspense> | ||
<GlobalMessage/> | ||
</ConfigProvider> | ||
); | ||
} |
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
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
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
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
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,5 +1,5 @@ | ||
.bp-footer { | ||
height: 100%; | ||
height: 35px; | ||
padding: 5px 10px; | ||
display: flex; | ||
align-items: center; | ||
|
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,10 +1,16 @@ | ||
.bp-header { | ||
width: 100%; | ||
height: 50px; | ||
background-color: #1f1f1f; | ||
line-height: 39px; | ||
line-height: 50px; | ||
color: #c3c3c3; | ||
padding: 0 15px; | ||
border-bottom: 1px solid #2e2e2e; | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
|
||
.bp-header-title { | ||
font-size: 16px; | ||
} | ||
} |
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.