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 is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador Video
Commits
094d45c7
Commit
094d45c7
authored
2 years ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Add trad and tooltip
parent
40ae0ebd
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!13
Manifest side to side
,
!11
Draft: 33 8 open an other manifest side by side from an annotation
Pipeline
#1314
passed
2 years ago
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/AnnotationManifestsAccordion.js
+27
-26
27 additions, 26 deletions
src/components/AnnotationManifestsAccordion.js
src/locales/en/translation.json
+1
-0
1 addition, 0 deletions
src/locales/en/translation.json
src/locales/fr/translation.json
+1
-0
1 addition, 0 deletions
src/locales/fr/translation.json
with
29 additions
and
26 deletions
src/components/AnnotationManifestsAccordion.js
+
27
−
26
View file @
094d45c7
...
...
@@ -4,13 +4,12 @@ import AccordionSummary from '@material-ui/core/AccordionSummary';
import
ExpandMoreIcon
from
'
@material-ui/icons/ExpandMoreSharp
'
;
import
Typography
from
'
@material-ui/core/Typography
'
;
import
AccordionDetails
from
'
@material-ui/core/AccordionDetails
'
;
import
PlaylistAddIcon
from
'
@material-ui/icons/PlaylistAdd
'
;
import
PropTypes
from
'
prop-types
'
;
import
{
Card
,
CardActionArea
,
CardActions
,
CardContent
,
CardMedia
,
Fab
,
}
from
'
@material-ui/core
'
;
import
Button
from
'
@material-ui/core/Button
'
;
import
async
from
'
async
'
;
import
Tooltip
from
'
@material-ui/core/Tooltip
'
;
/**
* AnnotationManifestsAccordion
...
...
@@ -54,19 +53,6 @@ export class AnnotationManifestsAccordion extends Component {
this
.
state
=
{
annotation
};
}
/** */
handleOpenManifestSideToSide
(
e
,
manifestId
)
{
const
{
addResource
,
addWindow
}
=
this
.
props
;
addResource
(
manifestId
);
addWindow
({
manifestId
});
}
/** */
// eslint-disable-next-line class-methods-use-this,require-jsdoc
handleOpenAccordion
(
e
)
{
e
.
stopPropagation
();
}
/** */
componentDidMount
()
{
const
{
annotation
}
=
this
.
state
;
...
...
@@ -92,6 +78,19 @@ export class AnnotationManifestsAccordion extends Component {
});
}
/** */
handleOpenManifestSideToSide
(
e
,
manifestId
)
{
const
{
addResource
,
addWindow
}
=
this
.
props
;
addResource
(
manifestId
);
addWindow
({
manifestId
});
}
/** */
// eslint-disable-next-line class-methods-use-this,require-jsdoc
handleOpenAccordion
(
e
)
{
e
.
stopPropagation
();
}
/** */
render
()
{
const
{
...
...
@@ -114,7 +113,7 @@ export class AnnotationManifestsAccordion extends Component {
expandIcon
=
{
<
ExpandMoreIcon
/>
}
onClick
=
{(
e
)
=>
this
.
handleOpenAccordion
(
e
)}
>
<
Typography
className
=
{
classes
.
heading
}
>
M
anifests
f
ound
:
<
/Typography
>
<
Typography
className
=
{
classes
.
heading
}
>
{
t
(
'
m
anifests
F
ound
'
)}
<
/Typography
>
<
/AccordionSummary
>
<
AccordionDetails
>
<
Typography
>
...
...
@@ -135,6 +134,7 @@ export class AnnotationManifestsAccordion extends Component {
<
/CardContent
>
<
/CardActionArea
>
<
CardActions
>
<
Tooltip
title
=
{
t
(
'
openManifestInOtherWindow
'
,
{
manifest
:
manifest
.
id
})}
>
<
Button
size
=
"
small
"
color
=
"
primary
"
...
...
@@ -142,8 +142,9 @@ export class AnnotationManifestsAccordion extends Component {
this
.
handleOpenManifestSideToSide
(
e
,
manifest
.
id
);
}}
>
Open
in
new
panel
{
t
(
'
openInCompanionWindow
'
)}
<
/Button
>
<
/Tooltip
>
<
/CardActions
>
<
/Card
>
<
/Typography
>
...
...
This diff is collapsed.
Click to expand it.
src/locales/en/translation.json
+
1
−
0
View file @
094d45c7
...
...
@@ -81,6 +81,7 @@
"login"
:
"Log in"
,
"logout"
:
"Log out"
,
"manifestError"
:
"The resource cannot be added:"
,
"manifestFound"
:
"Manifests found:"
,
"maximizeWindow"
:
"Maximize window"
,
"minimizeWindow"
:
"Minimize window"
,
"mirador"
:
"Mirador"
,
...
...
This diff is collapsed.
Click to expand it.
src/locales/fr/translation.json
+
1
−
0
View file @
094d45c7
...
...
@@ -78,6 +78,7 @@
"login"
:
"Se connecter"
,
"logout"
:
"Se déconnecter"
,
"manifestError"
:
"Cette ressource ne peut pas être ajoutée :"
,
"manifestFound"
:
"Manifests trouvés:"
,
"maximizeWindow"
:
"Agrandir cette fenêtre"
,
"minimizeWindow"
:
"Réduire cette fenêtre"
,
"mirador"
:
"Mirador"
,
...
...
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