From cfa1412e80f2983e6fa20ea8f2d4b2ec7069f365 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 15 Dec 2024 11:54:03 +0000 Subject: [PATCH] Small changes --- plugin/src/database/document-metadata.ts | 1 + plugin/src/database/sync-settings.ts | 8 ++++---- plugin/src/views/sync-view.ts | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/plugin/src/database/document-metadata.ts b/plugin/src/database/document-metadata.ts index 80ec5636..14a85a3c 100644 --- a/plugin/src/database/document-metadata.ts +++ b/plugin/src/database/document-metadata.ts @@ -1,4 +1,5 @@ export type VaultUpdateId = number; +export type DocumentId = string; export type RelativePath = string; export interface DocumentMetadata { diff --git a/plugin/src/database/sync-settings.ts b/plugin/src/database/sync-settings.ts index eb4729b3..cec22fa2 100644 --- a/plugin/src/database/sync-settings.ts +++ b/plugin/src/database/sync-settings.ts @@ -1,13 +1,13 @@ export interface SyncSettings { remoteUri: string; token: string; - fullScanIntervalInSeconds: number; - fullScanEnabled: boolean; + fetchChangesUpdateInterval: number; + isSyncEnabled: boolean; } export const DEFAULT_SETTINGS: SyncSettings = { remoteUri: "", token: "", - fullScanIntervalInSeconds: 60, - fullScanEnabled: true, + fetchChangesUpdateInterval: 1, + isSyncEnabled: true, }; diff --git a/plugin/src/views/sync-view.ts b/plugin/src/views/sync-view.ts index 4c53593a..46d6c2f8 100644 --- a/plugin/src/views/sync-view.ts +++ b/plugin/src/views/sync-view.ts @@ -4,7 +4,7 @@ import { Logger } from "src/logger"; export class SyncView extends ItemView { public static TYPE = "example-view"; - constructor(leaf: WorkspaceLeaf) { + public constructor(leaf: WorkspaceLeaf) { super(leaf); }