From 201d148e310a3616adc490b33d92bbe2f71b6374 Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Sat, 24 Sep 2022 20:21:29 +0200 Subject: [PATCH] fix bug list circuits and transactionsenabled --- .env.development | 2 +- .env.example.production | 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 +- src/components/CFinder/CFinder.ts | 54 ++-- src/components/CFundRaising/CFundRaising.ts | 106 +------ src/components/CFundRaising/CFundRaising.vue | 20 +- src/components/CGridTableRec/CGridTableRec.ts | 5 - src/components/CMyCircuit/CMyCircuit.vue | 4 + .../CMyRecCircuitCard/CMyRecCircuitCard.vue | 1 + .../CPhotosGallery/CPhotosGallery.ts | 12 - .../CPresentazione/CPresentazione.ts | 4 +- .../CPresentazione/CPresentazione.vue | 9 +- .../CShowContentPage/CShowContentPage.scss | 0 .../CShowContentPage/CShowContentPage.ts | 38 +++ .../CShowContentPage/CShowContentPage.vue | 12 + src/components/CShowContentPage/index.ts | 1 + src/components/index.ts | 1 + src/css/app.scss | 4 + .../toolbar/coinsPopover/coinsPopover.vue | 263 +++++++++--------- .../toolbar/notifPopover/notifPopover.vue | 2 +- src/root/fundraising/fundraising.ts | 5 +- src/root/fundraising/fundraising.vue | 14 +- src/store/Modules/tools.ts | 2 +- src/views/user/mycircuit/mycircuit.ts | 41 +-- src/views/user/mycircuit/mycircuit.vue | 19 +- 29 files changed, 299 insertions(+), 332 deletions(-) create mode 100755 src/components/CShowContentPage/CShowContentPage.scss create mode 100755 src/components/CShowContentPage/CShowContentPage.ts create mode 100755 src/components/CShowContentPage/CShowContentPage.vue create mode 100755 src/components/CShowContentPage/index.ts diff --git a/.env.development b/.env.development index b5a1a64a..81cd17d6 100755 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.16" +APP_VERSION="0.5.19" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/.env.example.production b/.env.example.production index 7bfb6426..e14c1865 100755 --- a/.env.example.production +++ b/.env.example.production @@ -1,4 +1,4 @@ -APP_VERSION="0.5.16" +APP_VERSION="0.5.19" 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 404a6bc5..4d97206d 100755 --- a/_ALL_SITES/popolodelnuovomondo.app/.env.development +++ b/_ALL_SITES/popolodelnuovomondo.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.16" +APP_VERSION="0.5.19" 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 b5a1a64a..81cd17d6 100755 --- a/_ALL_SITES/riso.app/.env.development +++ b/_ALL_SITES/riso.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.16" +APP_VERSION="0.5.19" 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 331c5a75..28c8f9d4 100755 --- a/_ALL_SITES/riso.app/.env.test +++ b/_ALL_SITES/riso.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="0.5.16" +APP_VERSION="0.5.19" 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 acb43b95..337d3cfa 100755 --- a/_ALL_SITES/terradellavisione.app/.env.development +++ b/_ALL_SITES/terradellavisione.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.16" +APP_VERSION="0.5.19" 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 3c6766d3..90ea7936 100755 --- a/_ALL_SITES/terradellavisione.app/.env.test +++ b/_ALL_SITES/terradellavisione.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="0.5.16" +APP_VERSION="0.5.19" SERVICE_WORKER_FILE="service-worker.js" APP_ID="14" DIRECTORY_LOCAL=newfreeplanet diff --git a/src/components/CFinder/CFinder.ts b/src/components/CFinder/CFinder.ts index 8f065cdb..0148af8a 100755 --- a/src/components/CFinder/CFinder.ts +++ b/src/components/CFinder/CFinder.ts @@ -87,32 +87,42 @@ export default defineComponent({ */ - watch(() => myrecfiltertoggle.value, (value: any, oldval: any) => { - if (value === tools.FILTER_MYREC) { - if (props.table === toolsext.TABMYGROUPS) { - filtercustom.value = [{ - 'admins': { - $elemMatch: { username: { $eq: userStore.my.username } } - }, - }] - } else if (props.table === toolsext.TABCIRCUITS) { - filtercustom.value = [{ - 'admins': { - $elemMatch: { username: { $eq: userStore.my.username } } - }, - }] - } else { - filtercustom.value = [{ userId: userStore.my._id }] - } + function updatefilter(value: any) { + if (value === tools.FILTER_MYREC) { + if (props.table === toolsext.TABMYGROUPS) { + filtercustom.value = [{ + 'admins': { + $elemMatch: { username: { $eq: userStore.my.username } } + }, + }] + } else if (props.table === toolsext.TABCIRCUITS) { + filtercustom.value = [{ + 'admins': { + $elemMatch: { username: { $eq: userStore.my.username } } + }, + }] - } else if (value === tools.FILTER_MYFOLLOW) { - if (props.table === toolsext.TABMYGROUPS) { - - } } else { - filtercustom.value = [] + filtercustom.value = [{ userId: userStore.my._id }] } + + } else if (value === tools.FILTER_MYFOLLOW) { + if (props.table === toolsext.TABMYGROUPS) { + + } + } else { + filtercustom.value = [] + } + } + + + watch(() => filtercustom.value, (value: any, oldval: any) => { + updatefilter(myrecfiltertoggle.value) + }) + + watch(() => myrecfiltertoggle.value, (value: any, oldval: any) => { + updatefilter(value) }, ) diff --git a/src/components/CFundRaising/CFundRaising.ts b/src/components/CFundRaising/CFundRaising.ts index fc2ddd3d..87ee08be 100755 --- a/src/components/CFundRaising/CFundRaising.ts +++ b/src/components/CFundRaising/CFundRaising.ts @@ -1,10 +1,9 @@ import { defineComponent, ref, computed, PropType, toRef, onMounted, onBeforeUnmount } from 'vue' -import { useUserStore } from '@store/UserStore' -import { useRouter } from 'vue-router' import { useGlobalStore } from '@store/globalStore' import { useI18n } from '@/boot/i18n' import { tools } from '@store/Modules/tools' import { LandingFooter, Logo } from '@components' +import { IMyPage } from 'model' export default defineComponent({ @@ -13,116 +12,23 @@ export default defineComponent({ props: {}, setup() { const { t } = useI18n(); - const $router = useRouter() - const visibile = ref(false) - const cardvisible = ref('hidden') - const displaycard = ref('block') - const firstClassSection = ref('fade homep-cover-img animate-fade homep-cover-img-1') - const polling: any = ref() - const slide = ref('first') - const animare = ref(0) + const rec = ref(null) - function initprompt() { - window.addEventListener('beforeinstallprompt', (event) => { - // console.log('******************************** beforeinstallprompt fired') - event.preventDefault() - // console.log('§§§§§§§§§§§§§§§§§§§§ IMPOSTA DEFERRED PROMPT !!!!!!!!!!!!!!!!! ') - // #Todo++ IMPOSTA DEFERRED PROMPT - return false - }) - } + const globalStore = useGlobalStore() - function created() { - initprompt() - animare.value = process.env.DEV ? 0 : 8000 - } + async function created() { - onMounted(() => { - let primo = true - const mytime = 10000 - polling.value = setInterval(() => { - firstClassSection.value = `landing_background fade homep-cover-img ${primo ? 'homep-cover-img-2' : 'homep-cover-img-1'}` - primo = !primo + rec.value = await globalStore.loadPage('/sostieni_il_progetto') - // console.log('this.firstClassSection', this.firstClassSection) - }, mytime) - }) - - function appname() { - return t('msg.myAppName') - } - - onBeforeUnmount(() => { - console.log('beforeDestroy') - clearInterval(polling.value) - }) - - function meta() { - return { - keywords: { name: 'keywords', content: 'Quasar website' }, - // meta tags - meta: { - mykey: { name: 'mykey', content: 'Key 1' }, - description: { name: 'description', content: 'Page 1' }, - keywords: { name: 'keywords', content: 'Quasar website' }, - equiv: { 'http-equiv': 'Content-Type', content: 'text/html; charset=UTF-8' }, - }, - } - } - - function mystilecard() { - return { - visibility: cardvisible.value, - display: displaycard.value, - } - } - - function getPermission() { - return Notification.permission - } - - function NotServiceWorker() { - return (!('serviceWorker' in navigator)) - } - - function PagLogin() { - $router.replace('/signin') - } - - function PagReg() { - $router.replace('/signup') - } - - function openCreatePostModal() { - console.log('APERTO ! openCreatePostModal') - - visibile.value = !visibile.value - - if (visibile.value) { - displaycard.value = 'block' - cardvisible.value = 'visible' - } else { - displaycard.value = 'block' - cardvisible.value = 'hidden' - } } created() return { t, - appname, - meta, - mystilecard, - getPermission, - NotServiceWorker, - PagLogin, - PagReg, - openCreatePostModal, - slide, tools, - animare, + rec, } }, }) diff --git a/src/components/CFundRaising/CFundRaising.vue b/src/components/CFundRaising/CFundRaising.vue index 55107964..2d672610 100755 --- a/src/components/CFundRaising/CFundRaising.vue +++ b/src/components/CFundRaising/CFundRaising.vue @@ -1,21 +1,7 @@ + + diff --git a/src/components/CShowContentPage/index.ts b/src/components/CShowContentPage/index.ts new file mode 100755 index 00000000..80b9b83d --- /dev/null +++ b/src/components/CShowContentPage/index.ts @@ -0,0 +1 @@ +export {default as CShowContentPage} from './CShowContentPage.vue' diff --git a/src/components/index.ts b/src/components/index.ts index e8e04381..9bdf2cf8 100755 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -64,3 +64,4 @@ export * from './CNotifSettings' export * from './CSendCoins' export * from './CCurrencyValue' export * from './CNotifAtTop' +export * from './CShowContentPage' diff --git a/src/css/app.scss b/src/css/app.scss index 9df0c079..ac3c2408 100755 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -1132,3 +1132,7 @@ $heightBtn: 100%; padding-left: 1px !important; padding-right: 1px !important; } + +.feat-descr { + font-size: 1.15rem; +} diff --git a/src/layouts/toolbar/coinsPopover/coinsPopover.vue b/src/layouts/toolbar/coinsPopover/coinsPopover.vue index 9621b993..42926be8 100755 --- a/src/layouts/toolbar/coinsPopover/coinsPopover.vue +++ b/src/layouts/toolbar/coinsPopover/coinsPopover.vue @@ -37,147 +37,150 @@ - +
+ - + - + -
- + -
+ /> +
-
+
-
- +
+ -
- - {{ $t('notifs.nocoins') }} +
+ + {{ $t('notifs.nocoins') }} + + +
+ + + + + + + + + + + + + + + +
+
+ + +
+ + +
+
+ + +
+ + +
+
+ + + {{ tools.timeAgo(notif.datenotif) }} + + +
+ + + + + + + + + + {{ $t('notifs.read') }} + + + + + + {{ $t('notifs.delete_notif') }} + + + + + +
-
- - - - - - - - - - - - - - - -
-
- - -
- - -
-
- - -
- - -
-
- - - {{ tools.timeAgo(notif.datenotif) }} - - -
- - - - - - - - - - {{ $t('notifs.read') }} - - - - - - {{ $t('notifs.delete_notif') }} - - - - - - - -
- -
+ + +
diff --git a/src/layouts/toolbar/notifPopover/notifPopover.vue b/src/layouts/toolbar/notifPopover/notifPopover.vue index d2ccb7b8..0428f0ca 100755 --- a/src/layouts/toolbar/notifPopover/notifPopover.vue +++ b/src/layouts/toolbar/notifPopover/notifPopover.vue @@ -43,7 +43,7 @@ -
+
- + +
+
+
+
+ +
+
+
+
+
+ +