4f04f6bf75
Render engine - Add Remotion (code-based) as a 2nd render engine alongside After Effects. node-agent dispatches on Job.Engine; RunRemotion maps bindings -> --props, renders native then ffmpeg-scales to the quality tier (aspect-preserving). - content.projects.render_engine + render_remotion_comp (migration 32); render-svc claim resolves engine and routes (skips .aep for Remotion). - Admin TemplatesAdmin gains an engine picker + Remotion composition id field. Template pack (services/remotion) - 16 branded, Persian (Vazirmatn), color- and text-editable templates, each in 3 aspects (16:9 / 1:1 / 9:16): LogoMotion, Opener, InstaPromo, YouTubeIntro, Slideshow, HappyBirthday, SalePromo, QuoteCard, EventInvite, Countdown, GlitterReveal (editable logo image), NowruzGreeting (animated characters), and 4 cinematic 3D templates via @remotion/three (Hero3D, Nowruz3D, Birthday3D, Promo3D) with reflections + bloom/DOF/vignette. - scripts/seed_remotion_templates.py seeds containers/projects/scenes/colors. Pricing - Rewrite /pricing to the seconds-based model (charge = length x resolution), data-driven from /v1/plans, Toman, broker checkout. Coming-soon - Persian experimental-build overlay on all pages (launch date + countdown). Fixes - middleware matcher bypasses all static asset paths; catalog mapping passes cover image + preview video so real thumbnails render. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
122 lines
4.6 KiB
C#
122 lines
4.6 KiB
C#
using FlatRender.ContentSvc.Domain.Enums;
|
|
|
|
namespace FlatRender.ContentSvc.Domain.Entities;
|
|
|
|
public class ProjectContainer
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid? TenantId { get; set; }
|
|
|
|
public string Slug { get; set; } = default!;
|
|
public string Name { get; set; } = default!;
|
|
public string? Description { get; set; }
|
|
public string? Keywords { get; set; }
|
|
public string? NewsText { get; set; }
|
|
|
|
public string? Image { get; set; }
|
|
public string? Demo { get; set; }
|
|
public string? FullDemo { get; set; }
|
|
public string? MiniDemo { get; set; }
|
|
public string? DemoScriptTag { get; set; }
|
|
|
|
public bool IsPublished { get; set; }
|
|
public bool IsPremium { get; set; }
|
|
public bool IsMockup { get; set; }
|
|
public ChooseMode PrimaryMode { get; set; } = ChooseMode.FLEXIBLE;
|
|
|
|
public decimal? RateAvg { get; set; }
|
|
public int RateCount { get; set; }
|
|
public long ViewCount { get; set; }
|
|
public long UseCount { get; set; }
|
|
|
|
public int Sort { get; set; }
|
|
public DateTime SortDate { get; set; } = DateTime.UtcNow;
|
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime? DeletedAt { get; set; }
|
|
|
|
public ICollection<Project> Projects { get; set; } = [];
|
|
public ICollection<ContainerCategory> ContainerCategories { get; set; } = [];
|
|
public ICollection<ContainerTag> ContainerTags { get; set; } = [];
|
|
public ICollection<Comment> Comments { get; set; } = [];
|
|
}
|
|
|
|
public class ContainerCategory
|
|
{
|
|
public Guid ContainerId { get; set; }
|
|
public ProjectContainer Container { get; set; } = default!;
|
|
public Guid CategoryId { get; set; }
|
|
public Category Category { get; set; } = default!;
|
|
public int Sort { get; set; }
|
|
}
|
|
|
|
public class ContainerTag
|
|
{
|
|
public Guid ContainerId { get; set; }
|
|
public ProjectContainer Container { get; set; } = default!;
|
|
public Guid TagId { get; set; }
|
|
public Tag Tag { get; set; } = default!;
|
|
}
|
|
|
|
public class Project
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid ContainerId { get; set; }
|
|
public ProjectContainer Container { get; set; } = default!;
|
|
public Guid? ProjectServerId { get; set; }
|
|
|
|
public string Name { get; set; } = default!;
|
|
public string? Description { get; set; }
|
|
public string? Image { get; set; }
|
|
public string? FullDemo { get; set; }
|
|
public string? DemoScriptTag { get; set; }
|
|
public string? DownloadLink { get; set; }
|
|
|
|
public string? AepMinioBucket { get; set; }
|
|
public string? AepMinioKey { get; set; }
|
|
public string? AepFileUrl { get; set; }
|
|
public string? AepFileMd5 { get; set; }
|
|
public long? AepFileSizeBytes { get; set; }
|
|
public DateTime? AepUploadedAt { get; set; }
|
|
public string? Folder { get; set; }
|
|
|
|
public int OriginalWidth { get; set; }
|
|
public int OriginalHeight { get; set; }
|
|
public string? Aspect { get; set; }
|
|
|
|
public decimal ProjectDurationSec { get; set; }
|
|
public decimal? MinDurationSec { get; set; }
|
|
public decimal? MaxDurationSec { get; set; }
|
|
public int FreeFps { get; set; } = 30;
|
|
|
|
public ChooseMode ChooseMode { get; set; }
|
|
public ResolutionKind Resolution { get; set; } = ResolutionKind.FullHD;
|
|
public decimal VipFactor { get; set; } = 1.0m;
|
|
public string RenderAepComp { get; set; } = "flatrender";
|
|
|
|
/// <summary>Render engine for this template: "AfterEffects" (default) or "Remotion".</summary>
|
|
public string RenderEngine { get; set; } = "AfterEffects";
|
|
/// <summary>For Remotion templates, the composition id to render (e.g. "KineticQuote").</summary>
|
|
public string? RenderRemotionComp { get; set; }
|
|
|
|
public string? SharedLayerImage { get; set; }
|
|
public string? SharedColorsSvg { get; set; }
|
|
public string? SharedColorPresetsSvg { get; set; }
|
|
|
|
public bool IsPublished { get; set; }
|
|
public int Sort { get; set; }
|
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime? DeletedAt { get; set; }
|
|
|
|
public ICollection<Scene> Scenes { get; set; } = [];
|
|
public ICollection<SharedColor> SharedColors { get; set; } = [];
|
|
public ICollection<SharedColorPreset> SharedColorPresets { get; set; } = [];
|
|
public ICollection<SharedLayer> SharedLayers { get; set; } = [];
|
|
public ICollection<ProjectCharacterController> CharacterControllers { get; set; } = [];
|
|
public ICollection<ProjectCharacterPreset> CharacterPresets { get; set; } = [];
|
|
public ICollection<PresetStory> PresetStories { get; set; } = [];
|
|
}
|