Add help button in header, redirecting to help.happydns.org
This commit is contained in:
parent
bf5f35daf3
commit
b320577a62
|
@ -45,6 +45,10 @@
|
|||
<b-navbar-toggle target="nav-collapse" />
|
||||
|
||||
<b-navbar-nav class="ml-auto">
|
||||
<b-nav-form>
|
||||
<h-help />
|
||||
</b-nav-form>
|
||||
|
||||
<b-nav-item-dropdown v-if="loggedUser" right>
|
||||
<template slot="button-content">
|
||||
<b-button size="sm" variant="dark">
|
||||
|
@ -105,6 +109,10 @@ import axios from 'axios'
|
|||
|
||||
export default {
|
||||
|
||||
components: {
|
||||
hHelp: () => import('@/components/hHelp')
|
||||
},
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
alreadyShownUpdate: false,
|
||||
|
|
49
htdocs/src/components/hHelp.vue
Normal file
49
htdocs/src/components/hHelp.vue
Normal file
|
@ -0,0 +1,49 @@
|
|||
<!--
|
||||
Copyright or © or Copr. happyDNS (2020)
|
||||
|
||||
contact@happydns.org
|
||||
|
||||
This software is a computer program whose purpose is to provide a modern
|
||||
interface to interact with DNS systems.
|
||||
|
||||
This software is governed by the CeCILL license under French law and abiding
|
||||
by the rules of distribution of free software. You can use, modify and/or
|
||||
redistribute the software under the terms of the CeCILL license as
|
||||
circulated by CEA, CNRS and INRIA at the following URL
|
||||
"http://www.cecill.info".
|
||||
|
||||
As a counterpart to the access to the source code and rights to copy, modify
|
||||
and redistribute granted by the license, users are provided only with a
|
||||
limited warranty and the software's author, the holder of the economic
|
||||
rights, and the successive licensors have only limited liability.
|
||||
|
||||
In this respect, the user's attention is drawn to the risks associated with
|
||||
loading, using, modifying and/or developing or reproducing the software by
|
||||
the user in light of its specific status of free software, that may mean
|
||||
that it is complicated to manipulate, and that also therefore means that it
|
||||
is reserved for developers and experienced professionals having in-depth
|
||||
computer knowledge. Users are therefore encouraged to load and test the
|
||||
software's suitability as regards their requirements in conditions enabling
|
||||
the security of their systems and/or data to be ensured and, more generally,
|
||||
to use and operate it in the same conditions as regards security.
|
||||
|
||||
The fact that you are presently reading this means that you have had
|
||||
knowledge of the CeCILL license and that you accept its terms.
|
||||
-->
|
||||
<template>
|
||||
<b-button size="sm" target="_blank" variant="primary" @click="openHelp">
|
||||
<b-icon icon="question-circle-fill" :title="$t('common.help')" />
|
||||
</b-button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'HHelp',
|
||||
|
||||
methods: {
|
||||
openHelp () {
|
||||
window.open('https://help.happydns.org/' + encodeURIComponent(this.$i18n.locale) + '/' + this.$router.history.current.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -38,6 +38,7 @@
|
|||
"edit": "Edit",
|
||||
"field": "Field",
|
||||
"go": "Go!",
|
||||
"help": "Help!",
|
||||
"name": "Name",
|
||||
"password": "Password",
|
||||
"rename": "Rename",
|
||||
|
|
|
@ -56,6 +56,7 @@ import {
|
|||
BIconPersonCheck,
|
||||
BIconPersonPlusFill,
|
||||
BIconPlus,
|
||||
BIconQuestionCircleFill,
|
||||
BIconServer,
|
||||
BIconTrash,
|
||||
BIconTrashFill,
|
||||
|
@ -135,6 +136,7 @@ Vue.component('BIconPerson', BIconPerson)
|
|||
Vue.component('BIconPersonCheck', BIconPersonCheck)
|
||||
Vue.component('BIconPersonPlusFill', BIconPersonPlusFill)
|
||||
Vue.component('BIconPlus', BIconPlus)
|
||||
Vue.component('BIconQuestionCircleFill', BIconQuestionCircleFill)
|
||||
Vue.component('BIconServer', BIconServer)
|
||||
Vue.component('BIconTrash', BIconTrash)
|
||||
Vue.component('BIconTrashFill', BIconTrashFill)
|
||||
|
|
Loading…
Reference in New Issue
Block a user