Skip to content

Commit

Permalink
Version 0.2.12: Add Esports and Interview categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Soleone committed Jun 8, 2021
1 parent ed322c8 commit f91858a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 0.2.12

- Add Esports and Interview categories

### 0.2.11

- Add RSS feed link for video subscriptions
Expand Down
7 changes: 6 additions & 1 deletion src/constants/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '0.2.11'
export const VERSION = '0.2.12'

// Video
export const FUNDAMENTALS = 'fundamentals'
Expand All @@ -7,6 +7,8 @@ export const CARDS = 'cards'
export const STRATEGY = 'strategy'
export const TRADING = 'trading'
export const PATCH_NOTES = 'patch notes'
export const INTERVIEW = 'interview'
export const ESPORTS = 'esports'
export const GAMEPLAY = 'gameplay'
export const FUN = 'fun'
export const OTHER = 'other'
Expand All @@ -18,6 +20,8 @@ export const CATEGORIES = [
STRATEGY,
TRADING,
PATCH_NOTES,
INTERVIEW,
ESPORTS,
GAMEPLAY,
FUN,
OTHER
Expand Down Expand Up @@ -46,4 +50,5 @@ export const CHANNELS_BY_AUTHOR = {
'Merchant': 'https://www.youtube.com/c/MerchantTV',
'LionUnchained': 'https://www.youtube.com/channel/UCL_alzGOKz6hQl7UNa0mnzw',
'Rogvarok': 'https://www.youtube.com/channel/UCdaFKgefAytNPi-kmPOQcaw',
'Fakemews9': 'https://www.youtube.com/channel/UCbopgNya6aLhYi6GE8mNMvw',
}
10 changes: 8 additions & 2 deletions src/models/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {
CARDS,
TRADING,
PATCH_NOTES,
INTERVIEW,
FUNDAMENTALS,
ESPORTS,
GAMEPLAY,
FUN,
OTHER
Expand All @@ -17,6 +19,8 @@ const CATEGORY_LABELS = {
[STRATEGY]: 'Strategy',
[TRADING]: 'Trading',
[PATCH_NOTES]: 'Patch Notes',
[INTERVIEW]: 'Interview',
[ESPORTS]: 'Esports',
[GAMEPLAY]: 'Gameplay',
[FUN]: 'Fun',
[OTHER]: 'Other'
Expand All @@ -29,7 +33,9 @@ const COLORS = {
[STRATEGY]: 'blue',
[TRADING]: 'lime',
[PATCH_NOTES]: 'red',
[GAMEPLAY]: 'brown lighten-2',
[INTERVIEW]: 'blue-grey lighten-3',
[ESPORTS]: 'brown lighten-1',
[GAMEPLAY]: 'brown lighten-3',
[FUN]: 'purple',
[OTHER]: 'grey'
}
Expand All @@ -40,7 +46,7 @@ const DARK_COLORS = [
'red',
'purple',
'grey',
'brown lighten-2'
'brown lighten-1'
]

export default class Category {
Expand Down
5 changes: 4 additions & 1 deletion src/views/VideoEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ export default {
const videoData = response.data.items[0]
this.video.author = videoData.snippet.channelTitle
this.video.title = videoData.snippet.title
this.video.imageUrl = videoData.snippet.thumbnails['standard'].url
const thumbnail = videoData.snippet.thumbnails['standard']
if (thumbnail) {
this.video.imageUrl = thumbnail.url
}
this.video.description = videoData.snippet.description
this.video.publishedAt = dayjs(videoData.snippet.publishedAt).toDate()
})
Expand Down

0 comments on commit f91858a

Please sign in to comment.