Initial commit: MOPC platform with Docker deployment setup
Full Next.js 15 platform with tRPC, Prisma, PostgreSQL, NextAuth. Includes production Dockerfile (multi-stage, port 7600), docker-compose with registry-based image pull, Gitea Actions CI workflow, nginx config for portal.monaco-opc.com, deployment scripts, and DEPLOYMENT.md guide. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
20
src/components/layouts/admin-edition-wrapper.tsx
Normal file
20
src/components/layouts/admin-edition-wrapper.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
'use client'
|
||||
|
||||
import { EditionProvider, type Edition } from '@/contexts/edition-context'
|
||||
import { Suspense, type ReactNode } from 'react'
|
||||
|
||||
export function AdminEditionWrapper({
|
||||
children,
|
||||
editions,
|
||||
}: {
|
||||
children: ReactNode
|
||||
editions: Edition[]
|
||||
}) {
|
||||
return (
|
||||
<Suspense fallback={null}>
|
||||
<EditionProvider editions={editions}>
|
||||
{children}
|
||||
</EditionProvider>
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user