Prettier file listing, using browser instead of viewer for file display (for now), sorting improved, modified timestamps improved.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user