Skip to content
Snippets Groups Projects
Commit b7ca2a2c authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

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

parent 21d6072f
No related branches found
No related tags found
No related merge requests found
...@@ -98,6 +98,25 @@ class CQiCorpus { ...@@ -98,6 +98,25 @@ class CQiCorpus {
this.subcorpora = new CQiSubcorpusCollection(this.socket, this); 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() { drop() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const args = {corpus_name: this.name}; const args = {corpus_name: this.name};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment