Skip to content

Commit 7b85c90

Browse files
committed
Remove some comments from watch.vue
1 parent efc813d commit 7b85c90

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

src/views/Watch.vue

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
<v-col v-else cols="11" class="mx-auto">
2020
<v-row>
2121
<v-col cols="12" sm="12" md="8" lg="8">
22-
<!-- <component
23-
:is="transition !== 'None' ? `v-${transition}` : 'div'"
24-
hide-on-leave
25-
> -->
2622
<v-skeleton-loader
2723
type="card-avatar, article, actions"
2824
:loading="videoLoading"
@@ -38,7 +34,7 @@
3834
/>
3935
</video>
4036
</v-responsive>
41-
<!-- </div> -->
37+
4238
<v-card flat tile class="card">
4339
<v-card-title class="pl-0 pb-0">{{
4440
video.title
@@ -158,7 +154,6 @@
158154
</v-col>
159155
</v-row>
160156
</div>
161-
<!-- </component> -->
162157
</v-skeleton-loader>
163158

164159
<v-row>
@@ -271,28 +266,16 @@ export default {
271266
const video = await VideoService.getById(this.$route.params.id)
272267
273268
if (!video) return this.$router.push('/')
274-
275-
// video.data.data.url = `${process.env.VUE_APP_URL}/uploads/videos/${video.data.data.url}`
276-
277-
// video.data.data.userId.photoUrl = `${process.env.VUE_APP_URL}/uploads/avatars/${video.data.data.userId.photoUrl}`
278269
this.video = video.data.data
279-
// this.video.likes = 2
280-
// this.video.dislikes = 2
281270
} catch (err) {
282271
this.errored = true
283272
console.log(err)
284273
} finally {
285274
this.videoLoading = false
286275
this.checkSubscription(this.video.userId._id)
287276
this.checkFeeling(this.video._id)
288-
// if (this.video.url != '' && this.video.userId != '')
289-
// this.videoLoading = false
290277
}
291-
// console.log(video.data.data)
292-
// this.videoLoading = false
293-
// this.video.url =
294-
// this.video.userId.photoUrl = `${process.env.VUE_APP_URL}/uploads/avatars/${this.video.userId.photoUrl}`
295-
// console.log(this.video)
278+
296279
if (
297280
this.video.userId._id.toString() !==
298281
this.$store.getters.currentUser._id.toString() &&
@@ -345,8 +328,6 @@ export default {
345328
else if (feeling.data.data.feeling === 'dislike') this.feeling = 'dislike'
346329
},
347330
async createFeeling(type) {
348-
// console.log(this.video)
349-
// Check type
350331
switch (true) {
351332
case type === 'like' && this.feeling === '':
352333
this.feeling = 'like'
@@ -380,8 +361,6 @@ export default {
380361
this.video.dislikes++
381362
// console.log('change to dislike')
382363
}
383-
// change this.feeling to type
384-
// increase like or dislike
385364
386365
const feeling = await FeelingService.createFeeling({
387366
videoId: this.video._id,
@@ -391,7 +370,6 @@ export default {
391370
})
392371
393372
if (!feeling) return
394-
// console.log(feeling.data.data)
395373
},
396374
async subscribe() {
397375
this.subscribeLoading = true
@@ -413,8 +391,6 @@ export default {
413391
this.subscribed = true
414392
this.video.userId.subscribers++
415393
}
416-
417-
console.log(this.subscribed)
418394
},
419395
actions() {
420396
this.getVideo()

0 commit comments

Comments
 (0)