Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
.env.test.local
.env.production.local
.eslintrc

npm-debug.log*
yarn-debug.log*
yarn-error.log*
68 changes: 0 additions & 68 deletions app/README.md
Original file line number Diff line number Diff line change
@@ -1,68 +0,0 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
10 changes: 5 additions & 5 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "app",
"name": "redux-starter",
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-ui/core": "^3.9.2",
"@material-ui/icons": "^3.0.2",
"axios": "^0.18.0",
"bootstrap": "^4.2.1",
"moment": "^2.24.0",
"node-sass": "^4.11.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-loader-spinner": "^2.3.0",
"react-redux": "^6.0.0",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.3",
"reactstrap": "^7.1.0",
"redux": "^4.0.1",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^0.84.0",
"styled-components": "^4.1.3"
},
"scripts": {
Expand Down
Binary file added app/public/favicon.ico
Binary file not shown.
43 changes: 41 additions & 2 deletions app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,54 @@
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#000000" />
<link
href="https://fonts.googleapis.com/css?family=Playfair+Display"
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.1/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous"
/>
<!-- Material UI Icons -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

<title>Design Your Life</title>
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
48 changes: 48 additions & 0 deletions app/src/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React, { Component } from "react";
import NavigationView from "./views/NavigationView";
import "./styles/App.scss";
import MainView from "./views/MainView";
import ActivityFormView from "./views/ActivityFormView";
import LoginView from "./views/LoginView";
import ReflectionFormView from "./views/ReflectionFormView";
import { connect } from "react-redux";
import { Route } from "react-router";
import { logout } from "./store/actions/user";

// import { Link } from "react-router-dom";

class App extends Component {
render() {
return this.props.loggedIn ? (
<>
<NavigationView logOut={this.logOut} />
<Route
exact
path="/"
render={props => (
<MainView {...props} activityLog={this.props.activityLog} />
)}
/>
<Route
path="/activity"
render={props => <ActivityFormView {...props} />}
/>
<Route
path="/reflection"
render={props => <ReflectionFormView {...props} />}
/>
</>
) : (
<LoginView logIn={this.logIn} />
);
}
}

const mapStateToProps = state => {
return { loggedIn: state.user.loggedIn };
};

export default connect(
mapStateToProps,
{ logout }
)(App);
68 changes: 0 additions & 68 deletions app/src/actions/Activity.jsx

This file was deleted.

67 changes: 0 additions & 67 deletions app/src/actions/Reflection.jsx

This file was deleted.

23 changes: 0 additions & 23 deletions app/src/actions/User.jsx

This file was deleted.

2 changes: 0 additions & 2 deletions app/src/actions/baseURL.jsx

This file was deleted.

Binary file removed app/src/assets/trianglify.png
Binary file not shown.
Loading