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