Skip to content

Commit 37be829

Browse files
committed
fix: add todo
Signed-off-by: Innei <[email protected]>
1 parent 2062db9 commit 37be829

File tree

9 files changed

+60
-30
lines changed

9 files changed

+60
-30
lines changed

next.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import NextBundleAnalyzer from '@next/bundle-analyzer'
44
import { withSentryConfig } from '@sentry/nextjs'
55
import { sentryWebpackPlugin } from '@sentry/webpack-plugin'
66

7-
process.title = 'Springtide (NextJS)'
7+
process.title = 'Shiro (NextJS)'
88

99
const env = config().parsed || {}
1010
const isProd = process.env.NODE_ENV === 'production'

src/app/page.tsx

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
'use client'
22

3-
import { useEffect } from 'react'
4-
import { useRouter } from 'next/navigation'
3+
import { WiderContainer } from '~/components/layout/container/Wider'
54

65
export default function Home() {
7-
const router = useRouter()
8-
useEffect(() => {
9-
router.push('/notes')
10-
}, [])
11-
12-
return null
6+
return <WiderContainer>这里还没想好怎么设计</WiderContainer>
137
}

src/app/preview/page.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { NormalContainer } from '~/components/layout/container/Normal'
2+
3+
// TODO
4+
export default () => {
5+
return <NormalContainer>TODO</NormalContainer>
6+
}

src/app/thinking/layout.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { Metadata } from 'next'
2+
import type { PropsWithChildren } from 'react'
3+
4+
import { NormalContainer } from '~/components/layout/container/Normal'
5+
6+
export const metadata: Metadata = {
7+
title: '思考',
8+
}
9+
export default async function Layout(props: PropsWithChildren) {
10+
return <NormalContainer>{props.children}</NormalContainer>
11+
}

src/app/thinking/page.tsx

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use client'
2+
3+
// TODO
4+
export default function Page() {
5+
return (
6+
<div>
7+
<header className="prose">
8+
<h1>思考</h1>
9+
<h3>谢谢你听我诉说</h3>
10+
</header>
11+
12+
<main className="mt-10">TODO</main>
13+
</div>
14+
)
15+
}

src/components/icons/menu-collection.tsx

+10-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ export function FaSolidCircleNotch(props: SVGProps<SVGSVGElement>) {
1111
</svg>
1212
)
1313
}
14-
export function FaSolidComment(props: SVGProps<SVGSVGElement>) {
14+
15+
export function MdiLightbulbOn20(props: SVGProps<SVGSVGElement>) {
1516
return (
16-
<svg width="1em" height="1em" viewBox="0 0 512 512" {...props}>
17+
<svg
18+
xmlns="http://www.w3.org/2000/svg"
19+
width="1em"
20+
height="1em"
21+
viewBox="0 0 24 24"
22+
{...props}
23+
>
1724
<path
1825
fill="currentColor"
19-
d="M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4c32.7 12.3 69 19.4 107.4 19.4c141.4 0 256-93.1 256-208S397.4 32 256 32z"
26+
d="M1 11h3v2H1v-2m3.9-7.5L3.5 4.9L5.6 7L7 5.6L4.9 3.5M13 1h-2v3h2V1m7 10v2h3v-2h-3M10 22c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-1h-4v1m9.1-18.5L17 5.6L18.4 7l2.1-2.1l-1.4-1.4M18 12c0 2.2-1.2 4.2-3 5.2V19c0 .6-.4 1-1 1h-4c-.6 0-1-.4-1-1v-1.8c-1.8-1-3-3-3-5.2c0-3.3 2.7-6 6-6s6 2.7 6 6m-2 0c0-2.21-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4Z"
2027
/>
2128
</svg>
2229
)

src/components/layout/footer/FooterInfo.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ const PoweredBy: Component = ({ className }) => {
8181
Mix Space
8282
</StyledLink>
8383
. <Divider />
84-
<StyledLink href="https://github.com/innei/Springtide" target="_blank">
85-
Springtide
84+
<StyledLink href="https://github.com/innei/Shiro" target="_blank">
85+
Shiro
8686
</StyledLink>
8787
.
8888
</span>

src/components/layout/header/config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { ReactNode } from 'react'
44
import {
55
FaSolidCircle,
66
FaSolidCircleNotch,
7-
FaSolidComment,
87
FaSolidComments,
98
FaSolidDotCircle,
109
FaSolidFeatherAlt,
@@ -14,6 +13,7 @@ import {
1413
IcTwotoneSignpost,
1514
IonBook,
1615
MdiFlask,
16+
MdiLightbulbOn20,
1717
} from '~/components/icons/menu-collection'
1818

1919
export interface IHeaderMenu {
@@ -79,9 +79,9 @@ export const headerMenuConfig: IHeaderMenu[] = [
7979
path: '#',
8080
subMenu: [
8181
{
82-
title: '之言',
83-
icon: h(FaSolidComment),
84-
path: '/recently',
82+
title: '思考',
83+
icon: h(MdiLightbulbOn20),
84+
path: '/thinking',
8585
},
8686
{
8787
title: '项目',

src/utils/query-client.server.ts

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import { QueryClient } from '@tanstack/react-query'
2-
import { cache } from 'react'
32

4-
export const getQueryClient = cache(
5-
() =>
6-
new QueryClient({
7-
defaultOptions: {
8-
queries: {
9-
staleTime: 1000 * 3,
10-
cacheTime: 1000 * 3,
11-
},
12-
},
13-
}),
14-
)
3+
const sharedClient = new QueryClient({
4+
defaultOptions: {
5+
queries: {
6+
staleTime: 1000 * 3,
7+
cacheTime: 1000 * 3,
8+
},
9+
},
10+
})
11+
export const getQueryClient = () => sharedClient

0 commit comments

Comments
 (0)