1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

release 0.3.4

This commit is contained in:
songjunxi
2023-11-10 14:59:47 +08:00
parent 2b456637e9
commit 602f2059fd
161 changed files with 9921 additions and 347 deletions

View File

@@ -0,0 +1,27 @@
import Providers from "@/app/providers";
import { siteConfig } from "@/config/site";
import "@/styles/globals.css";
import { Metadata } from "next";
import { ReactNode } from "react";
export const metadata: Metadata = {
title: "Feedback | Inke",
description: siteConfig.description,
keywords: siteConfig.keywords,
authors: siteConfig.authors,
creator: siteConfig.creator,
themeColor: siteConfig.themeColor,
icons: siteConfig.icons,
metadataBase: siteConfig.metadataBase,
openGraph: siteConfig.openGraph,
twitter: siteConfig.twitter,
manifest: siteConfig.manifest,
};
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<>
<Providers>{children}</Providers>
</>
);
}

View File

@@ -0,0 +1,19 @@
import { getServerSession } from "next-auth";
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
import Nav from "@/ui/layout/nav";
import Wrapper from "./wrapper";
import Footer from "@/ui/layout/footer";
export default async function Page() {
const session = await getServerSession(authOptions);
return (
<>
<div className="pt-16">
{/* @ts-expect-error Server Component */}
<Nav />
<Wrapper session={session} />
<Footer />
</div>
</>
);
}

View File

@@ -0,0 +1,28 @@
"use client";
import { Session } from "next-auth";
import Giscus from "@giscus/react";
export default function Wrapper({ session }: { session: Session | null }) {
return (
<>
<div className="mx-auto min-h-screen max-w-3xl px-6">
<Giscus
id="feedback"
repo="yesmore/inke"
repoId="R_kgDOKYZChQ"
category="Q&A"
categoryId="DIC_kwDOKYZChc4CZ8wk"
mapping="title"
term="Welcome to Inke!"
reactionsEnabled="1"
emitMetadata="0"
inputPosition="top"
theme="light"
lang="en"
loading="lazy"
/>
</div>
</>
);
}