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
var path = require('path'); | |
var fs = require('fs'); | |
var glob = require('glob'); | |
var _ = require('lodash'); | |
var webpack = require('webpack'); | |
var webpackMerge = require('webpack-merge'); | |
var WEBPACK_PATH = require('./Constants').WEBPACK_PATH; | |
var WEBPACK_CLIENT_SCRIPT = require('./Constants').WEBPACK_CLIENT_SCRIPT; | |
var WEBPACK_SERVER_SCRIPT = require('./Constants').WEBPACK_SERVER_SCRIPT; | |
var WEBPACK_DEV_PORT = require('./Constants').WEBPACK_DEV_PORT; |
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
var SpecialConsole = { | |
log: function(msg) { | |
if (proces.env.NODE_ENV !== 'production') { | |
console.log(msg) | |
} | |
} | |
warn: function(msg) { | |
if (process.env.NODE_ENV !== 'production') { | |
console.warn(msg) |
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
var SpecialConsole = require('./SpecialConsole.js'); | |
window.onerror = function() { | |
SpecialConsole.log("Oh no an error occurred"); | |
} |
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
var SpecialConsole = { | |
log: function(msg) { | |
if (proces.env.NODE_ENV !== 'production') { | |
console.log(msg) | |
} | |
} | |
warn: function(msg) { | |
if (process.env.NODE_ENV !== 'production') { | |
console.warn(msg) |
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
Hey there+Hey there | |
Hey there | |
Hey there | |
Hey there | |
Hey thereHey there | |
Hey there+Hey there | |
Hey there | |
Hey there | |
Hey there | |
Hey thereHey there |
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 ErrorPage from './ErrorPage' | |
import App from './App' | |
import ProfileController from './ProfileController' | |
import {isClient} from '../util' | |
import {Parse} from 'parse' | |
export default function getRoutes () { | |
return ( | |
<Route path="/" | |
component={App}> |
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 ErrorPage from './ErrorPage' | |
import App from './App' | |
import ProfileController from './ProfileController' | |
import {isClient} from '../util' | |
import {Parse} from 'parse' | |
export default function getRoutes () { | |
return ( | |
<Route path="/" | |
component={App}> |
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 ErrorPage from './components/ErrorPage.react' | |
import ReloadPage from './components/ReloadPage.react' | |
import Login from './components/LoginController.react.js' | |
import WorkoutLogController from './components/WorkoutLogController.react.js' | |
import ProfileSettingsController from './components/ProfileSettingsController.react.js' | |
import ProfileController from './components/ProfileController.react' | |
import ProfileSearchController from './components/ProfileSearchController.react' | |
import App from './components/App.react' |
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
var parseApi = new ParseServer({ | |
cloud: initCloud, | |
appName: "My App", | |
databaseURI, | |
verifyEmails: true, | |
...parseParams | |
}); |
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 aws from 'aws-sdk' | |
import path from 'path' | |
import fs from 'fs' | |
aws.config.loadFromPath(path.resolve('credentials', 'aws_config.json')); | |
const ses = new aws.SES({apiVersion: '2010-12-01'}); | |
const resetEmail = fs.readFileSync(path.resolve('emails', 'reset-password.html'), 'utf8'); | |
const verifyEmail = fs.readFileSync(path.resolve('emails', 'verify-email.html'), 'utf8'); | |
import {MailAdapter} from 'parse-server' | |
import Promise from 'bluebird' |