diff options
| author | Zephyrrus <[email protected]> | 2021-01-07 21:39:47 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2021-01-07 21:39:47 +0200 |
| commit | a838d024a7b74e69b7fb65b9c1db4a3a900d160e (patch) | |
| tree | 87a7ea1801fea5c2003134f17076a105806f7a1f /src/site/components/statistics/detailed.vue | |
| parent | feat: change mutation timestamp on every database mutation (diff) | |
| parent | fix: indentation (diff) | |
| download | host.fuwn.me-a838d024a7b74e69b7fb65b9c1db4a3a900d160e.tar.xz host.fuwn.me-a838d024a7b74e69b7fb65b9c1db4a3a900d160e.zip | |
Merge branch 'feature/stats-dashboard' into feature/system_status_page
Diffstat (limited to 'src/site/components/statistics/detailed.vue')
| -rw-r--r-- | src/site/components/statistics/detailed.vue | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/site/components/statistics/detailed.vue b/src/site/components/statistics/detailed.vue new file mode 100644 index 0000000..8a0722e --- /dev/null +++ b/src/site/components/statistics/detailed.vue @@ -0,0 +1,33 @@ +<template> + <div> + <div class="columns"> + <div class="column is-2"> + {{ title }} + </div> + <div class="column"> + <b-table :data="data || []" :mobile-cards="true"> + <b-table-column v-slot="props" field="type" label="Type"> + {{ props.row.key }} + </b-table-column> + <b-table-column v-slot="props" field="count" label="Count"> + {{ props.row.value }} + </b-table-column> + </b-table> + </div> + </div> + </div> +</template> +<script> +export default { + props: { + title: { + 'type': String, + 'default': null + }, + data: { + 'type': Array, + 'default': () => [] + } + } +}; +</script> |