mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 00:20:07 +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:
@@ -1,5 +1,3 @@
|
||||
import { Utils } from '../utils/utils';
|
||||
|
||||
class OrgAdminRepo {
|
||||
constructor(object) {
|
||||
this.repoID = object.repo_id;
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import { Utils } from '../utils/utils';
|
||||
import { lang } from '../utils/constants';
|
||||
import moment from 'moment';
|
||||
|
||||
|
22
frontend/src/models/org-logs-file-audit.js
Normal file
22
frontend/src/models/org-logs-file-audit.js
Normal 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;
|
20
frontend/src/models/org-logs-file-update.js
Normal file
20
frontend/src/models/org-logs-file-update.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import { lang } from '../utils/constants';
|
||||
import moment from 'moment';
|
||||
|
||||
moment.locale(lang);
|
||||
|
||||
class OrgLogsFileUpdateEvent {
|
||||
constructor(object) {
|
||||
this.repo_id = object.repo_id;
|
||||
this.description = object.description;
|
||||
this.repo_name = object.repo_name;
|
||||
this.user_name = object.user_name;
|
||||
this.user_email = object.user_email;
|
||||
this.repo_encrypted = object.repo_encrypted;
|
||||
this.repo_commit_id = object.repo_commit_id;
|
||||
this.user_contact_email = object.user_contact_email;
|
||||
this.time = moment(object.time).format('YYYY-MM-DD HH:mm:ss');
|
||||
}
|
||||
}
|
||||
|
||||
export default OrgLogsFileUpdateEvent;
|
26
frontend/src/models/org-logs-perm-audit.js
Normal file
26
frontend/src/models/org-logs-perm-audit.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { lang } from '../utils/constants';
|
||||
import moment from 'moment';
|
||||
|
||||
moment.locale(lang);
|
||||
|
||||
class OrgLogsPermAuditEvent {
|
||||
constructor(object) {
|
||||
this.from_user_name = object.from_user_name;
|
||||
this.from_user_email = object.from_user_email;
|
||||
this.from_user_contact_email = object.from_user_contact_email;
|
||||
this.to_user_email = object.to_user_email;
|
||||
this.to_user_name = object.to_user_name;
|
||||
this.to_user_contact_email = object.to_user_contact_email;
|
||||
this.to_group_name = object.to_group_name;
|
||||
this.to_group_id = object.to_group_id;
|
||||
this.type = object.type;
|
||||
this.repo_id = object.repo_id;
|
||||
this.repo_name = object.repo_name;
|
||||
this.folder_name = object.folder_name;
|
||||
this.folder_path = object.folder_path;
|
||||
this.time = moment(object.time).format('YYYY-MM-DD HH:mm:ss');
|
||||
this.permission = object.permission;
|
||||
}
|
||||
}
|
||||
|
||||
export default OrgLogsPermAuditEvent;
|
Reference in New Issue
Block a user