mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-10-31 02:32:45 +00:00 
			
		
		
		
	Add new cqi method to get data for the new corpus overview
This commit is contained in:
		| @@ -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}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user