From 0bc1f9d9c683d88292b4ced2ec85bcf86cf0dbcf Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 23 Oct 2022 03:08:27 +0300 Subject: [PATCH] [1.4.5] The release date was shown on the release notes web page. --- buildx.sh | 2 +- package-lock.json | 2 +- package.json | 2 +- public/locales/en/translations.json | 3 ++- public/locales/ro/translations.json | 3 ++- release.sh | 4 ++-- .../releaseNotes/components/ReleaseNotesSummary.js | 11 +++++++++-- 7 files changed, 18 insertions(+), 9 deletions(-) diff --git a/buildx.sh b/buildx.sh index 7c4f99d..9cf8863 100644 --- a/buildx.sh +++ b/buildx.sh @@ -1,7 +1,7 @@ #!/bin/bash echo "Welcome!" -version="1.4.2" +version="1.4.5" platform="linux/amd64,linux/arm64,linux/arm/v7" appSubfolder="/reverse-proxy" localRegistryPass="***REMOVED***" diff --git a/package-lock.json b/package-lock.json index 61e6a44..7a2464d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "reverse-proxy-frontend", - "version": "1.4.2", + "version": "1.4.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 55d6523..f5703ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reverse-proxy-frontend", - "version": "1.4.2", + "version": "1.4.5", "private": true, "description": "Reverse proxy frontend application", "author": { diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index 35bd876..5e1f09d 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -99,7 +99,8 @@ }, "ReleaseNotes": { "Title": "Release notes", - "Version": "Version" + "Version": "Version", + "Date": "Date" }, "Server": { "Title": "Server", diff --git a/public/locales/ro/translations.json b/public/locales/ro/translations.json index a867974..37d84a3 100644 --- a/public/locales/ro/translations.json +++ b/public/locales/ro/translations.json @@ -90,7 +90,8 @@ }, "ReleaseNotes": { "Title": "Note lansare", - "Version": "Versiune" + "Version": "Versiune", + "Date": "Dată" }, "Server": { "Title": "Server", diff --git a/release.sh b/release.sh index c9c3ef2..2d5eb0b 100644 --- a/release.sh +++ b/release.sh @@ -1,8 +1,8 @@ #!/bin/sh echo "Welcome!" -version="1.4.2" -oldver="1.4.1" +version="1.4.5" +oldver="1.4.2" echo "Pull docker image reverse-proxy-frontend:$version from registry." docker pull alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:$version diff --git a/src/features/releaseNotes/components/ReleaseNotesSummary.js b/src/features/releaseNotes/components/ReleaseNotesSummary.js index 1e72f29..a0709f5 100644 --- a/src/features/releaseNotes/components/ReleaseNotesSummary.js +++ b/src/features/releaseNotes/components/ReleaseNotesSummary.js @@ -13,13 +13,20 @@ const ReleaseNotesSummary = ({ releaseNote, collapsed }) => { return ( - + {`${t("ReleaseNotes.Version")}: ${releaseNote.version}`} + + + {`${t("ReleaseNotes.Date")}: ${t("DATE_FORMAT", { + date: { value: releaseNote.date, format: "DD-MM-YYYY HH:mm" } + })}`} + + {collapsed && ( - + {releaseNote.notes[0]} )}