💄 Optimize posts

This commit is contained in:
2025-09-24 00:04:13 +08:00
parent 8ce154eef2
commit 42f1d42506
11 changed files with 15973 additions and 39 deletions

View File

@@ -60,7 +60,7 @@ export interface SnPost {
awardedScore: number;
reactionsCount: Record<string, number>;
repliesCount: number;
reactionsMade: Record<string, unknown>;
reactionsMade: Record<string, boolean>;
repliedGone: boolean;
forwardedGone: boolean;
repliedPostId: string | null;

18
app/types/marked-katex.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
declare module 'marked-katex' {
interface Options {
throwOnError?: boolean
errorColor?: string
displayMode?: boolean
leqno?: boolean
fleqn?: boolean
macros?: Record<string, string>
colorIsTextColor?: boolean
strict?: boolean | 'ignore' | 'warn' | 'error'
trust?: boolean | ((context: { command: string; url: string; protocol: string }) => boolean)
output?: 'html' | 'mathml' | 'htmlAndMathml'
}
function markedKatex(options?: Options): any
export default markedKatex
}