Introduced schema base implementation
This commit is contained in:
parent
24a5d1111f
commit
9db0a451d6
1 changed files with 9 additions and 3 deletions
|
@ -109,8 +109,8 @@ export class Store {
|
||||||
"equalizer": {
|
"equalizer": {
|
||||||
'preset': "default",
|
'preset': "default",
|
||||||
'frequencies': [32, 63, 125, 250, 500, 1000, 2000, 4000, 8000, 16000],
|
'frequencies': [32, 63, 125, 250, 500, 1000, 2000, 4000, 8000, 16000],
|
||||||
'gain': [0,0,0,0,0,0,0,0,0,0],
|
'gain': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
'Q': [1,1,1,1,1,1,1,1,1,1],
|
'Q': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
||||||
'mix': 1,
|
'mix': 1,
|
||||||
'vibrantBass': 0,
|
'vibrantBass': 0,
|
||||||
'presets': [],
|
'presets': [],
|
||||||
|
@ -165,11 +165,17 @@ export class Store {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
private schema: ElectronStore.Schema<any> = {
|
||||||
|
"general.discord_rpc": {
|
||||||
|
type: 'object'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
Store.cfg = new ElectronStore({
|
Store.cfg = new ElectronStore({
|
||||||
name: 'cider-config',
|
name: 'cider-config',
|
||||||
defaults: this.defaults,
|
defaults: this.defaults,
|
||||||
|
schema: this.schema,
|
||||||
migrations: this.migrations,
|
migrations: this.migrations,
|
||||||
clearInvalidConfig: true
|
clearInvalidConfig: true
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue