Format and eslint
This commit is contained in:
@ -7,10 +7,9 @@ import LoadingScreen from '@/components/LoadingScreen.vue'
|
||||
export default {
|
||||
async setup() {
|
||||
const protocol = import.meta.env.VITE_HTTPS === 'true' ? 'https://' : 'http://'
|
||||
|
||||
|
||||
let data: Ref<any | undefined> = ref()
|
||||
let frontend_url = protocol + import.meta.env.VITE_INSTANCE_DOMAIN
|
||||
|
||||
|
||||
return {
|
||||
data,
|
||||
@ -30,7 +29,7 @@ export default {
|
||||
},
|
||||
|
||||
filterSearches(toFilter: string) {
|
||||
const categories: HTMLCollectionOf<Element> = this.$refs.categoryItem as HTMLCollectionOf<Element>
|
||||
const categories = this.$refs.categoryItem
|
||||
const wantedTags: string[] = toFilter.split(',').filter((v) => v.toLowerCase())
|
||||
|
||||
for (let category of categories as any) {
|
||||
@ -100,7 +99,6 @@ export default {
|
||||
console.error(error)
|
||||
this.data = { status: 'error' }
|
||||
}
|
||||
|
||||
},
|
||||
components: {
|
||||
StreamPreviewVue,
|
||||
@ -111,7 +109,6 @@ export default {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<loading-screen v-if="!data"></loading-screen>
|
||||
<error-message v-else-if="data.status === 'error'"></error-message>
|
||||
|
||||
@ -120,7 +117,11 @@ export default {
|
||||
<h1 class="font-bold text-5xl">Following</h1>
|
||||
<p class="text-xl">Streamers you follow</p>
|
||||
<ul class="flex overflow-x-scroll flex-nowrap h-80 space-x-1">
|
||||
<li v-for="streamer in following" :key="streamer" class="inline-block hover:scale-105 transition-transform">
|
||||
<li
|
||||
v-for="streamer in following"
|
||||
:key="streamer"
|
||||
class="inline-block hover:scale-105 transition-transform"
|
||||
>
|
||||
<stream-preview-vue :name="streamer"></stream-preview-vue>
|
||||
</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user