Skip to content

Commit

Permalink
#4 - Add about and help pages
Browse files Browse the repository at this point in the history
- Add About page
- Add Help page
- Update Start page text
  • Loading branch information
Ammar Barakat committed Oct 6, 2021
1 parent 0ff575e commit de8642e
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 16 deletions.
16 changes: 8 additions & 8 deletions locales/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export default {
date: 'Date',
time: 'Time',
hourFormat: 'Hour Format',
frontend: 'Frontend',
backend: 'Backend',
address: {
name1: 'Universitätsklinikum Frankfurt',
name2: 'Medical Informatics Group (MIG)',
Expand Down Expand Up @@ -170,13 +172,11 @@ export default {
title: 'Home',
subtitle: '',
content: {
howdy: 'Howdy stranger!',
preAlpha: 'What you see here is a <b>PreAlpha</b> Version of the new DataElement Hub GUI. ' +
'So do not expect a fully working bug-free Version. Quite the contrary, expect the worst.',
bugReport: 'If you stumble over a bug, feel free to create an Issue in the projects repository, which can be found ' +
'<a href="https://github.com/mig-frankfurt/dataelementhub.gui" target="_blank">here</a>.',
howdy: 'Welcome to DataelementHub (DEHub)!',
preAlpha: 'What you see here is a Alpha Version of the new DataElement Hub GUI. So do not expect a fully working bug-free Version. We are continuously working on improving the software.',
bugReport: 'When you come across a bug, feel free to create an Issue in the projects repository, which can be found here (<a href="https://github.com/mig-frankfurt/dataelementhub.gui" target="_blank">https://github.com/mig-frankfurt/dataelementhub.gui</a>) .',
dockerImage: 'From time to time there will be new a new Release of the corresponding Docker image. So be sure to check that too.',
thanks: '<b>Thanks!</b>'
thanks: 'For further information please visit <a href="https://dataelementhub.de" target="_blank">https://dataelementhub.de</a><br><br><b>Thanks!</b>'
}
},
namespaces: {
Expand Down Expand Up @@ -320,11 +320,11 @@ export default {
subtitle: ''
},
about: {
title: 'About the DataElement Hub',
title: 'About the DataElementHub',
subtitle: ''
},
help: {
title: 'Help?',
title: 'Help',
subtitle: ''
},
login: {
Expand Down
56 changes: 51 additions & 5 deletions pages/about.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,57 @@
<template>
<v-row justify="center" align="center">
<v-col cols="12" sm="8" md="6" />
</v-row>
<div>
<h1>{{ $t('pages.about.title') }}</h1>
<template v-if="backendData !== undefined">
<h2>{{ $t('global.backend') }}</h2>
<ul>
<li>buildVersion: {{ backendData.buildVersion }}</li>
<li>buildDate: {{ backendData.buildDate }}</li>
<li>buildBranch: {{ backendData.buildBranch }}</li>
<li>buildHash: {{ backendData.buildHash }}</li>
</ul>
</template>
<h2>{{ $t('global.frontend') }}</h2>
<ul>
<li>buildVersion: 1.0.0</li>
<li>buildDate: 2021-09-30</li>
<li>buildBranch: develop</li>
</ul>
<h2>Github</h2>
<p>
<b>DataElementHub REST</b><br>
<a href="https://github.com/mig-frankfurt/dataelementhub.rest" target="_blank">
https://github.com/mig-frankfurt/dataelementhub.rest
</a>
</p>
<p>
<b>DataElementHub GUI</b><br>
<a href="https://github.com/mig-frankfurt/dataelementhub.gui" target="_blank">
https://github.com/mig-frankfurt/dataelementhub.gui
</a>
</p>
</div>
</template>

<script>
export default {
auth: false
auth: false,
data () {
return {
ajax: {
versionUrl: process.env.mdrBackendUrl + '/v1/version'
},
backendData: undefined
}
},
mounted () {
this.loadBackendVersion()
},
methods: {
async loadBackendVersion () {
await this.$axios.$get(this.ajax.versionUrl)
.then(function (res) {
this.backendData = res
}.bind(this))
}
}
}
</script>
12 changes: 9 additions & 3 deletions pages/help.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<template>
<v-row justify="center" align="center">
<v-col cols="12" sm="8" md="6" />
</v-row>
<div>
<h1>{{ $t('pages.help.title') }}</h1>
You can login with the following Account Data:
<p>
<b>User:</b> dehub-demo<br>
<b>Password:</b> demo
</p>
If you have any questions feel free to send an Email to: <a href="mailto:vengadeswaran@med.uni-frankfurt.de">vengadeswaran@med.uni-frankfurt.de</a>.
</div>
</template>

<script>
Expand Down

0 comments on commit de8642e

Please sign in to comment.