split settings and fix format

This commit is contained in:
fyears
2021-12-31 23:46:52 +08:00
parent dde7d9a732
commit d5ba0a0e0d
11 changed files with 974 additions and 1028 deletions
+5 -12
View File
@@ -1,18 +1,11 @@
import { Buffer } from "buffer";
import { FileStats, Vault } from "obsidian";
import { Vault } from "obsidian";
import type { FileStat, WebDAVClient } from "webdav/web";
import { AuthType, BufferLike, createClient } from "webdav/web";
import type { WebDAVClient, ResponseDataDetailed, FileStat } from "webdav/web";
export type { WebDAVClient } from "webdav/web";
import type { RemoteItem, WebdavAuthType, WebdavConfig } from "./baseTypes";
import {
arrayBufferToBuffer,
bufferToArrayBuffer,
mkdirpInVault,
getPathFolder,
} from "./misc";
import type { RemoteItem, WebdavConfig } from "./baseTypes";
import { decryptArrayBuffer, encryptArrayBuffer } from "./encrypt";
import { bufferToArrayBuffer, getPathFolder, mkdirpInVault } from "./misc";
export type { WebDAVClient } from "webdav/web";
export const DEFAULT_WEBDAV_CONFIG = {
address: "",