0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-01 09:22:39 +00:00
VueTube/NUXT/pages/search.vue
2022-03-03 18:13:14 -05:00

31 lines
783 B
Vue

<template>
<div>
<v-list-item v-for="(video, index) in videos" :key="index">
<v-card>
<v-card-title v-text="video.compactVideoRenderer.title.runs[0].text" />
<v-card-text>
<p v-text="video.compactVideoRenderer.videoId" />
<p v-text="video.compactVideoRenderer.lengthText.runs[0].text" />
<p v-text="video.compactVideoRenderer.publishedTimeText.runs[0].text" />
<p v-text="video.compactVideoRenderer.viewCountText.runs[0].text" />
</v-card-text>
</v-card>
</v-list-item>
</div>
</template>
<script>
export default {
data() {
return {
videos: []
}
},
mounted() {
const vm = this;
this.$youtube.search("TEST", (data) => {
vm.videos = data;
})
}
}
</script>