1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

feat: metadata view part (#6289)

* feat: metadata view part

* feat: optimize code

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-07-03 17:04:30 +08:00
committed by GitHub
parent 76af3d28ee
commit 8b6abc7855
59 changed files with 1823 additions and 815 deletions

View File

@@ -43,6 +43,11 @@ class MetadataManagerAPI {
}
}
getCollaborators = (repoID) => {
const url = this.server + '/api/v2.1/repos/' + repoID + '/related-users/';
return this.req.get(url);
};
getMetadataStatus(repoID) {
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/';
return this.req.get(url);
@@ -60,7 +65,7 @@ class MetadataManagerAPI {
getMetadata(repoID, params) {
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/records/';
return this.req.get(url, {params: params});
return this.req.get(url, { params: params });
}
addMetadataRecords(repoID, parentDir, name) {