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'