-
Notifications
You must be signed in to change notification settings - Fork 0
/
defines.js
48 lines (41 loc) · 1.37 KB
/
defines.js
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
/**
* Add to Spotify Service Variables
*/
var API_HOSTNAME = "http://add-to-spotify.herokuapp.com";
var GENERATE_TOKEN_ENDPOINT = API_HOSTNAME + "/generate_access_token";
var LOGIN_ENDPOINT = API_HOSTNAME + "/login";
var SEARCH_ENDPOINT = API_HOSTNAME + "/search_song";
var PLAYLISTS_ENDPOINT = API_HOSTNAME + "/playlists";
var ADD_SONG_ENDPOINT = API_HOSTNAME + "/add_song";
/**
* Path to jQuery, which is always included with any connector
*/
var JQUERY_PATH = "jquery-1.6.1.min.js";
/**
* Notifications
*/
var NOTIFICATION_TIMEOUT = 2000;
var NOTIFICATION_SEPARATOR = ':::';
/**
* Page action icons
*/
var ICON_LOGO = 'icon.png'; // Audioscrobbler logo
var ICON_UNKNOWN = 'icon_unknown.png'; // not recognized
var ICON_NOTE = 'icon_note.png'; // now playing
var ICON_NOTE_DISABLED = 'icon_note_gray.png'; // disabled
var ICON_TICK = 'icon_tick.png'; // scrobbled
var ICON_TICK_DISABLED = 'icon_tick_gray.png'; // disabled
var ICON_CONN_DISABLED = 'icon_cross_gray.png'; // connector is disabled
/**
* Icon - title - popup set identificators
*/
var ACTION_UNKNOWN = 1;
var ACTION_NOWPLAYING = 2;
var ACTION_SCROBBLED = 3;
var ACTION_UPDATED = 4;
var ACTION_DISABLED = 5;
var ACTION_REENABLED = 6;
var ACTION_CONN_DISABLED = 7;
var ACTION_SITE_RECOGNIZED = 8;
var ACTION_SITE_DISABLED = 9;
var DEBUG_MODE = false;