updated config file environment
This commit is contained in:
@@ -16,7 +16,7 @@ importScripts('../statics/js/workbox-sw.js');
|
|||||||
|
|
||||||
|
|
||||||
let port = 3000;
|
let port = 3000;
|
||||||
if (self.location.hostname === 'test.freeplanet.app') {
|
if (self.location.hostname.startsWith('test')) {
|
||||||
port = 3001;
|
port = 3001;
|
||||||
}
|
}
|
||||||
// console.log('SW-06 1');
|
// console.log('SW-06 1');
|
||||||
@@ -68,7 +68,7 @@ if (workbox) {
|
|||||||
const debug = false;
|
const debug = false;
|
||||||
workbox.setConfig({ debug: debug });
|
workbox.setConfig({ debug: debug });
|
||||||
|
|
||||||
workbox.core.setCacheNameDetails({ prefix: "freeplanet" });
|
workbox.core.setCacheNameDetails({ prefix: self.location.hostname });
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
|
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
|
||||||
@@ -281,7 +281,7 @@ if (workbox) {
|
|||||||
|
|
||||||
// Storage
|
// Storage
|
||||||
workbox.routing.registerRoute(
|
workbox.routing.registerRoute(
|
||||||
new RegExp(/.*(?:storage\.freeplanet)\.app.*$/),
|
new RegExp(/.*(?:storage.*$/),
|
||||||
workbox.strategies.staleWhileRevalidate({
|
workbox.strategies.staleWhileRevalidate({
|
||||||
cacheName: 'storage',
|
cacheName: 'storage',
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|||||||
@@ -9,4 +9,8 @@ export default class Logo extends Vue {
|
|||||||
get logoimg() {
|
get logoimg() {
|
||||||
return '../../' + tools.getimglogo()
|
return '../../' + tools.getimglogo()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get logoalt() {
|
||||||
|
return process.env.APP_NAME
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
<img id="logoimg" alt="FreePlanet" :src=logoimg>
|
<img id="logoimg" :alt="logoalt" :src=logoimg>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" src="./logo.ts">
|
<script lang="ts" src="./logo.ts">
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ export default class Home extends Vue {
|
|||||||
options = {
|
options = {
|
||||||
body: mythis.$t('notification.subscribed'),
|
body: mythis.$t('notification.subscribed'),
|
||||||
icon: '/statics/icons/android-chrome-192x192.png',
|
icon: '/statics/icons/android-chrome-192x192.png',
|
||||||
image: '/statics/images/freeplanet.png',
|
image: '/statics/images/imglogonotif.png',
|
||||||
dir: 'ltr',
|
dir: 'ltr',
|
||||||
lang: 'enUs', // BCP 47,
|
lang: 'enUs', // BCP 47,
|
||||||
vibrate: [100, 50, 200],
|
vibrate: [100, 50, 200],
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end">
|
<div class="flex justify-end">
|
||||||
<div class="q-gutter-xs testo-banda clgutter">
|
<div class="q-gutter-xs testo-banda clgutter">
|
||||||
<div class="text-h1 shadow-max">{{appname}}</div>
|
<div class="text-h1 shadow-max">{{$t('msg.myAppName')}}</div>
|
||||||
<div class="text-subtitle1 shadow text-italic q-pl-sm">
|
<div class="text-subtitle1 shadow text-italic q-pl-sm">
|
||||||
{{$t('msg.sottoTitoloApp')}}
|
{{$t('msg.sottoTitoloApp')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end">
|
<div class="flex justify-end">
|
||||||
<div class="q-gutter-xs testo-banda clgutter">
|
<div class="q-gutter-xs testo-banda clgutter">
|
||||||
<div class="text-h1 shadow-max">FreePlanet</div>
|
<div class="text-h1 shadow-max">{{$t('msg.myAppName')}}</div>
|
||||||
<div class="text-subtitle1 shadow text-italic q-pl-sm">
|
<div class="text-subtitle1 shadow text-italic q-pl-sm">
|
||||||
{{$t('msg.sottoTitoloApp')}}
|
{{$t('msg.sottoTitoloApp')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -201,7 +201,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end">
|
<div class="flex justify-end">
|
||||||
<div class="q-gutter-xs testo-banda clgutter">
|
<div class="q-gutter-xs testo-banda clgutter">
|
||||||
<div class="text-h1 shadow-max">FreePlanet</div>
|
<div class="text-h1 shadow-max">{{getenv('APP_NAME')}}</div>
|
||||||
<div class="text-subtitle1 shadow text-italic q-pl-sm">
|
<div class="text-subtitle1 shadow text-italic q-pl-sm">
|
||||||
{{$t('msg.sottoTitoloApp')}}
|
{{$t('msg.sottoTitoloApp')}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
Reference in New Issue
Block a user