// ========================================================================== // 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.Script { [RuleAction( Title = "Script", IconImage = "", IconColor = "#f0be25", Display = "Run a Script", Description = "Runs a custom Javascript")] public sealed record ScriptAction : RuleAction { [LocalizedRequired] [Display(Name = "Script", Description = "The script to render.")] [Editor(RuleFieldEditor.Javascript)] [Formattable] public string Script { get; set; } } }