fix: next round of cleanups

This commit is contained in:
2026-02-27 11:26:00 +01:00
parent c6edacba51
commit 18e0557ef5
25 changed files with 1021 additions and 1415 deletions

View File

@@ -127,15 +127,17 @@ export const electronAPI: ElectronAPI = {
rebuild: () => ipcRenderer.invoke('postMedia:rebuild'),
},
// Sync
// Sync (git operations via GitApiAdapter)
sync: {
configure: (config: unknown) => ipcRenderer.invoke('sync:configure', config),
start: (direction?: 'push' | 'pull' | 'bidirectional') => ipcRenderer.invoke('sync:start', direction),
checkAvailability: () => ipcRenderer.invoke('sync:checkAvailability'),
getRepoState: () => ipcRenderer.invoke('sync:getRepoState'),
getStatus: () => ipcRenderer.invoke('sync:getStatus'),
isConfigured: () => ipcRenderer.invoke('sync:isConfigured'),
getPendingCount: () => ipcRenderer.invoke('sync:getPendingCount'),
getLog: (limit?: number) => ipcRenderer.invoke('sync:getLog', limit),
stopAutoSync: () => ipcRenderer.invoke('sync:stopAutoSync'),
getHistory: (limit?: number) => ipcRenderer.invoke('sync:getHistory', limit),
getRemoteState: () => ipcRenderer.invoke('sync:getRemoteState'),
fetch: () => ipcRenderer.invoke('sync:fetch'),
pull: () => ipcRenderer.invoke('sync:pull'),
push: () => ipcRenderer.invoke('sync:push'),
commitAll: (message: string) => ipcRenderer.invoke('sync:commitAll', message),
},
// Tasks