Created Test Environment test.freeplanet.app

and Server: /var/www/test.freeplanet_server
This commit is contained in:
Paolo Arena
2021-09-28 23:44:55 +02:00
parent c16d444d1b
commit 489c4fecc7
39 changed files with 230 additions and 108 deletions

View File

@@ -1,7 +1,7 @@
APP_VERSION="0.1.2" APP_VERSION="0.1.3"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="1" APP_ID="1"
DIRECTORY_LOCAL="freeplanet" DIRECTORY_LOCAL="newfreeplanet"
DIRECTORY_SERVER="freeplanet_serverside" DIRECTORY_SERVER="freeplanet_serverside"
SERVERDIR_WEBSITE="" SERVERDIR_WEBSITE=""
SERVERPW_WEBSITE="" SERVERPW_WEBSITE=""
@@ -11,7 +11,7 @@ PROVA_PAOLO="PROVA ENV FUNZIONA!"
LANG_DEFAULT="it" LANG_DEFAULT="it"
PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
MONGODB_HOST="http://localhost:3000" MONGODB_HOST="http://192.168.1.6:3000"
LOGO_REG="freeplanet-logo-full.svg" LOGO_REG="freeplanet-logo-full.svg"
TEST_NAME="Paolo" TEST_NAME="Paolo"
TEST_SURNAME="Arena" TEST_SURNAME="Arena"
@@ -25,4 +25,4 @@ DEBUG="1"
TELEGRAM_SUPPORT="" TELEGRAM_SUPPORT=""
PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
TEST_CELL="" TEST_CELL=""
ISTEST=true ISTEST=1

28
.env.prod.bak Executable file
View File

@@ -0,0 +1,28 @@
APP_VERSION="0.1.3"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="1"
DIRECTORY_LOCAL=newfreeplanet
DIRECTORY_SERVER=freeplanet_serverside
SERVERDIR_WEBSITE=www.freeplanet.app
SERVERPW_WEBSITE=pwdadmin@1AOK
APP_URL="https://www.freeplanet.app"
URL_FACEBOOK="https://www.facebook.com/freeplanetapp"
PROVA_PAOLO="PROVA ENV FUNZIONA!"
LANG_DEFAULT="it"
PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
MONGODB_HOST="https://www.freeplanet.app:3000"
LOGO_REG='freeplanet-logo-full.svg'
TEST_NAME=""
TEST_SURNAME=""
TEST_EMAIL=""
TEST_USERNAME=""
TEST_PASSWORD=""
TEST_APORTADOR="------"
PUBLICKEY_PUSH="BNM-cEpTbPVc_ujXf3QOC8ggf7b-X44P44esfJUWqNOFq1XhWCoZJpOi71_cbXC5SnfO9HassQ6OouAYgtBA9Pw"
IN_CONSTRUCTION="1"
DEBUG="1"
TELEGRAM_SUPPORT="https://t.me/freeplanet_supporto"
PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
TEST_CELL=""
ISTEST=0

View File

@@ -1,7 +1,7 @@
APP_VERSION="0.1.1" APP_VERSION="0.1.3"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="1" APP_ID="1"
DIRECTORY_LOCAL=freeplanet DIRECTORY_LOCAL=newfreeplanet
DIRECTORY_SERVER=freeplanet_serverside DIRECTORY_SERVER=freeplanet_serverside
SERVERDIR_WEBSITE=www.freeplanet.app SERVERDIR_WEBSITE=www.freeplanet.app
SERVERPW_WEBSITE=pwdadmin@1AOK SERVERPW_WEBSITE=pwdadmin@1AOK
@@ -25,4 +25,4 @@ DEBUG="1"
TELEGRAM_SUPPORT="https://t.me/freeplanet_supporto" TELEGRAM_SUPPORT="https://t.me/freeplanet_supporto"
PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
TEST_CELL="" TEST_CELL=""
ISTEST=false ISTEST=0

28
.env.test Executable file
View File

