1
0
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:
Michael An
2023-09-18 18:15:54 +08:00
committed by GitHub
parent f7754fa2e1
commit 2a6aa4b4d4
31 changed files with 34 additions and 2570 deletions

View File

@@ -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;