Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
203faa42
Commit
203faa42
authored
1 year ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Remove debug messages and move data inflation into api fn
parent
960f36c7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/static/js/cqi/api/client.js
+5
-1
5 additions, 1 deletion
app/static/js/cqi/api/client.js
app/static/js/cqi/models/corpora.js
+1
-9
1 addition, 9 deletions
app/static/js/cqi/models/corpora.js
with
6 additions
and
10 deletions
app/static/js/cqi/api/client.js
+
5
−
1
View file @
203faa42
...
@@ -630,7 +630,11 @@ cqi.api.APIClient = class APIClient {
...
@@ -630,7 +630,11 @@ cqi.api.APIClient = class APIClient {
async
ext_corpus_static_data
(
corpus
)
{
async
ext_corpus_static_data
(
corpus
)
{
const
fn_name
=
'
ext_corpus_static_data
'
;
const
fn_name
=
'
ext_corpus_static_data
'
;
const
fn_args
=
{
corpus
:
corpus
};
const
fn_args
=
{
corpus
:
corpus
};
return
await
this
.
#request
(
fn_name
,
fn_args
);
let
compressedEncodedData
=
await
this
.
#request
(
fn_name
,
fn_args
);
let
encodedData
=
pako
.
inflate
(
compressedEncodedData
);
let
textDecoder
=
new
TextDecoder
();
let
data
=
textDecoder
.
decode
(
encodedData
);
return
JSON
.
parse
(
data
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
app/static/js/cqi/models/corpora.js
+
1
−
9
View file @
203faa42
...
@@ -138,15 +138,7 @@ cqi.models.corpora.CorpusCollection = class CorpusCollection extends cqi.models.
...
@@ -138,15 +138,7 @@ cqi.models.corpora.CorpusCollection = class CorpusCollection extends cqi.models.
/************************************************************************
/************************************************************************
* Custom additions for nopaque *
* Custom additions for nopaque *
************************************************************************/
************************************************************************/
// returnValue.static_data = await this.client.api.ext_corpus_static_data(corpusName);
returnValue
.
static_data
=
await
this
.
client
.
api
.
ext_corpus_static_data
(
corpusName
);
let
tmp
=
await
this
.
client
.
api
.
ext_corpus_static_data
(
corpusName
);
console
.
log
(
tmp
);
let
inflated
=
pako
.
inflate
(
tmp
);
console
.
log
(
inflated
);
let
decoder
=
new
TextDecoder
(
'
utf-8
'
);
console
.
log
(
decoder
);
let
decoded
=
decoder
.
decode
(
inflated
);
returnValue
.
static_data
=
JSON
.
parse
(
decoded
);
return
returnValue
;
return
returnValue
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment