Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jun 25, 2023
1 parent 36ae9bc commit 96dbd91
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 43 deletions.
54 changes: 54 additions & 0 deletions public/innei.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/thirteen.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
31 changes: 2 additions & 29 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})
Expand All @@ -127,9 +100,9 @@ export default async function RootLayout(props: Props) {
>
<Providers>
<AggregationProvider aggregationData={data} />
{/* <Hydrate state={dehydratedState}> */}

<Root>{children}</Root>
{/* </Hydrate> */}

<TocAutoScroll />
</Providers>
<ToastContainer />
Expand Down
5 changes: 2 additions & 3 deletions src/components/widgets/note/NoteTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const NoteTimelineImpl = () => {
})
const noteNid = useCurrentNoteId()

console.log(noteNid, 'noteNid')
const noteId = note?.id

const { data: timelineData } = useQuery(
Expand Down Expand Up @@ -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<{
Expand Down
15 changes: 8 additions & 7 deletions src/providers/root/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@ import { SentryProvider } from './sentry-provider'
import { SocketContainer } from './socket-provider'

const contexts: JSX.Element[] = [
<SentryProvider key="SentryProvider" />,
<ThemeProvider key="themeProvider" />,
<ReactQueryProvider key="reactQueryProvider" />,
<JotaiStoreProvider key="jotaiStoreProvider" />,

<EventProvider key="viewportProvider" />,

<PageScrollInfoProvider key="PageScrollInfoProvider" />,
<DebugProvider key="debugProvider" />,
<BalancerProvider key="balancerProvider" />,
<ModalStackProvider key="modalStackProvider" />,
]
export function Providers({ children }: PropsWithChildren) {
return (
<>
<SocketContainer />
<ProviderComposer contexts={contexts}>{children}</ProviderComposer>
<ProviderComposer contexts={contexts}>
{children}
<EventProvider key="viewportProvider" />
<SentryProvider key="SentryProvider" />
<PageScrollInfoProvider key="PageScrollInfoProvider" />
<DebugProvider key="debugProvider" />
<ModalStackProvider key="modalStackProvider" />
</ProviderComposer>
</>
)
}

1 comment on commit 96dbd91

@vercel
Copy link

@vercel vercel bot commented on 96dbd91 Jun 25, 2023

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:

springtide – ./

springtide-git-main-innei.vercel.app
springtide-innei.vercel.app
springtide.vercel.app
innei.in

Please sign in to comment.