kn-cli 1.0.130 → 1.0.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/vite.config.js +1 -1
- package/build/webpack.config.js +2 -1
- package/package.json +2 -1
- package/src/create.js +2 -0
- package/templates/template_admin_antd5/.vscode/settings.json +28 -0
- package/templates/template_admin_antd5/build.sh +8 -0
- package/templates/template_admin_antd5/cli.config.js +35 -0
- package/templates/template_admin_antd5/dev.sh +33 -0
- package/templates/template_admin_antd5/frontend_build.sh +48 -0
- package/templates/template_admin_antd5/init/prepare-commit-msg +5 -0
- package/templates/template_admin_antd5/init.sh +24 -0
- package/templates/template_admin_antd5/jsconfig.json +17 -0
- package/templates/template_admin_antd5/package.json +27 -0
- package/templates/template_admin_antd5/public/404.html +26 -0
- package/templates/template_admin_antd5/public/favicon.png +0 -0
- package/templates/template_admin_antd5/public/index.html +48 -0
- package/templates/template_admin_antd5/public/src/_antd.less +37 -0
- package/templates/template_admin_antd5/public/src/_mixin.module.less +79 -0
- package/templates/template_admin_antd5/public/src/_reset.module.less +134 -0
- package/templates/template_admin_antd5/public/src/_variable.module.less +85 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.eot +0 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.module.less +109 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.svg +75 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.ttf +0 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.woff +0 -0
- package/templates/template_admin_antd5/public/src/assets/iconfont/iconfont.woff2 +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/arrow.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/avatar.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/icon-notice.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/icon-user.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/loadFail.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/loading.svg +40 -0
- package/templates/template_admin_antd5/public/src/assets/images/login/bg.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/login/logo.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/login/slogan.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-dep-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-dep.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-log-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-log.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-loginlog-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-loginlog.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-role-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-role.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-user-active.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/icon-user.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/nav-toggle.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/nav/slogan.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/noData.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/noSelect.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/permission/403.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/permission/404.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/permission/503.png +0 -0
- package/templates/template_admin_antd5/public/src/assets/images/play.png +0 -0
- package/templates/template_admin_antd5/public/src/components/_table/column.jsx +47 -0
- package/templates/template_admin_antd5/public/src/components/_table/column.module.less +12 -0
- package/templates/template_admin_antd5/public/src/components/_table/index.jsx +71 -0
- package/templates/template_admin_antd5/public/src/components/_table/index.module.less +15 -0
- package/templates/template_admin_antd5/public/src/components/antd/antProvider.jsx +21 -0
- package/templates/template_admin_antd5/public/src/components/antd/index.jsx +146 -0
- package/templates/template_admin_antd5/public/src/components/antd/select/index.jsx +296 -0
- package/templates/template_admin_antd5/public/src/components/antd/select/index.module.less +21 -0
- package/templates/template_admin_antd5/public/src/components/antd/theme.js +173 -0
- package/templates/template_admin_antd5/public/src/components/antd/tooltip/detail/index.jsx +70 -0
- package/templates/template_admin_antd5/public/src/components/antd/tooltip/detail/index.module.less +12 -0
- package/templates/template_admin_antd5/public/src/components/antd/tooltip/index.jsx +69 -0
- package/templates/template_admin_antd5/public/src/components/antd/tooltip/index.module.less +28 -0
- package/templates/template_admin_antd5/public/src/components/auth/index.jsx +123 -0
- package/templates/template_admin_antd5/public/src/components/auth/index.module.less +7 -0
- package/templates/template_admin_antd5/public/src/components/auth/navCheck.jsx +27 -0
- package/templates/template_admin_antd5/public/src/components/badge/index.jsx +47 -0
- package/templates/template_admin_antd5/public/src/components/badge/index.module.less +44 -0
- package/templates/template_admin_antd5/public/src/components/button/index.jsx +17 -0
- package/templates/template_admin_antd5/public/src/components/debug/index.jsx +28 -0
- package/templates/template_admin_antd5/public/src/components/debug/index.module.less +10 -0
- package/templates/template_admin_antd5/public/src/components/empty/index.jsx +28 -0
- package/templates/template_admin_antd5/public/src/components/empty/index.module.less +20 -0
- package/templates/template_admin_antd5/public/src/components/error/index.jsx +39 -0
- package/templates/template_admin_antd5/public/src/components/icon/index.jsx +128 -0
- package/templates/template_admin_antd5/public/src/components/icon/playVideo/index.jsx +21 -0
- package/templates/template_admin_antd5/public/src/components/icon/playVideo/index.module.less +16 -0
- package/templates/template_admin_antd5/public/src/components/iconFont/index.jsx +20 -0
- package/templates/template_admin_antd5/public/src/components/iconFont/index.module.less +5 -0
- package/templates/template_admin_antd5/public/src/components/image/index.jsx +73 -0
- package/templates/template_admin_antd5/public/src/components/image/index.module.less +117 -0
- package/templates/template_admin_antd5/public/src/components/image/preview.jsx +85 -0
- package/templates/template_admin_antd5/public/src/components/layout/basic/index.jsx +49 -0
- package/templates/template_admin_antd5/public/src/components/layout/basic/index.module.less +76 -0
- package/templates/template_admin_antd5/public/src/components/layout/index.jsx +39 -0
- package/templates/template_admin_antd5/public/src/components/layout/index.module.less +63 -0
- package/templates/template_admin_antd5/public/src/components/layout/provider/index.jsx +32 -0
- package/templates/template_admin_antd5/public/src/components/leftMenu/index.jsx +106 -0
- package/templates/template_admin_antd5/public/src/components/leftMenu/index.module.less +42 -0
- package/templates/template_admin_antd5/public/src/components/link/index.jsx +39 -0
- package/templates/template_admin_antd5/public/src/components/link/index.module.less +11 -0
- package/templates/template_admin_antd5/public/src/components/menuIcon/index.jsx +33 -0
- package/templates/template_admin_antd5/public/src/components/menuIcon/index.module.less +49 -0
- package/templates/template_admin_antd5/public/src/components/page/pageLoading/index.jsx +51 -0
- package/templates/template_admin_antd5/public/src/components/page/pageLoading/index.module.less +29 -0
- package/templates/template_admin_antd5/public/src/components/popup/index.jsx +60 -0
- package/templates/template_admin_antd5/public/src/components/popup/index.module.less +18 -0
- package/templates/template_admin_antd5/public/src/components/react/index.jsx +13 -0
- package/templates/template_admin_antd5/public/src/components/resizeBox/index.jsx +144 -0
- package/templates/template_admin_antd5/public/src/components/resizeBox/index.module.css +90 -0
- package/templates/template_admin_antd5/public/src/components/select/defaultServicesSelect/index.jsx +182 -0
- package/templates/template_admin_antd5/public/src/components/select/dictSelect/index.jsx +84 -0
- package/templates/template_admin_antd5/public/src/components/select/index.jsx +7 -0
- package/templates/template_admin_antd5/public/src/components/select/useSelectList.jsx +217 -0
- package/templates/template_admin_antd5/public/src/components/table/aliTable/index.jsx +250 -0
- package/templates/template_admin_antd5/public/src/components/table/aliTable/index.module.less +105 -0
- package/templates/template_admin_antd5/public/src/components/table/column.jsx +128 -0
- package/templates/template_admin_antd5/public/src/components/table/column.module.less +50 -0
- package/templates/template_admin_antd5/public/src/components/table/imageTable/index.jsx +302 -0
- package/templates/template_admin_antd5/public/src/components/table/imageTable/index.module.less +196 -0
- package/templates/template_admin_antd5/public/src/components/table/imageTable/radio.jsx +15 -0
- package/templates/template_admin_antd5/public/src/components/table/imageTable/radio.module.less +18 -0
- package/templates/template_admin_antd5/public/src/components/table/index.jsx +475 -0
- package/templates/template_admin_antd5/public/src/components/table/index.module.less +133 -0
- package/templates/template_admin_antd5/public/src/components/text/index.jsx +98 -0
- package/templates/template_admin_antd5/public/src/components/text/index.module.less +13 -0
- package/templates/template_admin_antd5/public/src/components/toast/index.jsx +79 -0
- package/templates/template_admin_antd5/public/src/components/toast/index.module.less +43 -0
- package/templates/template_admin_antd5/public/src/components/topMenu/index.jsx +102 -0
- package/templates/template_admin_antd5/public/src/components/topMenu/index.module.less +89 -0
- package/templates/template_admin_antd5/public/src/components/topMenu/topBar/index.jsx +81 -0
- package/templates/template_admin_antd5/public/src/components/topMenu/topBar/index.module.less +97 -0
- package/templates/template_admin_antd5/public/src/components/video/index.jsx +96 -0
- package/templates/template_admin_antd5/public/src/components/video/index.module.less +132 -0
- package/templates/template_admin_antd5/public/src/components/video/preview.jsx +38 -0
- package/templates/template_admin_antd5/public/src/config.js +31 -0
- package/templates/template_admin_antd5/public/src/declarations.d.ts +1 -0
- package/templates/template_admin_antd5/public/src/dictionary/dictionary.js +289 -0
- package/templates/template_admin_antd5/public/src/dictionary/index.jsx +64 -0
- package/templates/template_admin_antd5/public/src/enum.js +41 -0
- package/templates/template_admin_antd5/public/src/hooks/index.jsx +29 -0
- package/templates/template_admin_antd5/public/src/hooks/useDebounceFn.jsx +33 -0
- package/templates/template_admin_antd5/public/src/hooks/useDelay.jsx +34 -0
- package/templates/template_admin_antd5/public/src/hooks/useEsc.jsx +98 -0
- package/templates/template_admin_antd5/public/src/hooks/useImageLoader.jsx +26 -0
- package/templates/template_admin_antd5/public/src/hooks/useInToView.jsx +58 -0
- package/templates/template_admin_antd5/public/src/hooks/useLoading.jsx +46 -0
- package/templates/template_admin_antd5/public/src/hooks/usePreload.jsx +67 -0
- package/templates/template_admin_antd5/public/src/hooks/useRouteMenu.jsx +263 -0
- package/templates/template_admin_antd5/public/src/hooks/useScrollTop.jsx +44 -0
- package/templates/template_admin_antd5/public/src/hooks/useSearch.jsx +163 -0
- package/templates/template_admin_antd5/public/src/hooks/useTableRowSelect.jsx +310 -0
- package/templates/template_admin_antd5/public/src/hooks/useThrottole.jsx +68 -0
- package/templates/template_admin_antd5/public/src/hooks/useTimer.jsx +42 -0
- package/templates/template_admin_antd5/public/src/hooks/useUpdate.jsx +16 -0
- package/templates/template_admin_antd5/public/src/hooks/useWatchServices.jsx +124 -0
- package/templates/template_admin_antd5/public/src/index.jsx +89 -0
- package/templates/template_admin_antd5/public/src/menuConfig/auth.jsx +92 -0
- package/templates/template_admin_antd5/public/src/menuConfig/dashboard.jsx +25 -0
- package/templates/template_admin_antd5/public/src/menuConfig/dna.jsx +76 -0
- package/templates/template_admin_antd5/public/src/menuConfig/index.jsx +17 -0
- package/templates/template_admin_antd5/public/src/mock/auth.js +33 -0
- package/templates/template_admin_antd5/public/src/mock/demo.js +122 -0
- package/templates/template_admin_antd5/public/src/mock/index.js +65 -0
- package/templates/template_admin_antd5/public/src/mock/utils.js +33 -0
- package/templates/template_admin_antd5/public/src/pages/antdComponents/index.jsx +142 -0
- package/templates/template_admin_antd5/public/src/pages/auth/user/create/index.jsx +47 -0
- package/templates/template_admin_antd5/public/src/pages/auth/user/create/index.module.less +6 -0
- package/templates/template_admin_antd5/public/src/pages/auth/user/dialog/index.jsx +96 -0
- package/templates/template_admin_antd5/public/src/pages/auth/user/index.jsx +214 -0
- package/templates/template_admin_antd5/public/src/pages/components/layout/index.jsx +75 -0
- package/templates/template_admin_antd5/public/src/pages/components/layout/index.module.less +78 -0
- package/templates/template_admin_antd5/public/src/pages/components/layout/titleBar/index.jsx +28 -0
- package/templates/template_admin_antd5/public/src/pages/components/layout/titleBar/index.module.less +44 -0
- package/templates/template_admin_antd5/public/src/pages/components/select/user.jsx +18 -0
- package/templates/template_admin_antd5/public/src/pages/demo/page1.jsx +21 -0
- package/templates/template_admin_antd5/public/src/pages/demo/page2.jsx +21 -0
- package/templates/template_admin_antd5/public/src/pages/demo/page3.jsx +21 -0
- package/templates/template_admin_antd5/public/src/pages/error/403.jsx +15 -0
- package/templates/template_admin_antd5/public/src/pages/error/404.jsx +15 -0
- package/templates/template_admin_antd5/public/src/pages/error/503.jsx +15 -0
- package/templates/template_admin_antd5/public/src/pages/error/permission.jsx +40 -0
- package/templates/template_admin_antd5/public/src/pages/error/permission.module.less +16 -0
- package/templates/template_admin_antd5/public/src/pages/home.jsx +90 -0
- package/templates/template_admin_antd5/public/src/pages/home.module.less +6 -0
- package/templates/template_admin_antd5/public/src/pages/login/index.jsx +113 -0
- package/templates/template_admin_antd5/public/src/pages/login/index.module.less +153 -0
- package/templates/template_admin_antd5/public/src/pages/pageTemplate.jsx +28 -0
- package/templates/template_admin_antd5/public/src/provider/app.jsx +201 -0
- package/templates/template_admin_antd5/public/src/provider/loading.jsx +47 -0
- package/templates/template_admin_antd5/public/src/provider/menu.jsx +161 -0
- package/templates/template_admin_antd5/public/src/provider/menu.module.less +35 -0
- package/templates/template_admin_antd5/public/src/route.jsx +127 -0
- package/templates/template_admin_antd5/public/src/services/demo.js +85 -0
- package/templates/template_admin_antd5/public/src/services/excel.js +43 -0
- package/templates/template_admin_antd5/public/src/services/http/index.js +155 -0
- package/templates/template_admin_antd5/public/src/services/index.js +126 -0
- package/templates/template_admin_antd5/public/src/services/interceptor/index.js +67 -0
- package/templates/template_admin_antd5/public/src/services/login.js +37 -0
- package/templates/template_admin_antd5/public/src/services/socket/index.jsx +99 -0
- package/templates/template_admin_antd5/public/src/services/token/index.js +41 -0
- package/templates/template_admin_antd5/public/src/type.js +67 -0
- package/templates/template_admin_antd5/public/src/utils/event.js +58 -0
- package/templates/template_admin_antd5/public/src/utils/format.js +135 -0
- package/templates/template_admin_antd5/public/src/utils/index.js +727 -0
- package/templates/template_admin_antd5/public/src/utils/menu.js +33 -0
- package/templates/template_admin_antd5/public/src/utils/rule.js +277 -0
- package/templates/template_admin_antd5/public/src/utils/storage.js +30 -0
- package/templates/template_admin_antd5/public/static/about.html +1 -0
- package/templates/template_admin_antd5/public/static/kssoLogin.html +22 -0
- package/templates/template_admin_antd5/readme.md +84 -0
- package/templates/template_admin_antd5/renamejstojsx.js +45 -0
- package/templates/template_admin_antd5/renameless.js +53 -0
- package/templates/template_admin_antd5/report.sh +25 -0
- package/templates/template_admin_antd5/shellUtil.sh +110 -0
- package/templates/template_admin_antd5/versionPublish.sh +16 -0
- package/templates/template_admin_antd5/webpack.api.js +105 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { useNavigate, } from 'react-router-dom';
|
|
4
|
+
import { Layout } from '@/pages/components/layout';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { Button } from "@/components/antd";
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
import { px2rem } from '@/utils';
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
import styles from './permission.module.less';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* permission页面
|
|
14
|
+
* @param {object} props
|
|
15
|
+
* @param {string} props.img - 图片
|
|
16
|
+
* @param {string} props.title - 标题头
|
|
17
|
+
* @param {boolean} [props.backButton] - 返回按钮
|
|
18
|
+
* @returns {JSX.Element}
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
const Permission = (props) => {
|
|
22
|
+
const { img, backButton = false, title } = props;
|
|
23
|
+
const navigator = useNavigate();
|
|
24
|
+
|
|
25
|
+
const onBack = () => navigator('/')
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<Layout>
|
|
29
|
+
<div className={styles.content}>
|
|
30
|
+
<img src={img} width={480} height={480} />
|
|
31
|
+
<div className={styles.info}>
|
|
32
|
+
<div className={styles.title} style={{ marginBottom: backButton ? px2rem(36) : '' }}>{title}</div>
|
|
33
|
+
{backButton && <Button type='primary' onClick={onBack}>返回首页</Button>}
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</Layout>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default Permission;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.content {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
height: 100%;
|
|
6
|
+
width: 100%;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
}
|
|
9
|
+
.info {
|
|
10
|
+
margin-left: 80px;
|
|
11
|
+
}
|
|
12
|
+
.title {
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
font-size: 32px;
|
|
15
|
+
color: #1F2329;
|
|
16
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
Button,
|
|
5
|
+
Select
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
} from '@/components/antd';
|
|
8
|
+
|
|
9
|
+
import {Layout,SearchBar,TitleBar,Content,Panel} from './components/layout'
|
|
10
|
+
|
|
11
|
+
import AppProvider from '@/provider/app';
|
|
12
|
+
import MenuProvider from '@/provider/menu';
|
|
13
|
+
import { AuthShow } from '@/components/auth';
|
|
14
|
+
|
|
15
|
+
import {useMessageStatus} from '@/dictionary';
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import styles from './home.module.less';
|
|
18
|
+
|
|
19
|
+
const Home = () => {
|
|
20
|
+
|
|
21
|
+
const app = AppProvider.useContainer();
|
|
22
|
+
const menu = MenuProvider.useContainer();
|
|
23
|
+
|
|
24
|
+
const emMessageStatus = useMessageStatus();
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @type {React.MutableRefObject<number>}
|
|
28
|
+
*/
|
|
29
|
+
const refMenuCount= useRef(1);
|
|
30
|
+
|
|
31
|
+
const onMenuMessage=()=>{
|
|
32
|
+
/**
|
|
33
|
+
* @type {MenuConfig[]}
|
|
34
|
+
*/
|
|
35
|
+
let config=[
|
|
36
|
+
{
|
|
37
|
+
primaryId:'authUser',
|
|
38
|
+
key:'msgCount',
|
|
39
|
+
value:refMenuCount.current++
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
menu.setMenuConfig(config);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const onAuthAdd=()=>{
|
|
46
|
+
let newAuth = [...app.auths];
|
|
47
|
+
if(newAuth.includes('authA'))return;
|
|
48
|
+
newAuth.push('authA');
|
|
49
|
+
app.setAuths(newAuth)
|
|
50
|
+
}
|
|
51
|
+
const onAuthRemove=()=>{
|
|
52
|
+
let newAuth = [...app.auths];
|
|
53
|
+
if(!newAuth.includes('authA'))return;
|
|
54
|
+
let idx = newAuth.indexOf('authA');
|
|
55
|
+
newAuth.splice(idx,1);
|
|
56
|
+
app.setAuths([...newAuth])
|
|
57
|
+
}
|
|
58
|
+
return (
|
|
59
|
+
<Layout>
|
|
60
|
+
<SearchBar>
|
|
61
|
+
<TitleBar label='首页'/>
|
|
62
|
+
</SearchBar>
|
|
63
|
+
|
|
64
|
+
<Content>
|
|
65
|
+
<Panel>
|
|
66
|
+
<TitleBar label='权限' />
|
|
67
|
+
|
|
68
|
+
<section className={styles.row}>
|
|
69
|
+
<Button onClick={onMenuMessage}>增加菜单未读消息数</Button>
|
|
70
|
+
<Button onClick={onAuthAdd}>增加权限A</Button>
|
|
71
|
+
<AuthShow name='authA'><Button onClick={onAuthRemove}>去除权限A(有authA时才能看见)</Button></AuthShow>
|
|
72
|
+
</section>
|
|
73
|
+
|
|
74
|
+
<TitleBar label='字典' />
|
|
75
|
+
<section className={styles.row}>
|
|
76
|
+
<Select style={{width:'300px'}}>
|
|
77
|
+
{emMessageStatus.render()}
|
|
78
|
+
</Select>
|
|
79
|
+
</section>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
</Panel>
|
|
84
|
+
</Content>
|
|
85
|
+
|
|
86
|
+
</Layout>
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export default Home;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import ProviderApp from '@/provider/app';
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
import { useSearchParams } from 'react-router-dom';
|
|
5
|
+
|
|
6
|
+
import ruler from '@/utils/rule';
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
import {Button,Tabs,Form,Input} from '@/components/antd';
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
import styles from './index.module.less';
|
|
11
|
+
|
|
12
|
+
import {jumpUrl} from '@/utils';
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
import imgSlogan from '@/assets/images/login/slogan.png';
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
import imgLogo2 from '@/assets/images/login/logo.png';
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
const Page = () => {
|
|
20
|
+
const providerApp = ProviderApp.useContainer();
|
|
21
|
+
const [search] = useSearchParams();
|
|
22
|
+
|
|
23
|
+
const [state,setState]=useState('')
|
|
24
|
+
|
|
25
|
+
const [form] = Form.useForm();
|
|
26
|
+
|
|
27
|
+
const kssoLogin=async ()=>{
|
|
28
|
+
const req= await providerApp.kssoLogin();
|
|
29
|
+
if(!req){
|
|
30
|
+
setState('login');
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
const onLogin= async ()=>{
|
|
35
|
+
let nextURL = new URL(`${location.protocol}//${location.host}/static/kssoLogin.html`);
|
|
36
|
+
jumpUrl(nextURL.toString(),{replace:true})
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const tabs=[
|
|
40
|
+
{
|
|
41
|
+
key: '1',
|
|
42
|
+
label: '内部账号',
|
|
43
|
+
children: <section className={styles.kssoLogin}>
|
|
44
|
+
<Button type='primary' block onClick={onLogin} size='large'>一键登录</Button>
|
|
45
|
+
</section>,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
key: '2',
|
|
49
|
+
label: '外部账号',
|
|
50
|
+
children: (
|
|
51
|
+
<section className={styles.phoneLogin}>
|
|
52
|
+
<Form form={form} layout="vertical" initialValues={{status:'',keyword:'',dep:'',role:''}}>
|
|
53
|
+
|
|
54
|
+
<label className={styles.inputLabel}>手机号码<span className={styles.required}>*</span></label>
|
|
55
|
+
|
|
56
|
+
<Form.Item name={'phone'} rules={ruler.PHONE}>
|
|
57
|
+
<Input size='large' placeholder="请输入"/>
|
|
58
|
+
</Form.Item>
|
|
59
|
+
|
|
60
|
+
<hgroup className={styles.codeGroup}>
|
|
61
|
+
<label className={styles.inputLabel}>
|
|
62
|
+
验证码<span className={styles.required}>*</span>
|
|
63
|
+
</label>
|
|
64
|
+
<label className={styles.sendCode}>发送验证码</label>
|
|
65
|
+
</hgroup>
|
|
66
|
+
<Form.Item name={'code'} rules={ruler.INPUT}>
|
|
67
|
+
<Input size='large' placeholder="请输入验证码"/>
|
|
68
|
+
</Form.Item>
|
|
69
|
+
<Button type='primary' block onClick={onLogin} size='large'>登录</Button>
|
|
70
|
+
</Form>
|
|
71
|
+
</section>
|
|
72
|
+
),
|
|
73
|
+
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
const onTab=()=>{}
|
|
77
|
+
|
|
78
|
+
useEffect(()=>{
|
|
79
|
+
let code = search.get('code');
|
|
80
|
+
if(code){
|
|
81
|
+
kssoLogin();
|
|
82
|
+
}else{
|
|
83
|
+
providerApp.clearLoginInfo();
|
|
84
|
+
setState('login')
|
|
85
|
+
}
|
|
86
|
+
},[])
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<section className={styles.body}>
|
|
90
|
+
{/* 左上角slogan */}
|
|
91
|
+
<section className={styles.sloganWrap}>
|
|
92
|
+
<img src={imgSlogan} className={styles.slogan} />
|
|
93
|
+
</section>
|
|
94
|
+
|
|
95
|
+
<section className={styles.loginWrap}>
|
|
96
|
+
|
|
97
|
+
<div className={styles.centerWrap}>
|
|
98
|
+
<img src={imgLogo2} className={styles.logo} data-run={state!='login'} />
|
|
99
|
+
<p className={styles.title}>欢迎登录<b>宙斯系统</b></p>
|
|
100
|
+
{
|
|
101
|
+
state=='login'?<Tabs defaultActiveKey='1' items={tabs} onChange={onTab} />
|
|
102
|
+
:<p className={styles.logining}>登录中...</p>
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
</div>
|
|
107
|
+
</section>
|
|
108
|
+
|
|
109
|
+
</section>
|
|
110
|
+
)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export default Page;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
@import '~@/_mixin.module.less';
|
|
2
|
+
|
|
3
|
+
@keyframes rotate {
|
|
4
|
+
from {
|
|
5
|
+
transform: rotate(0deg);
|
|
6
|
+
}
|
|
7
|
+
to {
|
|
8
|
+
transform: rotate(360deg);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.link{
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
.body{
|
|
16
|
+
width: 100%;
|
|
17
|
+
height:100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
background-image: url('~@/assets/images/login/bg.png');
|
|
23
|
+
background-size: cover;
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
.bg2{
|
|
27
|
+
width: 100%;
|
|
28
|
+
height:100%;
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: center;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
background-image: url('~@/assets/images/login/bg.png');
|
|
34
|
+
background-size: auto 100%;
|
|
35
|
+
background-repeat: no-repeat;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
.loginWrap{
|
|
41
|
+
position: fixed;
|
|
42
|
+
right:0;
|
|
43
|
+
top:0;
|
|
44
|
+
height: 100%;
|
|
45
|
+
max-width: 560px;
|
|
46
|
+
min-width: 384px;
|
|
47
|
+
width:29%;
|
|
48
|
+
background-size: cover;
|
|
49
|
+
background-repeat: no-repeat;
|
|
50
|
+
background-position-x: right;
|
|
51
|
+
background-position-y: top;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
row-gap: 14px;
|
|
57
|
+
background-color: white;
|
|
58
|
+
padding:24px;
|
|
59
|
+
|
|
60
|
+
.centerWrap{
|
|
61
|
+
margin-top:-124px;
|
|
62
|
+
width: 336px;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
|
|
66
|
+
.phoneLogin,
|
|
67
|
+
.kssoLogin{
|
|
68
|
+
width: 100%;
|
|
69
|
+
margin-top: 24px;
|
|
70
|
+
min-height: 240px;
|
|
71
|
+
|
|
72
|
+
.codeGroup{
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: space-between;
|
|
76
|
+
width: 100%;
|
|
77
|
+
.sendCode{
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
color:#0974F2;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
.no-select;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.inputLabel{
|
|
85
|
+
font-weight: bold;
|
|
86
|
+
color:#000;
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
.no-select;
|
|
89
|
+
.required{
|
|
90
|
+
color:#FF1111;
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
margin-left:6px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.logining{
|
|
99
|
+
font-size: 18px;
|
|
100
|
+
font-weight: bold;
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
}
|
|
104
|
+
.title{
|
|
105
|
+
color:#1F2329;
|
|
106
|
+
font-size: 24px;
|
|
107
|
+
margin-bottom:12px;
|
|
108
|
+
margin-top:32px;
|
|
109
|
+
.no-select;
|
|
110
|
+
}
|
|
111
|
+
.logo{
|
|
112
|
+
width: 64px;
|
|
113
|
+
|
|
114
|
+
&[data-run='true']{
|
|
115
|
+
animation: rotate 2s linear infinite;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.btn{
|
|
119
|
+
width: 208px;
|
|
120
|
+
height: 56px;
|
|
121
|
+
span{
|
|
122
|
+
font-size: 20px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.errorText{
|
|
126
|
+
color:#FF1111;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
}
|
|
129
|
+
.footer{
|
|
130
|
+
position: absolute;
|
|
131
|
+
bottom: 24px;
|
|
132
|
+
width: 100%;
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
align-items: center;
|
|
137
|
+
row-gap: 4px;
|
|
138
|
+
p{
|
|
139
|
+
margin-bottom: 0;
|
|
140
|
+
color:#0974F2;
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.sloganWrap{
|
|
147
|
+
position: fixed;
|
|
148
|
+
left:24px;
|
|
149
|
+
top:24px;
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
.slogan{width:73px;}
|
|
153
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {Layout,SearchBar,TitleBar,Content,Panel} from './components/layout'
|
|
4
|
+
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import styles from './home.module.less';
|
|
7
|
+
|
|
8
|
+
const PageTemplate = (props) => {
|
|
9
|
+
const {name} = props;
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<Layout>
|
|
13
|
+
<SearchBar>
|
|
14
|
+
<TitleBar label={name}/>
|
|
15
|
+
</SearchBar>
|
|
16
|
+
|
|
17
|
+
<Content>
|
|
18
|
+
<Panel>
|
|
19
|
+
<section className={styles.row}>
|
|
20
|
+
</section>
|
|
21
|
+
</Panel>
|
|
22
|
+
</Content>
|
|
23
|
+
|
|
24
|
+
</Layout>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default PageTemplate;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import { useState,useMemo } from 'react';
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
import { useSearchParams } from 'react-router-dom';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { createContainer } from "unstated-next";
|
|
7
|
+
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import { message } from "@/components/antd";
|
|
10
|
+
|
|
11
|
+
import {setJwt,setLogout} from '@/services/token';
|
|
12
|
+
|
|
13
|
+
import {jumpUrl} from '@/utils';
|
|
14
|
+
import { KSSO_LOGIN } from '@/services/login';
|
|
15
|
+
import _Storage from '@/utils/storage';
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @typedef AppContaniner
|
|
20
|
+
* @property {boolean} loading - 当前是否是加载状态
|
|
21
|
+
* @property {(open:boolean)=>void} setLoading - 设置加载状态
|
|
22
|
+
* @property {()=>Promise<boolean>} isLogin - 检查是否已登录状态
|
|
23
|
+
* @property {()=>Promise} logout - 注销病退回登录界面
|
|
24
|
+
* @property {(auths:string[])=>void} setAuths - 设置权限
|
|
25
|
+
* @property {object} user - 注销病退回登录界面
|
|
26
|
+
* @property {()=>Promise<boolean>} kssoLogin - 触发ksso登录
|
|
27
|
+
* @property {string[]} auths - 用户的权限列表
|
|
28
|
+
* @property {()=>void} clearLoginInfo - 清理用户登录信息
|
|
29
|
+
* @property {(authName:string|string[])=>boolean} hasAuth - 判断有误某些权限
|
|
30
|
+
* @property {(userData:any,reload?:boolean)=>Promise<boolean>} LoginSuccess - 登录成功后的校验
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 应用全局Provider
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
const useApp=() =>{
|
|
40
|
+
const [search] = useSearchParams();
|
|
41
|
+
const [loading,setLoading] = useState(true);
|
|
42
|
+
const [user,setUser] = useState(null);
|
|
43
|
+
/**
|
|
44
|
+
* @type {[string[],React.Dispatch<React.SetStateAction<string[]>>]}
|
|
45
|
+
*/
|
|
46
|
+
const [auths,setAuths]= useState(null);
|
|
47
|
+
|
|
48
|
+
const isLogin=async ()=>{
|
|
49
|
+
if(!user){
|
|
50
|
+
try{
|
|
51
|
+
let userData = _Storage.load(_Storage.NAME.user)
|
|
52
|
+
if(userData){
|
|
53
|
+
setUser(userData);
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
setJwt(userData.token);
|
|
56
|
+
if(!auths){
|
|
57
|
+
await updateAuth();
|
|
58
|
+
}
|
|
59
|
+
return true;
|
|
60
|
+
}else{
|
|
61
|
+
jumpUrl('/#/login');
|
|
62
|
+
}
|
|
63
|
+
}catch(ex){
|
|
64
|
+
jumpUrl('/#/login');
|
|
65
|
+
}
|
|
66
|
+
}else{
|
|
67
|
+
if(!auths){
|
|
68
|
+
await updateAuth();
|
|
69
|
+
}
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const updateAuth=async ()=>{
|
|
74
|
+
setAuths(['auth1','auth2','auth3','auth4'])
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const LoginSuccess= async (userData,reload=false)=>{
|
|
79
|
+
const {token}= userData;
|
|
80
|
+
setUser(userData);
|
|
81
|
+
setJwt(token);
|
|
82
|
+
const authReq = await updateAuth();
|
|
83
|
+
if(authReq){
|
|
84
|
+
_Storage.write(_Storage.NAME.user,userData);
|
|
85
|
+
let redirect = _Storage.load(_Storage.NAME.redirect);
|
|
86
|
+
_Storage.remove(_Storage.NAME.redirect);
|
|
87
|
+
message.success('登录成功');
|
|
88
|
+
if(reload){
|
|
89
|
+
location.reload();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if(redirect){
|
|
93
|
+
jumpUrl(redirect,{replace:true});
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
jumpUrl('/',{replace:true});
|
|
97
|
+
return true;
|
|
98
|
+
}else{
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const kssoLogin=async ()=>{
|
|
104
|
+
let code = search.get('code');
|
|
105
|
+
if(code){
|
|
106
|
+
var redirect_uri = location.protocol + '//' + location.host + '/#/login';
|
|
107
|
+
const req = await KSSO_LOGIN({code,redirect_uri})
|
|
108
|
+
if(req?.code==0){
|
|
109
|
+
const userData = req?.data;
|
|
110
|
+
const reqLogin = await LoginSuccess(userData);
|
|
111
|
+
return reqLogin;
|
|
112
|
+
}else{
|
|
113
|
+
message.error('ksso登录验证失败,即将重新登录');
|
|
114
|
+
setTimeout(()=>{
|
|
115
|
+
jumpUrl('/#/login',{replace:true});
|
|
116
|
+
},1000)
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
}else{
|
|
120
|
+
jumpUrl(`${location.protocol}//${location.host}/#/login`,{replace:true})
|
|
121
|
+
}
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
const logout=async (changeAccount=false)=>{
|
|
125
|
+
try{
|
|
126
|
+
clearLoginInfo();
|
|
127
|
+
}finally{
|
|
128
|
+
// 防止在登录页出现401导致重定向又回login页面反复
|
|
129
|
+
if( !/[#]\/login/.test(location.href)){
|
|
130
|
+
_Storage.write(_Storage.NAME.redirect,location.href)
|
|
131
|
+
}
|
|
132
|
+
const redirect = `${location.protocol}//${location.host}/#/login`;
|
|
133
|
+
if(!changeAccount || user?.type!=1){
|
|
134
|
+
jumpUrl(redirect,{replace:true});
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if(changeAccount){
|
|
138
|
+
jumpUrl(`https://ksso.kingnet.com/auth/logout?redirect=${encodeURIComponent(redirect)}`,{replace:true})
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const clearLoginInfo=()=>{
|
|
143
|
+
_Storage.remove(_Storage.NAME.user);
|
|
144
|
+
setUser(null);
|
|
145
|
+
setAuths(null);
|
|
146
|
+
setJwt('');
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
const hasAuth=(name)=>{
|
|
151
|
+
let req=false;
|
|
152
|
+
if(Array.isArray(name)){
|
|
153
|
+
for(let i=0;i<name.length;i++){
|
|
154
|
+
let authName = name[i];
|
|
155
|
+
if(auths?.includes(authName)){
|
|
156
|
+
req=true;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
} else if(auths?.includes(name)){
|
|
161
|
+
req=true;
|
|
162
|
+
}
|
|
163
|
+
return req;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
setLogout(logout);
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
const action=useMemo(()=>{
|
|
171
|
+
return {
|
|
172
|
+
loading,
|
|
173
|
+
setLoading,
|
|
174
|
+
isLogin,
|
|
175
|
+
logout,
|
|
176
|
+
user,
|
|
177
|
+
kssoLogin,
|
|
178
|
+
auths,
|
|
179
|
+
setAuths,
|
|
180
|
+
clearLoginInfo,
|
|
181
|
+
LoginSuccess,
|
|
182
|
+
hasAuth,
|
|
183
|
+
}
|
|
184
|
+
},[clearLoginInfo,loading,user,isLogin,kssoLogin,auths,LoginSuccess,hasAuth]);
|
|
185
|
+
|
|
186
|
+
return action
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @typedef {object} AppProvider
|
|
192
|
+
* @property {function():AppContaniner} useContainer
|
|
193
|
+
* @property {React.ComponentType<any>} Provider
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @type {AppProvider}
|
|
198
|
+
*/
|
|
199
|
+
const App = createContainer(useApp);
|
|
200
|
+
|
|
201
|
+
export default App;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { useState } from 'react'
|
|
4
|
+
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { createContainer } from "unstated-next"
|
|
7
|
+
|
|
8
|
+
const useProviderLoading=() =>{
|
|
9
|
+
|
|
10
|
+
const [count,setCount]= useState(0);
|
|
11
|
+
|
|
12
|
+
const open=()=>{
|
|
13
|
+
setCount(v=>v+1)
|
|
14
|
+
}
|
|
15
|
+
const close=()=>{
|
|
16
|
+
setCount(v=>v-1)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return {
|
|
20
|
+
loading:count>0,
|
|
21
|
+
open,
|
|
22
|
+
close,
|
|
23
|
+
count
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @typedef LoadingProviderContaniner
|
|
29
|
+
* @property {()=>void} open - 打开Loading
|
|
30
|
+
* @property {()=>void} close - 关闭Loading
|
|
31
|
+
* @property {boolean} loading - 当前loading状态
|
|
32
|
+
* @property {number} count - 当前loading计数器
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @typedef {object} LoadingProvider
|
|
38
|
+
* @property {function():LoadingProviderContaniner} useContainer
|
|
39
|
+
* @property {React.ComponentType<any>} Provider
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @type {LoadingProvider}
|
|
45
|
+
*/
|
|
46
|
+
const App = createContainer(useProviderLoading);
|
|
47
|
+
export default App;
|