From e11cf191496342839395151d049e34de07800c70 Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Sat, 3 Dec 2022 01:32:48 +0100 Subject: [PATCH] Aggiunto la pagina dei Beni e Servizi della persona singola, separata dal profilo. --- .env.development | 2 +- .env.example.production | 2 +- _ALL_SITES/riso.app/.env.development | 2 +- _ALL_SITES/riso.app/.env.production | 2 +- _ALL_SITES/riso.app/.env.test | 2 +- .../terradellavisione.app/.env.development | 2 +- src/common/shared_vuejs.ts | 5 + src/components/CBarSelection/CBarSelection.ts | 13 +- .../CCurrencyValue/CCurrencyValue.vue | 2 +- src/components/CMyCircuit/CMyCircuit.ts | 12 +- src/components/CMyElem/CMyElem.vue | 3 + src/components/CSaldo/CSaldo.vue | 2 +- src/db/static_data.ts | 11 - src/router/routesAdmin.ts | 22 ++ src/statics/lang/it.js | 4 +- src/store/Modules/costanti.ts | 3 + src/store/Modules/tools.ts | 14 ++ src/views/user/editprofile/editprofile.vue | 13 -- src/views/user/myactivities/myactivities.scss | 18 ++ src/views/user/myactivities/myactivities.ts | 206 ++++++++++++++++++ src/views/user/myactivities/myactivities.vue | 160 ++++++++++++++ src/views/user/mycircuit/mycircuit.vue | 1 + src/views/user/myprofile/myprofile.ts | 1 + src/views/user/myprofile/myprofile.vue | 63 +----- 24 files changed, 467 insertions(+), 98 deletions(-) create mode 100755 src/views/user/myactivities/myactivities.scss create mode 100755 src/views/user/myactivities/myactivities.ts create mode 100755 src/views/user/myactivities/myactivities.vue diff --git a/.env.development b/.env.development index 5197c629..caf1698e 100755 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.29" +APP_VERSION="0.5.30" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/.env.example.production b/.env.example.production index efd78cfc..7504d346 100755 --- a/.env.example.production +++ b/.env.example.production @@ -1,4 +1,4 @@ -APP_VERSION="0.5.29" +APP_VERSION="0.5.30" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/riso.app/.env.development b/_ALL_SITES/riso.app/.env.development index 5197c629..caf1698e 100755 --- a/_ALL_SITES/riso.app/.env.development +++ b/_ALL_SITES/riso.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.29" +APP_VERSION="0.5.30" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/riso.app/.env.production b/_ALL_SITES/riso.app/.env.production index eff08700..94fac606 100644 --- a/_ALL_SITES/riso.app/.env.production +++ b/_ALL_SITES/riso.app/.env.production @@ -1,4 +1,4 @@ -APP_VERSION="0.5.29" +APP_VERSION="0.5.30" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/riso.app/.env.test b/_ALL_SITES/riso.app/.env.test index 1f27c72b..5206755b 100755 --- a/_ALL_SITES/riso.app/.env.test +++ b/_ALL_SITES/riso.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="0.5.29" +APP_VERSION="0.5.30" SERVICE_WORKER_FILE="service-worker.js" APP_ID="16" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/terradellavisione.app/.env.development b/_ALL_SITES/terradellavisione.app/.env.development index 1baf18f9..3023cb3c 100755 --- a/_ALL_SITES/terradellavisione.app/.env.development +++ b/_ALL_SITES/terradellavisione.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.29" +APP_VERSION="0.5.30" SERVICE_WORKER_FILE="service-worker.js" APP_ID="14" DIRECTORY_LOCAL="newfreeplanet" diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index 4c33e2e5..cd4a315f 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -50,6 +50,7 @@ export const shared_consts = { BTN_REG: 250, BTN_REG_BYBOT: 255, BTN_LOGIN: 260, + FOOTER: 270, }, QUERYTYPE_MYGROUP: 1, @@ -1376,6 +1377,10 @@ export const shared_consts = { value: 260, label: 'Butt Login', }, + { + value: 270, + label: 'Footer', + }, ], LISTBESTCOLORS: [ diff --git a/src/components/CBarSelection/CBarSelection.ts b/src/components/CBarSelection/CBarSelection.ts index 31eaf38e..bd1b8001 100755 --- a/src/components/CBarSelection/CBarSelection.ts +++ b/src/components/CBarSelection/CBarSelection.ts @@ -40,6 +40,7 @@ import { CMyCardGrpPopup } from '@/components/CMyCardGrpPopup' import { CMyCardCircuitPopup } from '@/components/CMyCardCircuitPopup' import { useRouter } from 'vue-router' import { table } from 'console' +import { globals } from 'jest.config' export default defineComponent({ name: 'CBarSelection', @@ -249,17 +250,7 @@ export default defineComponent({ function mounted() { - optionsMainCards.value = [] - let obj = { label: '', value: '', icon: '' } - for (let i = 0; i < costanti.MAINCARDS.length - 1; i++) { - let rec: any = costanti.MAINCARDS[i] - if (rec.table) { - obj.label = rec.title - obj.value = rec.table - obj.icon = rec.icon - optionsMainCards.value.push({...obj}) - } - } + optionsMainCards.value = tools.getoptionsMainCards(false) tablesel.value = props.table diff --git a/src/components/CCurrencyValue/CCurrencyValue.vue b/src/components/CCurrencyValue/CCurrencyValue.vue index b40f1ae8..bba9aa14 100755 --- a/src/components/CCurrencyValue/CCurrencyValue.vue +++ b/src/components/CCurrencyValue/CCurrencyValue.vue @@ -46,7 +46,7 @@ diff --git a/src/components/CMyCircuit/CMyCircuit.ts b/src/components/CMyCircuit/CMyCircuit.ts index 9f9df82b..43275829 100755 --- a/src/components/CMyCircuit/CMyCircuit.ts +++ b/src/components/CMyCircuit/CMyCircuit.ts @@ -2,7 +2,7 @@ import { computed, defineComponent, onMounted, PropType, ref, watch } from 'vue' import { useUserStore } from '@store/UserStore' import { useCircuitStore } from '@store/CircuitStore' -import { ICircuit, IImgGallery, IUserFields, IUserProfile, IFriends, IAccount } from 'model' +import { ICircuit, IImgGallery, IUserFields, IUserProfile, IFriends, IAccount, IMyCircuit } from 'model' import { costanti } from '@costanti' import { shared_consts } from '@/common/shared_vuejs' import { tools } from '@store/Modules/tools' @@ -46,7 +46,7 @@ export default defineComponent({ const globalStore = useGlobalStore() - const circuit = ref(null) + const circuit = ref(null) const account = computed(() => circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null ) const qtarem = computed(() => account.value ? circuitStore.getRemainingCoinsToSend(account.value) : 0) @@ -70,6 +70,14 @@ export default defineComponent({ circuit.value = props.mycircuit } } + if (circuit.value && circuit.value.hasOwnProperty('circuitname')) { + // @ts-ignore + const rectofind = circuitStore.listcircuits.find((circ: ICircuit) => circ.name === circuit.value.circuitname!) + if (rectofind) { + console.log('rectofind', rectofind) + circuit.value = rectofind + } + } } function getImgCircuit(circuit: ICircuit) { diff --git a/src/components/CMyElem/CMyElem.vue b/src/components/CMyElem/CMyElem.vue index bad55539..86e25296 100755 --- a/src/components/CMyElem/CMyElem.vue +++ b/src/components/CMyElem/CMyElem.vue @@ -586,6 +586,9 @@ > --> +
+ +
diff --git a/src/components/CSaldo/CSaldo.vue b/src/components/CSaldo/CSaldo.vue index ffdf6210..43bb1f3e 100755 --- a/src/components/CSaldo/CSaldo.vue +++ b/src/components/CSaldo/CSaldo.vue @@ -1,5 +1,5 @@