Skip to content

Commit

Permalink
- Rename all labels to Russian
Browse files Browse the repository at this point in the history
- Cannot like track in playlist
- Unnecessary actions for track in playlist
  • Loading branch information
acherkashin committed Feb 12, 2023
1 parent 2288d00 commit 872c5de
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 29 deletions.
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/acherkashin/yandex-music-extension"
},
"description": "Enjoy listening to YandexMusic right in your favorite code editor",
"version": "0.12.0",
"version": "0.13.0",
"preview": true,
"engines": {
"vscode": "^1.53.0"
Expand Down Expand Up @@ -43,37 +43,37 @@
{
"command": "yandexMusic.play",
"category": "Yandex Music",
"title": "Play Track"
"title": "Воспроизвести"
},
{
"command": "yandexMusic.pause",
"category": "Yandex Music",
"title": "Pause Track"
"title": "Пауза"
},
{
"command": "yandexMusic.next",
"category": "Yandex Music",
"title": "Next Track"
"title": "Следующий трек"
},
{
"command": "yandexMusic.prev",
"category": "Yandex Music",
"title": "Previous Track"
"title": "Предыдущий трек"
},
{
"command": "yandexMusic.rewindForward",
"category": "Yandex Music",
"title": "Rewind Track Forward"
"title": "Перемотать вперёд"
},
{
"command": "yandexMusic.rewindBackward",
"category": "Yandex Music",
"title": "Rewind Track Backward"
"title": "Перемотать назад"
},
{
"command": "yandexMusic.downloadTrack",
"category": "Yandex Music",
"title": "Download Track",
"title": "Скачать",
"icon": "$(cloud-download)"
},
{
Expand All @@ -94,57 +94,57 @@
{
"command": "yandexMusic.signIn",
"category": "Yandex Music",
"title": "Sign In",
"title": "Войти",
"icon": "$(log-in)"
},
{
"command": "yandexMusic.signOut",
"category": "Yandex Music",
"title": "Sign Out",
"title": "Выйти",
"icon": "$(log-out)"
},
{
"command": "yandexMusic.refresh",
"category": "Yandex Music",
"title": "Refresh play lists",
"title": "Обновить плейлисты",
"icon": "$(refresh)"
},
{
"command": "yandexMusic.search",
"category": "Yandex Music",
"title": "Search",
"title": "Поиск",
"icon": "$(search)"
},
{
"command": "yandexMusic.clearSearchResult",
"category": "Yandex Music",
"title": "Clear Search Result",
"title": "Очистить результаты",
"icon": "$(clear-all)"
},
{
"command": "yandexMusic.addToPlaylist",
"category": "Yandex Music",
"title": "Add To Playlist"
"title": "Добавить в плейлист"
},
{
"command": "yandexMusic.removeFromPlaylist",
"category": "Yandex Music",
"title": "Remove from Playlist"
"title": "Удалить из плейлиста"
},
{
"command": "yandexMusic.renamePlaylist",
"category": "Yandex Music",
"title": "Rename playlist"
"title": "Переименовать плейлист"
},
{
"command": "yandexMusic.deletePlaylist",
"category": "Yandex Music",
"title": "Delete playlist"
"title": "Удалить плейлист"
},
{
"command": "yandexMusic.createPlaylist",
"category": "Yandex Music",
"title": "Create playlist",
"title": "Создать плейлист",
"icon": "$(add)"
}
],
Expand Down Expand Up @@ -198,7 +198,7 @@
},
{
"command": "yandexMusic.removeFromPlaylist",
"when": "viewItem =~ /in-user-playlist/"
"when": "viewItem =~ /in-user/"
},
{
"command": "yandexMusic.renamePlaylist",
Expand Down Expand Up @@ -268,20 +268,20 @@
"yandex-music-explorer": [
{
"id": "yandex-music-play-lists",
"name": "Yandex Music Play Lists",
"name": "Плейлисты",
"message": "message"
},
{
"id": "yandex-music-chart",
"name": "Chart"
"name": "Чарт"
},
{
"id": "yandex-music-recommendations",
"name": "Recommendations"
"name": "Рекомендации"
},
{
"id": "yandex-music-search",
"name": "Search"
"name": "Поиск"
}
]
},
Expand Down
7 changes: 1 addition & 6 deletions src/tree/treeItems/userTrackTreeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export class UserTrackTreeItem extends TrackTreeItem {
constructor(store: Store, track: Track, public readonly playlist: Playlist, public readonly index: number) {
super(store, track, playlist.kind);

const contexts = ["track", "in-user-playlist"];
if(store.isLikedTrack(this.track.id)) {
contexts.push("liked");
}

this.contextValue = contexts.join(",");
this.contextValue = [this.contextValue, "in-user"].join(",");
}
}

0 comments on commit 872c5de

Please sign in to comment.