Updated filelisting to composition api & typescript. TODO: FILELISTING BROKEN
This commit is contained in:
parent
5d8f4863ca
commit
3d6328fbb3
@ -1,5 +1,4 @@
|
||||
import { defineStore } from "pinia";
|
||||
import dayjs from "dayjs";
|
||||
import i18n, { detectLocale, setLocale } from "@/i18n";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
|
||||
|
||||
5
frontend/src/types/user.d.ts
vendored
5
frontend/src/types/user.d.ts
vendored
@ -11,6 +11,11 @@ interface IUser {
|
||||
hideDotfiles: boolean;
|
||||
singleClick: boolean;
|
||||
dateFormat: boolean;
|
||||
viewMode: "list" | "mosaic" | "mosaic gallery";
|
||||
sorting?: {
|
||||
by: string,
|
||||
asc: boolean
|
||||
}
|
||||
}
|
||||
|
||||
interface IUserForm {
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
import { useUploadStore } from "@/stores/upload";
|
||||
import url from "@/utils/url";
|
||||
|
||||
export function checkConflict(
|
||||
files: UploadList,
|
||||
dest: ResourceItem[]
|
||||
): boolean {
|
||||
export function checkConflict(files: UploadList, dest: Resource[]): boolean {
|
||||
if (typeof dest === "undefined" || dest === null) {
|
||||
dest = [];
|
||||
}
|
||||
@ -29,7 +26,7 @@ export function checkConflict(
|
||||
return dest.some((d) => names.has(d.name));
|
||||
}
|
||||
|
||||
export function scanFiles(dt: DataTransfer) {
|
||||
export function scanFiles(dt: DataTransfer): Promise<UploadList | FileList> {
|
||||
return new Promise((resolve) => {
|
||||
let reading = 0;
|
||||
const contents: UploadList = [];
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user