Skip to content

Commit 1e543eb

Browse files
Merge branch 'development' into nikhil-update-equipment-tool
2 parents 04f748d + abd9eae commit 1e543eb

253 files changed

Lines changed: 12141 additions & 3887 deletions

File tree

Some content is hidden

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

.babelrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"presets": ["react-app"]
2+
"presets": ["react-app"],
3+
"plugins": [
4+
"@babel/plugin-proposal-optional-chaining",
5+
"@babel/plugin-proposal-nullish-coalescing-operator"
6+
]
37
}

.eslintignore

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,20 @@ src/actions/**
66
src/App.css
77
src/config.json
88

9-
src/index.js
10-
src/reducers/**
11-
src/styles.js
129
src/__tests__/**
1310

1411
/public/
1512
/build/
1613
/node_modules/
17-
src/components/App.jsx
18-
src/components/AutoReload/**
1914
src/components/Badge/**
2015
src/components/common/**
2116
src/components/Projects/**
2217
src/components/SummaryManagement/**
2318
src/components/TaskEditSuggestions/**
2419
src/components/TeamMemberTasks/**
25-
src/components/Teams/**
20+
src/components/Timelog/**
2621
src/components/UserManagement/**
2722
src/components/UserProfile/**
28-
src/components/Announcements/**
2923
src/components/EmailSubscribeForm/**
30-
src/components/Dashboard/**
24+
src/components/Dashboard/**
25+
src/components/Teams/TeamMembersPopup.jsx

.github/workflows/pull_request_test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Pull Request Unit Test
33
on:
44
pull_request:
55
branches:
6-
- main
76
- development
87
jobs:
98
test:
@@ -17,4 +16,6 @@ jobs:
1716
- name: Install Dependencies
1817
run: npm ci
1918
- name: Run Unit Tests
20-
run: npm test
19+
run: npm test
20+
- name: Run Lint
21+
run: npm run lint

.prettierignore

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,23 @@ src/actions/**
44
src/App.css
55
src/config.json
66

7-
src/index.js
87
src/languages/**
9-
src/reducers/**
108
src/registerServiceWorker.js
119
src/routes.js
1210
src/setupTests.js
1311
src/store.js
14-
src/styles.js
12+
src/utils/**
1513
src/__tests__/**
1614

1715

18-
src/components/App.jsx
19-
src/components/AutoReload/**
16+
src/components/Header/**
2017
src/components/Inventory/**
2118
src/components/Memberships/**
2219
src/components/Projects/**
2320
src/components/Reports/**
2421
src/components/SummaryManagement/**
2522
src/components/TaskEditSuggestions/**
2623
src/components/TeamMemberTasks/**
27-
src/components/Teams/**
24+
src/components/Timelog/**
2825
src/components/UserManagement/**
2926
src/components/UserProfile/**
30-
src/components/Announcements/**

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// other settings
33
// formatting using eslint
44
// let editor format using prettier for all other files
5-
"editor.formatOnSave": true,
5+
"editor.formatOnSave": false,
66
// disable editor formatting, so eslint can handle it
77
"[javascript]": {
88
"editor.formatOnSave": true
@@ -20,4 +20,4 @@
2020
"**/.settings": true,
2121
"**/.factorypath": true
2222
}
23-
}
23+
}

package-lock.json

Lines changed: 40 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,20 @@
1616
"axios": "^0.21.2",
1717
"axios-mock-adapter": "^1.22.0",
1818
"bootstrap": "^4.5.3",
19-
"chart.js": "^4.4.7",
19+
"chart.js": "^3.9.1",
2020
"chartjs-plugin-datalabels": "^2.2.0",
2121
"classnames": "^2.2.6",
2222
"d3": "^7.8.5",
2323
"date-fns": "^2.14.0",
2424
"diff": "^5.0.0",
25-
"dompurify": "^3.1.3",
25+
"dompurify": "^3.1.7",
2626
"font-awesome": "^4.7.0",
2727
"fs-extra": "^11.2.0",
2828
"history": "^4.10.1",
2929
"html-react-parser": "^1.4.14",
3030
"html-to-pdfmake": "^2.0.6",
3131
"joi": "^14.0.6",
3232
"jwt-decode": "^2.2.0",
33-
"leaflet": "^1.9.4",
3433
"lodash": "^4.17.21",
3534
"lz-string": "^1.5.0",
3635
"moment": "^2.29.2",
@@ -50,8 +49,10 @@
5049
"react-html-parser": "^2.0.2",
5150
"react-icons": "^4.3.1",
5251
"react-input-range": "^1.3.0",
53-
"react-leaflet": "^4.2.1",
54-
"react-leaflet-cluster": "^2.1.0",
52+
"react-leaflet": ">=3.1.0 <3.2.0",
53+
"@react-leaflet/core": ">=1.0.0 <1.1.0",
54+
"leaflet": "1.7.1",
55+
"react-leaflet-cluster": "^1.0.4",
5556
"react-multi-select-component": "^4.0.2",
5657
"react-phone-input-2": "^2.14.0",
5758
"react-redux": "^7.2.0",
@@ -81,7 +82,7 @@
8182
"prestart": "npm run test",
8283
"postinstall": "node ./postinstall.js",
8384
"start": "react-scripts start",
84-
"build": "npm run postinstall && react-scripts build",
85+
"build": "npm run postinstall && set CI=false && react-scripts build",
8586
"test": "cross-env CI=true react-scripts test --env=jest-environment-jsdom-sixteen",
8687
"test:watch": " react-scripts test --env=jest-environment-jsdom-sixteen",
8788
"test:coverage": "cross-env CI=true react-scripts test --env=jest-environment-jsdom-sixteen --coverage",
@@ -94,16 +95,17 @@
9495
"browserslist": [
9596
">0.2%",
9697
"not dead",
97-
"not ie <= 11",
9898
"not op_mini all"
9999
],
100100
"devDependencies": {
101101
"@babel/helper-validator-identifier": "^7.12.11",
102+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
102103
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
103104
"@jest/globals": "^29.7.0",
104105
"@testing-library/jest-dom": "^5.17.0",
105106
"@testing-library/react": "^10.4.9",
106107
"@testing-library/user-event": "^12.0.14",
108+
"@types/dompurify": "^3.0.5",
107109
"@types/react-router-dom": "^5.3.3",
108110
"babel-eslint": "^10.1.0",
109111
"cross-env": "^5.2.1",
@@ -124,6 +126,7 @@
124126
"node-fetch": "^3.1.1",
125127
"node-sass": "^8.0.0",
126128
"prettier": "^1.19.1",
129+
"react-error-overlay": "^6.0.9",
127130
"redux-mock-store": "^1.5.4",
128131
"sinon": "^7.3.2",
129132
"surge": "^0.21.6"

public/header.png

430 KB
Loading

0 commit comments

Comments
 (0)