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