diff --git a/.env b/.env new file mode 100644 index 0000000000000000000000000000000000000000..f85aab1a41586e6136d7845e7583863815539cf6 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +NODE_PATH=src \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000000000000000000000000000000000000..426a734d519b343358b80b5aeadce3baff2204d3 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,44 @@ +{ + "extends": [ + "standard", + "standard-react", + "react-app" + ], + "parser": "babel-eslint", + "settings": { + "import/resolver": "webpack" + }, + "rules": { + "indent": ["error", "tab"], + "no-mixed-spaces-and-tabs": "off", + "no-tabs": 0, + "one-var": "off", + "one-var-declaration-per-line": ["error", "always"], + "jsx-quotes": "off", + "max-len": "off", + "quotes": [2, "single", "avoid-escape"], + "quote-props": "off", + "react/jsx-indent": "off", + "react/jsx-indent-props": "off", + "prettier/prettier": "error", + "no-debugger" : "off", + "no-alert": "error", + "no-console": "error", +// "linebreak-style": ["error", "unix"], + "lines-between-class-members": ["error", "always"], + "padding-line-between-statements": [ + "error", + { "blankLine": "always", "prev": "*", "next": "return" } + ], + "react/no-unused-prop-types": "error", + "import/no-extraneous-dependencies": "error", + "import/order": ["error", { + "groups": ["builtin", "external", "internal", "parent", "sibling", "index"] + }] + }, + "parserOptions": { + "ecmaFeatures": { + "legacyDecorators": true + } + } +} diff --git a/.gitignore b/.gitignore index d30f40ef4422ff27041df9dba83e4bd26849dc48..25d7f824547b35d46f6f77ac75112d9ad3de545b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ # See https://help.github.com/ignore-files/ for more about ignoring files. +#IDE files +.idea + # dependencies /node_modules diff --git a/package.json b/package.json index dd14187fa80eabf621e357a9df26886d6d109787..c35c39c1f114beaece3d7517eb9781759947639c 100644 --- a/package.json +++ b/package.json @@ -3,22 +3,57 @@ "version": "0.1.0", "private": true, "dependencies": { - "@material-ui/core": "^3.1.1", + "@material-ui/core": "3.4.0", + "@material-ui/icons": "^3.0.1", + "@types/google-protobuf": "^3.2.7", "ag-grid-community": "^19.0.0", + "ag-grid-enterprise": "^19.0.0", "ag-grid-react": "^19.0.0", + "axios": "^0.18.0", + "enzyme": "^3.6.0", + "enzyme-adapter-react-16": "^1.5.0", + "google-protobuf": "^3.6.1", + "grpc-web-client": "^0.6.3", + "moment": "^2.22.2", "prop-types": "^15.6.2", "react": "^16.5.2", + "react-datetime": "^2.16.2", "react-dom": "^16.5.2", + "react-input-mask": "^2.0.4", "react-redux": "^5.0.7", "react-router-dom": "^4.3.1", - "react-scripts": "1.1.5", + "react-router-navigation-prompt": "^1.8.0", + "react-scripts": "2.1.1", + "react-test-renderer": "^16.5.2", "redux": "^4.0.0", - "redux-saga": "^0.16.0" + "redux-mock-store": "^1.5.3", + "redux-persist": "^5.10.0", + "redux-saga": "^0.16.0", + "redux-saga-test-plan": "^3.7.0" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", + "test-cover": "react-scripts test --coverage --env=jsdom", "eject": "react-scripts eject" + }, + "peerDependencies": { + "@types/google-protobuf": "^3.2.7", + "google-protobuf": "^3.6.1" + }, + "browserslist": [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" + ], + "devDependencies": { + "eslint-config-react-app": "^3.0.5", + "eslint-config-standard": "^12.0.0", + "eslint-config-standard-react": "^7.0.2", + "eslint-plugin-node": "^8.0.0", + "eslint-plugin-promise": "^4.0.1", + "eslint-plugin-standard": "^4.0.0" } } diff --git a/public/index.html b/public/index.html index ed0ebafa1b7c3057e5fc3eddbdf9e4c2c46de805..d82e08ff162aaabd87d2daaad46f6c6634845e20 100644 --- a/public/index.html +++ b/public/index.html @@ -19,7 +19,7 @@ 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`. --> - React App + Nynja Admin Console