mirror of
https://github.com/ershisan99/www.git
synced 2025-12-18 05:19:23 +00:00
wip
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { UserStats } from '@/app/_components/user-stats'
|
import { UserStats } from '@/app/_components/user-stats'
|
||||||
import { auth } from '@/server/auth'
|
import { auth } from '@/server/auth'
|
||||||
import { HydrateClient, api } from '@/trpc/server'
|
import { HydrateClient } from '@/trpc/server'
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
const session = await auth()
|
const session = await auth()
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { PlayerGames } from '@/app/players/[id]/games'
|
|
||||||
import { UserInfo } from '@/app/players/[id]/user'
|
import { UserInfo } from '@/app/players/[id]/user'
|
||||||
import { auth } from '@/server/auth'
|
import { auth } from '@/server/auth'
|
||||||
import { HydrateClient, api } from '@/trpc/server'
|
import { HydrateClient, api } from '@/trpc/server'
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
import {
|
import { createTRPCRouter, publicProcedure } from '@/server/api/trpc'
|
||||||
createTRPCRouter,
|
|
||||||
protectedProcedure,
|
|
||||||
publicProcedure,
|
|
||||||
} from '@/server/api/trpc'
|
|
||||||
import { db } from '@/server/db'
|
import { db } from '@/server/db'
|
||||||
import { player_games, raw_history } from '@/server/db/schema'
|
import { player_games, raw_history } from '@/server/db/schema'
|
||||||
import { desc, eq } from 'drizzle-orm'
|
import { desc, eq } from 'drizzle-orm'
|
||||||
import { chunk } from 'remeda'
|
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
|
|
||||||
export const history_router = createTRPCRouter({
|
export const history_router = createTRPCRouter({
|
||||||
|
|||||||
Reference in New Issue
Block a user