mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 00:27:11 +01:00
Removed naming from index pages.
This commit is contained in:
parent
6b69f69c08
commit
4e6d24e932
24 changed files with 81 additions and 63 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { useRouter } from 'next/router';
|
||||
import AppLayout from 'components/layout/AppLayout';
|
||||
import WebsiteDetails from 'components/pages/websites/WebsiteDetails';
|
||||
import WebsiteEventData from 'components/pages/websites/WebsiteEventData';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
|
||||
export default function DetailsPage() {
|
||||
export default function () {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
|
|
@ -14,7 +14,7 @@ export default function DetailsPage() {
|
|||
|
||||
return (
|
||||
<AppLayout title={formatMessage(labels.websites)}>
|
||||
<WebsiteDetails websiteId={id} />
|
||||
<WebsiteEventData websiteId={id} />
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
20
pages/websites/[id]/index.js
Normal file
20
pages/websites/[id]/index.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { useRouter } from 'next/router';
|
||||
import AppLayout from 'components/layout/AppLayout';
|
||||
import WebsiteDetailsPage from 'components/pages/websites/WebsiteDetailsPage';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
|
||||
export default function () {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
|
||||
if (!id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout title={formatMessage(labels.websites)}>
|
||||
<WebsiteDetailsPage websiteId={id} />
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
18
pages/websites/[id]/realtime.js
Normal file
18
pages/websites/[id]/realtime.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { useRouter } from 'next/router';
|
||||
import AppLayout from 'components/layout/AppLayout';
|
||||
import RealtimeDashboard from 'components/pages/realtime/RealtimeDashboard';
|
||||
|
||||
export default function () {
|
||||
const router = useRouter();
|
||||
const { id: websiteId } = router.query;
|
||||
|
||||
if (!websiteId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<RealtimeDashboard websiteId={websiteId} />
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
18
pages/websites/[id]/reports.js
Normal file
18
pages/websites/[id]/reports.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { useRouter } from 'next/router';
|
||||
import AppLayout from 'components/layout/AppLayout';
|
||||
import WebsiteReports from 'components/pages/websites/WebsiteReports';
|
||||
|
||||
export default function () {
|
||||
const router = useRouter();
|
||||
const { id: websiteId } = router.query;
|
||||
|
||||
if (!websiteId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<WebsiteReports websiteId={websiteId} />
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue