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/byte.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/byte.vue')
| -rw-r--r-- | src/site/components/statistics/byte.vue | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/site/components/statistics/byte.vue b/src/site/components/statistics/byte.vue new file mode 100644 index 0000000..05852cd --- /dev/null +++ b/src/site/components/statistics/byte.vue @@ -0,0 +1,26 @@ +<template> + <div> + <div class="columns"> + <div class="column is-2"> + {{ title }} + </div> + <div class="column"> + {{ (value / 1024 / 1024 / 1024).toFixed(2) }} GiB + </div> + </div> + </div> +</template> +<script> +export default { + props: { + title: { + 'type': String, + 'default': null + }, + value: { + 'type': Number, + 'default': null + } + } +}; +</script> |