Use new Rust bindings

This commit is contained in:
Andras Schmelczer 2025-01-02 11:58:28 +00:00
parent b2a8db14b6
commit b6d94bce0b
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 30 additions and 34 deletions

View file

@ -32,6 +32,8 @@ export default class SyncPlugin extends Plugin {
)
);
lib.setPanicHook();
const database = new Database(
await this.loadData(),
this.saveData.bind(this)
@ -106,7 +108,7 @@ export default class SyncPlugin extends Plugin {
this.registerView(
HistoryView.TYPE,
(leaf) => new HistoryView(leaf, this.history)
(leaf) => new HistoryView(leaf, database, this.history)
);
this.registerView(LogsView.TYPE, (leaf) => new LogsView(leaf));