create-nextjs-cms 0.5.92 → 0.5.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/templates/default/app/(auth)/auth/login/LoginPage.tsx +13 -12
- package/templates/default/app/(auth)/layout.tsx +56 -0
- package/templates/default/app/(rootLayout)/layout.tsx +58 -8
- package/templates/default/app/globals.css +1 -1
- package/templates/default/components/AdminCard.tsx +16 -15
- package/templates/default/components/AdminEditPage.tsx +8 -7
- package/templates/default/components/AdminPrivilegeCard.tsx +12 -11
- package/templates/default/components/AdminsPage.tsx +5 -4
- package/templates/default/components/AnalyticsPage.tsx +8 -7
- package/templates/default/components/BrowsePage.tsx +7 -6
- package/templates/default/components/CategoryDeleteConfirmPage.tsx +12 -11
- package/templates/default/components/CategorySectionSelectInput.tsx +3 -2
- package/templates/default/components/DashboardNewPage.tsx +40 -39
- package/templates/default/components/DashboardPage.tsx +34 -33
- package/templates/default/components/DashboardPageAlt.tsx +3 -1
- package/templates/default/components/Dropzone.tsx +8 -7
- package/templates/default/components/EmailCard.tsx +12 -11
- package/templates/default/components/EmailPasswordForm.tsx +7 -6
- package/templates/default/components/EmailQuotaForm.tsx +7 -6
- package/templates/default/components/EmailsPage.tsx +6 -5
- package/templates/default/components/GalleryPhoto.tsx +6 -5
- package/templates/default/components/ItemEditPage.tsx +5 -4
- package/templates/default/components/Layout.tsx +1 -1
- package/templates/default/components/LoadingSpinners.tsx +1 -1
- package/templates/default/components/LogPage.tsx +24 -9
- package/templates/default/components/Navbar.tsx +13 -12
- package/templates/default/components/NewAdminForm.tsx +12 -11
- package/templates/default/components/NewEmailForm.tsx +11 -10
- package/templates/default/components/NewPage.tsx +6 -5
- package/templates/default/components/NewVariantComponent.tsx +6 -5
- package/templates/default/components/PhotoGallery.tsx +4 -3
- package/templates/default/components/SectionItemCard.tsx +8 -8
- package/templates/default/components/SectionItemStatusBadge.tsx +3 -2
- package/templates/default/components/SectionPage.tsx +6 -5
- package/templates/default/components/SelectInputButtons.tsx +8 -7
- package/templates/default/components/SettingsPage.tsx +18 -17
- package/templates/default/components/Sidebar.tsx +23 -15
- package/templates/default/components/SidebarDropdownItem.tsx +11 -5
- package/templates/default/components/SidebarItem.tsx +1 -0
- package/templates/default/components/VariantCard.tsx +8 -8
- package/templates/default/components/VariantEditPage.tsx +5 -4
- package/templates/default/components/analytics/BounceRate.tsx +6 -5
- package/templates/default/components/analytics/LivePageViews.tsx +8 -7
- package/templates/default/components/analytics/LiveUsersCount.tsx +3 -2
- package/templates/default/components/analytics/MonthlyPageViews.tsx +3 -2
- package/templates/default/components/analytics/TopCountries.tsx +4 -3
- package/templates/default/components/analytics/TopDevices.tsx +4 -3
- package/templates/default/components/analytics/TopMediums.tsx +4 -3
- package/templates/default/components/analytics/TopSources.tsx +4 -3
- package/templates/default/components/analytics/TotalPageViews.tsx +3 -2
- package/templates/default/components/analytics/TotalSessions.tsx +3 -2
- package/templates/default/components/analytics/TotalUniqueUsers.tsx +3 -2
- package/templates/default/components/custom/RightHomeRoomVariantCard.tsx +9 -8
- package/templates/default/components/form/Form.tsx +5 -4
- package/templates/default/components/form/FormInputElement.tsx +3 -1
- package/templates/default/components/form/helpers/_section-hot-reload.js +1 -1
- package/templates/default/components/form/inputs/DateFormInput.tsx +3 -2
- package/templates/default/components/form/inputs/DocumentFormInput.tsx +16 -15
- package/templates/default/components/form/inputs/MapFormInput.tsx +5 -4
- package/templates/default/components/form/inputs/PhotoFormInput.tsx +16 -15
- package/templates/default/components/form/inputs/SelectFormInput.tsx +3 -2
- package/templates/default/components/form/inputs/TagsFormInput.tsx +3 -2
- package/templates/default/components/form/inputs/VideoFormInput.tsx +7 -6
- package/templates/default/components/pagination/PaginationButtons.tsx +8 -6
- package/templates/default/package.json +2 -2
- package/templates/default/app/layout.tsx +0 -40
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Inter } from 'next/font/google'
|
|
2
|
-
import './globals.css'
|
|
3
|
-
import type { Metadata } from 'next'
|
|
4
|
-
import { cn } from '@/lib/utils'
|
|
5
|
-
import { ThemeProvider } from '@/components/ThemeProvider'
|
|
6
|
-
import Providers from '@/app/providers'
|
|
7
|
-
import auth from 'nextjs-cms/auth'
|
|
8
|
-
import { getCMSConfig } from 'nextjs-cms/core'
|
|
9
|
-
|
|
10
|
-
const inter = Inter({
|
|
11
|
-
subsets: ['latin'],
|
|
12
|
-
variable: '--font-sans',
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
export async function generateMetadata(): Promise<Metadata> {
|
|
16
|
-
const cmsConfig = await getCMSConfig()
|
|
17
|
-
return {
|
|
18
|
-
title: cmsConfig.ui.title,
|
|
19
|
-
description: 'nextjs-cms',
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
|
24
|
-
const session = await auth()
|
|
25
|
-
const cmsConfig = await getCMSConfig()
|
|
26
|
-
return (
|
|
27
|
-
<html lang='en' suppressHydrationWarning>
|
|
28
|
-
<body className={cn('bg-background min-h-screen font-sans antialiased', inter.variable)}>
|
|
29
|
-
<ThemeProvider
|
|
30
|
-
attribute='class'
|
|
31
|
-
defaultTheme={cmsConfig.ui.defaultTheme}
|
|
32
|
-
enableSystem
|
|
33
|
-
disableTransitionOnChange
|
|
34
|
-
>
|
|
35
|
-
<Providers session={session ?? undefined}>{children}</Providers>
|
|
36
|
-
</ThemeProvider>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
39
|
-
)
|
|
40
|
-
}
|