refactor: Remove series-related fields and components to streamline novel management
Build and Push Reader Image / docker (push) Successful in 41s
Build and Push Reader Image / docker (push) Successful in 41s
- Eliminated seriesId and related fields from various models and components to simplify the data structure. - Updated UI components to reflect the removal of series dependencies, enhancing clarity and maintainability. - Adjusted API calls and data handling to ensure compatibility with the new structure.
This commit is contained in:
@@ -23,7 +23,6 @@ type SearchSuggestion = {
|
||||
slug: string
|
||||
authorName: string
|
||||
coverUrl?: string | null
|
||||
series?: { id: string; name: string } | null
|
||||
}
|
||||
|
||||
function roleLabel(role?: "USER" | "MOD" | "ADMIN") {
|
||||
@@ -149,11 +148,6 @@ export function Header() {
|
||||
<p className="truncate text-sm font-medium text-foreground">{item.title}</p>
|
||||
<p className="truncate text-xs text-muted-foreground">{item.authorName}</p>
|
||||
</div>
|
||||
{item.series?.name && (
|
||||
<span className="max-w-[120px] truncate text-[11px] font-medium text-primary">
|
||||
{item.series.name}
|
||||
</span>
|
||||
)}
|
||||
</button>
|
||||
))
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user