@@ -0,0 +1,28 @@
APP_VERSION="0.1.3"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="1"
DIRECTORY_LOCAL=newfreeplanet
DIRECTORY_SERVER=test.freeplanet_serverside
SERVERDIR_WEBSITE="test.freeplanet.app"
SERVERPW_WEBSITE="pwdadmin@1AOK"
APP_URL="https://test.freeplanet.app"
URL_FACEBOOK="https://www.facebook.com/freeplanetapp"
PROVA_PAOLO="PROVA ENV FUNZIONA!"
LANG_DEFAULT="it"
PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
MONGODB_HOST="https://test.freeplanet.app:3001"
LOGO_REG="freeplanet-logo-full.svg"
TEST_NAME="Paolo"
TEST_SURNAME="Arena"
TEST_EMAIL="paolo@freeplanet.app"
TEST_USERNAME="paoloar77"
TEST_PASSWORD="passpao1fr@1A"
TEST_APORTADOR=""
PUBLICKEY_PUSH="BNM-cEpTbPVc_ujXf3QOC8ggf7b-X44P44esfJUWqNOFq1XhWCoZJpOi71_cbXC5SnfO9HassQ6OouAYgtBA9Pw"
IN_CONSTRUCTION="0"
DEBUG="1"
TELEGRAM_SUPPORT=""
PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
TEST_CELL=""
ISTEST=1

17
deploy_frontend.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
source ./.env.production
msg="*** TUTTI I SERVER FRONTEND !!! **** SEI SICURO DI INVIARE GLI AGGIORNAMENTI FRONTEND - SU TUTTI SERVER ??? $DIRECTORY_LOCAL (Y/N) ? "
if [ "$1" = "" ]; then
read -p "$msg" risposta
else
risposta=$1
fi
if [[ $risposta == "Y" || $risposta == "y" ]]; then
cd /home/paolo/myproject/$DIRECTORY_LOCAL/
./deploy_on_production.sh $risposta
./deploy_on_test_server.sh $risposta
fi

28
deploy_on_test_server.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
source ./.env.test
msg="*** Sincronizzazione ??? $DIRECTORY_LOCAL e $DIRECTORY_SERVER (Y/N) ? "
if [ "$1" = "" ]; then
read -p "$msg" risposta
else
risposta=$1
fi
cd /home/paolo/myproject/$DIRECTORY_LOCAL/
cp .env.production .env.prod.bak
cp .env.test .env.production
sleep 1
npm run buildpwa
echo "Sincronizzazione $SERVERDIR_WEBSITE in remoto..."
sshpass -p $SERVERPW_WEBSITE rsync -e 'ssh -p 8822' -a dist/pwa/ ftpadmin@servereng:/var/www/$SERVERDIR_WEBSITE/
cp .env.prod.bak .env.production
sleep 1
echo "Finito $SERVERDIR_WEBSITE"

View File

