Add new cqi method to get data for the new corpus overview

This commit is contained in:
Patrick Jentsch 2023-06-12 13:01:27 +02:00
parent 21d6072f6f
commit b7ca2a2cf6

View File

@ -98,6 +98,25 @@ class CQiCorpus {
this.subcorpora = new CQiSubcorpusCollection(this.socket, this);
}
getCorpusData() {
return new Promise((resolve, reject) => {
const dummyData = {};
resolve(dummyData);
/*
const args = {corpus_name: this.name};
this.socket.emit('cqi.corpora.corpus.getCorpusData', args, response => {
if (response.code === 200) {
resolve(response.payload);
} else {
reject(response);
}
});
*/
})
}
drop() {
return new Promise((resolve, reject) => {
const args = {corpus_name: this.name};