mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-26 13:13:03 +00:00
style: 🎨 lint with ES Lint
This commit is contained in:
parent
8a79f07cc6
commit
9c7b1d0778
4 changed files with 29 additions and 29 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
layout: "empty",
|
layout: "empty",
|
||||||
|
|
||||||
//--- Hide Splash Screen ---//
|
//--- Hide Splash Screen ---//
|
||||||
async beforeCreate() {
|
async beforeCreate() {
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<div>OS: {{ deviceInfo.operatingSystem }} ({{ deviceInfo.osVersion }})</div>
|
<div>OS: {{ deviceInfo.operatingSystem }} ({{ deviceInfo.osVersion }})</div>
|
||||||
<div>Model: {{ deviceInfo.model }}</div>
|
<div>Model: {{ deviceInfo.model }}</div>
|
||||||
<div>Manufacturer: {{ deviceInfo.manufacturer }}</div>
|
<div>Manufacturer: {{ deviceInfo.manufacturer }}</div>
|
||||||
<div>Virtual Device: {{ deviceInfo.isVirtual ? 'yes' : 'no' }}</div>
|
<div>Virtual Device: {{ deviceInfo.isVirtual ? "yes" : "no" }}</div>
|
||||||
</center>
|
</center>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -34,17 +34,6 @@ export default {
|
||||||
renderer: [],
|
renderer: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.getSearch();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getSearch() {
|
|
||||||
const searchQuestion = this.$route.query.q;
|
|
||||||
this.$youtube.search(searchQuestion).then((response) => {
|
|
||||||
this.renderer = response;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
watch: {
|
watch: {
|
||||||
// Watches for new searches while the current search page is active.
|
// Watches for new searches while the current search page is active.
|
||||||
$route: {
|
$route: {
|
||||||
|
@ -56,5 +45,16 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getSearch();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getSearch() {
|
||||||
|
const searchQuestion = this.$route.query.q;
|
||||||
|
this.$youtube.search(searchQuestion).then((response) => {
|
||||||
|
this.renderer = response;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="accent">
|
<div class="accent">
|
||||||
<videoPlayer :vidSrc="vidSrc" />
|
<videoPlayer :vid-src="vidSrc" />
|
||||||
<v-card v-if="loaded" class="ml-2 mr-2 accent" flat>
|
<v-card v-if="loaded" class="ml-2 mr-2 accent" flat>
|
||||||
<v-card-title
|
<v-card-title
|
||||||
class="mt-2"
|
class="mt-2"
|
||||||
|
@ -134,6 +134,21 @@ export default {
|
||||||
loaded: false,
|
loaded: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
// Watch for change in the route query string (in this case, ?v=xxxxxxxx to ?v=yyyyyyyy)
|
||||||
|
$route: {
|
||||||
|
deep: true,
|
||||||
|
handler(newRt, oldRt) {
|
||||||
|
if (newRt.query.v != oldRt.query.v) {
|
||||||
|
// Exit fullscreen if currently in fullscreen
|
||||||
|
this.$refs.player.webkitExitFullscreen();
|
||||||
|
// Reset player and run getVideo function again
|
||||||
|
this.vidSrc = "";
|
||||||
|
this.getVideo();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getVideo();
|
this.getVideo();
|
||||||
},
|
},
|
||||||
|
@ -183,20 +198,5 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
// Watch for change in the route query string (in this case, ?v=xxxxxxxx to ?v=yyyyyyyy)
|
|
||||||
$route: {
|
|
||||||
deep: true,
|
|
||||||
handler(newRt, oldRt) {
|
|
||||||
if (newRt.query.v != oldRt.query.v) {
|
|
||||||
// Exit fullscreen if currently in fullscreen
|
|
||||||
this.$refs.player.webkitExitFullscreen();
|
|
||||||
// Reset player and run getVideo function again
|
|
||||||
this.vidSrc = "";
|
|
||||||
this.getVideo();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue