Skip to content

Commit

Permalink
v2.10.0 (#1209)
Browse files Browse the repository at this point in the history

    new font
    new embed for public domain data
    date filter adjusted
    rearranged home page
    improved UX
    include matomo
    fix ngram page


* Fix/embed (#1182)

* update openseadragon lib
* improve form to preview iframe
* use coordinates to give focus
* Update Dockerfile
* Update Makefile
* Update netlify.toml
* add static image from IIIF in list view
* replace non working tiles wit static images

* Fix/issue misc (#1185)

* fix #1183

Remove Tawk

* highlight login/register area

* use vars root css

* add tags to version in dropdown

* add custom fields for share

* Fix/issue 1178 date (#1188)

fix #1178 
* update bootstrap vue

* add basic vars to app style

* Create FilterDateRangeCalendar.vue

* Create FilterFacetDateRange.vue

* remove brush

* remove bogus notauthentified error

* Update messages.js

* Update SearchFacets.vue

* Update FilterMonitor.vue

add impressoMinDate and impressoMaxDate in FilterMonitor

* Update FilterDateRangeCalendar.vue

* Fix/issue 1168 homepage (#1194)

* add style for btn-outline-success

* add correct version for frontend and middle layer on homepage

* restructure homepage

* add Satoshi font and clean up bootstrap

* refine search

* iframe preview label using smallcaps

* remove Search query explorer on The HEader

* refine video in homepage

* Matomo integration and fix misc ux errors (#1196)

* fix user is undefined in main script

* Update TheHeader.vue

* Update Timeline.js

* change layout of SearchResultItem

* Update vue.config.js

add Proxy in vue.config

* add matomo

* Update App.vue

add negative spacing in APP.vue

* increase timeout for Service reAuthenticate

* eslint Autocomplete

* Update IIIFFragment.vue

* add Matomo consent

* Update SearchResultsListItem.vue

* forward route to Matomo

* update logos in footer (#1195)

* Create EpflLogo.vue

* footer style update

* remove not used paragraph

* footer update

---------

Co-authored-by: Daniele Guido <gui.daniele@gmail.com>

* adapt homepage

* Feature/dev proxy (#1198)

* configure proxy for development

* move fonts to assets folder to mimic prod

* remove Sentient Font, to be replaced with Questa

* fix font on homepage

* Fix/issue 1186 collection in ngram (#1199)

* see #1061 wording

* add collection and simplify queries

fix 1186

* fix dropdown css(use margin-top instead of top)

* remove message for ingoredFilter when there is no filters :)

fix #1063

* add unigram in URL when adding/changing filters

* Fix/ux errors (#1208)

* fix TypeError: to.params.page_uid is undefined

From:
http://localhost:8080/app/search?sq=CgIYAgoyEAIYCiosMjAwNS0wNC0wMlQwMDowMDowMFogVE8gMjAwNS0wNC0wMlQyMzo1OTo1OVo%3D&p=1

* Update IIIFFragment.vue

add error message in IIIFFragment and Atl "Image not avaliable" for 404 errors.

* reduce image size to respect border width in SearchResultListItem

* get fullpage when fragment is too small

* remove debugging from histogram slider

* do not computate brush extens in Timelinejs when brush is not avaialble

* use vue proxy when in development mode

* eslint

* bump v2.10.0

---------

Co-authored-by: donsiamese <donsiamese@gmail.com>
  • Loading branch information
danieleguido and donsiamese committed Apr 9, 2024
1 parent 1bae4a8 commit 0a7ab90
Show file tree
Hide file tree
Showing 77 changed files with 42,064 additions and 2,544 deletions.
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ VUE_APP_MIDDLELAYER_API_PATH="/"
VUE_APP_MIDDLELAYER_API_SOCKET_PATH="/socket.io/"
VUE_APP_TAWK_TO_SITE_ID=
VUE_APP_BASE_URL="https://impresso-project.ch"
VUE_APP_MAINTENANCE=
VUE_APP_MAINTENANCE=
VUE_APP_GIT_REPO="https://github.com/impresso/impresso-frontend"
VUE_APP_MIDDLE_LAYER_GIT_REPO="https://github.com/impresso/impresso-middle-layer"
6 changes: 3 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VUE_APP_MIDDLELAYER_API="https://dev.impresso-project.ch"
VUE_APP_MIDDLELAYER_API_PATH="/api"
VUE_APP_MIDDLELAYER_API_SOCKET_PATH="/api/socket.io"
VUE_APP_MIDDLELAYER_API="http://localhost:3030"
VUE_APP_MIDDLELAYER_API_PATH="/"
VUE_APP_MIDDLELAYER_API_SOCKET_PATH="/socket.io"
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 1. build
FROM node:17-alpine AS frontend_builder
FROM node:17.9-alpine AS frontend_builder

ARG GIT_TAG
ARG GIT_BRANCH
Expand Down
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@ build-netlify:
NODE_OPTIONS=--openssl-legacy-provider npm run build && \
netlify deploy --prod --dir=dist


run-dev:
GIT_TAG=$(shell git describe --tags --abbrev=0 HEAD) \
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
GIT_REVISION=$(shell git rev-parse --short HEAD) \
PUBLIC_PATH=/app/ \
NODE_OPTIONS=--openssl-legacy-provider npm start

run-docker-dev:
GIT_TAG=$(shell git describe --tags --abbrev=0 HEAD) \
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
GIT_REVISION=$(shell git rev-parse --short HEAD) \
PUBLIC_PATH=/app/ \
docker-compose -f docker-compose-dev.yml up

run-dev-build:
run-docker-dev-build:
GIT_TAG=$(shell git describe --tags --abbrev=0 HEAD) \
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
GIT_REVISION=$(shell git rev-parse --short HEAD) \
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,22 @@ with `--openssl-legacy-provider` option
NODE_OPTIONS=--openssl-legacy-provider npm install
```

If required, cnfigure Vue proxy to `api` and `socket.io` in `.env.development.local` if needed, do not put any slash at the end of the env variables:

```sh
VUE_APP_MIDDLELAYER_API="https://...."
VUE_APP_MIDDLELAYER_API_PATH="/api"
VUE_APP_MIDDLELAYER_API_SOCKET_PATH="/api/socket.io"
```

FInally run with:


```
NODE_OPTIONS=--openssl-legacy-provider npm start
```


### Use docker stack for development (node v12)

We provide a Dockerfile-dev to streamline node 12 installation with now unsupported modules.
Expand Down
17 changes: 16 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@

## This rule redirects to an external API, signing requests with a secret
[[redirects]]
from = "/api/socket.io/*"
to = "https://impresso-project.ch/api/socket.io/:splat"
status = 200
force = true

## This rule redirects to an external API, signing requests with a secret
[[redirects]]
from = "/api/proxy/*"
to = "https://impresso-project.ch/api/proxy/:splat"
status = 200
force = true

[[redirects]]
from = "/*"
to = "/index.html"
status = 200
status = 200

0 comments on commit 0a7ab90

Please sign in to comment.