- 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:
Surya Paolo
2023-10-03 23:17:02 +02:00
parent c02037b35c
commit 018cf0bd99
11 changed files with 72 additions and 30 deletions

View File

@@ -186,7 +186,7 @@ export default defineComponent({
if (myuser.value && myuser.value.profile.reaction) {
let arrfav = myuser.value.profile.reaction.filter((rec: IReaction) => rec.tab === tab && (rec.fav! === true))
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 []
}
@@ -195,7 +195,7 @@ export default defineComponent({
if (myuser.value && myuser.value.profile.reaction) {
let arrfav = myuser.value.profile.reaction.filter((rec: IReaction) => rec.tab === tab && rec.book === true);
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 []
}

View File

@@ -91,15 +91,15 @@
myclass="myshad"
:canopen="true"
>
<q-tabs
v-model="mytab"
inline-label
dense
class="shadow-2"
>
<q-tabs v-model="mytab" inline-label dense class="shadow-2">
<q-tab name="my" icon="far fa-user" />
<q-tab 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="favorite" icon="favorite" content-class="text-red" />
<q-tab
v-if="isMyRecord(myuser.username)"
name="bookmark"
icon="bookmark"
content-class="text-teal"
/>
</q-tabs>
<q-tab-panels
@@ -165,14 +165,13 @@
</q-card>
</div>
</q-tab-panel>
<q-tab-panel name="favorite">
<q-tab-panel v-if="isMyRecord(myuser.username)" name="favorite">
<div
v-for="(card, ind) of mycards"
:key="ind"
:name="card.table"
>
<q-card class="q-my-md">
<div v-if="card.showfavorite && filtrofavorite(card.table)">
<CSkill
:table="card.table"
@@ -186,7 +185,7 @@
</q-card>
</div>
</q-tab-panel>
<q-tab-panel name="bookmark">
<q-tab-panel v-if="isMyRecord(myuser.username)" name="bookmark">
<div
v-for="(card, ind) of mycards"
:key="ind"

View File

@@ -578,10 +578,19 @@
size="xs"
/>
</template>
<span class="mybanner"
>Aggiornamento APP in corso ... Se dopo 1 minuto non dovesse
scomparire questo messaggio, chiudere e riaprire la pagina.</span
>
<div v-if="$q.platform.is.ios">
<span class="mybanner"
>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>
</div>
<div v-else-if="myel.type === shared_consts.ELEMTYPE.BTN_REG">

View File

@@ -38,6 +38,8 @@ export default defineComponent({
const refPassword = ref(null)
const loading = ref(false)
const autoCompleteTriggered = ref(true)
const wasblank = ref(false)
const site = computed(() => {
return globalStore.site
@@ -158,6 +160,20 @@ export default defineComponent({
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()
return {
@@ -172,6 +188,8 @@ export default defineComponent({
showPassword,
typePassword,
enablePwa,
checkAutoCompletion,
autoCompleteTriggered,
}
},
})

View File

@@ -36,7 +36,8 @@
rounded
outlined
dense
lazy-rules
debounce="500"
@update:model-value="checkAutoCompletion"
v-on:keyup.enter="onSubmit()"
:label="$t('reg.password')"
:rules="[
@@ -48,6 +49,7 @@
>
<template v-slot:append>
<q-btn
v-if="!autoCompleteTriggered"
tabindex="-1"
:icon="
typePassword === `password` ? `fas fa-eye-slash` : `fas fa-eye`

View File

@@ -1,7 +1,6 @@
ù<template>
<div>
<div class="q-my-xs">
title: {{title}}
<CGridTableRec
v-if="filtercustom.length > 0 && col && col.length > 0"
:prop_mytable="table"

View File

@@ -26,6 +26,8 @@ import { CMyCart, CSigninNoreg } from '@/components'
import { costanti } from '@costanti'
import { useNotifStore } from '@src/store/NotifStore'
import { Platform } from 'quasar';
export default defineComponent({
name: 'MyHeader',
components: {
@@ -365,20 +367,24 @@ export default defineComponent({
*/
function RefreshApp() {
// Unregister Service Worker
/*
navigator.serviceWorker.getRegistrations().then((registrations) => {
// Unregister Service Worker
navigator.serviceWorker.getRegistrations().then((registrations) => {
for (const registration of registrations) {
registration.unregister()
}
})
window.location.reload() */
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' })
if (Platform.is.ios) {
// window.location.reload()
} else {
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() {

View File

@@ -164,7 +164,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
name: 'mypages.groups',
component: () => import('@/views/user/mygroups/mygroups.vue'),
meta: { requiresAuth: true },
inmenu: false,
inmenu: true,
infooter: false,
},
{

View File

@@ -29,7 +29,7 @@ const msg_it = {
directory: 'Directory',
list: 'Lista',
select_image: 'Scegli un\'Immagine',
load_image: 'Carica un\'Immagine',
load_image: 'Carica Immagine / Foto',
data_choose: 'Scegli la Data',
},
profile: {

View File

@@ -173,6 +173,7 @@ export const costanti = {
{
visible: false,
title: 'Gruppi',
strsingolo: 'Gruppo',
subtitle: 'Conosci gruppi locali, associazioni, progetti, comunità',
to: '/groups',
table: 'mygroups',

View File

@@ -546,6 +546,14 @@
></q-btn>
<br />
</div>
<div class="row">
<q-btn
label="updateReactionsCounts"
color="primary"
@click="EseguiFunz('updateReactionsCounts')"
></q-btn>
<br />
</div>
</template>
<script lang="ts" src="./dbop.ts">
</script>