1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 04:48:03 +00:00
Files
seahub/frontend/src/models/repo-info.js
llj 00119b4e6b Library view more menu (#7806)
* [library view] added the 'More' menu('more' operations for the current library)

* add monitored field when get repo info

---------

Co-authored-by: lian <imwhatiam123@gmail.com>
2025-05-12 16:54:52 +08:00

32 lines
1.1 KiB
JavaScript

import { Utils } from '../utils/utils';
class RepoInfo {
constructor(object) {
this.repo_id = object.repo_id;
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.owner_avatar = object.owner_avatar || '';
// is repo shared admin;
// is repo shared admin && is one of current ordinary group's admins;
// is one of current group owned group's admins;
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.lib_need_decrypt = object.lib_need_decrypt;
this.last_modified = object.last_modified;
this.status = object.status;
this.enable_onlyoffice = object.enable_onlyoffice;
this.monitored = object.monitored;
}
}
export default RepoInfo;