feat(cv): qualify templates and reliable local import processing
This commit is contained in:
@@ -9,6 +9,8 @@ namespace JobTrackerApi.Models;
|
||||
public sealed class CvVariantSettings
|
||||
{
|
||||
public string ThemeId { get; set; } = "modern";
|
||||
// Missing or version 1 retains the original template output.
|
||||
public int? DesignVersion { get; set; }
|
||||
|
||||
// Theme overrides (null => use the theme's own value).
|
||||
public string? AccentColor { get; set; }
|
||||
@@ -132,6 +134,7 @@ public static class CvVariantSettingsJson
|
||||
{
|
||||
s ??= new CvVariantSettings();
|
||||
s.ThemeId = string.IsNullOrWhiteSpace(s.ThemeId) ? "modern" : s.ThemeId.Trim().ToLowerInvariant();
|
||||
s.DesignVersion = s.DesignVersion is 1 or 2 ? s.DesignVersion : null;
|
||||
s.AccentColor = NormalizeColor(s.AccentColor);
|
||||
s.TextColor = NormalizeColor(s.TextColor);
|
||||
s.MutedColor = NormalizeColor(s.MutedColor);
|
||||
|
||||
Reference in New Issue
Block a user