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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador Video
Commits
34382376
Commit
34382376
authored
2 years ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Add graphics search bar
parent
735afa7d
No related branches found
No related tags found
1 merge request
!15
Add research field and undo research manifest in annotation content
Pipeline
#1376
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/CanvasAnnotations.js
+16
-0
16 additions, 0 deletions
src/components/CanvasAnnotations.js
src/containers/CanvasAnnotations.js
+62
-2
62 additions, 2 deletions
src/containers/CanvasAnnotations.js
with
78 additions
and
2 deletions
src/components/CanvasAnnotations.js
+
16
−
0
View file @
34382376
...
@@ -6,6 +6,8 @@ import MenuList from '@material-ui/core/MenuList';
...
@@ -6,6 +6,8 @@ import MenuList from '@material-ui/core/MenuList';
import
MenuItem
from
'
@material-ui/core/MenuItem
'
;
import
MenuItem
from
'
@material-ui/core/MenuItem
'
;
import
ListItemText
from
'
@material-ui/core/ListItemText
'
;
import
ListItemText
from
'
@material-ui/core/ListItemText
'
;
import
Typography
from
'
@material-ui/core/Typography
'
;
import
Typography
from
'
@material-ui/core/Typography
'
;
import
SearchIcon
from
'
@material-ui/icons/SearchSharp
'
;
import
InputBase
from
'
@material-ui/core/InputBase
'
;
import
SanitizedHtml
from
'
../containers/SanitizedHtml
'
;
import
SanitizedHtml
from
'
../containers/SanitizedHtml
'
;
import
{
ScrollTo
}
from
'
./ScrollTo
'
;
import
{
ScrollTo
}
from
'
./ScrollTo
'
;
import
AnnotationManifestsAccordion
from
'
../containers/AnnotationManifestsAccordion
'
;
import
AnnotationManifestsAccordion
from
'
../containers/AnnotationManifestsAccordion
'
;
...
@@ -69,6 +71,20 @@ export class CanvasAnnotations extends Component {
...
@@ -69,6 +71,20 @@ export class CanvasAnnotations extends Component {
<
Typography
className
=
{
classes
.
sectionHeading
}
variant
=
"
overline
"
>
<
Typography
className
=
{
classes
.
sectionHeading
}
variant
=
"
overline
"
>
{
t
(
'
annotationCanvasLabel
'
,
{
context
:
`
${
index
+
1
}
/
${
totalSize
}
`
,
label
})}
{
t
(
'
annotationCanvasLabel
'
,
{
context
:
`
${
index
+
1
}
/
${
totalSize
}
`
,
label
})}
<
/Typography
>
<
/Typography
>
<
div
className
=
{
classes
.
search
}
>
<
div
className
=
{
classes
.
searchIcon
}
>
<
SearchIcon
/>
<
/div
>
<
InputBase
placeholder
=
"
Search…
"
classes
=
{{
input
:
classes
.
inputInput
,
root
:
classes
.
inputRoot
,
}}
inputProps
=
{{
'
aria-label
'
:
'
search
'
}}
/
>
<
/div
>
<
MenuList
autoFocusItem
variant
=
"
selectedMenu
"
>
<
MenuList
autoFocusItem
variant
=
"
selectedMenu
"
>
{
{
annotations
.
map
(
annotation
=>
(
annotations
.
map
(
annotation
=>
(
...
...
This diff is collapsed.
Click to expand it.
src/containers/CanvasAnnotations.js
+
62
−
2
View file @
34382376
import
{
compose
}
from
'
redux
'
;
import
{
compose
}
from
'
redux
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
withTranslation
}
from
'
react-i18next
'
;
import
{
withTranslation
}
from
'
react-i18next
'
;
import
{
withStyles
}
from
'
@material-ui/core/styles
'
;
import
{
alpha
,
withStyles
}
from
'
@material-ui/core/styles
'
;
import
{
withPlugins
}
from
'
../extend/withPlugins
'
;
import
{
withPlugins
}
from
'
../extend/withPlugins
'
;
import
*
as
actions
from
'
../state/actions
'
;
import
*
as
actions
from
'
../state/actions
'
;
import
{
import
{
...
@@ -69,16 +69,76 @@ const styles = theme => ({
...
@@ -69,16 +69,76 @@ const styles = theme => ({
marginRight
:
theme
.
spacing
(
0.5
),
marginRight
:
theme
.
spacing
(
0.5
),
marginTop
:
theme
.
spacing
(
1
),
marginTop
:
theme
.
spacing
(
1
),
},
},
grow
:
{
flexGrow
:
1
,
},
hovered
:
{},
hovered
:
{},
inputInput
:
{
padding
:
theme
.
spacing
(
1
,
1
,
1
,
0
),
// vertical padding + font size from searchIcon
paddingLeft
:
`calc(1em +
${
theme
.
spacing
(
4
)}
px)`
,
transition
:
theme
.
transitions
.
create
(
'
width
'
),
width
:
'
100%
'
,
[
theme
.
breakpoints
.
up
(
'
md
'
)]:
{
width
:
'
20ch
'
,
},
},
inputRoot
:
{
color
:
'
inherit
'
,
},
manifestLabel
:
{
manifestLabel
:
{
fontSize
:
'
10px
'
,
fontSize
:
'
10px
'
,
},
},
menuButton
:
{
marginRight
:
theme
.
spacing
(
2
),
},
search
:
{
'
&:hover
'
:
{
backgroundColor
:
alpha
(
theme
.
palette
.
common
.
white
,
0.25
),
},
backgroundColor
:
alpha
(
theme
.
palette
.
common
.
white
,
0.15
),
borderRadius
:
theme
.
shape
.
borderRadius
,
marginLeft
:
0
,
marginRight
:
theme
.
spacing
(
2
),
position
:
'
relative
'
,
[
theme
.
breakpoints
.
up
(
'
sm
'
)]:
{
marginLeft
:
theme
.
spacing
(
3
),
width
:
'
auto
'
,
},
width
:
'
100%
'
,
},
searchIcon
:
{
alignItems
:
'
center
'
,
display
:
'
flex
'
,
height
:
'
100%
'
,
justifyContent
:
'
center
'
,
padding
:
theme
.
spacing
(
0
,
2
),
pointerEvents
:
'
none
'
,
position
:
'
absolute
'
,
},
sectionDesktop
:
{
display
:
'
none
'
,
[
theme
.
breakpoints
.
up
(
'
md
'
)]:
{
display
:
'
flex
'
,
},
},
sectionHeading
:
{
sectionHeading
:
{
paddingLeft
:
theme
.
spacing
(
2
),
paddingLeft
:
theme
.
spacing
(
2
),
paddingRight
:
theme
.
spacing
(
1
),
paddingRight
:
theme
.
spacing
(
1
),
paddingTop
:
theme
.
spacing
(
2
),
paddingTop
:
theme
.
spacing
(
2
),
},
},
sectionMobile
:
{
display
:
'
flex
'
,
[
theme
.
breakpoints
.
up
(
'
md
'
)]:
{
display
:
'
none
'
,
},
},
title
:
{
display
:
'
none
'
,
[
theme
.
breakpoints
.
up
(
'
sm
'
)]:
{
display
:
'
block
'
,
},
},
});
});
const
enhance
=
compose
(
const
enhance
=
compose
(
...
...
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