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 lib from "../../backend/sync_lib/pkg/sync_lib.js";
import * as wasmBin from "../../backend/sync_lib/pkg/sync_lib_bg.wasm"; import * as wasmBin from "../../backend/sync_lib/pkg/sync_lib_bg.wasm";
import { SyncSettingsTab } from "./views/settings-tab.js"; import { SyncSettingsTab } from "./views/settings-tab";
import { SyncView } from "./views/sync-view.js"; import { SyncView } from "./views/sync-view";
import { Logger } from "./logger.js"; import { Logger } from "./logger";
import { SyncEventHandler } from "./events/sync-event-handler.js"; import { SyncEventHandler } from "./events/sync-event-handler";
import { SyncService } from "./services/sync_service.js"; import { SyncService } from "./services/sync_service";
import { Database } from "./database/database.js"; import { Database } from "./database/database";
import { applyRemoteChangesLocally } from "./sync-operations/apply-remote-changes-locally.js"; import { applyRemoteChangesLocally } from "./sync-operations/apply-remote-changes-locally";
import { ObsidianFileOperations } from "./file-operations/obsidian-file-operations.js"; import { ObsidianFileOperations } from "./file-operations/obsidian-file-operations";
import { applyLocalChangesRemotely } from "./sync-operations/apply-local-changes-remotely.js"; import { applyLocalChangesRemotely } from "./sync-operations/apply-local-changes-remotely";
export default class SyncPlugin extends Plugin { export default class SyncPlugin extends Plugin {
private remoteListenerIntervalId: number | null = null; private remoteListenerIntervalId: number | null = null;

View file

@ -9,7 +9,7 @@ import {
VaultUpdateId, VaultUpdateId,
RelativePath, RelativePath,
DocumentId, DocumentId,
} from "src/database/document-metadata.js"; } from "src/database/document-metadata";
import PQueue from "p-queue"; import PQueue from "p-queue";
export class SyncService { export class SyncService {

View file

@ -3,9 +3,9 @@ import { Database } from "src/database/database";
import { Logger } from "src/logger"; import { Logger } from "src/logger";
import { SyncService } from "src/services/sync_service"; import { SyncService } from "src/services/sync_service";
import { hash } from "src/utils/hash"; import { hash } from "src/utils/hash";
import { unlockDocument, waitForDocumentLock } from "./locks.js"; import { unlockDocument, waitForDocumentLock } from "./locks";
import { FileOperations } from "src/file-operations/file-operations.js"; import { FileOperations } from "src/file-operations/file-operations";
import { RelativePath } from "src/database/document-metadata.js"; import { RelativePath } from "src/database/document-metadata";
/// This can be used when updating a files content and/or path. /// This can be used when updating a files content and/or path.
export async function syncLocallyCreatedFile({ export async function syncLocallyCreatedFile({

View file

@ -3,9 +3,9 @@ import { Database } from "src/database/database";
import { Logger } from "src/logger"; import { Logger } from "src/logger";
import { SyncService } from "src/services/sync_service"; import { SyncService } from "src/services/sync_service";
import { hash } from "src/utils/hash"; import { hash } from "src/utils/hash";
import { unlockDocument, waitForDocumentLock } from "./locks.js"; import { unlockDocument, waitForDocumentLock } from "./locks";
import { FileOperations } from "src/file-operations/file-operations.js"; import { FileOperations } from "src/file-operations/file-operations";
import { RelativePath } from "src/database/document-metadata.js"; import { RelativePath } from "src/database/document-metadata";
/// This can be used when updating a files content and/or path. /// This can be used when updating a files content and/or path.
export async function syncLocallyUpdatedFile({ export async function syncLocallyUpdatedFile({