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
| merge = require('react/lib/merge') | |
| EventEmitter = require('events').EventEmitter | |
| AppDispatcher = require('../dispatchers/appDispatcher') | |
| constants = require('../constants/constants') | |
| CHANGE_EVENT = 'change' | |
| _currentUser = null | |
| _authToken = null | |
| _exp = null |
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
| constants = require('../constants/constants') | |
| AppDispatcher = require('../dispatchers/appDispatcher') | |
| ApiHelper = require('../helpers/ApiHelper') | |
| LoginActionsCreators = { | |
| # user actions | |
| loginUser: (username, password) -> |
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
| var LoginStore = require('../stores/LoginStore'); | |
| var LoginActions = require('../actions/LoginActions'); | |
| var Login = React.createClass({ | |
| getInitialState: function () { | |
| return { | |
| expanded: false, | |
| username: '', |
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
| var fs = require('fs'); | |
| var path = require('path'); | |
| var simple = require('simplify-js'); | |
| var geolib = require('geolib'); | |
| fs.readFile(path.join(__dirname, 'map.geojson'), 'utf8', function(err, data) { | |
| // var jsonPoints = 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
| //node/express server routes for editing | |
| // edit a post | |
| router.get('/a/:id/edit', function(req, res) { | |
| Post.findById(req.params.id, function(err, post) { | |
| if (err) { | |
| res.send(err); | |
| } else { | |
| res.render('createPost', { |
NewerOlder