← Về thư mục
frontend/src/features/send/candidate.ts
- LiveWrap · type · L26-L33 — type LiveWrap = { wrap?: HTMLElement; md?: HTMLElement; text?: string; full?: string; _stableAt?: number; _stableHtml?: string; };
- asRecord · function · L35-L37 — function asRecord(value: unknown): Record
- reviewTruthFrom · function · L39-L48 — function reviewTruthFrom(value: unknown): string
- setReviewBadge · function · L55-L68 — function setReviewBadge( node: HTMLElement | null | undefined, status: string, userTruth?: unknown, ): boolean
- setLiveReviewBadge · function · L70-L73 — function setLiveReviewBadge(status: string, userTruth?: unknown): boolean
- markCandidateReady · function · L75-L89 — function markCandidateReady(value: unknown): boolean
- discardDuplicateLiveCandidate · function · L91-L103 — function discardDuplicateLiveCandidate(stored: HTMLElement, value: unknown): void
- candidateReplacementText · function · L105-L109 — function candidateReplacementText(value: unknown): string
- candidateReplacementCommitted · function · L111-L124 — function candidateReplacementCommitted(value: unknown): boolean
- replaceMessageAnswer · function · L131-L163 — function replaceMessageAnswer(node: HTMLElement | null | undefined, text: string): boolean
- resyncFid · function · L165-L168 — function resyncFid(fid: unknown): void
- CandidateResolution · type · L170-L174 — type CandidateResolution = { targetFound: boolean; replacementApplied: boolean; badgeApplied: boolean; };
- applyCandidateResolution · function · L176-L213 — function applyCandidateResolution(value: unknown, fid?: unknown): CandidateResolution
- applyFinalReviewStatus · function · L215-L232 — function applyFinalReviewStatus(value: unknown, fid?: unknown): boolean