Modifiche prima di Luglio...

This commit is contained in:
Surya Paolo
2023-08-27 23:56:18 +02:00
parent 800df74f3f
commit f88b753f26
15 changed files with 62 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
APP_VERSION="1.0.13" APP_VERSION="1.0.15"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="1.0.13" APP_VERSION="1.0.15"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet DIRECTORY_LOCAL=newfreeplanet

View File

@@ -1,4 +1,4 @@
APP_VERSION="1.0.13" APP_VERSION="1.0.15"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet DIRECTORY_LOCAL=newfreeplanet

View File

@@ -1,4 +1,4 @@
APP_VERSION="1.0.13" APP_VERSION="1.0.15"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="1.0.13" APP_VERSION="1.0.15"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet DIRECTORY_LOCAL=newfreeplanet

View File

@@ -1,4 +1,4 @@
APP_VERSION="1.0.13" APP_VERSION="1.0.15"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="14" APP_ID="14"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

4
rest.http Normal file
View File

@@ -0,0 +1,4 @@
## Portainer:
GET http://pi:9000

View File

@@ -116,7 +116,7 @@ export default defineComponent({
function getlistimages() { function getlistimages() {
if (gallerylist.value) if (gallerylist.value)
// return gallerylist.value.slice().sort((a: any, b: any) => a.order! - b.order!) // return gallerylist.value.slice().sort((a: any, b: any) => a.order! - b.order!)
return gallerylist.value return gallerylist.value.filter(filename => !filename)
else else
return null return null
} }

View File

@@ -116,10 +116,27 @@ export default defineComponent({
return userStore.my.username return userStore.my.username
} }
function getRegulation(reg: string) {
let strreg = reg + ''
if (!reg) {
let name = ''
if (circuit.value!.hasOwnProperty('name')) {
// @ts-ignore
name = circuit.value!.name
}
const mystringa = t('circuit.regolamento', {nomecircuito: name})
return mystringa
} else {
return reg
}
}
onMounted(mounted) onMounted(mounted)
return { return {
circuit, circuit,
getRegulation,
costanti, costanti,
getImgCircuit, getImgCircuit,
naviga, naviga,

View File

@@ -441,7 +441,7 @@
<div style="font-weight: bold; font-size: 1.25rem">Regolamento:</div> <div style="font-weight: bold; font-size: 1.25rem">Regolamento:</div>
<q-btn label="vedi Regolamento" @click="showrules = !showrules"> <q-btn label="vedi Regolamento" @click="showrules = !showrules">
</q-btn> </q-btn>
<div v-if="showrules" v-html="circuit.regulation"></div> <div v-if="showrules" v-html="getRegulation(circuit.regulation)"></div>
</q-card-section> </q-card-section>
<q-card-actions align="center"> <q-card-actions align="center">
<q-btn <q-btn

View File

@@ -818,6 +818,7 @@ export interface IMsgGlobParam {
typesend: number typesend: number
sendreally?: boolean sendreally?: boolean
textaddTelegram?: string textaddTelegram?: string
linkaddTelegram?: string
} }
export interface IDataToSet { export interface IDataToSet {

File diff suppressed because one or more lines are too long

View File

@@ -5087,6 +5087,7 @@ export const tools = {
getLinkBotTelegram(aportador_solidario: string, regexpire: string): string { getLinkBotTelegram(aportador_solidario: string, regexpire: string): string {
let mylink = '' let mylink = ''
const sep = '-'
if (this.isTest() && !process.env.DEV) { if (this.isTest() && !process.env.DEV) {
mylink = this.getValDb('TELEG_BOT_LINK_TEST', false) mylink = this.getValDb('TELEG_BOT_LINK_TEST', false)
} else { } else {
@@ -5094,7 +5095,7 @@ export const tools = {
} }
let add = '' let add = ''
if (aportador_solidario) { if (aportador_solidario) {
add = '?start=inv#' + aportador_solidario + '#ex#' + regexpire add = '?start=inv' + sep + aportador_solidario + sep + 'ex' + sep + regexpire
} }
return mylink + add return mylink + add

View File

@@ -484,6 +484,14 @@
></q-btn> ></q-btn>
<br /> <br />
</div> </div>
<div class="row">
<q-btn
label="Azzera i regolamenti dei Circuiti"
color="primary"
@click="EseguiFunz('AzzeraRegolamentiTuttiCircuiti', '', '')"
></q-btn>
<br />
</div>
<div class="row"> <div class="row">
<q-btn <q-btn
label="Crea Tutti i Circuiti" label="Crea Tutti i Circuiti"

View File

@@ -461,15 +461,14 @@
</q-tab-panel> </q-tab-panel>
<q-tab-panel name="circuits"> <q-tab-panel name="circuits">
<q-select <q-select
v-if="circuitslistOpt.length > 0"
v-model="circuitIndex" v-model="circuitIndex"
:options="circuitslistOpt" :options="circuitslistOpt"
emit-value emit-value
map-options map-options
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'" :behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
> >
<template v-slot:prepend> <template v-slot:prepend> </template>
<q-icon :name="iconsel" />
</template>
<template v-slot:option="scope"> <template v-slot:option="scope">
<q-item v-bind="scope.itemProps"> <q-item v-bind="scope.itemProps">
<q-item-section> <q-item-section>
@@ -479,7 +478,12 @@
</template> </template>
</q-select> </q-select>
<q-tabs v-model="tabcircuit" class="text-blue" no-caps> <q-tabs
v-if="circuitslistOpt.length > 0"
v-model="tabcircuit"
class="text-blue"
no-caps
>
<q-tab <q-tab
:label="t('shared.info1')" :label="t('shared.info1')"
name="info" name="info"