2020-04-27 21:23:15 -04: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 16:58:02 -04:00
|
|
|
const defaultConfig = {
|
2020-04-08 11:00:30 -04:00
|
|
|
version: 'dev',
|
2020-04-07 16:58:02 -04:00
|
|
|
firstTime: false,
|
|
|
|
|
baseURL: '',
|
2021-09-27 11:52:23 -04:00
|
|
|
variousArtistsId: '03b645ef2100dfc42fa9785ea3102295', // See consts.VariousArtistsID in consts.go
|
2021-03-31 09:54:37 +05:30
|
|
|
// Login backgrounds from https://unsplash.com/collections/1065384/music-wallpapers
|
|
|
|
|
loginBackgroundURL: 'https://source.unsplash.com/collection/1065384/1600x900',
|
2023-02-01 10:21:30 -05:00
|
|
|
maxSidebarPlaylists: 100,
|
2020-04-27 21:23:15 -04:00
|
|
|
enableTranscodingConfig: true,
|
2020-11-10 16:14:43 -05:00
|
|
|
enableDownloads: true,
|
2021-04-06 22:18:48 -04:00
|
|
|
enableFavourites: true,
|
|
|
|
|
losslessFormats: 'FLAC,WAV,ALAC,DSF',
|
2020-07-03 11:51:15 -04:00
|
|
|
welcomeMessage: '',
|
2020-07-03 12:53:35 -04:00
|
|
|
gaTrackingId: '',
|
2020-11-25 15:29:46 -05:00
|
|
|
devActivityPanel: true,
|
2021-04-08 01:32:52 +05:30
|
|
|
enableStarRating: true,
|
2021-04-18 13:51:00 -04:00
|
|
|
defaultTheme: 'Dark',
|
2022-09-27 19:16:10 -04:00
|
|
|
defaultLanguage: '',
|
2022-11-11 16:31:28 -05:00
|
|
|
defaultUIVolume: 100,
|
2021-05-02 17:10:56 -04:00
|
|
|
enableUserEditing: true,
|
2023-01-29 20:33:10 -05:00
|
|
|
enableSharing: true,
|
2023-03-10 23:01:03 -05:00
|
|
|
defaultDownloadableShare: true,
|
2021-09-11 13:11:15 -04:00
|
|
|
devSidebarPlaylists: true,
|
2021-07-02 09:50:07 -04:00
|
|
|
lastFMEnabled: true,
|
2021-11-17 21:11:53 -05:00
|
|
|
listenBrainzEnabled: true,
|
2023-01-25 10:28:03 -05:00
|
|
|
enableExternalServices: true,
|
2021-06-28 17:18:32 -04:00
|
|
|
enableCoverAnimation: true,
|
2021-09-27 01:02:40 +05:30
|
|
|
devShowArtistPage: true,
|
2023-01-17 20:52:00 +00:00
|
|
|
enableReplayGain: true,
|
2023-01-21 21:44:26 -05:00
|
|
|
defaultDownsamplingFormat: 'opus',
|
2023-01-22 20:35:59 -05:00
|
|
|
publicBaseUrl: '/share',
|
2020-04-07 16:58:02 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let config
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
const appConfig = JSON.parse(window.__APP_CONFIG__)
|
|
|
|
|
config = {
|
|
|
|
|
...defaultConfig,
|
2020-04-26 14:50:44 -04:00
|
|
|
...appConfig,
|
2020-04-07 16:58:02 -04:00
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
config = defaultConfig
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-19 22:52:55 -05:00
|
|
|
export let shareInfo
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
shareInfo = JSON.parse(window.__SHARE_INFO__)
|
|
|
|
|
} catch (e) {
|
|
|
|
|
shareInfo = null
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-07 16:58:02 -04:00
|
|
|
export default config
|