🐛 修复 #264

 支持 db.postAttachment 和 db.getAttachment
♻️ 重构版本更新机制
This commit is contained in:
muwoo
2023-10-18 11:02:14 +08:00
parent a7a85a7c62
commit bde5377282
12 changed files with 195 additions and 120 deletions

View File

@@ -85,6 +85,10 @@ window.rubick = {
remove: (doc) => ipcSendSync('dbRemove', { doc }),
bulkDocs: (docs) => ipcSendSync('dbBulkDocs', { docs }),
allDocs: (key) => ipcSendSync('dbAllDocs', { key }),
postAttachment: (docId, attachment, type) =>
ipcSendSync('dbPostAttachment', { docId, attachment, type }),
getAttachment: (docId) => ipcSendSync('dbGetAttachment', { docId }),
getAttachmentType: (docId) => ipcSendSync('dbGetAttachmentType', { docId }),
},
dbStorage: {
setItem: (key, value) => {