Skip to content

Commit b987af9

Browse files
committed
add backgroup
1 parent 6e9a567 commit b987af9

File tree

66 files changed

+12927
-177
lines changed

Some content is hidden

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

66 files changed

+12927
-177
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ indent_size = 2
77
end_of_line = lf
88
charset = utf-8
99
trim_trailing_whitespace = true
10+
max_line_length = 80
1011
insert_final_newline = true
1112

1213
[*.md]

.roadhogrc.mock.js

Lines changed: 29 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import mockjs from 'mockjs';
22
import { getRule, postRule } from './mock/rule';
33
import { getActivities, getNotice, getFakeList } from './mock/api';
44
import { getFakeChartData } from './mock/chart';
5+
import { imgMap } from './mock/utils';
56
import { getProfileBasicData } from './mock/profile';
67
import { getProfileAdvancedData } from './mock/profile';
78
import { getNotices } from './mock/notices';
@@ -14,41 +15,37 @@ const noProxy = process.env.NO_PROXY === 'true';
1415
const proxy = {
1516
// 支持值为 Object 和 Array
1617
'GET /api/currentUser': {
17-
$desc: '获取当前用户接口',
18+
$desc: "获取当前用户接口",
1819
$params: {
1920
pageSize: {
2021
desc: '分页',
2122
exp: 2,
2223
},
2324
},
2425
$body: {
25-
name: 'Serati Ma',
26-
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
26+
name: 'momo.zxy',
27+
avatar: imgMap.user,
2728
userid: '00000001',
2829
notifyCount: 12,
2930
},
3031
},
3132
// GET POST 可省略
32-
'GET /api/users': [
33-
{
34-
key: '1',
35-
name: 'John Brown',
36-
age: 32,
37-
address: 'New York No. 1 Lake Park',
38-
},
39-
{
40-
key: '2',
41-
name: 'Jim Green',
42-
age: 42,
43-
address: 'London No. 1 Lake Park',
44-
},
45-
{
46-
key: '3',
47-
name: 'Joe Black',
48-
age: 32,
49-
address: 'Sidney No. 1 Lake Park',
50-
},
51-
],
33+
'GET /api/users': [{
34+
key: '1',
35+
name: 'John Brown',
36+
age: 32,
37+
address: 'New York No. 1 Lake Park',
38+
}, {
39+
key: '2',
40+
name: 'Jim Green',
41+
age: 42,
42+
address: 'London No. 1 Lake Park',
43+
}, {
44+
key: '3',
45+
name: 'Joe Black',
46+
age: 32,
47+
address: 'Sidney No. 1 Lake Park',
48+
}],
5249
'GET /api/project/notice': getNotice,
5350
'GET /api/activities': getActivities,
5451
'GET /api/rule': getRule,
@@ -62,79 +59,26 @@ const proxy = {
6259
$body: postRule,
6360
},
6461
'POST /api/forms': (req, res) => {
65-
res.send({ message: 'Ok' });
62+
res.send('Ok');
6663
},
6764
'GET /api/tags': mockjs.mock({
68-
'list|100': [{ name: '@city', 'value|1-100': 150, 'type|0-2': 1 }],
65+
'list|100': [{ name: '@city', 'value|1-100': 150, 'type|0-2': 1 }]
6966
}),
7067
'GET /api/fake_list': getFakeList,
7168
'GET /api/fake_chart_data': getFakeChartData,
7269
'GET /api/profile/basic': getProfileBasicData,
7370
'GET /api/profile/advanced': getProfileAdvancedData,
7471
'POST /api/login/account': (req, res) => {
75-
const { password, userName, type } = req.body;
76-
if (password === '888888' && userName === 'admin') {
77-
res.send({
78-
status: 'ok',
79-
type,
80-
currentAuthority: 'admin',
81-
});
82-
return;
83-
}
84-
if (password === '123456' && userName === 'user') {
85-
res.send({
86-
status: 'ok',
87-
type,
88-
currentAuthority: 'user',
89-
});
90-
return;
91-
}
92-
res.send({
93-
status: 'error',
94-
type,
95-
currentAuthority: 'guest',
96-
});
72+
const { password, userName } = req.body;
73+
res.send({ status: password === '888888' && userName === 'admin' ? 'ok' : 'error', type: 'account' });
74+
},
75+
'POST /api/login/mobile': (req, res) => {
76+
res.send({ status: 'ok', type: 'mobile' });
9777
},
9878
'POST /api/register': (req, res) => {
99-
res.send({ status: 'ok', currentAuthority: 'user' });
79+
res.send({ status: 'ok' });
10080
},
10181
'GET /api/notices': getNotices,
102-
'GET /api/500': (req, res) => {
103-
res.status(500).send({
104-
timestamp: 1513932555104,
105-
status: 500,
106-
error: 'error',
107-
message: 'error',
108-
path: '/base/category/list',
109-
});
110-
},
111-
'GET /api/404': (req, res) => {
112-
res.status(404).send({
113-
timestamp: 1513932643431,
114-
status: 404,
115-
error: 'Not Found',
116-
message: 'No message available',
117-
path: '/base/category/list/2121212',
118-
});
119-
},
120-
'GET /api/403': (req, res) => {
121-
res.status(403).send({
122-
timestamp: 1513932555104,
123-
status: 403,
124-
error: 'Unauthorized',
125-
message: 'Unauthorized',
126-
path: '/base/category/list',
127-
});
128-
},
129-
'GET /api/401': (req, res) => {
130-
res.status(401).send({
131-
timestamp: 1513932555104,
132-
status: 401,
133-
error: 'Unauthorized',
134-
message: 'Unauthorized',
135-
path: '/base/category/list',
136-
});
137-
},
13882
};
13983

140-
export default (noProxy ? {} : delay(proxy, 1000));
84+
export default noProxy ? {} : delay(proxy, 0);

.stylelintrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
2+
"extends": "stylelint-config-standard",
33
"rules": {
44
"selector-pseudo-class-no-unknown": null,
55
"shorthand-property-no-redundant-values": null,
@@ -17,11 +17,9 @@
1717
"number-no-trailing-zeros": null,
1818
"rule-empty-line-before": null,
1919
"selector-combinator-space-after": null,
20-
"selector-descendant-combinator-no-non-space": null,
2120
"selector-list-comma-newline-after": null,
2221
"selector-pseudo-element-colon-notation": null,
2322
"unit-no-unknown": null,
24-
"no-descending-specificity": null,
2523
"value-list-max-empty-lines": null
2624
}
2725
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 增加你需要的国际化参数,美式英文版
2+
# add your own key here
3+
4+

bbt_custom_src/com/terapico/bbt/BbtCustomResources_zh_CN.properties

Whitespace-only changes.

public/home-background.png

2.44 MB
Loading

src/assets/_locale/en_US.js

100755100644
File mode changed.

src/assets/_locale/index.js

100755100644
File mode changed.

src/assets/_locale/ru_RU.js

100755100644
File mode changed.

src/assets/_locale/zh_CN.js

100755100644
File mode changed.

0 commit comments

Comments
 (0)