From f3715c79009efec09bce0e111533066a09043663 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 6 Jul 2021 17:05:35 +0200 Subject: [PATCH] Add showing version info in GUI Resolves #373 --- src/components/home/topNavigation.vue | 3 ++ src/i18n/lang/en.json | 8 ++++- src/router/index.js | 6 ++++ src/views/About.vue | 51 +++++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 src/views/About.vue diff --git a/src/components/home/topNavigation.vue b/src/components/home/topNavigation.vue index 385f971a2..4f09ea71f 100644 --- a/src/components/home/topNavigation.vue +++ b/src/components/home/topNavigation.vue @@ -82,6 +82,9 @@ {{ $t('keyboardShortcuts.title') }} + + {{ $t('about.title') }} + {{ $t('user.auth.logout') }} diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index f7ba7f71f..b1aa20d3f 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -394,7 +394,8 @@ "doit": "Do it!", "saving": "Saving…", "saved": "Saved!", - "default": "Default" + "default": "Default", + "close": "Close" }, "input": { "resetColor": "Reset Color", @@ -813,5 +814,10 @@ "12002": "You are already subscribed to the entity itself or a parent entity.", "13001": "This link share requires a password for authentication, but none was provided.", "13002": "The provided link share password was invalid." + }, + "about": { + "title": "About", + "frontendVersion": "Frontend Version: {version}", + "apiVersion": "API Version: {version}" } } diff --git a/src/router/index.js b/src/router/index.js index d79ab68ba..5f14afdc5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,6 +5,7 @@ import HomeComponent from '../views/Home' import NotFoundComponent from '../views/404' import LoadingComponent from '../components/misc/loading' import ErrorComponent from '../components/misc/error' +import About from '../views/About' // User Handling import LoginComponent from '../views/user/Login' import RegisterComponent from '../views/user/Register' @@ -527,5 +528,10 @@ export default new Router({ name: 'openid.auth', component: OpenIdAuth, }, + { + path: '/about', + name: 'about', + component: About, + }, ], }) \ No newline at end of file diff --git a/src/views/About.vue b/src/views/About.vue new file mode 100644 index 000000000..47b811fd9 --- /dev/null +++ b/src/views/About.vue @@ -0,0 +1,51 @@ + + +