Add status bar

This commit is contained in:
Andras Schmelczer 2024-12-19 21:44:57 +00:00
parent de8a7b607d
commit ec87a65e82
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
12 changed files with 80 additions and 12 deletions

View file

@ -9,11 +9,12 @@ import { SyncView } from "./views/sync-view";
import { Logger } from "./logger";
import { SyncEventHandler } from "./events/sync-event-handler";
import { SyncService } from "./services/sync_service";
import { SyncService } from "./services/sync-service";
import { Database } from "./database/database";
import { applyRemoteChangesLocally } from "./sync-operations/apply-remote-changes-locally";
import { ObsidianFileOperations } from "./file-operations/obsidian-file-operations";
import { applyLocalChangesRemotely } from "./sync-operations/apply-local-changes-remotely";
import { StatusBar } from "./views/status-bar";
export default class SyncPlugin extends Plugin {
private remoteListenerIntervalId: number | null = null;
@ -44,6 +45,8 @@ export default class SyncPlugin extends Plugin {
const syncServer = new SyncService(database);
new StatusBar(this, syncServer);
this.addSettingTab(
new SyncSettingsTab(this.app, this, database, syncServer)
);