@corpsmap/corpsmap 4.1.5 → 4.1.9
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/dist/corpsmap.es.js +28 -12
- package/dist/corpsmap.umd.js +7 -7
- package/package.json +1 -1
- package/src/application-bundles/api-bundle.js +1 -2
- package/src/config/default-config.js +1 -7
- package/src/core-plugins/change-log/bundle.js +4 -3
- package/src/core-plugins/change-log/change-log-modal-save.jsx +197 -0
- package/src/core-plugins/change-log/change-log-modal.jsx +13 -2
- package/src/core-plugins/resources/bundle.js +4 -3
- package/src/core-plugins/resources/resources-modal.jsx +2 -9
package/dist/corpsmap.es.js
CHANGED
|
@@ -1007,8 +1007,7 @@ const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports), apiBu
|
|
|
1007
1007
|
name: "api",
|
|
1008
1008
|
getReducer: () => {
|
|
1009
1009
|
const e = {
|
|
1010
|
-
|
|
1011
|
-
root: void 0
|
|
1010
|
+
root: window.CM_ENV || ""
|
|
1012
1011
|
};
|
|
1013
1012
|
return (t = e, { type: r, payload: a }) => t;
|
|
1014
1013
|
},
|
|
@@ -12282,7 +12281,7 @@ const windowLocationBundle = {
|
|
|
12282
12281
|
})), a.hasOwnProperty("components") && e.doAddPluginComponents(a.components), r.push(o));
|
|
12283
12282
|
}), e.doStopLoadingPlugins();
|
|
12284
12283
|
};
|
|
12285
|
-
let defaultMapboxToken = "pk.eyJ1IjoidXNhY2UiLCJhIjoiY2p4YW5hdjR6MThoZDNubG1mdG1rYXR1dSJ9.1jDEJhe6OP-e6iZNeEtzjA",
|
|
12284
|
+
let defaultMapboxToken = "pk.eyJ1IjoidXNhY2UiLCJhIjoiY2p4YW5hdjR6MThoZDNubG1mdG1rYXR1dSJ9.1jDEJhe6OP-e6iZNeEtzjA", mapboxToken = window.CM_ENV_MAPBOX_TOKEN || defaultMapboxToken;
|
|
12286
12285
|
const config$1 = {
|
|
12287
12286
|
map: {
|
|
12288
12287
|
basemap: 0,
|
|
@@ -12842,7 +12841,7 @@ const config$1 = {
|
|
|
12842
12841
|
path: "depricated"
|
|
12843
12842
|
}
|
|
12844
12843
|
]
|
|
12845
|
-
}, version = "4.1.
|
|
12844
|
+
}, version = "4.1.9", pkg = {
|
|
12846
12845
|
version
|
|
12847
12846
|
};
|
|
12848
12847
|
console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
|
|
@@ -23090,13 +23089,22 @@ class ChangeLogModal extends React__default.Component {
|
|
|
23090
23089
|
const { doModalClose: t } = this.props;
|
|
23091
23090
|
t();
|
|
23092
23091
|
}
|
|
23092
|
+
// formatDate(oldDate) {
|
|
23093
|
+
// let newDate = new Date(oldDate);
|
|
23094
|
+
// newDate = newDate.toLocaleDateString("default", {
|
|
23095
|
+
// month: "long",
|
|
23096
|
+
// day: "numeric",
|
|
23097
|
+
// year: "numeric",
|
|
23098
|
+
// });
|
|
23099
|
+
// return newDate;
|
|
23100
|
+
// }
|
|
23093
23101
|
formatDate(t) {
|
|
23094
|
-
let r = new Date(t);
|
|
23095
|
-
return
|
|
23102
|
+
let r = new Date(t), a = r.getTimezoneOffset() * 6e4, o = new Date(r.getTime() + a);
|
|
23103
|
+
return o = o.toLocaleDateString("default", {
|
|
23096
23104
|
month: "long",
|
|
23097
23105
|
day: "numeric",
|
|
23098
23106
|
year: "numeric"
|
|
23099
|
-
}),
|
|
23107
|
+
}), o;
|
|
23100
23108
|
}
|
|
23101
23109
|
render() {
|
|
23102
23110
|
const {
|
|
@@ -23245,7 +23253,11 @@ const ChangeLogModal$1 = connect(
|
|
|
23245
23253
|
"doSearchChangeLogData",
|
|
23246
23254
|
"doSetSearchBarFilter",
|
|
23247
23255
|
ChangeLogModal
|
|
23248
|
-
)
|
|
23256
|
+
);
|
|
23257
|
+
function getChangeLogUrl() {
|
|
23258
|
+
return window.FUDS_CHANGE_LOG_URL || "";
|
|
23259
|
+
}
|
|
23260
|
+
const bundle$i = {
|
|
23249
23261
|
name: "changeLog",
|
|
23250
23262
|
getReducer: () => {
|
|
23251
23263
|
const e = {
|
|
@@ -23296,7 +23308,7 @@ const ChangeLogModal$1 = connect(
|
|
|
23296
23308
|
});
|
|
23297
23309
|
},
|
|
23298
23310
|
doGetChangeLogData: () => ({ dispatch: e, store: t, anonGet: r }) => {
|
|
23299
|
-
r(
|
|
23311
|
+
r(getChangeLogUrl(), (a, o, d) => {
|
|
23300
23312
|
if (!(a || o.statusCode !== 200)) try {
|
|
23301
23313
|
console.log("Production Change Log Data"), console.log(d);
|
|
23302
23314
|
let g = JSON.parse(d);
|
|
@@ -23409,7 +23421,7 @@ class ResourcesModal extends React__default.Component {
|
|
|
23409
23421
|
const { theme: r, doGetResourceData: a, resourceItems: o, resourceGroups: d } = this.props;
|
|
23410
23422
|
let g = [];
|
|
23411
23423
|
return g = d.map((m) => {
|
|
23412
|
-
let y = "
|
|
23424
|
+
let y = (window.FUDS_RESOURCE_GROUP_IMAGE_URL || "") + m.groupId;
|
|
23413
23425
|
return /* @__PURE__ */ jsxs(
|
|
23414
23426
|
"div",
|
|
23415
23427
|
{
|
|
@@ -23524,7 +23536,11 @@ const ResourcesModal$1 = connect(
|
|
|
23524
23536
|
}
|
|
23525
23537
|
let r = t.reduce((a, o) => a.find((g) => g.groupId === o.groupId) ? a : a.concat([o]), []);
|
|
23526
23538
|
return r.sort((a, o) => a.groupSort - o.groupSort), r;
|
|
23527
|
-
}
|
|
23539
|
+
};
|
|
23540
|
+
function getResourcesUrl() {
|
|
23541
|
+
return window.FUDS_RESOURCES_URL || "";
|
|
23542
|
+
}
|
|
23543
|
+
const defaultHtml = [
|
|
23528
23544
|
{
|
|
23529
23545
|
name: "FUDSMIS Portal - Default",
|
|
23530
23546
|
url: "https://fudsportal.usace.army.mil/"
|
|
@@ -23553,7 +23569,7 @@ const ResourcesModal$1 = connect(
|
|
|
23553
23569
|
};
|
|
23554
23570
|
},
|
|
23555
23571
|
doGetResourceData: () => ({ dispatch: e, store: t, anonGet: r }) => {
|
|
23556
|
-
r(
|
|
23572
|
+
r(getResourcesUrl(), (a, o, d) => {
|
|
23557
23573
|
if (a || o.statusCode !== 200)
|
|
23558
23574
|
e({
|
|
23559
23575
|
type: "RESOURCES_LOAD_TEST_DATA",
|