mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
feat: updates
This commit is contained in:
parent
47e41dea9b
commit
ebebf2a733
160 changed files with 4148 additions and 2001 deletions
31
packages/desktop/main/store.ts
Normal file
31
packages/desktop/main/store.ts
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import Store from 'electron-store'
|
||||
|
||||
export interface TypedElectronStore {
|
||||
window: {
|
||||
width: number
|
||||
height: number
|
||||
x?: number
|
||||
y?: number
|
||||
}
|
||||
// settings: State['settings']
|
||||
airplay: {
|
||||
credentials: {
|
||||
[key: string]: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const store = new Store<TypedElectronStore>({
|
||||
defaults: {
|
||||
window: {
|
||||
width: 1440,
|
||||
height: 1024,
|
||||
},
|
||||
// settings: initialState.settings,
|
||||
airplay: {
|
||||
credentials: {},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
export default store
|
||||
Loading…
Add table
Add a link
Reference in a new issue