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-09-27 07:52:23 -08:00
|
|
|
variousArtistsId: '03b645ef2100dfc42fa9785ea3102295', // See consts.VariousArtistsID in consts.go
|
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,
|
2021-04-07 12:02:52 -08:00
|
|
|
enableStarRating: true,
|
2021-04-18 09:51:00 -08:00
|
|
|
defaultTheme: 'Dark',
|
2022-09-27 15:16:10 -08:00
|
|
|
defaultLanguage: '',
|
2022-11-11 12:31:28 -09:00
|
|
|
defaultUIVolume: 100,
|
2021-05-02 13:10:56 -08:00
|
|
|
enableUserEditing: true,
|
2021-05-30 11:36:10 -08:00
|
|
|
devEnableShare: true,
|
2021-09-11 09:11:15 -08:00
|
|
|
devSidebarPlaylists: true,
|
2021-07-02 05:50:07 -08:00
|
|
|
lastFMEnabled: true,
|
2021-06-21 13:09:34 -08:00
|
|
|
lastFMApiKey: '9b94a5515ea66b2da3ec03c12300327e',
|
2021-11-17 17:11:53 -09:00
|
|
|
listenBrainzEnabled: true,
|
2021-06-28 13:18:32 -08:00
|
|
|
enableCoverAnimation: true,
|
2021-09-26 11:32:40 -08:00
|
|
|
devShowArtistPage: true,
|
2023-01-17 11:52:00 -09:00
|
|
|
enableReplayGain: true,
|
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
|