Skip to content

Commit 769ee3e

Browse files
committed
chore: 为适应新的插件路由级页面组件做出删减
1 parent e8aec62 commit 769ee3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+505
-535
lines changed

src/layouts/modules/transition.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
}
9797

9898

99-
// 渐变
10099
/* .zoom-fade-enter {
101100
opacity: 0;
102101
transform: scale(0.3);

src/pages/(base)/home/config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/pages/(base)/home/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,12 @@ const Home = () => {
4848
);
4949
};
5050

51+
export const handle = {
52+
constant: true,
53+
i18nKey: 'route.home',
54+
icon: 'mdi:monitor-dashboard',
55+
order: 1,
56+
title: 'home'
57+
};
58+
5159
export default Home;
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
import { redirect } from 'react-router-dom';
22

3-
export const config = {
3+
const Manage = () => {
4+
return null;
5+
};
6+
7+
export const handle = {
48
constant: true,
59
i18nKey: 'route.manage',
10+
order: 2,
611
title: 'manage'
712
};
813

914
export const loader = () => {
10-
return redirect('/manage/menu');
15+
return redirect('user');
1116
};
17+
18+
export default Manage;

src/pages/(base)/manage/menu/config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/(base)/manage/menu/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ const Menu = () => {
22
return <div>Menu</div>;
33
};
44

5+
export const handle = {
6+
i18nKey: 'route.manage_menu',
7+
title: 'manage_menu'
8+
};
9+
510
export default Menu;

src/pages/(base)/manage/user/config.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/pages/(base)/manage/user/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,11 @@ const UserManage = () => {
22
return <AInput />;
33
};
44

5+
export const handle = {
6+
constant: true,
7+
i18nKey: 'route.manage_user',
8+
keepAlive: true,
9+
title: 'manage_user'
10+
};
11+
512
export default UserManage;

src/pages/(base)/multi-menu/config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/(base)/multi-menu/first/child/config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/(base)/multi-menu/first/child/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ const FirstChild = () => {
44
return <LookForward />;
55
};
66

7+
export const handle = {
8+
constant: true,
9+
i18nKey: 'route.multi-menu_first_child',
10+
title: 'multi-menu_first_child'
11+
};
12+
713
export default FirstChild;

src/pages/(base)/multi-menu/first/config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { redirect } from 'react-router-dom';
2+
3+
export const handle = {
4+
constant: true,
5+
i18nKey: 'route.multi-menu_first',
6+
title: 'multi-menu_first'
7+
};
8+
9+
export const loader = () => {
10+
return redirect('child');
11+
};

src/pages/(base)/multi-menu/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { redirect } from 'react-router-dom';
2+
3+
export const handle = {
4+
constant: true,
5+
i18nKey: 'route.multi-menu',
6+
title: 'multi-menu'
7+
};
8+
9+
export const loader = () => {
10+
return redirect('first');
11+
};

src/pages/(base)/multi-menu/second/child/config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/(base)/multi-menu/second/child/home/config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/(base)/multi-menu/second/child/home/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ const SecondChildHome = () => {
44
return <LookForward />;
55
};
66

7+
export const handle = {
8+
i18nKey: 'route.multi-menu_second_child_home',
9+
title: 'multi-menu_second_child_home'
10+
};
11+
712
export default SecondChildHome;

src/pages/(base)/multi-menu/second/config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/(base)/projects/[pid]/config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/(base)/projects/[pid]/edit/[id].config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/(base)/projects/[pid]/edit/[id].tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ const ProjectsEditId = () => {
99
return <div>ProjectsEditId</div>;
1010
};
1111

12+
export const handle = {
13+
i18nKey: 'route.projects_[pid]_[id]',
14+
title: 'projects_[pid]_[id]'
15+
};
16+
1217
export default ProjectsEditId;

src/pages/(base)/projects/[pid]/edit/config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/(base)/projects/config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/(base)/user-center/config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/(base)/user-center/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ const UserLogin = () => {
44
return <LookForward />;
55
};
66

7+
export const handle = {
8+
hideInMenu: true,
9+
i18nKey: 'route.user-center',
10+
title: 'user-center'
11+
};
12+
713
export default UserLogin;

src/pages/(blank)/login/code-login/config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/(blank)/login/code-login/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,9 @@ const CodeLogin = () => {
8888
);
8989
};
9090

91+
export const handle = {
92+
i18nKey: 'route.login_code-login',
93+
title: 'login_code-login'
94+
};
95+
9196
export default CodeLogin;

src/pages/(blank)/login/config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/(blank)/login/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,10 @@ const PwdLogin = () => {
156156
);
157157
};
158158

159+
export const handle = {
160+
constant: true,
161+
i18nKey: 'route.login',
162+
title: 'login'
163+
};
164+
159165
export default PwdLogin;

src/pages/(blank)/login/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const LoginLayout = () => {
3636
<WaveBg themeColor={bgThemeColor} />
3737

3838
<ACard
39-
bordered={false}
4039
className="relative z-4 w-auto rd-12px"
40+
variant="borderless"
4141
>
4242
<div className="w-400px lt-sm:w-300px">
4343
<Header />

src/pages/(blank)/login/register/config.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/pages/(blank)/login/register/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,10 @@ const Register = () => {
103103
);
104104
};
105105

106+
export const handle = {
107+
constant: true,
108+
i18nKey: 'route.login_register',
109+
title: 'login_register'
110+
};
111+
106112
export default Register;

src/pages/(blank)/login/reset-pwd/config.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/pages/(blank)/login/reset-pwd/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ const ResetPwd = () => {
2727
window.$message?.success(t('page.login.common.validateSuccess'));
2828
}
2929

30+
console.log('reset-pwd');
31+
3032
return (
3133
<>
3234
<h3 className="text-18px text-primary font-medium">{t('page.login.register.title')}</h3>
@@ -93,4 +95,10 @@ const ResetPwd = () => {
9395
);
9496
};
9597

98+
export const handle = {
99+
constant: true,
100+
i18nKey: 'route.login_reset-pwd',
101+
title: 'login_reset-pwd'
102+
};
103+
96104
export default ResetPwd;

src/pages/_builtin/403/config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/_builtin/403/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ const NotAuth = () => {
44
return <ExceptionBase type="403" />;
55
};
66

7+
export const handle = {
8+
hideInMenu: true,
9+
i18nKey: 'route.403',
10+
title: '403'
11+
};
12+
713
export default NotAuth;

src/pages/_builtin/404/config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/_builtin/404/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@ const NotFound = () => {
44
return <ExceptionBase type="404" />;
55
};
66

7+
export const handle = {
8+
constant: true,
9+
hideInMenu: true,
10+
i18nKey: 'route.404',
11+
title: '404'
12+
};
13+
714
export default NotFound;

src/pages/_builtin/500/config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/_builtin/500/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ const GoWrong = () => {
44
return <ExceptionBase type="500" />;
55
};
66

7+
export const handle = {
8+
hideInMenu: true,
9+
i18nKey: 'route.500',
10+
title: '500'
11+
};
12+
713
export default GoWrong;

src/pages/_builtin/iframe-page/config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/_builtin/iframe-page/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ const IframePage = () => {
2525
);
2626
};
2727

28+
export const handle = {
29+
hideInMenu: true,
30+
i18nKey: 'route.iframe-page_[url]',
31+
title: 'iframe-page_[url]'
32+
};
33+
2834
export default IframePage;

src/pages/config.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)