fleetmap-reports 1.0.590 → 1.0.592
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/lang/frFR.js +16 -26
- package/package.json +1 -1
- package/src/speeding-report.js +5 -2
- package/src/util/utils.js +5 -0
package/lang/frFR.js
CHANGED
|
@@ -4,12 +4,6 @@ module.exports = {
|
|
|
4
4
|
dashboard: 'Dashboard',
|
|
5
5
|
reports: 'Reports',
|
|
6
6
|
report: 'Report',
|
|
7
|
-
report_trip_title: 'Trip Report',
|
|
8
|
-
report_location_title: 'Location Report',
|
|
9
|
-
report_zone_crossing: 'Zone Report',
|
|
10
|
-
report_speeding: 'Relatório de Excessos de Velocidade',
|
|
11
|
-
report_speeding_beta: 'Relatório de Excessos de Velocidade BETA',
|
|
12
|
-
report_tolls: 'Relatório de Portagens',
|
|
13
7
|
settings: 'Settings',
|
|
14
8
|
duration: 'Duration'
|
|
15
9
|
},
|
|
@@ -167,23 +161,19 @@ module.exports = {
|
|
|
167
161
|
select_geofences_placeholder: 'Geofences',
|
|
168
162
|
select_period: 'Select period',
|
|
169
163
|
period: 'Period',
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
titleKmsReport: 'Kms Report',
|
|
184
|
-
titleIdleReport: 'Idle Report',
|
|
185
|
-
titleMachinesReport: 'Machines Report',
|
|
186
|
-
headerStartAddress: 'Start address',
|
|
164
|
+
titleTripReport: 'Reporte de viaje',
|
|
165
|
+
titleLocationReport: 'Rapport de localisation',
|
|
166
|
+
titleSpeedingReport: 'Rapport de survitesse',
|
|
167
|
+
titleZoneReport: 'Rapport de zones',
|
|
168
|
+
titleRefuelReport: 'Rapport de ravitaillement',
|
|
169
|
+
titleFuelConsumptionReport: 'Rapport de consommation de carburant',
|
|
170
|
+
titleFuelDropReport: 'Rapport de chute de carburant',
|
|
171
|
+
titleEventsReport: 'Rapport d\'événements',
|
|
172
|
+
titleActivityReport: 'Rapport d\'activité',
|
|
173
|
+
titleKmsReport: 'Rapport de km',
|
|
174
|
+
titleIdleReport: 'Rapport ralenti',
|
|
175
|
+
titleMachinesReport: 'Rapport sur les machines',
|
|
176
|
+
headerStartAddress: 'Adresse de départ',
|
|
187
177
|
headerDistance: 'Distance',
|
|
188
178
|
headerDrivingTime: 'Driving Time',
|
|
189
179
|
headerMaxSpeed: 'Max Speed',
|
|
@@ -203,7 +193,7 @@ module.exports = {
|
|
|
203
193
|
tripTime: 'Durée',
|
|
204
194
|
idleTime: 'Ralenti',
|
|
205
195
|
stopTime: 'Arrêt',
|
|
206
|
-
distance: 'Distance',
|
|
196
|
+
distance: 'Distance (Km)',
|
|
207
197
|
speed: 'Vitesse',
|
|
208
198
|
roadSpeedLimit: 'Limite de vitesse sur route',
|
|
209
199
|
avgSpeed: 'Vitesse moyenne',
|
|
@@ -219,8 +209,8 @@ module.exports = {
|
|
|
219
209
|
geofence: 'Geofence',
|
|
220
210
|
duration: 'Duration',
|
|
221
211
|
vehicle: 'Véhicule',
|
|
222
|
-
consumption: '
|
|
223
|
-
avg_consumption: 'Cons.
|
|
212
|
+
consumption: 'Cons. (L)',
|
|
213
|
+
avg_consumption: 'Cons. (L/100)',
|
|
224
214
|
odometer: 'Odomètre',
|
|
225
215
|
startOdometer: 'Début (Km)',
|
|
226
216
|
endOdometer: 'Fin (Km)',
|
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const jsPDF = require('jspdf')
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
convertMS, convertToLocaleString, convertToFeature, convertPositionToFeature, getTranslations, getLanguage,
|
|
4
|
+
checkGeocoding
|
|
5
|
+
} = require('./util/utils')
|
|
3
6
|
const { headerFromUser, AmiriRegular } = require('./util/pdfDocument')
|
|
4
7
|
require('jspdf-autotable')
|
|
5
8
|
const { getStyle } = require('./reportStyle')
|
|
@@ -97,7 +100,7 @@ async function createSpeedingReportByDevice (from, to, userData, traccarInstance
|
|
|
97
100
|
}
|
|
98
101
|
}))
|
|
99
102
|
}
|
|
100
|
-
|
|
103
|
+
checkGeocoding(allData)
|
|
101
104
|
return allData
|
|
102
105
|
}
|
|
103
106
|
|
package/src/util/utils.js
CHANGED