mirror of https://github.com/Squidex/squidex.git
10 changed files with 96 additions and 60 deletions
@ -0,0 +1,26 @@ |
|||||
|
// ==========================================================================
|
||||
|
// InitialPatterns.cs
|
||||
|
// Squidex Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) Squidex Group
|
||||
|
// All rights reserved.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using Squidex.Domain.Apps.Core.Apps; |
||||
|
|
||||
|
namespace Squidex.Domain.Apps.Entities.Apps |
||||
|
{ |
||||
|
public sealed class InitialPatterns : Dictionary<Guid, AppPattern> |
||||
|
{ |
||||
|
public InitialPatterns() |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
public InitialPatterns(Dictionary<Guid, AppPattern> patterns) |
||||
|
: base(patterns) |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,27 +0,0 @@ |
|||||
// ==========================================================================
|
|
||||
// UIRegexSuggestionDto.cs
|
|
||||
// Squidex Headless CMS
|
|
||||
// ==========================================================================
|
|
||||
// Copyright (c) Squidex Group
|
|
||||
// All rights reserved.
|
|
||||
// ==========================================================================
|
|
||||
|
|
||||
using System.ComponentModel.DataAnnotations; |
|
||||
|
|
||||
namespace Squidex.Areas.Api.Controllers.UI.Models |
|
||||
{ |
|
||||
public sealed class UIRegexSuggestionDto |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// The name of the suggestion.
|
|
||||
/// </summary>
|
|
||||
[Required] |
|
||||
public string Name { get; set; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// The regex pattern.
|
|
||||
/// </summary>
|
|
||||
[Required] |
|
||||
public string Pattern { get; set; } |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue