Sulla foto della notifica il click non funziona
check App
This commit is contained in:
@@ -312,6 +312,7 @@ module.exports = configure((ctx) => ({
|
||||
orientation: 'portrait',
|
||||
background_color: '#ffffff',
|
||||
theme_color: '#027be3',
|
||||
start_url: '/',
|
||||
icons: [
|
||||
{
|
||||
src: 'images/riso-android-icon-512x512.png',
|
||||
|
||||
@@ -79,17 +79,19 @@ export default {
|
||||
|
||||
|
||||
function mounted() {
|
||||
console.log('app mounted')
|
||||
darkcookie.value = tools.getCookie('darkmode', false, false, false) === '-1'
|
||||
|
||||
scroll()
|
||||
tools.initprompt()
|
||||
|
||||
tools.checkApp()
|
||||
}
|
||||
|
||||
|
||||
|
||||
async function created() {
|
||||
tools.initprompt()
|
||||
|
||||
tools.checkApp()
|
||||
|
||||
try {
|
||||
if (process.env.DEV) {
|
||||
console.info('SESSIONE IN SVILUPPO ! (DEV)')
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
<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">
|
||||
|
||||
<q-btn
|
||||
@@ -7,8 +12,8 @@
|
||||
label="Installa App"
|
||||
@click="installApp"
|
||||
icon="fas fa-mobile-alt"
|
||||
color="white"
|
||||
text-color="green"
|
||||
color="green"
|
||||
text-color="white"
|
||||
/>
|
||||
</div>
|
||||
<!--<div class="row justify-center">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineComponent, PropType, ref } from 'vue'
|
||||
import { defineComponent, PropType, ref, computed } from 'vue'
|
||||
import { useI18n } from '@src/boot/i18n'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
@@ -6,6 +6,7 @@ import { useQuasar } from 'quasar'
|
||||
|
||||
import { validationMixin } from 'vuelidate'
|
||||
import { Logo } from '../logo'
|
||||
import { CCheckAppRunning } from '../CCheckAppRunning'
|
||||
import { static_data } from '@/db/static_data'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { ISigninOptions } from 'model'
|
||||
@@ -16,7 +17,7 @@ import { useRouter } from 'vue-router'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CSignIn',
|
||||
components: { Logo },
|
||||
components: { Logo, CCheckAppRunning },
|
||||
props: {
|
||||
showregbutt: {
|
||||
type: Boolean,
|
||||
@@ -31,6 +32,8 @@ export default defineComponent({
|
||||
const $router = useRouter()
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const enablePwa = computed(() => globalStore.site.confpages.enablePwa)
|
||||
|
||||
const refUsername = ref(<any>null)
|
||||
const refPassword = ref(null)
|
||||
|
||||
@@ -166,6 +169,7 @@ export default defineComponent({
|
||||
site,
|
||||
showPassword,
|
||||
typePassword,
|
||||
enablePwa,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<div v-if="enablePwa"><CCheckAppRunning /></div>
|
||||
<div class="text-center">
|
||||
<p>
|
||||
<logo></logo>
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
</q-item-section>-->
|
||||
|
||||
<q-item-section avatar>
|
||||
<q-avatar>
|
||||
<q-avatar @click="clickNotif(notif)">
|
||||
<img :src="notif.myimgsender" :alt="notif.sender">
|
||||
</q-avatar>
|
||||
</q-item-section>
|
||||
|
||||
@@ -507,7 +507,7 @@ const msg_it = {
|
||||
click_per_copiare: 'Cliccaci sopra per copiarlo sugli appunti',
|
||||
invitante: 'Ti ha invitato qualcuno a far parte di RISO?',
|
||||
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',
|
||||
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',
|
||||
|
||||
@@ -7554,6 +7554,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
checkApp() {
|
||||
console.log('checkApp')
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
try {
|
||||
@@ -7575,6 +7576,7 @@ export const tools = {
|
||||
|
||||
},
|
||||
initprompt() {
|
||||
console.log('initprompt')
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
window.addEventListener('beforeinstallprompt', (event) => {
|
||||
|
||||
Reference in New Issue
Block a user