diff --git a/src/components/TheatreModeToggle.vue b/src/components/TheatreModeToggle.vue index a8824ef..2ce869c 100644 --- a/src/components/TheatreModeToggle.vue +++ b/src/components/TheatreModeToggle.vue @@ -1,28 +1,16 @@ - - - {{ isTheatreMode ? 'Exit Theatre Mode' : 'Theatre Mode' }} - - - - - \ No newline at end of file +} + diff --git a/src/views/ClipView.vue b/src/views/ClipView.vue index 69d3d3c..7f9a64c 100644 --- a/src/views/ClipView.vue +++ b/src/views/ClipView.vue @@ -9,7 +9,7 @@ import LoadingScreen from '@/components/LoadingScreen.vue' import AboutTab from '@/components/user/AboutTab.vue' import ShareModal from '@/components/popups/ShareButtonModal.vue' import VueTitle from '@/components/VueTitle.vue' -import TheatreModeToggle from '@/components/TheatreModeToggle.vue' +import ActionButtons from '@/components/ActionButtons.vue' import type { Video } from '@/types' import { truncate, abbreviate, getEndpoint } from '@/mixins' @@ -21,6 +21,7 @@ export default { const clipSlug = route.params.slug const data = ref() const status = ref<'ok' | 'error'>() + const isTheatreMode = ref(false) let srcUrl await getEndpoint(`api/clips/cliplink/${clipSlug}`) @@ -31,8 +32,6 @@ export default { status.value = 'error' }) - console.log(srcUrl) - const videoOptions = { autoplay: true, controls: true, @@ -52,7 +51,7 @@ export default { time: ref(0), srcUrl, shareModalVisible: ref(false), - isTheatreMode: ref(false) + isTheatreMode } }, async mounted() { @@ -74,7 +73,7 @@ export default { AboutTab, ShareModal, VueTitle, - TheatreModeToggle + ActionButtons }, methods: { truncate, @@ -101,8 +100,10 @@ export default { @@ -137,19 +138,14 @@ export default { - - - - - - - - - - - - - + @@ -157,4 +153,4 @@ export default { - + \ No newline at end of file diff --git a/src/views/UserView.vue b/src/views/UserView.vue index d9ff04c..a03ed0a 100644 --- a/src/views/UserView.vue +++ b/src/views/UserView.vue @@ -12,7 +12,7 @@ import AudioPlayer from '@/components/AudioPlayer.vue' import AboutTab from '@/components/user/AboutTab.vue' import ShareModal from '@/components/popups/ShareButtonModal.vue' import VueTitle from '@/components/VueTitle.vue' -import TheatreModeToggle from '@/components/TheatreModeToggle.vue' +import ActionButtons from '@/components/ActionButtons.vue' import type { StreamerData } from '@/types' import { truncate, abbreviate, getEndpoint } from '@/mixins' @@ -26,6 +26,7 @@ export default { const data = ref() const status = ref<'ok' | 'error'>() const rootBackendUrl = inject('rootBackendUrl') + const isTheatreMode = ref(false) const videoOptions = { autoplay: getSetting('autoplay'), controls: true, @@ -45,7 +46,7 @@ export default { videoOptions, audioOptions, shareModalVisible: ref(false), - isTheatreMode: ref(false) + isTheatreMode } }, async mounted() { @@ -76,7 +77,7 @@ export default { AboutTab, ShareModal, VueTitle, - TheatreModeToggle + ActionButtons }, methods: { truncate, @@ -109,8 +110,10 @@ export default { @@ -184,19 +187,21 @@ export default { - - + + + + + {{ abbreviate(data.followers) }} {{ $t('main.followers') }} + + - - {{ abbreviate(data.followers) }} {{ $t('main.followers') }} - - - - - - - - +
+ {{ abbreviate(data.followers) }} {{ $t('main.followers') }} +
- {{ abbreviate(data.followers) }} {{ $t('main.followers') }} -