forked from ShyykoSerhiy/vscode-spotify
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
531 lines (531 loc) · 15.8 KB
/
package.json
File metadata and controls
531 lines (531 loc) · 15.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
{
"name": "bytebeats",
"displayName": "ByteBeats",
"description": "Control Spotify inside VS Code.",
"version": "1.0.1",
"publisher": "zweack",
"license": "MIT",
"engines": {
"vscode": "^1.49.0"
},
"icon": "media/icon.png",
"galleryBanner": {
"color": "#11B460",
"theme": "light"
},
"repository": {
"type": "git",
"url": "https://github.com/zweack/ByteBeats.git"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "bytebeats",
"title": "ByteBeats",
"icon": "resources/dark/logo.svg"
}
]
},
"views": {
"bytebeats": [
{
"id": "bytebeats-playlists",
"name": "Playlists",
"icon": "resources/dark/logo.svg"
},
{
"id": "bytebeats-albums",
"name": "Albums",
"icon": "resources/dark/logo.svg"
},
{
"id": "bytebeats-tracks",
"name": "Tracks",
"icon": "resources/dark/logo.svg"
},
{
"id": "bytebeats-search",
"name": "Search",
"icon": "resources/dark/logo.svg"
}
]
},
"commands": [
{
"command": "spotify.playPlaylist",
"title": "Play Playlist"
},
{
"command": "spotify.playAlbum",
"title": "Play Album"
},
{
"command": "spotify.playSearchResult",
"title": "Play"
},
{
"command": "spotify.next",
"title": "Spotify Play Next Song"
},
{
"command": "spotify.previous",
"title": "Spotify Play Previous Song"
},
{
"command": "spotify.skipForward",
"title": "Spotify Skip Forward 15 seconds"
},
{
"command": "spotify.skipBack",
"title": "Spotify Skip Back 15 seconds"
},
{
"command": "spotify.play",
"title": "Spotify Play"
},
{
"command": "spotify.pause",
"title": "Spotify Pause"
},
{
"command": "spotify.playPause",
"title": "Spotify Play|Pause"
},
{
"command": "spotify.muteVolume",
"title": "Spotify Mute Volume"
},
{
"command": "spotify.unmuteVolume",
"title": "Spotify Unmute Volume"
},
{
"command": "spotify.muteUnmuteVolume",
"title": "Spotify Mute|Unmute Volume"
},
{
"command": "spotify.volumeUp",
"title": "Spotify Volume Up"
},
{
"command": "spotify.volumeDown",
"title": "Spotify Volume Down"
},
{
"command": "spotify.toggleRepeating",
"title": "Spotify Toggle Repeating"
},
{
"command": "spotify.toggleShuffling",
"title": "Spotify Toggle Shuffling"
},
{
"command": "spotify.lyrics",
"title": "Spotify Lyrics"
},
{
"command": "spotify.signIn",
"title": "Spotify Sign In"
},
{
"command": "spotify.signOut",
"title": "Spotify Sign Out"
},
{
"command": "spotify.loadPlaylists",
"title": "Spotify Load Playlists",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "spotify.loadAlbums",
"title": "Spotify Load Albums",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "spotify.loadTracks",
"title": "Spotify Load Tracks",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "spotify.trackInfoClick",
"title": "Spotify TrackInfo Click"
},
{
"command": "spotify.seekTo",
"title": "Spotify Seek To"
},
{
"command": "spotify.playTrack",
"title": "Spotify: Play Track"
},
{
"command": "spotify.search",
"title": "Search Spotify",
"icon": {
"light": "resources/light/search.svg",
"dark": "resources/dark/search.svg"
}
}
],
"keybindings": [
{
"command": "spotify.next",
"key": "ctrl+shift+]",
"mac": "ctrl+cmd+]"
},
{
"command": "spotify.previous",
"key": "ctrl+shift+[",
"mac": "ctrl+cmd+["
},
{
"command": "spotify.volumeUp",
"key": "ctrl+shift+'",
"mac": "cmd+shift+'"
},
{
"command": "spotify.volumeDown",
"key": "ctrl+shift+;",
"mac": "cmd+shift+;"
}
],
"menus": {
"view/item/context": [
{
"command": "spotify.playSearchResult",
"when": "view == bytebeats-search && viewItem =~ /track|album|playlist/",
"group": "inline"
},
{
"command": "spotify.playPlaylist",
"when": "view == bytebeats-playlists && viewItem == playlist",
"group": "inline"
},
{
"command": "spotify.playAlbum",
"when": "view == bytebeats-albums && viewItem == album",
"group": "inline"
}
],
"view/title": [
{
"command": "spotify.loadPlaylists",
"when": "view == bytebeats-playlists",
"group": "navigation"
},
{
"command": "spotify.loadAlbums",
"when": "view == bytebeats-albums",
"group": "navigation"
},
{
"command": "spotify.loadTracks",
"when": "view == bytebeats-tracks",
"group": "navigation"
},
{
"command": "spotify.search",
"when": "view == bytebeats-search",
"group": "navigation"
}
]
},
"configuration": {
"type": "object",
"title": "bytebeats configuration",
"properties": {
"spotify.trackInfoFormat": {
"type": "string",
"default": "artistName - trackName",
"description": "Current track info that will be displayed. Available keywords: albumName, artistName, trackName"
},
"spotify.trackInfoClickBehaviour": {
"type": "string",
"enum": [
"none",
"focus_song",
"play_pause"
],
"default": "focus_song",
"description": "What to do when trackInfo is clicked: 'none' - do nothing, 'focus_song' - current song will be selected Playlists/Tracks section if it exists there, 'play_pause' - trackInfo essentially becomes playPause button (great option for minimal ui). "
},
"spotify.showNextButton": {
"type": "boolean",
"default": true,
"description": "Whether to show next button."
},
"spotify.showSkipForwardButton": {
"type": "boolean",
"default": true,
"description": "Whether to show skip forward button."
},
"spotify.showPreviousButton": {
"type": "boolean",
"default": true,
"description": "Whether to show previous button."
},
"spotify.showSkipBackButton": {
"type": "boolean",
"default": true,
"description": "Whether to show skip backward button."
},
"spotify.showPlayButton": {
"type": "boolean",
"default": false,
"description": "Whether to show play button."
},
"spotify.showPauseButton": {
"type": "boolean",
"default": false,
"description": "Whether to show pause button."
},
"spotify.showPlayPauseButton": {
"type": "boolean",
"default": true,
"description": "Whether to show play|pause button."
},
"spotify.showMuteVolumeButton": {
"type": "boolean",
"default": false,
"description": "Whether to show mute button."
},
"spotify.showUnmuteVolumeButton": {
"type": "boolean",
"default": false,
"description": "Whether to show unmute button."
},
"spotify.showMuteUnmuteVolumeButton": {
"type": "boolean",
"default": true,
"description": "Whether to show mute|unmute button."
},
"spotify.showVolumeUpButton": {
"type": "boolean",
"default": false,
"description": "Whether to show volume up button."
},
"spotify.showVolumeDownButton": {
"type": "boolean",
"default": false,
"description": "Whether to show volume down button."
},
"spotify.showToggleRepeatingButton": {
"type": "boolean",
"default": false,
"description": "Whether to show toggle repeating button."
},
"spotify.showToggleShufflingButton": {
"type": "boolean",
"default": false,
"description": "Whether to show toggle shuffling button."
},
"spotify.showLyricsButton": {
"type": "boolean",
"default": true,
"description": "Whether to show lyrics button."
},
"spotify.showSignInButton": {
"type": "boolean",
"default": true,
"description": "Whether to show sign in button."
},
"spotify.showSignOutButton": {
"type": "boolean",
"default": true,
"description": "Whether to show sign out button."
},
"spotify.openPanelLyrics": {
"type": "number",
"default": 1,
"enum": [
1,
2,
3
],
"description": "Panel to display the Lyrics"
},
"spotify.priorityBase": {
"type": "number",
"default": 30,
"description": "Base value of priority for all bytebeats elements in Status Bar(priority = basePriority+priority). This is done to avoid 'conflicts' with other extensions. "
},
"spotify.skipForwardButtonPriority": {
"type": "number",
"default": 6,
"description": "Priority of skip forward button."
},
"spotify.nextButtonPriority": {
"type": "number",
"default": 7,
"description": "Priority of next button."
},
"spotify.playButtonPriority": {
"type": "number",
"default": 8,
"description": "Priority of play button."
},
"spotify.previousButtonPriority": {
"type": "number",
"default": 9,
"description": "Priority of previous button."
},
"spotify.skipBackButtonPriority": {
"type": "number",
"default": 10,
"description": "Priority of skip backward button."
},
"spotify.pauseButtonPriority": {
"type": "number",
"default": 6,
"description": "Priority of pause button."
},
"spotify.playPauseButtonPriority": {
"type": "number",
"default": 9,
"description": "Priority of play|pause button."
},
"spotify.muteButtonPriority": {
"type": "number",
"default": 5,
"description": "Priority of mute button."
},
"spotify.unmuteButtonPriority": {
"type": "number",
"default": 4,
"description": "Priority of unmute button."
},
"spotify.muteUnmuteButtonPriority": {
"type": "number",
"default": 3,
"description": "Priority of mute|unmute button."
},
"spotify.volumeUpButtonPriority": {
"type": "number",
"default": 2,
"description": "Priority of volume up button."
},
"spotify.volumeDownButtonPriority": {
"type": "number",
"default": 1,
"description": "Priority of volume down button."
},
"spotify.trackInfoPriority": {
"type": "number",
"default": 0,
"description": "Priority of track info."
},
"spotify.toggleRepeatingButtonPriority": {
"type": "number",
"default": 11,
"description": "Priority of toggle repeating button."
},
"spotify.toggleShufflingButtonPriority": {
"type": "number",
"default": 12,
"description": "Priority of toggle shuffling button."
},
"spotify.lyricsButtonPriority": {
"type": "number",
"default": 0,
"description": "Priority of lyrics button."
},
"spotify.signInButtonPriority": {
"type": "number",
"default": 15,
"description": "Priority of sign in button."
},
"spotify.signOutButtonPriority": {
"type": "number",
"default": 15,
"description": "Priority of sign out button."
},
"spotify.statusCheckInterval": {
"type": "number",
"default": 5000,
"description": "Interval of spotify status checks. Frequent status checks may result in faster battery drain and high CPU load (especially on MacOs). Note that with web api implementation 5000 is mimimal possible value."
},
"spotify.lyricsServerUrl": {
"type": "string",
"default": "https://vscode-spotify-lyrics.azurewebsites.net/v3/songs",
"description": "Url for lyrics server. @see https://github.com/ShyykoSerhiy/vscode-spotify-lyrics ."
},
"spotify.authServerUrl": {
"type": "string",
"default": "https://vscode-spotify-auth.azurewebsites.net",
"description": "Url to auth server. @see https://github.com/ShyykoSerhiy/vscode-spotify-auth"
},
"spotify.spotifyApiUrl": {
"type": "string",
"default": "https://api.spotify.com/v1",
"description": "Url to spotify api server. @see https://beta.developer.spotify.com/documentation/web-api/reference/playlists/"
},
"spotify.forceWebApiImplementation": {
"type": "boolean",
"default": false,
"description": "Whether to force web api implementation on Linux or MacOs. If you you want this enabled, please, consider using your own spotify.authServerUrl ."
},
"spotify.enableLogs": {
"type": "boolean",
"default": false,
"description": "Whether to enable logs."
}
}
}
},
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"madge:circular": "npx madge --circular --extensions ts ./src",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
"contributors:check": "all-contributors check"
},
"devDependencies": {
"@types/cheerio": "^0.22.22",
"@types/express": "^4.11.1",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.27",
"@types/superagent": "^2.0.36",
"@types/vscode": "^1.49.0",
"@typescript-eslint/eslint-plugin": "^4.1.1",
"@typescript-eslint/parser": "^4.1.1",
"all-contributors-cli": "^6.17.4",
"eslint": "^7.9.0",
"typescript": "^4.0.2",
"vscode-test": "^1.4.0"
},
"dependencies": {
"@vscode/test-electron": "^2.5.2",
"@vscodespotify/spotify-common": "github:zweack/spotify-common",
"autobind-decorator": "^2.1.0",
"cheerio": "^1.0.0-rc.3",
"child_process": "^1.0.2",
"express": "^4.16.2",
"immutable": "^3.8.2",
"moment": "^2.22.2",
"redux": "^3.7.2",
"redux-persist": "^5.10.0",
"request-light": "^0.2.1",
"spotify-node-applescript": "1.1.1"
}
}