0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 19:25:16 +00:00

0.6 LETS GO IT WORKS

This commit is contained in:
Front 2022-03-03 18:13:14 -05:00
parent 3b91ee4155
commit 5e1e6d7d82

View file

@ -1,6 +1,16 @@
<template>
<div>
<div v-text="information" />
<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>
@ -8,13 +18,13 @@
export default {
data() {
return {
information: ""
videos: []
}
},
mounted() {
const vm = this;
this.$youtube.search("TEST", (data) => {
vm.information = data;
vm.videos = data;
})
}
}