mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 00:43:53 +00:00
Repo optimized (#2664)
This commit is contained in:
@@ -6,19 +6,16 @@ class RepoInfo {
|
||||
this.repo_name = object.repo_name;
|
||||
this.permission = object.permission;
|
||||
this.size = Utils.bytesToSize(object.size);
|
||||
this.file_count = object.file_count;
|
||||
this.owner_name = object.owner_name;
|
||||
this.owner_email = object.owner_email;
|
||||
this.owner_contact_email = object.owner_contact_name;
|
||||
this.owner_contact_email = object.owner_contact_email;
|
||||
this.is_admin = object.is_admin;
|
||||
this.is_virtual = object.is_virtual;
|
||||
this.no_quota = object.no_quota;
|
||||
this.has_been_shared_out = object.has_been_shared_out;
|
||||
this.encrypted = object.encrypted;
|
||||
this.last_modified = object.last_modified;
|
||||
this.modifier_contact_email = object.modifier_contact_email;
|
||||
this.modifier_email = object.modifier_email;
|
||||
this.modifier_name = object.modifier_name;
|
||||
this.mtime = object.mtime;
|
||||
}
|
||||
}
|
||||
|
||||
export default RepoInfo;
|
||||
|
||||
//todo rename to repo, and rename repo to repoInfo
|
@@ -6,15 +6,16 @@ class Repo {
|
||||
this.repo_name = object.repo_name;
|
||||
this.permission = object.permission;
|
||||
this.size = Utils.bytesToSize(object.size);
|
||||
this.file_count = object.file_count;
|
||||
this.owner_name = object.owner_name;
|
||||
this.owner_email = object.owner_email;
|
||||
this.owner_contact_email = object.owner_contact_email;
|
||||
this.is_admin = object.is_admin;
|
||||
this.is_virtual = object.is_virtual;
|
||||
this.no_quota = object.no_quota;
|
||||
this.has_been_shared_out = object.has_been_shared_out;
|
||||
this.encrypted = object.encrypted;
|
||||
this.last_modified = object.last_modified;
|
||||
this.modifier_contact_email = object.modifier_contact_email;
|
||||
this.modifier_email = object.modifier_email;
|
||||
this.modifier_name = object.modifier_name;
|
||||
this.mtime = object.mtime;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user