forked from Squidex/squidex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyUIOptions.cs
More file actions
76 lines (55 loc) · 2.27 KB
/
Copy pathMyUIOptions.cs
File metadata and controls
76 lines (55 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using System.Text.Json.Serialization;
namespace Squidex.Areas.Api.Controllers.UI;
public sealed record MyUIOptions
{
[JsonExtensionData]
public Dictionary<string, object> More { get; set; } = [];
[JsonPropertyName("regexSuggestions")]
public Dictionary<string, string> RegexSuggestions { get; set; }
[JsonPropertyName("map")]
public MapOptions Map { get; set; }
[JsonPropertyName("referencesDropdownItemCount")]
public int ReferencesDropdownItemCount { get; set; } = 100;
[JsonPropertyName("showInfo")]
public bool ShowInfo { get; set; }
[JsonPropertyName("hideNews")]
public bool HideNews { get; set; }
[JsonPropertyName("hideOnboarding")]
public bool HideOnboarding { get; set; }
[JsonPropertyName("hideDateButtons")]
public bool HideDateButtons { get; set; }
[JsonPropertyName("hideDateTimeModeButton")]
public bool HideDateTimeModeButton { get; set; }
[JsonPropertyName("disableScheduledChanges")]
public bool DisableScheduledChanges { get; set; }
[JsonPropertyName("redirectToLogin")]
public bool RedirectToLogin { get; set; }
[JsonPropertyName("onlyAdminsCanCreateApps")]
public bool OnlyAdminsCanCreateApps { get; set; }
[JsonPropertyName("onlyAdminsCanCreateTeams")]
public bool OnlyAdminsCanCreateTeams { get; set; }
[JsonPropertyName("markerProject")]
public string MarkerProject { get; set; }
[JsonPropertyName("collaborationService")]
public string CollaborationService { get; set; }
[JsonPropertyName("disable")]
public bool Disable { get; set; }
public sealed class MapOptions
{
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("googleMaps")]
public MapGoogleOptions GoogleMaps { get; set; }
}
public sealed class MapGoogleOptions
{
[JsonPropertyName("key")]
public string Key { get; set; }
}
}