Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Mar 3, 2025
1 parent b62c49a commit 7640bdb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions packages/index/src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const IndexLayout: React.FC<PropsWithChildren<any>> = (props) => {
} else {
header.classList.remove('fixed-header')
}
}, 200)
}, 100)

$root.addEventListener('scroll', scrollHandler)
return () => {
Expand Down Expand Up @@ -68,7 +68,13 @@ const LayoutRoute = ({ component: Component, layout: Layout, children, ...rest }
return (
<Layout>
<Suspense fallback={<Loading />}>
{Component ? <Component {...params} /> : typeof children === 'function' ? children(params) : children}
{Component ? (
<Component {...params} />
) : typeof children === 'function' ? (
children(params)
) : (
children
)}
</Suspense>
</Layout>
)
Expand All @@ -77,9 +83,13 @@ const LayoutRoute = ({ component: Component, layout: Layout, children, ...rest }
)
}

const IndexRoute = ({ ...rest }: Omit<LayoutRouteProps, 'layout'>) => <LayoutRoute {...rest} layout={IndexLayout} />
const IndexRoute = ({ ...rest }: Omit<LayoutRouteProps, 'layout'>) => (
<LayoutRoute {...rest} layout={IndexLayout} />
)

const DefaultRoute = ({ ...rest }: Omit<LayoutRouteProps, 'layout'>) => <LayoutRoute {...rest} layout={DefaultLayout} />
const DefaultRoute = ({ ...rest }: Omit<LayoutRouteProps, 'layout'>) => (
<LayoutRoute {...rest} layout={DefaultLayout} />
)

function Loading() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/index/src/enime.adp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const clicliAdapter = (item: any) => {
}
}

const blackList = [3421, 31, 786, 3880, 2617, 4087, 4086, 620, 3062]
const blackList = [3421, 31, 786, 3880, 4087, 4086, 620, 3062, 4917]

export const cliclisAdapter = (data: any[] | null) =>
data?.filter((it) => !blackList.includes(it.id) && it.videos).map(clicliAdapter) || []

0 comments on commit 7640bdb

Please sign in to comment.