chore: init

This commit is contained in:
Kuizuo
2024-04-26 02:12:44 +08:00
commit 5231e5f565
298 changed files with 44435 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
import { handlers } from '~/auth'
export const { GET, POST } = handlers
Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

+18
View File
@@ -0,0 +1,18 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
+30
View File
@@ -0,0 +1,30 @@
import type { Metadata } from "next"
import { Inter } from "next/font/google"
import "./globals.css"
import Header from "~/components/header"
import { TRPCReactProvider } from "~/trpc/react"
import { auth } from "~/auth"
const inter = Inter({ subsets: ["latin"] })
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
}
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="en">
<body className={inter.className}>
<TRPCReactProvider session={await auth()}>
<Header />
{children}
</TRPCReactProvider>
</body>
</html>
)
}
+15
View File
@@ -0,0 +1,15 @@
"use client"
import { Suspense } from "react";
import { auth } from "~/auth";
import { TodoList } from "~/components/todo-list";
export default function Home() {
return <>
<Suspense fallback={null}>
<TodoList></TodoList>
</Suspense>
</>
}