@nextsparkjs/core 0.1.0-beta.59 → 0.1.0-beta.60
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/dist/styles/classes.json
CHANGED
package/package.json
CHANGED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
3
|
-
* Generated by @nextsparkjs/core
|
|
4
|
-
* Regenerate with: npx nextspark generate
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import type { Metadata } from "next"
|
|
8
|
-
import { Geist, Geist_Mono } from "next/font/google"
|
|
9
|
-
import { NextIntlClientProvider } from 'next-intl'
|
|
10
|
-
import { getMessages } from 'next-intl/server'
|
|
11
|
-
|
|
12
|
-
import "./globals.css"
|
|
13
|
-
import { QueryProvider } from "@nextsparkjs/core/providers/query-provider"
|
|
14
|
-
import { ThemeProvider as NextThemeProvider } from "@nextsparkjs/core/providers/theme-provider"
|
|
15
|
-
import { ThemeProvider as CustomThemeProvider } from "@nextsparkjs/core/lib/theme/ThemeProvider"
|
|
16
|
-
import { TeamProvider } from "@nextsparkjs/core/contexts/TeamContext"
|
|
17
|
-
import { SubscriptionProvider } from "@nextsparkjs/core/contexts/SubscriptionContext"
|
|
18
|
-
import { getUserLocale } from '@nextsparkjs/core/lib/locale'
|
|
19
|
-
import { Toaster } from "@nextsparkjs/core/components/ui/sonner"
|
|
20
|
-
import { TranslationContextManager } from "@nextsparkjs/core/providers/TranslationContextManager"
|
|
21
|
-
import { PluginService } from '@nextsparkjs/core/lib/services'
|
|
22
|
-
import { getMetadataOrDefault } from '@nextsparkjs/core/lib/template-resolver'
|
|
23
|
-
import { getDefaultThemeMode } from '@nextsparkjs/core/lib/theme/get-default-theme-mode'
|
|
24
|
-
|
|
25
|
-
const geistSans = Geist({
|
|
26
|
-
variable: "--font-geist-sans",
|
|
27
|
-
subsets: ["latin"],
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
const geistMono = Geist_Mono({
|
|
31
|
-
variable: "--font-geist-mono",
|
|
32
|
-
subsets: ["latin"],
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
const defaultMetadata: Metadata = {
|
|
36
|
-
title: "<%= config.app?.name || 'NextSpark App' %>",
|
|
37
|
-
description: "<%= config.app?.description || 'Built with NextSpark' %>",
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const metadata: Metadata = getMetadataOrDefault(
|
|
41
|
-
'app/layout.tsx',
|
|
42
|
-
defaultMetadata
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
let pluginsInitialized = false
|
|
46
|
-
|
|
47
|
-
export default async function RootLayout({
|
|
48
|
-
children,
|
|
49
|
-
}: Readonly<{
|
|
50
|
-
children: React.ReactNode
|
|
51
|
-
}>) {
|
|
52
|
-
if (!pluginsInitialized) {
|
|
53
|
-
await PluginService.initializeAll()
|
|
54
|
-
pluginsInitialized = true
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const locale = await getUserLocale()
|
|
58
|
-
const messages = await getMessages({ locale })
|
|
59
|
-
const defaultTheme = await getDefaultThemeMode()
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<html lang={locale} suppressHydrationWarning>
|
|
63
|
-
<body
|
|
64
|
-
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
|
65
|
-
>
|
|
66
|
-
<NextIntlClientProvider messages={messages}>
|
|
67
|
-
<NextThemeProvider
|
|
68
|
-
attribute="class"
|
|
69
|
-
defaultTheme={defaultTheme}
|
|
70
|
-
enableSystem
|
|
71
|
-
disableTransitionOnChange
|
|
72
|
-
>
|
|
73
|
-
<CustomThemeProvider>
|
|
74
|
-
<QueryProvider>
|
|
75
|
-
<TeamProvider>
|
|
76
|
-
<SubscriptionProvider>
|
|
77
|
-
<TranslationContextManager />
|
|
78
|
-
<main>{children}</main>
|
|
79
|
-
<Toaster position="bottom-left" />
|
|
80
|
-
</SubscriptionProvider>
|
|
81
|
-
</TeamProvider>
|
|
82
|
-
</QueryProvider>
|
|
83
|
-
</CustomThemeProvider>
|
|
84
|
-
</NextThemeProvider>
|
|
85
|
-
</NextIntlClientProvider>
|
|
86
|
-
</body>
|
|
87
|
-
</html>
|
|
88
|
-
)
|
|
89
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
3
|
-
* Generated by @nextsparkjs/core
|
|
4
|
-
* Regenerate with: npx nextspark generate
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import type { Metadata } from "next"
|
|
8
|
-
import { Geist, Geist_Mono } from "next/font/google"
|
|
9
|
-
import { NextIntlClientProvider } from 'next-intl'
|
|
10
|
-
import { getMessages } from 'next-intl/server'
|
|
11
|
-
|
|
12
|
-
import "./globals.css"
|
|
13
|
-
import { QueryProvider } from "@nextsparkjs/core/providers/query-provider"
|
|
14
|
-
import { ThemeProvider as NextThemeProvider } from "@nextsparkjs/core/providers/theme-provider"
|
|
15
|
-
import { ThemeProvider as CustomThemeProvider } from "@nextsparkjs/core/lib/theme/ThemeProvider"
|
|
16
|
-
import { TeamProvider } from "@nextsparkjs/core/contexts/TeamContext"
|
|
17
|
-
import { SubscriptionProvider } from "@nextsparkjs/core/contexts/SubscriptionContext"
|
|
18
|
-
import { getUserLocale } from '@nextsparkjs/core/lib/locale'
|
|
19
|
-
import { Toaster } from "@nextsparkjs/core/components/ui/sonner"
|
|
20
|
-
import { TranslationContextManager } from "@nextsparkjs/core/providers/TranslationContextManager"
|
|
21
|
-
import { PluginService } from '@nextsparkjs/core/lib/services'
|
|
22
|
-
import { getMetadataOrDefault } from '@nextsparkjs/core/lib/template-resolver'
|
|
23
|
-
import { getDefaultThemeMode } from '@nextsparkjs/core/lib/theme/get-default-theme-mode'
|
|
24
|
-
|
|
25
|
-
const geistSans = Geist({
|
|
26
|
-
variable: "--font-geist-sans",
|
|
27
|
-
subsets: ["latin"],
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
const geistMono = Geist_Mono({
|
|
31
|
-
variable: "--font-geist-mono",
|
|
32
|
-
subsets: ["latin"],
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
const defaultMetadata: Metadata = {
|
|
36
|
-
title: "<%= config.app?.name || 'NextSpark App' %>",
|
|
37
|
-
description: "<%= config.app?.description || 'Built with NextSpark' %>",
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const metadata: Metadata = getMetadataOrDefault(
|
|
41
|
-
'app/layout.tsx',
|
|
42
|
-
defaultMetadata
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
let pluginsInitialized = false
|
|
46
|
-
|
|
47
|
-
export default async function RootLayout({
|
|
48
|
-
children,
|
|
49
|
-
}: Readonly<{
|
|
50
|
-
children: React.ReactNode
|
|
51
|
-
}>) {
|
|
52
|
-
if (!pluginsInitialized) {
|
|
53
|
-
await PluginService.initializeAll()
|
|
54
|
-
pluginsInitialized = true
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const locale = await getUserLocale()
|
|
58
|
-
const messages = await getMessages({ locale })
|
|
59
|
-
const defaultTheme = await getDefaultThemeMode()
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<html lang={locale} suppressHydrationWarning>
|
|
63
|
-
<body
|
|
64
|
-
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
|
65
|
-
>
|
|
66
|
-
<NextIntlClientProvider messages={messages}>
|
|
67
|
-
<NextThemeProvider
|
|
68
|
-
attribute="class"
|
|
69
|
-
defaultTheme={defaultTheme}
|
|
70
|
-
enableSystem
|
|
71
|
-
disableTransitionOnChange
|
|
72
|
-
>
|
|
73
|
-
<CustomThemeProvider>
|
|
74
|
-
<QueryProvider>
|
|
75
|
-
<TeamProvider>
|
|
76
|
-
<SubscriptionProvider>
|
|
77
|
-
<TranslationContextManager />
|
|
78
|
-
<main>{children}</main>
|
|
79
|
-
<Toaster position="bottom-left" />
|
|
80
|
-
</SubscriptionProvider>
|
|
81
|
-
</TeamProvider>
|
|
82
|
-
</QueryProvider>
|
|
83
|
-
</CustomThemeProvider>
|
|
84
|
-
</NextThemeProvider>
|
|
85
|
-
</NextIntlClientProvider>
|
|
86
|
-
</body>
|
|
87
|
-
</html>
|
|
88
|
-
)
|
|
89
|
-
}
|