Skip to content

Commit ae466fb

Browse files
author
思忠
committed
feat: init
1 parent 9915a12 commit ae466fb

File tree

31 files changed

+1493
-0
lines changed

31 files changed

+1493
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ice-scaffold-cms
2+
3+
> 使用文档
4+
5+
使用:
6+
7+
* 启动调试服务: `npm start`
8+
* 构建 dist: `npm run build`
9+
10+
目录结构:
11+
12+
* react-router @4.x 默认采用 hashHistory 的单页应用
13+
* 入口文件: `src/index.js`
14+
* 导航配置: `src/menuConfig.js`
15+
* 路由配置: `src/routerConfig.js`
16+
* 路由入口: `src/router.jsx`
17+
* 布局文件: `src/layouts`
18+
* 通用组件: `src/components`
19+
* 页面文件: `src/pages`
20+
21+
效果图:
22+
23+
![screenshot](https://img.alicdn.com/tfs/TB1ai53mqmWBuNjy1XaXXXCbXXa-1920-1080.png)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# production
7+
/build
8+
/dist
9+
10+
# misc
11+
.idea/
12+
.happypack
13+
.DS_Store
14+
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"status": "SUCCESS",
3+
"data": {
4+
"all": [
5+
{
6+
"title": "Why Rax",
7+
"author": "大果",
8+
"status": "已发布",
9+
"date": "2017-02-11"
10+
},
11+
{
12+
"title": "JavaScriptCore",
13+
"author": "寒泉",
14+
"status": "已发布",
15+
"date": "2018-01-23"
16+
},
17+
{
18+
"title": "机器学习",
19+
"author": "梧忌",
20+
"status": "已发布",
21+
"date": "2017-12-07"
22+
},
23+
{
24+
"title": "LevelDB 实现分析",
25+
"author": "胡帅",
26+
"status": "已发布",
27+
"date": "2017-07-05"
28+
},
29+
{
30+
"title": "Git Diff 解析器",
31+
"author": "栖邀",
32+
"status": "已发布",
33+
"date": "2017-05-18"
34+
},
35+
{
36+
"title": "函数式编程",
37+
"author": "化辰",
38+
"status": "已发布",
39+
"date": "2017-03-16"
40+
}
41+
],
42+
"review": [
43+
{
44+
"title": "机器学习",
45+
"author": "梧忌",
46+
"status": "审核中",
47+
"date": "2017-12-07"
48+
},
49+
{
50+
"title": "LevelDB 实现分析",
51+
"author": "胡帅",
52+
"status": "审核中",
53+
"date": "2017-07-05"
54+
}
55+
],
56+
"released": [
57+
{
58+
"title": "Git Diff 解析器",
59+
"author": "栖邀",
60+
"status": "已发布",
61+
"date": "2017-05-18"
62+
},
63+
{
64+
"title": "函数式编程",
65+
"author": "化辰",
66+
"status": "已发布",
67+
"date": "2017-03-16"
68+
}
69+
],
70+
"rejected": [
71+
{
72+
"title": "Why Rax",
73+
"author": "大果",
74+
"status": "已拒绝",
75+
"date": "2017-02-11"
76+
},
77+
{
78+
"title": "JavaScriptCore",
79+
"author": "寒泉",
80+
"status": "已拒绝",
81+
"date": "2018-01-23"
82+
}
83+
]
84+
}
85+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"status": "SUCCESS",
3+
"data": {
4+
"all": [
5+
{
6+
"id": "1",
7+
"username": "Bruce",
8+
"email": "[email protected]",
9+
"group": "管理员",
10+
"articleNum": "10",
11+
"commentNum": "82",
12+
"regTime": "2017-02-11",
13+
"LastLoginTime": "2018-02-11"
14+
},
15+
{
16+
"id": "2",
17+
"username": "Alex",
18+
"email": "[email protected]",
19+
"group": "管理员",
20+
"articleNum": "29",
21+
"commentNum": "12",
22+
"regTime": "2017-02-11",
23+
"LastLoginTime": "2018-02-11"
24+
},
25+
{
26+
"id": "3",
27+
"username": "Bob",
28+
"email": "[email protected]",
29+
"group": "投稿者",
30+
"articleNum": "30",
31+
"commentNum": "57",
32+
"regTime": "2017-02-11",
33+
"LastLoginTime": "2018-02-11"
34+
},
35+
{
36+
"id": "4",
37+
"username": "Charles",
38+
"email": "[email protected]",
39+
"group": "投稿者",
40+
"articleNum": "89",
41+
"commentNum": "129",
42+
"regTime": "2017-02-11",
43+
"LastLoginTime": "2018-02-11"
44+
},
45+
{
46+
"id": "5",
47+
"username": "Eric",
48+
"email": "[email protected]",
49+
"group": "投稿者",
50+
"articleNum": "38",
51+
"commentNum": "63",
52+
"regTime": "2017-02-11",
53+
"LastLoginTime": "2018-02-11"
54+
}
55+
],
56+
"review": [
57+
{
58+
"id": "1",
59+
"username": "Bob",
60+
"email": "[email protected]",
61+
"group": "管理员",
62+
"articleNum": "10",
63+
"commentNum": "82",
64+
"regTime": "2017-02-11",
65+
"LastLoginTime": "2018-02-11"
66+
}
67+
]
68+
}
69+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"name": "@icedesign/cms-scaffold",
3+
"version": "1.0.1",
4+
"description":
5+
"该模板内置了丰富的区块,主要适用于类 CMS 管理系统,使用时需要根据需求进行删除和添加",
6+
"homepage":
7+
"https://alibaba.github.io/ice/scaffold-preview/ice-design-cms.html",
8+
"dependencies": {
9+
"@antv/data-set": "^0.8.5",
10+
"@icedesign/base": "^0.2.0",
11+
"@icedesign/container": "^0.1.0",
12+
"@icedesign/form-binder": "^0.1.4",
13+
"@icedesign/icon": "^0.1.1",
14+
"@icedesign/img": "^0.1.0",
15+
"@icedesign/layout": "^0.1.0",
16+
"@icedesign/menu": "^0.1.0",
17+
"@icedesign/skin": "^0.1.0",
18+
"axios": "^0.17.1",
19+
"bizcharts": "3.1.0",
20+
"classnames": "^2.2.5",
21+
"enquire-js": "^0.1.2",
22+
"foundation-symbol": "^0.1.0",
23+
"immutable": "^3.8.2",
24+
"is-hotkey": "^0.1.1",
25+
"prop-types": "^15.5.8",
26+
"react-document-title": "^2.0.3",
27+
"react-router-dom": "^4.2.2",
28+
"slate": "^0.32.5",
29+
"slate-plain-serializer": "^0.5.6",
30+
"slate-react": "^0.11.6"
31+
},
32+
"devDependencies": {
33+
"babel-eslint": "^8.0.3",
34+
"eslint": "^4.13.1",
35+
"eslint-config-airbnb": "^16.1.0",
36+
"eslint-plugin-babel": "^4.1.1",
37+
"eslint-plugin-import": "^2.8.0",
38+
"eslint-plugin-jsx-a11y": "^6.0.3",
39+
"eslint-plugin-react": "^7.5.1",
40+
"ice-scripts": "^1.1.1"
41+
},
42+
"scripts": {
43+
"start": "ice dev",
44+
"build": "ice build",
45+
"lint": "eslint . --ext '.js,.jsx' --fix"
46+
},
47+
"publishConfig": {
48+
"registry": "http://registry.npmjs.com",
49+
"access": "public"
50+
},
51+
"buildConfig": {
52+
"theme": "@icedesign/skin",
53+
"entry": "src/index.js"
54+
},
55+
"scaffoldConfig": {
56+
"name": "ice-design-cms",
57+
"title": "ICE Design CMS",
58+
"screenshot":
59+
"https://img.alicdn.com/tfs/TB1ai53mqmWBuNjy1XaXXXCbXXa-1920-1080.png"
60+
}
61+
}
2.14 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1">
7+
<link rel="icon" type="image/png" href="https://img.alicdn.com/tps/TB1kBU7NpXXXXXLXXXXXXXXXXXX-160-160.png">
8+
<meta name="viewport" content="width=device-width">
9+
<title>ICE Design CMS</title>
10+
</head>
11+
12+
<body>
13+
<div id="ice-container"></div>
14+
<% if (NODE_ENV === 'production') { %>
15+
<script src="https://g.alicdn.com/code/npm/??react/16.2.0/umd/react.production.min.js,react-dom/16.2.0/umd/react-dom.production.min.js"></script>
16+
<% } else { %>
17+
<script src="https://g.alicdn.com/code/npm/??react/16.2.0/umd/react.development.js,react-dom/16.2.0/umd/react-dom.development.js"></script>
18+
<% } %>
19+
</body>
20+
21+
</html>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import React, { PureComponent } from 'react';
2+
import Layout from '@icedesign/layout';
3+
import cx from 'classnames';
4+
import Logo from '../Logo';
5+
6+
export default class Footer extends PureComponent {
7+
render() {
8+
const { className, style } = this.props;
9+
return (
10+
<Layout.Footer
11+
className={cx('ice-design-layout-footer', className)}
12+
style={{
13+
...style,
14+
lineHeight: '36px',
15+
}}
16+
>
17+
<div className="ice-design-layout-footer-body">
18+
<div style={{ filter: 'grayscale(100%)', opacity: 0.3 }}>
19+
<Logo />
20+
</div>
21+
<div className="copyright">
22+
© 2018 Theme designed by{' '}
23+
<a
24+
href="https://github.com/alibaba/ice"
25+
target="_blank"
26+
className="copyright-link"
27+
rel="noopener noreferrer"
28+
>
29+
ICE
30+
</a>
31+
</div>
32+
</div>
33+
</Layout.Footer>
34+
);
35+
}
36+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Footer from './Footer';
2+
3+
export default Footer;

0 commit comments

Comments
 (0)