From 354ae5a95912990311cb5a8cdfdb710c0b625911 Mon Sep 17 00:00:00 2001
From: dragongoose <19649813+dragongoose@users.noreply.github.com>
Date: Fri, 31 Mar 2023 07:50:46 -0400
Subject: [PATCH] Add following page and chat badges
---
src/components/{Badge.vue => ChatBadge.vue} | 14 ++--
src/components/FollowButton.vue | 62 +++++++++++++++++
src/components/StreamPreview.vue | 76 +++++++++++++++++++++
src/components/TwitchChat.vue | 6 +-
src/views/CategoryView.vue | 27 ++------
src/views/HomepageView.vue | 24 ++++++-
src/views/UserView.vue | 10 ++-
7 files changed, 180 insertions(+), 39 deletions(-)
rename src/components/{Badge.vue => ChatBadge.vue} (60%)
create mode 100644 src/components/FollowButton.vue
create mode 100644 src/components/StreamPreview.vue
diff --git a/src/components/Badge.vue b/src/components/ChatBadge.vue
similarity index 60%
rename from src/components/Badge.vue
rename to src/components/ChatBadge.vue
index 9f64526..8dd641a 100644
--- a/src/components/Badge.vue
+++ b/src/components/ChatBadge.vue
@@ -1,16 +1,16 @@
-
+
diff --git a/src/components/FollowButton.vue b/src/components/FollowButton.vue
new file mode 100644
index 0000000..66b44b5
--- /dev/null
+++ b/src/components/FollowButton.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
diff --git a/src/components/StreamPreview.vue b/src/components/StreamPreview.vue
new file mode 100644
index 0000000..f469e2f
--- /dev/null
+++ b/src/components/StreamPreview.vue
@@ -0,0 +1,76 @@
+
+
+
+ {{ streamData.title }} {{ streamData.streamer.name }}
+
{{ stream.title }}
-{{ stream.streamer.name }}
-
-
Streamers you follow
+Sort through popular categories
diff --git a/src/views/UserView.vue b/src/views/UserView.vue index cf53907..5d4ae9b 100644 --- a/src/views/UserView.vue +++ b/src/views/UserView.vue @@ -4,6 +4,7 @@ import { useRoute } from 'vue-router' import VideoPlayer from '@/components/VideoPlayer.vue' import TwitchChat from '@/components/TwitchChat.vue' import ErrorMessage from '@/components/ErrorMessage.vue' +import FollowButton from '@/components/FollowButton.vue' export default { async setup() { @@ -56,7 +57,8 @@ export default { components: { VideoPlayer, TwitchChat, - ErrorMessage + ErrorMessage, + FollowButton }, methods: { truncate(value: string, length: number) { @@ -140,11 +142,7 @@ export default {{{ data.followersAbbv }} Followers