mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Funnel form.
This commit is contained in:
parent
dd2db308ee
commit
1130bca195
19 changed files with 460 additions and 45 deletions
|
|
@ -9,6 +9,7 @@ import useConfig from 'hooks/useConfig';
|
|||
import '@fontsource/inter/400.css';
|
||||
import '@fontsource/inter/700.css';
|
||||
import 'react-basics/dist/styles.css';
|
||||
import 'styles/funnelChart.css';
|
||||
import 'styles/variables.css';
|
||||
import 'styles/locale.css';
|
||||
import 'styles/index.css';
|
||||
|
|
|
|||
|
|
@ -36,14 +36,14 @@ export default async (
|
|||
const startDate = new Date(+startAt);
|
||||
const endDate = new Date(+endAt);
|
||||
|
||||
const data = getPageviewFunnel(websiteId, {
|
||||
const data = await getPageviewFunnel(websiteId, {
|
||||
startDate,
|
||||
endDate,
|
||||
urls,
|
||||
windowMinutes: window,
|
||||
});
|
||||
|
||||
return ok(res);
|
||||
return ok(res, data);
|
||||
}
|
||||
|
||||
return methodNotAllowed(res);
|
||||
|
|
|
|||
22
pages/reports/funnel.js
Normal file
22
pages/reports/funnel.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { useRouter } from 'next/router';
|
||||
import AppLayout from 'components/layout/AppLayout';
|
||||
import FunnelPage from 'components/pages/reports/FunnelPage';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
|
||||
export default function DetailsPage() {
|
||||
// const { formatMessage, labels } = useMessages();
|
||||
// const router = useRouter();
|
||||
// const { id } = router.query;
|
||||
|
||||
// if (!id) {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
// return <AppLayout title={formatMessage(labels.websites)}>{/* <FunnelPage /> */}</AppLayout>;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<FunnelPage />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue