fleetmap-reports 1.0.273 → 1.0.274
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/.idea/workspace.xml +14 -6
- package/package.json +1 -1
- package/src/util/utils.js +2 -2
package/.idea/workspace.xml
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="eb665c86-c893-4333-bd2a-721dc27980b9" name="Changes" comment="fix
|
|
5
|
-
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
4
|
+
<list default="true" id="eb665c86-c893-4333-bd2a-721dc27980b9" name="Changes" comment="fix kms report by group">
|
|
6
5
|
<change beforePath="$PROJECT_DIR$/src/index.test.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.test.js" afterDir="false" />
|
|
7
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
6
|
+
<change beforePath="$PROJECT_DIR$/src/util/utils.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/util/utils.js" afterDir="false" />
|
|
8
7
|
</list>
|
|
9
8
|
<option name="SHOW_DIALOG" value="false" />
|
|
10
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -227,7 +226,8 @@
|
|
|
227
226
|
<workItem from="1641640203903" duration="5320000" />
|
|
228
227
|
<workItem from="1641740608739" duration="1844000" />
|
|
229
228
|
<workItem from="1641775506363" duration="646000" />
|
|
230
|
-
<workItem from="1641819557952" duration="
|
|
229
|
+
<workItem from="1641819557952" duration="1678000" />
|
|
230
|
+
<workItem from="1641910746496" duration="1137000" />
|
|
231
231
|
</task>
|
|
232
232
|
<task id="LOCAL-00001" summary="Fix getStyle">
|
|
233
233
|
<created>1636983717385</created>
|
|
@@ -404,7 +404,14 @@
|
|
|
404
404
|
<option name="project" value="LOCAL" />
|
|
405
405
|
<updated>1641664506679</updated>
|
|
406
406
|
</task>
|
|
407
|
-
<
|
|
407
|
+
<task id="LOCAL-00026" summary="fix kms report by group">
|
|
408
|
+
<created>1641820626240</created>
|
|
409
|
+
<option name="number" value="00026" />
|
|
410
|
+
<option name="presentableId" value="LOCAL-00026" />
|
|
411
|
+
<option name="project" value="LOCAL" />
|
|
412
|
+
<updated>1641820626240</updated>
|
|
413
|
+
</task>
|
|
414
|
+
<option name="localTasksCounter" value="27" />
|
|
408
415
|
<servers />
|
|
409
416
|
</component>
|
|
410
417
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -458,6 +465,7 @@
|
|
|
458
465
|
<MESSAGE value="Refactor trip and speeding reports" />
|
|
459
466
|
<MESSAGE value="check if weekDays parameter is set" />
|
|
460
467
|
<MESSAGE value="fix trip report" />
|
|
461
|
-
<
|
|
468
|
+
<MESSAGE value="fix kms report by group" />
|
|
469
|
+
<option name="LAST_COMMIT_MESSAGE" value="fix kms report by group" />
|
|
462
470
|
</component>
|
|
463
471
|
</project>
|
package/package.json
CHANGED
package/src/util/utils.js
CHANGED
|
@@ -55,10 +55,10 @@ async function getImgFromUrl(hostname) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
function isClientSide() { typeof window !== "undefined" }
|
|
58
|
+
function isClientSide() { return (typeof window !== "undefined") }
|
|
59
59
|
|
|
60
60
|
function convertToLocaleString(value, lang, timezone){
|
|
61
|
-
if(isClientSide){
|
|
61
|
+
if(isClientSide()){
|
|
62
62
|
return new Date(value).toLocaleString()
|
|
63
63
|
} else {
|
|
64
64
|
return new Date(value).toLocaleString(lang, {
|