fleetmap-reports 2.0.167 → 2.0.168
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/enGB.js +1 -0
- package/lang/esCL.js +1 -0
- package/lang/frFR.json +1 -0
- package/lang/ptBR.js +1 -0
- package/lang/ptPT.js +1 -0
- package/package.json +1 -1
- package/src/templates/SensorReportTemplate.mjml +58 -0
package/lang/enGB.js
CHANGED
package/lang/esCL.js
CHANGED
|
@@ -183,6 +183,7 @@ module.exports = {
|
|
|
183
183
|
titleIdleReport: 'Informe de Ralenti',
|
|
184
184
|
titleMachinesReport: 'Informe de Maquinas',
|
|
185
185
|
titleStopReport: 'Informe de Paradas',
|
|
186
|
+
titleSensorReport: 'Informe de Sensores',
|
|
186
187
|
from: 'De',
|
|
187
188
|
to: 'a',
|
|
188
189
|
headerStartAddress: 'Lugar de início',
|
package/lang/frFR.json
CHANGED
|
@@ -195,6 +195,7 @@
|
|
|
195
195
|
"titleStopReport": "Arrêter le rapport",
|
|
196
196
|
"titleDelayedStartReport": "Rapport de Departs Tardifs",
|
|
197
197
|
"titleDriverRankingReport": "Rapport d'conducteur",
|
|
198
|
+
"titleSensorReport": "Sensor Report",
|
|
198
199
|
"from": "Dans",
|
|
199
200
|
"to": "Le",
|
|
200
201
|
"headerStartAddress": "lieu de départ",
|
package/lang/ptBR.js
CHANGED
|
@@ -185,6 +185,7 @@ module.exports = {
|
|
|
185
185
|
titleIdleReport: 'Relatórios de Ralenti',
|
|
186
186
|
titleMachinesReport: 'Relatório de Máquinas',
|
|
187
187
|
titleStopReport: 'Relatório de Paragens',
|
|
188
|
+
titleSensorReport: 'Relatório de Sensores',
|
|
188
189
|
from: 'De',
|
|
189
190
|
to: 'a',
|
|
190
191
|
headerStartAddress: 'Local de início',
|
package/lang/ptPT.js
CHANGED
|
@@ -191,6 +191,7 @@ module.exports = {
|
|
|
191
191
|
titleIdleReport: 'Relatórios de Ralenti',
|
|
192
192
|
titleMachinesReport: 'Relatório de Máquinas',
|
|
193
193
|
titleStopReport: 'Relatório de Paragens',
|
|
194
|
+
titleSensorReport: 'Relatório de Sensores',
|
|
194
195
|
from: 'De',
|
|
195
196
|
to: 'a',
|
|
196
197
|
headerStartAddress: 'Local de início',
|
package/package.json
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<mjml>
|
|
2
|
+
<mj-head>
|
|
3
|
+
</mj-head>
|
|
4
|
+
<mj-body background-color="#fff" font-size="13px" padding-right="0px" padding-left="0px">
|
|
5
|
+
<mj-section padding="10px 5px 0px 5px" >
|
|
6
|
+
<mj-column width="60%" style="float: left" text-align="left">
|
|
7
|
+
<mj-text>
|
|
8
|
+
<span style="font-size:18px;font-weight: bold">{{ translations.titleSensorReport }}</span>
|
|
9
|
+
</mj-text>
|
|
10
|
+
</mj-column>
|
|
11
|
+
<mj-column width="40%">
|
|
12
|
+
<mj-image width="120px" :src="url + '/' + logo"></mj-image>
|
|
13
|
+
</mj-column>
|
|
14
|
+
</mj-section>
|
|
15
|
+
<mj-section v-for="(device, index) in reportData.devices" v-bind:key="device.deviceId" >
|
|
16
|
+
<mj-column>
|
|
17
|
+
<mj-wrapper border="1px solid #000000" padding="20px 10px">
|
|
18
|
+
<mj-table>
|
|
19
|
+
<tr style="font-size:12px">
|
|
20
|
+
<th colspan="4" style="text-align: left">
|
|
21
|
+
<span style="font-weight: bold;font-size:12px">{{device.device.name}}{{device.device.attributes.license_plate ? ', ' +device.device.attributes.license_plate : ''}}{{device.device.model ? ', ' + device.device.model : ''}}</span>
|
|
22
|
+
<span style="float:right; font-weight: bold;font-size:11px">{{ device.device.groupName ? translations.group + ': ' + device.device.groupName : ''}}</span><br/>
|
|
23
|
+
<span style="font-weight: bold;font-size:11px">{{ translations.from }} {{ device.from.toLocaleString(user.attributes.lang, { timeZone: user.attributes.timezone }) }} {{ translations.to }} {{ device.to.toLocaleString(user.attributes.lang, { timeZone: user.attributes.timezone }) }}</span>
|
|
24
|
+
</th>
|
|
25
|
+
</tr>
|
|
26
|
+
</mj-table>
|
|
27
|
+
<mj-table>
|
|
28
|
+
<tr :style="'font-size:10px;background-color:'+color+';color:white'">
|
|
29
|
+
<th>Sensores</th>
|
|
30
|
+
<th>{{ translations.start }}</th>
|
|
31
|
+
<th>{{ translations.end }}</th>
|
|
32
|
+
<th>Estado</th>
|
|
33
|
+
<th>{{ translations.duration }}</th>
|
|
34
|
+
</tr>
|
|
35
|
+
<mj-section v-for="(row, index) in device.rows" v-bind:key="trip.deviceId">
|
|
36
|
+
<tr :style="index%2 ? 'text-align: center;background-color:#E3E3E3' : 'text-align: center;background-color:#FFFFFF'" >
|
|
37
|
+
<td style="font-size:10px">{{row.name}}</td>
|
|
38
|
+
<td style="font-size:10px">{{new Date(row.startTime).toLocaleString(user.attributes.lang, { timeZone: user.attributes.timezone, hour12:false })}}</td>
|
|
39
|
+
<td style="font-size:10px">{{new Date(row.endTime).toLocaleString(user.attributes.lang, { timeZone: user.attributes.timezone, hour12:false })}}</td>
|
|
40
|
+
<td style="font-size:10px">{{convertMS(row.duration)}}</td>
|
|
41
|
+
</tr>
|
|
42
|
+
<tr :style="index%2 ? 'vertical-align: top;background-color:#E3E3E3' : 'vertical-align: top;background-color:#FFFFFF'" >
|
|
43
|
+
<td style="font-size:9px;padding-left: 5px" :colspan="reportData.xpert === true ? 12 : 10">{{ translations.endAddress }}: {{row.endAddress}}</td>
|
|
44
|
+
</tr>
|
|
45
|
+
</mj-section>
|
|
46
|
+
</mj-table>
|
|
47
|
+
</mj-wrapper>
|
|
48
|
+
</mj-column>
|
|
49
|
+
</mj-section>
|
|
50
|
+
<mj-section>
|
|
51
|
+
<mj-column width="100%">
|
|
52
|
+
<mj-text align="left" font-family="Ubuntu, Helvetica, Arial, sans-serif">
|
|
53
|
+
{{ translations.unsubscribeTripReport.replace('%url%', url) }}
|
|
54
|
+
</mj-text>
|
|
55
|
+
</mj-column>
|
|
56
|
+
</mj-section>
|
|
57
|
+
</mj-body>
|
|
58
|
+
</mjml>
|