Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev into main #33

Merged
merged 74 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
23e236a
Add commands to run npm after build
solid-computing-machine Sep 5, 2023
ba9e994
Remove duplicated packages
solid-computing-machine Sep 5, 2023
f3dd0bd
Run codecleanup
solid-computing-machine Sep 5, 2023
adbdaa1
Change name and moving Resources to domain layer
solid-computing-machine Sep 5, 2023
eee25ef
Change name
solid-computing-machine Sep 5, 2023
1d86af0
Change name
solid-computing-machine Sep 5, 2023
13d48fe
Fix name references to new modified names
solid-computing-machine Sep 5, 2023
fffa517
Change the name and apply some improvements to the method and control…
solid-computing-machine Sep 5, 2023
73c1b2d
Update issue templates
RondineleG Sep 5, 2023
35d5992
Add commands to run npm after build
solid-computing-machine Sep 5, 2023
54e91f1
Remove duplicated packages
solid-computing-machine Sep 5, 2023
b5d9f30
Run codecleanup
solid-computing-machine Sep 5, 2023
5672b3d
Change name and moving Resources to domain layer
solid-computing-machine Sep 5, 2023
ba6d0fa
Change name
solid-computing-machine Sep 5, 2023
37dd8c2
Change name
solid-computing-machine Sep 5, 2023
1966323
Fix name references to new modified names
solid-computing-machine Sep 5, 2023
432f3f9
Change the name and apply some improvements to the method and control…
solid-computing-machine Sep 5, 2023
73d95db
Update issue templates
RondineleG Sep 5, 2023
c257c0b
Add new extensions do container and fix error to run tasks.json
RondineleG Sep 6, 2023
72f84cb
Update commands to run npm install and npm buildcss, update to run in…
RondineleG Sep 6, 2023
31a0137
Remove duplicated files
RondineleG Sep 6, 2023
12a7fcf
Change to run in new port
RondineleG Sep 6, 2023
d7cd6fb
Create first class test and add somes test
RondineleG Sep 6, 2023
4790a8d
Removinf duplicated files
RondineleG Sep 6, 2023
23ab252
Removing unused files
RondineleG Sep 6, 2023
9804d4d
Change to use var
RondineleG Sep 7, 2023
d6daa52
Adds new tests and code removal, usings and applying cleanup of the s…
RondineleG Sep 8, 2023
1564e19
Add editor config
RondineleG Sep 8, 2023
1768738
Update and clean solution
RondineleG Sep 8, 2023
2b47556
Start module AuthSecurity
RondineleG Sep 9, 2023
49259ca
removing file
RondineleG Sep 11, 2023
946b0c8
group erros validate
RondineleG Sep 11, 2023
87e1af4
Add comments for documentations
RondineleG Sep 11, 2023
f6f3ded
add comments to documentation api
RondineleG Sep 11, 2023
13b1ed0
Update controller
RondineleG Sep 12, 2023
86bd8fd
Update port
RondineleG Sep 12, 2023
fc1a860
Add connection string local db
RondineleG Sep 12, 2023
0fe00a1
Implement JWT Authentication new method for compare
RondineleG Sep 12, 2023
2afccb4
Change name dbcontext
RondineleG Sep 12, 2023
2fd5891
Modify the default names of the Identity Tables
RondineleG Sep 12, 2023
4e1a912
Move to entitties
RondineleG Sep 12, 2023
3d3f097
Add new propresties to customize user class
RondineleG Sep 12, 2023
b714c8f
Add inputmodel and change do file scoped
RondineleG Sep 12, 2023
8d573ba
Change to use IdentityDbContext<User>
RondineleG Sep 12, 2023
f93ac71
Add catabase configuration, configure roles and add configuration ini…
RondineleG Sep 12, 2023
9fae0d9
Cofirugation user model
RondineleG Sep 12, 2023
005fa16
Add global configuration for .Net 7.0.306
RondineleG Sep 13, 2023
d05afe6
Remodeling the project to avoid complexity, leaving only the API that…
RondineleG Sep 14, 2023
60552dc
Merge branch 'dev' into Feat/StartPlanningWithTDD
RondineleG Sep 14, 2023
f41bc96
Update text
RondineleG Sep 15, 2023
dd74b60
Update docs
RondineleG Sep 15, 2023
a337ea1
removing old project
RondineleG Sep 15, 2023
ca72444
Change accept all .net 7 versions
RondineleG Sep 15, 2023
367570e
fix: Resolving conflicts by accepting all changes from the other source.
RondineleG Sep 15, 2023
c9b8ab1
Change configurations files
RondineleG Sep 16, 2023
0524e9a
Add news controles for create and mager roles and user roles
RondineleG Sep 16, 2023
e9bfe8c
Change BrowlAuthSecurityDbContext to add OnModelCreating to rename id…
RondineleG Sep 16, 2023
f6e23f0
change por
RondineleG Sep 16, 2023
8e6a31a
Change local database
RondineleG Sep 16, 2023
e7b7443
Add enum with main roles
RondineleG Sep 16, 2023
4ef2ec2
Add new entity for register user
RondineleG Sep 16, 2023
169fc76
Remove old migrations and create new for new local db
RondineleG Sep 16, 2023
5d08506
Change to apply seed when run
RondineleG Sep 16, 2023
972ec29
Removing duplicated
RondineleG Sep 16, 2023
e750628
feat: Changed IList<string> instead of ICollection<string>, Removind …
RondineleG Sep 17, 2023
9f97654
feat : changed should help improve the performance and efficiency of…
RondineleG Sep 17, 2023
513a533
feat: Removed unnecessary controllers
RondineleG Sep 17, 2023
00b8b0d
feat : Codecleanup
RondineleG Sep 17, 2023
a2bad2f
feat : Created IAuthenticateService and removed the controller's resp…
RondineleG Sep 17, 2023
2708db1
feat: Add user controllers and user services for create and update users
RondineleG Sep 17, 2023
f77f03d
feat: Create pages for regiter users
RondineleG Sep 17, 2023
eb5cd1c
feat : Create a new projext test for Browl.Service.AuthSecurity.API
RondineleG Sep 17, 2023
2f88ca0
feat: Created so that new changes are separated and created a separat…
RondineleG Sep 17, 2023
e23fb0b
Merge branch 'main' into dev
RondineleG Sep 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"syncfusioninc.blazor-vscode-extensions",
"ms-dotnettools.vscode-dotnet-runtime",
"ms-dotnettools.blazorwasm-companion",
"PKief.material-icon-theme"
"PKief.material-icon-theme",
"Codeium.codeium",
"sourcegraph.cody-ai"
]
}
},
Expand Down
229 changes: 229 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true

