404253a881
* Added option to enable/disable favorites in Song * Added option to enable/disable favorites in Artist * Added option to enable/disable favorites in Albums and Favorites tab in sidebar * Added option to enable/disable favorites in Player * Set default value of enableFavourites as true * Improved the functionality to enable/disable Favorites * Add `EnableFavourites` config option Co-authored-by: Deluan <deluan@navidrome.org>
32 lines
727 B
JavaScript
32 lines
727 B
JavaScript
// These defaults are only used in development mode. When bundled in the app,
|
|
// the __APP_CONFIG__ object is dynamically filled by the ServeIndex function,
|
|
// in the /server/app/serve_index.go
|
|
const defaultConfig = {
|
|
version: 'dev',
|
|
firstTime: false,
|
|
baseURL: '',
|
|
loginBackgroundURL: 'https://source.unsplash.com/random/1600x900?music',
|
|
enableTranscodingConfig: true,
|
|
enableDownloads: true,
|
|
welcomeMessage: '',
|
|
gaTrackingId: '',
|
|
devActivityPanel: true,
|
|
devFastAccessCoverArt: false,
|
|
enableFavourites: true,
|
|
}
|
|
|
|
let config
|
|
|
|
try {
|
|
const appConfig = JSON.parse(window.__APP_CONFIG__)
|
|
|
|
config = {
|
|
...defaultConfig,
|
|
...appConfig,
|
|
}
|
|
} catch (e) {
|
|
config = defaultConfig
|
|
}
|
|
|
|
export default config
|