mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
Add new cqi method to get data for the new corpus overview
This commit is contained in:
parent
21d6072f6f
commit
b7ca2a2cf6
@ -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};
|
||||||
|
Loading…
Reference in New Issue
Block a user