chor: refactor table field separator

This commit is contained in:
dancingCycle 2024-02-15 13:54:04 +01:00
parent 93cdd98500
commit 4eb08a8abe
8 changed files with 50 additions and 52 deletions

View File

@ -10,14 +10,14 @@ export default function AgencyPerDayTableEntries ({array}) {
<tr
key={index}
>
<td>{item.agency_name}</td>
<td>{item.agency_id}</td>
<td>{item.route_id}</td>
<td>{item.route_short_name}</td>
<td>{item.trip_id}</td>
<td>{item.rt_part}</td>
<td>{item.trip_id === 0 ? 0 : ((item.rt_part / item.trip_id) * 100).toFixed(2)}</td>
<td>{item.timestamp_pgsql}</td>
<td>{item.agency_name}&nbsp;|</td>
<td>{item.agency_id}&nbsp;|</td>
<td>{item.route_id}&nbsp;|</td>
<td>{item.route_short_name}&nbsp;|</td>
<td>{item.trip_id}&nbsp;|</td>
<td>{item.rt_part}&nbsp;|</td>
<td>{item.trip_id === 0 ? 0 : ((item.rt_part / item.trip_id) * 100).toFixed(2)}&nbsp;|</td>
<td>{item.timestamp_pgsql}&nbsp;|</td>
</tr>
);
});

View File

@ -14,14 +14,14 @@ export default function AgencyPerDayTable ({array, title, date}){
<table>
<thead>
<tr>
<th>agency_name</th>
<th>agency_id</th>
<th>route_id</th>
<th>route_short_name</th>
<th>ABS trip count</th>
<th>RT trip count</th>
<th>RT trip part</th>
<th>latest RT timestamp</th>
<th>agency_name&nbsp;|</th>
<th>agency_id&nbsp;|</th>
<th>route_id&nbsp;|</th>
<th>route_short_name&nbsp;|</th>
<th>abs. trip count&nbsp;|</th>
<th>RT TU count&nbsp;|</th>
<th>RT TU %&nbsp;|</th>
<th>latest RT timestamp&nbsp;|</th>
</tr>
</thead>
<tbody>

View File

@ -10,11 +10,11 @@ export default function GroupAgencyPerDayTableEntries ({array}) {
<tr
key={index}
>
<td>{item.agency_name}</td>
<td>{item.agency_id}</td>
<td>{item.rt_part}</td>
<td>{item.agency_id === 0 ? 0 : ((item.rt_part / item.agency_id) * 100).toFixed(2)}</td>
<td>{item.timestamp_pgsql}</td>
<td>{item.agency_name}&nbsp;|</td>
<td>{item.agency_id}&nbsp;|</td>
<td>{item.rt_part}&nbsp;|</td>
<td>{item.agency_id === 0 ? 0 : ((item.rt_part / item.agency_id) * 100).toFixed(2)}&nbsp;|</td>
<td>{item.timestamp_pgsql}&nbsp;|</td>
</tr>
);
});

View File

@ -16,11 +16,11 @@ export default function GroupAgencyPerDayTable ({array, title, date}){
<table>
<thead>
<tr>
<th>agency_name</th>
<th>ABS trip count</th>
<th>RT trip count</th>
<th>RT trip part</th>
<th>latest RT timestamp</th>
<th>agency_name&nbsp;|</th>
<th>abs. trip count&nbsp;|</th>
<th>RT TU count&nbsp;|</th>
<th>RT TU %&nbsp;|</th>
<th>latest RT timestamp&nbsp;|</th>
</tr>
</thead>
<tbody>

View File

@ -10,10 +10,10 @@ export default function PerDayTableEntries ({array}) {
<tr
key={index}
>
<td>{item.count}</td>
<td>{item.rt_part}</td>
<td>{item.count === 0 ? 0 : ((item.rt_part / item.count) * 100).toFixed(2)}</td>
<td>{item.timestamp_pgsql}</td>
<td>{item.count}&nbsp;|</td>
<td>{item.rt_part}&nbsp;|</td>
<td>{item.count === 0 ? 0 : ((item.rt_part / item.count) * 100).toFixed(2)}&nbsp;|</td>
<td>{item.timestamp_pgsql}&nbsp;|</td>
</tr>
);
});

View File

@ -14,10 +14,10 @@ export default function PerDayTable ({array, title, date}){
<table>
<thead>
<tr>
<th>ABS trip count</th>
<th>RT trip count</th>
<th>RT trip part</th>
<th>latest RT timestamp</th>
<th>abs. trip count&nbsp;|</th>
<th>RT TU count&nbsp;|</th>
<th>RT TU %&nbsp;|</th>
<th>latest RT timestamp&nbsp;|</th>
</tr>
</thead>
<tbody>

View File

@ -11,15 +11,14 @@ export default function TripUpdatesRouteDayTableEntries ({array}) {
<tr
key={index}
>
<td>{item.agency_name}</td>
<td>{item.agency_id}</td>
<td>{item.route_id}</td>
<td>{item.route_short_name}</td>
<td>{item.service_id}</td>
<td>{item.trip_id}</td>
<td>{item.trip_short_name}</td>
<td>{item.trip_headsign}</td>
<td>{item.timestamp_pgsql}</td>
<td>{item.agency_name}&nbsp;|</td>
<td>{item.agency_id}&nbsp;|</td>
<td>{item.route_id}&nbsp;|</td>
<td>{item.route_short_name}&nbsp;|</td>
<td>{item.trip_id}&nbsp;|</td>
<td>{item.trip_short_name}&nbsp;|</td>
<td>{item.trip_headsign}&nbsp;|</td>
<td>{item.timestamp_pgsql}&nbsp;|</td>
</tr>
);
});

View File

@ -14,15 +14,14 @@ export default function TripUpdatesRouteDayTable ({array, title, date}){
<table>
<thead>
<tr>
<th>agency_name</th>
<th>agency_id</th>
<th>route_id</th>
<th>route_short_name</th>
<th>service_id</th>
<th>trip_id</th>
<th>trip_short_name</th>
<th>trip_headsign</th>
<th>timestamp_pgsql</th>
<th>agency_name&nbsp;|</th>
<th>agency_id&nbsp;|</th>
<th>route_id&nbsp;|</th>
<th>route_short_name&nbsp;|</th>
<th>trip_id&nbsp;|</th>
<th>trip_short_name&nbsp;|</th>
<th>trip_headsign&nbsp;|</th>
<th>timestamp_pgsql&nbsp;|</th>
</tr>
</thead>
<tbody>