mtinfo/app/js/components/stats.js
2021-02-11 11:25:18 +01:00

28 lines
566 B
JavaScript

Vue.component("stats", {
template: /*html*/`
<table class="table table-striped table-condensed">
<tr>
<td>Number of items</td>
<td>{{ Object.keys(mtinfo.items).length }}</td>
</tr>
<tr>
<td>Number of ABM's</td>
<td>{{ mtinfo.abm.length }}</td>
</tr>
<tr>
<td>Number of LBM's</td>
<td>{{ mtinfo.lbm.length }}</td>
</tr>
<tr>
<td>Number of textures</td>
<td>{{ mtinfo.textures.count }}</td>
</tr>
<tr>
<td>Size of textures</td>
<td>{{ mtinfo.textures.size }} bytes</td>
</tr>
</table>
`
});