mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
[draft] removed related code & files (#5993)
* [draft] removed related code & files * [draft] removed related code & files
This commit is contained in:
@@ -25,8 +25,6 @@ class Acticity {
|
||||
this.old_name = json.old_name;
|
||||
} else if (json.op_type === 'publish') {
|
||||
this.old_path = json.old_path;
|
||||
} else if (json.name.endsWith('(draft).md')) {
|
||||
this.draft_id = json.draft_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -42,7 +42,6 @@ class Dirent {
|
||||
this.encoded_thumbnail_src = json.encoded_thumbnail_src;
|
||||
}
|
||||
if (Utils.isSdocFile(json.name)) {
|
||||
this.is_sdoc_draft = json.is_sdoc_draft || false;
|
||||
this.is_sdoc_revision = json.is_sdoc_revision || false;
|
||||
this.revision_id = json.revision_id || null;
|
||||
}
|
||||
|
@@ -1,15 +0,0 @@
|
||||
import moment from 'moment';
|
||||
|
||||
class Draft {
|
||||
|
||||
constructor(item) {
|
||||
this.created = item.created_at;
|
||||
this.createdStr = moment((new Date(item.created_at)).getTime()).format('YYYY-MM-DD HH:mm');
|
||||
this.id = item.id;
|
||||
this.ownerNickname = item.owner_nickname;
|
||||
this.originRepoID = item.origin_repo_id;
|
||||
this.draftFilePath = item.draft_file_path;
|
||||
}
|
||||
}
|
||||
|
||||
export default Draft;
|
@@ -1,14 +0,0 @@
|
||||
import moment from 'moment';
|
||||
|
||||
class Review {
|
||||
|
||||
constructor(item) {
|
||||
this.created = item.created_at;
|
||||
this.createdStr = moment((new Date(item.created_at)).getTime()).format('YYYY-MM-DD HH:mm');
|
||||
this.id = item.id;
|
||||
this.creatorName = item.creator_name;
|
||||
this.draftFilePath = item.draft_file_path;
|
||||
}
|
||||
}
|
||||
|
||||
export default Review;
|
Reference in New Issue
Block a user