aboutsummaryrefslogtreecommitdiff
path: root/src/tools/benchmark-builder/benchmark-builder.vue
diff options
context:
space:
mode:
authorGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-10-15 00:45:14 +0200
committerGravatar GitHub <noreply@github.com> 2023-10-14 22:45:14 +0000
commitee4c853b9ff28f6678cc5980544ff956f3c2b106 (patch)
treece7dbcb16548913cf77b5958915dc10eaa279cbc /src/tools/benchmark-builder/benchmark-builder.vue
parentcbf58fdd28fc88cde8179eec090a403a0f2a409f (diff)
downloadit-tools-ee4c853b9ff28f6678cc5980544ff956f3c2b106.tar.gz
it-tools-ee4c853b9ff28f6678cc5980544ff956f3c2b106.tar.zst
it-tools-ee4c853b9ff28f6678cc5980544ff956f3c2b106.zip
refactor(ui): new c-table ui component (#665)
Diffstat (limited to 'src/tools/benchmark-builder/benchmark-builder.vue')
-rw-r--r--src/tools/benchmark-builder/benchmark-builder.vue24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/tools/benchmark-builder/benchmark-builder.vue b/src/tools/benchmark-builder/benchmark-builder.vue
index 7922791..9391142 100644
--- a/src/tools/benchmark-builder/benchmark-builder.vue
+++ b/src/tools/benchmark-builder/benchmark-builder.vue
@@ -51,11 +51,11 @@ const results = computed(() => {
const { copy } = useCopy({ createToast: false });
const header = {
+ position: 'Position',
title: 'Suite',
size: 'Samples',
mean: 'Mean',
variance: 'Variance',
- position: 'Position',
};
function copyAsMarkdown() {
@@ -131,26 +131,8 @@ function copyAsBulletList() {
</c-button>
</div>
- <n-table>
- <thead>
- <tr>
- <th>{{ header.position }}</th>
- <th>{{ header.title }}</th>
- <th>{{ header.size }}</th>
- <th>{{ header.mean }}</th>
- <th>{{ header.variance }}</th>
- </tr>
- </thead>
- <tbody>
- <tr v-for="{ title, size, mean, variance, position } of results" :key="title">
- <td>{{ position }}</td>
- <td>{{ title }}</td>
- <td>{{ size }}</td>
- <td>{{ mean }}</td>
- <td>{{ variance }}</td>
- </tr>
- </tbody>
- </n-table>
+ <c-table :data="results" :headers="header" />
+
<div mt-5 flex justify-center gap-3>
<c-button @click="copyAsMarkdown()">
Copy as markdown table