// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System.ComponentModel.DataAnnotations; using Squidex.Domain.Apps.Core.HandleRules; using Squidex.Domain.Apps.Core.Rules; using Squidex.Infrastructure.Validation; namespace Squidex.Extensions.Actions.Prerender { [RuleAction( Title = "Prerender", IconImage = "", IconColor = "#2c3e50", Display = "Recache URL", Description = "Prerender a javascript website for bots.", ReadMore = "https://prerender.io")] public sealed record PrerenderAction : RuleAction { [LocalizedRequired] [Display(Name = "Token", Description = "The prerender token from your account.")] [Editor(RuleFieldEditor.Text)] [Formattable] public string Token { get; set; } [LocalizedRequired] [Display(Name = "Url", Description = "The url to recache.")] [Editor(RuleFieldEditor.Text)] public string Url { get; set; } } }