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
+13
View File
@@ -635,6 +635,9 @@ export class MediaService {
source?: string;
channelId?: string;
authorId?: string;
authorIds?: string[];
origin?: "dm" | "guild";
cachedOnly?: boolean;
aspect?: string;
resolution?: string;
after?: string;
@@ -751,6 +754,9 @@ export class MediaService {
scrapeId?: string;
channelId?: string;
authorId?: string;
authorIds?: string[];
origin?: "dm" | "guild";
cachedOnly?: boolean;
aspect?: string;
resolution?: string;
after?: string;
@@ -762,6 +768,8 @@ export class MediaService {
if (meta.state === "deleted") continue;
if (options.scrapeId && meta.id !== options.scrapeId) continue;
if (options.channelId && meta.channelId !== options.channelId) continue;
if (options.origin === "dm" && meta.guildId) continue;
if (options.origin === "guild" && !meta.guildId) continue;
const store = new ScrapeStore(scrapeDir(this.rootDir, meta.id));
try {
@@ -772,6 +780,8 @@ export class MediaService {
kind: options.kind,
source: options.source,
authorId: options.authorId,
authorIds: options.authorIds,
cachedOnly: options.cachedOnly,
aspect: options.aspect,
resolution: options.resolution,
after: options.after,
@@ -820,6 +830,9 @@ export class MediaService {
scrapeId?: string;
channelId?: string;
authorId?: string;
authorIds?: string[];
origin?: "dm" | "guild";
cachedOnly?: boolean;
aspect?: string;
resolution?: string;
after?: string;