mirror of
https://github.com/docmost/docmost.git
synced 2026-05-08 07:13:06 +08:00
6d024fc3de
* refactor imports - WIP * Add readstream * WIP * fix attachmentId render * fix attachmentId render * turndown video tag * feat: add stream upload support and improve file handling - Add stream upload functionality to storage drivers\n- Improve ZIP file extraction with better encoding handling\n- Fix attachment ID rendering issues\n- Add AWS S3 upload stream support\n- Update dependencies for better compatibility * WIP * notion formatter * move embed parser to editor-ext package * import embeds * utility files * cleanup * Switch from happy-dom to cheerio * Refine code * WIP * bug fixes and UI * sync * WIP * sync * keep import modal mounted * Show modal during upload * WIP * WIP
15 lines
450 B
TypeScript
15 lines
450 B
TypeScript
import api from "@/lib/api-client";
|
|
import { IFileTask } from "@/features/file-task/types/file-task.types.ts";
|
|
|
|
export async function getFileTaskById(fileTaskId: string): Promise<IFileTask> {
|
|
const req = await api.post<IFileTask>("/file-tasks/info", {
|
|
fileTaskId: fileTaskId,
|
|
});
|
|
return req.data;
|
|
}
|
|
|
|
export async function getFileTasks(): Promise<IFileTask[]> {
|
|
const req = await api.post<IFileTask[]>("/file-tasks");
|
|
return req.data;
|
|
}
|