Remove JS

This commit is contained in:
Andras Schmelczer 2024-12-18 21:28:56 +00:00
parent 7c616b3055
commit 3f73578fc9
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
4 changed files with 16 additions and 16 deletions

View file

@ -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;

View file

@ -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 {

View file

@ -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({

View file

@ -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({