1
0
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:
llj
2024-03-25 17:22:01 +08:00
committed by GitHub
parent 43f66cbbca
commit 4375115548
43 changed files with 29 additions and 1405 deletions

View File

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

View File

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

View File

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

View File

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