From 27c056cbbf6e85a033e85adbafd95a179a9db755 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 9 Oct 2021 12:33:08 +0900 Subject: tweak ui --- src/client/pages/instance/ads.vue | 89 +++++++++++++++++------------ src/client/pages/instance/announcements.vue | 52 +++++++++++------ src/client/pages/instance/emojis.vue | 30 +++++++--- src/client/pages/instance/index.vue | 6 +- src/client/pages/instance/users.vue | 29 ++++++---- 5 files changed, 127 insertions(+), 79 deletions(-) (limited to 'src/client/pages/instance') diff --git a/src/client/pages/instance/ads.vue b/src/client/pages/instance/ads.vue index c54c1c0280..e776f99a4c 100644 --- a/src/client/pages/instance/ads.vue +++ b/src/client/pages/instance/ads.vue @@ -1,43 +1,45 @@ @@ -67,6 +69,17 @@ export default defineComponent({ icon: 'fas fa-audio-description', bg: 'var(--bg)', }, + header: { + title: this.$ts.ads, + icon: 'fas fa-audio-description', + bg: 'var(--bg)', + actions: [{ + asFullButton: true, + icon: 'fas fa-plus', + text: this.$ts.add, + handler: this.add, + }], + }, ads: [], } }, diff --git a/src/client/pages/instance/announcements.vue b/src/client/pages/instance/announcements.vue index e4f7334c05..78637c095a 100644 --- a/src/client/pages/instance/announcements.vue +++ b/src/client/pages/instance/announcements.vue @@ -1,24 +1,27 @@ @@ -46,6 +49,17 @@ export default defineComponent({ icon: 'fas fa-broadcast-tower', bg: 'var(--bg)', }, + header: { + title: this.$ts.announcements, + icon: 'fas fa-broadcast-tower', + bg: 'var(--bg)', + actions: [{ + asFullButton: true, + icon: 'fas fa-plus', + text: this.$ts.add, + handler: this.add, + }], + }, announcements: [], } }, diff --git a/src/client/pages/instance/emojis.vue b/src/client/pages/instance/emojis.vue index 219955dc45..4cd34b046d 100644 --- a/src/client/pages/instance/emojis.vue +++ b/src/client/pages/instance/emojis.vue @@ -1,12 +1,8 @@