Skip to content

Commit 94182f9

Browse files
committed
Submission 30055686, React 4 rebased to new repo
0 parents  commit 94182f9

File tree

197 files changed

+4687
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+4687
-0
lines changed

.babelrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// NOTE: These options are overriden by the babel-loader configuration
2+
// for webpack, which can be found in ~/build/webpack.config.
3+
//
4+
// Why? The react-transform-hmr plugin depends on HMR (and throws if
5+
// module.hot is disabled), so keeping it and related plugins contained
6+
// within webpack helps prevent unexpected errors.
7+
{
8+
"presets": ["es2015", "react", "stage-0"],
9+
"plugins": ["transform-runtime"]
10+
}

.editorconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# http://editorconfig.org
2+
3+
# A special property that should be specified at the top of the file outside of
4+
# any sections. Set to true to stop .editor config file search on current file
5+
root = true
6+
7+
[*]
8+
# Indentation style
9+
# Possible values - tab, space
10+
indent_style = space
11+
12+
# Indentation size in single-spaced characters
13+
# Possible values - an integer, tab
14+
indent_size = 2
15+
16+
# Line ending file format
17+
# Possible values - lf, crlf, cr
18+
end_of_line = lf
19+
20+
# File character encoding
21+
# Possible values - latin1, utf-8, utf-16be, utf-16le
22+
charset = utf-8
23+
24+
# Denotes whether to trim whitespace at the end of lines
25+
# Possible values - true, false
26+
trim_trailing_whitespace = true
27+
28+
# Denotes whether file should end with a newline
29+
# Possible values - true, false
30+
insert_final_newline = true

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/**
2+
dist
3+
coverage
4+
blueprints
5+
src/static

.eslintrc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"airbnb"
5+
],
6+
"plugins": [
7+
"babel"
8+
],
9+
"env": {
10+
"browser": true,
11+
"mocha": true
12+
},
13+
"globals": {
14+
"expect": true,
15+
"__DEV__": true,
16+
"__PROD__": true,
17+
"google": true,
18+
},
19+
"rules": {
20+
"global-require": 0,
21+
"no-script-url": 0,
22+
"max-len": 0,
23+
"new-cap": 0,
24+
"object-curly-spacing": 0,
25+
"react/jsx-no-bind": 0,
26+
"no-mixed-operators": 0,
27+
"arrow-parens": [
28+
2,
29+
"always"
30+
],
31+
arrow-body-style: [2, "as-needed"],
32+
"import/extensions": 0,
33+
"import/no-unresolved": 0,
34+
"import/no-named-as-default": 0,
35+
"import/no-extraneous-dependencies": 0,
36+
"no-underscore-dangle": 0,
37+
"react/forbid-prop-types": 0,
38+
"no-unused-expressions": 0,
39+
"jsx-a11y/anchor-has-content": 0,
40+
"jsx-a11y/href-no-hash": 0,
41+
"jsx-a11y/label-has-for": 0,
42+
"no-plusplus": 0,
43+
"jsx-a11y/no-static-element-interactions": 0,
44+
"no-use-before-define": ["error", { "functions": false, "classes": true }]
45+
}
46+
}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_STORE
2+
*.log
3+
4+
node_modules
5+
.idea
6+
dist
7+
coverage

.reduxrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sourceBase":"",
3+
"testBase":"",
4+
"smartPath":"",
5+
"dumbPath":"",
6+
"fileCasing":""
7+
}

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## DSP app
2+
3+
## Requirements
4+
* node v6 (https://nodejs.org)
5+
6+
## Quick Start
7+
* `npm install -g nodemon`
8+
* `npm install`
9+
* `npm run dev`
10+
* Navigate browser to `http://localhost:3000`
11+
12+
13+
## Configuration
14+
Configuration files are located under `config` dir.
15+
See Guild https://github.com/lorenwest/node-config/wiki/Configuration-Files
16+
17+
|Name|Description|
18+
|----|-----------|
19+
|`PORT`| The port to listen|
20+
|`GOOGLE_API_KEY`| The google api key see (https://developers.google.com/maps/documentation/javascript/get-api-key#key)|
21+
22+
23+
## Install dependencies
24+
`npm i`
25+
26+
## Running
27+
28+
|`npm run <script>`|Description|
29+
|------------------|-----------|
30+
|`build`|Build the app|
31+
|`start`|Serves the app in prod mode (use `build` first).|
32+
|`dev`|Start app in the dev mode.|
33+
|`lint`|Lint all `.js` files.|
34+
|`lint:fix`|Lint and fix all `.js` files. [Read more on this](http://eslint.org/docs/user-guide/command-line-interface.html#fix).|
35+
36+
37+
## Video
38+
http://take.ms/WZkTO
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React, { PropTypes } from 'react';
2+
import CSSModules from 'react-css-modules';
3+
import styles from './<%= pascalEntityName %>.scss';
4+
5+
export const <%= pascalEntityName %> = () => (
6+
<div styleName="<%= dashesEntityName %>">
7+
</div>
8+
);
9+
10+
<%= pascalEntityName %>.propTypes = {
11+
foo: PropTypes.string.isRequired,
12+
};
13+
14+
export default CSSModules(<%= pascalEntityName %>, styles);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.<%= dashesEntityName %> {
2+
:global {
3+
4+
}
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import <%= pascalEntityName %> from './<%= pascalEntityName %>';
2+
3+
export default <%= pascalEntityName %>;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy