0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-28 22:23:04 +00:00

refactor: 🚑 Remove cap-video-player

its just bad, aight?
This commit is contained in:
Front 2022-03-20 12:13:58 -04:00
parent 39b902ee15
commit d507a88710
6 changed files with 4 additions and 21 deletions

View file

@ -11,10 +11,10 @@
<v-list-item v-for="(item, index) in interactions" :key="index"> <v-list-item v-for="(item, index) in interactions" :key="index">
<button class="vertical-button" style="padding: 0; margin: 0;" elevation=0 :disabled="item.disabled"> <v-btn text class="vertical-button" style="padding: 0; margin: 0;" elevation=0 :disabled="item.disabled">
<v-icon v-text="item.icon" /> <v-icon v-text="item.icon" />
<div v-text="item.value || item.name" /> <div v-text="item.value || item.name" />
</button> </v-btn>
</v-list-item> </v-list-item>
@ -53,7 +53,6 @@
<script> <script>
import { CapacitorVideoPlayer } from 'capacitor-video-player'; import { CapacitorVideoPlayer } from 'capacitor-video-player';
import { Capacitor } from '@capacitor/core';
import recommended from '../components/recommended.vue'; import recommended from '../components/recommended.vue';
export default { export default {
@ -69,7 +68,7 @@ export default {
showMore: false, showMore: false,
title: null, title: null,
likes: 100, likes: null,
dislikes: null, dislikes: null,
uploaded: null, uploaded: null,
vidSrc: null, vidSrc: null,
@ -79,8 +78,6 @@ export default {
}, },
mounted() { mounted() {
this.likes = 100
this.$youtube.getVid(this.$route.query.v).then(result => { this.$youtube.getVid(this.$route.query.v).then(result => {
console.log('Video info data', result) console.log('Video info data', result)
result = result.data; result = result.data;
@ -100,12 +97,8 @@ export default {
}); });
this.$youtube.getReturnYoutubeDislike(this.$route.query.v, (data) => { this.$youtube.getReturnYoutubeDislike(this.$route.query.v, (data) => {
this.dislikes = data.dislikes.toLocaleString(); this.dislikes = data.dislikes.toLocaleString();
this.interactions[1].value = data.dislikes.toLocaleString(); this.interactions[1].value = data.dislikes.toLocaleString();
}); });
} }

View file

@ -15,7 +15,6 @@ dependencies {
implementation project(':capacitor-device') implementation project(':capacitor-device')
implementation project(':capacitor-splash-screen') implementation project(':capacitor-splash-screen')
implementation project(':capacitor-status-bar') implementation project(':capacitor-status-bar')
implementation project(':capacitor-video-player')
} }

View file

@ -22,9 +22,5 @@
{ {
"pkg": "@capacitor/status-bar", "pkg": "@capacitor/status-bar",
"classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin" "classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin"
},
{
"pkg": "capacitor-video-player",
"classpath": "com.jeep.plugin.capacitor.capacitorvideoplayer.CapacitorVideoPlayerPlugin"
} }
] ]

View file

@ -19,6 +19,3 @@ project(':capacitor-splash-screen').projectDir = new File('../node_modules/@capa
include ':capacitor-status-bar' include ':capacitor-status-bar'
project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android') project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')
include ':capacitor-video-player'
project(':capacitor-video-player').projectDir = new File('../node_modules/capacitor-video-player/android')

View file

@ -15,7 +15,6 @@ def capacitor_pods
pod 'CapacitorDevice', :path => '..\..\node_modules\@capacitor\device' pod 'CapacitorDevice', :path => '..\..\node_modules\@capacitor\device'
pod 'CapacitorSplashScreen', :path => '..\..\node_modules\@capacitor\splash-screen' pod 'CapacitorSplashScreen', :path => '..\..\node_modules\@capacitor\splash-screen'
pod 'CapacitorStatusBar', :path => '..\..\node_modules\@capacitor\status-bar' pod 'CapacitorStatusBar', :path => '..\..\node_modules\@capacitor\status-bar'
pod 'CapacitorVideoPlayer', :path => '..\..\node_modules\capacitor-video-player'
end end
target 'App' do target 'App' do

View file

@ -8,7 +8,6 @@
"@capacitor/core": "^3.4.0", "@capacitor/core": "^3.4.0",
"@capacitor/device": "^1.1.2", "@capacitor/device": "^1.1.2",
"@capacitor/splash-screen": "^1.2.2", "@capacitor/splash-screen": "^1.2.2",
"@capacitor/status-bar": "^1.0.8", "@capacitor/status-bar": "^1.0.8"
"capacitor-video-player": "^3.4.1"
} }
} }