quintodrome/ui/src/config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.5 KiB
JavaScript
Raw Normal View History

// 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: '',
variousArtistsId: '03b645ef2100dfc42fa9785ea3102295', // See consts.VariousArtistsID in consts.go
// Login backgrounds from https://unsplash.com/collections/1065384/music-wallpapers
loginBackgroundURL: 'https://source.unsplash.com/collection/1065384/1600x900',
maxSidebarPlaylists: 100,
enableTranscodingConfig: true,
enableDownloads: true,
2021-04-06 18:18:48 -08:00
enableFavourites: true,
losslessFormats: 'FLAC,WAV,ALAC,DSF',
welcomeMessage: '',
gaTrackingId: '',
devActivityPanel: true,
enableStarRating: true,
2021-04-18 09:51:00 -08:00
defaultTheme: 'Dark',
defaultLanguage: '',
defaultUIVolume: 100,
enableUserEditing: true,
enableSharing: true,
2024-09-15 13:09:40 -08:00
shareURL: '',
defaultDownloadableShare: true,
devSidebarPlaylists: true,
lastFMEnabled: true,
listenBrainzEnabled: true,
enableExternalServices: true,
enableCoverAnimation: true,
devShowArtistPage: true,
enableReplayGain: true,
defaultDownsamplingFormat: 'opus',
publicBaseUrl: '/share',
}
let config
try {
const appConfig = JSON.parse(window.__APP_CONFIG__)
config = {
...defaultConfig,
2020-04-26 10:50:44 -08:00
...appConfig,
}
} catch (e) {
config = defaultConfig
}
2023-01-19 18:52:55 -09:00
export let shareInfo
try {
shareInfo = JSON.parse(window.__SHARE_INFO__)
} catch (e) {
shareInfo = null
}
export default config