0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-29 22:53:05 +00:00
VueTube/NUXT/pages/home.vue

31 lines
857 B
Vue

<template>
<!--
* Videos are now polled from '~/components/recommended.vue'
* This is to allow use of "recommended" videos on other pages such as /watch
* -Front
* -->
<horizontal-list-renderer :recommends="recommends" />
</template>
<script>
import horizontalListRenderer from "../components/horizontalListRenderer.vue";
export default {
components: { horizontalListRenderer },
data() {
return {
recommends: [],
};
},
// The following code is only a demo for debugging purposes, note that each "shelfRenderer" has a "title" value that seems to align to the categories at the top of the vanilla yt app
mounted() {
this.$youtube
.recommend()
.then((result) => {
if (result) this.recommends = result[0];
})
.catch((error) => this.$logger("Home Page", error, true));
},
};
</script>