mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
remove comment (#5650)
* remove comment * remove useless third party lib * remove comment
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
import moment from 'moment';
|
||||
|
||||
class reviewComment {
|
||||
|
||||
constructor(item) {
|
||||
let oldTime = (new Date(item.created_at)).getTime();
|
||||
this.time = moment(oldTime).format('YYYY-MM-DD HH:mm');
|
||||
this.id = item.id;
|
||||
this.avatarUrl = item.avatar_url;
|
||||
this.comment = item.comment;
|
||||
this.name = item.user_name;
|
||||
this.userEmail = item.user_email;
|
||||
this.resolved = item.resolved;
|
||||
if (item.detail) {
|
||||
let detail = JSON.parse(item.detail);
|
||||
this.newIndex = detail.newIndex;
|
||||
this.oldIndex = detail.oldIndex;
|
||||
this.quote = detail.quote;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default reviewComment;
|
Reference in New Issue
Block a user