Skip to content

Commit

Permalink
per review
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Feb 27, 2017
1 parent 3c0c68c commit 994bff3
Show file tree
Hide file tree
Showing 78 changed files with 18,201 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type Props = {
};

const AddTodoForm = ({ text, addTodo, editAddTodoForm }: Props) => (
<form onSubmit={event => event.preventDefault() && addTodo()}>
<form onSubmit={event => event.preventDefault() && addTodo(event.target.value)}>
<input
type="text"
value={text}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// @flow
import { call, put, fork, takeEvery } from 'redux-saga/effects';
import type { putEffect, IOEffect } from 'redux-saga/effects';

import * as api from 'app/api/todos';

import { addTodo as addTodoActionType, removeTodo as removeTodoActionType } from '../actionTypes/todos';
import * as todosActions from '../actions/todos';
import type { numberPayload, tempTodoPayload } from '../types';
Expand All @@ -18,7 +20,6 @@ export function* addTodo({ payload }: tempTodoPayload): Generator<any, putEffect
export function* removeTodo({ payload }: numberPayload): Generator<any, putEffect, any> {
const { response, error } = yield call(api.removeTodo, payload);
if (response) {
// But there is no data on a successful delete?
yield put(todosActions.removeTodoSuccess(response.data));
} else {
yield put(todosActions.removeTodoFailure(error.message));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { arrayOf as __arrayOf, normalize as __normalize } from 'normalizr';
import _ from 'lodash/fp';

import { fromJS, Map as $$Map, OrderedSet as $$OrderedSet } from 'immutable';

import { toArray } from '../index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { normalizeMapIdKeys, normalizeArray, normalizeArrayToMap } from './index

describe('libs/utils/normalizr', () => {
test('normalizeArray', () => {
it('creates an object with numeric ids as the keys', (): void => {
it('creates an object with numeric ids as the keys', () => {
const array = [{ id: 1 }];

const actual = normalizeArray(array);
Expand All @@ -13,7 +13,7 @@ describe('libs/utils/normalizr', () => {
});

test('normalizeArrayToMap', () => {
it('creates a map with numeric ids as the keys', (): void => {
it('creates a map with numeric ids as the keys', () => {
const array = [{ id: 1 }];

const actual = normalizeArrayToMap(array);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// flow-typed signature: 2d68d62ca95965789024bed82cfb3125
// flow-typed version: <<STUB>>/@kadira/storybook-addons_v^1.3.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
*
* '@kadira/storybook-addons'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@kadira/storybook-addons' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@kadira/storybook-addons/dist/index' {
declare module.exports: any;
}

declare module '@kadira/storybook-addons/src/index' {
declare module.exports: any;
}

// Filename aliases
declare module '@kadira/storybook-addons/dist/index.js' {
declare module.exports: $Exports<'@kadira/storybook-addons/dist/index'>;
}
declare module '@kadira/storybook-addons/src/index.js' {
declare module.exports: $Exports<'@kadira/storybook-addons/src/index'>;
}
263 changes: 263 additions & 0 deletions todo-app-production/client/flow-typed/npm/@kadira/storybook_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,263 @@
// flow-typed signature: 9e62a50a373846c69a8d69fb0b4a9870
// flow-typed version: <<STUB>>/@kadira/storybook_v^2.35.3/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
*
* '@kadira/storybook'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@kadira/storybook' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@kadira/storybook/addons' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/index' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/manager/index' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/manager/preview' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/manager/provider' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/preview/actions' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/preview/client_api' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/preview/config_api' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/preview/error_display' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/preview/index' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/preview/init' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/preview/reducer' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/preview/render' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/client/preview/story_store' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/addons' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/babel_config' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/build' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config/babel' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config/babel.prod' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config/defaults/webpack.config' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config/globals' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config/polyfills' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config/utils' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config/WatchMissingNodeModulesPlugin' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config/webpack.config' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/config/webpack.config.prod' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/iframe.html' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/index.html' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/index' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/middleware' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/track_usage' {
declare module.exports: any;
}

declare module '@kadira/storybook/dist/server/utils' {
declare module.exports: any;
}

declare module '@kadira/storybook/scripts/mocha_runner' {
declare module.exports: any;
}

// Filename aliases
declare module '@kadira/storybook/addons.js' {
declare module.exports: $Exports<'@kadira/storybook/addons'>;
}
declare module '@kadira/storybook/dist/client/index.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/index'>;
}
declare module '@kadira/storybook/dist/client/manager/index.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/manager/index'>;
}
declare module '@kadira/storybook/dist/client/manager/preview.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/manager/preview'>;
}
declare module '@kadira/storybook/dist/client/manager/provider.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/manager/provider'>;
}
declare module '@kadira/storybook/dist/client/preview/actions.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/actions'>;
}
declare module '@kadira/storybook/dist/client/preview/client_api.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/client_api'>;
}
declare module '@kadira/storybook/dist/client/preview/config_api.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/config_api'>;
}
declare module '@kadira/storybook/dist/client/preview/error_display.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/error_display'>;
}
declare module '@kadira/storybook/dist/client/preview/index.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/index'>;
}
declare module '@kadira/storybook/dist/client/preview/init.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/init'>;
}
declare module '@kadira/storybook/dist/client/preview/reducer.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/reducer'>;
}
declare module '@kadira/storybook/dist/client/preview/render.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/render'>;
}
declare module '@kadira/storybook/dist/client/preview/story_store.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/story_store'>;
}
declare module '@kadira/storybook/dist/server/addons.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/addons'>;
}
declare module '@kadira/storybook/dist/server/babel_config.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/babel_config'>;
}
declare module '@kadira/storybook/dist/server/build.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/build'>;
}
declare module '@kadira/storybook/dist/server/config.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config'>;
}
declare module '@kadira/storybook/dist/server/config/babel.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config/babel'>;
}
declare module '@kadira/storybook/dist/server/config/babel.prod.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config/babel.prod'>;
}
declare module '@kadira/storybook/dist/server/config/defaults/webpack.config.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config/defaults/webpack.config'>;
}
declare module '@kadira/storybook/dist/server/config/globals.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config/globals'>;
}
declare module '@kadira/storybook/dist/server/config/polyfills.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config/polyfills'>;
}
declare module '@kadira/storybook/dist/server/config/utils.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config/utils'>;
}
declare module '@kadira/storybook/dist/server/config/WatchMissingNodeModulesPlugin.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config/WatchMissingNodeModulesPlugin'>;
}
declare module '@kadira/storybook/dist/server/config/webpack.config.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config/webpack.config'>;
}
declare module '@kadira/storybook/dist/server/config/webpack.config.prod.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/config/webpack.config.prod'>;
}
declare module '@kadira/storybook/dist/server/iframe.html.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/iframe.html'>;
}
declare module '@kadira/storybook/dist/server/index.html.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/index.html'>;
}
declare module '@kadira/storybook/dist/server/index.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/index'>;
}
declare module '@kadira/storybook/dist/server/middleware.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/middleware'>;
}
declare module '@kadira/storybook/dist/server/track_usage.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/track_usage'>;
}
declare module '@kadira/storybook/dist/server/utils.js' {
declare module.exports: $Exports<'@kadira/storybook/dist/server/utils'>;
}
declare module '@kadira/storybook/scripts/mocha_runner.js' {
declare module.exports: $Exports<'@kadira/storybook/scripts/mocha_runner'>;
}
Loading

0 comments on commit 994bff3

Please sign in to comment.