diff --git a/netlify.toml b/netlify.toml index ace4c69..1c10419 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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/" diff --git a/package.json b/package.json index e35b340..a45b4f3 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@fortawesome/fontawesome-svg-core": "^1.2.28", "@fortawesome/free-solid-svg-icons": "^5.13.0", "@fortawesome/vue-fontawesome": "^0.1.9", - "@scaife-viewer/scaife-widgets": "0.13.1", + "@scaife-viewer/scaife-widgets": "0.14.0", "apollo-boost": "^0.4.7", "core-js": "^3.6.5", "graphql": "^15.0.0", diff --git a/src/App.vue b/src/App.vue index 02d468c..ce2a27f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -24,6 +24,9 @@ margin: 0; padding: 0; } + :root { + --scaife-brand-color: #{$explorehomer-brand}; + } #app { font-family: $font-family-sans; -webkit-font-smoothing: antialiased; @@ -36,7 +39,21 @@ div.main-layout > .widget { border-top: none; } + div.main-layout > .widget > .main-widget-heading { + // heading is currently unused, but the slot is defined + // in scaife-skeleton + display: none; + } a { color: $explorehomer-brand; } + + .new-alexandria-widget { + font-family: $font-family-serif; + font-size: 14px; + line-height: 18px; + .new-alexandria-container { + padding-right: 1rem; + } + } diff --git a/src/components/ImageViewer.vue b/src/components/ImageViewer.vue index 29e9830..6ef110f 100644 --- a/src/components/ImageViewer.vue +++ b/src/components/ImageViewer.vue @@ -3,13 +3,18 @@
- Zoom In - - Zoom Out - - Home - - Full Page + + + + + + + + + + + +
@@ -110,6 +115,18 @@ height: calc(100vh - 100px); } + .link { + font-size: 18px; + cursor: pointer; + margin: 0 0.5rem; + padding: 0.25rem; + border-radius: 3px; + } + .link:hover { + color: $white; + background: $explorehomer-brand; + } + .error { margin: 10px 0px; padding:12px; diff --git a/src/components/ImageViewerToolbar.vue b/src/components/ImageViewerToolbar.vue new file mode 100644 index 0000000..c16785d --- /dev/null +++ b/src/components/ImageViewerToolbar.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/constants.js b/src/constants.js index cca8efa..5d48a4d 100644 --- a/src/constants.js +++ b/src/constants.js @@ -15,3 +15,7 @@ export const CLEAR_NAMED_ENTITIES = 'clearNamedEntities'; export const PLAY_AUDIO = 'playAudio'; export const STOP_AUDIO = 'stopAudio'; export const SELECT_LINE = 'selectLine'; + +export const IMAGE_VIEWER_STATE_BOTH = 'both'; +export const IMAGE_VIEWER_STATE_TEXT = 'text'; +export const IMAGE_VIEWER_STATE_IMAGE = 'image'; diff --git a/src/main.js b/src/main.js index e921ce6..51e6ac2 100644 --- a/src/main.js +++ b/src/main.js @@ -6,6 +6,12 @@ import { faVolumeUp, faUser, faMapMarkerAlt, + faAlignJustify, + faBookOpen, + faSearchMinus, + faSearchPlus, + faHome, + faWindowMaximize, } from '@fortawesome/free-solid-svg-icons'; import SkeletonPlugin from 'scaife-skeleton'; @@ -23,6 +29,12 @@ const iconMap = [ faVolumeUp, faUser, faMapMarkerAlt, + faAlignJustify, + faBookOpen, + faSearchMinus, + faSearchPlus, + faHome, + faWindowMaximize, ].reduce((map, obj) => { return { ...map, diff --git a/src/reader/components/ReaderView.vue b/src/reader/components/ReaderView.vue index ae41257..f70434b 100644 --- a/src/reader/components/ReaderView.vue +++ b/src/reader/components/ReaderView.vue @@ -10,8 +10,8 @@ diff --git a/yarn.lock b/yarn.lock index 33c6df2..4bf311a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1482,10 +1482,10 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== -"@scaife-viewer/scaife-widgets@0.13.1": - version "0.13.1" - resolved "https://registry.yarnpkg.com/@scaife-viewer/scaife-widgets/-/scaife-widgets-0.13.1.tgz#40da92bf603b8247ffc3aa2f69a661927873c194" - integrity sha512-2HKzXu+0RSalwghDi9GzbV8x5iKBKs2l1da2Bn9eLNhqtEWdE+a0zQj19tBphf8ztEnXbKVHAJZyWgfpqNgmCg== +"@scaife-viewer/scaife-widgets@0.14.0": + version "0.14.0" + resolved "https://registry.yarnpkg.com/@scaife-viewer/scaife-widgets/-/scaife-widgets-0.14.0.tgz#2d0f76f9ad8372d42409d14b545f52822fcb06e3" + integrity sha512-wNvTgjvc1JEhwu106xDNbsMAiAbeNFUCeZ8nnNLZON2SzdWeEfjePLOh5dSKju4sasl5XSBNrGeImmt3K7jXog== dependencies: "@fortawesome/fontawesome-svg-core" "^1.2.25" "@fortawesome/free-solid-svg-icons" "^5.11.2" @@ -2338,9 +2338,9 @@ acorn-walk@^7.1.1: integrity sha512-wdlPY2tm/9XBr7QkKlq0WQVgiuGTX6YWPyRyBviSoScBuLfTVQhvwg6wJ369GJ/1nPfTLMfnrFIfjqVg6d+jQQ== acorn@^5.5.3: - version "5.7.3" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" - integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw== + version "5.7.4" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" + integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== acorn@^6.0.1, acorn@^6.2.1: version "6.4.0" @@ -12549,9 +12549,9 @@ websocket-driver@>=0.5.1: websocket-extensions ">=0.1.1" websocket-extensions@>=0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.3.tgz#5d2ff22977003ec687a4b87073dfbbac146ccf29" - integrity sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg== + version "0.1.4" + resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" + integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3, whatwg-encoding@^1.0.5: version "1.0.5"