From ba21d228b3003d356f553199b165e3b3f757e97a Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Fri, 7 Feb 2020 22:08:16 +0100 Subject: [PATCH] =?UTF-8?q?=20-=20Nuovi=20Passi=20da=20completare:=20Legge?= =?UTF-8?q?re=20le=20Linee=20Guida=20e=20accettare=20le=20condizioni=20=20?= =?UTF-8?q?-=20Aggiunti=20i=20Video=20e=20confermare=20di=20averli=20visti?= =?UTF-8?q?=20=20-=20In=20"La=20tua=20Lavagna"=20sono=20stati=20aggiunti?= =?UTF-8?q?=20come=20requisiti:=20(Accetto=20le=20Linee=20Guida=20e=20Vedo?= =?UTF-8?q?=20il=20Video=20di=20AYNI)=20=20-=20Aggiunto=20bottone=20"Invit?= =?UTF-8?q?a=20Persone":=20apre=20la=20pagina=20dove=20c'=C3=A8=20il=20mes?= =?UTF-8?q?saggio=20da=20inviare=20alle=20persone.=20=20-=20La=20nuova=20p?= =?UTF-8?q?agina=20di=20registrazione=20https://test.gifteconomy.app/signu?= =?UTF-8?q?p/paoloar77,=20comprende=20ora=20il=20testo=20delle=20Linee=20G?= =?UTF-8?q?uida=20+=20i=20Video,=20ed=20in=20fondo=20i=20campi=20per=20reg?= =?UTF-8?q?istrarsi.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CGuidelines/CGuidelines.scss | 17 +++ src/components/CGuidelines/CGuidelines.ts | 45 +++++++ src/components/CGuidelines/CGuidelines.vue | 141 ++++++++++++++++++++ src/components/CGuidelines/index.ts | 1 + src/components/CVideoPromo/CVideoPromo.scss | 17 +++ src/components/CVideoPromo/CVideoPromo.ts | 46 +++++++ src/components/CVideoPromo/CVideoPromo.vue | 61 +++++++++ src/components/CVideoPromo/index.ts | 1 + 8 files changed, 329 insertions(+) create mode 100644 src/components/CGuidelines/CGuidelines.scss create mode 100644 src/components/CGuidelines/CGuidelines.ts create mode 100644 src/components/CGuidelines/CGuidelines.vue create mode 100644 src/components/CGuidelines/index.ts create mode 100644 src/components/CVideoPromo/CVideoPromo.scss create mode 100644 src/components/CVideoPromo/CVideoPromo.ts create mode 100644 src/components/CVideoPromo/CVideoPromo.vue create mode 100644 src/components/CVideoPromo/index.ts diff --git a/src/components/CGuidelines/CGuidelines.scss b/src/components/CGuidelines/CGuidelines.scss new file mode 100644 index 0000000..01d5685 --- /dev/null +++ b/src/components/CGuidelines/CGuidelines.scss @@ -0,0 +1,17 @@ +.lista { + text-align: left; + font-size: 0.75rem; +} + + +.step{ + font-size: 1.15rem; + font-weight: bold; + color: blue; + line-height: 1.75rem; + letter-spacing: .01em; +} + +.grass{ + font-weight: bold; +} diff --git a/src/components/CGuidelines/CGuidelines.ts b/src/components/CGuidelines/CGuidelines.ts new file mode 100644 index 0000000..3a66a4c --- /dev/null +++ b/src/components/CGuidelines/CGuidelines.ts @@ -0,0 +1,45 @@ +import { Component, Prop } from 'vue-property-decorator' + +import { CMyPage } from '../CMyPage/index' + +import { tools } from '../../store/Modules/tools' +import { Screen } from 'quasar' +import { CCopyBtn, CImgText, CTitleBanner } from '@components' +import MixinBase from '../../mixins/mixin-base' +import { static_data } from '../../db/static_data' +import { UserStore } from '@modules' +import { CMyFieldDb } from '../CMyFieldDb' +import { shared_consts } from '../../common/shared_vuejs' + +@Component({ + mixins: [MixinBase], + components: { CMyPage, CTitleBanner, CImgText, CMyFieldDb } +}) +export default class CGuidelines extends MixinBase { + @Prop({required: false, default: false}) public showconditions: boolean + public $t: any + public $q + public msg: string = '' + + get static_data() { + return static_data + } + + get accetta_guideline() { + return tools.isBitActive(UserStore.state.my.profile.saw_and_accepted, shared_consts.Accepted.CHECK_READ_GUIDELINES) + } + + set accetta_guideline(value) { + if (value) + UserStore.state.my.profile.saw_and_accepted = tools.SetBit(UserStore.state.my.profile.saw_and_accepted, shared_consts.Accepted.CHECK_READ_GUIDELINES) + else + UserStore.state.my.profile.saw_and_accepted = tools.UnSetBit(UserStore.state.my.profile.saw_and_accepted, shared_consts.Accepted.CHECK_READ_GUIDELINES) + + const mydata = { + 'profile.saw_and_accepted': UserStore.state.my.profile.saw_and_accepted + } + + tools.saveFieldToServer(this, 'users', UserStore.state.my._id, mydata) + } + +} diff --git a/src/components/CGuidelines/CGuidelines.vue b/src/components/CGuidelines/CGuidelines.vue new file mode 100644 index 0000000..2bcaafc --- /dev/null +++ b/src/components/CGuidelines/CGuidelines.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/components/CGuidelines/index.ts b/src/components/CGuidelines/index.ts new file mode 100644 index 0000000..ad283b4 --- /dev/null +++ b/src/components/CGuidelines/index.ts @@ -0,0 +1 @@ +export {default as CGuidelines} from './CGuidelines.vue' diff --git a/src/components/CVideoPromo/CVideoPromo.scss b/src/components/CVideoPromo/CVideoPromo.scss new file mode 100644 index 0000000..01d5685 --- /dev/null +++ b/src/components/CVideoPromo/CVideoPromo.scss @@ -0,0 +1,17 @@ +.lista { + text-align: left; + font-size: 0.75rem; +} + + +.step{ + font-size: 1.15rem; + font-weight: bold; + color: blue; + line-height: 1.75rem; + letter-spacing: .01em; +} + +.grass{ + font-weight: bold; +} diff --git a/src/components/CVideoPromo/CVideoPromo.ts b/src/components/CVideoPromo/CVideoPromo.ts new file mode 100644 index 0000000..b626c7a --- /dev/null +++ b/src/components/CVideoPromo/CVideoPromo.ts @@ -0,0 +1,46 @@ +import { Component, Prop } from 'vue-property-decorator' + +import { CMyPage } from '../CMyPage/index' + +import { tools } from '../../store/Modules/tools' +import { Screen } from 'quasar' +import { CCopyBtn, CImgText, CTitleBanner } from '@components' +import MixinBase from '../../mixins/mixin-base' +import { static_data } from '../../db/static_data' +import { UserStore } from '@modules' +import { CMyFieldDb } from '../CMyFieldDb' +import { shared_consts } from '../../common/shared_vuejs' +import { CVideo } from '../CVideo' + +@Component({ + mixins: [MixinBase], + components: { CMyPage, CTitleBanner, CImgText, CMyFieldDb, CVideo } +}) +export default class CVideoPromo extends MixinBase { + @Prop({required: false, default: false}) public showconditions: boolean + public $t: any + public $q + public msg: string = '' + + get static_data() { + return static_data + } + + get accetta_saw_video() { + return tools.isBitActive(UserStore.state.my.profile.saw_and_accepted, shared_consts.Accepted.CHECK_SEE_VIDEO_PRINCIPI) + } + + set accetta_saw_video(value) { + if (value) + UserStore.state.my.profile.saw_and_accepted = tools.SetBit(UserStore.state.my.profile.saw_and_accepted, shared_consts.Accepted.CHECK_SEE_VIDEO_PRINCIPI) + else + UserStore.state.my.profile.saw_and_accepted = tools.UnSetBit(UserStore.state.my.profile.saw_and_accepted, shared_consts.Accepted.CHECK_SEE_VIDEO_PRINCIPI) + + const mydata = { + 'profile.saw_and_accepted': UserStore.state.my.profile.saw_and_accepted + } + + tools.saveFieldToServer(this, 'users', UserStore.state.my._id, mydata) + } + +} diff --git a/src/components/CVideoPromo/CVideoPromo.vue b/src/components/CVideoPromo/CVideoPromo.vue new file mode 100644 index 0000000..17b10ad --- /dev/null +++ b/src/components/CVideoPromo/CVideoPromo.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/src/components/CVideoPromo/index.ts b/src/components/CVideoPromo/index.ts new file mode 100644 index 0000000..92c5fcc --- /dev/null +++ b/src/components/CVideoPromo/index.ts @@ -0,0 +1 @@ +export {default as CVideoPromo} from './CVideoPromo.vue'