Skip to content

Commit

Permalink
refactor: 💡 add info about tokens to html report
Browse files Browse the repository at this point in the history
  • Loading branch information
kucherenko committed Aug 30, 2020
1 parent cff2488 commit 43b65ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/html-reporter/mockups/src/components/FormatsTable.vue
Expand Up @@ -37,6 +37,10 @@
class="px-6 bg-gray-100 text-gray-600 align-middle border border-solid border-gray-200 py-3 text-xs uppercase border-l-0 border-r-0 whitespace-no-wrap font-semibold text-left">
Duplicated lines
</th>
<th
class="px-6 bg-gray-100 text-gray-600 align-middle border border-solid border-gray-200 py-3 text-xs uppercase border-l-0 border-r-0 whitespace-no-wrap font-semibold text-left">
Duplicated tokens
</th>
</tr>
</thead>
<tbody>
Expand All @@ -60,6 +64,12 @@
{{ statistics.formats[format].total.duplicatedLines }}
(<b>{{ statistics.formats[format].total.percentage }}%</b>)
</td>
<td
class="border-t-0 font-semibold px-6 align-middle border-l-0 border-r-0 text-xs whitespace-no-wrap p-4 text-left">
<!-- <i class="fas fa-arrow-up text-green-500 mr-4"></i>-->
{{ statistics.formats[format].total.duplicatedTokens }}
(<b>{{ statistics.formats[format].total.percentageTokens }}%</b>)
</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 43b65ea

Please sign in to comment.