xref: /MusicFree/src/constants/commonConst.ts (revision 7993f90e543777feeadd153fa65d719529df316d)
1export const internalSymbolKey = Symbol.for('$');
2export const internalSerializeKey = '$';
3export const localMusicSheetId = 'local-music-sheet';
4
5export const localPluginPlatform = '本地';
6export const localPluginHash = 'local-plugin-hash';
7export const tabName = {
8    music: '单曲',
9    album: '专辑',
10    artist: '作者',
11};
12
13export enum RequestStateCode {
14    /** 空闲 */
15    IDLE = 0,
16    /** 检索首页 */
17    PENDING_FP = 1,
18    /** 检索中 */
19    PENDING = 2,
20    /** 部分结束 */
21    PARTLY_DONE = 4,
22    /** 全部结束 */
23    FINISHED = 5,
24}
25
26export const StorageKeys = {
27    MediaMetaKeys: 'media-meta-keys',
28    MediaCache: 'media-cache',
29    LocalMusicSheet: 'local-music-sheet',
30};
31
32export const CacheControl = {
33    Cache: 'cache',
34    NoCache: 'no-cache',
35    NoStore: 'no-store',
36};
37