mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-21 01:19:58 +01:00
Increased the UI cover art request size from 300px to 600px for sharper images on high-DPI displays. Replaced BiLinear with CatmullRom (bicubic) interpolation for higher quality image resizing. Extracted the hardcoded size into a COVER_ART_SIZE constant in the frontend and consolidated backend sizes into a CacheWarmerImageSizes slice. Removed the unused UIThumbnailSize constant. Signed-off-by: Deluan <deluan@navidrome.org>
35 lines
775 B
JavaScript
35 lines
775 B
JavaScript
export const REST_URL = '/api'
|
|
|
|
export const INSIGHTS_DOC_URL =
|
|
'https://navidrome.org/docs/getting-started/insights'
|
|
|
|
export const M3U_MIME_TYPE = 'audio/x-mpegurl'
|
|
|
|
export const AUTO_THEME_ID = 'AUTO_THEME_ID'
|
|
|
|
export const AUTO_THEME_CONFIG_VALUE = 'Auto'
|
|
|
|
export const DraggableTypes = {
|
|
SONG: 'song',
|
|
ALBUM: 'album',
|
|
DISC: 'disc',
|
|
ARTIST: 'artist',
|
|
ALL: [],
|
|
}
|
|
|
|
DraggableTypes.ALL.push(
|
|
DraggableTypes.SONG,
|
|
DraggableTypes.ALBUM,
|
|
DraggableTypes.DISC,
|
|
DraggableTypes.ARTIST,
|
|
)
|
|
|
|
export const RADIO_PLACEHOLDER_IMAGE = 'internet-radio-icon.svg'
|
|
|
|
export const COVER_ART_SIZE = 600
|
|
|
|
export const DEFAULT_SHARE_BITRATE = 128
|
|
|
|
export const BITRATE_CHOICES = [
|
|
32, 48, 64, 80, 96, 112, 128, 160, 192, 256, 320,
|
|
].map((b) => ({ id: b, name: b.toString() }))
|