Skip to content

Commit 3f41a9c

Browse files
committed
feature(roles): setup front-end UI for User Role Settings
- added config file for Code Climate - setup dashboard page-layout structure - added sample landing page for dashboard - added page for user Roles and Permissions - setup routes for existing dashboard pages - setup dashboard Header design - load dashboard UI styles - setup dashboard Footer design - load dashboard font styles - setup dashboard Sidebar design - added main content for Roles page - implemented CRUD functionality for Roles API - setup unit/integration tests Don't confuse 'Sidebar' and 'Sidenav'. - Sidebar is for desktop view. - Sidenav is for mobile view.
1 parent a0da43b commit 3f41a9c

Some content is hidden

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

74 files changed

+3420
-9227
lines changed

.babelrc

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"presets": ["@babel/preset-env", "@babel/preset-react"],
3-
"plugins": [
4-
"@babel/plugin-transform-runtime",
5-
"transform-class-properties",
6-
"@babel/plugin-proposal-object-rest-spread"
7-
]
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": [
4+
"transform-class-properties",
5+
"@babel/plugin-proposal-object-rest-spread",
6+
"@babel/plugin-transform-runtime"
7+
]
88
}

.codeclimate.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '2' # required to adjust maintainability checks
2+
checks:
3+
method-complexity:
4+
config:
5+
threshold: 30 # updated (default is 5)
6+
method-lines:
7+
enabled: false
8+
# Ref: https://docs.codeclimate.com/docs/advanced-configuration

.hound.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
eslint:
22
enabled: true
3-
config_file: .eslintrc.json
3+
config_file: .eslintrc
44

55
fail_on_violations: true

jest.config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"testRegex": "((\\.|/*.)(spec|test))\\.js?$",
33
"setupFilesAfterEnv": ["<rootDir>/src/tests/enzyme.config.js"],
4-
"snapshotSerializers": ["enzyme-to-json/serializer"],
54
"collectCoverage": true,
65
"collectCoverageFrom": ["src/**/*.{js,jsx,ts,tsx}"],
76
"coverageReporters": ["text", "lcov", "json", "html"],
7+
"automock": false,
8+
"snapshotSerializers": ["enzyme-to-json/serializer"],
89
"modulePathIgnorePatterns": ["index.js"],
910
"moduleNameMapper": {
1011
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "jest-transform-stub",

package-lock.json

+83-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"react-toastify": "^6.0.5",
6565
"redux": "^4.0.5",
6666
"redux-devtools-extension": "^2.13.8",
67-
"redux-mock-store": "^1.5.4",
6867
"redux-promise-middleware": "^6.1.2",
6968
"redux-thunk": "^2.3.0",
7069
"sass-loader": "^8.0.2",
@@ -78,13 +77,16 @@
7877
"@babel/plugin-transform-runtime": "^7.10.1",
7978
"babel-eslint": "^10.1.0",
8079
"babel-jest": "^26.0.1",
80+
"check-prop-types": "^1.1.2",
8181
"css-loader": "^3.5.3",
8282
"enzyme": "^3.11.0",
8383
"enzyme-adapter-react-16": "^1.15.2",
8484
"enzyme-to-json": "^3.4.4",
8585
"fetch-mock": "^9.10.1",
8686
"file-loader": "^6.0.0",
8787
"jest": "^26.0.1",
88+
"jest-fetch-mock": "^3.0.3",
89+
"jest-transform-stub": "^2.0.0",
8890
"node-fetch": "^2.6.0",
8991
"node-sass": "^4.14.1",
9092
"react-facebook-login": "^4.1.1",

public/images/coronavirus.png

30.2 KB
Loading

public/images/logo-avatar.png

8.44 KB
Loading

public/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212

1313
<body>
1414
<noscript>You must enable JavaScript to run this app.</noscript>
15-
15+
1616
<div id="root">
1717

1818
</div>
1919
</body>
20+
2021
</html>

0 commit comments

Comments
 (0)