-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* The Big Bang * Action Sorting + Warnings * Graphics Updates * Remove props dependencies * Wider Lines + Bread * Update 404 Page * Update README.md * Fix File Capitalization
- Loading branch information
Showing
167 changed files
with
787 additions
and
1,139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,48 @@ | ||
## Setup | ||
|
||
Install Node and npm: [https://nodejs.org/en/](https://nodejs.org/en/). | ||
|
||
## 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. | ||
# ACM at UCSD: Membership Portal UI | ||
|
||
The page will reload if you make edits.<br> | ||
You will also see any lint errors in the console. | ||
This is the frontend repository for the ACM at UCSD membership portal. The live portal is viewable at: [http://members.acmucsd.com](http://members.acmucsd.com). | ||
|
||
### `npm test` | ||
See [https://github.com/acmucsd/membership-portal](https://github.com/acmucsd/membership-portal) for the portal backend. | ||
|
||
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. | ||
## Setup | ||
|
||
### `npm run eject` | ||
**Install Node and npm**: [https://nodejs.org/en/](https://nodejs.org/en/). Builds are currently run on version `10.23.1`, but the LTS and Current versions should also work. | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
**Install yarn**: `npm install -g yarn`. Builds are currently run on `1.17.0`, but any version should also work. | ||
|
||
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. | ||
## Running | ||
|
||
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. | ||
**Clone the repo**: Run `git clone https://github.com/acmucsd/membership-portal-ui.git` in a terminal. | ||
|
||
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. | ||
**Install packages**: Run `yarn` or `yarn install` to install the node modules. | ||
|
||
## Learn More | ||
**Run the portal**: Run `yarn start` to run the portal with the development environment variables. The page will be available at `localhost:8080`. | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
## Issues | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
- Add on Github/Zenhub, including a title, description, screenshots if applicable | ||
|
||
### Code Splitting | ||
- Label the applicable issue type. | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting | ||
- If you’d like to work on that specific issue, assign yourself. | ||
|
||
### Analyzing the Bundle Size | ||
- If not, it will get assigned during development meetings. | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size | ||
## PRs | ||
|
||
### Making a Progressive Web App | ||
- Every PR should have a corresponding issue it’s tied to. You can link by using the phrase “Resolves #XX.” in the PR description, or in the GitHub sidebar. Assign yourself to the PR. | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app | ||
- Tag the PR as “PR: Needs Review” and request a review from the portal PM. | ||
|
||
### Advanced Configuration | ||
- If the PR is approved, go ahead and merge the PR into the repo. | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration | ||
- If the PR isn’t approved, check the comments for feedback / suggested changes. | ||
When you merge, the branch will be deleted automatically. | ||
|
||
### Deployment | ||
## Coding | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment | ||
- When working on the portal, start by creating a new branch based on master. Add all commits to this branch, and then you can create a PR from there. | ||
|
||
### `npm run build` fails to minify | ||
- There should be one feature/bugfix per branch. | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify | ||
- If you’re working on the portal in parallel with someone else and end up with PR conflicts / merge issues, contact the portal PM via the Discord server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { AnyAction } from 'redux'; | ||
import {} from './adminTypes'; | ||
|
||
const initialState = { | ||
error: false, | ||
}; | ||
|
||
const AdminReducer = (state = initialState, action: AnyAction) => { | ||
switch (action.type) { | ||
default: | ||
return state; | ||
} | ||
}; | ||
|
||
export default AdminReducer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { ThunkAction } from 'redux-thunk'; | ||
import { ActionCreator, AnyAction } from 'redux'; | ||
|
||
export const EVENT_DELETE = 'EVENT_DELETE'; | ||
|
||
export type ThunkActionCreator = ActionCreator<ThunkAction<void, {}, {}, AnyAction>>; |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/AdminPage/style.less → src/admin/components/AdminPage/style.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import '../../styles/vars.less'; | ||
@import '../../../styles/vars.less'; | ||
|
||
.admin-page { | ||
.title { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...omponents/admin/AwardPointsPage/index.tsx → ...dmin/components/AwardPointsPage/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.