From 3f73578fc906a8d55ea499642c867aea24efb8f9 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Wed, 18 Dec 2024 21:28:56 +0000 Subject: [PATCH] Remove JS --- plugin/src/plugin.ts | 18 +++++++++--------- plugin/src/services/sync_service.ts | 2 +- .../sync-locally-created-file.ts | 6 +++--- .../sync-locally-updated-file.ts | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/plugin/src/plugin.ts b/plugin/src/plugin.ts index ee8b671e..b57f01f7 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 592f1647..cbdd63a1 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 f6227fbf..cbb828db 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 0ead1110..01c1b359 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({