2020-04-27 17:23:15 -08:00
|
|
|
// 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
|
2020-04-07 12:58:02 -08:00
|
|
|
const defaultConfig = {
|
2020-04-08 07:00:30 -08:00
|
|
|
version: 'dev',
|
2020-04-07 12:58:02 -08:00
|
|
|
firstTime: false,
|
|
|
|
|
baseURL: '',
|
2021-03-30 20:24:37 -08:00
|
|
|
// Login backgrounds from https://unsplash.com/collections/1065384/music-wallpapers
|
|
|
|
|
loginBackgroundURL: 'https://source.unsplash.com/collection/1065384/1600x900',
|
2020-04-27 17:23:15 -08:00
|
|
|
enableTranscodingConfig: true,
|
2020-11-10 12:14:43 -09:00
|
|
|
enableDownloads: true,
|
2021-04-06 18:18:48 -08:00
|
|
|
enableFavourites: true,
|
|
|
|
|
losslessFormats: 'FLAC,WAV,ALAC,DSF',
|
2020-07-03 07:51:15 -08:00
|
|
|
welcomeMessage: '',
|
2020-07-03 08:53:35 -08:00
|
|
|
gaTrackingId: '',
|
2020-11-25 11:29:46 -09:00
|
|
|
devActivityPanel: true,
|
2020-11-18 12:58:23 -09:00
|
|
|
devFastAccessCoverArt: false,
|
2021-04-07 12:02:52 -08:00
|
|
|
enableStarRating: true,
|
2021-04-18 09:51:00 -08:00
|
|
|
defaultTheme: 'Dark',
|
2020-04-07 12:58:02 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let config
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
const appConfig = JSON.parse(window.__APP_CONFIG__)
|
|
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
...defaultConfig,
|
2020-04-26 10:50:44 -08:00
|
|
|
...appConfig,
|
2020-04-07 12:58:02 -08:00
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
config = defaultConfig
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default config
|