mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-08 17:20:00 +08:00
🚧 WIP: almost finish shortKey system
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user