Sulla foto della notifica il click non funziona

check App
This commit is contained in:
Surya Paolo
2023-01-25 11:55:06 +01:00
parent 567f7b4be7
commit e58f7249a6
9 changed files with 25 additions and 10 deletions

View File

@@ -312,6 +312,7 @@ module.exports = configure((ctx) => ({
orientation: 'portrait', orientation: 'portrait',
background_color: '#ffffff', background_color: '#ffffff',
theme_color: '#027be3', theme_color: '#027be3',
start_url: '/',
icons: [ icons: [
{ {
src: 'images/riso-android-icon-512x512.png', src: 'images/riso-android-icon-512x512.png',

View File

@@ -79,17 +79,19 @@ export default {
function mounted() { function mounted() {
console.log('app mounted')
darkcookie.value = tools.getCookie('darkmode', false, false, false) === '-1' darkcookie.value = tools.getCookie('darkmode', false, false, false) === '-1'
scroll() scroll()
tools.initprompt()
tools.checkApp()
} }
async function created() { async function created() {
tools.initprompt()
tools.checkApp()
try { try {
if (process.env.DEV) { if (process.env.DEV) {
console.info('SESSIONE IN SVILUPPO ! (DEV)') console.info('SESSIONE IN SVILUPPO ! (DEV)')

View File

@@ -1,4 +1,9 @@
<template> <template>
<div v-if="tools.isDebugOn()" class="bg-red text-white">
<span> isAppRunning: {{isAppRunning}} - </span>
<span> deferredPrompt: {{deferredPrompt}} - </span>
<span> finishLoading: {{finishLoading}} - </span>
</div>
<div v-if="finishLoading && !isAppRunning && deferredPrompt" class="row justify-center"> <div v-if="finishLoading && !isAppRunning && deferredPrompt" class="row justify-center">
<q-btn <q-btn
@@ -7,8 +12,8 @@
label="Installa App" label="Installa App"
@click="installApp" @click="installApp"
icon="fas fa-mobile-alt" icon="fas fa-mobile-alt"
color="white" color="green"
text-color="green" text-color="white"
/> />
</div> </div>
<!--<div class="row justify-center"> <!--<div class="row justify-center">

View File

@@ -1,4 +1,4 @@
import { defineComponent, PropType, ref } from 'vue' import { defineComponent, PropType, ref, computed } from 'vue'
import { useI18n } from '@src/boot/i18n' import { useI18n } from '@src/boot/i18n'
import { useUserStore } from '@store/UserStore' import { useUserStore } from '@store/UserStore'
import { useGlobalStore } from '@store/globalStore' import { useGlobalStore } from '@store/globalStore'
@@ -6,6 +6,7 @@ import { useQuasar } from 'quasar'
import { validationMixin } from 'vuelidate' import { validationMixin } from 'vuelidate'
import { Logo } from '../logo' import { Logo } from '../logo'
import { CCheckAppRunning } from '../CCheckAppRunning'
import { static_data } from '@/db/static_data' import { static_data } from '@/db/static_data'
import { tools } from '@store/Modules/tools' import { tools } from '@store/Modules/tools'
import { ISigninOptions } from 'model' import { ISigninOptions } from 'model'
@@ -16,7 +17,7 @@ import { useRouter } from 'vue-router'
export default defineComponent({ export default defineComponent({
name: 'CSignIn', name: 'CSignIn',
components: { Logo }, components: { Logo, CCheckAppRunning },
props: { props: {
showregbutt: { showregbutt: {
type: Boolean, type: Boolean,
@@ -31,6 +32,8 @@ export default defineComponent({
const $router = useRouter() const $router = useRouter()
const globalStore = useGlobalStore() const globalStore = useGlobalStore()
const enablePwa = computed(() => globalStore.site.confpages.enablePwa)
const refUsername = ref(<any>null) const refUsername = ref(<any>null)
const refPassword = ref(null) const refPassword = ref(null)
@@ -166,6 +169,7 @@ export default defineComponent({
site, site,
showPassword, showPassword,
typePassword, typePassword,
enablePwa,
} }
}, },
}) })

View File

@@ -1,5 +1,6 @@
<template> <template>
<div> <div>
<div v-if="enablePwa"><CCheckAppRunning /></div>
<div class="text-center"> <div class="text-center">
<p> <p>
<logo></logo> <logo></logo>

View File

@@ -83,7 +83,7 @@
</q-item-section>--> </q-item-section>-->
<q-item-section avatar> <q-item-section avatar>
<q-avatar> <q-avatar @click="clickNotif(notif)">
<img :src="notif.myimgsender" :alt="notif.sender"> <img :src="notif.myimgsender" :alt="notif.sender">
</q-avatar> </q-avatar>
</q-item-section> </q-item-section>

View File

@@ -507,7 +507,7 @@ const msg_it = {
click_per_copiare: 'Cliccaci sopra per copiarlo sugli appunti', click_per_copiare: 'Cliccaci sopra per copiarlo sugli appunti',
invitante: 'Ti ha invitato qualcuno a far parte di RISO?', invitante: 'Ti ha invitato qualcuno a far parte di RISO?',
link_reg: 'Clicca per copiare il link da condividere agli Amici', link_reg: 'Clicca per copiare il link da condividere agli Amici',
link_reg_and_msg: 'Copia Link Registrazione', link_reg_and_msg: 'Invita un Amico',
copia_messaggio: 'Copia Messaggio', copia_messaggio: 'Copia Messaggio',
teleg_torna_sul_bot: '1) Copia il codice cliccando sul bottone qui sopra<br>2) torna su {botname} cliccando qui sotto 👇 ed incolla (o scrivi) il codice', teleg_torna_sul_bot: '1) Copia il codice cliccando sul bottone qui sopra<br>2) torna su {botname} cliccando qui sotto 👇 ed incolla (o scrivi) il codice',
teleg_checkcode: 'Codice Telegram', teleg_checkcode: 'Codice Telegram',

View File

@@ -7554,6 +7554,7 @@ export const tools = {
}, },
checkApp() { checkApp() {
console.log('checkApp')
const globalStore = useGlobalStore() const globalStore = useGlobalStore()
try { try {
@@ -7575,6 +7576,7 @@ export const tools = {
}, },
initprompt() { initprompt() {
console.log('initprompt')
const globalStore = useGlobalStore() const globalStore = useGlobalStore()
window.addEventListener('beforeinstallprompt', (event) => { window.addEventListener('beforeinstallprompt', (event) => {