1
1
import { version } from "../package.json" ;
2
- import { TabItemConfig } from "./types/marketplace-types" ;
2
+ import type { TabItemConfig } from "./types/marketplace-types" ;
3
3
4
4
export const MARKETPLACE_VERSION = version ;
5
5
6
6
const STORAGE_KEY_PREFIX = "marketplace" ;
7
7
export const LOCALSTORAGE_KEYS = {
8
- installedExtensions : `${ STORAGE_KEY_PREFIX } :installed-extensions` ,
9
- installedSnippets : `${ STORAGE_KEY_PREFIX } :installed-snippets` ,
10
- installedThemes : `${ STORAGE_KEY_PREFIX } :installed-themes` ,
11
- activeTab : `${ STORAGE_KEY_PREFIX } :active-tab` ,
12
- tabs : `${ STORAGE_KEY_PREFIX } :tabs` ,
13
- sort : `${ STORAGE_KEY_PREFIX } :sort` ,
14
- // Theme installed store the localsorage key of the theme (e.g. marketplace:installed:NYRI4/Comfy-spicetify/user.css)
15
- themeInstalled : `${ STORAGE_KEY_PREFIX } :theme-installed` ,
16
- localTheme : `${ STORAGE_KEY_PREFIX } :local-theme` ,
17
- albumArtBasedColor : `${ STORAGE_KEY_PREFIX } :albumArtBasedColors` ,
18
- albumArtBasedColorMode : `${ STORAGE_KEY_PREFIX } :albumArtBasedColorsMode` ,
19
- albumArtBasedColorVibrancy : `${ STORAGE_KEY_PREFIX } :albumArtBasedColorsVibrancy` ,
20
- colorShift : `${ STORAGE_KEY_PREFIX } :colorShift` ,
8
+ installedExtensions : `${ STORAGE_KEY_PREFIX } :installed-extensions` ,
9
+ installedSnippets : `${ STORAGE_KEY_PREFIX } :installed-snippets` ,
10
+ installedThemes : `${ STORAGE_KEY_PREFIX } :installed-themes` ,
11
+ activeTab : `${ STORAGE_KEY_PREFIX } :active-tab` ,
12
+ tabs : `${ STORAGE_KEY_PREFIX } :tabs` ,
13
+ sort : `${ STORAGE_KEY_PREFIX } :sort` ,
14
+ // Theme installed store the localsorage key of the theme (e.g. marketplace:installed:NYRI4/Comfy-spicetify/user.css)
15
+ themeInstalled : `${ STORAGE_KEY_PREFIX } :theme-installed` ,
16
+ localTheme : `${ STORAGE_KEY_PREFIX } :local-theme` ,
17
+ albumArtBasedColor : `${ STORAGE_KEY_PREFIX } :albumArtBasedColors` ,
18
+ albumArtBasedColorMode : `${ STORAGE_KEY_PREFIX } :albumArtBasedColorsMode` ,
19
+ albumArtBasedColorVibrancy : `${ STORAGE_KEY_PREFIX } :albumArtBasedColorsVibrancy` ,
20
+ colorShift : `${ STORAGE_KEY_PREFIX } :colorShift`
21
21
} ;
22
22
23
23
// Initalize topbar tabs
24
24
// Data initalized in TabBar.js
25
25
export const ALL_TABS : TabItemConfig [ ] = [
26
- { name : "Extensions" , enabled : true } ,
27
- { name : "Themes" , enabled : true } ,
28
- { name : "Snippets" , enabled : true } ,
29
- { name : "Apps" , enabled : true } ,
30
- { name : "Installed" , enabled : true } ,
26
+ { name : "Extensions" , enabled : true } ,
27
+ { name : "Themes" , enabled : true } ,
28
+ { name : "Snippets" , enabled : true } ,
29
+ { name : "Apps" , enabled : true } ,
30
+ { name : "Installed" , enabled : true }
31
31
] ;
32
32
33
33
// Max GitHub API items per page
@@ -39,16 +39,12 @@ export const CUSTOM_APP_PATH = "/marketplace";
39
39
// Used in Card.tsx
40
40
export const MAX_TAGS = 4 ;
41
41
42
- export const SNIPPETS_PAGE_URL =
43
- "https://github.com/spicetify/marketplace/blob/main/src/resources/snippets.ts" ;
42
+ export const SNIPPETS_PAGE_URL = "https://github.com/spicetify/marketplace/blob/main/src/resources/snippets.ts" ;
44
43
45
- export const SNIPPETS_URL =
46
- "https://raw.githubusercontent.com/spicetify/marketplace/main/resources/snippets.json" ;
44
+ export const SNIPPETS_URL = "https://raw.githubusercontent.com/spicetify/marketplace/main/resources/snippets.json" ;
47
45
48
- export const BLACKLIST_URL =
49
- "https://raw.githubusercontent.com/spicetify/marketplace/main/resources/blacklist.json" ;
46
+ export const BLACKLIST_URL = "https://raw.githubusercontent.com/spicetify/marketplace/main/resources/blacklist.json" ;
50
47
51
48
export const RELEASES_URL = "https://github.com/spicetify/marketplace/releases" ;
52
49
53
- export const LATEST_RELEASE_URL =
54
- "https://api.github.com/repos/spicetify/marketplace/releases/latest" ;
50
+ export const LATEST_RELEASE_URL = "https://api.github.com/repos/spicetify/marketplace/releases/latest" ;
0 commit comments