Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fetch and highlight IIIF annotations #2439

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e1aba7a
feat: fetch IIIF annotations
rwd Sep 18, 2024
c0cdf52
feat: embed external annotations
rwd Sep 20, 2024
e473c01
chore: upgrade ol to 10.2.0
rwd Sep 24, 2024
30126df
feat: highlight clicked annotation on vector layer
rwd Sep 24, 2024
a987939
Merge branch 'master' into feat/EC-6933-fetch-iiif-annotations
rwd Sep 24, 2024
be07d93
refactor: move anno fetch logic into anno list component
rwd Sep 24, 2024
b6851df
feat: fit view to selected annotation
rwd Sep 24, 2024
71ece2c
chore: note TODO re iiif class names
rwd Sep 24, 2024
dd290bd
chore: increase docker image size
rwd Sep 24, 2024
65828be
chore: bump size limit
rwd Sep 24, 2024
c2ab75e
refactor: select instead of click
rwd Sep 24, 2024
cd6513a
refactor: disable fitting view to anno
rwd Sep 24, 2024
4abe219
fix: get presentation of WRs working again
rwd Sep 24, 2024
0bacff6
refactor: move client-only into item media presentation
rwd Sep 25, 2024
c334be1
refactor: mv reduction logic into util class
rwd Sep 25, 2024
cffe107
chore: clarify comments
rwd Sep 25, 2024
bf3b76e
test: spec base class
rwd Sep 25, 2024
e536218
refactor: move axios-cache-interceptor setup to plugin
rwd Sep 25, 2024
6a20f71
refactor: introduce TextualBody class for anno body
rwd Sep 26, 2024
5f2d97b
refactor: handle sc:AnnotationList
rwd Sep 26, 2024
ae7f406
Merge branch 'master' into feat/EC-6933-fetch-iiif-annotations
rwd Sep 26, 2024
df72f6e
chore: don't render viewers if fetchstate pending
rwd Sep 26, 2024
f5af178
chore: update imports in specs
rwd Sep 26, 2024
f3e1309
refactor: mv client-only back up
rwd Sep 27, 2024
775aa18
refactor: handle different construction inputs
rwd Sep 27, 2024
0526594
refactor: reduce use of data props for ol objects
rwd Sep 27, 2024
20cd9cb
refactor: introduce pre- and post-parsers
rwd Sep 27, 2024
d3ac4ce
refactor: add static parse factory
rwd Sep 27, 2024
f1713be
refactor: make axios url method static only
rwd Sep 27, 2024
8a4f0f9
test: update specs for media class refactors
rwd Sep 27, 2024
7250f2b
refactor: mv anno parsing to own class
rwd Sep 30, 2024
99acc73
refactor: rm id property from class definition
rwd Sep 30, 2024
9935eb9
test: spec TextualBody
rwd Sep 30, 2024
4d792f3
test: spec Annotation
rwd Sep 30, 2024
3f0f2b0
test: spec AnnotationList
rwd Sep 30, 2024
1f95719
test: update presentation spec
rwd Sep 30, 2024
97f1784
test: update prop name
rwd Sep 30, 2024
8e672ff
test: spec MediaAnnotationList
rwd Sep 30, 2024
951964a
test: spec annotation highlighting
rwd Sep 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ jobs:
-
name: Check image size
env:
DOCKER_IMAGE_SIZE_LIMIT: '367M'
DOCKER_IMAGE_SIZE_LIMIT: '387M'
run: |
docker_image_size=$(docker image inspect --format '{{.Size}}' ${{ needs.metadata.outputs.docker-full-tag }})
if [ ${docker_image_size} -gt $(numfmt --from=si ${DOCKER_IMAGE_SIZE_LIMIT}) ]; then
Expand Down
114 changes: 64 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/portal/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
'<rootDir>/tmp/'
],
transformIgnorePatterns: [
'/node_modules/(?!decamelize|swiper|ol|color-space|color-parse|color-rgba|color-name)'
'/node_modules/(?!decamelize|swiper|ol|color-space|color-parse|color-rgba|color-name|rbush|quickselect)'
],
transform: {
'^.+\\.(js|mjs)$': 'babel-jest',
Expand Down
20 changes: 19 additions & 1 deletion packages/portal/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ export default {
'~/plugins/vue-router-query',
'~/plugins/vue-matomo.client',
'~/plugins/error',
'~/plugins/axios-cache-interceptor.client',
'~/plugins/axios.server',
'~/plugins/vue-session.client',
'~/plugins/vue-announcer.client',
Expand Down Expand Up @@ -476,21 +477,38 @@ export default {
'@europeana/i18n',
'@europeana/oembed',
'@europeana/vue-visible-on-scroll',
'axios-cache-interceptor',
'color-parse',
'color-rgba',
'color-space',
'dom7',
'ol/Collection.js',
'ol/color.js',
'ol/control/Attribution.js',
'ol/control/Control.js',
'ol/extent.js',
'ol/events.js',
'ol/format/IIIFInfo.js',
'ol/geom/LineString.js',
'ol/interaction/DragBox.js',
'ol/layer/Image.js',
'ol/layer/Layer.js',
'ol/layer/Tile.js',
'ol/Map.js',
'ol/proj/Projection.js',
'ol/proj.js',
'ol/proj/epsg3857.js',
'ol/render/canvas/ZIndexContext.js',
'ol/render/Feature.js',
'ol/reproj/DataTile.js',
'ol/reproj/Tile.js',
'ol/source/IIIF.js',
'ol/source/ImageStatic.js',
'ol/source/Source.js',
'ol/source/static.js',
'ol/source/Vector.js',
'ol/structs/LRUCache.js',
'ol/style/Style.js',
'ol/style/RegularShape.js',
'ol/View.js',
'ssr-window',
'swiper',
Expand Down
Loading
Loading