├── .eslintrc.js ├── .firebaserc ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── LICENSE.md ├── README.md ├── _config.yml ├── config ├── webpack.common.js ├── webpack.dev.js └── webpack.prod.js ├── dev-server ├── mock │ ├── covid-19.json │ ├── location.json │ ├── ny-weather-si.json │ ├── ny-weather-us.json │ ├── weather-si-by-date.json │ ├── weather-si.json │ ├── weather-us-by-date.json │ └── weather-us.json ├── package-lock.json ├── package.json └── server.js ├── firebase.json ├── functions ├── apikey.js ├── index.js ├── package-lock.json └── package.json ├── package.json ├── src ├── api.ts ├── assets │ ├── covid_page.jpeg │ ├── favicon.ico │ ├── main_page.jpeg │ ├── mobile_page.jpeg │ └── weather-icons │ │ ├── css │ │ ├── weather-icons-wind.css │ │ └── weather-icons.min.css │ │ └── font │ │ ├── weathericons-regular-webfont.eot │ │ ├── weathericons-regular-webfont.svg │ │ ├── weathericons-regular-webfont.ttf │ │ ├── weathericons-regular-webfont.woff │ │ └── weathericons-regular-webfont.woff2 ├── components │ ├── chart-config.ts │ ├── current-weather.tsx │ ├── daily-forecast.tsx │ ├── hourly-forecast.tsx │ ├── icon │ │ ├── moon-icon.tsx │ │ ├── weather-icon.tsx │ │ └── wind-icon.tsx │ ├── nav-bar.tsx │ └── weather-search.tsx ├── constants │ ├── api-key.ts │ ├── coordinates.ts │ ├── message.ts │ ├── types.ts │ └── weather-condition.ts ├── covid-19 │ ├── chart-config.ts │ └── covid-19.tsx ├── css │ └── index.css ├── d3-demo │ ├── d3-demo-app.tsx │ ├── d3-demo-network.tsx │ ├── d3-force.css │ ├── gauge.ts │ ├── mock │ │ ├── app-traffic.json │ │ └── network-traffic.json │ ├── tool-tip.tsx │ └── traffic.ts ├── index.html ├── index.tsx ├── store │ ├── actions.ts │ ├── index.ts │ └── reducers.ts ├── typings.d.ts ├── utils.ts └── views │ ├── about.tsx │ ├── app.tsx │ ├── weather-main.tsx │ └── weather-map.tsx └── tsconfig.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.firebaserc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/.firebaserc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/README.md -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/_config.yml -------------------------------------------------------------------------------- /config/webpack.common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/config/webpack.common.js -------------------------------------------------------------------------------- /config/webpack.dev.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/config/webpack.dev.js -------------------------------------------------------------------------------- /config/webpack.prod.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/config/webpack.prod.js -------------------------------------------------------------------------------- /dev-server/mock/covid-19.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/mock/covid-19.json -------------------------------------------------------------------------------- /dev-server/mock/location.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/mock/location.json -------------------------------------------------------------------------------- /dev-server/mock/ny-weather-si.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/mock/ny-weather-si.json -------------------------------------------------------------------------------- /dev-server/mock/ny-weather-us.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/mock/ny-weather-us.json -------------------------------------------------------------------------------- /dev-server/mock/weather-si-by-date.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/mock/weather-si-by-date.json -------------------------------------------------------------------------------- /dev-server/mock/weather-si.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/mock/weather-si.json -------------------------------------------------------------------------------- /dev-server/mock/weather-us-by-date.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/mock/weather-us-by-date.json -------------------------------------------------------------------------------- /dev-server/mock/weather-us.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/mock/weather-us.json -------------------------------------------------------------------------------- /dev-server/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/package-lock.json -------------------------------------------------------------------------------- /dev-server/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/package.json -------------------------------------------------------------------------------- /dev-server/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/dev-server/server.js -------------------------------------------------------------------------------- /firebase.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/firebase.json -------------------------------------------------------------------------------- /functions/apikey.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/functions/apikey.js -------------------------------------------------------------------------------- /functions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/functions/index.js -------------------------------------------------------------------------------- /functions/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/functions/package-lock.json -------------------------------------------------------------------------------- /functions/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/functions/package.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/package.json -------------------------------------------------------------------------------- /src/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/api.ts -------------------------------------------------------------------------------- /src/assets/covid_page.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/covid_page.jpeg -------------------------------------------------------------------------------- /src/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/favicon.ico -------------------------------------------------------------------------------- /src/assets/main_page.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/main_page.jpeg -------------------------------------------------------------------------------- /src/assets/mobile_page.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/mobile_page.jpeg -------------------------------------------------------------------------------- /src/assets/weather-icons/css/weather-icons-wind.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/weather-icons/css/weather-icons-wind.css -------------------------------------------------------------------------------- /src/assets/weather-icons/css/weather-icons.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/weather-icons/css/weather-icons.min.css -------------------------------------------------------------------------------- /src/assets/weather-icons/font/weathericons-regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/weather-icons/font/weathericons-regular-webfont.eot -------------------------------------------------------------------------------- /src/assets/weather-icons/font/weathericons-regular-webfont.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/weather-icons/font/weathericons-regular-webfont.svg -------------------------------------------------------------------------------- /src/assets/weather-icons/font/weathericons-regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/weather-icons/font/weathericons-regular-webfont.ttf -------------------------------------------------------------------------------- /src/assets/weather-icons/font/weathericons-regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/weather-icons/font/weathericons-regular-webfont.woff -------------------------------------------------------------------------------- /src/assets/weather-icons/font/weathericons-regular-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/assets/weather-icons/font/weathericons-regular-webfont.woff2 -------------------------------------------------------------------------------- /src/components/chart-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/components/chart-config.ts -------------------------------------------------------------------------------- /src/components/current-weather.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/components/current-weather.tsx -------------------------------------------------------------------------------- /src/components/daily-forecast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/components/daily-forecast.tsx -------------------------------------------------------------------------------- /src/components/hourly-forecast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/components/hourly-forecast.tsx -------------------------------------------------------------------------------- /src/components/icon/moon-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/components/icon/moon-icon.tsx -------------------------------------------------------------------------------- /src/components/icon/weather-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/components/icon/weather-icon.tsx -------------------------------------------------------------------------------- /src/components/icon/wind-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/components/icon/wind-icon.tsx -------------------------------------------------------------------------------- /src/components/nav-bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/components/nav-bar.tsx -------------------------------------------------------------------------------- /src/components/weather-search.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/components/weather-search.tsx -------------------------------------------------------------------------------- /src/constants/api-key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/constants/api-key.ts -------------------------------------------------------------------------------- /src/constants/coordinates.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/constants/coordinates.ts -------------------------------------------------------------------------------- /src/constants/message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/constants/message.ts -------------------------------------------------------------------------------- /src/constants/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/constants/types.ts -------------------------------------------------------------------------------- /src/constants/weather-condition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/constants/weather-condition.ts -------------------------------------------------------------------------------- /src/covid-19/chart-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/covid-19/chart-config.ts -------------------------------------------------------------------------------- /src/covid-19/covid-19.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/covid-19/covid-19.tsx -------------------------------------------------------------------------------- /src/css/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/css/index.css -------------------------------------------------------------------------------- /src/d3-demo/d3-demo-app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/d3-demo/d3-demo-app.tsx -------------------------------------------------------------------------------- /src/d3-demo/d3-demo-network.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/d3-demo/d3-demo-network.tsx -------------------------------------------------------------------------------- /src/d3-demo/d3-force.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/d3-demo/d3-force.css -------------------------------------------------------------------------------- /src/d3-demo/gauge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/d3-demo/gauge.ts -------------------------------------------------------------------------------- /src/d3-demo/mock/app-traffic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/d3-demo/mock/app-traffic.json -------------------------------------------------------------------------------- /src/d3-demo/mock/network-traffic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/d3-demo/mock/network-traffic.json -------------------------------------------------------------------------------- /src/d3-demo/tool-tip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/d3-demo/tool-tip.tsx -------------------------------------------------------------------------------- /src/d3-demo/traffic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/d3-demo/traffic.ts -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/index.html -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/store/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/store/actions.ts -------------------------------------------------------------------------------- /src/store/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/store/index.ts -------------------------------------------------------------------------------- /src/store/reducers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/store/reducers.ts -------------------------------------------------------------------------------- /src/typings.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/typings.d.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/utils.ts -------------------------------------------------------------------------------- /src/views/about.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/views/about.tsx -------------------------------------------------------------------------------- /src/views/app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/views/app.tsx -------------------------------------------------------------------------------- /src/views/weather-main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/views/weather-main.tsx -------------------------------------------------------------------------------- /src/views/weather-map.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/src/views/weather-map.tsx -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaurenceHo/react-weather-app/HEAD/tsconfig.json --------------------------------------------------------------------------------