- Installa APP: Messaggio in CIMA
- in sistemazione: select compare la scelta di prima.
This commit is contained in:
0
src/components/CRegistration/CRegistration.scss
Executable file
0
src/components/CRegistration/CRegistration.scss
Executable file
29
src/components/CRegistration/CRegistration.ts
Executable file
29
src/components/CRegistration/CRegistration.ts
Executable file
@@ -0,0 +1,29 @@
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { computed, defineComponent, reactive, ref, watch } from 'vue'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { DefaultProfile, useUserStore } from '@store/UserStore'
|
||||
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { static_data } from '@/db/static_data'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CRegistration',
|
||||
components: { },
|
||||
setup(props, { emit }) {
|
||||
const $q = useQuasar()
|
||||
const { t } = useI18n()
|
||||
const userStore = useUserStore()
|
||||
const globalStore = useGlobalStore()
|
||||
const $route = useRoute()
|
||||
const $router = useRouter()
|
||||
|
||||
const site = ref(globalStore.site)
|
||||
|
||||
return {
|
||||
tools,
|
||||
site,
|
||||
}
|
||||
},
|
||||
})
|
||||
39
src/components/CRegistration/CRegistration.vue
Executable file
39
src/components/CRegistration/CRegistration.vue
Executable file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<div>
|
||||
<div
|
||||
v-if="site.confpages.enableReg && site.confpages.enableRegByBot"
|
||||
style="margin-top: 10px; text-align: center"
|
||||
>
|
||||
Se non sei ancora Registrato:<br />
|
||||
<q-btn
|
||||
type="a"
|
||||
rounded
|
||||
size="md"
|
||||
color="primary"
|
||||
href="/bot"
|
||||
:label="$t('reg.submit')"
|
||||
>
|
||||
</q-btn>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="site.confpages.enableReg"
|
||||
style="margin-top: 10px; text-align: center"
|
||||
>
|
||||
Se non sei ancora Registrato:<br />
|
||||
<q-btn
|
||||
rounded
|
||||
size="md"
|
||||
color="primary"
|
||||
to="/signup"
|
||||
:label="$t('reg.submit')"
|
||||
>
|
||||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CRegistration.ts">
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import './CRegistration.scss';
|
||||
</style>
|
||||
1
src/components/CRegistration/index.ts
Executable file
1
src/components/CRegistration/index.ts
Executable file
@@ -0,0 +1 @@
|
||||
export {default as CRegistration} from './CRegistration.vue'
|
||||
Reference in New Issue
Block a user