aboutsummaryrefslogtreecommitdiff
path: root/src/site/pages/dashboard
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2021-01-07 23:55:37 +0200
committerZephyrrus <[email protected]>2021-01-07 23:55:37 +0200
commit925080f6a08a1f1515143db1bd6aef8109f5fb67 (patch)
tree298476e0f2aea59422bcc46fb1e1ce8bb4f19c18 /src/site/pages/dashboard
parentchore: revert nuxt update, it breaks SSR in development mode, not worth it. (diff)
downloadhost.fuwn.me-925080f6a08a1f1515143db1bd6aef8109f5fb67.tar.xz
host.fuwn.me-925080f6a08a1f1515143db1bd6aef8109f5fb67.zip
chore: refactor stats generator to use an enum for types
fix: saved data not being converted to JSON automatically when using SQLite (and possibly MSSQL) feat: display when a stat was generated in the section's header fix: not being able to click through the footer (sorry IE11 users, you still won't be able to click through it) fix: add is-mobile to columns so they don't stack on top of each other feat: add text next to the NSFW toggle and make it look like the elements around it (begone round iOS edges)
Diffstat (limited to 'src/site/pages/dashboard')
-rw-r--r--src/site/pages/dashboard/admin/statistics.vue7
-rw-r--r--src/site/pages/dashboard/albums/index.vue2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/site/pages/dashboard/admin/statistics.vue b/src/site/pages/dashboard/admin/statistics.vue
index 4d601cf..ecee102 100644
--- a/src/site/pages/dashboard/admin/statistics.vue
+++ b/src/site/pages/dashboard/admin/statistics.vue
@@ -14,8 +14,11 @@
<div :key="category"
class="stats-container">
<h2 class="title">
- {{ category }}
+ {{ category }} <span v-if="stats[category].meta" class="is-size-7 is-pulled-right is-family-monospace has-text-grey-light">
+ generated on {{ stats[category].meta.generatedOn }}
+ </span>
</h2>
+
<template v-for="item in Object.keys(stats[category])">
<!-- If it's plain text or a number, just print it -->
<template v-if="typeof stats[category][item] === 'string' || typeof stats[category][item] === 'number'">
@@ -25,7 +28,7 @@
</template>
<!-- If it's an object then we need to do some magic -->
- <template v-else-if="typeof stats[category][item] === 'object'">
+ <template v-else-if="typeof stats[category][item] === 'object' && stats[category][item].type !== 'hidden'">
<byteUsage v-if="stats[category][item].type === 'byteUsage'"
:key="item"
:title="item"
diff --git a/src/site/pages/dashboard/albums/index.vue b/src/site/pages/dashboard/albums/index.vue
index e3ccc08..2ebfb3f 100644
--- a/src/site/pages/dashboard/albums/index.vue
+++ b/src/site/pages/dashboard/albums/index.vue
@@ -105,7 +105,7 @@ export default {
div.search-container {
padding: 1rem 2rem;
- background-color: $base-2;
+ // background-color: $base-2;
}
div.column > h2.subtitle { padding-top: 1px; }