forked from matrix/element-web
Merge branch 'poljar/seshat-filepanel' into develop
This commit is contained in:
commit
c0558f3527
|
@ -370,6 +370,18 @@ ipcMain.on('seshat', async function(ev, payload) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'loadFileEvents':
|
||||||
|
if (eventIndex === null) ret = [];
|
||||||
|
else {
|
||||||
|
try {
|
||||||
|
ret = await eventIndex.loadFileEvents(args[0]);
|
||||||
|
} catch (e) {
|
||||||
|
sendError(payload.id, e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case 'loadCheckpoints':
|
case 'loadCheckpoints':
|
||||||
if (eventIndex === null) ret = [];
|
if (eventIndex === null) ret = [];
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -144,6 +144,10 @@ class SeshatIndexManager extends BaseEventIndexManager {
|
||||||
return this._ipcCall('removeCrawlerCheckpoint', checkpoint);
|
return this._ipcCall('removeCrawlerCheckpoint', checkpoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async loadFileEvents(args): Promise<[EventAndProfile]> {
|
||||||
|
return this._ipcCall('loadFileEvents', args);
|
||||||
|
}
|
||||||
|
|
||||||
async loadCheckpoints(): Promise<[CrawlerCheckpoint]> {
|
async loadCheckpoints(): Promise<[CrawlerCheckpoint]> {
|
||||||
return this._ipcCall('loadCheckpoints');
|
return this._ipcCall('loadCheckpoints');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue