Refactor BumperPlaceholders and BumperFacts for improved logic and readability
Updated the BumperPlaceholders class to streamline token extraction from texts, enhancing performance and clarity. Modified BumperFacts to initialize slot titles with an empty array instead of a dictionary for better consistency. Renamed methods in BumperResolver for clarity, and refactored GridScheduleGenerator to simplify return logic. Additionally, improved the BumperLinesEditor component by implementing a keyed list for better state management and user experience.
This commit is contained in:
@@ -100,7 +100,7 @@ public sealed class BumperResolver(
|
||||
variant.Id,
|
||||
linesJson,
|
||||
posterShowId,
|
||||
Signature(template, variant.Id, linesJson, posterShowId)
|
||||
ComputeSignature(template, variant.Id, linesJson, posterShowId)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -210,7 +210,7 @@ public sealed class BumperResolver(
|
||||
/// и пары шоу в ней нет намеренно: одинаковая заставка на трёх каналах рендерится один раз, а
|
||||
/// <c>{channel}</c> в тексте разводит их сам собой.
|
||||
/// </summary>
|
||||
private static string Signature(
|
||||
private static string ComputeSignature(
|
||||
BumperTemplate template,
|
||||
Guid variantId,
|
||||
string linesJson,
|
||||
|
||||
Reference in New Issue
Block a user