Skip to content

Commit

Permalink
fix for milestone #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Evilcome committed May 25, 2017
1 parent 00c3d2e commit 7ff2f0a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
Binary file removed public/favicon.png
Binary file not shown.
7 changes: 6 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no">

<link rel="icon" type="image/png" href="favicon.png"
<link rel="icon" type="image/png" href="http://cdn-qn0.cibuci.com/static/site/favicon-v1.0.0-alpha.png" />
<!-- apple touch icon -->
<link rel="apple-touch-icon" href="http://cdn-qn0.cibuci.com/static/site/dinosaur/touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="152x152" href="http://cdn-qn0.cibuci.com/static/site/dinosaur/touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="180x180" href="http://cdn-qn0.cibuci.com/static/site/dinosaur/touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="167x167" href="http://cdn-qn0.cibuci.com/static/site/dinosaur/touch-icon-ipad-retina.png">

<!-- app main css -->
<link rel="stylesheet" href="index.css" />
Expand Down
9 changes: 9 additions & 0 deletions src/components/Common/InsertHtml.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
vertical-align: -0.4em;
}

blockquote:after {
visibility: hidden;
color: #111;
content: close-quote;
font-size: 4em;
line-height: 0;
vertical-align: -0.4em;
}

img {
max-width: 100%;
display: block;
Expand Down
2 changes: 2 additions & 0 deletions src/components/Editor/CustomToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ class CustomToolbar extends React.Component {
<button onClick={this.showModal}>
<Icon type="picture" style={{ fontWeight: 'bold', fontSize: 16, lineHeight: 1.2 }} />
</button>
<div style={styles.split} />
<button className="ql-clean" />
<Modal
title="上传图片"
visible={this.state.visible}
Expand Down
2 changes: 1 addition & 1 deletion src/models/article/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default {

* editItem({ payload }, { put, call }) { // eslint-disable-line
yield call(updateArticle, payload);
yield put(routerRedux.push('/article'));
yield put(routerRedux.push(`/article/${payload.id}`));
},
},

Expand Down
2 changes: 1 addition & 1 deletion src/models/topic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {

* editItem({ payload }, { put, call }) { // eslint-disable-line
yield call(updateTopic, payload);
yield put(routerRedux.push('/topic'));
yield put(routerRedux.push(`/topic/${payload.id}`));
},

* removeItem({ payload }, { put, call }) { // eslint-disable-line
Expand Down

0 comments on commit 7ff2f0a

Please sign in to comment.