1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 07:22:34 +00:00

fix: details rename (#7232)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-12-21 18:22:08 +08:00
committed by GitHub
parent a50b5d8f5a
commit 9fb6870679
7 changed files with 46 additions and 16 deletions

View File

@@ -59,6 +59,19 @@ class Dirent {
return this.type !== 'file';
}
toJson() {
return {
id: this.id,
name: this.name,
mtime: this.mtime,
type: this.type,
size: this.size,
modifier_name: this.modifier_name,
modifier_email: this.modifier_email,
modifier_contact_email: this.modifier_contact_email,
};
}
}
export default Dirent;