chore: petrify

This commit is contained in:
Alejandro Gómez
2025-12-18 10:19:52 +01:00
parent a7dd4635dc
commit a066284825
7 changed files with 18 additions and 16 deletions

View File

@@ -131,7 +131,9 @@ export default function KindRenderer({ kind }: { kind: number }) {
<tr>
<th className="text-left p-3 font-semibold w-20">name</th>
<th className="text-left p-3 font-semibold">value</th>
<th className="text-left p-3 font-semibold">other parameters</th>
<th className="text-left p-3 font-semibold">
other parameters
</th>
</tr>
</thead>
<tbody>

View File

@@ -61,13 +61,9 @@ export default function ManPage({ cmd }: ManPageProps) {
<div className="p-6 font-mono text-sm space-y-4 max-w-4xl">
{/* Header */}
<div className="flex justify-between border-b border-border pb-2">
<span className="font-bold">
{page.name.toUpperCase()}
</span>
<span className="font-bold">{page.name.toUpperCase()}</span>
<span className="text-muted-foreground">Grimoire Manual</span>
<span className="font-bold">
{page.name.toUpperCase()}
</span>
<span className="font-bold">{page.name.toUpperCase()}</span>
</div>
{/* NAME */}
@@ -97,10 +93,10 @@ export default function ManPage({ cmd }: ManPageProps) {
<div className="ml-8 space-y-3">
{page.options.map((opt, i) => (
<div key={i}>
<div className="text-accent font-semibold">
{opt.flag}
<div className="text-accent font-semibold">{opt.flag}</div>
<div className="ml-8 text-muted-foreground">
{opt.description}
</div>
<div className="ml-8 text-muted-foreground">{opt.description}</div>
</div>
))}
</div>

View File

@@ -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";

View File

@@ -1,5 +1,5 @@
/* Prism syntax highlighting theme */
@import './styles/prism-theme.css';
@import "./styles/prism-theme.css";
@tailwind base;
@tailwind components;

View File

@@ -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)",
);
});
});

View File

@@ -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":

View File

@@ -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;