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:
parent
3b91ee4155
commit
5e1e6d7d82
1 changed files with 13 additions and 3 deletions
|
@ -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;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue