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:
65
src/server/routers/_app.ts
Normal file
65
src/server/routers/_app.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import { router } from '../trpc'
|
||||
import { programRouter } from './program'
|
||||
import { roundRouter } from './round'
|
||||
import { projectRouter } from './project'
|
||||
import { userRouter } from './user'
|
||||
import { assignmentRouter } from './assignment'
|
||||
import { evaluationRouter } from './evaluation'
|
||||
import { fileRouter } from './file'
|
||||
import { exportRouter } from './export'
|
||||
import { auditRouter } from './audit'
|
||||
import { settingsRouter } from './settings'
|
||||
import { gracePeriodRouter } from './gracePeriod'
|
||||
// Phase 2 routers
|
||||
import { learningResourceRouter } from './learningResource'
|
||||
import { partnerRouter } from './partner'
|
||||
import { notionImportRouter } from './notion-import'
|
||||
import { typeformImportRouter } from './typeform-import'
|
||||
import { applicationFormRouter } from './applicationForm'
|
||||
// Phase 2B routers
|
||||
import { tagRouter } from './tag'
|
||||
import { applicantRouter } from './applicant'
|
||||
import { liveVotingRouter } from './live-voting'
|
||||
import { analyticsRouter } from './analytics'
|
||||
// Storage routers
|
||||
import { avatarRouter } from './avatar'
|
||||
import { logoRouter } from './logo'
|
||||
// Applicant system routers
|
||||
import { applicationRouter } from './application'
|
||||
import { mentorRouter } from './mentor'
|
||||
|
||||
/**
|
||||
* Root tRPC router that combines all domain routers
|
||||
*/
|
||||
export const appRouter = router({
|
||||
program: programRouter,
|
||||
round: roundRouter,
|
||||
project: projectRouter,
|
||||
user: userRouter,
|
||||
assignment: assignmentRouter,
|
||||
evaluation: evaluationRouter,
|
||||
file: fileRouter,
|
||||
export: exportRouter,
|
||||
audit: auditRouter,
|
||||
settings: settingsRouter,
|
||||
gracePeriod: gracePeriodRouter,
|
||||
// Phase 2 routers
|
||||
learningResource: learningResourceRouter,
|
||||
partner: partnerRouter,
|
||||
notionImport: notionImportRouter,
|
||||
typeformImport: typeformImportRouter,
|
||||
applicationForm: applicationFormRouter,
|
||||
// Phase 2B routers
|
||||
tag: tagRouter,
|
||||
applicant: applicantRouter,
|
||||
liveVoting: liveVotingRouter,
|
||||
analytics: analyticsRouter,
|
||||
// Storage routers
|
||||
avatar: avatarRouter,
|
||||
logo: logoRouter,
|
||||
// Applicant system routers
|
||||
application: applicationRouter,
|
||||
mentor: mentorRouter,
|
||||
})
|
||||
|
||||
export type AppRouter = typeof appRouter
|
||||
Reference in New Issue
Block a user