Constants.ets 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export const APP_ID = "wx263d1c80d204c3c0"
  2. export const APP_SECRET = "a29d0d08885334589698837e46d4573a"
  3. // WebDAV相关常量
  4. export class Constants {
  5. // WebDAV Preferences名称
  6. public static readonly WEBDAV_PREFERENCE_NAME: string = 'WebdavPreferences'
  7. // 分块加载大小
  8. public static readonly CHUNK_SIZE: number = 100
  9. // 音频文件扩展名
  10. public static readonly AUDIO_EXTENSIONS = ['.mp3','.wav','.wma','.mp2','.mov','.flac',
  11. '.midi','.ra','.aac','.ape','.cda','.alac','.m4a','.mp4','.wmv','.mkv',
  12. '.3gv','.m4v','.avi','.rmvb','.flv','.3g2','.rmvb','.mpg','.webm','.ogv','.f4v','.swf'
  13. ,'.dsf','.vob','.3gp','.mpeg','.ts','.ogg','.opus','.wv','.aiff','.amr','.aif','.dff'
  14. ,'.aif','.au','.eac3','.mlp','.tak','.thd','.tta','.wv','.ac3','.amr','.mka','.mpc','.ra','.dts'
  15. , '.asf','.m2ts','.m4b','.mts','.rm','.wtv','.av3a','.dsd']
  16. // 图片扩展名
  17. public static readonly IMAGE_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.webp', '.bmp']
  18. // 歌词扩展名
  19. public static readonly LYRIC_EXTENSIONS = ['.lrc']
  20. // 默认值
  21. public static readonly UNKNOWN_NAME: string = '未命名'
  22. public static readonly UNKNOWN_TITLE: string = '未知标题'
  23. public static readonly UNKNOWN_ARTIST: string = '未知艺术家'
  24. public static readonly UNKNOWN_SAMPLE_RATE: string = '未知采样率'
  25. public static readonly UNKNOWN_TRACK_COUNT: string = '未知轨道'
  26. public static readonly UNKNOWN_MIME_TYPE: string = 'audio/mpeg'
  27. // 默认封面
  28. public static readonly COMMON_SONG_DEFAULT_IMAGE: ResourceStr = $r('app.media.music_red')
  29. public static readonly COMMON_BORDER_RADIUS: number = 8
  30. public static readonly COMMON_HIGHLIGHT_COLOR: string = '#e45050'
  31. public static readonly COMMON_HIGHLIGHT_LIGHT_COLOR: string = '#f9d7d7'
  32. }