This is my first codepen challenge on freeCodeCamp
A Pen by Sean Campbell on CodePen.
This is my first codepen challenge on freeCodeCamp
A Pen by Sean Campbell on CodePen.
A Pen by Sean Campbell on CodePen.
| import { | |
| ADD_RECIPE, | |
| BUILD_LIST | |
| } from '../constants/'; | |
| export { pushPath } from 'redux-simple-router'; | |
| export function addRecipe(recipe) { | |
| return { | |
| type: ADD_RECIPE, |
| import Firebase from 'firebase'; | |
| import Fireproof from 'fireproof'; | |
| const fireRef = new Firebase('https://vegan-recipes.firebaseio.com/'); | |
| const fp = new Fireproof(fireRef); | |
| const list = fp.child('recipeList'); | |
| const firebaseMiddleware = store => next => { | |
| let firebaseRecipeList = {}; | |
| list.then(snap => { | |
| firebaseRecipeList = snap.val(); |
| import { | |
| ADD_RECIPE, | |
| DELETE_RECIPE, | |
| BUILD_LIST | |
| } from '../constants/'; | |
| import { | |
| requestRecipes, | |
| failedRequest, | |
| successfulRequest |
| import path from 'path' | |
| import webpack from 'webpack' | |
| import autoprefixer from 'autoprefixer' | |
| import ExtractTextPlugin from 'extract-text-webpack-plugin' | |
| import HtmlWebpackPlugin from 'html-webpack-plugin' | |
| import NpmInstallPlugin from 'npm-install-webpack-plugin' | |
| const buildPath = path.join(__dirname, 'build') | |
| const entry = path.join(__dirname, 'app', 'index.js') |
| import path from 'path' | |
| import webpack from 'webpack' | |
| import autoprefixer from 'autoprefixer' | |
| import ExtractTextPlugin from 'extract-text-webpack-plugin' | |
| import HtmlWebpackPlugin from 'html-webpack-plugin' | |
| const buildPath = path.join(__dirname, 'build') | |
| const entry = path.join(__dirname, 'app', 'index.js') | |
| module.exports = { | |
| // real source-map for production |
| ////////////////////////////////////////////////////////////// | |
| // Font Variables (http://cssfontstack.com/) | |
| ////////////////////////////////////////////////////////////// | |
| // | |
| // Serif font-stacks | |
| // | |
| $baskerville-font-stack: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif !default; |
| // client bundle without prerendering | |
| { | |
| test: /\.scss$/, | |
| loader: 'style!css?module&localIdentName=[name]__[local]___[hash:base64:5]!sass', | |
| include: appPath | |
| } | |
| // client bundle with prerendering or optimized with separate css | |
| { |
| /* | |
| A div with class “navbar”, when nested inside a div with id “header”, should | |
| have a width of 100px, a left padding of 10px, and always be visible at a fixed | |
| position 30 pixels from the top of the window. | |
| */ | |
| div#header > div.navbar { | |
| width: 100px; | |
| padding-left: 10px; | |
| visibility: visible; |