From 494480765cb75944426a2598041911b4b10c6f26 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Sat, 12 Mar 2022 22:21:40 +0100 Subject: [PATCH] Privacy Policy --- .../BannerCookies/BannerCookies.vue | 10 ++-- src/components/CMySelect/CMySelect.ts | 8 +-- src/components/CSignUp/CSignUp.ts | 6 ++- src/components/CSignUp/CSignUp.vue | 31 +++++++++-- src/components/PagePolicy/PagePolicy.vue | 4 +- src/db/lang/ws_it.js | 2 +- src/db/static_data.ts | 14 +++-- src/root/policy/policy.vue | 14 ++--- src/statics/lang/it.js | 2 +- src/store/Api/Instance.ts | 4 +- src/store/Modules/tools.ts | 10 ++++ src/store/UserStore.ts | 54 +++++++++---------- src/store/globalStore.ts | 4 +- src/views/projects/proj-list/proj-list.ts.off | 2 +- 14 files changed, 102 insertions(+), 63 deletions(-) diff --git a/src/components/BannerCookies/BannerCookies.vue b/src/components/BannerCookies/BannerCookies.vue index bf8bcef4..3606e9df 100755 --- a/src/components/BannerCookies/BannerCookies.vue +++ b/src/components/BannerCookies/BannerCookies.vue @@ -6,11 +6,11 @@ {{t('cookies')}} diff --git a/src/components/CMySelect/CMySelect.ts b/src/components/CMySelect/CMySelect.ts index 98eb79d5..509bdb51 100755 --- a/src/components/CMySelect/CMySelect.ts +++ b/src/components/CMySelect/CMySelect.ts @@ -207,11 +207,11 @@ export default defineComponent({ // console.log('----------- valori.value', valori.value) // console.log('----------- arrtempOpt.value', arrtempOpt.value) - localStorage.setItem(props.tablesel + num + props.optval, id) - localStorage.setItem(props.tablesel + num + props.optlab, tools.getValueByFunzOrVal(rec, props.optlab)) + tools.localStSetItem(props.tablesel + num + props.optval, id) + tools.localStSetItem(props.tablesel + num + props.optlab, tools.getValueByFunzOrVal(rec, props.optlab)) num += 1 - localStorage.setItem(props.tablesel + 'NUM', num.toString()) + tools.localStSetItem(props.tablesel + 'NUM', num.toString()) } } } @@ -222,7 +222,7 @@ export default defineComponent({ function changeval(newval: any) { console.log(' ½½½½½½½ changeval', newval) if (props.multiple || props.multiselect_by_server) { - // localStorage.setItem(props.tablesel + '_' + newval, valori.value[newval]) + // tools.localStSetItem(props.tablesel + '_' + newval, valori.value[newval]) if (props.type_out === costanti.FieldType.object) { const arrout = [] diff --git a/src/components/CSignUp/CSignUp.ts b/src/components/CSignUp/CSignUp.ts index 2e6bf17a..baa53660 100755 --- a/src/components/CSignUp/CSignUp.ts +++ b/src/components/CSignUp/CSignUp.ts @@ -7,6 +7,7 @@ import { Logo } from '../../components/logo' // import 'vue-country-code/dist/vue-country-code.css' import { CTitleBanner } from '../CTitleBanner' +import { PagePolicy } from '../PagePolicy' import { computed, defineComponent, reactive, ref, watch } from 'vue' import { CSignIn } from '@/components/CSignIn' import { useQuasar } from 'quasar' @@ -29,7 +30,7 @@ import { useGlobalStore } from '@store/globalStore' export default defineComponent({ name: 'CSignUp', - components: { Logo, CTitleBanner }, + components: { Logo, CTitleBanner, PagePolicy }, props: { showadultcheck: { type: Boolean, @@ -74,7 +75,7 @@ export default defineComponent({ const duplicate_email = ref(false) const duplicate_username = ref(false) const visureg = ref(false) - + const showpolicy = ref(false) const globalStore = useGlobalStore() @@ -299,6 +300,7 @@ export default defineComponent({ allowSubmit, myRuleEmail, visureg, + showpolicy, } }, }) diff --git a/src/components/CSignUp/CSignUp.vue b/src/components/CSignUp/CSignUp.vue index b5bee5bd..868818d4 100755 --- a/src/components/CSignUp/CSignUp.vue +++ b/src/components/CSignUp/CSignUp.vue @@ -204,9 +204,6 @@ -

- - +
+ +
+ + + + + + Privacy Policy + + + + + + + + + +

8. Access rights, deletion, restriction and portability.

diff --git a/src/db/lang/ws_it.js b/src/db/lang/ws_it.js index 983f42ed..14f73954 100755 --- a/src/db/lang/ws_it.js +++ b/src/db/lang/ws_it.js @@ -168,7 +168,7 @@ const msg_website_it = { }, coin: { title: 'RIS - Credito Alternativo', - descr: 'Stiamo lavorando anche per creare una sorta di "moneta alternativa" per conteggiare gli scambi che avvengono tra di noi, quand il semplice baratto risulta non applicabile.
' + + descr: 'Stiamo lavorando anche per creare una sorta di "moneta alternativa" per conteggiare gli scambi che avvengono tra di noi, quando il semplice baratto risulta non applicabile.
' + 'Partendo dalle basi del Si.Cre.Na.C.C - Sistema di Credito Naturale a Copertura Certa.
' + 'Ciascun operatore potrà creare moneta all\'occorrenza, se il saldo del suo conto non sarà sufficiente a coprire la spesa. Potrà quindi mandare il suo conto in "scoperto", accollandosi il conseguente' + ' Debito, accreditando l\'equivalente somma all\'operatore ricevente, il quale la annovera nel suo conto in qualità di Credito. ' + diff --git a/src/db/static_data.ts b/src/db/static_data.ts index 92c57333..a60d7a96 100755 --- a/src/db/static_data.ts +++ b/src/db/static_data.ts @@ -12,7 +12,7 @@ const functionality: IFunctionality = { SHOW_REG_BUTTON: false, ENABLE_REGISTRATION: true, // Cambiare con true SHOW_NEWSLETTER: false, - SHOW_ONLY_POLICY: false, + SHOW_ONLY_POLICY: true, ENABLE_TODOS_LOADING: false, ENABLE_PROJECTS_LOADING: false, SHOW_IF_IS_SERVER_CONNECTION: false, @@ -598,13 +598,16 @@ const baseroutes: IListRoutes[] = [ infooter: false }, - // --- NOT IN MENU: --- - /*{ - order: 8, + { + active: true, + order: 2000, path: '/policy', + materialIcon: 'fas fa-user', name: 'pages.policy', component: () => import('@src/root/policy/policy.vue'), - },*/ + inmenu: false, + infooter: true + }, { active: functionality.ENABLE_REGISTRATION, order: 1000, @@ -637,6 +640,7 @@ const baseroutes: IListRoutes[] = [ inmenu: true, infooter: true }, + // --- NOT IN MENU: --- { active: true, order: 1000, diff --git a/src/root/policy/policy.vue b/src/root/policy/policy.vue index 2c41a958..7465a3ff 100755 --- a/src/root/policy/policy.vue +++ b/src/root/policy/policy.vue @@ -2,13 +2,13 @@
diff --git a/src/statics/lang/it.js b/src/statics/lang/it.js index 36060e24..1086928e 100755 --- a/src/statics/lang/it.js +++ b/src/statics/lang/it.js @@ -823,7 +823,7 @@ const msg_it = { wrongerr: 'Email non valida', }, privacy_policy: 'Privacy Policy', - cookies: 'Usiamo i Cookie per una migliore prestazione web.', + cookies: 'Usiamo i Cookie per una migliore prestazione web. Accetti l\'utilizzo?', sites: { active: 'Attivo', idapp: 'IdApp', diff --git a/src/store/Api/Instance.ts b/src/store/Api/Instance.ts index d6187524..e2c24039 100755 --- a/src/store/Api/Instance.ts +++ b/src/store/Api/Instance.ts @@ -84,11 +84,11 @@ async function Request(type: string, path: string, payload: any): Promise { console.log('Error during Subscription!', e) diff --git a/src/views/projects/proj-list/proj-list.ts.off b/src/views/projects/proj-list/proj-list.ts.off index 9c5029df..11b981aa 100755 --- a/src/views/projects/proj-list/proj-list.ts.off +++ b/src/views/projects/proj-list/proj-list.ts.off @@ -597,7 +597,7 @@ export default defineComponent({ // console.log('selectGroup', selectGroup) // Set last category selected - // localStorage.setItem(tools.localStorage.categorySel, categoryAtt) + // tools.localStSetItem(tools.localStorage.categorySel, categoryAtt) checkUpdate_everytime() }