Add audience categorization for shows: implement ShowAudience type, update related API endpoints, and enhance frontend components for audience selection and display. Modify data structures to support audience information in show creation and retrieval processes.
This commit is contained in:
@@ -72,11 +72,15 @@ export type MediaStatsDto = {
|
||||
// ── Библиотека (шоу) ───────────────────────────────────────────────────────
|
||||
export type ShowKind = 'Series' | 'Single'
|
||||
|
||||
/** Категория аудитории: обычное / детское / взрослое. */
|
||||
export type ShowAudience = 'General' | 'Kids' | 'Adult'
|
||||
|
||||
export type ShowSummaryDto = {
|
||||
id: string
|
||||
name: string
|
||||
originalName: string | null
|
||||
kind: ShowKind
|
||||
audience: ShowAudience
|
||||
episodeCount: number
|
||||
seasonCount: number
|
||||
year: number | null
|
||||
@@ -121,6 +125,7 @@ export type ShowDto = {
|
||||
name: string
|
||||
originalName: string | null
|
||||
kind: ShowKind
|
||||
audience: ShowAudience
|
||||
description: string | null
|
||||
metadataProvider: string | null
|
||||
metadataExternalId: string | null
|
||||
|
||||
@@ -196,6 +196,8 @@ const resources = {
|
||||
originalName: 'Оригинальное название (eng)',
|
||||
kind: 'Тип',
|
||||
kinds: { Series: 'Сериал', Single: 'Полнометражка' },
|
||||
audience: 'Категория',
|
||||
audiences: { General: 'Обычное', Kids: 'Детское', Adult: 'Взрослое' },
|
||||
seasons: 'Сезоны',
|
||||
loadedSeasons: 'Загружены сезоны',
|
||||
episodes: 'Серии',
|
||||
@@ -576,6 +578,8 @@ const resources = {
|
||||
originalName: 'Original name (eng)',
|
||||
kind: 'Kind',
|
||||
kinds: { Series: 'Series', Single: 'Movie' },
|
||||
audience: 'Category',
|
||||
audiences: { General: 'General', Kids: 'Kids', Adult: 'Adult' },
|
||||
seasons: 'Seasons',
|
||||
loadedSeasons: 'Loaded seasons',
|
||||
episodes: 'Episodes',
|
||||
|
||||
Reference in New Issue
Block a user