mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-12-01 13:03:42 +08:00
47 lines
922 B
TypeScript
47 lines
922 B
TypeScript
export interface Store {
|
|
uiStates: {
|
|
loginPhoneCountryCode: string
|
|
showLyricPanel: boolean
|
|
}
|
|
settings: {
|
|
showSidebar: boolean
|
|
accentColor: string
|
|
unm: {
|
|
enabled: boolean
|
|
sources: Array<
|
|
'migu' | 'kuwo' | 'kugou' | 'ytdl' | 'qq' | 'bilibili' | 'joox'
|
|
>
|
|
searchMode: 'order-first' | 'fast-first'
|
|
proxy: null | {
|
|
protocol: 'http' | 'https' | 'socks5'
|
|
host: string
|
|
port: number
|
|
username?: string
|
|
password?: string
|
|
}
|
|
cookies: {
|
|
qq?: string
|
|
joox?: string
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
export const initialState: Store = {
|
|
uiStates: {
|
|
loginPhoneCountryCode: '+86',
|
|
showLyricPanel: false,
|
|
},
|
|
settings: {
|
|
showSidebar: true,
|
|
accentColor: 'blue',
|
|
unm: {
|
|
enabled: true,
|
|
sources: ['migu'],
|
|
searchMode: 'order-first',
|
|
proxy: null,
|
|
cookies: {},
|
|
},
|
|
},
|
|
}
|