chore: update dependencies

This commit is contained in:
2023-12-29 08:26:13 +07:00
parent 4fc3cc8a80
commit e1edba8a78
23 changed files with 1024 additions and 825 deletions

View File

@@ -1,6 +1,6 @@
import { ImageIcon, LoaderIcon } from "@lume/icons";
import { message, open } from "@tauri-apps/plugin-dialog";
import { readBinaryFile } from "@tauri-apps/plugin-fs";
import { readFile } from "@tauri-apps/plugin-fs";
import { useState } from "react";
export function ArticleCoverUploader({ setCover }) {
@@ -37,7 +37,7 @@ export function ArticleCoverUploader({ setCover }) {
return;
}
const file = await readBinaryFile(selected.path);
const file = await readFile(selected.path);
const blob = new Blob([file]);
const data = new FormData();