# C# files
[*.cs]

#### Core EditorConfig Options ####

# Indentation and spacing
indent_size = 4
indent_style = tab
tab_width = 4

# New line preferences
end_of_line = crlf
insert_final_newline = true

#### .NET Coding Conventions ####

# Organize usings
dotnet_separate_import_directive_groups = true
dotnet_sort_system_directives_first = true
file_header_template = unset

# this. and Me. preferences
dotnet_style_qualification_for_event = false
dotnet_style_qualification_for_field = false
dotnet_style_qualification_for_method = false
dotnet_style_qualification_for_property = false

# Language keywords vs BCL types preferences
dotnet_style_predefined_type_for_locals_parameters_members = true
dotnet_style_predefined_type_for_member_access = true

# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
dotnet_style_parentheses_in_other_operators = never_if_unnecessary
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity

# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members

# Expression-level preferences
dotnet_style_coalesce_expression = true
dotnet_style_collection_initializer = true
dotnet_style_explicit_tuple_names = true
dotnet_style_namespace_match_folder = true
dotnet_style_null_propagation = true
dotnet_style_object_initializer = true
dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_prefer_auto_properties = true
dotnet_style_prefer_compound_assignment = true
dotnet_style_prefer_conditional_expression_over_assignment = true
dotnet_style_prefer_conditional_expression_over_return = true
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
dotnet_style_prefer_inferred_anonymous_type_member_names = true
dotnet_style_prefer_inferred_tuple_names = true
dotnet_style_prefer_is_null_check_over_reference_equality_method = true
dotnet_style_prefer_simplified_boolean_expressions = true
dotnet_style_prefer_simplified_interpolation = true

# Field preferences
dotnet_style_readonly_field = true

# Parameter preferences
dotnet_code_quality_unused_parameters = all

# Suppression preferences
dotnet_remove_unnecessary_suppression_exclusions = none

# New line preferences
dotnet_style_allow_multiple_blank_lines_experimental = true
dotnet_style_allow_statement_immediately_after_block_experimental = true

#### C# Coding Conventions ####

# var preferences
csharp_style_var_elsewhere = true
csharp_style_var_for_built_in_types = true
csharp_style_var_when_type_is_apparent = true

# Expression-bodied members
csharp_style_expression_bodied_accessors = true
csharp_style_expression_bodied_constructors = true
csharp_style_expression_bodied_indexers = true
csharp_style_expression_bodied_lambdas = true
csharp_style_expression_bodied_local_functions = true
csharp_style_expression_bodied_methods = true
csharp_style_expression_bodied_operators = true
csharp_style_expression_bodied_properties = true

# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true
csharp_style_pattern_matching_over_is_with_cast_check = true
csharp_style_prefer_extended_property_pattern = true
csharp_style_prefer_not_pattern = true
csharp_style_prefer_pattern_matching = true
csharp_style_prefer_switch_expression = true

# Null-checking preferences
csharp_style_conditional_delegate_call = true

# Modifier preferences
csharp_prefer_static_local_function = true
csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
csharp_style_prefer_readonly_struct = true
csharp_style_prefer_readonly_struct_member = true

# Code-block preferences
csharp_prefer_braces = true
csharp_prefer_simple_using_statement = false
csharp_style_namespace_declarations = file_scoped
csharp_style_prefer_method_group_conversion = true
csharp_style_prefer_top_level_statements = true

# Expression-level preferences
csharp_prefer_simple_default_expression = true
csharp_style_deconstructed_variable_declaration = false
csharp_style_implicit_object_creation_when_type_is_apparent = true
csharp_style_inlined_variable_declaration = true
csharp_style_prefer_index_operator = true
csharp_style_prefer_local_over_anonymous_function = true
csharp_style_prefer_null_check_over_type_check = true
csharp_style_prefer_range_operator = true
csharp_style_prefer_tuple_swap = true
csharp_style_prefer_utf8_string_literals = true
csharp_style_throw_expression = true
csharp_style_unused_value_assignment_preference = discard_variable
csharp_style_unused_value_expression_statement_preference = unused_local_variable

# 'using' directive preferences
csharp_using_directive_placement = outside_namespace

# New line preferences
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
csharp_style_allow_embedded_statements_on_same_line_experimental = true

#### C# Formatting Rules ####

# New line preferences
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true

# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_labels = one_less_than_current
csharp_indent_switch_labels = true

# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true

#### Naming styles ####

# Naming rules

dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i

dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

# Symbol specifications

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =

# Naming styles

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case
63 changes: 63 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
21 changes: 10 additions & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@
"version": "0.2.0",
"configurations": [
{
"name": "RunClient",
"name": "RunBrowlClient",
"type": "blazorwasm",
"request": "launch",
"preLaunchTask": "build-client",
"cwd": "${workspaceFolder}/Browl.Client",
"url": "https://localhost:5900"
"preLaunchTask": "Browl.Client",
"cwd": "${workspaceFolder}/src/Presentation/Browl.Client/",
"url": "https://localhost:1400"
},
{
"name": "RunHabitService",
"name": "RunBrowlServiceMarketDataCollector",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-habit-service",
"program": "${workspaceFolder}/Browl.Service.MarketDataCollector/bin/Debug/net7.0/Browl.Service.MarketDataCollector.dll",
"preLaunchTask": "dotnet: watch Browl.Service.MarketDataCollector.API",
"program": "${workspaceFolder}/src/Services/Browl.Service.MarketDataCollector/Browl.Service.MarketDataCollector.API",
"args": [],
"cwd":
"${workspaceFolder}/Browl.Service.MarketDataCollector",
"cwd": "${workspaceFolder}/src/Services/Browl.Service.MarketDataCollector/Browl.Service.MarketDataCollector.API",
"stopAtEntry": false,
"console": "integratedTerminal"
},
Expand All @@ -26,8 +25,8 @@
{
"name": "Run All",
"configurations": [
"RunHabitService",
"RunClient"
"RunBrowlServiceMarketDataCollector",
"RunBrowlClient"
]
}
]
Expand Down
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"thunder-client.saveToWorkspace": true,
"thunder-client.workspaceRelativePath": ".thunder-client"

}
17 changes: 13 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,39 @@
"version": "2.0.0",
"tasks": [
{
"label": "build-client",
"label": "Browl.Client",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}/Browl.Client/Browl.Client.csproj"
"${workspaceFolder}/src/Presentation/Browl.Client/Browl.Client.csproj"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build-habit-service",
"label": "BrowlServiceMarketDataCollector",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}/Browl.Service.MarketDataCollector/Browl.Service.MarketDataCollector.csproj"
"${workspaceFolder}/src/Services/Browl.Service.MarketDataCollector/Browl.Service.MarketDataCollector.API"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "dotnet",
"task": "watch Browl.Service.MarketDataCollector.API",
"file": "${workspaceFolder}\\src\\Services\\Browl.Service.MarketDataCollector\\Browl.Service.MarketDataCollector.API\\Browl.Service.MarketDataCollector.API.csproj",
"problemMatcher": [
"$msCompile"
],
"label": "dotnet: watch Browl.Service.MarketDataCollector.API"
}
]
}
Loading