-
-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Innei <[email protected]>
- Loading branch information
Showing
9 changed files
with
60 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
'use client' | ||
|
||
import { useEffect } from 'react' | ||
import { useRouter } from 'next/navigation' | ||
import { WiderContainer } from '~/components/layout/container/Wider' | ||
|
||
export default function Home() { | ||
const router = useRouter() | ||
useEffect(() => { | ||
router.push('/notes') | ||
}, []) | ||
|
||
return null | ||
return <WiderContainer>这里还没想好怎么设计</WiderContainer> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { NormalContainer } from '~/components/layout/container/Normal' | ||
|
||
// TODO | ||
export default () => { | ||
return <NormalContainer>TODO</NormalContainer> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Metadata } from 'next' | ||
import type { PropsWithChildren } from 'react' | ||
|
||
import { NormalContainer } from '~/components/layout/container/Normal' | ||
|
||
export const metadata: Metadata = { | ||
title: '思考', | ||
} | ||
export default async function Layout(props: PropsWithChildren) { | ||
return <NormalContainer>{props.children}</NormalContainer> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use client' | ||
|
||
// TODO | ||
export default function Page() { | ||
return ( | ||
<div> | ||
<header className="prose"> | ||
<h1>思考</h1> | ||
<h3>谢谢你听我诉说</h3> | ||
</header> | ||
|
||
<main className="mt-10">TODO</main> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import { QueryClient } from '@tanstack/react-query' | ||
import { cache } from 'react' | ||
|
||
export const getQueryClient = cache( | ||
() => | ||
new QueryClient({ | ||
defaultOptions: { | ||
queries: { | ||
staleTime: 1000 * 3, | ||
cacheTime: 1000 * 3, | ||
}, | ||
}, | ||
}), | ||
) | ||
const sharedClient = new QueryClient({ | ||
defaultOptions: { | ||
queries: { | ||
staleTime: 1000 * 3, | ||
cacheTime: 1000 * 3, | ||
}, | ||
}, | ||
}) | ||
export const getQueryClient = () => sharedClient |
37be829
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
shiro – ./
shiro-git-main-innei.vercel.app
shiro-innei.vercel.app
innei.in
springtide.vercel.app