mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 01:46:58 +01:00
parent
cd1a98f51b
commit
d6ee8ee869
@ -45,7 +45,7 @@ export const SESSION_COLUMNS = [
|
||||
];
|
||||
|
||||
export const FILTER_COLUMNS = {
|
||||
url_path: 'url_path',
|
||||
url: 'url_path',
|
||||
referrer: 'referrer_domain',
|
||||
title: 'page_title',
|
||||
query: 'url_query',
|
||||
|
@ -189,7 +189,7 @@ export interface QueryFilters {
|
||||
timezone?: string;
|
||||
unit?: string;
|
||||
eventType?: number;
|
||||
url_path?: string;
|
||||
url?: string;
|
||||
referrer?: string;
|
||||
title?: string;
|
||||
query?: string;
|
||||
|
@ -14,7 +14,7 @@ export interface WebsiteEventsRequestQuery {
|
||||
endAt: string;
|
||||
unit?: string;
|
||||
timezone?: string;
|
||||
url_path: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
const schema = {
|
||||
@ -24,7 +24,7 @@ const schema = {
|
||||
endAt: yup.number().integer().moreThan(yup.ref('startAt')).required(),
|
||||
unit: UnitTypeTest,
|
||||
timezone: TimezoneTest,
|
||||
url_path: yup.string(),
|
||||
url: yup.string(),
|
||||
}),
|
||||
};
|
||||
|
||||
@ -36,7 +36,7 @@ export default async (
|
||||
await useAuth(req, res);
|
||||
await useValidate(schema, req, res);
|
||||
|
||||
const { id: websiteId, timezone, url_path } = req.query;
|
||||
const { id: websiteId, timezone, url } = req.query;
|
||||
const { startDate, endDate, unit } = await parseDateRangeQuery(req);
|
||||
|
||||
if (req.method === 'GET') {
|
||||
@ -49,7 +49,7 @@ export default async (
|
||||
endDate,
|
||||
timezone,
|
||||
unit,
|
||||
url_path,
|
||||
url,
|
||||
});
|
||||
|
||||
return ok(res, events);
|
||||
|
@ -13,7 +13,7 @@ export interface WebsiteMetricsRequestQuery {
|
||||
type: string;
|
||||
startAt: number;
|
||||
endAt: number;
|
||||
url_path?: string;
|
||||
url?: string;
|
||||
referrer?: string;
|
||||
title?: string;
|
||||
query?: string;
|
||||
@ -33,7 +33,7 @@ const schema = {
|
||||
type: yup.string().required(),
|
||||
startAt: yup.number().required(),
|
||||
endAt: yup.number().required(),
|
||||
url_path: yup.string(),
|
||||
url: yup.string(),
|
||||
referrer: yup.string(),
|
||||
title: yup.string(),
|
||||
query: yup.string(),
|
||||
@ -59,7 +59,7 @@ export default async (
|
||||
const {
|
||||
id: websiteId,
|
||||
type,
|
||||
url_path,
|
||||
url,
|
||||
referrer,
|
||||
title,
|
||||
query,
|
||||
@ -83,7 +83,7 @@ export default async (
|
||||
const filters = {
|
||||
startDate,
|
||||
endDate,
|
||||
url_path,
|
||||
url,
|
||||
referrer,
|
||||
title,
|
||||
query,
|
||||
|
@ -12,7 +12,7 @@ export interface WebsitePageviewRequestQuery {
|
||||
endAt: number;
|
||||
unit?: string;
|
||||
timezone?: string;
|
||||
url_path?: string;
|
||||
url?: string;
|
||||
referrer?: string;
|
||||
title?: string;
|
||||
os?: string;
|
||||
@ -32,7 +32,7 @@ const schema = {
|
||||
endAt: yup.number().required(),
|
||||
unit: UnitTypeTest,
|
||||
timezone: TimezoneTest,
|
||||
url_path: yup.string(),
|
||||
url: yup.string(),
|
||||
referrer: yup.string(),
|
||||
title: yup.string(),
|
||||
os: yup.string(),
|
||||
@ -55,7 +55,7 @@ export default async (
|
||||
const {
|
||||
id: websiteId,
|
||||
timezone,
|
||||
url_path,
|
||||
url,
|
||||
referrer,
|
||||
title,
|
||||
os,
|
||||
@ -78,7 +78,7 @@ export default async (
|
||||
endDate,
|
||||
timezone,
|
||||
unit,
|
||||
url_path,
|
||||
url,
|
||||
referrer,
|
||||
title,
|
||||
os,
|
||||
|
@ -11,7 +11,7 @@ export interface WebsiteStatsRequestQuery {
|
||||
id: string;
|
||||
startAt: number;
|
||||
endAt: number;
|
||||
url_path?: string;
|
||||
url?: string;
|
||||
referrer?: string;
|
||||
title?: string;
|
||||
query?: string;
|
||||
@ -30,7 +30,7 @@ const schema = {
|
||||
id: yup.string().uuid().required(),
|
||||
startAt: yup.number().required(),
|
||||
endAt: yup.number().required(),
|
||||
url_path: yup.string(),
|
||||
url: yup.string(),
|
||||
referrer: yup.string(),
|
||||
title: yup.string(),
|
||||
query: yup.string(),
|
||||
@ -54,7 +54,7 @@ export default async (
|
||||
|
||||
const {
|
||||
id: websiteId,
|
||||
url_path,
|
||||
url,
|
||||
referrer,
|
||||
title,
|
||||
query,
|
||||
@ -78,7 +78,7 @@ export default async (
|
||||
const prevEndDate = subMinutes(endDate, diff);
|
||||
|
||||
const filters = {
|
||||
url_path,
|
||||
url,
|
||||
referrer,
|
||||
title,
|
||||
query,
|
||||
|
Loading…
Reference in New Issue
Block a user