aboutsummaryrefslogtreecommitdiff
path: root/src/site/components
diff options
context:
space:
mode:
authorKana <[email protected]>2021-01-08 19:48:25 +0900
committerGitHub <[email protected]>2021-01-08 19:48:25 +0900
commit3cfb2721ce64ab94fdbc9c97b54602acc3c654be (patch)
treeb427becf78c51081e58f1b2af98b2662f7626a39 /src/site/components
parentMerge pull request #248 from WeebDev/feature/stats-dashboard (diff)
parentfix: pg driver doesn't return anything without .returning() (diff)
downloadhost.fuwn.me-3cfb2721ce64ab94fdbc9c97b54602acc3c654be.tar.xz
host.fuwn.me-3cfb2721ce64ab94fdbc9c97b54602acc3c654be.zip
Merge pull request #250 from Zephyrrus/feature/system_status_page
Feature/system status page
Diffstat (limited to 'src/site/components')
-rw-r--r--src/site/components/album/AlbumDetails.vue8
-rw-r--r--src/site/components/footer/Footer.vue6
-rw-r--r--src/site/components/sidebar/Sidebar.vue2
-rw-r--r--src/site/components/statistics/byte.vue2
-rw-r--r--src/site/components/statistics/byteUsage.vue2
-rw-r--r--src/site/components/statistics/detailed.vue17
-rw-r--r--src/site/components/statistics/generic.vue2
-rw-r--r--src/site/components/statistics/time.vue2
8 files changed, 33 insertions, 8 deletions
diff --git a/src/site/components/album/AlbumDetails.vue b/src/site/components/album/AlbumDetails.vue
index 81819b2..da472b0 100644
--- a/src/site/components/album/AlbumDetails.vue
+++ b/src/site/components/album/AlbumDetails.vue
@@ -101,7 +101,13 @@
<div class="level-item">
<b-switch
:value="nsfw"
- @input="toggleNsfw()" />
+ :rounded="false"
+ type="is-warning"
+ class="has-text-light"
+ left-label
+ @input="toggleNsfw()">
+ NSFW
+ </b-switch>
</div>
<div class="level-item">
<button
diff --git a/src/site/components/footer/Footer.vue b/src/site/components/footer/Footer.vue
index 96774e7..0c77603 100644
--- a/src/site/components/footer/Footer.vue
+++ b/src/site/components/footer/Footer.vue
@@ -72,6 +72,9 @@ export default {
<style lang="scss" scoped>
@import '~/assets/styles/_colors.scss';
footer {
+ pointer-events: none;
+ touch-action: none;
+
@media screen and (min-width: 1025px) {
position: fixed;
bottom: 0;
@@ -84,6 +87,9 @@ export default {
.container {
.column {
+ pointer-events: auto;
+ touch-action: auto;
+
text-align: center;
@media screen and (min-width: 1025px) {
margin-right: 2rem;
diff --git a/src/site/components/sidebar/Sidebar.vue b/src/site/components/sidebar/Sidebar.vue
index 98c3c81..a021226 100644
--- a/src/site/components/sidebar/Sidebar.vue
+++ b/src/site/components/sidebar/Sidebar.vue
@@ -29,7 +29,7 @@
</template>
<b-menu-item icon="account" label="Users" tag="nuxt-link" to="/dashboard/admin/users" exact />
<b-menu-item icon="cog-outline" label="Settings" tag="nuxt-link" to="/dashboard/admin/settings" exact />
- <!--<b-menu-item icon="chart-line" label="Statistics" tag="nuxt-link" to="/dashboard/admin/statistics" exact />-->
+ <b-menu-item icon="chart-line" label="Statistics" tag="nuxt-link" to="/dashboard/admin/statistics" exact />
</b-menu-item>
<b-menu-item
class="item"
diff --git a/src/site/components/statistics/byte.vue b/src/site/components/statistics/byte.vue
index 05852cd..16f4427 100644
--- a/src/site/components/statistics/byte.vue
+++ b/src/site/components/statistics/byte.vue
@@ -1,6 +1,6 @@
<template>
<div>
- <div class="columns">
+ <div class="columns is-mobile">
<div class="column is-2">
{{ title }}
</div>
diff --git a/src/site/components/statistics/byteUsage.vue b/src/site/components/statistics/byteUsage.vue
index 740feff..9062e5e 100644
--- a/src/site/components/statistics/byteUsage.vue
+++ b/src/site/components/statistics/byteUsage.vue
@@ -1,6 +1,6 @@
<template>
<div>
- <div class="columns">
+ <div class="columns is-mobile">
<div class="column is-2">
{{ title }}
</div>
diff --git a/src/site/components/statistics/detailed.vue b/src/site/components/statistics/detailed.vue
index 8a0722e..0d93e9a 100644
--- a/src/site/components/statistics/detailed.vue
+++ b/src/site/components/statistics/detailed.vue
@@ -1,11 +1,11 @@
<template>
<div>
- <div class="columns">
+ <div class="columns is-mobile">
<div class="column is-2">
{{ title }}
</div>
<div class="column">
- <b-table :data="data || []" :mobile-cards="true">
+ <b-table v-if="data.length" :data="data || []" :mobile-cards="true" narrowed class="details">
<b-table-column v-slot="props" field="type" label="Type">
{{ props.row.key }}
</b-table-column>
@@ -13,6 +13,9 @@
{{ props.row.value }}
</b-table-column>
</b-table>
+ <template v-else>
+ -
+ </template>
</div>
</div>
</div>
@@ -31,3 +34,13 @@ export default {
}
};
</script>
+<style lang="scss" scoped>
+ .details ::v-deep .table-wrapper {
+ box-shadow: none;
+
+ .table {
+ border-radius: unset;
+ background: #2A2E3C;
+ }
+ }
+</style>
diff --git a/src/site/components/statistics/generic.vue b/src/site/components/statistics/generic.vue
index 704be7a..aa0f7e9 100644
--- a/src/site/components/statistics/generic.vue
+++ b/src/site/components/statistics/generic.vue
@@ -1,6 +1,6 @@
<template>
<div>
- <div class="columns">
+ <div class="columns is-mobile">
<div class="column is-2">
{{ title }}
</div>
diff --git a/src/site/components/statistics/time.vue b/src/site/components/statistics/time.vue
index ff1bb8d..54174da 100644
--- a/src/site/components/statistics/time.vue
+++ b/src/site/components/statistics/time.vue
@@ -1,6 +1,6 @@
<template>
<div>
- <div class="columns">
+ <div class="columns is-mobile">
<div class="column is-2">
{{ title }}
</div>