From b32da4c050a848175a8b753bfebc2f294f59c1e6 Mon Sep 17 00:00:00 2001 From: Nikita Krupin Date: Tue, 21 Jun 2022 19:20:05 -0400 Subject: [PATCH] correct poster thumbnail, fullscreen gestures, skip to next button --- NUXT/components/Player/index.vue | 51 ++++++---- NUXT/pages/index.vue | 74 +++++++------- NUXT/pages/watch.vue | 5 +- android/app/src/main/res/xml/config.xml | 4 + .../screenorientation/CDVOrientation.java | 98 +++++++++++++++++++ ios/App/App/config.xml | 4 + ios/App/Podfile | 23 ++--- 7 files changed, 191 insertions(+), 68 deletions(-) create mode 100644 android/capacitor-cordova-android-plugins/src/main/java/cordova/plugins/screenorientation/CDVOrientation.java diff --git a/NUXT/components/Player/index.vue b/NUXT/components/Player/index.vue index 75cf034..443ed1b 100644 --- a/NUXT/components/Player/index.vue +++ b/NUXT/components/Player/index.vue @@ -3,12 +3,27 @@
@@ -280,17 +297,16 @@ export default { loop, }, props: { + video: { + type: Object, + required: true, + }, sources: { type: Array, required: true, }, - thumbnails: { - type: Object, - required: true, - }, - video: { - type: Object, - required: true, + recommends: { + type: Array, }, }, data() { @@ -313,6 +329,7 @@ export default { }, mounted() { console.log("sources", this.sources); + console.log("recommends", this.recommends); this.vidSrc = this.sources[this.sources.length - 1].url; let vid = this.$refs.player; diff --git a/NUXT/pages/index.vue b/NUXT/pages/index.vue index d90023b..0272cd7 100644 --- a/NUXT/pages/index.vue +++ b/NUXT/pages/index.vue @@ -29,7 +29,8 @@ export default { await this.theming(); //--- Update Screen ---// - if (localStorage.getItem("lastRunVersion") != process.env.appVersion ) return this.$router.replace('/activities/update'); + if (localStorage.getItem("lastRunVersion") != process.env.appVersion) + return this.$router.replace("/activities/update"); //--- Start Innertube Connection ---// await this.$youtube.getAPI(); @@ -37,47 +38,48 @@ export default { this.progressMsg = this.$lang("index").launching; if (localStorage.getItem("firstTimeSetupComplete")) { - this.$router.replace('/'+ (localStorage.getItem("startPage") || "home") ); // Normal Load + this.$router.replace("/" + (localStorage.getItem("startPage") || "home")); // Normal Load } else { - this.$router.replace('/activities/install'); // Load Into Setup + this.$router.replace("/activities/install"); // Load Into Setup } - }, methods: { - theming() { return new Promise((resolve) => - // Set timeout is required for $vuetify.theme... dont ask me why -Front - setTimeout(() => { - this.$vuetify.theme.dark = - JSON.parse(localStorage.getItem("darkTheme")) === true; - if (localStorage.getItem("primaryDark") != null) - this.$vuetify.theme.themes.dark.primary = - localStorage.getItem("primaryDark"); - if (localStorage.getItem("primaryLight") != null) - this.$vuetify.theme.themes.light.primary = - localStorage.getItem("primaryLight"); - if (localStorage.getItem("backgroundDark") != null) - this.$vuetify.theme.themes.dark.background = - localStorage.getItem("backgroundDark"); - if (localStorage.getItem("backgroundLight") != null) - this.$vuetify.theme.themes.light.background = - localStorage.getItem("backgroundLight"); + theming() { + return new Promise((resolve) => + // Set timeout is required for $vuetify.theme... dont ask me why -Front + setTimeout(() => { + this.$vuetify.theme.dark = + JSON.parse(localStorage.getItem("darkTheme")) === true; + if (localStorage.getItem("primaryDark") != null) + this.$vuetify.theme.themes.dark.primary = + localStorage.getItem("primaryDark"); + if (localStorage.getItem("primaryLight") != null) + this.$vuetify.theme.themes.light.primary = + localStorage.getItem("primaryLight"); + if (localStorage.getItem("backgroundDark") != null) + this.$vuetify.theme.themes.dark.background = + localStorage.getItem("backgroundDark"); + if (localStorage.getItem("backgroundLight") != null) + this.$vuetify.theme.themes.light.background = + localStorage.getItem("backgroundLight"); - this.$vuetube.navigationBar.setTheme( - this.$vuetify.theme.currentTheme.background, - !this.$vuetify.theme.dark - ); - this.$vuetube.statusBar.setTheme( - this.$vuetify.theme.currentTheme.background, - this.$vuetify.theme.dark - ); + this.$vuetube.navigationBar.setTheme( + this.$vuetify.theme.currentTheme.background, + !this.$vuetify.theme.dark + ); + this.$vuetube.statusBar.setTheme( + this.$vuetify.theme.currentTheme.background, + this.$vuetify.theme.dark + ); - // this.$vuetube.navigationBar.setTransparent(); - // this.$vuetube.statusBar.setTransparent(); - resolve(); - }, 0) - )} - } -} + // this.$vuetube.navigationBar.setTransparent(); + // this.$vuetube.statusBar.setTransparent(); + resolve(); + }, 0) + ); + }, + }, +};