From 7145bd9fa229dc94460106b662bac56c08c1ddd3 Mon Sep 17 00:00:00 2001 From: SebClem Date: Mon, 4 Jul 2022 17:59:34 +0200 Subject: [PATCH] :hammer: Add home page --- src/components/Header/ServerListComponent.vue | 2 +- .../guild/Settings/SettingGroupComponent.vue | 4 +- .../Settings/fields/BoolFieldComponent.vue | 2 +- .../Settings/fields/SelectFieldComponent.vue | 3 +- .../guild/home/AudioPreviewComponent.vue | 12 +- src/plugins/vuetify.ts | 1 + src/views/HomeView.vue | 190 +++++++++++++++++- 7 files changed, 200 insertions(+), 14 deletions(-) diff --git a/src/components/Header/ServerListComponent.vue b/src/components/Header/ServerListComponent.vue index cd9987b..6ad41f2 100644 --- a/src/components/Header/ServerListComponent.vue +++ b/src/components/Header/ServerListComponent.vue @@ -59,7 +59,7 @@ const router = useRouter(); const mutualGuildsStore = useMutualGuildsStore(); const { guilds, loaded } = storeToRefs(mutualGuildsStore); onBeforeMount(async () => { - let inviteLink = await getInviteLink(); + const inviteLink = await getInviteLink(); inviteLinkStore.inviteLink = inviteLink.link; }); diff --git a/src/components/guild/Settings/SettingGroupComponent.vue b/src/components/guild/Settings/SettingGroupComponent.vue index e1b138d..b604479 100644 --- a/src/components/guild/Settings/SettingGroupComponent.vue +++ b/src/components/guild/Settings/SettingGroupComponent.vue @@ -2,7 +2,7 @@
{{ props.descriptor.name }} - + @@ -33,7 +33,7 @@ - +
diff --git a/src/components/guild/Settings/fields/BoolFieldComponent.vue b/src/components/guild/Settings/fields/BoolFieldComponent.vue index 0d5505d..682a0c4 100644 --- a/src/components/guild/Settings/fields/BoolFieldComponent.vue +++ b/src/components/guild/Settings/fields/BoolFieldComponent.vue @@ -20,7 +20,7 @@ diff --git a/src/components/guild/home/AudioPreviewComponent.vue b/src/components/guild/home/AudioPreviewComponent.vue index 41718ff..22f376d 100644 --- a/src/components/guild/home/AudioPreviewComponent.vue +++ b/src/components/guild/home/AudioPreviewComponent.vue @@ -159,8 +159,13 @@ v-bind="props" > - - + + - + diff --git a/src/plugins/vuetify.ts b/src/plugins/vuetify.ts index 0e569c9..7ffe8a2 100644 --- a/src/plugins/vuetify.ts +++ b/src/plugins/vuetify.ts @@ -9,6 +9,7 @@ const darkTheme = { dark: true, colors: { primary: "#FFC107", + secondary: "#BDBDBD", }, }; diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 043cbf9..2fb44ee 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,25 +1,199 @@