master
zhengpengju 4 years ago
parent 5700c002c4
commit 37be251c5a

3
.gitignore vendored

@ -38,3 +38,6 @@ screenshot
.eslintcache
build
# blocks
blocks

@ -1,3 +1,5 @@
# 考务管理大数据平台(自定义)数据上报
# Ant Design Pro
This project is initialized with [Ant Design Pro](https://pro.ant.design). Follow is the quick guide for how to use.
@ -55,3 +57,13 @@ npm test
## More
You can view full document on our [official website](https://pro.ant.design). And welcome any feedback in our [github](https://github.com/ant-design/ant-design-pro).
### Block
```bash
$ yarn umi block add --path http://localhost:5000/blocks/procomponents
$ yarn umi generate page hello
$ yarn umi block add ./blocks/procomponents
$ yarn umi block clear
```

@ -316,6 +316,30 @@ export default defineConfig({
path: '/',
redirect: '/dashboard/analysis',
},
{
name: '空白页面',
icon: 'smile',
path: '/emptypagetwo',
component: './EmptyPageFour',
},
{
name: '空白页面',
icon: 'smile',
path: '/emptypagetwo',
component: './EmptyPageThree',
},
{
name: '空白页面',
icon: 'smile',
path: '/emptypagetwo',
component: './EmptyPageTwo',
},
{
name: '空白页面',
icon: 'smile',
path: '/emptypage',
component: './EmptyPage',
},
{
component: '404',
},

@ -32,7 +32,9 @@
"test:all": "node ./tests/run-tests.js",
"test:component": "umi test ./src/components",
"serve": "umi-serve",
"tsc": "tsc --noEmit"
"tsc": "tsc --noEmit",
"creator": "node ./scripts/creator.js",
"block-serve": "node ./scripts/block.js"
},
"lint-staged": {
"**/*.less": "stylelint --syntax less",

@ -0,0 +1,16 @@
const express = require('express')
const path = require("path")
const app = express()
const port = 5000
app.use('/blocks', express.static(path.join(path.resolve(__dirname, '..'), 'blocks')))
console.log('path:', path.join(path.resolve(__dirname, '..'), 'blocks'))
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
})

@ -0,0 +1,2 @@
#!/usr/bin/env node
console.log('hello')

@ -6,7 +6,7 @@ export default () => {
const intl = useIntl();
const defaultMessage = intl.formatMessage({
id: 'app.copyright.produced',
defaultMessage: '蚂蚁集团体验技术部出品',
defaultMessage: '东北师大理想软件股份有限公司',
});
const currentYear = new Date().getFullYear();
@ -15,6 +15,7 @@ export default () => {
<DefaultFooter
copyright={`${currentYear} ${defaultMessage}`}
links={[
/*
{
key: 'Ant Design Pro',
title: 'Ant Design Pro',
@ -32,7 +33,7 @@ export default () => {
title: 'Ant Design',
href: 'https://ant.design',
blankTarget: true,
},
},*/
]}
/>
);

@ -11,7 +11,7 @@ export default {
'layout.user.link.help': '帮助',
'layout.user.link.privacy': '隐私',
'layout.user.link.terms': '条款',
'app.copyright.produced': '蚂蚁集团体验技术部出品',
'app.copyright.produced': '东北师大理想软件股份有限公司',
'app.preview.down.block': '下载此页面到本地项目',
'app.welcome.link.fetch-blocks': '获取全部区块',
'app.welcome.link.block-list': '基于 block 开发,快速构建标准页面',

@ -0,0 +1,4 @@
.title {
background: rgb(121, 242, 196);
}

@ -0,0 +1,10 @@
import React from 'react';
import styles from './hello.css';
export default function Page() {
return (
<div>
<h1 className={styles.title}>Page hello</h1>
</div>
);
}

@ -0,0 +1,4 @@
.title {
background: rgb(195, 242, 121);
}

@ -0,0 +1,10 @@
import React from 'react';
import styles from './hello2.css';
export default function Page() {
return (
<div>
<h1 className={styles.title}>Page hello2</h1>
</div>
);
}

@ -1,10 +1,7 @@
import {
AlipayCircleOutlined,
LockOutlined,
MobileOutlined,
TaobaoCircleOutlined,
UserOutlined,
WeiboCircleOutlined,
} from '@ant-design/icons';
import { Alert, message, Tabs } from 'antd';
import React, { useState } from 'react';
@ -85,20 +82,13 @@ const Login: React.FC = () => {
<div className={styles.content}>
<LoginForm
logo={<img alt="logo" src="/logo.svg" />}
title="Ant Design"
subTitle={intl.formatMessage({ id: 'pages.layouts.userLayout.title' })}
title="基础数据"
subTitle="DSBase Universal V1.0"
initialValues={{
autoLogin: true,
}}
actions={[
<FormattedMessage
key="loginWith"
id="pages.login.loginWith"
defaultMessage="其他登录方式"
/>,
<AlipayCircleOutlined key="AlipayCircleOutlined" className={styles.icon} />,
<TaobaoCircleOutlined key="TaobaoCircleOutlined" className={styles.icon} />,
<WeiboCircleOutlined key="WeiboCircleOutlined" className={styles.icon} />,
]}
onFinish={async (values) => {
await handleSubmit(values as API.LoginParams);

Loading…
Cancel
Save