1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00

modify some style and parameter

This commit is contained in:
zxj96
2019-05-30 14:56:39 +08:00
parent 3fc5137409
commit f7dee15902
3 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ class Dirent {
this.isSelected = false; // is check or not
this.starred = json.starred || false;
if (json.type === 'file') {
this.Initialsize = json.size;
this.initialSize = json.size;
this.size = Utils.bytesToSize(json.size);
this.is_locked = json.is_locked || false;
this.lock_time = json.lock_time || '';

View File

@@ -5,8 +5,8 @@ class Repo {
this.repo_id = object.repo_id;
this.repo_name = object.repo_name;
this.permission = object.permission;
this.initialSize = object.size;
this.size = Utils.bytesToSize(object.size);
this.Initialsize = object.size
this.owner_name = object.owner_name;
this.owner_email = object.owner_email;
this.owner_contact_email = object.owner_contact_email;

View File

@@ -622,7 +622,7 @@ export const Utils = {
let result = _this.compareTwoWord(a.repo_name, b.repo_name);
return result;
}
return a.Initialsize < b.Initialsize ? -1 : 1;
return a.initialSize < b.initialSize ? -1 : 1;
};
break;
case 'size-desc':
@@ -632,7 +632,7 @@ export const Utils = {
return -result;
}
return a.Initialsize < b.Initialsize ? 1 : -1;
return a.initialSize < b.initialSize ? 1 : -1;
};
break;
}
@@ -674,7 +674,7 @@ export const Utils = {
let result = _this.compareTwoWord(a.name, b.name);
return result;
}
return a.Initialsize < b.Initialsize ? -1 : 1;
return a.initialSize < b.initialSize ? -1 : 1;
};
break;
case 'size-desc':
@@ -683,7 +683,7 @@ export const Utils = {
let result = _this.compareTwoWord(a.name, b.name);
return -result;
}
return a.Initialsize < b.Initialsize ? 1 : -1;
return a.initialSize < b.initialSize ? 1 : -1;
};
break;
}