-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathpackage.json
447 lines (447 loc) · 13.4 KB
/
package.json
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
{
"name": "vscode-spotify",
"description": "Use Spotify inside vscode.",
"version": "3.2.1",
"publisher": "shyykoserhiy",
"license": "MIT",
"engines": {
"vscode": "^1.49.0"
},
"icon": "media/icon.png",
"galleryBanner": {
"color": "#11B460",
"theme": "light"
},
"repository": {
"type": "git",
"url": "https://github.com/ShyykoSerhiy/vscode-spotify.git"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "vscode-spotify",
"title": "vscode-spotify",
"icon": "resources/dark/logo.svg"
}
]
},
"views": {
"vscode-spotify": [
{
"id": "vscode-spotify-playlists",
"name": "Playlists"
},
{
"id": "vscode-spotify-albums",
"name": "Albums"
},
{
"id": "vscode-spotify-tracks",
"name": "Tracks"
}
]
},
"commands": [
{
"command": "spotify.next",
"title": "Spotify Play Next Song"
},
{
"command": "spotify.previous",
"title": "Spotify Play Previous Song"
},
{
"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"
}
],
"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/title": [
{
"command": "spotify.loadPlaylists",
"when": "view == vscode-spotify-playlists",
"group": "navigation"
},
{
"command": "spotify.loadAlbums",
"when": "view == vscode-spotify-albums",
"group": "navigation"
},
{
"command": "spotify.loadTracks",
"when": "view == vscode-spotify-tracks",
"group": "navigation"
}
]
},
"configuration": {
"type": "object",
"title": "vscode-spotify 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.showPreviousButton": {
"type": "boolean",
"default": true,
"description": "Whether to show previous 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 vscode-spotify elements in Status Bar(priority = basePriority+priority). This is done to avoid 'conflicts' with other extensions. "
},
"spotify.nextButtonPriority": {
"type": "number",
"default": 8,
"description": "Priority of next button."
},
"spotify.previousButtonPriority": {
"type": "number",
"default": 10,
"description": "Priority of previous button."
},
"spotify.playButtonPriority": {
"type": "number",
"default": 7,
"description": "Priority of play 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": {
"@vscodespotify/spotify-common": "1.4.1",
"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"
}
}