From 307800a54cc80f0fe889bbfb837a199edc61dd29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Neves?= Date: Fri, 23 Nov 2018 14:04:47 -0500 Subject: [PATCH] chore: update dependencies types: adding flow annotation to all files chore: remove android manifest since its only a desktop app --- app/app.js | 2 ++ app/constants/actions.js | 2 ++ app/index.js | 2 ++ app/reducers/index.js | 2 ++ app/router/index.js | 2 ++ app/utils/timestamp.js | 2 ++ app/views/about.js | 6 +++--- app/views/not-found.js | 2 ++ package.json | 2 +- public/index.html | 6 +----- public/manifest.json | 15 --------------- 11 files changed, 19 insertions(+), 24 deletions(-) delete mode 100644 public/manifest.json diff --git a/app/app.js b/app/app.js index e6912da..81430ce 100644 --- a/app/app.js +++ b/app/app.js @@ -1,3 +1,5 @@ +// @flow + import React from 'react'; import { Provider } from 'react-redux'; import { BrowserRouter } from 'react-router-dom'; diff --git a/app/constants/actions.js b/app/constants/actions.js index 1c01d88..84ba2f5 100644 --- a/app/constants/actions.js +++ b/app/constants/actions.js @@ -1,3 +1,5 @@ +// @flow + export const ADD_TODO = 'ADD_TODO'; export const DELETE_TODO = 'DELETE_TODO'; export const UPDATE_TODO = 'UPDATE_TODO'; diff --git a/app/index.js b/app/index.js index 5c2fbff..7259499 100644 --- a/app/index.js +++ b/app/index.js @@ -1,3 +1,5 @@ +// @flow + import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; diff --git a/app/reducers/index.js b/app/reducers/index.js index 2e43497..78ce7a2 100644 --- a/app/reducers/index.js +++ b/app/reducers/index.js @@ -1,3 +1,5 @@ +// @flow + import { combineReducers } from 'redux'; import todoReducer from './todo'; diff --git a/app/router/index.js b/app/router/index.js index 0fbaeb7..5e78386 100644 --- a/app/router/index.js +++ b/app/router/index.js @@ -1,3 +1,5 @@ +// @flow + import React, { Fragment } from 'react'; import { Route, Switch, Link } from 'react-router-dom'; diff --git a/app/utils/timestamp.js b/app/utils/timestamp.js index 0c37644..e53089b 100644 --- a/app/utils/timestamp.js +++ b/app/utils/timestamp.js @@ -1 +1,3 @@ +// @flow + export const getTimestamp = () => new Date().getTime(); diff --git a/app/views/about.js b/app/views/about.js index 022195d..6d5c7f6 100644 --- a/app/views/about.js +++ b/app/views/about.js @@ -1,9 +1,9 @@ +// @flow + import React from 'react'; export default () => (
-

React Redux Starter

-

This is a react-redux starter kit for Big Human Engineers.

-

It uses Redux to manage application state and Thunk to support asynchronous actions. Flow is used for static type checking which replaces the prop-types package.

+ About
); diff --git a/app/views/not-found.js b/app/views/not-found.js index fd9a870..5bf7b46 100644 --- a/app/views/not-found.js +++ b/app/views/not-found.js @@ -1,3 +1,5 @@ +// @flow + import React from 'react'; export default () => ( diff --git a/package.json b/package.json index de3042c..f41bbe8 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.7.0", "file-loader": "^2.0.0", - "flow-bin": "^0.85.0", + "flow-bin": "^0.86.0", "glow": "^1.2.2", "html-webpack-plugin": "^3.1.0", "node-sass": "^4.8.3", diff --git a/public/index.html b/public/index.html index 2fdea3f..130f7d1 100644 --- a/public/index.html +++ b/public/index.html @@ -5,13 +5,9 @@ - - - - - React Redux Boilerplate + Zcash Reference Wallet