0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-26 21:23:02 +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> <template>
<div> <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> </div>
</template> </template>
@ -8,13 +18,13 @@
export default { export default {
data() { data() {
return { return {
information: "" videos: []
} }
}, },
mounted() { mounted() {
const vm = this; const vm = this;
this.$youtube.search("TEST", (data) => { this.$youtube.search("TEST", (data) => {
vm.information = data; vm.videos = data;
}) })
} }
} }