Se la window viene attivata, e se sono in fase di registrazione, allora controllo se ci sono aggiornamenti ogni 10 secondi, loadSite

Corretto che il link di registrazione se era in minuscolo l'username e venivi registrato in maiuscolo, non lo prendeva.
L'immagine di telegram occorre salvare anche la versione SMALL
Corretto filtro, se cambiavo Regione, non mi resettava la Provincia e la Città
This commit is contained in:
paoloar77
2022-03-10 00:28:07 +01:00
parent 00939b053a
commit b597a9ad4b
18 changed files with 189 additions and 65 deletions

View File

@@ -9,14 +9,14 @@ import { useQuasar } from 'quasar'
import { Chart, ChartData, ChartOptions, registerables } from 'chart.js'
import { LineChart, useLineChart } from 'vue-chart-3'
import { BarChart, useBarChart } from 'vue-chart-3'
Chart.register(...registerables)
export default defineComponent({
name: 'CLineChart',
components: { LineChart },
name: 'CBarChart',
components: { BarChart },
props: {
mydata: { required: false, default: [] },
title: { required: false, default: false },
@@ -38,14 +38,14 @@ export default defineComponent({
const myarrsum = ref(<any>[])
// @ts-ignore
const chartData = computed<ChartData<'line'>>(() => ({
const chartData = computed<ChartData<'bar'>>(() => ({
labels: myarrlabel.value,
datasets: [
{
/*{
label: 'Totali',
data: myarrsum.value,
backgroundColor: tools.colourNameToHex('green'),
},
},*/
{
label: props.title,
data: myarrdata.value,
@@ -56,18 +56,20 @@ export default defineComponent({
],
}))
const options = computed<ChartOptions<'line'>>(() => ({
elements: {
line: {
tension: 0.4
}
const options = computed<ChartOptions<'bar'>>(() => ({
bar: {
},
interaction: {
intersect: false
},
scales: {
y: {
beginAtZero: true
}
}
}))
const { lineChartProps, lineChartRef } = useLineChart({
const { barChartProps, barChartRef } = useBarChart({
chartData,
options,
@@ -84,7 +86,7 @@ export default defineComponent({
let rec: any
let ind = 1
let ind = ''
for (rec of props.mydata) {
if (props.sum) {
@@ -92,11 +94,14 @@ export default defineComponent({
} else {
somma = rec.count
}
let day = rec._id.split('-')
ind = day[2] + '/' + day[1]
//myarrlabel.value.push(rec._id)
myarrlabel.value.push(ind)
myarrdata.value.push(rec.count)
myarrsum.value.push(somma)
ind++
// ind++
}
}
@@ -111,8 +116,8 @@ export default defineComponent({
getoffset,
q,
options,
lineChartProps,
lineChartRef,
barChartProps,
barChartRef,
myarrdata,
myarrlabel,
}

View File

@@ -1,6 +1,6 @@
<template>
<div>
<LineChart v-bind="lineChartProps" />
<BarChart v-bind="barChartProps" />
<!--<DoughnutChart ref="doughnutRef" :chartData="objdata" :options="options" />-->