Prettier file listing, using browser instead of viewer for file display (for now), sorting improved, modified timestamps improved.

This commit is contained in:
Leo Vasanko
2023-10-27 07:53:30 +03:00
parent 63bbe84859
commit 0d186726b5
8 changed files with 198 additions and 185 deletions

View File

@@ -6,13 +6,14 @@ import Client from '@/repositories/Client'
type BaseDocument = {
name: string;
key?: number;
key?: number | string;
};
export type FolderDocument = BaseDocument & {
type: 'folder' | 'folder-file';
size: number;
mtime: number;
modified: string;
type: 'folder';
};
export type FileDocument = BaseDocument & {
@@ -84,4 +85,4 @@ export async function fetchFile(path: string): Promise<FileDocument>{
type: 'file',
ext: getFileExtension(name)
}
}
}