From c9c0a42036aa6a7a036b9d4c2d227cfcb40e4e75 Mon Sep 17 00:00:00 2001 From: Nishant Arora Date: Wed, 28 Dec 2016 09:58:59 +0530 Subject: [PATCH] Some more design improvements --- .gitignore | 1 + client/app/static/app.jsx | 7 +++++-- client/app/static/new.jsx | 29 ++++++++++++++--------------- client/assets/bootstrap.css | 10 ++++------ client/assets/style.css | 6 +++--- db/matterwiki.sqlite | Bin 12288 -> 12288 bytes 6 files changed, 27 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 56b1475..322ae7e 100644 --- a/.gitignore +++ b/.gitignore @@ -38,5 +38,6 @@ jspm_packages client/public db +db/matterwiki.sqlite config.js diff --git a/client/app/static/app.jsx b/client/app/static/app.jsx index f301ab4..d782cde 100644 --- a/client/app/static/app.jsx +++ b/client/app/static/app.jsx @@ -20,9 +20,12 @@ const App = React.createClass({
diff --git a/client/app/static/new.jsx b/client/app/static/new.jsx index 3b68f3f..6294423 100644 --- a/client/app/static/new.jsx +++ b/client/app/static/new.jsx @@ -7,11 +7,11 @@ class NewArticle extends React.Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); - this.state = {title: "", body: ""}; + this.state = {body: ""}; } handleChange() { - this.setState({title: this.refs.title.value, body: this.refs.body.value}); + this.setState({body: this.refs.body.value}); } getRawMarkupBody() { @@ -19,10 +19,6 @@ class NewArticle extends React.Component { return { __html: md.render(this.state.body) }; } - getRawMarkupTitle() { - var md = new Remarkable(); - return { __html: md.render(this.state.title) }; - } componentDidMount() { autosize(document.querySelectorAll('textarea')); @@ -32,13 +28,16 @@ class NewArticle extends React.Component { return (
-
+