From a066284825d5551594bcc9d7fae703ed36f756c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Thu, 18 Dec 2025 10:19:52 +0100 Subject: [PATCH] chore: petrify --- src/components/KindRenderer.tsx | 4 +++- src/components/ManPage.tsx | 14 +++++--------- src/components/nostr/ChatView.tsx | 6 +++++- src/index.css | 2 +- src/lib/nostr-schema.test.ts | 4 ++-- src/lib/nostr-schema.ts | 2 +- src/styles/prism-theme.css | 2 +- 7 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/components/KindRenderer.tsx b/src/components/KindRenderer.tsx index 563417e..15de044 100644 --- a/src/components/KindRenderer.tsx +++ b/src/components/KindRenderer.tsx @@ -131,7 +131,9 @@ export default function KindRenderer({ kind }: { kind: number }) { name value - other parameters + + other parameters + diff --git a/src/components/ManPage.tsx b/src/components/ManPage.tsx index 2c0945d..0f7c7e9 100644 --- a/src/components/ManPage.tsx +++ b/src/components/ManPage.tsx @@ -61,13 +61,9 @@ export default function ManPage({ cmd }: ManPageProps) {
{/* Header */}
- - {page.name.toUpperCase()} - + {page.name.toUpperCase()} Grimoire Manual - - {page.name.toUpperCase()} - + {page.name.toUpperCase()}
{/* NAME */} @@ -97,10 +93,10 @@ export default function ManPage({ cmd }: ManPageProps) {
{page.options.map((opt, i) => (
-
- {opt.flag} +
{opt.flag}
+
+ {opt.description}
-
{opt.description}
))}
diff --git a/src/components/nostr/ChatView.tsx b/src/components/nostr/ChatView.tsx index 717621d..0e97a3c 100644 --- a/src/components/nostr/ChatView.tsx +++ b/src/components/nostr/ChatView.tsx @@ -6,7 +6,11 @@ import { UserName } from "./UserName"; import { RichText } from "./RichText"; import { Zap, CornerDownRight, Quote } from "lucide-react"; import { cn } from "@/lib/utils"; -import { getZapAmount, getZapSender, getTagValue } from "applesauce-core/helpers"; +import { + getZapAmount, + getZapSender, + getTagValue, +} from "applesauce-core/helpers"; import { getNip10References } from "applesauce-core/helpers/threading"; import { useNostrEvent } from "@/hooks/useNostrEvent"; diff --git a/src/index.css b/src/index.css index 0c01c30..1453f9f 100644 --- a/src/index.css +++ b/src/index.css @@ -1,5 +1,5 @@ /* Prism syntax highlighting theme */ -@import './styles/prism-theme.css'; +@import "./styles/prism-theme.css"; @tailwind base; @tailwind components; diff --git a/src/lib/nostr-schema.test.ts b/src/lib/nostr-schema.test.ts index 1eb5352..816f260 100644 --- a/src/lib/nostr-schema.test.ts +++ b/src/lib/nostr-schema.test.ts @@ -202,7 +202,7 @@ describe("nostr-schema", () => { describe("getContentTypeDescription", () => { it("should describe free content", () => { expect(getContentTypeDescription("free")).toBe( - "Free-form text or markdown" + "Free-form text or markdown", ); }); @@ -212,7 +212,7 @@ describe("nostr-schema", () => { it("should describe empty content", () => { expect(getContentTypeDescription("empty")).toBe( - "Empty (no content field)" + "Empty (no content field)", ); }); }); diff --git a/src/lib/nostr-schema.ts b/src/lib/nostr-schema.ts index c106222..f3b668d 100644 --- a/src/lib/nostr-schema.ts +++ b/src/lib/nostr-schema.ts @@ -139,7 +139,7 @@ export function parseTagStructure(tag: TagDefinition): { * Get content type description */ export function getContentTypeDescription( - contentType: "free" | "json" | "empty" + contentType: "free" | "json" | "empty", ): string { switch (contentType) { case "free": diff --git a/src/styles/prism-theme.css b/src/styles/prism-theme.css index a8fa15c..168517f 100644 --- a/src/styles/prism-theme.css +++ b/src/styles/prism-theme.css @@ -5,7 +5,7 @@ pre[class*="language-"] { color: hsl(var(--foreground)); background: none; text-shadow: none; - font-family: 'Oxygen Mono', monospace; + font-family: "Oxygen Mono", monospace; font-size: 0.75rem; line-height: 1.5; white-space: pre;