🚧 WIP: almost finish shortKey system

This commit is contained in:
Molunerfinn
2019-12-22 17:22:32 +08:00
parent b8ec879e23
commit fec4360043
17 changed files with 384 additions and 341 deletions

View File

@@ -37,7 +37,7 @@ class DB {
this.db.set('settings.shortKey[picgo:upload]', {
enable: true,
key: 'CommandOrControl+Shift+P',
name: 'picgo:upload',
name: 'upload',
label: '快捷上传'
}).write()
}
@@ -58,6 +58,9 @@ class DB {
// @ts-ignore
return this.read().get(key).insert(value).write()
}
unset (key: string, value: any): boolean {
return this.read().get(key).unset(value).write()
}
}
export default new DB()