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
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
15e7fa6d
Commit
15e7fa6d
authored
1 year ago
by
Inga Kirschnick
Browse files
Options
Downloads
Patches
Plain Diff
Rename function
parent
589c4a6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/static/js/ResourceLists/CorpusList.js
+6
-10
6 additions, 10 deletions
app/static/js/ResourceLists/CorpusList.js
with
6 additions
and
10 deletions
app/static/js/ResourceLists/CorpusList.js
+
6
−
10
View file @
15e7fa6d
...
@@ -21,15 +21,15 @@ class CorpusList extends ResourceList {
...
@@ -21,15 +21,15 @@ class CorpusList extends ResourceList {
});
});
});
});
app
.
getUser
(
this
.
userId
).
then
((
user
)
=>
{
app
.
getUser
(
this
.
userId
).
then
((
user
)
=>
{
this
.
add
(
this
.
equalizer
(
user
));
this
.
add
(
this
.
aggregateData
(
user
));
this
.
isInitialized
=
true
;
this
.
isInitialized
=
true
;
});
});
}
}
equalizer
(
user
)
{
aggregateData
(
user
)
{
const
equaliz
edData
=
[];
const
aggregat
edData
=
[];
for
(
let
corpus
of
Object
.
values
(
user
.
corpora
))
{
for
(
let
corpus
of
Object
.
values
(
user
.
corpora
))
{
equaliz
edData
.
push
(
aggregat
edData
.
push
(
{
{
'
id
'
:
corpus
.
id
,
'
id
'
:
corpus
.
id
,
'
creation-date
'
:
corpus
.
creation_date
,
'
creation-date
'
:
corpus
.
creation_date
,
...
@@ -43,7 +43,7 @@ class CorpusList extends ResourceList {
...
@@ -43,7 +43,7 @@ class CorpusList extends ResourceList {
);
);
}
}
for
(
let
cfa
of
Object
.
values
(
user
.
corpus_follower_associations
))
{
for
(
let
cfa
of
Object
.
values
(
user
.
corpus_follower_associations
))
{
equaliz
edData
.
push
(
aggregat
edData
.
push
(
{
{
'
id
'
:
cfa
.
corpus
.
id
,
'
id
'
:
cfa
.
corpus
.
id
,
'
creation-date
'
:
cfa
.
corpus
.
creation_date
,
'
creation-date
'
:
cfa
.
corpus
.
creation_date
,
...
@@ -56,7 +56,7 @@ class CorpusList extends ResourceList {
...
@@ -56,7 +56,7 @@ class CorpusList extends ResourceList {
}
}
);
);
}
}
return
equaliz
edData
;
return
aggregat
edData
;
}
}
// #region Mandatory getters and methods to implement
// #region Mandatory getters and methods to implement
...
@@ -130,10 +130,6 @@ class CorpusList extends ResourceList {
...
@@ -130,10 +130,6 @@ class CorpusList extends ResourceList {
`
.
trim
();
`
.
trim
();
}
}
mapResourceToValue
(
equalizedData
)
{
return
equalizedData
;
}
sort
()
{
sort
()
{
this
.
listjs
.
sort
(
'
creation-date
'
,
{
order
:
'
desc
'
});
this
.
listjs
.
sort
(
'
creation-date
'
,
{
order
:
'
desc
'
});
}
}
...
...
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