diff --git a/.env.development b/.env.development
index f53ac64c..aa728c17 100755
--- a/.env.development
+++ b/.env.development
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.49"
+APP_VERSION="0.5.51"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet"
diff --git a/.env.example.production b/.env.example.production
index 9639d932..4944e77a 100755
--- a/.env.example.production
+++ b/.env.example.production
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.49"
+APP_VERSION="0.5.51"
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 f53ac64c..aa728c17 100755
--- a/_ALL_SITES/riso.app/.env.development
+++ b/_ALL_SITES/riso.app/.env.development
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.49"
+APP_VERSION="0.5.51"
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 f15a035e..27566e35 100644
--- a/_ALL_SITES/riso.app/.env.production
+++ b/_ALL_SITES/riso.app/.env.production
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.49"
+APP_VERSION="0.5.51"
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 a569f0e7..f17cd9e9 100755
--- a/_ALL_SITES/terradellavisione.app/.env.development
+++ b/_ALL_SITES/terradellavisione.app/.env.development
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.49"
+APP_VERSION="0.5.51"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="14"
DIRECTORY_LOCAL="newfreeplanet"
diff --git a/src/App.ts b/src/App.ts
index 88eda102..a735ffc9 100755
--- a/src/App.ts
+++ b/src/App.ts
@@ -82,6 +82,8 @@ export default {
darkcookie.value = tools.getCookie('darkmode', false, false, false) === '-1'
scroll()
+ tools.initprompt()
+
tools.checkApp()
}
diff --git a/src/common/shared_nodejs.js b/src/common/shared_nodejs.js
index 78490d4b..d2d15ddd 120000
--- a/src/common/shared_nodejs.js
+++ b/src/common/shared_nodejs.js
@@ -1 +1 @@
-/home/paolo/myproject/freeplanet_serverside/src/server/tools/shared_nodejs.js
\ No newline at end of file
+../../../freeplanet_serverside/src/server/tools/shared_nodejs.js
\ No newline at end of file
diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts
index 12db9345..b5fe710b 100755
--- a/src/common/shared_vuejs.ts
+++ b/src/common/shared_vuejs.ts
@@ -171,8 +171,8 @@ export const shared_consts = {
TABLES_WITH_SORTING: ['mybachecas', 'myhosps'],
TABLES_REC_ID: ['skills', 'goods', 'subskills', 'myskills', 'mybachecas', 'myhosps', 'mygoods'],
- // costanti.VISUTABLE_SCHEDA_USER, VISUTABLE_SCHEDA_GROUP, VISUTABLE_USER_TABGROUP, VISUTABLE_USER_TABCIRCUIT
- VERTIC_SHOW_GRID: [-1, 2, -3, -4, -5],
+ // costanti.VISUTABLE_SCHEDA_USER, VISUTABLE_SCHEDA_GROUP, VISUTABLE_USER_TABGROUP, VISUTABLE_USER_TABCIRCUIT, VISUTABLE_GROUP_CIRCUIT
+ VERTIC_SHOW_GRID: [-1, 2, -3, -4, -5, -6],
TABLES_UPDATE_LASTIFIED: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'bots'],
TABLES_FINDER: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'mygroups'],
@@ -1216,6 +1216,11 @@ export const shared_consts = {
FASE3_MONETA_ABILITATA: 3,
},
+ CIRCUIT_PARAMS: {
+ SCOPERTO_MIN_GRP: 200,
+ SCOPERTO_MAX_GRP: 500,
+ },
+
FontsInstalled: [
{
label: 'Arial',
diff --git a/src/components/CCheckAppRunning/CCheckAppRunning.ts b/src/components/CCheckAppRunning/CCheckAppRunning.ts
index 4357b6e7..1337b148 100755
--- a/src/components/CCheckAppRunning/CCheckAppRunning.ts
+++ b/src/components/CCheckAppRunning/CCheckAppRunning.ts
@@ -25,22 +25,24 @@ export default defineComponent({
const deferredPrompt = computed(() => globalStore.deferredPrompt)
- function initprompt() {
- window.addEventListener('beforeinstallprompt', (event) => {
- event.preventDefault()
- console.log('beforeinstallprompt !')
- // Stash the event so it can be triggered later.
- globalStore.deferredPrompt = event
- })
- }
-
function installApp() {
- if (globalStore.deferredPrompt)
- globalStore.deferredPrompt.prompt()
+ if (globalStore.deferredPrompt) {
+ globalStore.deferredPrompt.prompt()
+
+ // Wait for the user to respond to the prompt
+ globalStore.deferredPrompt.userChoice.then((choiceResult: any)=>{
+ if (choiceResult.outcome === 'accepted') {
+ globalStore.deferredPrompt = null;
+ // console.log('User accepted the A2HS prompt');
+ } else {
+ // console.log('User dismissed the A2HS prompt');
+ }
+ });
+ }
+
}
function mounted() {
- initprompt()
tools.checkApp()
}
diff --git a/src/components/CCurrencyValue/CCurrencyValue.vue b/src/components/CCurrencyValue/CCurrencyValue.vue
index bba9aa14..11dc4a20 100755
--- a/src/components/CCurrencyValue/CCurrencyValue.vue
+++ b/src/components/CCurrencyValue/CCurrencyValue.vue
@@ -9,8 +9,8 @@
-
+
{{ symbol }}
@@ -41,7 +41,7 @@
- {{ valueextra }}{{ tools.roundDec2(value) }}
+
{{ valueextra }}{{ tools.roundDec2(value) }}
{{ tips }}
diff --git a/src/components/CFinder/CFinder.ts b/src/components/CFinder/CFinder.ts
index 35ab3911..029b4009 100755
--- a/src/components/CFinder/CFinder.ts
+++ b/src/components/CFinder/CFinder.ts
@@ -135,8 +135,8 @@ export default defineComponent({
*/
watch(() => myrecfiltertoggle.value, (value: any, oldval: any) => {
- updatefilter(value)
- },
+ updatefilter(value)
+ },
)
const mypagination = computed(() => {
@@ -1115,6 +1115,8 @@ export default defineComponent({
status: 1,
transactionsEnabled: 1,
qta_max_default: 1,
+ fido_scoperto_default_grp: 1,
+ qta_max_default_grp: 1,
valuta_per_euro: 1,
symbol: 1,
idCity: 1,
@@ -1239,7 +1241,7 @@ export default defineComponent({
username: 1,
name: 1,
surname: 1,
-lasttimeonline: 1,
+ lasttimeonline: 1,
comune: 1,
mycities: 1,
'profile.img': 1,
@@ -1310,7 +1312,7 @@ lasttimeonline: 1,
username: 1,
name: 1,
surname: 1,
-lasttimeonline: 1,
+ lasttimeonline: 1,
comune: 1,
mycities: 1,
'profile.img': 1,
@@ -1358,7 +1360,7 @@ lasttimeonline: 1,
username: 1,
name: 1,
surname: 1,
-lasttimeonline: 1,
+ lasttimeonline: 1,
comune: 1,
mycities: 1,
'profile.img': 1,
diff --git a/src/components/CGridTableRec/CGridTableRec.vue b/src/components/CGridTableRec/CGridTableRec.vue
index 26608527..66fe834b 100755
--- a/src/components/CGridTableRec/CGridTableRec.vue
+++ b/src/components/CGridTableRec/CGridTableRec.vue
@@ -321,6 +321,7 @@
:offset="350"
debounce="300"
>
+
,
@@ -28,7 +31,12 @@ export default defineComponent({
visu: {
type: Number,
required: true,
- }
+ },
+ circuitname: {
+ type: String,
+ required: false,
+ default: '',
+ },
},
setup(props, { emit }) {
@@ -40,11 +48,16 @@ export default defineComponent({
const $route = useRoute()
const groupname = ref('')
+ const circuitStore = useCircuitStore()
+
+ const showsendCoinTo = ref(false)
const grp = ref(null)
const table = ref(toolsext.TABMYGROUPS)
+ const circuit = ref(null)
+
watch(() => props.mygrp, (newval, oldval) => {
mounted()
})
@@ -62,6 +75,7 @@ export default defineComponent({
groupname.value = props.mygrp.groupname
}
}
+ circuit.value = circuitStore.getCircuitByName(props.circuitname)
}
function getImgGroup(group: IMyGroup) {
@@ -93,6 +107,8 @@ export default defineComponent({
tools,
table,
myusername,
+ circuit,
+ showsendCoinTo,
}
},
})
diff --git a/src/components/CMyGroup/CMyGroup.vue b/src/components/CMyGroup/CMyGroup.vue
index 1876cd6e..48f75f47 100755
--- a/src/components/CMyGroup/CMyGroup.vue
+++ b/src/components/CMyGroup/CMyGroup.vue
@@ -2,130 +2,435 @@
-
+
-
+
- {{ grp.title }} ({{ grp.groupname }})
+ {{ grp.title }} ({{ grp.groupname }})
+
+ {{ grp.descr }}
+
+
+
- {{ grp.descr }}
-
-
+
+
+
+
+
+
-
- {{ $t('groups.remove_from_mygroups') }}
+
+ {{
+ $t('groups.remove_from_mygroups')
+ }}
-
-
- {{ $t('groups.delete_group') }}
+
+
+ {{
+ $t('groups.delete_group')
+ }}
-
- {{ $t('groups.block_group') }}
+
+ {{
+ $t('groups.block_group')
+ }}
-
-
-
-
+
+
-
-
- {{ $t('groups.ask_group') }}
+
+
+ {{
+ $t('groups.ask_group')
+ }}
-
-
- {{ $t('shared.refuse_ask') }}
+
+
+ {{
+ $t('shared.refuse_ask')
+ }}
-
- {{ $t('shared.cancel_ask') }}
+
+ {{
+ $t('shared.cancel_ask')
+ }}
-
-
- {{ $t('groups.exit_group') }}
+
+
+ {{
+ $t('groups.exit_group')
+ }}
-
-
- {{ $t('groups.delete_group') }}
+
+
+ {{
+ $t('groups.delete_group')
+ }}
-
-
-
+
-
- {{ $t('groups.reject_ask_group') }}
+
+ {{
+ $t('groups.reject_ask_group')
+ }}
-
-
-
+
-
- {{ $t('shared.refuse_ask') }}
+
+ {{
+ $t('shared.refuse_ask')
+ }}
-
- {{ $t('shared.cancel_ask') }}
+
+ {{
+ $t('shared.cancel_ask')
+ }}
-
-
-
-
+
+
-
-
- {{ $t('groups.ask_group') }}
+
+
+ {{
+ $t('groups.ask_group')
+ }}
-
-
- {{ $t('shared.refuse_ask') }}
+
+
+ {{
+ $t('shared.refuse_ask')
+ }}
-
- {{ $t('shared.cancel_ask') }}
+
+ {{
+ $t('shared.cancel_ask')
+ }}
-
-
- {{ $t('groups.exit_group') }}
+
+
+ {{
+ $t('groups.exit_group')
+ }}
-
-
- {{ $t('groups.delete_group') }}
+
+
+ {{
+ $t('groups.delete_group')
+ }}
@@ -138,11 +443,20 @@
+
+
+
+
diff --git a/src/components/CMyGroups/CMyGroups.ts b/src/components/CMyGroups/CMyGroups.ts
index 9976947e..60994466 100755
--- a/src/components/CMyGroups/CMyGroups.ts
+++ b/src/components/CMyGroups/CMyGroups.ts
@@ -44,6 +44,11 @@ export default defineComponent({
required: false,
default: 0,
},
+ circuitname: {
+ type: String,
+ required: false,
+ default: '',
+ },
},
setup(props, { emit }) {
const userStore = useUserStore()
diff --git a/src/components/CMyGroups/CMyGroups.vue b/src/components/CMyGroups/CMyGroups.vue
index 9f419cbf..65217e32 100755
--- a/src/components/CMyGroups/CMyGroups.vue
+++ b/src/components/CMyGroups/CMyGroups.vue
@@ -27,7 +27,7 @@
class="q-my-sm"
clickable
>
-
+
@@ -35,7 +35,7 @@
-
+
diff --git a/src/components/CMyRecGrpCard/CMyRecGrpCard.vue b/src/components/CMyRecGrpCard/CMyRecGrpCard.vue
index 756b1c0d..6af08539 100755
--- a/src/components/CMyRecGrpCard/CMyRecGrpCard.vue
+++ b/src/components/CMyRecGrpCard/CMyRecGrpCard.vue
@@ -11,12 +11,7 @@
img-class="imgprofile" height="60px"/>
-
-
- {{ fieldsTable.getValByTabAndId(table, 'adType', myrec.adType) }}
-
-
+
@@ -37,11 +32,10 @@
{{ myrec.descr }}
-
+
-
+
- {{ tools.getNameToShow(myrec) }} -
, {{ rec.comune }}
diff --git a/src/components/CMyUser/CMyUser.vue b/src/components/CMyUser/CMyUser.vue
index 5a3e5561..d225efb0 100755
--- a/src/components/CMyUser/CMyUser.vue
+++ b/src/components/CMyUser/CMyUser.vue
@@ -33,7 +33,7 @@
-
diff --git a/src/components/CSendCoins/CSendCoins.ts b/src/components/CSendCoins/CSendCoins.ts
index b3e6fba4..018baf14 100755
--- a/src/components/CSendCoins/CSendCoins.ts
+++ b/src/components/CSendCoins/CSendCoins.ts
@@ -1,6 +1,6 @@
import { computed, defineComponent, onMounted, PropType, ref, watch } from 'vue'
-import { IAccount, ICircuit, IOperators, ISendCoin, ISpecialField, IUserFields } from '../../model'
+import { IAccount, ICircuit, IMyGroup, IOperators, ISendCoin, ISpecialField, IUserFields } from '../../model'
import { tools } from '@store/Modules/tools'
import { CSaldo } from '@/components/CSaldo'
import { useUserStore } from '@store/UserStore'
@@ -24,7 +24,18 @@ export default defineComponent({
},
to_user: {
type: Object as PropType,
- required: true,
+ required: false,
+ default: null
+ },
+ to_group: {
+ type: Object as PropType,
+ required: false,
+ default: null,
+ },
+ from_group: {
+ type: Object as PropType,
+ required: false,
+ default: null,
},
},
components: { CSaldo, CMyUserOnlyView },
@@ -36,10 +47,9 @@ export default defineComponent({
const userStore = useUserStore()
const circuitStore = useCircuitStore()
-
const from_username = ref(userStore.my.username)
const circuitsel = ref('')
- const qty = ref('')
+ const qty = ref('')
const causal = ref('')
const bothcircuits = ref([])
@@ -111,7 +121,25 @@ export default defineComponent({
// ....
if (props.to_user) {
console.log('user', props.to_user)
- bothcircuits.value = userStore.IsMyCircuitByUser(props.to_user)
+ bothcircuits.value = userStore.getMyCircuitsInCommonByUser(props.to_user)
+
+ if (props.circuitname) {
+ circuitsel.value = props.circuitname
+ } else {
+ circuitsel.value = tools.getCookie(tools.CIRCUIT_USE, bothcircuits.value[0])
+ }
+ if (!userStore.IsMyCircuitByName(circuitsel.value)) {
+ circuitsel.value = bothcircuits.value[0]
+ }
+
+ aggiorna()
+
+ show.value = true
+ }
+
+ if (props.to_group) {
+ console.log('group', props.to_group)
+ bothcircuits.value = userStore.getMyCircuitsInCommonByGroup(props.to_group)
if (props.circuitname) {
circuitsel.value = props.circuitname
@@ -133,16 +161,25 @@ export default defineComponent({
}
function sendCoin() {
- console.log('sendcoin', qty.value, props.to_user.username)
+ console.log('sendcoin', qty.value, props.to_group ? props.to_group.groupname : props.to_user.username)
- if (props.to_user.username && qty.value && circuitloaded.value) {
- const myrecsendcoin: ISendCoin = {
+ let ok = (props.to_user && props.to_user.username) || (props.to_group && props.to_group.groupname)
+
+ if (ok && qty.value && circuitloaded.value) {
+ let myrecsendcoin: ISendCoin = {
qty: tools.convstrToNum(qty.value),
- dest: props.to_user.username,
+ dest: '',
+ groupdest: '',
+ grouporig: '',
circuitname: circuitsel.value,
causal: causal.value,
symbol: circuitloaded.value.symbol,
}
+
+ myrecsendcoin.groupdest = props.to_group ? props.to_group.groupname : ''
+ myrecsendcoin.dest = props.to_user ? props.to_user.username : ''
+ myrecsendcoin.grouporig = props.from_group ? props.from_group.groupname : ''
+
if (myrecsendcoin) {
tools.sendCoinsByCircuit($q, circuitloaded.value, myrecsendcoin)
.then((ris: any) => {
diff --git a/src/components/CSendCoins/CSendCoins.vue b/src/components/CSendCoins/CSendCoins.vue
index e7319b48..d957ed76 100755
--- a/src/components/CSendCoins/CSendCoins.vue
+++ b/src/components/CSendCoins/CSendCoins.vue
@@ -93,7 +93,7 @@
diff --git a/src/components/CSignIn/CSignIn-validate.ts b/src/components/CSignIn/CSignIn-validate.ts
index 391ed568..5a0686b7 100755
--- a/src/components/CSignIn/CSignIn-validate.ts
+++ b/src/components/CSignIn/CSignIn-validate.ts
@@ -13,7 +13,7 @@ export const validations = computed(() => {
},
username: {
required,
- minLength: minLength(6),
+ minLength: minLength(3),
},
},
}
diff --git a/src/components/CSignUp/CSignUp.ts b/src/components/CSignUp/CSignUp.ts
index 41fd9fd6..352bd93d 100755
--- a/src/components/CSignUp/CSignUp.ts
+++ b/src/components/CSignUp/CSignUp.ts
@@ -10,7 +10,7 @@ import { CTitleBanner } from '../CTitleBanner'
import { CCopyBtn } from '../CCopyBtn'
import { CRegistration } from '../CRegistration'
import { PagePolicy } from '../PagePolicy'
-import { computed, defineComponent, reactive, ref, watch } from 'vue'
+import { computed, defineComponent, onMounted, reactive, ref, watch } from 'vue'
import { CSignIn } from '@/components/CSignIn'
import { useQuasar } from 'quasar'
import { useI18n } from '@/boot/i18n'
@@ -64,11 +64,26 @@ export default defineComponent({
required: false,
default: '',
},
+ name_default: {
+ type: String,
+ required: false,
+ default: '',
+ },
+ username_default: {
+ type: String,
+ required: false,
+ default: '',
+ },
need_Telegram: {
type: Boolean,
required: false,
default: false,
},
+ collettivo: {
+ type: Boolean,
+ required: false,
+ default: false,
+ },
},
setup(props, { emit }) {
const $q = useQuasar()
@@ -143,10 +158,13 @@ export default defineComponent({
},
username: {
required,
- minLength: minLength(6),
+ minLength: minLength(3),
complexityUser,
registereduser,
},
+ name: {
+ required: props.collettivo ? true : false,
+ },
terms: {
required,
},
@@ -296,6 +314,11 @@ export default defineComponent({
signup.profile.teleg_id = $route.params.idteleg ? parseInt($route.params.idteleg.toString(), 10) : 0
}
+ if (props.collettivo) {
+ signup.username = props.username_default!
+ signup.name = props.name_default!
+ }
+
console.log('1) aportador_solidario', signup.aportador_solidario)
if (!signup.aportador_solidario)
diff --git a/src/components/CSignUp/CSignUp.vue b/src/components/CSignUp/CSignUp.vue
index a420a2ec..98309773 100755
--- a/src/components/CSignUp/CSignUp.vue
+++ b/src/components/CSignUp/CSignUp.vue
@@ -1,7 +1,9 @@
-
+
-
+
-
+
Vai su
BOT RISO Telegram ed imposta l'Username di Telegram.
@@ -96,7 +101,11 @@
"
maxlength="20"
debounce="1000"
- :label="$t('reg.aportador_solidario')"
+ :label="
+ collettivo
+ ? $t('reg.username_admin_collettivo')
+ : $t('reg.aportador_solidario')
+ "
>
@@ -114,7 +123,11 @@
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
debounce="2000"
:rules="[myRuleEmail]"
- :label="$t('reg.email_reg')"
+ :label="
+ collettivo
+ ? $t('reg.email_reg_collettivo')
+ : $t('reg.email_reg')
+ "
>
@@ -150,7 +163,29 @@
-
@@ -332,7 +367,11 @@
"
maxlength="20"
debounce="1000"
- :label="$t('reg.aportador_solidario')"
+ :label="
+ collettivo
+ ? $t('reg.username_admin_collettivo')
+ : $t('reg.aportador_solidario')
+ "
>
@@ -352,7 +391,11 @@
"
debounce="2000"
:rules="[myRuleEmail]"
- :label="$t('reg.email_reg')"
+ :label="
+ collettivo
+ ? $t('reg.email_reg_collettivo')
+ : $t('reg.email_reg')
+ "
>
@@ -384,14 +427,36 @@
tools.errorMsg('username', v$.username) ||
(isalreadyReg ? 'L\'Username è gia stato registrato!' : '')
"
- :label="$t('reg.username_reg')"
+ :label="$t('reg.username_reg_collettivo')"
>
-
-
+
+
+
+
+
+
+ {{
+ title
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/CTitleSec/index.ts b/src/components/CTitleSec/index.ts
new file mode 100755
index 00000000..094b773b
--- /dev/null
+++ b/src/components/CTitleSec/index.ts
@@ -0,0 +1 @@
+export {default as CTitleSec} from './CTitleSec.vue'
diff --git a/src/components/MyHeader/MyHeader.vue b/src/components/MyHeader/MyHeader.vue
index 5859d3e8..fef5d6c9 100755
--- a/src/components/MyHeader/MyHeader.vue
+++ b/src/components/MyHeader/MyHeader.vue
@@ -373,6 +373,7 @@
id="user-actions"
class="column justify-center q-gutter-sm q-ma-sm center-150"
>
+
{{ t('otherpages.myactivities') }}
diff --git a/src/db/lang/ws_it.js b/src/db/lang/ws_it.js
index 405b2879..432d5ea1 100755
--- a/src/db/lang/ws_it.js
+++ b/src/db/lang/ws_it.js
@@ -51,6 +51,8 @@ const msg_website_it = {
presentazione2: 'Presentazione',
invita: 'Invita Persone',
SignUp: 'Modulo di Registrazione:',
+ SignUpCollettivo: 'Reg. Collettiva:',
+ SignUpCollettivo2: 'Registrazione Collettiva:',
need_Telegram: 'Per poter utilizzare la Piattaforma occorre avere Telegram installato
',
Registrazione_Con_Bot: '1) Copia questo username cliccandoci sopra:',
SignUpIscrizione: 'Diventa Socio CNM',
diff --git a/src/db/static_data.ts b/src/db/static_data.ts
index 8fad9042..c32fa9ac 100755
--- a/src/db/static_data.ts
+++ b/src/db/static_data.ts
@@ -112,17 +112,6 @@ function getDynamicPages(site: ISites): IListRoutes[] {
inmenu: true,
infooter: true,
},
- {
- active: true,
- order: 100,
- path: '/presentazione',
- materialIcon: 'fas fa-info',
- name: 'pages.presentazione',
- component: () => import('@src/root/presentazione/presentazione.vue'),
- reqauth: false,
- inmenu: true,
- infooter: true,
- },
{
active: true,
order: 120,
diff --git a/src/model/GlobalStore.ts b/src/model/GlobalStore.ts
index 53ddf437..4471caa1 100755
--- a/src/model/GlobalStore.ts
+++ b/src/model/GlobalStore.ts
@@ -1,5 +1,5 @@
import { IAction } from '@src/model/Projects'
-import { IFriends, IMyGroup, IPaymentType } from '@src/model/UserStore'
+import { IFriends, IGroupShort, IMyGroup, IPaymentType } from '@src/model/UserStore'
import {
IDepartment, IProducer, IShareWithUs, IStorehouse,
} from '@src/model/Products'
@@ -1033,10 +1033,6 @@ export interface IMyHosp extends IMyMain {
date_updated?: Date,
}
-export interface ICircuitList {
- _id: string,
- inscription_date?: Date
-}
export interface IMyCircuit {
_id: string
@@ -1048,6 +1044,8 @@ export interface ISendCoin {
circuitname: string
qty: number
dest: string
+ groupdest: string
+ grouporig: string
causal: string
symbol: string
}
@@ -1072,6 +1070,8 @@ export interface ICircuit {
valuta_per_euro?: number
fido_scoperto_default?: number
qta_max_default?: number
+ fido_scoperto_default_grp?: number
+ qta_max_default_grp?: number
data_costituz?: Date
deperimento: boolean
transactionsEnabled: boolean
@@ -1090,6 +1090,10 @@ export interface ICircuit {
createdBy?: string
regulation?: string
numMembers?: number
+ req_users?: IFriends[]
+ refused_users?: IFriends[]
+ req_groups?: IGroupShort[]
+ refused_groups?: IGroupShort[]
// --- Mem:
movements: IMovement[]
}
diff --git a/src/model/UserStore.ts b/src/model/UserStore.ts
index 627e1471..ea0b84b9 100755
--- a/src/model/UserStore.ts
+++ b/src/model/UserStore.ts
@@ -1,6 +1,6 @@
import { IToken } from '@model/other'
import { ICart, IOrderCart, IShareWithUs } from '@src/model/Products'
-import { IAccount, ICircuit, ICircuitList, IGallery, IImgGallery, IMyCircuit } from '@model/GlobalStore'
+import { IAccount, ICircuit, IGallery, IImgGallery, IMyCircuit } from '@model/GlobalStore'
const enum ESexType {
None = 0,
@@ -12,6 +12,16 @@ export interface IFriends {
username: string
date?: Date
}
+export interface IGroupShort {
+ groupname: string
+ date?: Date
+}
+
+export interface IUserAdmins {
+ username: string
+ perm?: number
+ date?: Date
+}
export interface IMyGroup {
_id: string
@@ -30,7 +40,7 @@ export interface IMyGroup {
username_who_block?: string
date_blocked?: Date
createdBy?: string
- circuits_list?: ICircuitList[]
+ mycircuits?: IMyCircuit[]
}
export interface ICalcStat {
@@ -98,8 +108,8 @@ export interface IUserProfile {
// in memory
asked_friends: any[]
- asked_groups: any[]
- refused_groups: any[]
+ asked_groups: IGroupShort[]
+ refused_groups: IGroupShort[]
list_usersgroup?: IFriends[]
asked_circuits: any[]
diff --git a/src/router/routesAdmin.ts b/src/router/routesAdmin.ts
index 444b0d24..f17e9b54 100644
--- a/src/router/routesAdmin.ts
+++ b/src/router/routesAdmin.ts
@@ -441,6 +441,17 @@ function getRoutesAd(site: ISites) {
inmenu: false,
infooter: false,
},
+ {
+ active: true,
+ order: 141,
+ path: '/attivita/:username',
+ materialIcon: 'fas fa-user',
+ name: 'otherpages.myactivities2',
+ component: () => import('@/views/user/myactivities/myactivities.vue'),
+ meta: { requiresAuth: true },
+ inmenu: false,
+ infooter: false,
+ },
{
active: true,
order: 200,
@@ -577,6 +588,28 @@ function getRoutesAd(site: ISites) {
infooter: false,
separator: false
},
+ {
+ active: true,
+ order: 1002,
+ path: '/signup_collettivo/:invited/:username_default/:name_default',
+ materialIcon: 'how_to_reg',
+ name: 'pages.SignUpCollettivo',
+ component: () => import('@/views/login/signup_collettivo/signup_collettivo.vue'),
+ inmenu: false,
+ infooter: false,
+ separator: false
+ },
+ {
+ active: true,
+ order: 1003,
+ path: '/signup_collettivo',
+ materialIcon: 'how_to_reg',
+ name: 'pages.SignUpCollettivo2',
+ component: () => import('@/views/login/signup_collettivo/signup_collettivo.vue'),
+ inmenu: false,
+ infooter: false,
+ separator: false
+ },
{
active: site.confpages && site.confpages.enableReg && site.confpages.enabledRegNeedTelegram,
order: 1000,
diff --git a/src/statics/lang/it.js b/src/statics/lang/it.js
index 03d87ccc..49bf466a 100755
--- a/src/statics/lang/it.js
+++ b/src/statics/lang/it.js
@@ -43,6 +43,7 @@ const msg_it = {
},
otherpages: {
myactivities: 'Attività',
+ myactivities2: 'Mie Attività',
product: 'Prodotto',
sito_offline: 'Sito in Aggiornamento',
modifprof: 'Modifica',
@@ -439,6 +440,7 @@ const msg_it = {
invitante_regalato: 'Invitante Regalato',
legenda: 'Legenda',
aportador_solidario: 'Username di chi ti ha Invitato',
+ username_admin_collettivo: 'Username dell\'Amministratore',
verified_by_aportador: 'Verificato',
notAsk_ToVerify: 'No Verif. Reg',
trust_modified: 'Fiducia Modificata',
@@ -465,6 +467,7 @@ const msg_it = {
email: 'Email',
email2: 'Altra Email (eventuale)',
email_reg: 'la tua Email',
+ email_reg_collettivo: 'Email dell\'Amministratore',
website: 'Sito Web',
link_maplocation: 'Link posizione su mappa',
intcode_cell: 'Prefisso Int.',
@@ -513,11 +516,13 @@ const msg_it = {
sospeso: 'Sospeso',
username: 'Username',
username_reg: 'Username',
+ username_reg_collettivo: 'Username Collettivo',
username_hint: 'caratteri consentiti: tratteggio (_)',
username_pseudonimo: 'Username (Pseudonimo)',
username_short: 'Username',
name: 'Nome',
name_opt: 'Nome (Facoltativo)',
+ name_opt_collettivo: 'Nome del Collettivo',
surname: 'Cognome',
surname_opt: 'Cognome (facoltativo)',
username_login: 'Username o email',
@@ -616,6 +621,7 @@ const msg_it = {
sameaspassword: 'Le password devono essere identiche',
accetta_carta_costituzionale_on: 'Occorre accettare la sintesi della Carta Costituzionale',
},
+ accedi_come: 'Accedi come...',
tips: {
email: 'inserisci la tua email',
username: 'username lunga almeno 6 caratteri',
@@ -1160,10 +1166,14 @@ const msg_it = {
valuta_per_euro: 'Valuta per Euro',
fido_scoperto_default: 'Fiducia concessa',
fido_scoperto_default_tips: 'Rappresenta quanta moneta puoi creare autonomamente',
+ fido_scoperto_default_grp: 'Fiducia concessa Gruppi',
+ fido_scoperto_default_tips_grp: 'Rappresenta quanta moneta puo creare autonomamente il Gruppo',
transactionsEnabled: 'Transazioni Abilitate',
transactionsEnabled_text: 'Le transazioni al Circuito sono attualmente sospese, in attesa di attivare il gruppo territoriale',
qta_max_default: 'Massimo accumulo',
qta_max_default_tips: 'Rappresenta quanta moneta ti è concesso accumulare temporaneamente. Incentiviamo di utilizzarla...',
+ qta_max_default_grp: 'Massimo accumulo Gruppo',
+ qta_max_default_tips_grp: 'Rappresenta quanta moneta è concesso accumulare temporaneamente al Gruppo. Incentiviamo di utilizzarla...',
data_costituz: 'Data Costituzione',
deperimento: 'Deperimento',
freq_deper: 'Frequenza Deperimento',
@@ -1206,6 +1216,7 @@ const msg_it = {
sendcoins: 'Invia Monete',
sendcoinsto: 'Invia {qty} {coin} a {dest}',
question_sendcoinsto: 'Inviare {qty} {coin} a {dest}?',
+ question_sendcoinsto_from: 'Inviare {qty} {coin} da {from} a {dest}?',
coins_sendrequest_sent: 'Richiesta d\'invio monete avvenuto',
coins_sendrequest_failed: 'Richiesta d\'invio monete non avvenuta, riprovare',
coins_accepted: 'Monete accettate',
@@ -1215,7 +1226,7 @@ const msg_it = {
refuse_coins_qty: 'Rifiuta',
refuse_coins: 'Rifiuta Monete',
movements: 'Movimenti',
- conticomunitari: 'Conti Comunitari',
+ gruppicom: 'Gruppi Com.',
qta_remaining_to_send: 'Quantità massima inviabile {maxqta} {symbol}',
qta_not_valid: 'Quantità non valida',
qta_max_to_send: 'Quantità massima inviabile {maxqta} {symbol}',
diff --git a/src/store/CircuitStore.ts b/src/store/CircuitStore.ts
index ec97efce..e04b332d 100755
--- a/src/store/CircuitStore.ts
+++ b/src/store/CircuitStore.ts
@@ -2,7 +2,7 @@ import { defineStore } from 'pinia'
import {
IAccount,
- ICircuit, ICircuitState, IGlobalState,
+ ICircuit, ICircuitState, IGlobalState, IGroupShort, IMyCircuit, IMyGroup,
} from '@src/model'
import { tools } from '@store/Modules/tools'
import translate from '@src/globalroutines/util'
@@ -82,5 +82,18 @@ export const useCircuitStore = defineStore('CircuitStore', {
},
+ getCircuitsListByGroup(mygrp: IMyGroup): ICircuit[] | undefined | null {
+ return this.listcircuits.filter((rec: ICircuit) => mygrp.mycircuits!.findIndex((circ: IMyCircuit) => circ.circuitname === rec.name) >= 0)
+ },
+
+ IsAskedCircuitByNameAndGroup(name: string, groupname: string): boolean {
+ let circuit = this.listcircuits.find((circ: ICircuit) => circ.name === name)
+ if (circuit && circuit.req_groups) {
+ return circuit.req_groups?.findIndex((grp: IGroupShort) => grp.groupname === groupname) >= 0
+ }
+ return false
+ },
+
+
},
})
diff --git a/src/store/Modules/costanti.ts b/src/store/Modules/costanti.ts
index 7484e793..751ac3dd 100755
--- a/src/store/Modules/costanti.ts
+++ b/src/store/Modules/costanti.ts
@@ -223,6 +223,7 @@ export const costanti = {
VISUTABLE_SCHEDA_GROUP: -3,
VISUTABLE_USER_TABGROUP: -4,
VISUTABLE_USER_TABCIRCUIT: -5,
+ VISUTABLE_GROUP_CIRCUIT: -6,
DIR_UPLOAD: 'upload/', // upload/
diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts
index 87645ab9..b15a8301 100755
--- a/src/store/Modules/fieldsTable.ts
+++ b/src/store/Modules/fieldsTable.ts
@@ -141,9 +141,9 @@ export const colmylistcards = [
]
export const colmyelems = [
- AddCol({ name: 'active', label_trans: 'myelems.active', fieldtype: costanti.FieldType.boolean }),
+ AddCol({ name: 'active', label_trans: 'myelems.active', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'path', label_trans: 'myelems.path' }),
- AddCol({ name: 'order', label_trans: 'myelems.order', fieldtype: costanti.FieldType.number }),
+ AddCol({ name: 'order', label_trans: 'myelems.order', fieldtype: costanti.FieldType.number }),
AddCol({ name: 'type', label_trans: 'myelems.type', fieldtype: costanti.FieldType.select, jointable: 'elemtypes' }),
AddCol({ name: 'container', label_trans: 'myelems.container' }),
AddCol({ name: 'container2', label_trans: 'myelems.container2' }),
@@ -157,18 +157,18 @@ export const colmyelems = [
AddCol({ name: 'parambool', label_trans: 'myelems.parambool', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'parambool2', label_trans: 'myelems.parambool2', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'parambool3', label_trans: 'myelems.parambool3', fieldtype: costanti.FieldType.boolean }),
- AddCol({ name: 'number', label_trans: 'myelems.number', fieldtype: costanti.FieldType.number }),
+ AddCol({ name: 'number', label_trans: 'myelems.number', fieldtype: costanti.FieldType.number }),
AddCol({ name: 'imgback', label_trans: 'myelems.imgback' }),
AddCol({ name: 'size', label_trans: 'myelems.size' }),
AddCol({ name: 'ratio', label_trans: 'myelems.ratio' }),
AddCol({ name: 'containerHtml', label_trans: 'myelems.containerHtml', fieldtype: costanti.FieldType.html }),
AddCol({ name: 'listcards', label_trans: 'myelems.listcards', fieldtype: costanti.FieldType.listimages }),
- AddCol({ name: 'height', label_trans: 'myelems.height', fieldtype: costanti.FieldType.number }),
- AddCol({ name: 'heightimg', label_trans: 'myelems.heightimg', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'height', label_trans: 'myelems.height', fieldtype: costanti.FieldType.number }),
+ AddCol({ name: 'heightimg', label_trans: 'myelems.heightimg', fieldtype: costanti.FieldType.string }),
AddCol({ name: 'widthimg', label_trans: 'pages.widthimg', fieldtype: costanti.FieldType.string }),
AddCol({ name: 'link', label_trans: 'pages.link', fieldtype: costanti.FieldType.string }),
- AddCol({ name: 'width', label_trans: 'myelems.width', fieldtype: costanti.FieldType.number }),
- AddCol({ name: 'onlyif_logged', label_trans: 'myelems.onlyif_logged', fieldtype: costanti.FieldType.boolean }),
+ AddCol({ name: 'width', label_trans: 'myelems.width', fieldtype: costanti.FieldType.number }),
+ AddCol({ name: 'onlyif_logged', label_trans: 'myelems.onlyif_logged', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'color', label_trans: 'myelems.color' }),
AddCol({ name: 'colorsub', label_trans: 'myelems.colorsub' }),
AddCol({ name: 'colorsub2', label_trans: 'myelems.colorsub2' }),
@@ -620,8 +620,10 @@ export const colmyMovement = [
noshowlabel: true,
}),
- AddCol({ name: 'amount', label_trans: 'movement.amount',
- fieldtype: costanti.FieldType.currency, required: true, tipovisu: costanti.TipoVisu.TESTO_BORDATO }),
+ AddCol({
+ name: 'amount', label_trans: 'movement.amount',
+ fieldtype: costanti.FieldType.currency, required: true, tipovisu: costanti.TipoVisu.TESTO_BORDATO
+ }),
AddCol({ name: 'causal', label_trans: 'movement.causal', tipovisu: costanti.TipoVisu.TESTO_BORDATO }),
]
@@ -632,8 +634,10 @@ export const colmyMovementTable = [
AddCol({ name: 'userfrom.username', field: 'userfrom', subfield: 'username', label_trans: 'movement.accountFromId', fieldtype: costanti.FieldType.string, required: true }),
AddCol({ name: 'userto.username', field: 'userto', subfield: 'username', label_trans: 'movement.accountToId', fieldtype: costanti.FieldType.string, required: true }),
- AddCol({ name: 'amount', label_trans: 'movement.amount',
- fieldtype: costanti.FieldType.currency, required: true, tipovisu: costanti.TipoVisu.TESTO_BORDATO }),
+ AddCol({
+ name: 'amount', label_trans: 'movement.amount',
+ fieldtype: costanti.FieldType.currency, required: true, tipovisu: costanti.TipoVisu.TESTO_BORDATO
+ }),
AddCol({ name: 'causal', label_trans: 'movement.causal', tipovisu: costanti.TipoVisu.TESTO_BORDATO }),
]
@@ -676,9 +680,11 @@ export const colmyUserPeople = [
export const colmyUserGroup = [
// AddCol({ name: '_id', label_trans: 'reg.id' }),
- AddCol({ name: 'title', label_trans: 'reg.name',
+ AddCol({
+ name: 'title', label_trans: 'reg.name',
field_toduplicate_nospace: 'groupname',
- required: true, noshowlabel: true, maxlength: 40 }),
+ required: true, noshowlabel: true, maxlength: 40
+ }),
AddCol({
name: 'groupname', label_trans: 'reg.groupname', required: false,
maxlength: 30,
@@ -2717,10 +2723,13 @@ export const colTableSubCashCategory = [
export const colTableCircuitComplete = [
// AddCol({ name: 'groupnameId', label_trans: 'circuit.groupnameId', fieldtype: costanti.FieldType.select, jointable: 'mygroups' }), // da togliere poi
- AddCol({ name: 'name', label_trans: 'circuit.name',
+ AddCol({
+ name: 'name', label_trans: 'circuit.name',
maxlength: 40,
- showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage }),
- AddCol({ name: 'path', label_trans: 'circuit.path',
+ showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage
+ }),
+ AddCol({
+ name: 'path', label_trans: 'circuit.path',
allowchar: costanti.ALLOWCHAR_CODE,
}),
AddCol({ name: 'subname', label_trans: 'circuit.subname' }),
@@ -2749,7 +2758,8 @@ export const colTableCircuitComplete = [
AddCol({ name: 'regulation', label_trans: 'circuit.regulation', fieldtype: costanti.FieldType.html }),
AddCol({ name: 'systemUserDescr', label_trans: 'circuit.systemUserDescr' }),
AddCol({ name: 'systemUserId', label_trans: 'circuit.systemUserId', fieldtype: costanti.FieldType.select, jointable: 'users' }),
- AddCol({ name: 'createdBy', label_trans: 'circuit.founder', fieldtype: costanti.FieldType.select, jointable: 'users',
+ AddCol({
+ name: 'createdBy', label_trans: 'circuit.founder', fieldtype: costanti.FieldType.select, jointable: 'users',
showWhen: costanti.showWhen.InPage + costanti.showWhen.InView,
}),
AddCol({ name: 'totCircolante', label_trans: 'circuit.totCircolante', fieldtype: costanti.FieldType.number }),
@@ -2763,6 +2773,8 @@ export const colTableCircuitComplete = [
AddCol({ name: 'valuta_per_euro', label_trans: 'circuit.valuta_per_euro', fieldtype: costanti.FieldType.number }),
AddCol({ name: 'fido_scoperto_default', label_trans: 'circuit.fido_scoperto_default', fieldtype: costanti.FieldType.currency }),
AddCol({ name: 'qta_max_default', label_trans: 'circuit.qta_max_default', fieldtype: costanti.FieldType.currency }),
+ AddCol({ name: 'fido_scoperto_default_grp', label_trans: 'circuit.fido_scoperto_default_grp', fieldtype: costanti.FieldType.currency }),
+ AddCol({ name: 'qta_max_default_grp', label_trans: 'circuit.qta_max_default_grp', fieldtype: costanti.FieldType.currency }),
AddCol({ name: 'data_costituz', label_trans: 'circuit.data_costituz', fieldtype: costanti.FieldType.date }),
AddCol({ name: 'deperimento', label_trans: 'circuit.deperimento', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'transactionsEnabled', label_trans: 'circuit.transactionsEnabled', fieldtype: costanti.FieldType.boolean }),
@@ -2809,11 +2821,14 @@ export const colTableCircuitComplete = [
export const colTableCircuit = [
// AddCol({ name: 'groupnameId', label_trans: 'circuit.groupnameId', fieldtype: costanti.FieldType.select, jointable: 'mygroups' }), // da togliere poi
- AddCol({ name: 'name', label_trans: 'circuit.name',
+ AddCol({
+ name: 'name', label_trans: 'circuit.name',
required: true,
maxlength: 30,
- showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView }),
- AddCol({ name: 'path', label_trans: 'circuit.path', required: true,
+ showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView
+ }),
+ AddCol({
+ name: 'path', label_trans: 'circuit.path', required: true,
maxlength: 30,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView,
allowchar: costanti.ALLOWCHAR_CODE,
@@ -2841,10 +2856,12 @@ export const colTableCircuit = [
jointable: 'visibilGroup',
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
}),
- AddCol({ name: 'systemUserId', label_trans: 'circuit.systemUserId', fieldtype: costanti.FieldType.select, jointable: 'users',
+ AddCol({
+ name: 'systemUserId', label_trans: 'circuit.systemUserId', fieldtype: costanti.FieldType.select, jointable: 'users',
showWhen: costanti.showWhen.InEdit + costanti.showWhen.InView,
}),
- AddCol({ name: 'createdBy', label_trans: 'circuit.founder', fieldtype: costanti.FieldType.select, jointable: 'users',
+ AddCol({
+ name: 'createdBy', label_trans: 'circuit.founder', fieldtype: costanti.FieldType.select, jointable: 'users',
showWhen: costanti.showWhen.InPage + costanti.showWhen.InView,
}),
AddCol({
@@ -2864,28 +2881,37 @@ export const colTableCircuit = [
// AddCol({ name: 'nome_valuta', label_trans: 'circuit.nome_valuta', required: true }),
AddCol({ name: 'symbol', label_trans: 'circuit.symbol' }),
AddCol({ name: 'color', label_trans: 'circuit.color' }),
- AddCol({ name: 'fido_scoperto_default', label_trans: 'circuit.fido_scoperto_default',
- fieldtype: costanti.FieldType.currency, required: true, visulabel: true }),
- AddCol({ name: 'qta_max_default', label_trans: 'circuit.qta_max_default',
- fieldtype: costanti.FieldType.currency, required: true, visulabel: true }),
+ AddCol({
+ name: 'fido_scoperto_default', label_trans: 'circuit.fido_scoperto_default',
+ fieldtype: costanti.FieldType.currency, required: true, visulabel: true
+ }),
+ AddCol({
+ name: 'qta_max_default', label_trans: 'circuit.qta_max_default',
+ fieldtype: costanti.FieldType.currency, required: true, visulabel: true
+ }),
+ AddCol({ name: 'fido_scoperto_default_grp', label_trans: 'circuit.fido_scoperto_default_grp', fieldtype: costanti.FieldType.currency }),
+ AddCol({ name: 'qta_max_default_grp', label_trans: 'circuit.qta_max_default_grp', fieldtype: costanti.FieldType.currency }),
AddCol({ name: 'valuta_per_euro', label_trans: 'circuit.valuta_per_euro', fieldtype: costanti.FieldType.number }),
- AddCol({ name: 'totCircolante', label_trans: 'circuit.totCircolante',
+ AddCol({
+ name: 'totCircolante', label_trans: 'circuit.totCircolante',
fieldtype: costanti.FieldType.currency, visulabel: true,
showWhen: costanti.showWhen.InPage + costanti.showWhen.InView,
}),
- AddCol({ name: 'totTransato', label_trans: 'circuit.totTransato',
+ AddCol({
+ name: 'totTransato', label_trans: 'circuit.totTransato',
fieldtype: costanti.FieldType.currency, visulabel: true,
showWhen: costanti.showWhen.InPage + costanti.showWhen.InView,
}),
AddCol({ name: 'regulation', label_trans: 'circuit.regulation', fieldtype: costanti.FieldType.html, required: true }),
AddCol({ name: 'deperimento', label_trans: 'circuit.deperimento', fieldtype: costanti.FieldType.boolean, disable: true }),
AddCol({ name: 'transactionsEnabled', label_trans: 'circuit.transactionsEnabled', fieldtype: costanti.FieldType.boolean }),
- AddCol({ name: 'status', label_trans: 'circuit.status',
- fieldtype: costanti.FieldType.select,
- jointable: 'statuscircuit',
- showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
- }
- ),
+ AddCol({
+ name: 'status', label_trans: 'circuit.status',
+ fieldtype: costanti.FieldType.select,
+ jointable: 'statuscircuit',
+ showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
+ }
+ ),
AddCol({ name: 'data_costituz', label_trans: 'circuit.data_costituz', fieldtype: costanti.FieldType.date }),
AddCol({
name: 'photos',
diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts
index b229ab58..5f0e7b95 100644
--- a/src/store/Modules/tools.ts
+++ b/src/store/Modules/tools.ts
@@ -12,7 +12,7 @@ import {
ITodo,
IUserFields,
Privacy,
- TipoVisu, IGroup, IMySkill, IMyBacheca, IImgGallery, IMsgGlobParam, IUserExport, ISpecialField, IAccount, IMyCircuit, ISendCoin, IMovement, IMovVisu, INotif, IMyElem, IMyCard, ILabelValue, ILabelValueStr, IAnim, ILang,
+ TipoVisu, IGroup, IMySkill, IMyBacheca, IImgGallery, IMsgGlobParam, IUserExport, ISpecialField, IAccount, IMyCircuit, ISendCoin, IMovement, IMovVisu, INotif, IMyElem, IMyCard, ILabelValue, ILabelValueStr, IAnim, ILang, IGroupShort,
} from '@model'
import { fieldsTable } from '@store/Modules/fieldsTable'
@@ -5528,6 +5528,7 @@ export const tools = {
updateMyData(res: any) {
const userStore = useUserStore()
const circuitStore = useCircuitStore()
+ const globalStore = useGlobalStore()
// console.log('OUT', res)
@@ -5538,6 +5539,9 @@ export const tools = {
if (res.listcircuits) {
circuitStore.listcircuits = res.listcircuits
}
+ if (res.mygroups) {
+ globalStore.mygroups = res.mygroups
+ }
}
},
@@ -5641,7 +5645,7 @@ export const tools = {
if (res) {
notifStore.updateNotification = true
if (username === userStore.my.username) {
- userStore.my.profile.asked_groups = userStore.my.profile.asked_groups.filter((rec: IMyGroup) => rec.groupname !== groupnameDest)
+ userStore.my.profile.asked_groups = userStore.my.profile.asked_groups.filter((rec: IGroupShort) => rec.groupname !== groupnameDest)
}
tools.showPositiveNotif($q, t('db.refusedgroup', { username }))
}
@@ -5833,7 +5837,7 @@ export const tools = {
tools.showPositiveNotif($q, t('db.askedtogroup', { groupname: groupnameDest }))
} else {
// REMOVE to req Friends
- userStore.my.profile.asked_groups = userStore.my.profile.asked_groups.filter((rec: IMyGroup) => rec.groupname !== groupnameDest)
+ userStore.my.profile.asked_groups = userStore.my.profile.asked_groups.filter((rec: IGroupShort) => rec.groupname !== groupnameDest)
tools.showPositiveNotif($q, t('db.revoketogroup', { groupname: groupnameDest }))
}
@@ -5872,7 +5876,7 @@ export const tools = {
userStore.setGroupsCmd($q, t, username, groupnameDest, shared_consts.GROUPSCMD.CANCEL_REQ_GROUP, null).then((res) => {
if (res) {
if (username === userStore.my.username) {
- userStore.my.profile.asked_groups = userStore.my.profile.asked_groups.filter((rec: IMyGroup) => rec.groupname !== groupnameDest)
+ userStore.my.profile.asked_groups = userStore.my.profile.asked_groups.filter((rec: IGroupShort) => rec.groupname !== groupnameDest)
}
tools.showPositiveNotif($q, t('db.cancel_req_group'))
}
@@ -6037,7 +6041,7 @@ export const tools = {
return risultato
},
- setRequestCircuit($q: any, username: string, circuitname: string, value: boolean) {
+ setRequestCircuit($q: any, username: string, circuitname: string, value: boolean, groupname?: string) {
const userStore = useUserStore()
@@ -6060,7 +6064,7 @@ export const tools = {
title: t('db.domanda')
}).onOk(() => {
- userStore.setCircuitCmd($q, t, username, circuitname, shared_consts.CIRCUITCMD.REQ, value)
+ userStore.setCircuitCmd($q, t, username, circuitname, shared_consts.CIRCUITCMD.REQ, value, { groupname })
.then((res: any) => {
if (res) {
if (value) {
@@ -6088,8 +6092,15 @@ export const tools = {
const username = userStore.my.username
+ let orig = sendcoinrec.grouporig ? sendcoinrec.grouporig : ''
+ let dest = sendcoinrec.groupdest ? sendcoinrec.groupdest : sendcoinrec.dest
+
let msg = ''
- msg = t('circuit.question_sendcoinsto', { coin: circuit.symbol, dest: sendcoinrec.dest, qty: sendcoinrec.qty })
+ if (orig) {
+ msg = t('circuit.question_sendcoinsto_from', { coin: circuit.symbol, from: orig, dest, qty: sendcoinrec.qty })
+ } else {
+ msg = t('circuit.question_sendcoinsto', { coin: circuit.symbol, dest, qty: sendcoinrec.qty })
+ }
return $q.dialog({
message: msg,
@@ -6124,7 +6135,7 @@ export const tools = {
})
},
- cancelReqCircuit($q: any, username: string, circuitname: string) {
+ cancelReqCircuit($q: any, username: string, circuitname: string, groupname?: string) {
const userStore = useUserStore()
$q.dialog({
message: t('circuit.domanda_cancel_req', { username, circuitname }),
@@ -6133,7 +6144,7 @@ export const tools = {
title: t('db.domanda')
}).onOk(() => {
- userStore.setCircuitCmd($q, t, username, circuitname, shared_consts.CIRCUITCMD.CANCEL_REQ, null).then((res) => {
+ userStore.setCircuitCmd($q, t, username, circuitname, shared_consts.CIRCUITCMD.CANCEL_REQ, null, { groupname }).then((res) => {
if (res && res.result) {
if (username === userStore.my.username) {
userStore.my.profile.asked_circuits = userStore.my.profile.asked_circuits.filter((rec: ICircuit) => rec.name !== circuitname)
@@ -6145,7 +6156,7 @@ export const tools = {
})
},
- refuseReqCircuit($q: any, username: string, circuitname: string) {
+ refuseReqCircuit($q: any, username: string, circuitname: string, groupname?: string) {
const userStore = useUserStore()
const notifStore = useNotifStore()
@@ -6156,7 +6167,7 @@ export const tools = {
title: t('db.domanda')
}).onOk(() => {
- userStore.setCircuitCmd($q, t, username, circuitname, shared_consts.CIRCUITCMD.REFUSE_REQ, null).then((res) => {
+ userStore.setCircuitCmd($q, t, username, circuitname, shared_consts.CIRCUITCMD.REFUSE_REQ, null, { groupname }).then((res) => {
if (res && res.result) {
notifStore.updateNotification = true
if (username === userStore.my.username) {
@@ -6696,6 +6707,8 @@ export const tools = {
symbol: 'RIS',
fido_scoperto_default: 100,
qta_max_default: 200,
+ fido_scoperto_default_grp: shared_consts.CIRCUIT_PARAMS.SCOPERTO_MIN_GRP,
+ qta_max_default_grp: shared_consts.CIRCUIT_PARAMS.SCOPERTO_MAX_GRP,
valuta_per_euro: 1,
totTransato: 0,
totCircolante: 0,
@@ -7415,6 +7428,16 @@ export const tools = {
}
},
+ initprompt() {
+ const globalStore = useGlobalStore()
+
+ window.addEventListener('beforeinstallprompt', (event) => {
+ event.preventDefault()
+ console.log('beforeinstallprompt !')
+ // Stash the event so it can be triggered later.
+ globalStore.deferredPrompt = event
+ })
+ },
// FINE !
diff --git a/src/store/UserStore.ts b/src/store/UserStore.ts
index e6c9766b..77dba71e 100755
--- a/src/store/UserStore.ts
+++ b/src/store/UserStore.ts
@@ -35,7 +35,7 @@ import { Router } from 'vue-router'
import { useProjectStore } from '@store/Projects'
import { shared_consts } from '@/common/shared_vuejs'
import { costanti } from '@costanti'
-import { IMyGroup } from '@model/UserStore'
+import { IGroupShort, IMyGroup, IUserAdmins } from '@model/UserStore'
import globalroutines from '../globalroutines/index'
import { useNotifStore } from '@store/NotifStore'
@@ -228,6 +228,22 @@ export const useUserStore = defineStore('UserStore', {
return false
},
+ GroupsListWhereIAmAdmin(username: string): string[] {
+ let myarr: any[] = []
+ const globalStore = useGlobalStore()
+
+ if (this.my.profile && globalStore.mygroups) {
+ myarr = globalStore.mygroups.filter((mygroup: IMyGroup) => {
+ if (mygroup.admins && mygroup.admins.findIndex((useradmin: IUserAdmins) => useradmin.username === username) >= 0) {
+ return true
+ }
+ return false
+ })
+ }
+
+ return myarr
+ },
+
IsAskedFriendByUsername(username: string): boolean {
if (this.my.profile.asked_friends)
return this.my.profile.asked_friends.findIndex((rec) => rec.username === username) >= 0
@@ -244,14 +260,14 @@ export const useUserStore = defineStore('UserStore', {
IsAskedGroupByGroupname(groupname: string): boolean {
if (this.my.profile.asked_groups)
- return this.my.profile.asked_groups.findIndex((rec: IMyGroup) => rec.groupname === groupname) >= 0
+ return this.my.profile.asked_groups.findIndex((rec: IGroupShort) => rec.groupname === groupname) >= 0
else
return false
},
IsRefusedGroupByGroupname(groupname: string): boolean {
if (this.my.profile.refused_groups)
- return this.my.profile.refused_groups.findIndex((rec: IMyGroup) => rec.groupname === groupname) >= 0
+ return this.my.profile.refused_groups.findIndex((rec: IGroupShort) => rec.groupname === groupname) >= 0
else
return false
},
@@ -340,13 +356,34 @@ export const useUserStore = defineStore('UserStore', {
},
- IsMyCircuitByUser(user: IUserFields): any[] {
+ IsMyCircuitByNameAndGroup(circuitname: string, groupname: string): boolean {
+ const globalStore = useGlobalStore()
+
+ if (globalStore.mygroups) {
+ const group: IMyGroup | undefined = globalStore.mygroups.find((rec: IMyGroup) => rec.groupname === groupname)
+ if (group && group.mycircuits) {
+ return group.mycircuits.findIndex((rec: any) => rec.circuitname === circuitname) >= 0
+ }
+ return false
+ } else
+ return false
+
+ },
+
+ getMyCircuitsInCommonByUser(user: IUserFields): any[] {
if (!this.my.profile.mycircuits || (!user || !user.profile || !user.profile.mycircuits))
return []
return tools.getCommon([...this.my.profile.mycircuits], [...user.profile.mycircuits], 'circuitname')
},
+ getMyCircuitsInCommonByGroup(group: IMyGroup): any[] {
+
+ if (!this.my.profile.mycircuits || (!group || !group.mycircuits))
+ return []
+ return tools.getCommon([...this.my.profile.mycircuits], [...group.mycircuits], 'circuitname')
+ },
+
getAccountByCircuitId(circuitId: string): any {
if (this.my.profile.useraccounts) {
diff --git a/src/views/login/signup_collettivo/signup_collettivo.scss b/src/views/login/signup_collettivo/signup_collettivo.scss
new file mode 100755
index 00000000..6a3d2337
--- /dev/null
+++ b/src/views/login/signup_collettivo/signup_collettivo.scss
@@ -0,0 +1,12 @@
+.signup {
+ width: 100%;
+ margin: 0 auto;
+ max-width: 450px;
+}
+
+
+.wrapper {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
diff --git a/src/views/login/signup_collettivo/signup_collettivo.ts b/src/views/login/signup_collettivo/signup_collettivo.ts
new file mode 100755
index 00000000..afa5839c
--- /dev/null
+++ b/src/views/login/signup_collettivo/signup_collettivo.ts
@@ -0,0 +1,43 @@
+import { computed, defineComponent, ref, watch } from 'vue'
+import { CSignUp } from '../../../components/CSignUp'
+import { useQuasar } from 'quasar'
+import { useI18n } from '@/boot/i18n'
+import { useUserStore } from '@store/UserStore'
+import { useRoute } from 'vue-router'
+import { tools } from '@store/Modules/tools'
+
+export default defineComponent({
+ name: 'SignUpCollettivo',
+ components: { CSignUp },
+ props: {},
+ setup() {
+ const $route = useRoute()
+
+ const adult = ref(false)
+ const invited = computed(() => $route.params.invited)
+ const regexpire = computed(() => $route.params.regexpire)
+ const username_default = computed(() => $route.params.username_default)
+ const name_default = computed(() => $route.params.name_default)
+
+ // @ts-ignore
+ watch(() => invited, (newval, oldval) => {
+ console.log('$route.params.invited')
+ adult.value = !!$route.params.invited
+ })
+
+ function created() {
+ if (!tools.getCookie(tools.APORTADOR_SOLIDARIO, '')) {
+ // @ts-ignore
+ tools.setCookie(tools.APORTADOR_SOLIDARIO, $route.params.invited ? $route.params.invited : '')
+ }
+ }
+
+ created()
+
+ return {
+ regexpire,
+ username_default,
+ name_default,
+ }
+ },
+})
diff --git a/src/views/login/signup_collettivo/signup_collettivo.vue b/src/views/login/signup_collettivo/signup_collettivo.vue
new file mode 100755
index 00000000..7ecd7769
--- /dev/null
+++ b/src/views/login/signup_collettivo/signup_collettivo.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/user/myactivities/myactivities.vue b/src/views/user/myactivities/myactivities.vue
index d06ac206..b9d9d5b8 100755
--- a/src/views/user/myactivities/myactivities.vue
+++ b/src/views/user/myactivities/myactivities.vue
@@ -29,8 +29,55 @@
+
+
+
+ online
+
+
+
+
+ OnLine: {{ tools.timeAgo(myuser.lasttimeonline) }}
+
+
+
+
+
+
+
+
+
+
+ {{ myuser.name }}
+ {{ myuser.surname }}
+
+
+
+ {{ myuser.username }}
+
+
+
-
-
-
- {{ myuser.name }}
- {{
- myuser.surname
- }}
-
-
-
- {{ myuser.username }}
-
-
+
-
{{card.title}}
+
{{ card.title }}
+ >
diff --git a/src/views/user/mycircuit/mycircuit.ts b/src/views/user/mycircuit/mycircuit.ts
index 2ed14978..0fc04276 100755
--- a/src/views/user/mycircuit/mycircuit.ts
+++ b/src/views/user/mycircuit/mycircuit.ts
@@ -7,6 +7,7 @@ import { CCheckIfIsLogged } from '@/components/CCheckIfIsLogged'
import { CMyFieldRec } from '@/components/CMyFieldRec'
import { CCurrencyValue } from '@/components/CCurrencyValue'
import { CSaldo } from '@/components/CSaldo'
+import { CTitleSec } from '@/components/CTitleSec'
import { CSkill } from '@/components/CSkill'
import { CDateTime } from '@/components/CDateTime'
import { tools } from '@store/Modules/tools'
@@ -29,7 +30,7 @@ import { useCircuitStore } from '@store/CircuitStore'
export default defineComponent({
name: 'mycircuit',
components: {
- CProfile, CTitleBanner, CMyFieldRec, CSkill, CDateTime, CMyFriends,
+ CProfile, CTitleBanner, CMyFieldRec, CSkill, CTitleSec, CDateTime, CMyFriends,
CGridTableRec, CMyUser, CCheckIfIsLogged, CCurrencyValue, CSaldo, CNotifAtTop
},
props: {},
@@ -43,6 +44,8 @@ export default defineComponent({
const showonlymine = ref(true)
const tabellare = ref(false)
+ const groupsListAdmin = ref([])
+ const groupnameSel = ref('')
const animation = ref('fade')
@@ -70,11 +73,13 @@ export default defineComponent({
const arrfilterand: any = ref([])
const filterextra: any = ref([])
+ const filterextra_group: any = ref([])
const filterextra2: any = ref([])
const filtercustom: any = ref([])
const filtercustom_rich: any = ref([])
const searchList = ref([] as ISearchList[])
+
const cities = ref([] as ICity[])
watch(() => path.value, (to: any, from: any) => {
@@ -117,20 +122,7 @@ export default defineComponent({
];
- filterextra.value = [
- /*{
- 'profile.mycircuits':
- {
- $elemMatch: {
- circuitname:
- { $eq: circuit.value.name }
- }
- }
- },
-
- */
-
- {
+ filterextra.value = [ {
$match: {
idapp: process.env.APP_ID,
'profile.mycircuits': {
@@ -199,6 +191,68 @@ export default defineComponent({
},
{ $unwind: '$account' },
]
+
+ filterextra_group.value = [ {
+ $match: {
+ idapp: process.env.APP_ID,
+ 'mycircuits': {
+ $elemMatch: { circuitname: { $eq: circuit.value.name } },
+ },
+ },
+ },
+
+ {
+ $lookup: {
+ from: 'circuits',
+ as: 'circuit',
+ let: { circuitname: circuit.value.name, idapp: '$idapp' },
+ pipeline: [
+ {
+ $match:
+ {
+ $expr:
+ {
+ $and:
+ [
+ { $eq: ['$name', '$$circuitname'] },
+ { $eq: ['$idapp', '$$idapp'] },
+
+ ],
+ },
+ },
+ },
+ ],
+ },
+
+ },
+ { $unwind: '$circuit' },
+ {
+ $project: {
+ groupname: 1,
+ title: 1,
+ descr: 1,
+ photos: 1,
+ surname: 1,
+ admins: 1,
+ idapp: 1,
+ 'circuit.name': 1, 'circuit._id': 1
+ }
+
+ },
+ {
+ $lookup: {
+ from: 'accounts',
+ localField: 'circuit._id',
+ foreignField: 'circuitId',
+ as: 'account',
+ },
+ },
+ {
+ $unwind: '$account',
+ },
+ { $match: { 'account.groupname': { $exists: true, $ne: '' } }
+ },
+ ]
}
arrfilterand.value = []
filtercustom_rich.value = []
@@ -212,6 +266,9 @@ export default defineComponent({
async function mounted() {
await loadCircuit()
+ if (userStore.my.username)
+ groupsListAdmin.value = userStore.GroupsListWhereIAmAdmin(userStore.my.username)
+
}
function getImgCircuit() {
@@ -257,6 +314,30 @@ export default defineComponent({
}
}
+ function extraparams_groups() {
+ const lk_tab = 'mygroups'
+ const lk_LF = 'userId'
+ const lk_FF = '_id'
+ const lk_as = 'group'
+ const af_objId_tab = 'myId'
+
+ return {
+ lookup1: {
+ lk_tab,
+ lk_LF,
+ lk_FF,
+ lk_as,
+ af_objId_tab,
+ lk_proj: {
+ groupname: 1,
+ title: 1,
+ descr: 1,
+ photos: 1,
+ }
+ },
+ }
+ }
+
function extraparams_rich() {
return {
querytype: shared_consts.QUERYTYPE_CIRCUIT,
@@ -349,6 +430,10 @@ export default defineComponent({
showonlymine,
tabellare,
showsaldi,
+ extraparams_groups,
+ filterextra_group,
+ groupsListAdmin,
+ groupnameSel,
}
}
})
diff --git a/src/views/user/mycircuit/mycircuit.vue b/src/views/user/mycircuit/mycircuit.vue
index ca6baf0a..2934d79a 100755
--- a/src/views/user/mycircuit/mycircuit.vue
+++ b/src/views/user/mycircuit/mycircuit.vue
@@ -67,8 +67,10 @@
0 &&
!userStore.IsMyCircuitByName(circuit.name) &&
!userStore.IsAskedCircuitByName(circuit.name) &&
!userStore.IsRefusedCircuitByName(circuit.name)
@@ -115,7 +118,10 @@
icon="fas fa-user-plus"
color="primary"
:label="$t('circuit.ask')"
- @click="requestToEnterCircuit = true"
+ @click="
+ requestToEnterCircuit = true;
+ groupnameSel = null;
+ "
/>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -701,6 +821,9 @@
{{ circuit.name }}
+
+ Gruppo: {{ groupnameSel.groupname }}
+
@@ -708,7 +831,9 @@
- Regolamento:
+
+ Regolamento:
+
@@ -723,7 +848,8 @@
$q,
userStore.my.username,
circuit.name,
- true
+ true,
+ groupnameSel ? groupnameSel.groupname : ''
);
"
/>
diff --git a/src/views/user/mygroup/mygroup.ts b/src/views/user/mygroup/mygroup.ts
index 572bd89f..e0f2e2e1 100755
--- a/src/views/user/mygroup/mygroup.ts
+++ b/src/views/user/mygroup/mygroup.ts
@@ -7,6 +7,7 @@ import { CCheckIfIsLogged } from '@/components/CCheckIfIsLogged'
import { CMyFieldRec } from '@/components/CMyFieldRec'
import { CSkill } from '@/components/CSkill'
import { CDateTime } from '@/components/CDateTime'
+import { CSaldo } from '@/components/CSaldo'
import { tools } from '@store/Modules/tools'
import { computed, defineComponent, onMounted, ref, watch } from 'vue'
import { useUserStore } from '@store/UserStore'
@@ -16,19 +17,22 @@ import { useI18n } from '@/boot/i18n'
import { toolsext } from '@store/Modules/toolsext'
import { useQuasar } from 'quasar'
import { costanti } from '@costanti'
-import { ICity, IFriends, IMyGroup, ISearchList, IUserFields } from 'model'
+import { ICircuit, ICity, IFriends, IMyCircuit, IMyGroup, ISearchList, IUserFields } from 'model'
import { shared_consts } from '@/common/shared_vuejs'
import { colmyUserPeople, colmyUserGroup } from '@store/Modules/fieldsTable'
import { useNotifStore } from '@store/NotifStore'
+import { useCircuitStore } from '@src/store/CircuitStore'
export default defineComponent({
name: 'mygroup',
- components: { CProfile, CTitleBanner, CMyFieldRec, CSkill, CDateTime, CMyFriends, CGridTableRec, CMyUser, CCheckIfIsLogged },
+ components: { CProfile, CTitleBanner, CMyFieldRec,
+ CSaldo, CSkill, CDateTime, CMyFriends, CGridTableRec, CMyUser, CCheckIfIsLogged },
props: {},
setup() {
const userStore = useUserStore()
const notifStore = useNotifStore()
+ const circuitStore = useCircuitStore()
const $route = useRoute()
const $q = useQuasar()
const { t } = useI18n()
@@ -41,7 +45,7 @@ export default defineComponent({
const filtroutente = ref([])
const showPic = ref(false)
- const mygrp = ref({})
+ const mygrp = ref({})
const mystatus = ref(0)
const users_in_group = ref([])
@@ -58,6 +62,8 @@ export default defineComponent({
const cities = ref([])
+ const circuitslist = ref([])
+
function profile() {
return userStore.my.profile
}
@@ -69,13 +75,18 @@ export default defineComponent({
async function loadGroup() {
// Carica il profilo di quest'utente
if (groupname.value) {
- await userStore.loadGroup(groupname.value, idnotif.value).then(({ data, status }: {data: any, status: number}) => {
+ await userStore.loadGroup(groupname.value, idnotif.value).then(({ data, status }: { data: any, status: number }) => {
console.log('data', data)
+ circuitslist.value = []
if (data) {
mygrp.value = data.mygroup
cities.value = data.cities
notifStore.setAsRead(idnotif.value)
users_in_group.value = data.users_in_group
+
+ if (mygrp.value && tools.iAmAdminGroup(groupname.value)) {
+ circuitslist.value = circuitStore.getCircuitsListByGroup(mygrp.value)
+ }
} else {
mygrp.value = null
users_in_group.value = []
@@ -99,7 +110,7 @@ export default defineComponent({
await loadGroup()
searchList.value = []
- filtercustom.value = [{ 'profile.mygroups': { $elemMatch: {groupname: {$eq: groupname.value }} } } ]
+ filtercustom.value = [{ 'profile.mygroups': { $elemMatch: { groupname: { $eq: groupname.value } } } }]
arrfilterand.value = []
filtercustom_rich.value = []
@@ -236,6 +247,7 @@ export default defineComponent({
loading,
mystatus,
cities,
+ circuitslist,
}
}
})
diff --git a/src/views/user/mygroup/mygroup.vue b/src/views/user/mygroup/mygroup.vue
index 99c66f7f..3aec2c76 100755
--- a/src/views/user/mygroup/mygroup.vue
+++ b/src/views/user/mygroup/mygroup.vue
@@ -1,35 +1,45 @@
-
-
Non hai i permessi per accedere al Gruppo.
+
+ Non hai i permessi per accedere al Gruppo.
- Occorre prima registrarsi alla App
+ Occorre prima registrarsi alla App
+
Gruppo non Esistente
-
-
-
-
+
-
+
{{ mygrp.title }}
-
+
{{ mygrp.groupname }}
@@ -37,58 +47,111 @@
v-if="userStore.IsRefusedGroupByGroupname(mygrp.groupname)"
rounded
class="bg-red text-white"
- style="text-align: center;"
+ style="text-align: center"
>
-
{{ $t('db.youarerefusedgroup') }}
+
{{ $t('db.youarerefusedgroup') }}
-
+ rounded
+ icon="fas fa-ellipsis-h"
+ >
-
+
-
+
- {{ $t('groups.exit_group') }}
+ {{
+ $t('groups.exit_group')
+ }}
-
-
+
+
-
+
- {{ $t('groups.delete_group') }}
+ {{
+ $t('groups.delete_group')
+ }}
-
-
-
-
-
-
+
-
-
-
+
+
+
+
@@ -114,39 +202,66 @@
{{ t('groups.info') }}
-
+
- {{ $t('shared.createdby', {
- username: mygrp.createdBy,
- date: tools.getstrDateYY(mygrp.date_created), })
+ {{
+ $t('shared.createdby', {
+ username: mygrp.createdBy,
+ date: tools.getstrDateYY(mygrp.date_created),
+ })
}}
-
+
- {{ $t('shared.lastmodify', {
- date: tools.getstrDateYY(mygrp.date_updated), })
+ {{
+ $t('shared.lastmodify', {
+ date: tools.getstrDateYY(mygrp.date_updated),
+ })
}}
-
+
-
{{ $t('groups.private') }}
+
+ {{ $t('groups.private') }}
+
{{ $t('groups.private_descr') }}
-
+
-
{{ $t('groups.hidden') }}
+
{{ $t('groups.hidden') }}
{{ $t('groups.hidden_descr') }}
@@ -166,11 +281,21 @@
- {{ numUsers() }} {{ numUsers() === 1 ? t('shared.member') : t('shared.members') }}
+ {{ numUsers() }}
+ {{
+ numUsers() === 1
+ ? t('shared.member')
+ : t('shared.members')
+ }}
- {{ numAdmins() }} {{ numAdmins() === 1 ? t('shared.admin') : t('shared.admins') }}
+ {{ numAdmins() }}
+ {{
+ numAdmins() === 1
+ ? t('shared.admin')
+ : t('shared.admins')
+ }}
-
+
Descrizione:
-
+
@@ -197,187 +322,215 @@
-
+ :href="getLinkGrpTelegram()"
+ target="__blank"
+ >
-
+ :href="getLinkWebSite()"
+ target="__blank"
+ >
-
-
-
-
+
+ v-model="tabmembers"
+ class="text-blue"
+ >
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ circuit.account: {{ circuit.account}}
+
+
+
-
-
-
+
+
-
+
{{ groupname }}
-
+
-
+
-
+
-
-
-
-
-
+
+
-