From f4d6a9a280c4c28b12af55fff0c21ab2d640edca Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 23 Apr 2026 21:31:38 -0400 Subject: [PATCH] web: cleanup silly stuff --- web/src/components/form/BoardRowEditor.tsx | 10 +-- web/src/lib/alerts.ts | 6 ++ web/src/lib/threadCache.ts | 79 +++++++++++++++++++ web/src/pages/BBS.tsx | 7 +- web/src/pages/Board.tsx | 9 +-- web/src/pages/News.tsx | 7 +- web/src/pages/SysopCreate.tsx | 6 +- web/src/pages/SysopEdit.tsx | 6 +- web/src/pages/SysopModerate.tsx | 26 +++--- web/src/pages/Thread.tsx | 92 +++------------------- 10 files changed, 129 insertions(+), 119 deletions(-) create mode 100644 web/src/lib/alerts.ts create mode 100644 web/src/lib/threadCache.ts diff --git a/web/src/components/form/BoardRowEditor.tsx b/web/src/components/form/BoardRowEditor.tsx index 7ac090a..58892ac 100644 --- a/web/src/components/form/BoardRowEditor.tsx +++ b/web/src/components/form/BoardRowEditor.tsx @@ -4,7 +4,7 @@ import * as limits from "../../lib/limits"; export interface BoardRow { slug: string; name: string; - desc: string; + description: string; } interface BoardRowEditorProps { @@ -27,7 +27,7 @@ export default function BoardRowEditor({

- One board per row: slug, name, description + One board per row: slug, name, descriptionription

{boards.map((board, i) => ( @@ -46,8 +46,8 @@ export default function BoardRowEditor({ className="w-1/3!" /> updateBoard(i, "desc", e.target.value)} + value={board.description} + onChange={(e) => updateBoard(i, "description", e.target.value)} placeholder="Description" maxLength={limits.BOARD_DESCRIPTION} className="flex-1!" @@ -57,7 +57,7 @@ export default function BoardRowEditor({