From 7dfb7fbb7648c3947ebe32381df8a4e55c1eebfd Mon Sep 17 00:00:00 2001 From: dragongoose Date: Sun, 10 Sep 2023 15:21:55 -0400 Subject: [PATCH] Refactor about page and improve icons --- src/components/user/AboutTab.vue | 50 ++++++++++++++++++++++++++++++++ src/main.ts | 6 ++-- src/types/Streamer.ts | 2 +- src/views/ClipView.vue | 23 +++------------ src/views/UserView.vue | 23 +++------------ src/views/VodView.vue | 23 +++------------ vite.config.ts | 3 ++ 7 files changed, 70 insertions(+), 60 deletions(-) create mode 100644 src/components/user/AboutTab.vue diff --git a/src/components/user/AboutTab.vue b/src/components/user/AboutTab.vue new file mode 100644 index 0000000..0f1bb70 --- /dev/null +++ b/src/components/user/AboutTab.vue @@ -0,0 +1,50 @@ + + + \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index d49c8e5..327328c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -24,13 +24,14 @@ import { IoSearchOutline, BiHeadphones, BiCameraVideoFill, - IoLink, + BiLink45Deg, FaCircleNotch, BiTwitter, BiInstagram, BiDiscord, BiYoutube, BiTiktok, + BiReddit, BiHeartFill, IoPerson } from 'oh-vue-icons/icons' @@ -39,13 +40,14 @@ addIcons( IoSearchOutline, BiHeadphones, BiCameraVideoFill, - IoLink, + BiLink45Deg, FaCircleNotch, BiTwitter, BiInstagram, BiDiscord, BiYoutube, BiTiktok, + BiReddit, BiHeartFill, IoPerson ) diff --git a/src/types/Streamer.ts b/src/types/Streamer.ts index 6d062e9..f77fd0a 100644 --- a/src/types/Streamer.ts +++ b/src/types/Streamer.ts @@ -1,5 +1,5 @@ export interface Social { - type: string | null + type: string name: string url: string } diff --git a/src/views/ClipView.vue b/src/views/ClipView.vue index 077e5b6..71de223 100644 --- a/src/views/ClipView.vue +++ b/src/views/ClipView.vue @@ -7,6 +7,7 @@ import TwitchChat from '@/components/TwitchChat.vue' import ErrorMessage from '@/components/ErrorMessage.vue' import FollowButton from '@/components/FollowButton.vue' import LoadingScreen from '@/components/LoadingScreen.vue' +import AboutTab from '@/components/user/AboutTab.vue' import type { Video } from '@/types' import { truncate, abbreviate, getEndpoint } from '@/mixins' @@ -71,7 +72,8 @@ export default { TwitchChat, ErrorMessage, FollowButton, - LoadingScreen + LoadingScreen, + AboutTab }, methods: { truncate, @@ -131,24 +133,7 @@ export default { -
-
- {{ $t('streamer.about') }} -
- -

{{ data.streamer.about }}

- -
- - -
+ -
-
- {{ $t('streamer.about') }} -
- -

{{ data.about }}

- -
- - -
+ -
-
- {{ $t('streamer.about') }} -
- -

{{ data.streamer.about }}

- -
- - -
+