@corpsmap/corpsmap 3.2.68 → 3.2.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/corpsmap.css +9753 -9753
- package/lib/dev.js +60485 -64292
- package/lib/prod.js +47193 -49790
- package/package.json +19 -20
- package/rollup.config.js +22 -118
- package/src/core-plugins/change-log/bundle.js +162 -152
- package/src/core-plugins/identify/listeners/geojson.js +99 -106
- package/src/core-plugins/identify-geojson/bundle.js +109 -131
- package/lib/corpsmap.css +0 -10185
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corpsmap/corpsmap",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.71",
|
|
4
4
|
"description": "CorpsMap as React Components",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"type": "module",
|
|
7
6
|
"scripts": {
|
|
8
7
|
"prepublishOnly": "npm run release",
|
|
9
8
|
"release": "npm run build:dev && npm run build:prod",
|
|
@@ -24,22 +23,22 @@
|
|
|
24
23
|
"babel-plugin-import": "^1.12.2",
|
|
25
24
|
"concurrently": "^5.3.0",
|
|
26
25
|
"cross-env": "^5.2.0",
|
|
27
|
-
"react": "^
|
|
28
|
-
"react-dom": "^
|
|
29
|
-
"rollup": "
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"rollup-plugin-css-only": "
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"rollup-plugin-postcss": "^
|
|
36
|
-
"
|
|
26
|
+
"react": "^16.9.0",
|
|
27
|
+
"react-dom": "^16.9.0",
|
|
28
|
+
"rollup": "^1.20.2",
|
|
29
|
+
"rollup-plugin-babel": "^4.3.3",
|
|
30
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
31
|
+
"rollup-plugin-css-only": "^1.0.0",
|
|
32
|
+
"rollup-plugin-json": "^4.0.0",
|
|
33
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
34
|
+
"rollup-plugin-postcss": "^2.0.3",
|
|
35
|
+
"rollup-plugin-replace": "^2.2.0",
|
|
37
36
|
"styled-jsx": "^3.2.1",
|
|
38
37
|
"wait-on": "^5.2.1"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
|
-
"react": ">=
|
|
42
|
-
"react-dom": ">=
|
|
40
|
+
"react": ">= 16.x.x",
|
|
41
|
+
"react-dom": ">=16.x.x"
|
|
43
42
|
},
|
|
44
43
|
"dependencies": {
|
|
45
44
|
"@mapbox/togeojson": "^0.16.0",
|
|
@@ -69,17 +68,17 @@
|
|
|
69
68
|
"markdown-it": "^12.0.3",
|
|
70
69
|
"moment": "^2.29.4",
|
|
71
70
|
"money-clip": "^3.0.1",
|
|
72
|
-
"ol": "^6.
|
|
73
|
-
"ol-esri-style": "^2.
|
|
71
|
+
"ol": "^6.4.3",
|
|
72
|
+
"ol-esri-style": "^2.0.7",
|
|
74
73
|
"parse2-kmz": "^1.0.5",
|
|
75
74
|
"proj4": "^2.4.4",
|
|
76
|
-
"react-data-grid": "
|
|
77
|
-
"react-datepicker": "^
|
|
75
|
+
"react-data-grid": "^6.1.0",
|
|
76
|
+
"react-datepicker": "^2.9.6",
|
|
78
77
|
"react-dnd": "^9.4.0",
|
|
79
78
|
"react-dnd-html5-backend": "^9.4.0",
|
|
80
|
-
"react-notification-system
|
|
79
|
+
"react-notification-system": "^0.2.17",
|
|
81
80
|
"react-split": "^2.0.7",
|
|
82
|
-
"redux-bundler": "^
|
|
81
|
+
"redux-bundler": "^26.0.0",
|
|
83
82
|
"redux-bundler-react": "^1.2.0",
|
|
84
83
|
"shpjs": "^3.4.3",
|
|
85
84
|
"uuid": "^3.3.3",
|
package/rollup.config.js
CHANGED
|
@@ -1,102 +1,12 @@
|
|
|
1
|
-
import babel from "
|
|
2
|
-
import commonjs from "
|
|
3
|
-
import resolve from "
|
|
4
|
-
import replace from "
|
|
1
|
+
import babel from "rollup-plugin-babel";
|
|
2
|
+
import commonjs from "rollup-plugin-commonjs";
|
|
3
|
+
import resolve from "rollup-plugin-node-resolve";
|
|
4
|
+
import replace from "rollup-plugin-replace";
|
|
5
5
|
import css from "rollup-plugin-css-only";
|
|
6
|
-
import postcss from
|
|
7
|
-
import json from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// const pkg = require("./package.json");
|
|
11
|
-
const pkg = {
|
|
12
|
-
name: "@corpsmap/corpsmap",
|
|
13
|
-
version: "3.2.65",
|
|
14
|
-
description: "CorpsMap as React Components",
|
|
15
|
-
main: "index.js",
|
|
16
|
-
type: "module",
|
|
17
|
-
scripts: {
|
|
18
|
-
prepublishOnly: "npm run release",
|
|
19
|
-
release: "npm run build:dev && npm run build:prod",
|
|
20
|
-
"build:dev": "cross-env NODE_ENV=development rollup -c",
|
|
21
|
-
"build:prod": "cross-env NODE_ENV=production rollup -c",
|
|
22
|
-
dev: "cross-env NODE_ENV=development rollup -c --watch",
|
|
23
|
-
test: 'echo "Error: no test specified" && exit 1',
|
|
24
|
-
"sample-app":
|
|
25
|
-
"wait-on file:lib/dev.js && (cd ../corpsmap-test-app && npm run start)",
|
|
26
|
-
"dev-n-sample": 'concurrently "npm run dev" "npm run sample-app"',
|
|
27
|
-
},
|
|
28
|
-
author: "willbreitkreutz",
|
|
29
|
-
license: "MIT",
|
|
30
|
-
devDependencies: {
|
|
31
|
-
"@babel/core": "^7.5.5",
|
|
32
|
-
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
|
33
|
-
"@babel/preset-env": "^7.5.5",
|
|
34
|
-
"@babel/preset-react": "^7.0.0",
|
|
35
|
-
"babel-plugin-import": "^1.12.2",
|
|
36
|
-
concurrently: "^5.3.0",
|
|
37
|
-
"cross-env": "^5.2.0",
|
|
38
|
-
react: "^17.0.2",
|
|
39
|
-
"react-dom": "^17.0.2",
|
|
40
|
-
rollup: "4.5.2",
|
|
41
|
-
"@rollup/plugin-babel": "^6.1.0",
|
|
42
|
-
"@rollup/plugin-commonjs": "^25.0.2",
|
|
43
|
-
"rollup-plugin-css-only": "4.5.5",
|
|
44
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
45
|
-
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
46
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
47
|
-
"@rollup/plugin-replace": "^6.0.2",
|
|
48
|
-
"styled-jsx": "^3.2.1",
|
|
49
|
-
"wait-on": "^5.2.1",
|
|
50
|
-
},
|
|
51
|
-
peerDependencies: {
|
|
52
|
-
react: ">= 17.x.x",
|
|
53
|
-
"react-dom": ">=17.x.x",
|
|
54
|
-
},
|
|
55
|
-
dependencies: {
|
|
56
|
-
"@mapbox/togeojson": "^0.16.0",
|
|
57
|
-
"@turf/bbox": "^6.0.1",
|
|
58
|
-
"@turf/bbox-polygon": "^6.0.1",
|
|
59
|
-
"@turf/boolean-crosses": "^6.0.1",
|
|
60
|
-
"@turf/boolean-disjoint": "^6.0.2",
|
|
61
|
-
"@turf/boolean-point-in-polygon": "^6.0.1",
|
|
62
|
-
"@turf/buffer": "^5.1.5",
|
|
63
|
-
"@turf/center-of-mass": "^6.0.1",
|
|
64
|
-
"@turf/centroid": "^6.0.2",
|
|
65
|
-
"@turf/distance": "^6.0.1",
|
|
66
|
-
"@turf/flatten": "^5.1.5",
|
|
67
|
-
"@turf/helpers": "^6.1.4",
|
|
68
|
-
"@turf/length": "^6.0.2",
|
|
69
|
-
"@turf/line-slice": "^5.1.5",
|
|
70
|
-
async: "^2.6.1",
|
|
71
|
-
classnames: "^2.2.5",
|
|
72
|
-
css: "^2.2.4",
|
|
73
|
-
decompress: "^4.2.1",
|
|
74
|
-
"extract-files": "^12.0.0",
|
|
75
|
-
"file-saver": "^2.0.2",
|
|
76
|
-
"is-html": "^2.0.0",
|
|
77
|
-
jspdf: "^1.5.3",
|
|
78
|
-
kmljs: "0.0.1",
|
|
79
|
-
lodash: "^4.17.15",
|
|
80
|
-
"markdown-it": "^12.0.3",
|
|
81
|
-
moment: "^2.29.4",
|
|
82
|
-
"money-clip": "^3.0.1",
|
|
83
|
-
ol: "^6.4.3",
|
|
84
|
-
"ol-esri-style": "^2.0.7",
|
|
85
|
-
"parse2-kmz": "^1.0.5",
|
|
86
|
-
proj4: "^2.4.4",
|
|
87
|
-
"react-data-grid": "7.0.0-beta.15",
|
|
88
|
-
"react-datepicker": "^3.0.0",
|
|
89
|
-
"react-dnd": "^9.4.0",
|
|
90
|
-
"react-dnd-html5-backend": "^9.4.0",
|
|
91
|
-
"react-notification-system-17": "^1.0.1",
|
|
92
|
-
"react-split": "^2.0.7",
|
|
93
|
-
"redux-bundler": "^29.1.0",
|
|
94
|
-
"redux-bundler-react": "^1.2.0",
|
|
95
|
-
shpjs: "^3.4.3",
|
|
96
|
-
uuid: "^3.3.3",
|
|
97
|
-
xhr: "^2.5.0",
|
|
98
|
-
},
|
|
99
|
-
};
|
|
6
|
+
import postcss from 'rollup-plugin-postcss';
|
|
7
|
+
import json from 'rollup-plugin-json';
|
|
8
|
+
import pkg from './package.json';
|
|
9
|
+
|
|
100
10
|
|
|
101
11
|
const NODE_ENV = process.env.NODE_ENV || "development";
|
|
102
12
|
const outputFile = NODE_ENV === "production" ? "./lib/prod.js" : "./lib/dev.js";
|
|
@@ -105,42 +15,36 @@ export default {
|
|
|
105
15
|
input: "./src/index.js",
|
|
106
16
|
output: {
|
|
107
17
|
file: outputFile,
|
|
108
|
-
format: "cjs"
|
|
18
|
+
format: "cjs"
|
|
109
19
|
},
|
|
110
20
|
plugins: [
|
|
111
21
|
replace({
|
|
112
|
-
"process.env.NODE_ENV": JSON.stringify(NODE_ENV)
|
|
113
|
-
//JB Added below
|
|
114
|
-
preventAssignment: true,
|
|
22
|
+
"process.env.NODE_ENV": JSON.stringify(NODE_ENV)
|
|
115
23
|
}),
|
|
116
24
|
babel({
|
|
117
|
-
plugins:
|
|
118
|
-
extensions: [
|
|
119
|
-
exclude: "node_modules/**"
|
|
25
|
+
plugins:[['import', { libraryName: 'antd', style: true }]],
|
|
26
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
27
|
+
exclude: "node_modules/**"
|
|
120
28
|
}),
|
|
121
29
|
css({
|
|
122
|
-
|
|
123
|
-
// output: "./css/corpsmap.css",
|
|
124
|
-
output: "corpsmap.css",
|
|
30
|
+
output: "./css/corpsmap.css"
|
|
125
31
|
}),
|
|
126
32
|
resolve({
|
|
127
33
|
module: true,
|
|
128
34
|
jsnext: true,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
// },
|
|
133
|
-
moduleDirectories: ["node_modules"],
|
|
35
|
+
customResolveOptions: {
|
|
36
|
+
moduleDirectory: 'node_modules'
|
|
37
|
+
}
|
|
134
38
|
}),
|
|
135
39
|
json(),
|
|
136
40
|
commonjs(),
|
|
137
41
|
postcss({
|
|
138
|
-
extensions: [
|
|
139
|
-
use: [
|
|
140
|
-
})
|
|
42
|
+
extensions: ['.css', '.scss', '.less'],
|
|
43
|
+
use: ['sass', ['less', { javascriptEnabled: true }]],
|
|
44
|
+
})
|
|
141
45
|
],
|
|
142
46
|
external: [
|
|
143
47
|
...Object.keys(pkg.devDependencies || {}),
|
|
144
|
-
...Object.keys(pkg.peerDependencies || {})
|
|
145
|
-
]
|
|
48
|
+
...Object.keys(pkg.peerDependencies || {})
|
|
49
|
+
]
|
|
146
50
|
};
|
|
@@ -1,152 +1,162 @@
|
|
|
1
|
-
import ChangeLogModal from
|
|
2
|
-
const url = `${process.env.REACT_APP_FUDS_CHANGE_LOG_URL}`;
|
|
3
|
-
|
|
4
|
-
let testData = [
|
|
5
|
-
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
1
|
+
import ChangeLogModal from "./change-log-modal";
|
|
2
|
+
const url = `${process.env.REACT_APP_FUDS_CHANGE_LOG_URL}`;
|
|
3
|
+
|
|
4
|
+
let testData = [
|
|
5
|
+
{
|
|
6
|
+
id: 4713,
|
|
7
|
+
environment: "Public and Internal GIS",
|
|
8
|
+
district_code: "MVN",
|
|
9
|
+
change_type: "Data Change",
|
|
10
|
+
description:
|
|
11
|
+
"Update locations for project at Pyote AAF Ground Gunnery Range (K06TX0146)\r\n\r\nOLD COORDINATES:\r\nBombing Range (01) 31.5575 -102.879444\r\nGround Gunnery Range (02) 31.585556 -102.898056\r\nSkeet Range (03) 31.553056 -102.875278\r\n\r\nNEW COORDINATES:\r\nBOMBING RANGE (01) 31.501163 -103.137657\r\nGROUND GUNNERY RANGE (02) 31.586237 -103.101082\r\nSKEET RANGE (03) 31.553096 -103.124618",
|
|
12
|
+
create_date: "2023-08-23T15:41:24Z",
|
|
13
|
+
change_date: "2023-08-23T15:41:24Z",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: 4714,
|
|
17
|
+
environment: "Public and Internal GIS",
|
|
18
|
+
district_code: "MVD",
|
|
19
|
+
change_type: "Data Change",
|
|
20
|
+
description:
|
|
21
|
+
"Update locations for project at Pyote AAF Ground Gunnery Range (K07TX0146)\r\n\r\nOLD COORDINATES:\r\nBombing Range (01) 31.5575 -102.879444\r\nGround Gunnery Range (02) 31.585556 -102.898056\r\nSkeet Range (03) 31.553056 -102.875278\r\n\r\nNEW COORDINATES:\r\nBOMBING RANGE (01) 31.501163 -103.137657\r\nGROUND GUNNERY RANGE (02) 31.586237 -103.101082\r\nSKEET RANGE (03) 31.553096 -103.124618",
|
|
22
|
+
create_date: "2023-07-23T15:41:24Z",
|
|
23
|
+
change_date: "2023-07-23T15:41:24Z",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 4715,
|
|
27
|
+
environment: "Public and Internal GIS",
|
|
28
|
+
district_code: "MVQ",
|
|
29
|
+
change_type: "Data Change",
|
|
30
|
+
description:
|
|
31
|
+
"Update locations for project at Pyote AAF Ground Gunnery Range (K08TX0146)\r\n\r\nOLD COORDINATES:\r\nBombing Range (01) 31.5575 -102.879444\r\nGround Gunnery Range (02) 31.585556 -102.898056\r\nSkeet Range (03) 31.553056 -102.875278\r\n\r\nNEW COORDINATES:\r\nBOMBING RANGE (01) 31.501163 -103.137657\r\nGROUND GUNNERY RANGE (02) 31.586237 -103.101082\r\nSKEET RANGE (03) 31.553096 -103.124618",
|
|
32
|
+
create_date: "2023-07-13T15:41:24Z",
|
|
33
|
+
change_date: "2023-07-13T15:41:24Z",
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
testData = [];
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
name: "changeLog",
|
|
40
|
+
|
|
41
|
+
getReducer: () => {
|
|
42
|
+
const initialData = {
|
|
43
|
+
items: testData,
|
|
44
|
+
allItems: testData,
|
|
45
|
+
renderModal: false,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
return (state = initialData, { type, payload }) => {
|
|
49
|
+
switch (type) {
|
|
50
|
+
case "CHANGE_LOG_LOAD_TEST_DATA":
|
|
51
|
+
case "CHANGE_LOG_LOAD_ALL_DATA":
|
|
52
|
+
case "CHANGE_LOG_MODAL_WINDOW_OPENED":
|
|
53
|
+
case "CHANGE_LOG_LOAD_SELECTED_DATA":
|
|
54
|
+
return Object.assign({}, state, payload);
|
|
55
|
+
default:
|
|
56
|
+
return state;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
doSearchChangeLogData:
|
|
62
|
+
(evt) =>
|
|
63
|
+
({ dispatch, store }) => {
|
|
64
|
+
const targetValue = evt.target.value.trim().toUpperCase();
|
|
65
|
+
let logData = store.selectAllChangeLogItems();
|
|
66
|
+
if (targetValue.length > 0) {
|
|
67
|
+
const wkLogData = [];
|
|
68
|
+
logData.forEach((item) => {
|
|
69
|
+
let wkKey = {};
|
|
70
|
+
let displayRecord = null;
|
|
71
|
+
for (const [key, value] of Object.entries(item)) {
|
|
72
|
+
if (typeof value == "string") {
|
|
73
|
+
let newObj = value.trim().toUpperCase().includes(targetValue)
|
|
74
|
+
? item
|
|
75
|
+
: false;
|
|
76
|
+
if (newObj) {
|
|
77
|
+
displayRecord = true;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (displayRecord) {
|
|
82
|
+
wkLogData.push(item);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
// logData = wkLogData;
|
|
87
|
+
console.log("SELECTED ITEMS");
|
|
88
|
+
console.log(wkLogData);
|
|
89
|
+
dispatch({
|
|
90
|
+
type: "CHANGE_LOG_LOAD_SELECTED_DATA",
|
|
91
|
+
payload: { items: wkLogData },
|
|
92
|
+
});
|
|
93
|
+
} else {
|
|
94
|
+
dispatch({
|
|
95
|
+
type: "CHANGE_LOG_LOAD_SELECTED_DATA",
|
|
96
|
+
payload: { items: logData },
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
doGetChangeLogData:
|
|
102
|
+
() =>
|
|
103
|
+
({ dispatch, store, anonGet }) => {
|
|
104
|
+
anonGet(url, (err, response, body) => {
|
|
105
|
+
if (err || response.statusCode !== 200) {
|
|
106
|
+
// On Error Load Test Data
|
|
107
|
+
// dispatch({
|
|
108
|
+
// type: "CHANGE_LOG_LOAD_TEST_DATA",
|
|
109
|
+
// payload: { items: testData, renderModal: true },
|
|
110
|
+
// });
|
|
111
|
+
} else {
|
|
112
|
+
try {
|
|
113
|
+
console.log("Production Change Log Data");
|
|
114
|
+
console.log(body);
|
|
115
|
+
let data = JSON.parse(body);
|
|
116
|
+
console.log("data");
|
|
117
|
+
console.log(data);
|
|
118
|
+
let items = data.items;
|
|
119
|
+
console.log("ITEMS");
|
|
120
|
+
console.log(items);
|
|
121
|
+
dispatch({
|
|
122
|
+
type: "CHANGE_LOG_LOAD_ALL_DATA",
|
|
123
|
+
payload: { allItems: items, renderModal: false },
|
|
124
|
+
});
|
|
125
|
+
dispatch({
|
|
126
|
+
type: "CHANGE_LOG_LOAD_SELECTED_DATA",
|
|
127
|
+
payload: { items: items, renderModal: true },
|
|
128
|
+
});
|
|
129
|
+
} catch (err) {
|
|
130
|
+
// alert(" ! ! ! ERROR IN CATCH BLOCK ! ! ! ")
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
doOpenModalLog:
|
|
137
|
+
() =>
|
|
138
|
+
({ dispatch, store }) => {
|
|
139
|
+
store.doModalOpen({
|
|
140
|
+
children: [ChangeLogModal],
|
|
141
|
+
options: {},
|
|
142
|
+
openedBy: "ChangeLogButton",
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
dispatch({
|
|
146
|
+
type: "CHANGE_LOG_MODAL_WINDOW_OPENED",
|
|
147
|
+
payload: { renderModal: false },
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
selectChangeLogItems: (state) => {
|
|
152
|
+
return state.changeLog.items;
|
|
153
|
+
},
|
|
154
|
+
|
|
155
|
+
selectAllChangeLogItems: (state) => {
|
|
156
|
+
return state.changeLog.allItems;
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
reactRenderChangeLogModal: (state) => {
|
|
160
|
+
if (state.changeLog.renderModal) return { actionCreator: "doOpenModalLog" };
|
|
161
|
+
},
|
|
162
|
+
};
|