Initial reader-api backend extracted from reader

This commit is contained in:
2026-03-24 13:55:10 +07:00
parent 56f8f5ccfc
commit 24f070d14e
69 changed files with 12167 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
export function getNovelStatusBadgeClass(status: string): string {
const normalized = status.trim().toLowerCase()
if (normalized.includes("hoàn")) {
return "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-300"
}
if (normalized.includes("tạm")) {
return "bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300"
}
if (normalized.includes("drop") || normalized.includes("hủy") || normalized.includes("cancel")) {
return "bg-rose-100 text-rose-700 dark:bg-rose-900/30 dark:text-rose-300"
}
return "bg-sky-100 text-sky-700 dark:bg-sky-900/30 dark:text-sky-300"
}