@corpsmap/corpsmap 3.2.26 → 3.2.28
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/package.json
CHANGED
|
@@ -5,23 +5,29 @@ const testData = [
|
|
|
5
5
|
{
|
|
6
6
|
"id": 4713,
|
|
7
7
|
"environment": "Public and Internal GIS",
|
|
8
|
+
"district_code": "MVN",
|
|
8
9
|
"change_type": "Data Change",
|
|
9
10
|
"description": "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",
|
|
10
|
-
"create_date": "2023-08-23T15:41:24Z"
|
|
11
|
+
"create_date": "2023-08-23T15:41:24Z",
|
|
12
|
+
"change_date": "2023-08-23T15:41:24Z"
|
|
11
13
|
},
|
|
12
14
|
{
|
|
13
15
|
"id": 4714,
|
|
14
16
|
"environment": "Public and Internal GIS",
|
|
17
|
+
"district_code": "MVD",
|
|
15
18
|
"change_type": "Data Change",
|
|
16
19
|
"description": "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",
|
|
17
|
-
"create_date": "2023-08-23T15:41:24Z"
|
|
20
|
+
"create_date": "2023-08-23T15:41:24Z",
|
|
21
|
+
"change_date": "2023-08-23T15:41:24Z"
|
|
18
22
|
},
|
|
19
23
|
{
|
|
20
24
|
"id": 4715,
|
|
21
25
|
"environment": "Public and Internal GIS",
|
|
26
|
+
"district_code": "MVQ",
|
|
22
27
|
"change_type": "Data Change",
|
|
23
28
|
"description": "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",
|
|
24
|
-
"create_date": "2023-08-23T15:41:24Z"
|
|
29
|
+
"create_date": "2023-08-23T15:41:24Z",
|
|
30
|
+
"change_date": "2023-08-23T15:41:24Z"
|
|
25
31
|
},
|
|
26
32
|
];
|
|
27
33
|
|
|
@@ -49,7 +55,7 @@ export default {
|
|
|
49
55
|
doGetChangeLogData: () => ({dispatch, store, anonGet}) => {
|
|
50
56
|
anonGet(url, (err, response, body) => {
|
|
51
57
|
if (err || response.statusCode !== 200) {
|
|
52
|
-
//
|
|
58
|
+
// On Error Load Test Data
|
|
53
59
|
dispatch({
|
|
54
60
|
type: "CHANGE_LOG_LOAD_TEST_DATA",
|
|
55
61
|
payload: { items: testData, renderModal: true },
|
|
@@ -65,14 +71,13 @@ export default {
|
|
|
65
71
|
let items = data.items
|
|
66
72
|
console.log("ITEMS");
|
|
67
73
|
console.log(items)
|
|
68
|
-
debugger
|
|
69
74
|
dispatch({
|
|
70
75
|
type: "CHANGE_LOG_LOAD_PRODUCTION_DATA",
|
|
71
76
|
payload: { items: items, renderModal: true },
|
|
72
77
|
});
|
|
73
78
|
|
|
74
79
|
} catch (err) {
|
|
75
|
-
alert(" ! ! ! ERROR IN CATCH BLOCK ! ! ! ")
|
|
80
|
+
// alert(" ! ! ! ERROR IN CATCH BLOCK ! ! ! ")
|
|
76
81
|
}
|
|
77
82
|
}
|
|
78
83
|
});
|
|
@@ -22,12 +22,6 @@ class ChangeLogButton extends React.Component {
|
|
|
22
22
|
handleClick(){
|
|
23
23
|
const { doGetChangeLogData } = this.props;
|
|
24
24
|
doGetChangeLogData();
|
|
25
|
-
// this.openModalLog();
|
|
26
|
-
// Load Data
|
|
27
|
-
// After Data is loaded change renderModal true
|
|
28
|
-
// Add a listener that does doModalOpend
|
|
29
|
-
// doGetChangeLogData();
|
|
30
|
-
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
render() {
|
|
@@ -46,4 +40,4 @@ export default connect(
|
|
|
46
40
|
"doModalOpen",
|
|
47
41
|
"doGetChangeLogData",
|
|
48
42
|
ChangeLogButton
|
|
49
|
-
);
|
|
43
|
+
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { connect } from "redux-bundler-react";
|
|
3
|
+
import moment from 'moment';
|
|
3
4
|
|
|
4
5
|
class ChangeLogModal extends React.Component {
|
|
5
6
|
constructor(props) {
|
|
6
7
|
super(props);
|
|
7
|
-
|
|
8
8
|
this.state = {};
|
|
9
9
|
this.close = this.close.bind(this);
|
|
10
|
-
|
|
10
|
+
this.fomatDate= this.formatDate.bind(this);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
close() {
|
|
@@ -15,16 +15,20 @@ class ChangeLogModal extends React.Component {
|
|
|
15
15
|
doModalClose();
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
formatDate(oldDate){
|
|
19
|
+
const date = moment(oldDate).format("LL");
|
|
20
|
+
return date
|
|
21
|
+
}
|
|
19
22
|
|
|
23
|
+
render() {
|
|
20
24
|
const { theme, doGetChangeLogData, changeLogItems } = this.props;
|
|
21
|
-
// doGetChangeLogData();
|
|
22
|
-
debugger
|
|
23
25
|
const loginDataWk = changeLogItems;
|
|
24
26
|
const arrayDataItems = loginDataWk.map(data =>
|
|
25
27
|
<li key={data.id}>
|
|
26
|
-
<p>
|
|
28
|
+
<p> {this.formatDate(data.change_date)}</p>
|
|
29
|
+
<p>Environment: {data.environment} </p>
|
|
27
30
|
<p>Change Type: {data.change_type}</p>
|
|
31
|
+
<p>District: {data.district_code}</p>
|
|
28
32
|
<p>Description: {data.description}</p>
|
|
29
33
|
</li>
|
|
30
34
|
)
|
|
@@ -37,7 +41,11 @@ class ChangeLogModal extends React.Component {
|
|
|
37
41
|
style={{ height: 290, top: 0, bottom: 0, left: 0, right: 0 }}
|
|
38
42
|
>
|
|
39
43
|
<div className="cm-form-group">
|
|
40
|
-
<div style={{
|
|
44
|
+
<div style={{
|
|
45
|
+
overflow: "auto scroll",
|
|
46
|
+
width: "875px",
|
|
47
|
+
height: "350px",
|
|
48
|
+
whiteSpace: "pre-wrap",}}>
|
|
41
49
|
<ul>{arrayDataItems}</ul>
|
|
42
50
|
</div>
|
|
43
51
|
</div>
|