From f86d8cb7d1a8d50f546d67497f61acda1be07573 Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Wed, 14 Sep 2022 17:37:10 +0200 Subject: [PATCH] Version 1.0.1 with RIS Circuit Money Exchange ! --- .env.development | 2 +- .env.example.production | 2 +- _ALL_SITES/insiemesipuo.app/.env.development | 2 +- .../popolodelnuovomondo.app/.env.development | 2 +- _ALL_SITES/riso.app/.env.development | 2 +- _ALL_SITES/riso.app/.env.test | 2 +- .../terradellavisione.app/.env.development | 2 +- _ALL_SITES/terradellavisione.app/.env.test | 2 +- package.json | 2 +- src/common/shared_vuejs.ts | 11 ++ .../CCurrencyValue/CCurrencyValue.ts | 6 + .../CCurrencyValue/CCurrencyValue.vue | 5 +- .../CMyCardCircuitPopup.vue | 4 +- src/components/CMyCart/CMyCart.vue | 2 +- src/components/CMyCircuits/CMyCircuits.ts | 40 ++++--- src/components/CMyCircuits/CMyCircuits.vue | 6 + src/components/CMyPopupEdit/CMyPopupEdit.vue | 2 +- src/components/CProductCard/CProductCard.vue | 2 +- src/components/CSaldo/CSaldo.vue | 4 +- src/components/CSendCoins/CSendCoins.ts | 3 + src/components/CSendCoins/CSendCoins.vue | 8 +- src/components/CSingleCart/CSingleCart.vue | 2 +- src/db/static_data.ts | 2 +- src/model/GlobalStore.ts | 6 +- src/statics/lang/it.js | 7 +- src/store/Modules/fieldsTable.ts | 22 +++- src/store/Modules/tools.ts | 78 ++++++++----- src/store/globalStore.ts | 9 +- src/views/user/mycircuit/mycircuit.scss | 12 +- src/views/user/mycircuit/mycircuit.vue | 107 +++++++++++------- yarn.lock | 2 +- 31 files changed, 242 insertions(+), 116 deletions(-) diff --git a/.env.development b/.env.development index 4d78c3de..a09476de 100755 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.3.24" +APP_VERSION="1.0.1" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/.env.example.production b/.env.example.production index 58e091e9..1528bed4 100755 --- a/.env.example.production +++ b/.env.example.production @@ -1,4 +1,4 @@ -APP_VERSION="0.3.24" +APP_VERSION="1.0.1" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/insiemesipuo.app/.env.development b/_ALL_SITES/insiemesipuo.app/.env.development index 31f2cd01..2c5a057a 100755 --- a/_ALL_SITES/insiemesipuo.app/.env.development +++ b/_ALL_SITES/insiemesipuo.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.3.24" +APP_VERSION="1.0.1" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/popolodelnuovomondo.app/.env.development b/_ALL_SITES/popolodelnuovomondo.app/.env.development index a1f036f5..f0c5324b 100755 --- a/_ALL_SITES/popolodelnuovomondo.app/.env.development +++ b/_ALL_SITES/popolodelnuovomondo.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.3.24" +APP_VERSION="1.0.1" SERVICE_WORKER_FILE="service-worker.js" APP_ID="12" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/riso.app/.env.development b/_ALL_SITES/riso.app/.env.development index 1b0aef03..57c43f2a 100755 --- a/_ALL_SITES/riso.app/.env.development +++ b/_ALL_SITES/riso.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.3.24" +APP_VERSION="1.0.1" 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 b7f3267a..24ae617b 100755 --- a/_ALL_SITES/riso.app/.env.test +++ b/_ALL_SITES/riso.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="0.3.24" +APP_VERSION="1.0.1" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/terradellavisione.app/.env.development b/_ALL_SITES/terradellavisione.app/.env.development index a893049e..031d5e2a 100755 --- a/_ALL_SITES/terradellavisione.app/.env.development +++ b/_ALL_SITES/terradellavisione.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.3.24" +APP_VERSION="1.0.1" SERVICE_WORKER_FILE="service-worker.js" APP_ID="14" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/terradellavisione.app/.env.test b/_ALL_SITES/terradellavisione.app/.env.test index 6500ab15..36aa1a92 100755 --- a/_ALL_SITES/terradellavisione.app/.env.test +++ b/_ALL_SITES/terradellavisione.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="0.3.24" +APP_VERSION="1.0.1" SERVICE_WORKER_FILE="service-worker.js" APP_ID="14" DIRECTORY_LOCAL=newfreeplanet diff --git a/package.json b/package.json index ef960454..0114bdc7 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "riso", - "version": "0.3.23", + "version": "1.0.1", "description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.", "productName": "Riso", "author": "Paolo Arena", diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index f86750bf..8016111e 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -1015,6 +1015,12 @@ export const shared_consts = { labeltrans: 'typenotifs.circuits', descr: 'typenotifs.circuits_descr', icon:'fas fa-coins', + list: [ + { + value: 1, // ID_CIRCUIT_NEW_REC + labeltrans: 'notifsid.circuits_new', + } + ], }, { value: 6, // @@ -1072,6 +1078,11 @@ export const shared_consts = { labeltrans: 'notifsid.groups_new', directory: 4, }, + { + value: 1, // GroupsNotifs.STATUS_GROUPS_NEW + labeltrans: 'notifsid.circuits_new', + directory: 5, + }, ], diff --git a/src/components/CCurrencyValue/CCurrencyValue.ts b/src/components/CCurrencyValue/CCurrencyValue.ts index 06480322..280cbfee 100755 --- a/src/components/CCurrencyValue/CCurrencyValue.ts +++ b/src/components/CCurrencyValue/CCurrencyValue.ts @@ -31,6 +31,11 @@ export default defineComponent({ required: false, default: '', }, + color_border: { + type: String, + required: false, + default: '', + }, icon: { type: String, required: false, @@ -58,6 +63,7 @@ export default defineComponent({ return { showingtooltip, t, + tools, } }, }) diff --git a/src/components/CCurrencyValue/CCurrencyValue.vue b/src/components/CCurrencyValue/CCurrencyValue.vue index 0ef0aa05..4f05e457 100755 --- a/src/components/CCurrencyValue/CCurrencyValue.vue +++ b/src/components/CCurrencyValue/CCurrencyValue.vue @@ -1,5 +1,6 @@ diff --git a/src/components/CMyCardCircuitPopup/CMyCardCircuitPopup.vue b/src/components/CMyCardCircuitPopup/CMyCardCircuitPopup.vue index 7d04a1d4..25a1f4ce 100644 --- a/src/components/CMyCardCircuitPopup/CMyCardCircuitPopup.vue +++ b/src/components/CMyCardCircuitPopup/CMyCardCircuitPopup.vue @@ -48,14 +48,14 @@
-
+
Simbolo: {{ tools.getValue(myrec, mycol.field, mycol.subfield) }}
-
+
{{ tools.getValue(myrec, mycol.field, mycol.subfield) }}
diff --git a/src/components/CMyCart/CMyCart.vue b/src/components/CMyCart/CMyCart.vue index e591e926..343dde89 100755 --- a/src/components/CMyCart/CMyCart.vue +++ b/src/components/CMyCart/CMyCart.vue @@ -13,7 +13,7 @@
Totale: € {{ myTotalPrice.toFixed(2) }} + class="text-subtitle1 q-mr-sm ">€ {{ myTotalPrice ? myTotalPrice.toFixed(2) : 0 }}
diff --git a/src/components/CMyCircuits/CMyCircuits.ts b/src/components/CMyCircuits/CMyCircuits.ts index 30138004..1af09f0c 100755 --- a/src/components/CMyCircuits/CMyCircuits.ts +++ b/src/components/CMyCircuits/CMyCircuits.ts @@ -52,22 +52,8 @@ export default defineComponent({ const filtroutente = ref([]) const listcircuitsfiltered = computed(() => { - let arr: any[] = [] - try { - if (props.modelValue === costanti.CIRCUITS) { - arr = circuitStore.listcircuits - } else if (props.modelValue === costanti.MY_CIRCUITS ) { - arr = circuitStore.listcircuits.filter((circ: any) => userStore.my.profile.mycircuits.findIndex((rec: any) => circ.name === rec.circuitname) >= 0) - } else if (props.modelValue === costanti.MANAGE_CIRCUITS) { - // arr = userStore.my.profile.manage_mycircuits - } else if (props.modelValue === costanti.ASK_SENT_CIRCUIT) { - arr = userStore.my.profile.asked_circuits - } - } catch (e) { - arr = [] - } - - return arr + console.log('list modif') + return updateListCircuit() }) const myoptions = computed(() => { @@ -105,10 +91,29 @@ export default defineComponent({ } } + function updateListCircuit() { + let arr: any[] = [] + try { + if (props.modelValue === costanti.CIRCUITS) { + arr = circuitStore.listcircuits + } else if (props.modelValue === costanti.MY_CIRCUITS ) { + arr = circuitStore.listcircuits.filter((circ: any) => userStore.my.profile.mycircuits.findIndex((rec: any) => circ.name === rec.circuitname) >= 0) + } else if (props.modelValue === costanti.MANAGE_CIRCUITS) { + // arr = userStore.my.profile.manage_mycircuits + } else if (props.modelValue === costanti.ASK_SENT_CIRCUIT) { + arr = userStore.my.profile.asked_circuits + } + } catch (e) { + arr = [] + } + + return arr + } + + function mounted() { username.value = userStore.my.username loadCircuits() - } function updateValue(val: number) { @@ -126,6 +131,7 @@ export default defineComponent({ updateValue, myoptions, userStore, + circuitStore, } } }) diff --git a/src/components/CMyCircuits/CMyCircuits.vue b/src/components/CMyCircuits/CMyCircuits.vue index 7a83af77..0d25b63d 100755 --- a/src/components/CMyCircuits/CMyCircuits.vue +++ b/src/components/CMyCircuits/CMyCircuits.vue @@ -20,6 +20,12 @@
+
diff --git a/src/components/CProductCard/CProductCard.vue b/src/components/CProductCard/CProductCard.vue index 0058bb71..cecb6d86 100755 --- a/src/components/CProductCard/CProductCard.vue +++ b/src/components/CProductCard/CProductCard.vue @@ -43,7 +43,7 @@
- € {{ myproduct.price.toFixed(2) }} + € {{ myproduct.price ? myproduct.price.toFixed(2) : 0 }} {{ myproduct.after_price }}
diff --git a/src/components/CSaldo/CSaldo.vue b/src/components/CSaldo/CSaldo.vue index c781ad22..7d5edef8 100755 --- a/src/components/CSaldo/CSaldo.vue +++ b/src/components/CSaldo/CSaldo.vue @@ -2,10 +2,10 @@ + :label="t('account.saldo') + ` (` + t('account.dispon') + `: ` + qtarem + `)`"> diff --git a/src/components/CSendCoins/CSendCoins.ts b/src/components/CSendCoins/CSendCoins.ts index d32796f0..1699cc17 100755 --- a/src/components/CSendCoins/CSendCoins.ts +++ b/src/components/CSendCoins/CSendCoins.ts @@ -107,6 +107,9 @@ export default defineComponent({ bothcircuits.value = userStore.IsMyCircuitByUser(props.to_user) circuitsel.value = tools.getCookie(tools.CIRCUIT_USE, bothcircuits.value[0]) + if (!userStore.IsMyCircuitByName(circuitsel.value)) { + circuitsel.value = bothcircuits.value[0] + } aggiorna() diff --git a/src/components/CSendCoins/CSendCoins.vue b/src/components/CSendCoins/CSendCoins.vue index 36b75df4..eb845bc9 100755 --- a/src/components/CSendCoins/CSendCoins.vue +++ b/src/components/CSendCoins/CSendCoins.vue @@ -14,6 +14,7 @@ -
+