Commit abe38651 authored by 陈帅's avatar 陈帅

support dark theme

parent bf78f566
...@@ -10,9 +10,7 @@ ...@@ -10,9 +10,7 @@
.ant-card-meta-avatar { .ant-card-meta-avatar {
font-size: 0; font-size: 0;
} }
.ant-card-actions {
background: #f7f9fa;
}
.ant-list .ant-list-item-content-single { .ant-list .ant-list-item-content-single {
max-width: 100%; max-width: 100%;
} }
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
} }
:global { :global {
.ant-list-split .ant-list-item:last-child { .ant-list-split .ant-list-item:last-child {
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid @border-color-split;
} }
.ant-list-item { .ant-list-item {
padding-top: 14px; padding-top: 14px;
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
.extra { .extra {
padding: 24px 40px; padding: 24px 40px;
text-align: left; text-align: left;
background: #fafafa; background: @component-background;
border-radius: @border-radius-sm; border-radius: @border-radius-sm;
@media screen and (max-width: @screen-xs) { @media screen and (max-width: @screen-xs) {
......
...@@ -100,7 +100,7 @@ function fakeList(count: number): BasicListItemDataType[] { ...@@ -100,7 +100,7 @@ function fakeList(count: number): BasicListItemDataType[] {
return list; return list;
} }
let sourceData: Array<BasicListItemDataType>; let sourceData: Array<BasicListItemDataType> = [];
function getFakeList(req: { query: any }, res: { json: (arg0: BasicListItemDataType[]) => void }) { function getFakeList(req: { query: any }, res: { json: (arg0: BasicListItemDataType[]) => void }) {
const params = req.query; const params = req.query;
...@@ -117,7 +117,7 @@ function postFakeList(req: { body: any }, res: { json: (arg0: BasicListItemDataT ...@@ -117,7 +117,7 @@ function postFakeList(req: { body: any }, res: { json: (arg0: BasicListItemDataT
// const params = getUrlParams(url); // const params = getUrlParams(url);
const { method, id } = body; const { method, id } = body;
// const count = (params.count * 1) || 20; // const count = (params.count * 1) || 20;
let result = sourceData; let result = sourceData || [];
switch (method) { switch (method) {
case 'delete': case 'delete':
......
...@@ -155,6 +155,6 @@ function postRule( ...@@ -155,6 +155,6 @@ function postRule(
} }
export default { export default {
'GET /api/': getRule, 'GET /api/rule': getRule,
'POST /api/': postRule, 'POST /api/rule': postRule,
}; };
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
.extra { .extra {
padding: 24px 40px; padding: 24px 40px;
text-align: left; text-align: left;
background: #fafafa; background: @background-color-light;
border-radius: @border-radius-sm; border-radius: @border-radius-sm;
@media screen and (max-width: @screen-xs) { @media screen and (max-width: @screen-xs) {
......
...@@ -3,3 +3,9 @@ ...@@ -3,3 +3,9 @@
.error_icon { .error_icon {
color: @highlight-color; color: @highlight-color;
} }
.title {
margin-bottom: 16px;
color: @heading-color;
font-weight: 500;
font-size: 16px;
}
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';
import { Button, Icon, Card } from 'antd'; import { Button, Icon, Card } from 'antd';
import Result from './Result';
import { GridContent } from '@ant-design/pro-layout'; import { GridContent } from '@ant-design/pro-layout';
import Result from './Result';
import styles from './index.less'; import styles from './index.less';
const extra = ( const extra = (
<Fragment> <Fragment>
<div <div className={styles.title}>
style={{
fontSize: 16,
color: 'rgba(0, 0, 0, 0.85)',
fontWeight: 500,
marginBottom: 16,
}}
>
<FormattedMessage <FormattedMessage
id="BLOCK_NAME.error.hint-title" id="BLOCK_NAME.error.hint-title"
defaultMessage="The content you submitted has the following error:" defaultMessage="The content you submitted has the following error:"
...@@ -32,11 +25,7 @@ const extra = ( ...@@ -32,11 +25,7 @@ const extra = (
</a> </a>
</div> </div>
<div> <div>
<Icon <Icon style={{ marginRight: 8 }} className={styles.error_icon} type="close-circle-o" />
style={{ color: '#f5222d', marginRight: 8 }}
className={styles.error_icon}
type="close-circle-o"
/>
<FormattedMessage <FormattedMessage
id="BLOCK_NAME.error.hint-text2" id="BLOCK_NAME.error.hint-text2"
defaultMessage="Your account is not yet eligible to apply" defaultMessage="Your account is not yet eligible to apply"
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
.extra { .extra {
padding: 24px 40px; padding: 24px 40px;
text-align: left; text-align: left;
background: #fafafa; background: @background-color-light;
border-radius: @border-radius-sm; border-radius: @border-radius-sm;
@media screen and (max-width: @screen-xs) { @media screen and (max-width: @screen-xs) {
......
@import '~antd/lib/style/themes/default.less';
.title {
position: relative;
left: 42px;
color: @text-color;
font-size: 12px;
text-align: left;
}
.head-title {
margin-bottom: 20px;
color: rgba(0, 0, 0, 0.85);
font-weight: 500px;
font-size: 16px;
}
...@@ -3,22 +3,15 @@ import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; ...@@ -3,22 +3,15 @@ import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';
import { Button, Row, Col, Icon, Steps, Card } from 'antd'; import { Button, Row, Col, Icon, Steps, Card } from 'antd';
import Result from './Result'; import Result from './Result';
import { GridContent } from '@ant-design/pro-layout'; import { GridContent } from '@ant-design/pro-layout';
import styles from './index.less';
const { Step } = Steps; const { Step } = Steps;
const desc1 = ( const desc1 = (
<div <div className={styles.title}>
style={{
fontSize: 12,
color: 'rgba(0, 0, 0, 0.45)',
position: 'relative',
left: 42,
textAlign: 'left',
}}
>
<div style={{ margin: '8px 0 4px' }}> <div style={{ margin: '8px 0 4px' }}>
<FormattedMessage id="BLOCK_NAME.success.step1-operator" defaultMessage="Qu Lili" /> <FormattedMessage id="BLOCK_NAME.success.step1-operator" defaultMessage="Qu Lili" />
<Icon style={{ marginLeft: 8 }} type="dingding-o" /> <Icon style={{ marginLeft: 8, color: '#00A0E9' }} type="dingding-o" />
</div> </div>
<div>2016-12-12 12:32</div> <div>2016-12-12 12:32</div>
</div> </div>
...@@ -40,31 +33,24 @@ const desc2 = ( ...@@ -40,31 +33,24 @@ const desc2 = (
const extra = ( const extra = (
<Fragment> <Fragment>
<div <div className={styles['head-title']}>
style={{
fontSize: 16,
color: 'rgba(0, 0, 0, 0.85)',
fontWeight: 500,
marginBottom: 20,
}}
>
<FormattedMessage id="BLOCK_NAME.success.operate-title" defaultMessage="Project Name" /> <FormattedMessage id="BLOCK_NAME.success.operate-title" defaultMessage="Project Name" />
</div> </div>
<Row style={{ marginBottom: 16 }}> <Row style={{ marginBottom: 16 }}>
<Col xs={24} sm={12} md={12} lg={12} xl={6}> <Col xs={24} sm={12} md={12} lg={12} xl={6}>
<span style={{ color: 'rgba(0, 0, 0, 0.85)' }}> <span>
<FormattedMessage id="BLOCK_NAME.success.operate-id" defaultMessage="Project ID:" /> <FormattedMessage id="BLOCK_NAME.success.operate-id" defaultMessage="Project ID:" />
</span> </span>
23421 23421
</Col> </Col>
<Col xs={24} sm={12} md={12} lg={12} xl={6}> <Col xs={24} sm={12} md={12} lg={12} xl={6}>
<span style={{ color: 'rgba(0, 0, 0, 0.85)' }}> <span>
<FormattedMessage id="BLOCK_NAME.success.principal" defaultMessage="Principal:" /> <FormattedMessage id="BLOCK_NAME.success.principal" defaultMessage="Principal:" />
</span> </span>
<FormattedMessage id="BLOCK_NAME.success.step1-operator" defaultMessage="Qu Lili" /> <FormattedMessage id="BLOCK_NAME.success.step1-operator" defaultMessage="Qu Lili" />
</Col> </Col>
<Col xs={24} sm={24} md={24} lg={24} xl={12}> <Col xs={24} sm={24} md={24} lg={24} xl={12}>
<span style={{ color: 'rgba(0, 0, 0, 0.85)' }}> <span>
<FormattedMessage <FormattedMessage
id="BLOCK_NAME.success.operate-time" id="BLOCK_NAME.success.operate-time"
defaultMessage="Effective time:" defaultMessage="Effective time:"
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
.extra { .extra {
padding: 24px 40px; padding: 24px 40px;
text-align: left; text-align: left;
background: #fafafa; background: @background-color-light;
border-radius: @border-radius-sm; border-radius: @border-radius-sm;
@media screen and (max-width: @screen-xs) { @media screen and (max-width: @screen-xs) {
......
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "cross-env PAGES_PATH='ProfileAdvanced/src' umi dev", "dev": "cross-env PAGES_PATH='ResultSuccess/src' umi dev",
"lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier", "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"lint-staged:ts": "tslint", "lint-staged:ts": "tslint",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment