-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
417 changed files
with
184,892 additions
and
127,658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Microsoft .NET properties | ||
csharp_new_line_before_members_in_object_initializers = false | ||
csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async, required:suggestion | ||
csharp_space_after_keywords_in_control_flow_statements = false | ||
csharp_space_between_parentheses = control_flow_statements | ||
csharp_style_var_elsewhere = true:suggestion | ||
csharp_style_var_for_built_in_types = true:suggestion | ||
csharp_style_var_when_type_is_apparent = true:suggestion | ||
dotnet_naming_rule.event_rule.import_to_resharper = as_predefined | ||
dotnet_naming_rule.event_rule.severity = warning | ||
dotnet_naming_rule.event_rule.style = on_upper_camel_case_style | ||
dotnet_naming_rule.event_rule.symbols = event_symbols | ||
dotnet_naming_rule.unity_serialized_field_rule.import_to_resharper = True | ||
dotnet_naming_rule.unity_serialized_field_rule.resharper_description = Unity serialized field | ||
dotnet_naming_rule.unity_serialized_field_rule.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef | ||
dotnet_naming_rule.unity_serialized_field_rule.severity = warning | ||
dotnet_naming_rule.unity_serialized_field_rule.style = lower_camel_case_style | ||
dotnet_naming_rule.unity_serialized_field_rule.symbols = unity_serialized_field_symbols | ||
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case | ||
dotnet_naming_style.on_upper_camel_case_style.capitalization = pascal_case | ||
dotnet_naming_style.on_upper_camel_case_style.required_prefix = On | ||
dotnet_naming_symbols.event_symbols.applicable_accessibilities = * | ||
dotnet_naming_symbols.event_symbols.applicable_kinds = event | ||
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_accessibilities = * | ||
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_kinds = | ||
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_applicable_kinds = unity_serialised_field | ||
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_required_modifiers = instance | ||
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none | ||
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none | ||
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none | ||
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion | ||
dotnet_style_predefined_type_for_member_access = true:suggestion | ||
dotnet_style_qualification_for_event = false:suggestion | ||
dotnet_style_qualification_for_field = false:suggestion | ||
dotnet_style_qualification_for_method = false:suggestion | ||
dotnet_style_qualification_for_property = false:suggestion | ||
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion | ||
|
||
# ReSharper properties | ||
resharper_autodetect_indent_settings = true | ||
resharper_csharp_extra_spaces = leave_all | ||
resharper_space_within_default_parentheses = true | ||
resharper_space_within_new_parentheses = true | ||
resharper_space_within_sizeof_parentheses = true | ||
resharper_space_within_typeof_parentheses = true | ||
resharper_use_indent_from_vs = false | ||
|
||
# ReSharper inspection severities | ||
resharper_arrange_redundant_parentheses_highlighting = hint | ||
resharper_arrange_this_qualifier_highlighting = hint | ||
resharper_arrange_type_member_modifiers_highlighting = hint | ||
resharper_arrange_type_modifiers_highlighting = hint | ||
resharper_built_in_type_reference_style_for_member_access_highlighting = hint | ||
resharper_built_in_type_reference_style_highlighting = hint | ||
resharper_redundant_base_qualifier_highlighting = warning | ||
resharper_suggest_var_or_type_built_in_types_highlighting = hint | ||
resharper_suggest_var_or_type_elsewhere_highlighting = hint | ||
resharper_suggest_var_or_type_simple_types_highlighting = hint | ||
resharper_web_config_module_not_resolved_highlighting = warning | ||
resharper_web_config_type_not_resolved_highlighting = warning | ||
resharper_web_config_wrong_module_highlighting = warning | ||
|
||
[{*.har,*.inputactions,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.stylelintrc,bowerrc,jest.config}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{appxmanifest,asax,ascx,aspx,axaml,build,c,c++,cc,cginc,compute,cp,cpp,cs,cshtml,cu,cuh,cxx,dtd,fs,fsi,fsscript,fsx,fx,fxh,h,hh,hlsl,hlsli,hlslinc,hpp,hxx,inc,inl,ino,ipp,master,ml,mli,mpp,mq4,mq5,mqh,nuspec,paml,razor,resw,resx,shader,skin,tpp,usf,ush,vb,xaml,xamlx,xoml,xsd}] | ||
indent_style = space | ||
indent_size = 4 | ||
tab_width = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
using System; | ||
namespace Damselfly.Core.Constants; | ||
namespace Damselfly.Core.Constants; | ||
|
||
public enum AzureDetection | ||
{ | ||
Disabled = 0, | ||
AllImages = 1, | ||
ImagesWithFaces = 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using System; | ||
namespace Damselfly.Core.Constants; | ||
|
||
namespace Damselfly.Core.Constants; | ||
|
||
public enum BasketChangeType | ||
{ | ||
ImagesAdded = 1, | ||
ImagesRemoved = 2, | ||
BasketCreated = 3, | ||
BasketDeleted = 4, | ||
BasketChanged = 5 | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
using System; | ||
namespace Damselfly.Core.Constants; | ||
|
||
namespace Damselfly.Core.Constants; | ||
|
||
public class PolicyDefinitions | ||
{ | ||
public const string s_IsEditor = "IsEditor"; | ||
public const string s_IsDownloader = "IsDownloader"; | ||
public const string s_IsAdmin = "IsAdmin"; | ||
public const string s_IsLoggedIn = "IsLoggedIn"; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
using System; | ||
namespace Damselfly.Core.Constants | ||
{ | ||
public enum ExportType | ||
{ | ||
Download = 1, | ||
Email = 2, | ||
Wordpress = 3, | ||
Facebook = 4, | ||
Twitter = 5, | ||
Instagram = 6, | ||
}; | ||
namespace Damselfly.Core.Constants; | ||
|
||
public enum ExportSize | ||
{ | ||
FullRes = 1, | ||
Large = 2, | ||
Medium = 3, | ||
Small = 4, | ||
ExtraLarge = 5 | ||
}; | ||
public enum ExportType | ||
{ | ||
Download = 1, | ||
Email = 2, | ||
Wordpress = 3, | ||
Facebook = 4, | ||
Twitter = 5, | ||
Instagram = 6 | ||
} | ||
|
||
public enum ExportSize | ||
{ | ||
FullRes = 1, | ||
Large = 2, | ||
Medium = 3, | ||
Small = 4, | ||
ExtraLarge = 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
using System; | ||
namespace Damselfly.Core.Constants; | ||
|
||
namespace Damselfly.Core.Constants; | ||
|
||
public enum LoggingLevel | ||
{ | ||
Information, | ||
Verbose, | ||
Debug | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
using System; | ||
namespace Damselfly.Core.Constants | ||
{ | ||
public enum ThumbSize | ||
{ | ||
Unknown = -1, | ||
ExtraLarge = 0, | ||
Large = 1, | ||
Big = 2, | ||
Medium = 3, | ||
Preview = 4, | ||
Small = 5 | ||
}; | ||
} | ||
namespace Damselfly.Core.Constants; | ||
|
||
public enum ThumbSize | ||
{ | ||
Unknown = -1, | ||
ExtraLarge = 0, | ||
Large = 1, | ||
Big = 2, | ||
Medium = 3, | ||
Preview = 4, | ||
Small = 5 | ||
} |
27 changes: 12 additions & 15 deletions
27
Damselfly.Core.DbModels/Authentication/AppIdentityUser.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
using Microsoft.AspNetCore.Identity; | ||
using System.Collections.Generic; | ||
using Damselfly.Core.Interfaces; | ||
using System.Collections.Generic; | ||
using Microsoft.EntityFrameworkCore; | ||
using System; | ||
using Microsoft.AspNetCore.Identity; | ||
|
||
namespace Damselfly.Core.DbModels.Authentication | ||
{ | ||
public partial class AppIdentityUser : IdentityUser<int>, IDamselflyUser | ||
{ | ||
public ICollection<ApplicationUserRole> UserRoles { get; set; } | ||
} | ||
namespace Damselfly.Core.DbModels.Authentication; | ||
|
||
public partial class ApplicationUserRole : IdentityUserRole<int> | ||
{ | ||
public virtual AppIdentityUser User { get; set; } | ||
public virtual ApplicationRole Role { get; set; } | ||
} | ||
public class AppIdentityUser : IdentityUser<int>, IDamselflyUser | ||
{ | ||
public ICollection<ApplicationUserRole> UserRoles { get; set; } | ||
} | ||
|
||
public class ApplicationUserRole : IdentityUserRole<int> | ||
{ | ||
public virtual AppIdentityUser User { get; set; } | ||
public virtual ApplicationRole Role { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.