-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from scaife-viewer/develop
Prepare next production release
- Loading branch information
Showing
12 changed files
with
387 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
[context."master".environment] | ||
VUE_APP_ATLAS_GRAPHQL_ENDPOINT = "https://explorehomer-atlas.scaife-viewer.org/graphql/" | ||
[context."feature/passage-metadata-improvements".environment] | ||
VUE_APP_ATLAS_GRAPHQL_ENDPOINT = "https://explorehomer-feature-pa-bpryib.herokuapp.com/graphql/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<template> | ||
<div class="image-viewer-toolbar"> | ||
<a href :class="{ active: showText }" @click.prevent="onShowText"> | ||
<icon name="align-justify" /> | ||
</a> | ||
<a href :class="{ active: showImage }" @click.prevent="onShowImage" > | ||
<icon name="book-open" /> | ||
</a> | ||
<a href :class="{ active: showBoth }" @click.prevent="onShowBoth" > | ||
<icon name="align-justify" /> | | ||
<icon name="book-open" /> | ||
</a> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { | ||
IMAGE_VIEWER_STATE_TEXT, | ||
IMAGE_VIEWER_STATE_IMAGE, | ||
IMAGE_VIEWER_STATE_BOTH, | ||
} from '@/constants'; | ||
export default { | ||
props: ['show'], | ||
computed: { | ||
showText() { | ||
return this.show === IMAGE_VIEWER_STATE_TEXT; | ||
}, | ||
showImage() { | ||
return this.show === IMAGE_VIEWER_STATE_IMAGE; | ||
}, | ||
showBoth() { | ||
return this.show === IMAGE_VIEWER_STATE_BOTH; | ||
}, | ||
}, | ||
methods: { | ||
onShowText() { | ||
this.$emit('show', IMAGE_VIEWER_STATE_TEXT); | ||
}, | ||
onShowImage() { | ||
this.$emit('show', IMAGE_VIEWER_STATE_IMAGE); | ||
}, | ||
onShowBoth() { | ||
this.$emit('show', IMAGE_VIEWER_STATE_BOTH); | ||
}, | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.image-viewer-toolbar { | ||
display: flex; | ||
padding-bottom: 0.75rem; | ||
a { | ||
margin: 0 0.5rem; | ||
padding: 0.25rem; | ||
border-radius: 3px; | ||
border: 1px solid transparent; | ||
} | ||
a:hover { | ||
border-color: $explorehomer-brand; | ||
} | ||
a.active { | ||
font-weight: 700; | ||
background: $explorehomer-brand; | ||
color: $white; | ||
border-color: transparent; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.