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:
parent
39b902ee15
commit
d507a88710
6 changed files with 4 additions and 21 deletions
|
@ -11,10 +11,10 @@
|
|||
<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" />
|
||||
<div v-text="item.value || item.name" />
|
||||
</button>
|
||||
</v-btn>
|
||||
|
||||
</v-list-item>
|
||||
|
||||
|
@ -53,7 +53,6 @@
|
|||
|
||||
<script>
|
||||
import { CapacitorVideoPlayer } from 'capacitor-video-player';
|
||||
import { Capacitor } from '@capacitor/core';
|
||||
|
||||
import recommended from '../components/recommended.vue';
|
||||
export default {
|
||||
|
@ -69,7 +68,7 @@ export default {
|
|||
showMore: false,
|
||||
|
||||
title: null,
|
||||
likes: 100,
|
||||
likes: null,
|
||||
dislikes: null,
|
||||
uploaded: null,
|
||||
vidSrc: null,
|
||||
|
@ -79,8 +78,6 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
|
||||
this.likes = 100
|
||||
|
||||
this.$youtube.getVid(this.$route.query.v).then(result => {
|
||||
console.log('Video info data', result)
|
||||
result = result.data;
|
||||
|
@ -100,12 +97,8 @@ export default {
|
|||
});
|
||||
|
||||
this.$youtube.getReturnYoutubeDislike(this.$route.query.v, (data) => {
|
||||
|
||||
|
||||
|
||||
this.dislikes = data.dislikes.toLocaleString();
|
||||
this.interactions[1].value = data.dislikes.toLocaleString();
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ dependencies {
|
|||
implementation project(':capacitor-device')
|
||||
implementation project(':capacitor-splash-screen')
|
||||
implementation project(':capacitor-status-bar')
|
||||
implementation project(':capacitor-video-player')
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -22,9 +22,5 @@
|
|||
{
|
||||
"pkg": "@capacitor/status-bar",
|
||||
"classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "capacitor-video-player",
|
||||
"classpath": "com.jeep.plugin.capacitor.capacitorvideoplayer.CapacitorVideoPlayerPlugin"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -19,6 +19,3 @@ project(':capacitor-splash-screen').projectDir = new File('../node_modules/@capa
|
|||
|
||||
include ':capacitor-status-bar'
|
||||
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')
|
||||
|
|
|
@ -15,7 +15,6 @@ def capacitor_pods
|
|||
pod 'CapacitorDevice', :path => '..\..\node_modules\@capacitor\device'
|
||||
pod 'CapacitorSplashScreen', :path => '..\..\node_modules\@capacitor\splash-screen'
|
||||
pod 'CapacitorStatusBar', :path => '..\..\node_modules\@capacitor\status-bar'
|
||||
pod 'CapacitorVideoPlayer', :path => '..\..\node_modules\capacitor-video-player'
|
||||
end
|
||||
|
||||
target 'App' do
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
"@capacitor/core": "^3.4.0",
|
||||
"@capacitor/device": "^1.1.2",
|
||||
"@capacitor/splash-screen": "^1.2.2",
|
||||
"@capacitor/status-bar": "^1.0.8",
|
||||
"capacitor-video-player": "^3.4.1"
|
||||
"@capacitor/status-bar": "^1.0.8"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue