add text to /setup page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
cfd16e8e6c
commit
e5bfd05e71
@ -13,7 +13,7 @@
|
|||||||
<div class="page-index__space" />
|
<div class="page-index__space" />
|
||||||
</div>
|
</div>
|
||||||
<div class="page-index__copyright-notice" @click="openInfoModal">
|
<div class="page-index__copyright-notice" @click="openInfoModal">
|
||||||
v{{ config.version }}, © 2021-2022, Settel
|
v{{ config.version }}, © 2021-2023, Settel
|
||||||
</div>
|
</div>
|
||||||
<InfoModal v-if="showInfoModal" @close="closeInfoModal" />
|
<InfoModal v-if="showInfoModal" @close="closeInfoModal" />
|
||||||
<CreateTeamDialog v-if="showCreateTeamDialog" @close="closeCreateTeamDialog" />
|
<CreateTeamDialog v-if="showCreateTeamDialog" @close="closeCreateTeamDialog" />
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<TitleBox />
|
<TitleBox />
|
||||||
<p>
|
<div class="page-setup__action-box">
|
||||||
needs setup
|
<div class="page-setup__description">
|
||||||
</p>
|
<p>{{ $t('description-1') }}</p>
|
||||||
|
<p>{{ $t('description-2') }}</p>
|
||||||
|
</div>
|
||||||
|
<div class="page-setup__button">
|
||||||
|
<Button @click="createAdminAccount">{{ $t('create admin user') }}</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="page-setup__copyright-notice" @click="openInfoModal">
|
<div class="page-setup__copyright-notice" @click="openInfoModal">
|
||||||
v{{ config.version }}, © 2021-2022, Settel
|
v{{ config.version }}, © 2021-2023, Settel
|
||||||
</div>
|
</div>
|
||||||
<InfoModal v-if="showInfoModal" @close="closeInfoModal" />
|
<InfoModal v-if="showInfoModal" @close="closeInfoModal" />
|
||||||
</div>
|
</div>
|
||||||
@ -15,6 +21,19 @@
|
|||||||
import { useRuntimeConfig } from '#app'
|
import { useRuntimeConfig } from '#app'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import useAuth from '@/composables/useAuth'
|
import useAuth from '@/composables/useAuth'
|
||||||
|
import useI18n from '@/composables/useI18n'
|
||||||
|
|
||||||
|
const { $t } = useI18n({
|
||||||
|
'create admin user': { en: 'create admin user', de: 'Admin-Benutzer anlegen' },
|
||||||
|
'description-1': {
|
||||||
|
en: 'Congratulation!',
|
||||||
|
de: 'Herzlichen Glückwunsch! '
|
||||||
|
},
|
||||||
|
'description-2': {
|
||||||
|
en: 'You\'ve successfully installed Know Your Teammates.',
|
||||||
|
de: 'Know Your Teammates wurde erfolgreich installiert.'
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
const config = useRuntimeConfig()
|
const config = useRuntimeConfig()
|
||||||
|
|
||||||
@ -23,12 +42,37 @@ await useAuth().authenticateAndLoadUserInfo(['setup'])
|
|||||||
const showInfoModal = ref(false)
|
const showInfoModal = ref(false)
|
||||||
const openInfoModal = () => { showInfoModal.value = true }
|
const openInfoModal = () => { showInfoModal.value = true }
|
||||||
const closeInfoModal = () => { showInfoModal.value = false }
|
const closeInfoModal = () => { showInfoModal.value = false }
|
||||||
|
|
||||||
|
const createAdminAccount = () => {
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '~/assets/css/components';
|
@import '~/assets/css/components';
|
||||||
|
|
||||||
.page-setup {
|
.page-setup {
|
||||||
|
&__action-box {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 340px;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
@media (max-width: $phone-max-width) {
|
||||||
|
margin: 32px 0 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__description {
|
||||||
|
font-size: 24px;
|
||||||
|
color: #ffffff;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__button {
|
||||||
|
display: flex;
|
||||||
|
margin: 32px auto;
|
||||||
|
}
|
||||||
|
|
||||||
&__copyright-notice {
|
&__copyright-notice {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 1em;
|
right: 1em;
|
||||||
|
Loading…
Reference in New Issue
Block a user