- se iOS non ricarica la pagina ma disinstalla il SW precedente e chiede di riavviare
- fixed: Creando un Conto di Gruppo, pare che venga impostato anche l'username... invece dev'essere solo il groupname -
This commit is contained in:
@@ -186,7 +186,7 @@ export default defineComponent({
|
|||||||
if (myuser.value && myuser.value.profile.reaction) {
|
if (myuser.value && myuser.value.profile.reaction) {
|
||||||
let arrfav = myuser.value.profile.reaction.filter((rec: IReaction) => rec.tab === tab && (rec.fav! === true))
|
let arrfav = myuser.value.profile.reaction.filter((rec: IReaction) => rec.tab === tab && (rec.fav! === true))
|
||||||
if (arrfav)
|
if (arrfav)
|
||||||
return myuser.value.profile.reaction ? [{ _id: { $in: arrfav.map((rec: any) => rec.id) } }] : []
|
return myuser.value.profile.reaction ? [{ _id: { $in: arrfav.map((rec: any) => rec.idrec) } }] : []
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
@@ -195,7 +195,7 @@ export default defineComponent({
|
|||||||
if (myuser.value && myuser.value.profile.reaction) {
|
if (myuser.value && myuser.value.profile.reaction) {
|
||||||
let arrfav = myuser.value.profile.reaction.filter((rec: IReaction) => rec.tab === tab && rec.book === true);
|
let arrfav = myuser.value.profile.reaction.filter((rec: IReaction) => rec.tab === tab && rec.book === true);
|
||||||
if (arrfav)
|
if (arrfav)
|
||||||
return myuser.value.profile.reaction ? [{ _id: { $in: arrfav.map((rec: any) => rec.id) } }] : []
|
return myuser.value.profile.reaction ? [{ _id: { $in: arrfav.map((rec: any) => rec.idrec) } }] : []
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,15 +91,15 @@
|
|||||||
myclass="myshad"
|
myclass="myshad"
|
||||||
:canopen="true"
|
:canopen="true"
|
||||||
>
|
>
|
||||||
<q-tabs
|
<q-tabs v-model="mytab" inline-label dense class="shadow-2">
|
||||||
v-model="mytab"
|
|
||||||
inline-label
|
|
||||||
dense
|
|
||||||
class="shadow-2"
|
|
||||||
>
|
|
||||||
<q-tab name="my" icon="far fa-user" />
|
<q-tab name="my" icon="far fa-user" />
|
||||||
<q-tab name="favorite" icon="favorite" content-class="text-red" />
|
<q-tab v-if="isMyRecord(myuser.username)" name="favorite" icon="favorite" content-class="text-red" />
|
||||||
<q-tab name="bookmark" icon="bookmark" content-class="text-teal" />
|
<q-tab
|
||||||
|
v-if="isMyRecord(myuser.username)"
|
||||||
|
name="bookmark"
|
||||||
|
icon="bookmark"
|
||||||
|
content-class="text-teal"
|
||||||
|
/>
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
|
|
||||||
<q-tab-panels
|
<q-tab-panels
|
||||||
@@ -165,14 +165,13 @@
|
|||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
<q-tab-panel name="favorite">
|
<q-tab-panel v-if="isMyRecord(myuser.username)" name="favorite">
|
||||||
<div
|
<div
|
||||||
v-for="(card, ind) of mycards"
|
v-for="(card, ind) of mycards"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
:name="card.table"
|
:name="card.table"
|
||||||
>
|
>
|
||||||
<q-card class="q-my-md">
|
<q-card class="q-my-md">
|
||||||
|
|
||||||
<div v-if="card.showfavorite && filtrofavorite(card.table)">
|
<div v-if="card.showfavorite && filtrofavorite(card.table)">
|
||||||
<CSkill
|
<CSkill
|
||||||
:table="card.table"
|
:table="card.table"
|
||||||
@@ -186,7 +185,7 @@
|
|||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
<q-tab-panel name="bookmark">
|
<q-tab-panel v-if="isMyRecord(myuser.username)" name="bookmark">
|
||||||
<div
|
<div
|
||||||
v-for="(card, ind) of mycards"
|
v-for="(card, ind) of mycards"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
|
|||||||
@@ -578,10 +578,19 @@
|
|||||||
size="xs"
|
size="xs"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<span class="mybanner"
|
<div v-if="$q.platform.is.ios">
|
||||||
>Aggiornamento APP in corso ... Se dopo 1 minuto non dovesse
|
<span class="mybanner"
|
||||||
scomparire questo messaggio, chiudere e riaprire la pagina.</span
|
>Chiudere e Riaprire la App, per completare l'Aggiornamento</span
|
||||||
>
|
>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<span class="mybanner"
|
||||||
|
>Aggiornamento APP in corso ... Se dopo 1 minuto non dovesse
|
||||||
|
scomparire questo messaggio, chiudere e riaprire la pagina.</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
|
||||||
</q-banner>
|
</q-banner>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="myel.type === shared_consts.ELEMTYPE.BTN_REG">
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.BTN_REG">
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ export default defineComponent({
|
|||||||
const refPassword = ref(null)
|
const refPassword = ref(null)
|
||||||
|
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
const autoCompleteTriggered = ref(true)
|
||||||
|
const wasblank = ref(false)
|
||||||
|
|
||||||
const site = computed(() => {
|
const site = computed(() => {
|
||||||
return globalStore.site
|
return globalStore.site
|
||||||
@@ -158,6 +160,20 @@ export default defineComponent({
|
|||||||
typePassword.value = typePassword.value === 'password' ? 'text' : 'password'
|
typePassword.value = typePassword.value === 'password' ? 'text' : 'password'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkAutoCompletion() {
|
||||||
|
|
||||||
|
// Check if the password field value changes without user input
|
||||||
|
if (signin.value.password.length <= 2) {
|
||||||
|
wasblank.value = true
|
||||||
|
autoCompleteTriggered.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (signin.value.password.length > 0 && !autoCompleteTriggered.value && !wasblank.value) {
|
||||||
|
// Auto-completion was executed
|
||||||
|
console.log('Auto-completion executed.');
|
||||||
|
autoCompleteTriggered.value = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
created()
|
created()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -172,6 +188,8 @@ export default defineComponent({
|
|||||||
showPassword,
|
showPassword,
|
||||||
typePassword,
|
typePassword,
|
||||||
enablePwa,
|
enablePwa,
|
||||||
|
checkAutoCompletion,
|
||||||
|
autoCompleteTriggered,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -36,7 +36,8 @@
|
|||||||
rounded
|
rounded
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
debounce="500"
|
||||||
|
@update:model-value="checkAutoCompletion"
|
||||||
v-on:keyup.enter="onSubmit()"
|
v-on:keyup.enter="onSubmit()"
|
||||||
:label="$t('reg.password')"
|
:label="$t('reg.password')"
|
||||||
:rules="[
|
:rules="[
|
||||||
@@ -48,6 +49,7 @@
|
|||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="!autoCompleteTriggered"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
:icon="
|
:icon="
|
||||||
typePassword === `password` ? `fas fa-eye-slash` : `fas fa-eye`
|
typePassword === `password` ? `fas fa-eye-slash` : `fas fa-eye`
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
ù<template>
|
ù<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="q-my-xs">
|
<div class="q-my-xs">
|
||||||
title: {{title}}
|
|
||||||
<CGridTableRec
|
<CGridTableRec
|
||||||
v-if="filtercustom.length > 0 && col && col.length > 0"
|
v-if="filtercustom.length > 0 && col && col.length > 0"
|
||||||
:prop_mytable="table"
|
:prop_mytable="table"
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ import { CMyCart, CSigninNoreg } from '@/components'
|
|||||||
import { costanti } from '@costanti'
|
import { costanti } from '@costanti'
|
||||||
import { useNotifStore } from '@src/store/NotifStore'
|
import { useNotifStore } from '@src/store/NotifStore'
|
||||||
|
|
||||||
|
import { Platform } from 'quasar';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'MyHeader',
|
name: 'MyHeader',
|
||||||
components: {
|
components: {
|
||||||
@@ -365,20 +367,24 @@ export default defineComponent({
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function RefreshApp() {
|
function RefreshApp() {
|
||||||
// Unregister Service Worker
|
// Unregister Service Worker
|
||||||
/*
|
navigator.serviceWorker.getRegistrations().then((registrations) => {
|
||||||
navigator.serviceWorker.getRegistrations().then((registrations) => {
|
|
||||||
for (const registration of registrations) {
|
for (const registration of registrations) {
|
||||||
registration.unregister()
|
registration.unregister()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
window.location.reload() */
|
|
||||||
|
|
||||||
data.value.updateExists = false
|
if (Platform.is.ios) {
|
||||||
// Make sure we only send a 'skip waiting' message if the SW is waiting
|
|
||||||
if (!data.value.registration || !data.value.registration.waiting) return
|
// window.location.reload()
|
||||||
// Send message to SW to skip the waiting and activate the new SW
|
} else {
|
||||||
data.value.registration.waiting.postMessage({ type: 'SKIP_WAITING' })
|
|
||||||
|
data.value.updateExists = false
|
||||||
|
// Make sure we only send a 'skip waiting' message if the SW is waiting
|
||||||
|
if (!data.value.registration || !data.value.registration.waiting) return
|
||||||
|
// Send message to SW to skip the waiting and activate the new SW
|
||||||
|
data.value.registration.waiting.postMessage({ type: 'SKIP_WAITING' })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeIconConn() {
|
function changeIconConn() {
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
name: 'mypages.groups',
|
name: 'mypages.groups',
|
||||||
component: () => import('@/views/user/mygroups/mygroups.vue'),
|
component: () => import('@/views/user/mygroups/mygroups.vue'),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
inmenu: false,
|
inmenu: true,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const msg_it = {
|
|||||||
directory: 'Directory',
|
directory: 'Directory',
|
||||||
list: 'Lista',
|
list: 'Lista',
|
||||||
select_image: 'Scegli un\'Immagine',
|
select_image: 'Scegli un\'Immagine',
|
||||||
load_image: 'Carica un\'Immagine',
|
load_image: 'Carica Immagine / Foto',
|
||||||
data_choose: 'Scegli la Data',
|
data_choose: 'Scegli la Data',
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
|
|||||||
@@ -173,6 +173,7 @@ export const costanti = {
|
|||||||
{
|
{
|
||||||
visible: false,
|
visible: false,
|
||||||
title: 'Gruppi',
|
title: 'Gruppi',
|
||||||
|
strsingolo: 'Gruppo',
|
||||||
subtitle: 'Conosci gruppi locali, associazioni, progetti, comunità',
|
subtitle: 'Conosci gruppi locali, associazioni, progetti, comunità',
|
||||||
to: '/groups',
|
to: '/groups',
|
||||||
table: 'mygroups',
|
table: 'mygroups',
|
||||||
|
|||||||
@@ -546,6 +546,14 @@
|
|||||||
></q-btn>
|
></q-btn>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<q-btn
|
||||||
|
label="updateReactionsCounts"
|
||||||
|
color="primary"
|
||||||
|
@click="EseguiFunz('updateReactionsCounts')"
|
||||||
|
></q-btn>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" src="./dbop.ts">
|
<script lang="ts" src="./dbop.ts">
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user