This file contains 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
{ | |
"syntaxProfiles": { | |
"jsx": { | |
"attr_quotes": "single" | |
} | |
} | |
} |
This file contains 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
import { take, call, put, fork, cancel } from 'redux-saga/effects'; | |
import { LOCATION_CHANGE } from 'react-router-redux'; | |
import { GET_RECOMMENDATIONS } from './constants'; | |
import { getRecommendationsError, getRecommendationsSuccess } from './actions'; | |
import request from 'utils/request'; | |
function* getRecommendations() { | |
const requestURL = '/api/tinder/recommendations'; | |
const profiles = yield call(request, requestURL); |
This file contains 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
import React from 'react'; | |
import { connect } from 'react-redux'; | |
import * as postsActions from '../actions/postsActions'; | |
import { bindActionCreators } from 'redux'; | |
import { fetchAndRecievePosts } from '../actions/postsActions'; | |
import CallToAction from '../components/CallToAction'; | |
import PostBlock from '../components/PostBlock'; | |
import DraftBlock from '../components/DraftBlock'; | |
import {editorStateToJSON, editorStateFromRaw} from "megadraft/lib/utils"; |
This file contains 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
const path = require('path'); | |
const express = require('express'); | |
const webpack = require('webpack'); | |
const config = require('./webpack.config.dev'); | |
const app = express(); | |
const compiler = webpack(config); | |
app.use(require('webpack-dev-middleware')(compiler, { | |
noInfo: true, |
This file contains 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
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = { | |
devtool: 'cheap-module-eval-source-map', | |
entry: [ | |
'webpack-hot-middleware/client', | |
'./src/index' | |
], | |
output: { |
This file contains 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
Router.route('/video/:_id', { | |
name: 'Test', | |
waitOn: function() { | |
return Meteor.subscribe('videos', this.params._id); | |
}, | |
data: function() { | |
return Videos.findOne(this.params._id); | |
} | |
}); |
NewerOlder