Add the advanced search drawer, adaptive paging, and zoom

This commit is contained in:
Fisto
2026-09-17 07:57:26 +02:00
parent dea1724eb3
commit 5319a028e2
9 changed files with 492 additions and 159 deletions
+9
View File
@@ -106,6 +106,8 @@ export interface MediaFilterOptions {
kind?: MediaKind;
source?: string;
authorId?: string;
authorIds?: string[];
cachedOnly?: boolean;
aspect?: string;
resolution?: string;
after?: string;
@@ -484,6 +486,13 @@ export class ScrapeStore {
conditions.push("author_id = ?");
values.push(options.authorId);
}
if (options.authorIds?.length) {
conditions.push(`author_id IN (${options.authorIds.map(() => "?").join(", ")})`);
values.push(...options.authorIds);
}
if (options.cachedOnly) {
conditions.push("preview_hash IS NOT NULL");
}
if (options.after) {
conditions.push("posted_at >= ?");
values.push(options.after);