+ {
+ type && (
+
+ 类型
+ {type.name}
+
+ )
+ }
+ {
+ fansubs && (
+
+ 字幕组
+ {fansubs.map((fansub) => (
+
+ {fansub.name}
+
+ ))}
+
+ )
+ }
+ {
+ after && (
+
+ 搜索开始于
+ {safeFormat(after, 'yyyy 年 M 月 d 日 hh:mm')}
+
+ )
+ }
+ {
+ before && (
+
+ 搜索结束于
+ {safeFormat(before, 'yyyy 年 M 月 d 日 hh:mm')}
+
+ )
+ }
+ {
+ search.length > 0 && (
+
+ {/* prettier-ignore */}
+ 标题搜索
+ {search.map((i) => (
+ {i}
+ ))}
+
+ )
+ }
+ {
+ search.length === 0 && include.length > 0 && (
+
+ {/* prettier-ignore */}
+ 标题匹配
+ {include.map((i, idx) => (
+ <>
+ {idx > 0 && |}
+ {/* prettier-ignore */}
+ {i}
+ >
+ ))}
+
+ )
+ }
+ {
+ search.length === 0 && keywords.length > 0 && (
+
+ 包含关键词
+ {keywords.map((i, idx) => (
+ <>
+ {idx > 0 && &}
+ {/* prettier-ignore */}
+ {i}
+ >
+ ))}
+
+ )
+ }
+ {
+ search.length === 0 && exclude.length > 0 && (
+
+ {/* prettier-ignore */}
+ 排除关键词
+ {exclude.map((i) => (
+ {i}
+ ))}
+
+ )
+ }
+ {/* {
+ (search.length !== 0 || include.length !== 0 || keywords.length !== 0) && (
+
+
+
+
+
+ )
+ } */}
+
+}
\ No newline at end of file
diff --git a/apps/frontend/web/app/routes/resources.$page/route.tsx b/apps/frontend/web/app/routes/resources.$page/route.tsx
index 4392baec..b37190ea 100644
--- a/apps/frontend/web/app/routes/resources.$page/route.tsx
+++ b/apps/frontend/web/app/routes/resources.$page/route.tsx
@@ -7,6 +7,8 @@ import Layout from '@/layouts/Layout';
import Resources from '@/components/Resources';
import { fetchResources } from '@/utils';
+import { Filter } from './Filter';
+
export const meta: MetaFunction = () => {
return [
{ title: 'Anime Garden 動漫花園資源網第三方镜像站' },
@@ -26,11 +28,12 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
};
export default function ResourcesIndex() {
- const { ok, resources, timestamp } = useLoaderData