@@ -2,7 +2,7 @@
"name": "freeplanet", "name": "freeplanet",
"version": "0.0.6", "version": "0.0.6",
"description": "FreePlanet", "description": "FreePlanet",
"productName": "First Proj", "productName": "FreePlanet",
"author": "Paolo Arena", "author": "Paolo Arena",
"private": true, "private": true,
"keywords": [ "keywords": [

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,4 +0,0 @@
[Dolphin]
PreviewsShown=true
Timestamp=2018,11,1,10,45,49
Version=4

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
public/images/opz1-icon-96x96.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
public/images/opz2-icon-96x96.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 213 B

After

Width:  |  Height:  |  Size: 213 B

View File

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

View File

Before

Width:  |  Height:  |  Size: 831 B

After

Width:  |  Height:  |  Size: 831 B

View File

Before

Width:  |  Height:  |  Size: 292 B

After

Width:  |  Height:  |  Size: 292 B

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -17,7 +17,7 @@ const webpack = require('webpack')
const helpers = require('./helpers') const helpers = require('./helpers')
const envparser = require('./config/envparser') const envparser = require('./config/envparser')
// const ESLintPlugin = require('eslint-webpack-plugin') const ESLintPlugin = require('eslint-webpack-plugin')
module.exports = configure((ctx) => ({ module.exports = configure((ctx) => ({
// https://v2.quasar.dev/quasar-cli/supporting-ts // https://v2.quasar.dev/quasar-cli/supporting-ts
@@ -276,24 +276,26 @@ module.exports = configure((ctx) => ({
// for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts]) // for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
// if using workbox in InjectManifest mode // if using workbox in InjectManifest mode
chainWebpackCustomSW(chain) { chainWebpackCustomSW(chain) {
chain.plugin('eslint-webpack-plugin')
.use(ESLintPlugin, [{ extensions: ['js'] }])
}, },
manifest: { manifest: {
name: 'First Proj', name: 'FreePlanet',
short_name: 'First Proj', short_name: 'FreePlanet',
description: 'A Quasar Framework app', description: 'New Free Social',
display: 'standalone', display: 'standalone',
orientation: 'portrait', orientation: 'portrait',
background_color: '#ffffff', background_color: '#ffffff',
theme_color: '#027be3', theme_color: '#027be3',
icons: [ icons: [
{ {
src: 'icons/android-chrome-192x192.png', src: 'images/android-chrome-192x192.png',
sizes: '384x384', sizes: '384x384',
type: 'image/png', type: 'image/png',
}, },
{ {
src: 'icons/android-chrome-512x512.png', src: 'images/android-chrome-512x512.png',
sizes: '512x512', sizes: '512x512',
type: 'image/png', type: 'image/png',
}, },

View File

@@ -2,6 +2,10 @@
source ./.env.test source ./.env.test
cp .env.test .env.production
echo "Sincronizzazione in remoto $SERVERDIR_WEBSITE ..." echo "Sincronizzazione in remoto $SERVERDIR_WEBSITE ..."
sshpass -p $SERVERPW_WEBSITE rsync -a dist/pwa/ ftpadmin@servereng:/var/www/$SERVERDIR_WEBSITE/ sshpass -p $SERVERPW_WEBSITE rsync -e 'ssh -p 8822' -a dist/pwa/ ftpadmin@servereng:/var/www/$SERVERDIR_WEBSITE/
echo "Finito $SERVERDIR_WEBSITE" echo "Finito $SERVERDIR_WEBSITE"
cp .env.prod.bak .env.production

View File

@@ -16,7 +16,7 @@ import { CacheableResponsePlugin } from 'workbox-cacheable-response'
import { ExpirationPlugin } from 'workbox-expiration' import { ExpirationPlugin } from 'workbox-expiration'
console.log( console.log(
' [ VER-0.0.65 ] _---------________------ PAO: this is my custom service worker') ' [ VER-0.1.2b ] _---------________------ PAO: this is my custom service worker')
importScripts('js/idb.js') importScripts('js/idb.js')
importScripts('js/storage.js') importScripts('js/storage.js')
@@ -92,7 +92,7 @@ if (workbox) {
// cleanupOutdatedCaches() // cleanupOutdatedCaches()
registerRoute( registerRoute(
new RegExp(/\.(?:png|gif|jpg|jpeg|svg)$/), new RegExp(/\.(?:png|gif|jpg|jpeg)$/),
new CacheFirst({ new CacheFirst({
cacheName: 'images', cacheName: 'images',
plugins: [ plugins: [
@@ -107,6 +107,22 @@ if (workbox) {
], ],
}), }),
) )
registerRoute(
new RegExp(/\.(?:svg)$/),
new CacheFirst({
cacheName: 'svg',
plugins: [
// Ensure that only requests that result in a 200 status are cached
new CacheableResponsePlugin({
statuses: [200],
}),
new ExpirationPlugin({
maxEntries: 60,
maxAgeSeconds: 30 * 24 * 60 * 60, // 30 Days
}),
],
}),
)
// Per Articoli.... // Per Articoli....
const articleHandler = new NetworkFirst({ const articleHandler = new NetworkFirst({
@@ -250,9 +266,9 @@ if (workbox) {
) )
registerRoute( registerRoute(
new RegExp(/.*\/(?:statics\/icons).*$/), new RegExp(/.*\/(?:icons).*$/),
new CacheFirst({ new CacheFirst({
cacheName: 'image-cache', cacheName: 'icon-cache',
plugins: [ plugins: [
// Ensure that only requests that result in a 200 status are cached // Ensure that only requests that result in a 200 status are cached
new CacheableResponsePlugin({ new CacheableResponsePlugin({
@@ -558,8 +574,8 @@ self.addEventListener('push', (event) => {
const options = { const options = {
body: data.content, body: data.content,
icon: '/public/icons/android-chrome-192x192.png', icon: '/images/android-chrome-192x192.png',
badge: '/public/icons/android-chrome-192x192.png', badge: '/images/android-chrome-192x192.png',
data: { data: {
url: data.url, url: data.url,
}, },

View File

@@ -7,6 +7,7 @@ import { useUserStore } from '@store/UserStore'
import { Header } from '@/components/Header' import { Header } from '@/components/Header'
import { computed } from 'vue' import { computed } from 'vue'
import { CProvaPao } from '@/components/CProvaPao' import { CProvaPao } from '@/components/CProvaPao'
import { tools } from '@store/Modules/tools'
export default { export default {
components: { components: {
@@ -38,14 +39,20 @@ export default {
} }
function created() { function created() {
try {
if (process.env.DEV) { if (process.env.DEV) {
console.info('SESSIONE IN SVILUPPO ! (DEV)') console.info('SESSIONE IN SVILUPPO ! (DEV)')
// console.info(process.env) // console.info(process.env)
} }
if (tools.isTest()) {
console.info('SESSIONE IN TEST ! (TEST)')
} else {
if (process.env.PROD) { if (process.env.PROD) {
console.info('SESSIONE IN PRODUZIONE!') console.info('SESSIONE IN PRODUZIONE!')
// console.info(process.env) // console.info(process.env)
} }
}
// Make autologin only if some routing // Make autologin only if some routing
@@ -84,6 +91,9 @@ export default {
} else { } else {
globalStore.finishLoading = true globalStore.finishLoading = true
} }
} catch (e) {
globalStore.finishLoading = true
}
// Calling the Server for updates ? // Calling the Server for updates ?
// Check the verified_email // Check the verified_email

View File

@@ -71,7 +71,7 @@ dark color="white" v-model="globalStore.autoplaydisc" label="Auto Play" class="s
<q-carousel-slide <q-carousel-slide
v-for="(myrec, index) in myarr" v-for="(myrec, index) in myarr"
:key="index" :key="index"
:img-src="`statics/`+myrec.img_small" :img-src="`public/`+myrec.img_small"
:alt="myrec.label" :alt="myrec.label"
:name="index"> :name="index">
<div class="row q-ma-xs"> <div class="row q-ma-xs">

View File

@@ -69,7 +69,7 @@ v-if="myevent.news" class="cltexth4 chipnews shadow-5 glossy text-right" color="
<!-- Se c'è un link, allora --> <!-- Se c'è un link, allora -->
<q-btn <q-btn
class="text-center boldhigh" v-if="myevent.linkpdf" size="md" type="a" class="text-center boldhigh" v-if="myevent.linkpdf" size="md" type="a"
:href="`../../statics/` + myevent.linkpdf" :href="`../../public/` + myevent.linkpdf"
target="_blank" target="_blank"
ripple rounded :label="myevent.title" ripple rounded :label="myevent.title"
:color="myevent.bgcolor" text-color="white" glossy> :color="myevent.bgcolor" text-color="white" glossy>
@@ -152,7 +152,7 @@ v-if="myevent.price && isShowPrice(myevent)" class="glossy" color="orange"
<div class="row justify-start q-ma-md"> <div class="row justify-start q-ma-md">
<q-btn <q-btn
v-if="myevent.linkpdf" v-if="myevent.linkpdf"
size="md" type="a" :href="`../../statics/` + myevent.linkpdf" size="md" type="a" :href="`../../public/` + myevent.linkpdf"
target="_blank" rounded outline target="_blank" rounded outline
color="primary" icon="info" color="primary" icon="info"
:label="$t('cal.showpdf')"> :label="$t('cal.showpdf')">

View File

@@ -20,7 +20,7 @@
- <a :href="urlmap" target="_blank" class="text-black">Apri Mappa</a> - <a :href="urlmap" target="_blank" class="text-black">Apri Mappa</a>
</p> </p>
<a :href="urlmap" target="_blank"> <a :href="urlmap" target="_blank">
<q-img :src="`statics/` + imgmap" class="imgautosize" alt="my map"> <q-img :src="`public/` + imgmap" class="imgautosize" alt="my map">
</q-img> </q-img>
</a> </a>

View File

@@ -1,6 +1,6 @@
<template> <template>
<q-card :class="getmycardcl" v-if="!!myproduct"> <q-card :class="getmycardcl" v-if="!!myproduct">
<q-img :src="`statics/` + myproduct.img" :alt="myproduct.name" :class="getclimg"></q-img> <q-img :src="`public/` + myproduct.img" :alt="myproduct.name" :class="getclimg"></q-img>
<q-card-section> <q-card-section>
<q-btn <q-btn

View File

@@ -228,7 +228,7 @@ canvas {
} }
.fa-facebook:before { .fa-facebook:before {
content: url('../../../public/icons/flag_it.svg'); content: url('../../../public/svg/flag_it.svg');
} }
.clIconOnline { .clIconOnline {

View File

@@ -275,10 +275,10 @@ export default defineComponent({
let strv = '' let strv = ''
if (process.env.DEV) { if (process.env.DEV) {
strv = 'DEV ' strv = 'DEV '
} else if (process.env.TEST) { } else if (tools.isTest()) {
strv = 'TEST ' strv = 'TEST '
} }
return `[${strv}${process.env.APP_VERSION}]` return `[${strv} ver. ${process.env.APP_VERSION}]`
} }
function getLangAtt() { function getLangAtt() {
@@ -344,7 +344,13 @@ export default defineComponent({
} }
function getappname() { function getappname() {
return tools.getsuffisso() + tools.getappname(tools.isMobile()) let mystr = tools.getsuffisso() + tools.getappname(tools.isMobile())
//if (!tools.isMobile()) {
mystr += ' ' + getAppVersion()
//}
return mystr
} }
function toggleanimation() { function toggleanimation() {
@@ -474,6 +480,7 @@ export default defineComponent({
getMsgText, getMsgText,
paotest, paotest,
logoutHandler, logoutHandler,
isUserNotAuth,
} }
}, },

View File

@@ -29,7 +29,6 @@
</div> </div>
<q-btn <q-btn
ripple
size="md" size="md"
id="newvers" v-if="isNewVersionAvailable()" color="secondary" rounded icon="refresh" id="newvers" v-if="isNewVersionAvailable()" color="secondary" rounded icon="refresh"
class="btnNewVersShow" @click="RefreshApp()" :label="t('notification.newVersionAvailable')"> class="btnNewVersShow" @click="RefreshApp()" :label="t('notification.newVersionAvailable')">
@@ -40,9 +39,6 @@
<img :src="imglogo()" height="27" alt="Immagine Logo"> <img :src="imglogo()" height="27" alt="Immagine Logo">
</q-avatar> </q-avatar>
<div class="q-mx-sm titlesite">{{ getappname() }}</div> <div class="q-mx-sm titlesite">{{ getappname() }}</div>
<template v-slot:subtitle>
<div>{{ t('msg.myDescriz') }} {{ getAppVersion() }}</div>
</template>
</q-toolbar-title> </q-toolbar-title>
<!-- <!--

View File

@@ -573,24 +573,24 @@ $heightBtn: 100%;
} }
.fa-flag-it:before { .fa-flag-it:before {
content: url('../../public/icons/flag_it.svg'); content: url('../../public/svg/flag_it.svg');
} }
.fa-flag-us:before { .fa-flag-us:before {
content: url('../../public/icons/flag_us.svg'); content: url('../../public/svg/flag_us.svg');
} }
.fa-flag-es:before { .fa-flag-es:before {
content: url('../../public/icons/flag_es.svg'); content: url('../../public/svg/flag_es.svg');
} }
.fa-flag-gb:before { .fa-flag-gb:before {
content: url('../../public/icons/flag_gb.svg'); content: url('../../public/svg/flag_gb.svg');
} }
.fa-flag-de:before { .fa-flag-de:before {
content: url('../../public/icons/flag_de.svg'); content: url('../../public/svg/flag_de.svg');
} }
.animazione { .animazione {

View File

@@ -9,8 +9,8 @@
<meta name="msapplication-tap-highlight" content="no"> <meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>"> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="icon" type="image/ico" href="favicon.ico"> <link rel="icon" type="image/ico" href="favicon.ico">
</head> </head>
<body> <body>

View File

@@ -12,9 +12,9 @@ import { useI18n } from '@/boot/i18n'
export default function () { export default function () {
function getImgEvent(event: IEvents) { function getImgEvent(event: IEvents) {
if (!!event.img) if (!!event.img)
return 'statics/' + event.img return 'public/' + event.img
else else
return 'statics/images/noimg.png' return 'public/images/noimg.png'
} }
function getStyleByEvent(event: IEvents, visu: boolean) { function getStyleByEvent(event: IEvents, visu: boolean) {

View File

@@ -96,9 +96,6 @@
</div> </div>
</div> </div>
<div class="q-pt-md q-pl-sm">
<div class="text-body2">Ver. {{ getenv('APP_VERSION') }}</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -187,9 +184,6 @@
</div> </div>
</div> </div>
<div class="q-pt-md q-pl-sm">
<div class="text-body2">Ver. {{ getenv('APP_VERSION') }}</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -281,10 +275,6 @@
</div> </div>
</div> </div>
<div class="q-pt-md q-pl-sm">
<div class="text-body2">Ver. {{ getenv('APP_VERSION') }}</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -90,13 +90,13 @@ export default defineComponent({
if (actiontype.value === shared_consts.TypeMsg_Actions.YESNO) { if (actiontype.value === shared_consts.TypeMsg_Actions.YESNO) {
param.actions = [ param.actions = [
{ action: 'confirm', title: 'Si', icon: '/statics/icons/opz1-icon-96x96.png' }, { action: 'confirm', title: 'Si', icon: '/public/images/opz1-icon-96x96.jpg' },
{ action: 'cancel', title: 'No', icon: '/statics/icons/opz2-icon-96x96.png' } { action: 'cancel', title: 'No', icon: '/public/images/opz2-icon-96x96.jpg' }
] ]
} else if (actiontype.value === shared_consts.TypeMsg_Actions.OPZ1_2) { } else if (actiontype.value === shared_consts.TypeMsg_Actions.OPZ1_2) {
param.actions = [ param.actions = [
{ action: 'opz1', title: opz1.value, icon: '/statics/icons/opz1-icon-96x96.png' }, { action: 'opz1', title: opz1.value, icon: '/public/images/opz1-icon-96x96.jpg' },
{ action: 'opz2', title: opz2.value, icon: '/statics/icons/opz2-icon-96x96.png' } { action: 'opz2', title: opz2.value, icon: '/public/images/opz2-icon-96x96.jpg' }
] ]
} }

View File

@@ -1456,7 +1456,7 @@ export const tools = {
} else { } else {
this.showNotif($q, t('notification.denied'), { color: 'negative', icon: 'notifications' }) this.showNotif($q, t('notification.denied'), { color: 'negative', icon: 'notifications' })
// displayConfirmNotification(); tools.displayConfirmNotification();
} }
}) })
}, },
@@ -2552,17 +2552,17 @@ export const tools = {
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
options = { options = {
body: 'You successfully subscribed to our Notification service!', body: 'You successfully subscribed to our Notification service!',
icon: '/public/icons/app-icon-96x96.png', icon: '/icons/app-icon-96x96.png',
image: '/public/images/sf-boat.jpg', image: '/images/sf-boat.jpg',
dir: 'ltr', dir: 'ltr',
lang: 'enUs', // BCP 47, lang: 'enUs', // BCP 47,
vibrate: [100, 50, 200], vibrate: [100, 50, 200],
badge: '/public/icons/app-icon-96x96.png', badge: '/icons/app-icon-96x96.png',
tag: 'confirm-notification', tag: 'confirm-notification',
renotify: true, // if it's already sent, will Vibrate anyway renotify: true, // if it's already sent, will Vibrate anyway
actions: [ actions: [
{ action: 'confirm', title: 'Okay', icon: '/public/icons/app-icon-96x96.png' }, { action: 'confirm', title: 'Okay', icon: '/icons/app-icon-96x96.png' },
{ action: 'cancel', title: 'Cancel', icon: '/public/icons/app-icon-96x96.png' }, { action: 'cancel', title: 'Cancel', icon: '/icons/app-icon-96x96.png' },
], ],
} }
@@ -2595,17 +2595,17 @@ export const tools = {
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
options = { options = {
body: t('notification.subscribed'), body: t('notification.subscribed'),
icon: '/public/icons/android-chrome-192x192.png', icon: '/public/images/android-chrome-192x192.png',
image: '/public/images/imglogonotif.png', image: '/public/images/imglogonotif.png',
dir: 'ltr', dir: 'ltr',
lang: 'enUs', // BCP 47, lang: 'enUs', // BCP 47,
vibrate: [100, 50, 200], vibrate: [100, 50, 200],
badge: '/public/icons/android-chrome-192x192.png', badge: '/public/images/android-chrome-192x192.png',
tag: 'confirm-notification', tag: 'confirm-notification',
renotify: true, // if it's already sent, will Vibrate anyway renotify: true, // if it's already sent, will Vibrate anyway
actions: [ actions: [
{ action: 'confirm', title: t('dialog.ok'), icon: '/public/icons/android-chrome-192x192.png' }, { action: 'confirm', title: t('dialog.ok'), icon: '/public/images/android-chrome-192x192.png' },
// { action: 'cancel', title: 'Cancel', icon: '/statics/icons/android-chrome-192x192.png', } // { action: 'cancel', title: 'Cancel', icon: '/statics/images/android-chrome-192x192.png', }
], ],
} }