From e04bcda09f09a71b31d451d0b27f5504fa3ed34a Mon Sep 17 00:00:00 2001 From: sipp11 Date: Fri, 15 Jun 2018 18:01:07 +0900 Subject: [PATCH] RSAA - API * Login/logout * Agency CRUD --- package.json | 7 +- public/index.html | 7 +- src/App.js | 12 +- src/actions/calendar.js | 67 +++++++++++ src/actions/fareattr.js | 67 +++++++++++ src/actions/index.js | 137 +++++++++++++++++++++- src/components/AgencyForm.js | 207 +++++++++++++++++++++++++++++++++ src/components/AgencyItem.js | 87 ++++++++++++++ src/components/AgencyList.js | 47 ++++++++ src/components/FareAttrList.js | 50 ++++++++ src/components/Footer.js | 13 +++ src/components/Login.js | 62 ++++++++++ src/components/Nav.js | 96 +++++++++++++++ src/components/RouteList.js | 49 ++++++++ src/components/Spinner.js | 9 ++ src/constants/ActionTypes.js | 40 ++++++- src/constants/Api.js | 4 +- src/constants/path.js | 2 + src/container/Gone.js | 30 ----- src/container/Main.js | 69 ++++++++--- src/container/Public.js | 81 +++++++++++++ src/index.js | 5 + src/reducers/agency.js | 76 ++++++++++++ src/reducers/auth.js | 10 +- src/reducers/calendar.js | 79 +++++++++++++ src/reducers/fareattr.js | 79 +++++++++++++ src/reducers/index.js | 6 + src/reducers/route.js | 79 +++++++++++++ src/store.js | 5 +- src/utils/ApiClient.js | 22 ++-- src/utils/Auth.js | 6 +- 31 files changed, 1434 insertions(+), 76 deletions(-) create mode 100644 src/actions/calendar.js create mode 100644 src/actions/fareattr.js create mode 100644 src/components/AgencyForm.js create mode 100644 src/components/AgencyItem.js create mode 100644 src/components/AgencyList.js create mode 100644 src/components/FareAttrList.js create mode 100644 src/components/Footer.js create mode 100644 src/components/Login.js create mode 100644 src/components/Nav.js create mode 100644 src/components/RouteList.js create mode 100644 src/components/Spinner.js create mode 100644 src/constants/path.js delete mode 100644 src/container/Gone.js create mode 100644 src/container/Public.js create mode 100644 src/reducers/agency.js create mode 100644 src/reducers/calendar.js create mode 100644 src/reducers/fareattr.js create mode 100644 src/reducers/route.js diff --git a/package.json b/package.json index 8c48806..c9fd0cf 100644 --- a/package.json +++ b/package.json @@ -12,14 +12,19 @@ "react-router-dom": "^4.3.1", "react-scripts": "1.1.4", "redux": "^4.0.0", + "redux-api-middleware": "^2.3.0", "redux-logger": "^3.0.6", "redux-persist": "^5.10.0", - "redux-thunk": "^2.3.0" + "redux-thunk": "^2.3.0", + "styled-components": "^3.3.2" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" + }, + "devDependencies": { + "react-perf-devtool": "^3.0.7" } } diff --git a/public/index.html b/public/index.html index ed0ebaf..e878058 100644 --- a/public/index.html +++ b/public/index.html @@ -10,6 +10,8 @@ --> + + - React App + Grunt FRONT +