From b7ca2a2cf6931e7b977ac6d5daa2b75e6e0f6a3f Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 12 Jun 2023 13:01:27 +0200
Subject: [PATCH] Add new cqi method to get data for the new corpus overview
---
app/static/js/CorpusAnalysis/CQiClient.js | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/app/static/js/CorpusAnalysis/CQiClient.js b/app/static/js/CorpusAnalysis/CQiClient.js
index 4a3706e3..963a63ca 100644
--- a/app/static/js/CorpusAnalysis/CQiClient.js
+++ b/app/static/js/CorpusAnalysis/CQiClient.js
@@ -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};