mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Updated session profile page. Added TypeIcon component. Added useRegionNames hook.
This commit is contained in:
parent
ac60d08ee5
commit
c3c3b46ef6
313 changed files with 197 additions and 94 deletions
|
|
@ -25,8 +25,6 @@ async function clickhouseQuery(websiteId: string, sessionId: string) {
|
|||
select
|
||||
session_id as id,
|
||||
website_id as websiteId,
|
||||
min(created_at) as firstAt,
|
||||
max(created_at) as lastAt,
|
||||
hostname,
|
||||
browser,
|
||||
os,
|
||||
|
|
@ -35,7 +33,9 @@ async function clickhouseQuery(websiteId: string, sessionId: string) {
|
|||
language,
|
||||
country,
|
||||
subdivision1,
|
||||
city
|
||||
city,
|
||||
min(created_at) as firstAt,
|
||||
max(created_at) as lastAt
|
||||
from website_event
|
||||
where website_id = {websiteId:UUID}
|
||||
and session_id = {sessionId:UUID}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
|
|||
select
|
||||
session_id as id,
|
||||
website_id as websiteId,
|
||||
min(created_at) as createdAt,
|
||||
hostname,
|
||||
browser,
|
||||
os,
|
||||
|
|
@ -41,13 +40,15 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
|
|||
language,
|
||||
country,
|
||||
subdivision1,
|
||||
city
|
||||
city,
|
||||
min(created_at) as firstAt,
|
||||
max(created_at) as lastAt
|
||||
from website_event
|
||||
where website_id = {websiteId:UUID}
|
||||
${dateQuery}
|
||||
${filterQuery}
|
||||
group by session_id, website_id, hostname, browser, os, device, screen, language, country, subdivision1, city
|
||||
order by createdAt desc
|
||||
order by lastAt desc
|
||||
`,
|
||||
params,
|
||||
pageParams,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue