Skip to content

Commit 6d7b3fd

Browse files
author
Evan Sebastian
committed
Initial Commit
0 parents  commit 6d7b3fd

39 files changed

+8735
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
insert_final_newline = true
5+
end_of_line = lf
6+
7+
[*.{ts,tsx,json}]
8+
indent_style = space
9+
indent_size = 2
10+
11+
[*.md]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.{html,css}]
16+
indent_style = space
17+
indent_size = 4

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 100,
5+
"parser": "typescript"
6+
}

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Cadet Frontend
2+
3+
## Development Setup
4+
5+
1. Install the stable version of Yarn and NodeJS.
6+
7+
2. Run `yarn` to install dependencies.
8+
9+
3. Run desired script in `package.json`.
10+
11+
## Application Structure
12+
13+
1. `actions` contains action creators, one file per reducers, combined in index.
14+
2. `components` contains all react components using flat hierarchy.
15+
3. `containers` contains HOC that inject react components with Redux state.
16+
4. `sagas` contains all Redux sagas, combined in index.
17+
5. `reducers` contains all Redux reducers and their state, combined in index.
18+
6. `styles` contains all CSS styles.
19+
20+
## TypeScript Coding Conventions
21+
22+
We faithfully follow [this guide](https://github.com/piotrwitek/react-redux-typescript-guide).

images.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare module '*.svg'
2+
declare module '*.png'
3+
declare module '*.jpg'

package.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"private": true,
3+
"name": "cadet-frontend",
4+
"version": "0.0.0",
5+
"scripts-info": {
6+
"format": "Format source code",
7+
"start": "Start the Webpack development server",
8+
"build": "Build production bundle",
9+
"test": "Run unit tests",
10+
"update-ui-snapshots": "Update UI test snapshots"
11+
},
12+
"scripts": {
13+
"format": "prettier --write 'src/**/*.{ts,tsx}'",
14+
"format:ci": "prettier --list-different 'src/**/*.{ts,tsx}'",
15+
"start": "react-scripts-ts start",
16+
"build": "react-scripts-ts build",
17+
"test": "react-scripts-ts test --env=jsdom",
18+
"update-ui-snapshots": "jest --updateSnapshot"
19+
},
20+
"dependencies": {
21+
"@blueprintjs/core": "^2.1.1",
22+
"normalize.css": "^8.0.0",
23+
"react": "^16.3.1",
24+
"react-dom": "^16.3.1",
25+
"react-redux": "^5.0.7",
26+
"react-router": "^4.2.0",
27+
"react-router-dom": "^4.2.2",
28+
"react-router-redux": "^5.0.0-alpha.9",
29+
"react-transition-group": "^2.3.1",
30+
"redux": "^3.7.2",
31+
"redux-mock-store": "^1.5.1",
32+
"typesafe-actions": "^1.1.2",
33+
"utility-types": "^2.0.0"
34+
},
35+
"devDependencies": {
36+
"@types/classnames": "^2.2.3",
37+
"@types/enzyme": "^3.1.9",
38+
"@types/enzyme-adapter-react-16": "^1.0.2",
39+
"@types/jest": "^22.2.3",
40+
"@types/node": "^9.6.5",
41+
"@types/react": "^16.3.10",
42+
"@types/react-dom": "^16.0.5",
43+
"@types/react-redux": "^5.0.16",
44+
"@types/react-router": "^4.0.24",
45+
"@types/react-router-dom": "^4.2.6",
46+
"@types/react-router-redux": "^5.0.13",
47+
"@types/react-test-renderer": "^16.0.1",
48+
"@types/redux-mock-store": "^0.0.13",
49+
"enzyme": "^3.3.0",
50+
"enzyme-adapter-react-16": "^1.1.1",
51+
"prettier": "^1.12.0",
52+
"react-scripts-ts": "^2.15.1",
53+
"react-test-renderer": "^16.3.1",
54+
"typescript": "^2.8.1"
55+
}
56+
}

public/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
<meta name="theme-color" content="#000000">
8+
<!--
9+
manifest.json provides metadata used when your web app is added to the
10+
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
11+
-->
12+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
13+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
14+
<!--
15+
Notice the use of %PUBLIC_URL% in the tags above.
16+
It will be replaced with the URL of the `public` folder during the build.
17+
Only files inside the `public` folder can be referenced from the HTML.
18+
19+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
20+
work correctly both with client-side routing and a non-root public URL.
21+
Learn how to configure a non-root public URL by running `npm run build`.
22+
-->
23+
<title>Cadet</title>
24+
</head>
25+
26+
<body>
27+
<noscript>
28+
You need to enable JavaScript to run this app.
29+
</noscript>
30+
<div id="root"></div>
31+
<!--
32+
This HTML file is a template.
33+
If you open it directly in the browser, you will see an empty page.
34+
35+
You can add webfonts, meta tags, or analytics to this file.
36+
The build step will place the bundled scripts into the <body> tag.
37+
38+
To begin the development, run `npm start` or `yarn start`.
39+
To create a production bundle, use `npm run build` or `yarn build`.
40+
-->
41+
</body>
42+
43+
</html>

public/manifest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"short_name": "Cadet",
3+
"name": "Cadet",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
}
10+
],
11+
"start_url": "./index.html",
12+
"display": "standalone",
13+
"theme_color": "#000000",
14+
"background_color": "#ffffff"
15+
}

src/actions/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default {}

0 commit comments

Comments
 (0)