mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-22 10:52:47 +00:00
* add org logs * add filter * refactor code * fix warnings * add get repo dict * Adjust variable position
21 lines
615 B
JavaScript
21 lines
615 B
JavaScript
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;
|