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
| // Login the user | |
| export const getUserLogin = (email, password) => { | |
| let | |
| url = `${GT_API_URL}/login` | |
| ; | |
| console.log('getUserLogin'); // This text appears on the log | |
| return function (dispatch) { | |
| dispatch(userLoginRequest()); |
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
| console.log('Loading function'); | |
| const https = require('https'); | |
| const url = require('url'); | |
| // to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
| const slack_url = 'https://hooks.slack.com/services/...'; | |
| const slack_req_opts = url.parse(slack_url); | |
| slack_req_opts.method = 'POST'; | |
| slack_req_opts.headers = {'Content-Type': 'application/json'}; |
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 services = '/services/...'; // Update this with your Slack service... | |
| var channel = "#aws-deployments" // And this with the Slack channel | |
| var https = require('https'); | |
| var util = require('util'); | |
| var formatFields = function(string) { | |
| var | |
| message = JSON.parse(string), | |
| fields = [], |
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
| clean-webpack-plugin: /Applications/MAMP/htdocs/tonight/build has been removed. | |
| Hash: 5d841416e86a960afb3d | |
| Version: webpack 1.13.2 | |
| Time: 58269ms | |
| Asset Size Chunks Chunk Names | |
| robots.txt 26 bytes [emitted] | |
| vendor.b47001ac2219ce9e5fe0.js 3.09 MB 0, 2 [emitted] vendor | |
| manifest.7f098e6c96f193b21664.js 763 bytes 2 [emitted] manifest | |
| app.edc2af931ca5a3a1776b.css 16.2 kB 1, 2 [emitted] app | |
| favicon.ico 1.15 kB [emitted] |
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
| ModuleNotFoundError: Module not found: Error: Cannot resolve module 'babel-runtime' in /Applications/MAMP/htdocs/tonight | |
| at /Applications/MAMP/htdocs/tonight/node_modules/webpack/lib/Compilation.js:229:38 | |
| at onDoneResolving (/Applications/MAMP/htdocs/tonight/node_modules/webpack/lib/NormalModuleFactory.js:29:20) | |
| at /Applications/MAMP/htdocs/tonight/node_modules/webpack/lib/NormalModuleFactory.js:85:20 | |
| at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:726:13 | |
| at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:52:16 | |
| at done (/Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:241:17) | |
| at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:44:16 | |
| at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:723:17 | |
| at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:167:37 |
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
| { | |
| "name": "tonight", | |
| "version": "1.0.0", | |
| "description": "tonight", | |
| "main": "index.js", | |
| "scripts": { | |
| "build": "webpack --display-error-details", | |
| "start": "NODE_ENV=development webpack-dev-server --progress --colors --inline", | |
| "test": "NODE_PATH=./src mocha -R min --compilers js:babel-core/register --require ignore-styles ./tools/test_helper.js \"src/**/*.spec.js\"", | |
| "test:watch": "npm run test -- --watch" |
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
| const | |
| path = require('path') | |
| ; | |
| module.exports = { | |
| babelrc: false, | |
| presets: [ | |
| 'babel-preset-es2015', | |
| 'babel-preset-es2016', | |
| 'babel-preset-react' |
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
| > webpack --display-error-details | |
| clean-webpack-plugin: /Applications/MAMP/htdocs/tonight/build has been removed. | |
| ModuleNotFoundError: Module not found: Error: Cannot resolve module 'babel-runtime' in /Applications/MAMP/htdocs/tonight | |
| at /Applications/MAMP/htdocs/tonight/node_modules/webpack/lib/Compilation.js:229:38 | |
| at onDoneResolving (/Applications/MAMP/htdocs/tonight/node_modules/webpack/lib/NormalModuleFactory.js:29:20) | |
| at /Applications/MAMP/htdocs/tonight/node_modules/webpack/lib/NormalModuleFactory.js:85:20 | |
| at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:726:13 | |
| at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:52:16 | |
| at done (/Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:241:17) |
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
| /** | |
| * @Author: Royce | |
| * @Date: 2016-06-12T10:54:44-04:00 | |
| * @Email: [email protected] | |
| * @Project: Tonight | |
| * @Last modified by: royce | |
| * @Last modified time: 2016-09-23T19:58:59-04:00 | |
| * @License: © 2016 Tonight LLC All Rights Reserved | |
| */ |
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
| import { createLogic } from 'redux-logic'; | |
| import * as ActionTypes from '../Types'; | |
| import { | |
| getCategoriesSuccess, | |
| getCategoriesFailure, | |
| getCatSuccess, | |
| getCatFailure, | |
| voteCatSuccess, |