aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/benchmark-builder/benchmark-builder.vue24
-rw-r--r--src/tools/crontab-generator/crontab-generator.vue30
2 files changed, 5 insertions, 49 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
diff --git a/src/tools/crontab-generator/crontab-generator.vue b/src/tools/crontab-generator/crontab-generator.vue
index 28683ce..97503e7 100644
--- a/src/tools/crontab-generator/crontab-generator.vue
+++ b/src/tools/crontab-generator/crontab-generator.vue
@@ -167,34 +167,8 @@ const cronValidationRules = [
</div>
</c-card>
</div>
- <n-table v-else size="small">
- <thead>
- <tr>
- <th class="text-left" scope="col">
- Symbol
- </th>
- <th class="text-left" scope="col">
- Meaning
- </th>
- <th class="text-left" scope="col">
- Example
- </th>
- <th class="text-left" scope="col">
- Equivalent
- </th>
- </tr>
- </thead>
- <tbody>
- <tr v-for="{ symbol, meaning, example, equivalent } in helpers" :key="symbol">
- <td>{{ symbol }}</td>
- <td>{{ meaning }}</td>
- <td>
- <code>{{ example }}</code>
- </td>
- <td>{{ equivalent }}</td>
- </tr>
- </tbody>
- </n-table>
+
+ <c-table v-else :data="helpers" />
</c-card>
</template>