mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Updated metrics components for compare mode.
This commit is contained in:
parent
6b03935fca
commit
df66acaacf
117 changed files with 602 additions and 513 deletions
|
|
@ -85,8 +85,8 @@ async function clickhouseQuery(
|
|||
limit 500
|
||||
`,
|
||||
params,
|
||||
).then(a => {
|
||||
return Object.values(a).map(a => {
|
||||
).then(result => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return {
|
||||
eventName: a.eventName,
|
||||
fieldName: a.fieldName,
|
||||
|
|
@ -113,8 +113,8 @@ async function clickhouseQuery(
|
|||
limit 500
|
||||
`,
|
||||
params,
|
||||
).then(a => {
|
||||
return Object.values(a).map(a => {
|
||||
).then(result => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return {
|
||||
eventName: a.eventName,
|
||||
fieldName: a.fieldName,
|
||||
|
|
|
|||
|
|
@ -62,8 +62,8 @@ async function clickhouseQuery(
|
|||
limit 500
|
||||
`,
|
||||
params,
|
||||
).then(a => {
|
||||
return Object.values(a).map(a => {
|
||||
).then(result => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return {
|
||||
fieldName: a.fieldName,
|
||||
dataType: Number(a.dataType),
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ async function clickhouseQuery(
|
|||
) as t
|
||||
`,
|
||||
params,
|
||||
).then(a => {
|
||||
return Object.values(a).map(a => {
|
||||
).then(result => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return {
|
||||
events: Number(a.events),
|
||||
fields: Number(a.fields),
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ function clickhouseQuery(
|
|||
startDate,
|
||||
endDate,
|
||||
},
|
||||
).then(a => {
|
||||
return Object.values(a).map(a => {
|
||||
).then(result => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return { websiteId: a.websiteId, count: Number(a.count) };
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -92,13 +92,13 @@ async function clickhouseQuery(
|
|||
`,
|
||||
params,
|
||||
).then(result => {
|
||||
return Object.values(result).map(n => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return {
|
||||
pageviews: Number(n.pageviews),
|
||||
visitors: Number(n.visitors),
|
||||
visits: Number(n.visits),
|
||||
bounces: Number(n.bounces),
|
||||
totaltime: Number(n.totaltime),
|
||||
pageviews: Number(a.pageviews),
|
||||
visitors: Number(a.visitors),
|
||||
visits: Number(a.visits),
|
||||
bounces: Number(a.bounces),
|
||||
totaltime: Number(a.totaltime),
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue