From 96dbd91d3bf26bef70119a9910e9bb71e1a49f58 Mon Sep 17 00:00:00 2001 From: Innei Date: Sun, 25 Jun 2023 23:55:25 +0800 Subject: [PATCH] chore: cleanup Signed-off-by: Innei --- public/innei.svg | 54 ++++++++++++++++++++ public/next.svg | 1 - public/thirteen.svg | 1 - public/vercel.svg | 1 - src/app.config.ts | 2 +- src/app/layout.tsx | 31 +---------- src/components/widgets/note/NoteTimeline.tsx | 5 +- src/providers/root/index.tsx | 15 +++--- 8 files changed, 67 insertions(+), 43 deletions(-) create mode 100644 public/innei.svg delete mode 100644 public/next.svg delete mode 100644 public/thirteen.svg delete mode 100644 public/vercel.svg diff --git a/public/innei.svg b/public/innei.svg new file mode 100644 index 0000000000..618f4f052d --- /dev/null +++ b/public/innei.svg @@ -0,0 +1,54 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/public/next.svg b/public/next.svg deleted file mode 100644 index 5174b28c56..0000000000 --- a/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/thirteen.svg b/public/thirteen.svg deleted file mode 100644 index 8977c1bd12..0000000000 --- a/public/thirteen.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index d2f8422273..0000000000 --- a/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/app.config.ts b/src/app.config.ts index 418ae7ee1d..49bab895e6 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -5,7 +5,7 @@ export const appConfig = { ? 'https://innei.ren' : 'http://localhost:2323', - favicon: 'https://cdn.innei.ren/github_innei.svg', + favicon: '/innei.svg', }, module: { diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 25f5e1815d..b008c71c35 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -87,33 +87,6 @@ export default async function RootLayout(props: Props) { const queryClient = getQueryClient() - // const dehydratedState = dehydrate(queryClient, { - // shouldDehydrateQuery: (query) => { - // if (query.state.error) return false - // if (!query.meta) return true - // const { - // shouldHydration, - // hydrationRoutePath, - // skipHydration, - // forceHydration, - // } = query.meta - - // if (forceHydration) return true - // if (hydrationRoutePath) { - // const pathname = headers().get(REQUEST_PATHNAME) - - // if (pathname === query.meta?.hydrationRoutePath) { - // if (!shouldHydration) return true - // return (shouldHydration as Function)(query.state.data as any) - // } - // } - - // if (skipHydration) return false - - // return (shouldHydration as Function)?.(query.state.data as any) ?? false - // }, - // }) - const data = await queryClient.fetchQuery({ ...queries.aggregation.root(), }) @@ -127,9 +100,9 @@ export default async function RootLayout(props: Props) { > - {/* */} + {children} - {/* */} + diff --git a/src/components/widgets/note/NoteTimeline.tsx b/src/components/widgets/note/NoteTimeline.tsx index a8483beb5e..426b0a3496 100644 --- a/src/components/widgets/note/NoteTimeline.tsx +++ b/src/components/widgets/note/NoteTimeline.tsx @@ -39,7 +39,6 @@ const NoteTimelineImpl = () => { }) const noteNid = useCurrentNoteId() - console.log(noteNid, 'noteNid') const noteId = note?.id const { data: timelineData } = useQuery( @@ -99,10 +98,10 @@ const styles = tv({ }) const initialLi: Target = { - filter: 'blur(10px)', + opacity: 0.0001, } const animateLi: TargetAndTransition = { - filter: 'blur(0px)', + opacity: 1, } const MemoedItem = memo<{ diff --git a/src/providers/root/index.tsx b/src/providers/root/index.tsx index 3051b273a0..a749aceca6 100644 --- a/src/providers/root/index.tsx +++ b/src/providers/root/index.tsx @@ -15,23 +15,24 @@ import { SentryProvider } from './sentry-provider' import { SocketContainer } from './socket-provider' const contexts: JSX.Element[] = [ - , , , , - , - - , - , , - , ] export function Providers({ children }: PropsWithChildren) { return ( <> - {children} + + {children} + + + + + + ) }