feat: добавить новый backend и cabinet
- добавлен новый Nest backend для auth, projects и project access tokens - добавлена control-plane схема БД и миграция Drizzle - перенесён старый backend в old-backend - добавлен React/Vite cabinet с auth-only входом и Mantine layout - обновлены workspace scripts и lockfile
This commit is contained in:
2
apps/cabinet/src/infra/theme/index.ts
Normal file
2
apps/cabinet/src/infra/theme/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { ThemeProvider } from './theme-provider'
|
||||
export type { ThemeProviderProps } from './types/theme-provider-props.type'
|
||||
22
apps/cabinet/src/infra/theme/theme-provider.tsx
Normal file
22
apps/cabinet/src/infra/theme/theme-provider.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { MantineProvider } from '@mantine/core'
|
||||
import { Notifications } from '@mantine/notifications'
|
||||
|
||||
import type { ThemeProviderProps } from './types/theme-provider-props.type'
|
||||
|
||||
/**
|
||||
* Провайдер визуальной темы кабинета.
|
||||
*
|
||||
* Используется для:
|
||||
* - подключения Mantine theme
|
||||
* - подключения контейнера уведомлений
|
||||
*/
|
||||
export const ThemeProvider = (props: ThemeProviderProps) => {
|
||||
const { children } = props
|
||||
|
||||
return (
|
||||
<MantineProvider defaultColorScheme="light">
|
||||
<Notifications position="top-right" />
|
||||
{children}
|
||||
</MantineProvider>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { ReactNode } from 'react'
|
||||
|
||||
/**
|
||||
* Пропсы ThemeProvider.
|
||||
*/
|
||||
export type ThemeProviderProps = {
|
||||
/** Контент приложения. */
|
||||
children: ReactNode
|
||||
}
|
||||
Reference in New Issue
Block a user