This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx | |
| index 0f8372d..8f1bf8b 100644 | |
| --- a/imports/ui/App.jsx | |
| +++ b/imports/ui/App.jsx | |
| @@ -1,19 +1,14 @@ | |
| -import React, { Component } from 'react'; | |
| +import React, { Component, PropTypes } from 'react'; | |
| +import { createContainer } from 'meteor/react-meteor-data'; | |
| + | |
| +import { Tasks } from '../api/tasks.js'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx | |
| index 78e5548..1d0bbef 100644 | |
| --- a/imports/ui/App.jsx | |
| +++ b/imports/ui/App.jsx | |
| @@ -5,6 +5,7 @@ import { createContainer } from 'meteor/react-meteor-data'; | |
| import { Tasks } from '../api/tasks.js'; | |
| import Task from './Task.jsx'; | |
| +import AccountsUIWrapper from './AccountsUIWrapper.jsx'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/client/main.jsx b/client/main.jsx | |
| index 9ba3d08..b8c5033 100644 | |
| --- a/client/main.jsx | |
| +++ b/client/main.jsx | |
| @@ -2,6 +2,7 @@ import React from 'react'; | |
| import { Meteor } from 'meteor/meteor'; | |
| import { render } from 'react-dom'; | |
| +import '../imports/startup/accounts-config.js'; | |
| import App from '../imports/ui/App.jsx'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx | |
| index 1d0bbef..7694eb8 100644 | |
| --- a/imports/ui/App.jsx | |
| +++ b/imports/ui/App.jsx | |
| @@ -1,5 +1,6 @@ | |
| import React, { Component, PropTypes } from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| +import { Meteor } from 'meteor/meteor'; | |
| import { createContainer } from 'meteor/react-meteor-data'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx | |
| index 7694eb8..ce0b541 100644 | |
| --- a/imports/ui/App.jsx | |
| +++ b/imports/ui/App.jsx | |
| @@ -95,5 +95,6 @@ export default createContainer(() => { | |
| return { | |
| tasks: Tasks.find({}, { sort: { createdAt: -1 } }).fetch(), | |
| incompleteCount: Tasks.find({ checked: { $ne: true } }).count(), | |
| + currentUser: Meteor.user(), | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx | |
| index ce0b541..bbbb728 100644 | |
| --- a/imports/ui/App.jsx | |
| +++ b/imports/ui/App.jsx | |
| @@ -69,13 +69,15 @@ class App extends Component { | |
| <AccountsUIWrapper /> | |
| - <form className="new-task" onSubmit={this.handleSubmit.bind(this)} > | |
| - <input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/Task.jsx b/imports/ui/Task.jsx | |
| index 3140871..5650fa0 100644 | |
| --- a/imports/ui/Task.jsx | |
| +++ b/imports/ui/Task.jsx | |
| @@ -33,7 +33,9 @@ export default class Task extends Component { | |
| onClick={this.toggleChecked.bind(this)} | |
| /> | |
| - <span className="text">{this.props.task.text}</span> | |
| + <span className="text"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/api/tasks.js b/imports/api/tasks.js | |
| index 3bed819..0201eb4 100644 | |
| --- a/imports/api/tasks.js | |
| +++ b/imports/api/tasks.js | |
| @@ -1,3 +1,34 @@ | |
| +import { Meteor } from 'meteor/meteor'; | |
| import { Mongo } from 'meteor/mongo'; | |
| +import { check } from 'meteor/check'; | |
| export const Tasks = new Mongo.Collection('tasks'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx | |
| index bbbb728..4f41c39 100644 | |
| --- a/imports/ui/App.jsx | |
| +++ b/imports/ui/App.jsx | |
| @@ -24,12 +24,7 @@ class App extends Component { | |
| // Find the text field via the React ref | |
| const text = ReactDOM.findDOMNode(this.refs.textInput).value.trim(); | |
| - Tasks.insert({ | |
| - text, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/Task.jsx b/imports/ui/Task.jsx | |
| index 5650fa0..ee040c5 100644 | |
| --- a/imports/ui/Task.jsx | |
| +++ b/imports/ui/Task.jsx | |
| @@ -1,18 +1,15 @@ | |
| import React, { Component, PropTypes } from 'react'; | |
| - | |
| -import { Tasks } from '../api/tasks.js'; | |
| +import { Meteor } from 'meteor/meteor'; | |