1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

add org logs (#3190)

* add org logs

* add filter

* refactor code

* fix warnings

* add get repo dict

* Adjust variable position
This commit is contained in:
陈钦亮
2019-04-03 16:54:24 +08:00
committed by Daniel Pan
parent a3b8fdcf61
commit 1b673b5cd5
16 changed files with 1070 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
import { lang } from '../utils/constants';
import moment from 'moment';
moment.locale(lang);
class OrgLogsFileAuditEvent {
constructor(object) {
this.ip = object.ip;
this.type = object.type;
this.device = object.device;
this.repo_id = object.repo_id;
this.repo_name = object.repo_name;
this.file_name = object.file_name;
this.file_path = object.file_path;
this.user_name = object.user_name;
this.user_email = object.user_email;
this.user_contact_email = object.user_contact_email;
this.time = moment(object.time).format('YYYY-MM-DD HH:mm:ss');
}
}
export default OrgLogsFileAuditEvent;