1export const internalSymbolKey = Symbol.for('$'); 2export const internalSerializeKey = '$'; 3export const localMusicSheetId = 'local-music-sheet'; 4export const musicHistorySheetId = 'history-music-sheet'; 5 6export const localPluginPlatform = '本地'; 7export const localPluginHash = 'local-plugin-hash'; 8 9export const internalFakeSoundKey = 'fake-key'; 10 11const emptyFunction = () => {}; 12Object.freeze(emptyFunction); 13export {emptyFunction}; 14 15export enum RequestStateCode { 16 /** 空闲 */ 17 IDLE = 0, 18 /** 检索首页 */ 19 PENDING_FP = 1, 20 /** 检索中 */ 21 PENDING = 2, 22 /** 部分结束 */ 23 PARTLY_DONE = 4, 24 /** 全部结束 */ 25 FINISHED = 5, 26} 27 28export const StorageKeys = { 29 MediaMetaKeys: 'media-meta-keys', 30 PluginMetaKey: 'plugin-meta', 31 MediaCache: 'media-cache', 32 LocalMusicSheet: 'local-music-sheet', 33}; 34 35export const CacheControl = { 36 Cache: 'cache', 37 NoCache: 'no-cache', 38 NoStore: 'no-store', 39}; 40 41export const supportLocalMediaType = [ 42 '.mp3', 43 '.flac', 44 '.wma', 45 '.wav', 46 '.m4a', 47 '.ogg', 48 '.acc', 49 '.aac', 50 '.ape', 51 '.opus', 52]; 53