2022-03-16 00:31:03 +00:00
< template >
2022-03-19 19:31:43 +00:00
<!--
* Videos are now polled from '~/components/recommended.vue'
* This is to allow use of "recommended" videos on other pages such as / watch
* - Front
* -- >
2022-03-20 09:50:13 +00:00
< recommended :recommends ="recommends" / >
< / template >
< script >
export default {
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 ) => {
2022-03-21 00:27:41 +00:00
if ( result ) this . recommends = result [ 0 ] ;
2022-03-20 09:50:13 +00:00
} )
. catch ( ( error ) => this . $logger ( "Home Page" , error , true ) ) ;
} ,
} ;
2022-03-21 23:47:11 +00:00
< / script >