add qrcode export import

This commit is contained in:
fyears
2021-12-11 17:33:55 +08:00
parent 563c2c3ff6
commit 8624141780
9 changed files with 255 additions and 53 deletions
+1 -10
View File
@@ -4,7 +4,7 @@ import { AuthType, BufferLike, createClient } from "webdav/web";
import type { WebDAVClient, ResponseDataDetailed, FileStat } from "webdav/web";
export type { WebDAVClient } from "webdav/web";
import type { RemoteItem } from "./baseTypes";
import type { RemoteItem, WebdavAuthType, WebdavConfig } from "./baseTypes";
import {
arrayBufferToBuffer,
@@ -14,15 +14,6 @@ import {
} from "./misc";
import { decryptArrayBuffer, encryptArrayBuffer } from "./encrypt";
export type WebdavAuthType = "digest" | "basic";
export interface WebdavConfig {
address: string;
username: string;
password: string;
authType: WebdavAuthType;
}
export const DEFAULT_WEBDAV_CONFIG = {
address: "",
username: "",