From 50cf72361ce0bf8b6b87decefc39d4818724edcc Mon Sep 17 00:00:00 2001 From: hawkinslabdev <59891413+hawkinslabdev@users.noreply.github.com> Date: Wed, 23 Sep 2026 11:41:38 +0200 Subject: [PATCH 1/2] style: apply prettier formatting Co-Authored-By: Claude Opus 5.5 --- substash/src/components/feed/Feed.solid.tsx | 3 ++- .../src/components/search/SearchResults.solid.tsx | 8 +++++++- substash/src/lib/search/query.ts | 15 +++++++++++---- substash/src/lib/utils/media-title.ts | 3 ++- 4 files changed, 22 insertions(+), 7 deletions(-) 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 { From 4dfa2e44f9cc4d5d8af34618e89f607c1677aa9c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 09:42:51 +0000 Subject: [PATCH 2/2] chore(deps-dev): bump fast-uri Bumps the npm_and_yarn group with 1 update in the /substash directory: [fast-uri](https://github.com/fastify/fast-uri). Updates `fast-uri` from 3.1.5 to 3.1.8 - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](https://github.com/fastify/fast-uri/compare/v3.1.5...v3.1.8) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.7 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- substash/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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": [ {