diff --git a/substash/package-lock.json b/substash/package-lock.json index e31c2b3..04f5537 100644 --- a/substash/package-lock.json +++ b/substash/package-lock.json @@ -6626,9 +6626,9 @@ } }, "node_modules/fast-uri": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.5.tgz", - "integrity": "sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==", + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz", + "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==", "dev": true, "funding": [ { diff --git a/substash/src/components/feed/Feed.solid.tsx b/substash/src/components/feed/Feed.solid.tsx index 747c055..f4989eb 100644 --- a/substash/src/components/feed/Feed.solid.tsx +++ b/substash/src/components/feed/Feed.solid.tsx @@ -340,7 +340,8 @@ function FeedInner(props: Props) { const spaNavType = sessionStorage.getItem("substash:last-nav-type"); const perfNavType = ( performance.getEntriesByType?.("navigation")[0] as - PerformanceNavigationTiming | undefined + | PerformanceNavigationTiming + | undefined )?.type; const isBackNav = spaNavType === "traverse" || perfNavType === "back_forward"; diff --git a/substash/src/components/search/SearchResults.solid.tsx b/substash/src/components/search/SearchResults.solid.tsx index 894defe..f03890a 100644 --- a/substash/src/components/search/SearchResults.solid.tsx +++ b/substash/src/components/search/SearchResults.solid.tsx @@ -26,7 +26,13 @@ import { proxyImage } from "@/lib/stash/image"; // ── Types ───────────────────────────────────────────────────────────────────── type FilterType = - "all" | "scenes" | "images" | "tags" | "performers" | "studios" | "comments"; + | "all" + | "scenes" + | "images" + | "tags" + | "performers" + | "studios" + | "comments"; interface EntityResult { stashId: string; diff --git a/substash/src/lib/search/query.ts b/substash/src/lib/search/query.ts index 8275c28..dd999a9 100644 --- a/substash/src/lib/search/query.ts +++ b/substash/src/lib/search/query.ts @@ -2,7 +2,13 @@ import { rawDb } from "@/lib/db"; import type { FeedItem } from "@/lib/stash/feed-item"; export type FilterType = - "all" | "scenes" | "images" | "tags" | "performers" | "studios" | "comments"; + | "all" + | "scenes" + | "images" + | "tags" + | "performers" + | "studios" + | "comments"; export interface SearchResult { items: FeedItem[]; @@ -247,9 +253,10 @@ export function searchComments(q: string, page: number): CommentSearchResult { .all(pattern, PER_PAGE + 1, offset); const countRow = rawDb - .prepare<[string], { n: number }>( - `SELECT COUNT(*) as n FROM comments WHERE body LIKE ? ESCAPE '\\'`, - ) + .prepare< + [string], + { n: number } + >(`SELECT COUNT(*) as n FROM comments WHERE body LIKE ? ESCAPE '\\'`) .get(pattern); const hasMore = rows.length > PER_PAGE; diff --git a/substash/src/lib/utils/media-title.ts b/substash/src/lib/utils/media-title.ts index f4a5cd6..20df8b0 100644 --- a/substash/src/lib/utils/media-title.ts +++ b/substash/src/lib/utils/media-title.ts @@ -221,7 +221,8 @@ export function formatOriginDisplay( } export type ValidationResult = - { ok: true; mode: "expression" | "script" } | { ok: false; error: string }; + | { ok: true; mode: "expression" | "script" } + | { ok: false; error: string }; /** Syntax-check a script without running it. Reports which mode it will use. */ export function validateTitleExpr(expr: string): ValidationResult {