-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e571e16
commit e6ee29a
Showing
17 changed files
with
122 additions
and
85 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
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
6 changes: 6 additions & 0 deletions
6
src/components/utils/HydrateFallback/HydrateFallback.module.scss
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,6 @@ | ||
.root { | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} |
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,19 @@ | ||
import { Box } from "@/components/core/Box"; | ||
import styles from "./HydrateFallback.module.scss"; | ||
import { Icon } from "@/components/core/Icon"; | ||
import { Stack } from "@/components/core/Stack/Stack"; | ||
import { Flex } from "@/components/core/Flex"; | ||
import Loading from "@/components/icons/Loading"; | ||
|
||
export function HydrateFallback() { | ||
return ( | ||
<Box className={styles["root"]}> | ||
<Stack gap={"15px"} align={"center"}> | ||
<Flex gap={"15px"}> | ||
<Icon icon={<Loading />} /> | ||
<Box>加载中</Box> | ||
</Flex> | ||
</Stack> | ||
</Box> | ||
); | ||
} |
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 @@ | ||
export { HydrateFallback } from "./HydrateFallback"; |
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
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,53 +1,3 @@ | ||
import Book2BoldDuotone from "~icons/solar/book-2-bold-duotone"; | ||
import FlagBoldDuotone from "~icons/solar/flag-bold-duotone"; | ||
import UsersGroupTwoRoundedBoldDuotone from "~icons/solar/users-group-two-rounded-bold-duotone"; | ||
import SolarSettingsBoldDuotone from "~icons/solar/settings-bold-duotone"; | ||
import SolarFiltersBoldDuotone from "~icons/solar/filters-bold-duotone"; | ||
import { Navbar } from "@/components/widgets/Navbar"; | ||
import SolarRoundArrowLeftBoldDuotone from "~icons/solar/round-arrow-left-bold-duotone"; | ||
import { Outlet } from "react-router-dom"; | ||
import styles from "./Default.module.scss"; | ||
|
||
export function Default() { | ||
const SettingLinks = [ | ||
{ | ||
icon: <Book2BoldDuotone />, | ||
label: "题库管理", | ||
href: "/settings/challenges", | ||
}, | ||
{ | ||
icon: <FlagBoldDuotone />, | ||
label: "比赛管理", | ||
href: "/settings/games", | ||
}, | ||
{ | ||
icon: <UsersGroupTwoRoundedBoldDuotone />, | ||
label: "用户管理", | ||
href: "/settings/users", | ||
}, | ||
{ | ||
icon: <SolarSettingsBoldDuotone />, | ||
label: "系统设置", | ||
href: "/settings/system", | ||
}, | ||
{ | ||
icon: <SolarFiltersBoldDuotone />, | ||
label: "外观设置", | ||
href: "/settings/appearance", | ||
}, | ||
{ | ||
icon: <SolarRoundArrowLeftBoldDuotone />, | ||
label: "返回上级", | ||
href: "/", | ||
}, | ||
]; | ||
|
||
return ( | ||
<> | ||
<Navbar links={SettingLinks} /> | ||
<main className={styles["main"]}> | ||
<Outlet /> | ||
</main> | ||
</> | ||
); | ||
return <>111</>; | ||
} |
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