Skip to content

Commit 2878006

Browse files
committed
3068: Fixed merge
2 parents 0322d05 + 489572a commit 2878006

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3926
-10867
lines changed

.docker/vhost.conf

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ server {
77
proxy_set_header X-Forwarded-For $remote_addr;
88
proxy_set_header Host $http_host;
99
proxy_pass http://node:3000;
10-
add_header Cache-Control "public, max-age=604800";
11-
expires 7d;
10+
11+
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
12+
add_header Pragma "no-cache";
13+
add_header Expires "0";
14+
}
15+
16+
location /client/ws {
17+
proxy_pass http://node:3000;
18+
proxy_http_version 1.1;
19+
proxy_set_header Upgrade $http_upgrade;
20+
proxy_set_header Connection "upgrade";
1221
}
1322
}

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ end_of_line = LF
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[*.{php,html,twig,js,css,scss,json,yaml}]
11+
[*.{php,html,twig,js,css,scss,json,yaml,jsx}]
1212
indent_style = space
1313
indent_size = 2
1414

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"allowImportExportEverywhere": true
1515
},
1616
"rules": {
17+
"react/require-default-props": "off",
1718
"react/jsx-filename-extension": [
1819
"warn",
1920
{

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: Archive screenshots
5555
if: ${{ failure() }}
56-
uses: actions/upload-artifact@v2
56+
uses: actions/upload-artifact@v4
5757
with:
5858
name: cypress-screenshots-${{ matrix.browser }}
5959
path: cypress/screenshots

CHANGELOG.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,51 @@ All notable changes to this project will be documented in this file.
55
## Unreleased
66

77
- Added support for previews.
8+
- [#140](https://github.com/os2display/display-client/pull/140)
9+
- Fixed issue where campaign end resulted in blank screen.
10+
11+
## [2.1.1] - 2024-10-23
12+
13+
- [#138](https://github.com/os2display/display-client/pull/138)
14+
- Avoided setting ER105 in url when no token exists in local storage.
15+
- [#137](https://github.com/os2display/display-client/pull/137)
16+
- Add `no-cache´ directive to nginx setup.
17+
18+
## [2.1.0] - 2024-10-23
19+
20+
- [#135](https://github.com/os2display/display-client/pull/135)
21+
- Fixed cursor being hidden when not in debug mode.
22+
- Moved registration of listeners in useEffect.
23+
- [#134](https://github.com/os2display/display-client/pull/134)
24+
- Fixed remote loader for touch regions.
25+
- [#133](https://github.com/os2display/display-client/pull/133)
26+
- Added error message ER201 on screen when remote component could not load.
27+
- Added error timestamp to remote component loader, to force reload on error.
28+
- [#132](https://github.com/os2display/display-client/pull/132)
29+
- Remove token errors after re-login.
30+
- [#131](https://github.com/os2display/display-client/pull/131)
31+
- Moved localstorage calls into helper class AppStorage.
32+
- Cleaned up project structure.
33+
- Fixed async flow for release check.
34+
- Added previous boot timestamp (pb) to url.
35+
- Try to refresh token on reauthenticate event.
36+
- Added status and error to url.
37+
- Added error code to login page, if set.
38+
- [#130](https://github.com/os2display/display-client/pull/130)
39+
- Fixed issue with svg loading.
40+
- [#127](https://github.com/os2display/display-client/pull/127)
41+
- Migrate from CRA to Vite
42+
- Upgrade node from 14 -> 20
43+
- Winston logging to Pino logging
44+
- Set infrastructure node version to 20.
45+
- Fixed base path to /client.
46+
- [#118](https://github.com/os2display/display-client/pull/118)
47+
- Added api url to localstorage.
48+
49+
## [2.0.4] - 2024-08-14
50+
51+
- [#128](https://github.com/os2display/display-client/pull/128)
52+
- Fixed rrule evaluation to handle local time correctly.
853

954
## [2.0.3] - 2024-05-21
1055

@@ -34,7 +79,8 @@ All notable changes to this project will be documented in this file.
3479

3580
- [#119](https://github.com/os2display/display-client/pull/119)
3681
- Changed to v2 routing.
37-
- Limited the number of API calls by comparing relationsChecksum.
82+
- [#117](https://github.com/os2display/display-client/pull/117)
83+
- Limited the number of API calls by comparing relationsChecksum.
3884

3985
## [1.3.5] - 2023-09-14
4086

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Start docker setup
5050

5151
```
5252
# Install npm packages
53-
docker compose run node yarn install
53+
docker compose run --rm node yarn install
5454
5555
# Up the containers
5656
docker compose up -d

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
3030

3131
node:
32-
image: node:14
32+
image: node:20
3333
command: yarn start
3434
networks:
3535
- app

docs/error-codes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Error codes
2+
3+
* ER101: API returns 401. Token could not be refreshed. This could be caused by logging out in the admin.
4+
* ER102: Token could not be refreshed in normal refresh token loop.
5+
* ER103: Token refresh aborted, refresh token, iat and/or exp not set.
6+
* ER104: Release file could not be loaded.
7+
* ER105: Token is expired.
8+
* ER106: Token is valid but should have been refreshed.
9+
* ER201: Error loading slide template.

public/index.html renamed to index.html

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,15 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
5+
<link rel="icon" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta name="google" content="notranslate" />
99
<meta
1010
name="description"
1111
content="OS2Display client"
1212
/>
13-
<!--
14-
manifest.json provides metadata used when your web app is installed on a
15-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16-
-->
17-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18-
<!--
19-
Notice the use of %PUBLIC_URL% in the tags above.
20-
It will be replaced with the URL of the `public` folder during the build.
21-
Only files inside the `public` folder can be referenced from the HTML.
22-
23-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24-
work correctly both with client-side routing and a non-root public URL.
25-
Learn how to configure a non-root public URL by running `npm run build`.
26-
-->
13+
<link rel="manifest" href="/manifest.json" />
2714
<title>OS2Display</title>
2815
</head>
2916
<body>
@@ -39,5 +26,6 @@
3926
To begin the development, run `npm start` or `yarn start`.
4027
To create a production bundle, use `npm run build` or `yarn build`.
4128
-->
29+
<script type="module" src="/src/index.jsx"></script>
4230
</body>
4331
</html>

infrastructure/itkdev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16 AS APP_BUILDER
1+
FROM node:20 AS APP_BUILDER
22
LABEL maintainer="ITK Dev <[email protected]>"
33

44
ARG APP_VERSION="develop"

0 commit comments

Comments
 (0)