init
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
import type { Metadata } from "next";
|
||||
import { NextIntlClientProvider, hasLocale } from 'next-intl';
|
||||
import { routing } from '@/i18n/routing';
|
||||
import { notFound } from 'next/navigation';
|
||||
import AdminNavLinks from '@/app/ui/admin-nav-links'
|
||||
import AdminHeaderPanel from '@/app/ui/admin-header-panel';
|
||||
import "../styles/globals.css";
|
||||
import "../styles/global-styles.scss"
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Admin panel no copy",
|
||||
description: "Admin panel no copy",
|
||||
};
|
||||
|
||||
export function generateStaticParams() {
|
||||
return routing.locales.map((locale: any) => ({ locale }));
|
||||
}
|
||||
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
params
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
params: Promise<{ locale: string }>;
|
||||
}>) {
|
||||
const { locale } = await params;
|
||||
if (!hasLocale(routing.locales, locale)) {
|
||||
notFound();
|
||||
}
|
||||
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className="admin-panel">
|
||||
<NextIntlClientProvider>
|
||||
<AdminNavLinks />
|
||||
<div className="admin-main">
|
||||
<AdminHeaderPanel />
|
||||
<main className="main-containter">
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
</NextIntlClientProvider>
|
||||
</body>
|
||||
</html >
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import DashboardGeneralInfo from '@/app/ui/dashboard-general-info';
|
||||
import UsersTop from '@/app/ui/users-top';
|
||||
import SubscriptionsStatistic from '@/app/ui/subscriptions-statistic';
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
<DashboardGeneralInfo />
|
||||
<div className="split-blocks">
|
||||
<UsersTop />
|
||||
<SubscriptionsStatistic />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
subscriptions-page
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
users-page
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user