diff --git a/plugin/src/plugin.ts b/plugin/src/plugin.ts index ee8b671..b57f01f 100644 --- a/plugin/src/plugin.ts +++ b/plugin/src/plugin.ts @@ -2,16 +2,16 @@ import { Editor, MarkdownView, Plugin, WorkspaceLeaf } from "obsidian"; import * as lib from "../../backend/sync_lib/pkg/sync_lib.js"; import * as wasmBin from "../../backend/sync_lib/pkg/sync_lib_bg.wasm"; -import { SyncSettingsTab } from "./views/settings-tab.js"; -import { SyncView } from "./views/sync-view.js"; +import { SyncSettingsTab } from "./views/settings-tab"; +import { SyncView } from "./views/sync-view"; -import { Logger } from "./logger.js"; -import { SyncEventHandler } from "./events/sync-event-handler.js"; -import { SyncService } from "./services/sync_service.js"; -import { Database } from "./database/database.js"; -import { applyRemoteChangesLocally } from "./sync-operations/apply-remote-changes-locally.js"; -import { ObsidianFileOperations } from "./file-operations/obsidian-file-operations.js"; -import { applyLocalChangesRemotely } from "./sync-operations/apply-local-changes-remotely.js"; +import { Logger } from "./logger"; +import { SyncEventHandler } from "./events/sync-event-handler"; +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"; export default class SyncPlugin extends Plugin { private remoteListenerIntervalId: number | null = null; diff --git a/plugin/src/services/sync_service.ts b/plugin/src/services/sync_service.ts index 592f164..cbdd63a 100644 --- a/plugin/src/services/sync_service.ts +++ b/plugin/src/services/sync_service.ts @@ -9,7 +9,7 @@ import { VaultUpdateId, RelativePath, DocumentId, -} from "src/database/document-metadata.js"; +} from "src/database/document-metadata"; import PQueue from "p-queue"; export class SyncService { diff --git a/plugin/src/sync-operations/sync-locally-created-file.ts b/plugin/src/sync-operations/sync-locally-created-file.ts index f6227fb..cbb828d 100644 --- a/plugin/src/sync-operations/sync-locally-created-file.ts +++ b/plugin/src/sync-operations/sync-locally-created-file.ts @@ -3,9 +3,9 @@ import { Database } from "src/database/database"; import { Logger } from "src/logger"; import { SyncService } from "src/services/sync_service"; import { hash } from "src/utils/hash"; -import { unlockDocument, waitForDocumentLock } from "./locks.js"; -import { FileOperations } from "src/file-operations/file-operations.js"; -import { RelativePath } from "src/database/document-metadata.js"; +import { unlockDocument, waitForDocumentLock } from "./locks"; +import { FileOperations } from "src/file-operations/file-operations"; +import { RelativePath } from "src/database/document-metadata"; /// This can be used when updating a files content and/or path. export async function syncLocallyCreatedFile({ diff --git a/plugin/src/sync-operations/sync-locally-updated-file.ts b/plugin/src/sync-operations/sync-locally-updated-file.ts index 0ead111..01c1b35 100644 --- a/plugin/src/sync-operations/sync-locally-updated-file.ts +++ b/plugin/src/sync-operations/sync-locally-updated-file.ts @@ -3,9 +3,9 @@ import { Database } from "src/database/database"; import { Logger } from "src/logger"; import { SyncService } from "src/services/sync_service"; import { hash } from "src/utils/hash"; -import { unlockDocument, waitForDocumentLock } from "./locks.js"; -import { FileOperations } from "src/file-operations/file-operations.js"; -import { RelativePath } from "src/database/document-metadata.js"; +import { unlockDocument, waitForDocumentLock } from "./locks"; +import { FileOperations } from "src/file-operations/file-operations"; +import { RelativePath } from "src/database/document-metadata"; /// This can be used when updating a files content and/or path. export async function syncLocallyUpdatedFile({