diff --git a/extensions/Squidex.Extensions/Actions/AzureQueue/AzureQueueAction.cs b/extensions/Squidex.Extensions/Actions/AzureQueue/AzureQueueAction.cs index 41c5be7a9..002da0d83 100644 --- a/extensions/Squidex.Extensions/Actions/AzureQueue/AzureQueueAction.cs +++ b/extensions/Squidex.Extensions/Actions/AzureQueue/AzureQueueAction.cs @@ -23,7 +23,7 @@ namespace Squidex.Extensions.Actions.AzureQueue public sealed class AzureQueueAction : RuleAction { [Required] - [Display(Name = "Connection String", Description = "The connection string to the storage account.")] + [Display(Name = "Connection", Description = "The connection string to the storage account.")] [DataType(DataType.Text)] [Formattable] public string ConnectionString { get; set; } diff --git a/extensions/Squidex.Extensions/Actions/Discourse/DiscourseAction.cs b/extensions/Squidex.Extensions/Actions/Discourse/DiscourseAction.cs index 295c7f683..8e1c04011 100644 --- a/extensions/Squidex.Extensions/Actions/Discourse/DiscourseAction.cs +++ b/extensions/Squidex.Extensions/Actions/Discourse/DiscourseAction.cs @@ -23,7 +23,7 @@ namespace Squidex.Extensions.Actions.Discourse { [AbsoluteUrl] [Required] - [Display(Name = "Url", Description = "The url to the discourse server.")] + [Display(Name = "Server Url", Description = "The url to the discourse server.")] [DataType(DataType.Url)] public Uri Url { get; set; } @@ -33,7 +33,7 @@ namespace Squidex.Extensions.Actions.Discourse public string ApiKey { get; set; } [Required] - [Display(Name = "Api Username", Description = "The api username to authenticate to your discourse server.")] + [Display(Name = "Api User", Description = "The api username to authenticate to your discourse server.")] [DataType(DataType.Text)] public string ApiUsername { get; set; } diff --git a/extensions/Squidex.Extensions/Actions/Discourse/DiscourseActionHandler.cs b/extensions/Squidex.Extensions/Actions/Discourse/DiscourseActionHandler.cs index b0811ba17..d408569df 100644 --- a/extensions/Squidex.Extensions/Actions/Discourse/DiscourseActionHandler.cs +++ b/extensions/Squidex.Extensions/Actions/Discourse/DiscourseActionHandler.cs @@ -34,7 +34,6 @@ namespace Squidex.Extensions.Actions.Discourse var json = new Dictionary { - ["raw"] = Format(action.Text, @event), ["title"] = Format(action.Title, @event) }; @@ -56,6 +55,8 @@ namespace Squidex.Extensions.Actions.Discourse RequestBody = requestBody }; + json["raw"] = Format(action.Text, @event); + var description = action.Topic.HasValue ? DescriptionCreateTopic : diff --git a/extensions/Squidex.Extensions/Actions/ElasticSearch/ElasticSearchAction.cs b/extensions/Squidex.Extensions/Actions/ElasticSearch/ElasticSearchAction.cs index 298e4ad66..826f86f6d 100644 --- a/extensions/Squidex.Extensions/Actions/ElasticSearch/ElasticSearchAction.cs +++ b/extensions/Squidex.Extensions/Actions/ElasticSearch/ElasticSearchAction.cs @@ -23,7 +23,7 @@ namespace Squidex.Extensions.Actions.ElasticSearch { [AbsoluteUrl] [Required] - [Display(Name = "Host", Description = "The hostname of the elastic search instance or cluster.")] + [Display(Name = "Server Url", Description = "The url to the elastic search instance or cluster.")] [DataType(DataType.Url)] public Uri Host { get; set; } diff --git a/extensions/Squidex.Extensions/Actions/ElasticSearch/ElasticSearchActionHandler.cs b/extensions/Squidex.Extensions/Actions/ElasticSearch/ElasticSearchActionHandler.cs index 991725964..10c3b0a79 100644 --- a/extensions/Squidex.Extensions/Actions/ElasticSearch/ElasticSearchActionHandler.cs +++ b/extensions/Squidex.Extensions/Actions/ElasticSearch/ElasticSearchActionHandler.cs @@ -45,9 +45,9 @@ namespace Squidex.Extensions.Actions.ElasticSearch var ruleJob = new ElasticSearchJob { Host = action.Host.ToString(), - ContentId = contentId, IndexName = Format(action.IndexName, @event), - IndexType = Format(action.IndexType, @event) + IndexType = Format(action.IndexType, @event), + ContentId = contentId }; if (contentEvent.Type == EnrichedContentEventType.Deleted || diff --git a/extensions/Squidex.Extensions/Actions/Email/EmailAction.cs b/extensions/Squidex.Extensions/Actions/Email/EmailAction.cs index c801e629b..e6ab737b7 100644 --- a/extensions/Squidex.Extensions/Actions/Email/EmailAction.cs +++ b/extensions/Squidex.Extensions/Actions/Email/EmailAction.cs @@ -20,50 +20,51 @@ namespace Squidex.Extensions.Actions.Email public sealed class EmailAction : RuleAction { [Required] - [Display(Name = "ServerHost", Description = "The IP address or host to the SMTP server.")] + [Display(Name = "Server Host", Description = "The IP address or host to the SMTP server.")] [DataType(DataType.Text)] public string ServerHost { get; set; } [Required] - [Display(Name = "ServerPort", Description = "The port to the SMTP server.")] + [Display(Name = "Server Port", Description = "The port to the SMTP server.")] [DataType(DataType.Custom)] public int ServerPort { get; set; } [Required] - [Display(Name = "ServerUseSsl", Description = "Specify whether the SMPT client uses Secure Sockets Layer (SSL) to encrypt the connection.")] + [Display(Name = "Use SSL", Description = "Specify whether the SMPT client uses Secure Sockets Layer (SSL) to encrypt the connection.")] [DataType(DataType.Custom)] public bool ServerUseSsl { get; set; } [Required] - [Display(Name = "ServerUsername", Description = "The username for the SMTP server.")] - [DataType(DataType.Text)] - public string ServerUsername { get; set; } - - [Required] - [Display(Name = "ServerPassword", Description = "The password for the SMTP server.")] + [Display(Name = "Password", Description = "The password for the SMTP server.")] [DataType(DataType.Password)] public string ServerPassword { get; set; } [Required] - [Display(Name = "MessageFrom", Description = "The email sending address.")] + [Display(Name = "Username", Description = "The username for the SMTP server.")] + [DataType(DataType.Text)] + [Formattable] + public string ServerUsername { get; set; } + + [Required] + [Display(Name = "From Address", Description = "The email sending address.")] [DataType(DataType.Text)] [Formattable] public string MessageFrom { get; set; } [Required] - [Display(Name = "MessageTo", Description = "The email message will be sent to.")] + [Display(Name = "To Address", Description = "The email message will be sent to.")] [DataType(DataType.Text)] [Formattable] public string MessageTo { get; set; } [Required] - [Display(Name = "MessageSubject", Description = "The subject line for this email message.")] + [Display(Name = "Subject", Description = "The subject line for this email message.")] [DataType(DataType.Text)] [Formattable] public string MessageSubject { get; set; } [Required] - [Display(Name = "MessageBody", Description = "The message body.")] + [Display(Name = "Body", Description = "The message body.")] [DataType(DataType.MultilineText)] [Formattable] public string MessageBody { get; set; } diff --git a/extensions/Squidex.Extensions/Actions/Medium/MediumAction.cs b/extensions/Squidex.Extensions/Actions/Medium/MediumAction.cs index 3c6ce25e2..3781eb9de 100644 --- a/extensions/Squidex.Extensions/Actions/Medium/MediumAction.cs +++ b/extensions/Squidex.Extensions/Actions/Medium/MediumAction.cs @@ -41,14 +41,15 @@ namespace Squidex.Extensions.Actions.Medium [Formattable] public string CanonicalUrl { get; set; } - [Display(Name = "PublicationId", Description = "Optional publication id.")] - [DataType(DataType.Text)] - public string PublicationId { get; set; } - [Display(Name = "Tags", Description = "The optional comma separated list of tags.")] [DataType(DataType.Text)] + [Formattable] public string Tags { get; set; } + [Display(Name = "Publication Id", Description = "Optional publication id.")] + [DataType(DataType.Text)] + public string PublicationId { get; set; } + [Display(Name = "Is Html", Description = "Indicates whether the content is markdown or html.")] [DataType(DataType.Custom)] public bool IsHtml { get; set; } diff --git a/extensions/Squidex.Extensions/Actions/Twitter/TweetAction.cs b/extensions/Squidex.Extensions/Actions/Twitter/TweetAction.cs index 5f68d9fd4..67bb45e63 100644 --- a/extensions/Squidex.Extensions/Actions/Twitter/TweetAction.cs +++ b/extensions/Squidex.Extensions/Actions/Twitter/TweetAction.cs @@ -32,6 +32,7 @@ namespace Squidex.Extensions.Actions.Twitter [Required] [Display(Name = "Text", Description = "The text that is sent as tweet to twitter.")] [DataType(DataType.MultilineText)] + [Formattable] public string Text { get; set; } } } diff --git a/extensions/Squidex.Extensions/Actions/Webhook/WebhookAction.cs b/extensions/Squidex.Extensions/Actions/Webhook/WebhookAction.cs index 2cf8e339a..4c129531e 100644 --- a/extensions/Squidex.Extensions/Actions/Webhook/WebhookAction.cs +++ b/extensions/Squidex.Extensions/Actions/Webhook/WebhookAction.cs @@ -9,7 +9,6 @@ using System; using System.ComponentModel.DataAnnotations; using Squidex.Domain.Apps.Core.HandleRules; using Squidex.Domain.Apps.Core.Rules; -using Squidex.Infrastructure; namespace Squidex.Extensions.Actions.Webhook { @@ -21,7 +20,6 @@ namespace Squidex.Extensions.Actions.Webhook ReadMore = "https://en.wikipedia.org/wiki/Webhook")] public sealed class WebhookAction : RuleAction { - [AbsoluteUrl] [Required] [Display(Name = "Url", Description = "The url to the webhook.")] [DataType(DataType.Text)] diff --git a/src/Squidex/app/features/rules/pages/rules/actions/generic-action.component.html b/src/Squidex/app/features/rules/pages/rules/actions/generic-action.component.html index 5c0438347..3ab92a516 100644 --- a/src/Squidex/app/features/rules/pages/rules/actions/generic-action.component.html +++ b/src/Squidex/app/features/rules/pages/rules/actions/generic-action.component.html @@ -1,6 +1,8 @@
- +
diff --git a/src/Squidex/app/features/rules/pages/rules/actions/generic-action.component.scss b/src/Squidex/app/features/rules/pages/rules/actions/generic-action.component.scss index 6f7a94e21..91941c2fc 100644 --- a/src/Squidex/app/features/rules/pages/rules/actions/generic-action.component.scss +++ b/src/Squidex/app/features/rules/pages/rules/actions/generic-action.component.scss @@ -2,5 +2,9 @@ @import '_mixins'; .form-check { - padding-top: .5rem; + margin-bottom: -.25rem; +} + +textarea { + height: 15rem; } \ No newline at end of file diff --git a/src/Squidex/app/features/rules/pages/rules/rules-page.component.html b/src/Squidex/app/features/rules/pages/rules/rules-page.component.html index 313951c46..3161d203c 100644 --- a/src/Squidex/app/features/rules/pages/rules/rules-page.component.html +++ b/src/Squidex/app/features/rules/pages/rules/rules-page.component.html @@ -19,58 +19,56 @@ - - -
- No Rule created yet. + +
+ No rule created yet. - -
+ +
- - - - - - - - - - - - -
-

If

-
- - - - -

then

-
- - - - - - - -
+ + + + + + + + + + + + +
+

If

+
+ + + + +

then

+
+ + + + + + + +
- - - - + + +
diff --git a/src/Squidex/app/features/settings/pages/clients/clients-page.component.html b/src/Squidex/app/features/settings/pages/clients/clients-page.component.html index b0fff5866..5ef4d921b 100644 --- a/src/Squidex/app/features/settings/pages/clients/clients-page.component.html +++ b/src/Squidex/app/features/settings/pages/clients/clients-page.component.html @@ -14,7 +14,7 @@
- +
No client created yet.
diff --git a/src/Squidex/app/features/settings/pages/patterns/patterns-page.component.html b/src/Squidex/app/features/settings/pages/patterns/patterns-page.component.html index b82d2553d..9d1dc860e 100644 --- a/src/Squidex/app/features/settings/pages/patterns/patterns-page.component.html +++ b/src/Squidex/app/features/settings/pages/patterns/patterns-page.component.html @@ -14,12 +14,15 @@
- +
No pattern created yet.
- + + +
diff --git a/src/Squidex/app/theme/_forms.scss b/src/Squidex/app/theme/_forms.scss index b1ee1d822..ba6d680c4 100644 --- a/src/Squidex/app/theme/_forms.scss +++ b/src/Squidex/app/theme/_forms.scss @@ -6,6 +6,7 @@ // .form-control { &.ng-invalid { + &.ng-touched, &.ng-dirty { & { border-color: $color-theme-error; @@ -199,6 +200,7 @@ input { } &.ng-invalid { + &.ng-touched, &.ng-dirty { & { @include box-shadow-none;