From 0facf85528f6043bef8cf9e8494a6d831f9d49a8 Mon Sep 17 00:00:00 2001 From: dragongoose <19649813+dragongoose@users.noreply.github.com> Date: Fri, 17 Mar 2023 22:57:54 -0400 Subject: [PATCH] Move chat to component --- frontend/src/components/TwitchChat.vue | 16 ++++++++++++++++ frontend/src/views/UserView.vue | 16 +++++----------- 2 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 frontend/src/components/TwitchChat.vue diff --git a/frontend/src/components/TwitchChat.vue b/frontend/src/components/TwitchChat.vue new file mode 100644 index 0000000..99bbf39 --- /dev/null +++ b/frontend/src/components/TwitchChat.vue @@ -0,0 +1,16 @@ + + \ No newline at end of file diff --git a/frontend/src/views/UserView.vue b/frontend/src/views/UserView.vue index 92aa062..7406865 100644 --- a/frontend/src/views/UserView.vue +++ b/frontend/src/views/UserView.vue @@ -3,6 +3,7 @@ import { ref, onMounted } from 'vue' import { useRoute } from "vue-router"; import type { StreamerData } from '../../../server/types/scraping/Streamer' import VideoPlayer from '../components/VideoPlayer.vue' +import TwitchChat from '../components/TwitchChat.vue' export default { async setup() { @@ -49,13 +50,6 @@ export default { src: `http://localhost:7000/proxy/stream/${username}/hls.m3u8`, type: 'application/vnd.apple.mpegurl', - label: 'tt' - }, - { - src: - `http://localhost:7000/proxy/stream/${username}/hls.m3u8`, - type: 'application/vnd.apple.mpegurl', - label: 'dd' }], fluid: true } @@ -63,6 +57,7 @@ export default { }, components: { VideoPlayer, + TwitchChat }, methods: { truncate(value: string, length: number) { @@ -110,7 +105,7 @@ export default {
-
+
LIVE @@ -125,7 +120,7 @@ export default {
-
+

OFFLINE

@@ -161,8 +156,7 @@ export default {
-
-
+