fleetmap-reports 1.0.288 → 1.0.292
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/aws.xml +17 -0
- package/.idea/codeStyles/Project.xml +7 -0
- package/{fleetmap-reports.iml → .idea/fleetmap-reports.iml} +2 -1
- package/.idea/jsLibraryMappings.xml +1 -1
- package/.idea/modules.xml +1 -1
- package/.idea/vcs.xml +1 -1
- package/lang/enGB.js +12 -2
- package/lang/esCL.js +10 -1
- package/lang/index.js +4 -1
- package/lang/ptBR.js +11 -1
- package/lang/ptPT.js +11 -1
- package/package.json +2 -1
- package/src/activity-report.js +542 -206
- package/src/automaticReports.js +1 -1
- package/src/events-report.js +25 -21
- package/src/here.js +1 -1
- package/src/idle-report.js +285 -0
- package/src/index.js +12 -2
- package/src/index.test.js +18 -25
- package/src/kms-report.js +409 -103
- package/src/location-report.js +22 -18
- package/src/refueling-report.js +11 -1
- package/src/reportStyle.js +26 -0
- package/src/speeding-report.js +239 -180
- package/src/tests/index.js +22 -0
- package/src/trip-report.js +152 -159
- package/src/util/driver.js +5 -13
- package/src/util/pdfDocument.js +58 -0
- package/src/util/traccar.js +72 -0
- package/src/util/trips.js +76 -0
- package/src/util/utils.js +67 -1
- package/src/zone-report.js +22 -23
package/.idea/aws.xml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="accountSettings">
|
|
4
|
+
<option name="activeProfile" value="profile:default" />
|
|
5
|
+
<option name="activeRegion" value="us-east-1" />
|
|
6
|
+
<option name="recentlyUsedProfiles">
|
|
7
|
+
<list>
|
|
8
|
+
<option value="profile:default" />
|
|
9
|
+
</list>
|
|
10
|
+
</option>
|
|
11
|
+
<option name="recentlyUsedRegions">
|
|
12
|
+
<list>
|
|
13
|
+
<option value="us-east-1" />
|
|
14
|
+
</list>
|
|
15
|
+
</option>
|
|
16
|
+
</component>
|
|
17
|
+
</project>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
3
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
4
|
<exclude-output />
|
|
5
5
|
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
6
7
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
8
|
</component>
|
|
8
9
|
</module>
|
package/.idea/modules.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ProjectModuleManager">
|
|
4
4
|
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/fleetmap-reports.iml" filepath="$PROJECT_DIR$/.idea/fleetmap-reports.iml" />
|
|
6
6
|
</modules>
|
|
7
7
|
</component>
|
|
8
8
|
</project>
|
package/.idea/vcs.xml
CHANGED
package/lang/enGB.js
CHANGED
|
@@ -162,7 +162,6 @@ module.exports = {
|
|
|
162
162
|
},
|
|
163
163
|
report: {
|
|
164
164
|
temperature: 'Temperatura',
|
|
165
|
-
temperature2: 'Temperatura2',
|
|
166
165
|
select_vehicles: 'Select vehicles',
|
|
167
166
|
select_vehicles_placeholder: 'Vehicles',
|
|
168
167
|
select_geofences: 'Select geofences',
|
|
@@ -183,6 +182,7 @@ module.exports = {
|
|
|
183
182
|
titleEventsReport: 'Events Report',
|
|
184
183
|
titleActivityReport: 'Activity Report',
|
|
185
184
|
titleKmsReport: 'Kms Report',
|
|
185
|
+
titleIdleReport: 'Idle Report',
|
|
186
186
|
from: 'From',
|
|
187
187
|
to: 'to',
|
|
188
188
|
headerStartAddress: 'Start address',
|
|
@@ -198,7 +198,7 @@ module.exports = {
|
|
|
198
198
|
stopTime: 'Stop',
|
|
199
199
|
distance: 'Distance',
|
|
200
200
|
speed: 'Speed',
|
|
201
|
-
roadSpeedLimit: '
|
|
201
|
+
roadSpeedLimit: 'Road Speed Limit',
|
|
202
202
|
overspeed: 'Alert On',
|
|
203
203
|
avgSpeed: 'Avg Speed',
|
|
204
204
|
maxSpeed: 'Max Speed',
|
|
@@ -214,6 +214,7 @@ module.exports = {
|
|
|
214
214
|
duration: 'Duration',
|
|
215
215
|
vehicles: 'Vehicles',
|
|
216
216
|
vehicle: 'Vehicle',
|
|
217
|
+
licensePlate: 'License Plate',
|
|
217
218
|
odometer: 'Odometer',
|
|
218
219
|
startOdometer: 'Start (Km)',
|
|
219
220
|
endOdometer: 'End (Km)',
|
|
@@ -236,6 +237,15 @@ module.exports = {
|
|
|
236
237
|
event_driverChanged: 'Driver Changed',
|
|
237
238
|
event_sos: 'SOS',
|
|
238
239
|
event_powerOn: 'Power TakeOff',
|
|
240
|
+
event_powerCute: 'Power Cut',
|
|
241
|
+
monday: 'Monday',
|
|
242
|
+
tuesday: 'Tuesday',
|
|
243
|
+
wednesday: 'Wednesday',
|
|
244
|
+
thursday: 'Thursday',
|
|
245
|
+
friday: 'Friday',
|
|
246
|
+
saturday: 'Saturday',
|
|
247
|
+
sunday: 'Sunday',
|
|
248
|
+
weekDay: 'Week Day',
|
|
239
249
|
unsubscribeTripReport: 'If you no longer wish to receive these emails, please go to %url% and remove the option "Trip report" in the settings in the "Reports" section.',
|
|
240
250
|
unsubscribeLocationsReport: 'If you no longer wish to receive these emails, please go to %url% and remove the option "Locations report" in the settings in the "Reports" section.',
|
|
241
251
|
unsubscribeSpeedingReport: 'If you no longer wish to receive these emails, please go to %url% and remove the option "Overspeed report" in the settings in the "Reports" section.',
|
package/lang/esCL.js
CHANGED
|
@@ -157,7 +157,6 @@ module.exports = {
|
|
|
157
157
|
},
|
|
158
158
|
report: {
|
|
159
159
|
temperature: 'Temperatura',
|
|
160
|
-
temperature2: 'Temperatura2',
|
|
161
160
|
select_vehicles: 'Seleccione vehículos',
|
|
162
161
|
select_vehicles_placeholder: 'Vehículos',
|
|
163
162
|
select_geofences: 'Seleccione geocercas',
|
|
@@ -177,6 +176,7 @@ module.exports = {
|
|
|
177
176
|
titleEventsReport: 'Informe de Eventos',
|
|
178
177
|
titleActivityReport: 'Activity Report',
|
|
179
178
|
titleKmsReport: 'Informe de Kms',
|
|
179
|
+
titleIdleReport: 'Relatórios de Ralenti',
|
|
180
180
|
from: 'De',
|
|
181
181
|
to: 'a',
|
|
182
182
|
headerStartAddress: 'Lugar de início',
|
|
@@ -230,6 +230,15 @@ module.exports = {
|
|
|
230
230
|
event_driverChanged: 'Conductor Cambiado',
|
|
231
231
|
event_sos: 'SOS',
|
|
232
232
|
event_powerOn: 'Tomada de Força',
|
|
233
|
+
event_powerCut: 'Corte de Corrente',
|
|
234
|
+
monday: 'Lunes',
|
|
235
|
+
tuesday: 'Martes',
|
|
236
|
+
wednesday: 'Miércoles',
|
|
237
|
+
thursday: 'Jueves',
|
|
238
|
+
friday: 'Viernes',
|
|
239
|
+
saturday: 'Sábado',
|
|
240
|
+
sunday: 'Domingo',
|
|
241
|
+
weekDay: 'Dia da Semana',
|
|
233
242
|
unsubscribeTripReport: 'Si no desea recibir estos emails por favor ingrese a %url% y elimine la opción en los Ajustes / Reportes ',
|
|
234
243
|
unsubscribeLocationsReport: this.unsubscribeTripReport,
|
|
235
244
|
unsubscribeSpeedingReport: this.unsubscribeTripReport,
|
package/lang/index.js
CHANGED
package/lang/ptBR.js
CHANGED
|
@@ -154,7 +154,6 @@ module.exports = {
|
|
|
154
154
|
},
|
|
155
155
|
report: {
|
|
156
156
|
temperature: 'Temperatura',
|
|
157
|
-
temperature2: 'Temperatura2',
|
|
158
157
|
select_vehicles: 'Seleccionar veículos',
|
|
159
158
|
select_vehicles_placeholder: 'Veículos',
|
|
160
159
|
select_geofences: 'Seleccionar balizas',
|
|
@@ -173,6 +172,7 @@ module.exports = {
|
|
|
173
172
|
titleEventsReport: 'Relatório de Eventos',
|
|
174
173
|
titleActivityReport: 'Relatório de Actividade',
|
|
175
174
|
titleKmsReport: 'Relatórios de Kms',
|
|
175
|
+
titleIdleReport: 'Relatórios de Ralenti',
|
|
176
176
|
from: 'De',
|
|
177
177
|
to: 'a',
|
|
178
178
|
headerStartAddress: 'Local de início',
|
|
@@ -203,6 +203,7 @@ module.exports = {
|
|
|
203
203
|
duration: 'Duração',
|
|
204
204
|
vehicles: 'Veículos',
|
|
205
205
|
vehicle: 'Veículo',
|
|
206
|
+
licensePlate: 'Placa',
|
|
206
207
|
odometer: 'Conta-Quilómetros',
|
|
207
208
|
startOdometer: 'Início (Km)',
|
|
208
209
|
endOdometer: 'Fim (Km)',
|
|
@@ -225,6 +226,15 @@ module.exports = {
|
|
|
225
226
|
event_driverChanged: 'Mudança de Motorista',
|
|
226
227
|
event_sos: 'SOS',
|
|
227
228
|
event_powerOn: 'Tomada de Força',
|
|
229
|
+
event_powerCut: 'Corte de Corrente',
|
|
230
|
+
monday: 'Segunda',
|
|
231
|
+
tuesday: 'Terça',
|
|
232
|
+
wednesday: 'Quarta',
|
|
233
|
+
thursday: 'Quinta',
|
|
234
|
+
friday: 'Sexta',
|
|
235
|
+
saturday: 'Sábado',
|
|
236
|
+
sunday: 'Domingo',
|
|
237
|
+
weekDay: 'Dia da Semana',
|
|
228
238
|
unsubscribeTripReport: 'Se não deseja receber estes emails por favor aceda a %url% e remova a opção "Relatório de viagens" nas definições na secção "Relatórios".',
|
|
229
239
|
unsubscribeLocationsReport: 'Se não deseja receber estes emails por favor aceda a %url% e remova a opção "Relatório de posições" nas definições na secção "Relatórios".',
|
|
230
240
|
unsubscribeSpeedingReport: 'Se não deseja receber estes emails por favor aceda a %url% e remova a opção "Relatório de excesso de velocidade" nas definições na secção "Relatórios".',
|
package/lang/ptPT.js
CHANGED
|
@@ -158,7 +158,6 @@ module.exports = {
|
|
|
158
158
|
},
|
|
159
159
|
report: {
|
|
160
160
|
temperature: 'Temperatura',
|
|
161
|
-
temperature2: 'Temperatura2',
|
|
162
161
|
select_vehicles: 'Seleccionar veículos',
|
|
163
162
|
select_vehicles_placeholder: 'Veículos',
|
|
164
163
|
select_geofences: 'Seleccionar balizas',
|
|
@@ -179,6 +178,7 @@ module.exports = {
|
|
|
179
178
|
titleEventsReport: 'Relatório de Eventos',
|
|
180
179
|
titleActivityReport: 'Relatório de Actividade',
|
|
181
180
|
titleKmsReport: 'Relatórios de Kms',
|
|
181
|
+
titleIdleReport: 'Relatórios de Ralenti',
|
|
182
182
|
from: 'De',
|
|
183
183
|
to: 'a',
|
|
184
184
|
headerStartAddress: 'Local de início',
|
|
@@ -210,6 +210,7 @@ module.exports = {
|
|
|
210
210
|
duration: 'Duração',
|
|
211
211
|
vehicles: 'Veículos',
|
|
212
212
|
vehicle: 'Veículo',
|
|
213
|
+
licensePlate: 'Matrícula',
|
|
213
214
|
odometer: 'Conta-Quilómetros',
|
|
214
215
|
startOdometer: 'Início (Km)',
|
|
215
216
|
endOdometer: 'Fim (Km)',
|
|
@@ -235,6 +236,15 @@ module.exports = {
|
|
|
235
236
|
event_driverChanged: 'Mudança de Motorista',
|
|
236
237
|
event_sos: 'SOS',
|
|
237
238
|
event_powerOn: 'Tomada de Força',
|
|
239
|
+
event_powerCut: 'Corte de Corrente',
|
|
240
|
+
monday: 'Segunda',
|
|
241
|
+
tuesday: 'Terça',
|
|
242
|
+
wednesday: 'Quarta',
|
|
243
|
+
thursday: 'Quinta',
|
|
244
|
+
friday: 'Sexta',
|
|
245
|
+
saturday: 'Sábado',
|
|
246
|
+
sunday: 'Domingo',
|
|
247
|
+
weekDay: 'Dia da Semana',
|
|
238
248
|
unsubscribeTripReport: 'Se não deseja receber estes emails por favor aceda a %url% e remova a opção "Relatório de viagens" nas definições na secção "Relatórios".',
|
|
239
249
|
unsubscribeLocationsReport: 'Se não deseja receber estes emails por favor aceda a %url% e remova a opção "Relatório de posições" nas definições na secção "Relatórios".',
|
|
240
250
|
unsubscribeSpeedingReport: 'Se não deseja receber estes emails por favor aceda a %url% e remova a opção "Relatório de excesso de velocidade" nas definições na secção "Relatórios".',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleetmap-reports",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.292",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"axios": "^0.21.1",
|
|
14
14
|
"axios-cookiejar-support": "^1.0.1",
|
|
15
|
+
"fleetmap-partners": "^1.0.42",
|
|
15
16
|
"json-as-xlsx": "^1.2.1",
|
|
16
17
|
"jspdf": "^2.3.1",
|
|
17
18
|
"jspdf-autotable": "^3.5.14",
|