Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador Video
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
IIIF
Mirador
Mirador Video
Commits
becee206
Commit
becee206
authored
Feb 18, 2023
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Fix removeDuplicate and typo style
parent
ab462f10
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!13
Manifest side to side
This commit is part of merge request
!13
. Comments created here will be created in the context of that merge request.
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/AnnotationManifestsAccordion.js
+1
-1
1 addition, 1 deletion
src/components/AnnotationManifestsAccordion.js
src/containers/CanvasAnnotations.js
+4
-0
4 additions, 0 deletions
src/containers/CanvasAnnotations.js
src/helper/utils.js
+1
-8
1 addition, 8 deletions
src/helper/utils.js
with
6 additions
and
9 deletions
src/components/AnnotationManifestsAccordion.js
+
1
−
1
Edit
View file @
becee206
...
...
@@ -127,7 +127,7 @@ export class AnnotationManifestsAccordion extends Component {
<
Card
className
=
{
classes
.
root
}
>
<
CardActionArea
>
<
CardContent
>
<
Typography
gutterBottom
variant
=
"
h5
"
component
=
"
h2
"
>
<
Typography
>
{
manifest
.
label
?
manifest
.
label
[
language
]
:
manifest
.
id
}
<
/Typography
>
<
/CardContent
>
...
...
...
...
This diff is collapsed.
Click to expand it.
src/containers/CanvasAnnotations.js
+
4
−
0
Edit
View file @
becee206
...
...
@@ -70,11 +70,15 @@ const styles = theme => ({
marginTop
:
theme
.
spacing
(
1
),
},
hovered
:
{},
manifestLabel
:
{
fontSize
:
'
10px
'
,
},
sectionHeading
:
{
paddingLeft
:
theme
.
spacing
(
2
),
paddingRight
:
theme
.
spacing
(
1
),
paddingTop
:
theme
.
spacing
(
2
),
},
});
const
enhance
=
compose
(
...
...
...
...
This diff is collapsed.
Click to expand it.
src/helper/utils.js
+
1
−
8
Edit
View file @
becee206
...
...
@@ -2,11 +2,4 @@
* Remove duplicate elements in array
*
* */
export
const
removeDuplicates
=
(
arr
)
=>
{
return
arr
.
reduce
((
acc
,
curr
)
=>
{
if
(
!
acc
.
includes
(
curr
))
{
acc
.
push
(
curr
);
}
return
acc
;
},
[]);
};
export
const
removeDuplicates
=
(
arr
)
=>
[...
new
Map
(
arr
.
map
(
v
=>
[
v
.
id
,
v
])).
values
()];
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
sign in
to comment