File tree 9 files changed +60
-30
lines changed
9 files changed +60
-30
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import NextBundleAnalyzer from '@next/bundle-analyzer'
4
4
import { withSentryConfig } from '@sentry/nextjs'
5
5
import { sentryWebpackPlugin } from '@sentry/webpack-plugin'
6
6
7
- process . title = 'Springtide (NextJS)'
7
+ process . title = 'Shiro (NextJS)'
8
8
9
9
const env = config ( ) . parsed || { }
10
10
const isProd = process . env . NODE_ENV === 'production'
Original file line number Diff line number Diff line change 1
1
'use client'
2
2
3
- import { useEffect } from 'react'
4
- import { useRouter } from 'next/navigation'
3
+ import { WiderContainer } from '~/components/layout/container/Wider'
5
4
6
5
export default function Home ( ) {
7
- const router = useRouter ( )
8
- useEffect ( ( ) => {
9
- router . push ( '/notes' )
10
- } , [ ] )
11
-
12
- return null
6
+ return < WiderContainer > 这里还没想好怎么设计</ WiderContainer >
13
7
}
Original file line number Diff line number Diff line change
1
+ import { NormalContainer } from '~/components/layout/container/Normal'
2
+
3
+ // TODO
4
+ export default ( ) => {
5
+ return < NormalContainer > TODO</ NormalContainer >
6
+ }
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -11,12 +11,19 @@ export function FaSolidCircleNotch(props: SVGProps<SVGSVGElement>) {
11
11
</ svg >
12
12
)
13
13
}
14
- export function FaSolidComment ( props : SVGProps < SVGSVGElement > ) {
14
+
15
+ export function MdiLightbulbOn20 ( props : SVGProps < SVGSVGElement > ) {
15
16
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
+ >
17
24
< path
18
25
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 "
20
27
/>
21
28
</ svg >
22
29
)
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ const PoweredBy: Component = ({ className }) => {
81
81
Mix Space
82
82
</ StyledLink >
83
83
. < 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
86
86
</ StyledLink >
87
87
.
88
88
</ span >
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import type { ReactNode } from 'react'
4
4
import {
5
5
FaSolidCircle ,
6
6
FaSolidCircleNotch ,
7
- FaSolidComment ,
8
7
FaSolidComments ,
9
8
FaSolidDotCircle ,
10
9
FaSolidFeatherAlt ,
@@ -14,6 +13,7 @@ import {
14
13
IcTwotoneSignpost ,
15
14
IonBook ,
16
15
MdiFlask ,
16
+ MdiLightbulbOn20 ,
17
17
} from '~/components/icons/menu-collection'
18
18
19
19
export interface IHeaderMenu {
@@ -79,9 +79,9 @@ export const headerMenuConfig: IHeaderMenu[] = [
79
79
path : '#' ,
80
80
subMenu : [
81
81
{
82
- title : '之言 ' ,
83
- icon : h ( FaSolidComment ) ,
84
- path : '/recently ' ,
82
+ title : '思考 ' ,
83
+ icon : h ( MdiLightbulbOn20 ) ,
84
+ path : '/thinking ' ,
85
85
} ,
86
86
{
87
87
title : '项目' ,
Original file line number Diff line number Diff line change 1
1
import { QueryClient } from '@tanstack/react-query'
2
- import { cache } from 'react'
3
2
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
You can’t perform that action at this time.
0 commit comments