mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Redo events tab to show all events.
This commit is contained in:
parent
10f65cae68
commit
9c32057841
18 changed files with 152 additions and 66 deletions
|
|
@ -1,4 +1,9 @@
|
|||
import { getWebsiteSessions, getEvents, getPageviewStats, getSessionStats } from 'queries/index';
|
||||
import {
|
||||
getWebsiteSessions,
|
||||
getWebsiteEvents,
|
||||
getPageviewStats,
|
||||
getSessionStats,
|
||||
} from 'queries/index';
|
||||
|
||||
const MAX_SIZE = 50;
|
||||
|
||||
|
|
@ -19,7 +24,7 @@ export async function getRealtimeData(
|
|||
const { startDate, timezone } = criteria;
|
||||
const filters = { startDate, endDate: new Date(), unit: 'minute', timezone };
|
||||
const [events, sessions, pageviews, sessionviews] = await Promise.all([
|
||||
getEvents(websiteId, { startDate, timezone }, { pageSize: 10000 }),
|
||||
getWebsiteEvents(websiteId, { startDate, timezone }, { pageSize: 10000 }),
|
||||
getWebsiteSessions(websiteId, { startDate, timezone }, { pageSize: 10000 }),
|
||||
getPageviewStats(websiteId, filters),
|
||||
getSessionStats(websiteId, filters),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue