From 482e1c2cdcb9e03cff1bee353748d84d61dafe7c Mon Sep 17 00:00:00 2001 From: Yaser Moradi Date: Wed, 20 Sep 2023 23:19:28 +0200 Subject: [PATCH] feat: update to bit 5.6.0 #19 (#20) --- .devcontainer/devcontainer.json | 7 +- .editorconfig | 124 ++++++++++++++++++ .github/workflows/cd.yml | 52 ++++---- .github/workflows/ci.yml | 26 ++-- .gitignore | 4 +- ...minPanel.sln => Bit.TemplatePlayground.sln | 13 +- README.md | 4 +- src/Client/App/App.xaml | 4 +- src/Client/App/App.xaml.cs | 2 +- .../App/Bit.AdminPanel.Client.App.csproj | 108 --------------- .../Bit.TemplatePlayground.Client.App.csproj | 108 +++++++++++++++ .../IServiceCollectionExtensions.cs | 4 +- src/Client/App/MainPage.xaml | 4 +- src/Client/App/MainPage.xaml.cs | 2 +- src/Client/App/MauiProgram.cs | 4 +- .../App/Platforms/Android/MainActivity.cs | 2 +- .../App/Platforms/Android/MainApplication.cs | 2 +- .../App/Platforms/MacCatalyst/AppDelegate.cs | 2 +- .../App/Platforms/MacCatalyst/Program.cs | 2 +- src/Client/App/Platforms/Tizen/Main.cs | 2 +- .../App/Platforms/Tizen/tizen-manifest.xml | 6 +- src/Client/App/Platforms/Windows/App.xaml | 2 +- src/Client/App/Platforms/Windows/App.xaml.cs | 2 +- src/Client/App/Platforms/Windows/app.manifest | 2 +- src/Client/App/Platforms/iOS/AppDelegate.cs | 2 +- src/Client/App/Platforms/iOS/LinkDesc.xml | 6 +- src/Client/App/Platforms/iOS/Program.cs | 2 +- .../App/Services/AppDeviceCoordinator.cs | 2 +- src/Client/App/wwwroot/index.html | 20 +-- src/Client/Core/App.razor | 2 +- src/Client/Core/App.razor.cs | 2 +- .../Core/Bit.AdminPanel.Client.Core.csproj | 91 ------------- .../Bit.TemplatePlayground.Client.Core.csproj | 91 +++++++++++++ .../Categories/AddOrEditCategoryPage.razor.cs | 4 +- .../Pages/Categories/CategoriesPage.razor | 2 +- .../Pages/Categories/CategoriesPage.razor.cs | 4 +- src/Client/Core/Pages/Home/HomePage.razor.cs | 2 +- .../Pages/Home/OverallStatsWidget.razor.cs | 4 +- .../ProductsCountPerCategotyWidget.razor.cs | 2 +- .../Home/ProductsPercentageWidget.razor.cs | 2 +- .../Pages/Home/ProductsSalesWidget.razor.cs | 2 +- .../DeleteAccountConfirmModal.razor.cs | 2 +- .../Pages/Identity/EditProfilePage.razor.cs | 4 +- .../Identity/EmailConfirmationPage.razor.cs | 2 +- .../Identity/ForgotPasswordPage.razor.cs | 4 +- .../Pages/Identity/ResetPasswordPage.razor.cs | 4 +- .../Core/Pages/Identity/SignInPage.razor.cs | 4 +- .../Core/Pages/Identity/SignUpPage.razor.cs | 4 +- .../Products/AddOrEditProductModal.razor | 2 +- .../Products/AddOrEditProductModal.razor.cs | 8 +- .../Core/Pages/Products/ProductsPage.razor | 2 +- .../Core/Pages/Products/ProductsPage.razor.cs | 4 +- src/Client/Core/Pages/TermsPage.razor | 18 +-- src/Client/Core/Pages/TermsPage.razor.cs | 2 +- .../Contracts/IAuthenticationService.cs | 4 +- .../Contracts/IBitDeviceCoordinator.cs | 2 +- .../Services/Contracts/IExceptionHandler.cs | 2 +- .../Contracts/IPrerenderStateService.cs | 2 +- .../Core/Services/Contracts/IPubSubService.cs | 2 +- .../AppAuthenticationStateProvider.cs | 2 +- .../Implementations/AppHttpClientHandler.cs | 2 +- .../Implementations/AuthenticationService.cs | 4 +- .../ClientSideAuthTokenProvider.cs | 2 +- .../Implementations/ExceptionHandler.cs | 2 +- .../Implementations/MessageBoxService.cs | 2 +- .../Implementations/PrerenderStateService.cs | 2 +- .../Implementations/PubSubMessages.cs | 2 +- .../Services/Implementations/PubSubService.cs | 2 +- src/Client/Core/Shared/AppComponentBase.cs | 2 +- .../Shared/AppDataAnnotationsValidator.cs | 6 +- src/Client/Core/Shared/AppErrorBoundary.razor | 2 +- .../Core/Shared/AppErrorBoundary.razor.cs | 2 +- .../ChangePrerenderResponseStatusCode.cs | 2 +- .../Core/Shared/ConfirmMessageBox.razor.cs | 2 +- src/Client/Core/Shared/Footer.razor | 4 +- src/Client/Core/Shared/Footer.razor.cs | 6 +- src/Client/Core/Shared/Header.razor.cs | 4 +- .../Core/Shared/LoadingComponent.razor.cs | 2 +- src/Client/Core/Shared/MainLayout.razor | 2 +- src/Client/Core/Shared/MainLayout.razor.cs | 2 +- src/Client/Core/Shared/MessageBox.razor.cs | 2 +- src/Client/Core/Shared/NavMenu.razor.cs | 2 +- .../Core/Shared/NotAuthorizedComponent.razor | 2 +- .../Shared/NotAuthorizedComponent.razor.cs | 2 +- .../Core/Shared/SignOutConfirmModal.razor.cs | 2 +- src/Client/Core/Styles/app.scss | 20 ++- src/Client/Core/_Imports.razor | 14 +- .../Web/Bit.AdminPanel.Client.Web.csproj | 85 ------------ .../Bit.TemplatePlayground.Client.Web.csproj | 85 ++++++++++++ .../IServiceCollectionExtensions.cs | 2 +- src/Client/Web/Pages/_Host.cshtml | 6 +- src/Client/Web/Pages/_Layout.cshtml | 30 +---- src/Client/Web/Program.BlazorElectron.cs | 6 +- src/Client/Web/Program.BlazorServer.cs | 6 +- src/Client/Web/Program.BlazorWebAssembly.cs | 6 +- src/Client/Web/Program.cs | 2 +- src/Client/Web/Properties/launchSettings.json | 4 +- .../ServerSideAuthTokenProvider.cs | 2 +- .../Implementations/WebDeviceCoordinator.cs | 2 +- src/Client/Web/Startup/Middlewares.cs | 2 +- src/Client/Web/Startup/Services.cs | 4 +- src/Client/Web/electron.manifest.json | 8 +- src/Client/Web/wwwroot/manifest.json | 8 +- src/Client/Web/wwwroot/service-worker.js | 2 +- .../Web/wwwroot/service-worker.published.js | 2 +- src/Directory.Build.props | 114 ++++++++-------- src/Infra/Iac/AdStack.cs | 6 +- src/Infra/Iac/Bit.AdminPanel.Iac.csproj | 18 --- .../Iac/Bit.TemplatePlayground.Iac.csproj | 18 +++ src/Infra/Iac/Program.cs | 2 +- src/Infra/Iac/Pulumi.yaml | 4 +- src/Infra/Iac/Readme.md | 16 +-- src/Server/Api/.config/dotnet-tools.json | 12 ++ src/Server/Api/AppSettings.cs | 2 +- .../Api/Bit.AdminPanel.Server.Api.csproj | 101 -------------- .../Bit.TemplatePlayground.Server.Api.csproj | 101 ++++++++++++++ .../Api/Controllers/AppControllerBase.cs | 2 +- .../Api/Controllers/AttachmentController.cs | 4 +- .../Categories/CategoryController.cs | 8 +- .../Controllers/Identity/AuthController.cs | 14 +- .../Controllers/Identity/UserController.cs | 6 +- .../Products/DashboardController.cs | 4 +- .../Controllers/Products/ProductController.cs | 6 +- src/Server/Api/Data/AppDbContext.cs | 8 +- .../Category/CategoryConfiguration.cs | 4 +- .../Identity/RoleConfiguration.cs | 4 +- .../Identity/UserConfiguration.cs | 6 +- .../Product/ProductConfiguration.cs | 6 +- .../IApplicationBuilderExtensions.cs | 2 +- .../IServiceCollectionExtensions.cs | 12 +- src/Server/Api/Mappers/CategoriesMapper.cs | 6 +- src/Server/Api/Mappers/IdentityMapper.cs | 6 +- src/Server/Api/Mappers/ProductsMapper.cs | 6 +- .../HttpResponseExceptionHandlerMiddleware.cs | 2 +- ...230920195959_InitialMigration.Designer.cs} | 88 ++++++------- ....cs => 20230920195959_InitialMigration.cs} | 50 +++---- .../Migrations/AppDbContextModelSnapshot.cs | 86 ++++++------ src/Server/Api/Models/Categories/Category.cs | 4 +- .../Models/Emailing/EmailConfirmationModel.cs | 4 +- .../Api/Models/Emailing/ResetPasswordModel.cs | 4 +- src/Server/Api/Models/Identity/Role.cs | 2 +- src/Server/Api/Models/Identity/User.cs | 2 +- src/Server/Api/Models/Products/Product.cs | 4 +- src/Server/Api/Program.cs | 8 +- src/Server/Api/Properties/launchSettings.json | 4 +- .../Api/Resources/EmailConfirmation.cshtml | 4 +- .../Api/Resources/EmailStrings.Designer.cs | 14 +- src/Server/Api/Resources/EmailStrings.fr.resx | 6 +- src/Server/Api/Resources/EmailStrings.resx | 10 +- src/Server/Api/Resources/ResetPassword.cshtml | 4 +- .../Api/Services/Contracts/IJwtService.cs | 6 +- .../Contracts/IUserInformationProvider.cs | 2 +- .../Services/Implementations/JwtService.cs | 6 +- .../UserInformationProvider.cs | 2 +- src/Server/Api/Startup/Middlewares.cs | 2 +- src/Server/Api/Startup/Services.cs | 8 +- src/Server/Api/appsettings.json | 10 +- .../Attributes/DtoResourceTypeAttribute.cs | 2 +- src/Shared/Bit.AdminPanel.Shared.csproj | 42 ------ .../Bit.TemplatePlayground.Shared.csproj | 42 ++++++ src/Shared/Dtos/AppJsonContext.cs | 10 +- src/Shared/Dtos/Categories/CategoryDto.cs | 4 +- .../Dashboard/OverallAnalyticsStatsDataDto.cs | 2 +- .../ProductPercentagePerCategoryDto.cs | 2 +- .../Dtos/Dashboard/ProductSaleStatDto.cs | 2 +- .../Dashboard/ProductsCountPerCategoryDto.cs | 2 +- src/Shared/Dtos/Identity/EditUserDto.cs | 2 +- .../Dtos/Identity/EmailConfirmedRequestDto.cs | 2 +- .../Dtos/Identity/ResetPasswordRequestDto.cs | 2 +- src/Shared/Dtos/Identity/RoleDto.cs | 2 +- .../SendEmailConfirmLinkRequestDto.cs | 2 +- .../SendEmailForgotPasswordLinkRequestDto.cs | 2 +- src/Shared/Dtos/Identity/SignInRequestDto.cs | 2 +- src/Shared/Dtos/Identity/SignInResponseDto.cs | 2 +- src/Shared/Dtos/Identity/SignUpRequestDto.cs | 2 +- src/Shared/Dtos/Identity/UserDto.cs | 2 +- src/Shared/Dtos/PagedResultDto.cs | 2 +- src/Shared/Dtos/Products/ProductDto.cs | 2 +- src/Shared/Enums/EmailTemplate.cs | 2 +- src/Shared/Enums/Gender.cs | 2 +- src/Shared/Exceptions/BadRequestException.cs | 2 +- src/Shared/Exceptions/ConflictException.cs | 2 +- src/Shared/Exceptions/DomainLogicException.cs | 2 +- src/Shared/Exceptions/ErrorResourcePayload.cs | 2 +- src/Shared/Exceptions/ForbiddenException.cs | 2 +- src/Shared/Exceptions/KnownException.cs | 2 +- .../Exceptions/ResourceNotFoundException.cs | 2 +- .../Exceptions/ResourceValidationException.cs | 2 +- src/Shared/Exceptions/RestErrorInfo.cs | 2 +- src/Shared/Exceptions/RestException.cs | 2 +- .../Exceptions/TooManyRequestsExceptions.cs | 2 +- .../Exceptions/UnauthorizedException.cs | 2 +- src/Shared/Exceptions/UnknownException.cs | 2 +- .../IServiceCollectionExtensions.cs | 2 +- src/Shared/Infra/BlazorMode.cs | 2 +- src/Shared/Infra/BlazorModeDetector.cs | 2 +- src/Shared/Infra/BuildConfigurationMode.cs | 2 +- .../Infra/BuildConfigurationModeDetector.cs | 2 +- src/Shared/Infra/CultureInfoManager.cs | 2 +- src/Shared/Infra/WebAppDeploymentType.cs | 2 +- .../Infra/WebAppDeploymentTypeDetector.cs | 2 +- src/Shared/Mapper.cs | 8 +- src/Shared/Resources/AppStrings.Designer.cs | 4 +- .../Resources/StringLocalizerProvider.cs | 2 +- .../Services/Contracts/IAuthTokenProvider.cs | 2 +- .../Services/Contracts/IDateTimeProvider.cs | 2 +- .../Implementations/DateTimeProvider.cs | 2 +- 207 files changed, 1161 insertions(+), 1029 deletions(-) create mode 100644 .editorconfig rename Bit.AdminPanel.sln => Bit.TemplatePlayground.sln (80%) delete mode 100644 src/Client/App/Bit.AdminPanel.Client.App.csproj create mode 100644 src/Client/App/Bit.TemplatePlayground.Client.App.csproj delete mode 100644 src/Client/Core/Bit.AdminPanel.Client.Core.csproj create mode 100644 src/Client/Core/Bit.TemplatePlayground.Client.Core.csproj delete mode 100644 src/Client/Web/Bit.AdminPanel.Client.Web.csproj create mode 100644 src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj delete mode 100644 src/Infra/Iac/Bit.AdminPanel.Iac.csproj create mode 100644 src/Infra/Iac/Bit.TemplatePlayground.Iac.csproj create mode 100644 src/Server/Api/.config/dotnet-tools.json delete mode 100644 src/Server/Api/Bit.AdminPanel.Server.Api.csproj create mode 100644 src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj rename src/Server/Api/Migrations/{20230826212517_InitialMigration.Designer.cs => 20230920195959_InitialMigration.Designer.cs} (87%) rename src/Server/Api/Migrations/{20230826212517_InitialMigration.cs => 20230920195959_InitialMigration.cs} (88%) delete mode 100644 src/Shared/Bit.AdminPanel.Shared.csproj create mode 100644 src/Shared/Bit.TemplatePlayground.Shared.csproj diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3afb4b0..353a713 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,7 +5,7 @@ "cpus": 4 }, "waitFor": "onCreateCommand", - "onCreateCommand": "curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejs && dotnet dev-certs https --trust && dotnet tool install --global dotnet-ef && dotnet ef database update --project src/Server/Api/Bit.AdminPanel.Server.Api.csproj && dotnet build src/Client/Web/Bit.AdminPanel.Client.Web.csproj", + "onCreateCommand": "curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejs && dotnet dev-certs https --trust && dotnet tool install --global dotnet-ef --version 7.0.11 && dotnet ef database update --project src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj && dotnet build src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj", "customizations": { "codespaces": { "openFiles": [ @@ -45,5 +45,8 @@ 4031, 5030, 5031 - ] + ], + "remoteEnv": { + "ASPNETCORE_ENVIRONMENT": "Development" + } } \ No newline at end of file diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..09b151e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,124 @@ +# To learn more about .editorconfig see https://aka.ms/editorconfigdocs +############################### +# Core EditorConfig Options # +############################### +# All files +[*] +indent_style = space +indent_size = 4 +# Code files +[*.{cs,csx,vb,vbx}] +insert_final_newline = true +charset = utf-8-bom +############################### +# .NET Coding Conventions # +############################### +[*.{cs,vb}] +# Organize usings +dotnet_sort_system_directives_first = true +# this. preferences +dotnet_style_qualification_for_field = false:silent +dotnet_style_qualification_for_property = false:silent +dotnet_style_qualification_for_method = false:silent +dotnet_style_qualification_for_event = false:silent +# Language keywords vs BCL types preferences +dotnet_style_predefined_type_for_locals_parameters_members = true:silent +dotnet_style_predefined_type_for_member_access = true:silent +# Parentheses preferences +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent +dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent +dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent +# Modifier preferences +dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent +dotnet_style_readonly_field = true:suggestion +# Expression-level preferences +dotnet_style_object_initializer = true:suggestion +dotnet_style_collection_initializer = true:suggestion +dotnet_style_explicit_tuple_names = true:suggestion +dotnet_style_null_propagation = true:suggestion +dotnet_style_coalesce_expression = true:suggestion +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent +dotnet_style_prefer_inferred_tuple_names = true:suggestion +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_auto_properties = true:silent +dotnet_style_prefer_conditional_expression_over_assignment = true:silent +dotnet_style_prefer_conditional_expression_over_return = true:silent +############################### +# Naming Conventions # +############################### +# Style Definitions +dotnet_naming_style.pascal_case_style.capitalization = pascal_case +# Use PascalCase for constant fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style +dotnet_naming_symbols.constant_fields.applicable_kinds = field +dotnet_naming_symbols.constant_fields.applicable_accessibilities = * +dotnet_naming_symbols.constant_fields.required_modifiers = const +############################### +# C# Coding Conventions # +############################### +[*.cs] +# var preferences +csharp_style_namespace_declarations = file_scoped:warning +csharp_style_var_for_built_in_types = true:silent +csharp_style_var_when_type_is_apparent = true:silent +csharp_style_var_elsewhere = true:silent +# Expression-bodied members +csharp_style_expression_bodied_methods = false:silent +csharp_style_expression_bodied_constructors = false:silent +csharp_style_expression_bodied_operators = false:silent +csharp_style_expression_bodied_properties = true:silent +csharp_style_expression_bodied_indexers = true:silent +csharp_style_expression_bodied_accessors = true:silent +# Pattern matching preferences +csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion +csharp_style_pattern_matching_over_as_with_null_check = true:suggestion +# Null-checking preferences +csharp_style_throw_expression = true:suggestion +csharp_style_conditional_delegate_call = true:suggestion +# Modifier preferences +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion +# Expression-level preferences +csharp_prefer_braces = true:silent +csharp_style_deconstructed_variable_declaration = true:suggestion +csharp_prefer_simple_default_expression = true:suggestion +csharp_style_pattern_local_over_anonymous_function = true:suggestion +csharp_style_inlined_variable_declaration = true:suggestion +############################### +# C# Formatting Rules # +############################### +# New line preferences +csharp_new_line_before_open_brace = all +csharp_new_line_before_else = true +csharp_new_line_before_catch = true +csharp_new_line_before_finally = true +csharp_new_line_before_members_in_object_initializers = true +csharp_new_line_before_members_in_anonymous_types = true +csharp_new_line_between_query_expression_clauses = true +# Indentation preferences +csharp_indent_case_contents = true +csharp_indent_switch_labels = true +csharp_indent_labels = flush_left +# Space preferences +csharp_space_after_cast = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_between_method_call_parameter_list_parentheses = false +csharp_space_between_method_declaration_parameter_list_parentheses = false +csharp_space_between_parentheses = false +csharp_space_before_colon_in_inheritance_clause = true +csharp_space_after_colon_in_inheritance_clause = true +csharp_space_around_binary_operators = before_and_after +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false +csharp_space_between_method_call_name_and_opening_parenthesis = false +csharp_space_between_method_call_empty_parameter_list_parentheses = false +# Wrapping preferences +csharp_preserve_single_line_statements = true +csharp_preserve_single_line_blocks = true +############################### +# VB Coding Conventions # +############################### +[*.vb] +# Modifier preferences +visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ca303df..784bbad 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -1,12 +1,12 @@ -name: Bit.AdminPanel CD +name: Bit.TemplatePlayground CD # https://bitplatform.dev/templates/dev-ops env: WEB_APP_DEPLOYMENT_TYPE: 'Spa' - API_SERVER_ADDRESS: 'https://bit.adminpanel.bitplatform.dev/api/' + API_SERVER_ADDRESS: 'https://bit.templateplayground.bitplatform.dev/api/' APP_SERVICE_NAME: 'app-service-ad-test' - IOS_CODE_SIGN_PROVISION: 'Bit.AdminPanel' + IOS_CODE_SIGN_PROVISION: 'Bit.TemplatePlayground' on: workflow_dispatch: @@ -37,23 +37,23 @@ jobs: node-version: 18 - name: Switch to blazor web assembly - run: sed -i 's/Microsoft.NET.Sdk.Web/Microsoft.NET.Sdk.BlazorWebAssembly/g' src/Client/Web/Bit.AdminPanel.Client.Web.csproj + run: sed -i 's/Microsoft.NET.Sdk.Web/Microsoft.NET.Sdk.BlazorWebAssembly/g' src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj - name: Restore workloads run: > dotnet workload install wasm-experimental && - dotnet workload restore src/Client/Web/Bit.AdminPanel.Client.Web.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" + dotnet workload restore src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" - name: Build (To generate CSS/JS files) - run: dotnet build src/Server/Api/Bit.AdminPanel.Server.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release + run: dotnet build src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release - name: Publish - run: dotnet publish src/Server/Api/Bit.AdminPanel.Server.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/api-web + run: dotnet publish src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/api-web - name: Build migrations bundle run: | - dotnet tool install --global dotnet-ef --version 7.0.10 - dotnet ef migrations bundle --self-contained -r linux-x64 --project src/Server/Api/Bit.AdminPanel.Server.Api.csproj + dotnet tool install --global dotnet-ef --version 7.0.11 + dotnet ef migrations bundle --self-contained -r linux-x64 --project src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj - name: Upload ef migrations bundle uses: actions/upload-artifact@v3 @@ -150,13 +150,13 @@ jobs: run: dotnet workload install maui - name: Restore workloads - run: dotnet workload restore src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-windows10.0.19041.0 + run: dotnet workload restore src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-windows10.0.19041.0 - name: Build (To generate CSS/JS files) - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true -p:GenerateAppxPackageOnBuild=false -p:RuntimeIdentifier=win10-x86 -f net7.0-windows10.0.19041.0 + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true -p:GenerateAppxPackageOnBuild=false -p:RuntimeIdentifier=win10-x86 -f net7.0-windows10.0.19041.0 - name: Build exe - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true -p:GenerateAppxPackageOnBuild=false -p:RuntimeIdentifier=win10-x86 -f net7.0-windows10.0.19041.0 + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true -p:GenerateAppxPackageOnBuild=false -p:RuntimeIdentifier=win10-x86 -f net7.0-windows10.0.19041.0 - name: Upload artifact uses: actions/upload-artifact@v2 @@ -186,7 +186,7 @@ jobs: uses: timheuer/base64-to-file@v1 with: fileDir: './src/Client/App/' - fileName: 'Bit.AdminPanel.keystore' + fileName: 'Bit.TemplatePlayground.keystore' encodedString: ${{ secrets.ANDROID_RELEASE_KEYSTORE_FILE_BASE64 }} - name: Update appsettings.json api server address @@ -200,16 +200,16 @@ jobs: run: dotnet workload install maui - name: Restore workloads - run: dotnet workload restore src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-android + run: dotnet workload restore src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-android - name: Build (To generate CSS/JS files) - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:RunAOTCompilation=false -f net7.0-android + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:RunAOTCompilation=false -f net7.0-android - name: Build aab - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:AndroidPackageFormat=aab -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="Bit.AdminPanel.keystore" -p:AndroidSigningKeyAlias=Bit.AdminPanel -p:AndroidSigningKeyPass="${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD }}" -p:AndroidSigningStorePass="${{ secrets.ANDROID_RELEASE_SIGNING_PASSWORD }}" -f net7.0-android + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:AndroidPackageFormat=aab -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="Bit.TemplatePlayground.keystore" -p:AndroidSigningKeyAlias=Bit.TemplatePlayground -p:AndroidSigningKeyPass="${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD }}" -p:AndroidSigningStorePass="${{ secrets.ANDROID_RELEASE_SIGNING_PASSWORD }}" -f net7.0-android - name: Build apk - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="Bit.AdminPanel.keystore" -p:AndroidSigningKeyAlias=Bit.AdminPanel -p:AndroidSigningKeyPass="${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD }}" -p:AndroidSigningStorePass="${{ secrets.ANDROID_RELEASE_SIGNING_PASSWORD }}" -f net7.0-android + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="Bit.TemplatePlayground.keystore" -p:AndroidSigningKeyAlias=Bit.TemplatePlayground -p:AndroidSigningKeyPass="${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD }}" -p:AndroidSigningStorePass="${{ secrets.ANDROID_RELEASE_SIGNING_PASSWORD }}" -f net7.0-android - name: Upload artifact uses: actions/upload-artifact@v2 @@ -246,13 +246,13 @@ jobs: run: dotnet workload install maui - name: Restore workloads - run: dotnet workload restore src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-maccatalyst + run: dotnet workload restore src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-maccatalyst - name: Build (To generate CSS/JS files) - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-maccatalyst + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-maccatalyst - name: Build pkg - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:CreatePackage=true -f net7.0-maccatalyst + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:CreatePackage=true -f net7.0-maccatalyst - name: Upload artifact uses: actions/upload-artifact@v2 @@ -289,7 +289,7 @@ jobs: run: dotnet workload install maui - name: Restore workloads - run: dotnet workload restore src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-ios + run: dotnet workload restore src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-ios - name: Extract iOS code signing certificate from env uses: timheuer/base64-to-file@v1 @@ -307,16 +307,16 @@ jobs: - name: Download Apple Provisioning Profiles uses: Apple-Actions/download-provisioning-profiles@v1 with: - bundle-id: 'com.bitplatform.Bit.AdminPanel.Template' + bundle-id: 'com.bitplatform.Bit.TemplatePlayground.Template' issuer-id: ${{ secrets.APPSTORE_API_KEY_ISSUER_ID }} api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }} api-private-key: ${{ secrets.APPSTORE_API_KEY_PRIVATE_KEY }} - name: Build (To generate CSS/JS files) - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -m:1 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-ios + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -m:1 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-ios - name: Build ipa - run: dotnet publish src/Client/App/Bit.AdminPanel.Client.App.csproj -m:1 -p:RuntimeIdentifier=ios-arm64 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:ArchiveOnBuild=true -p:CodesignKey="iPhone Distribution" -p:CodesignProvision="${{ env.IOS_CODE_SIGN_PROVISION }}" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -f net7.0-ios + run: dotnet publish src/Client/App/Bit.TemplatePlayground.Client.App.csproj -m:1 -p:RuntimeIdentifier=ios-arm64 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:ArchiveOnBuild=true -p:CodesignKey="iPhone Distribution" -p:CodesignProvision="${{ env.IOS_CODE_SIGN_PROVISION }}" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -f net7.0-ios - name: Upload artifact uses: actions/upload-artifact@v2 @@ -358,10 +358,10 @@ jobs: run: awk '//{sub(">.*BlazorElectron temp.xml && mv temp.xml src/Directory.Build.props - name: Restore workloads - run: dotnet workload restore src/Client/Web/Bit.AdminPanel.Client.Web.csproj + run: dotnet workload restore src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj - name: Build (To generate CSS/JS files) - run: dotnet build src/Client/Web/Bit.AdminPanel.Client.Web.csproj -p:Configuration=Release + run: dotnet build src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj -p:Configuration=Release - name: Build app image run: cd src/Client/Web/ && dotnet electronize build /target linux diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec52182..9ff5154 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Bit.AdminPanel CI +name: Bit.TemplatePlayground CI # https://bitplatform.dev/templates/dev-ops @@ -31,7 +31,7 @@ jobs: node-version: 18 - name: Build - run: dotnet build src/Client/Web/Bit.AdminPanel.Client.Web.csproj -p:Configuration=Release -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" + run: dotnet build src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj -p:Configuration=Release -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" build-blazor-hybrid-android: name: build blazor hybrid (android) @@ -55,10 +55,10 @@ jobs: run: dotnet workload install maui - name: Restore workloads - run: dotnet workload restore src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-android + run: dotnet workload restore src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-android - name: Build - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:RunAOTCompilation=false -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-android + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:RunAOTCompilation=false -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-android build-blazor-hybrid-windows: name: build blazor hybrid (windows) @@ -82,10 +82,10 @@ jobs: run: dotnet workload install maui - name: Restore workloads - run: dotnet workload restore src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-windows10.0.19041.0 + run: dotnet workload restore src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-windows10.0.19041.0 - name: Build - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-windows10.0.19041.0 + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-windows10.0.19041.0 build-blazor-hybrid-iOS: name: build blazor hybrid (iOS) @@ -109,10 +109,10 @@ jobs: run: dotnet workload install maui - name: Restore workloads - run: dotnet workload restore src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-ios + run: dotnet workload restore src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-ios - name: Build - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-ios + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-ios build-blazor-hybrid-maccatalyst: name: build blazor hybrid (maccatalyst) @@ -136,10 +136,10 @@ jobs: run: dotnet workload install maui - name: Restore workloads - run: dotnet workload restore src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-maccatalyst + run: dotnet workload restore src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-maccatalyst - name: Build - run: dotnet build src/Client/App/Bit.AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-maccatalyst + run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net7.0-maccatalyst build-blazor-api-wasm: name: build blazor api + web assembly @@ -160,10 +160,10 @@ jobs: node-version: 18 - name: Switch to blazor wasm - run: sed -i 's/Microsoft.NET.Sdk.Web/Microsoft.NET.Sdk.BlazorWebAssembly/g' src/Client/Web/Bit.AdminPanel.Client.Web.csproj + run: sed -i 's/Microsoft.NET.Sdk.Web/Microsoft.NET.Sdk.BlazorWebAssembly/g' src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj - name: Restore workloads - run: dotnet workload restore src/Client/Web/Bit.AdminPanel.Client.Web.csproj -p:BlazorMode=BlazorWebAssembly + run: dotnet workload restore src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj -p:BlazorMode=BlazorWebAssembly - name: Build - run: dotnet build src/Server/Api/Bit.AdminPanel.Server.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:Configuration=Release -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" \ No newline at end of file + run: dotnet build src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:Configuration=Release -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" \ No newline at end of file diff --git a/.gitignore b/.gitignore index fb5c0bc..18cb576 100644 --- a/.gitignore +++ b/.gitignore @@ -221,7 +221,7 @@ ModelManifest.xml profile.arm.json -# Bit.AdminPanel +# Bit.TemplatePlayground *.map *Resource.designer.cs /**/*.css @@ -231,4 +231,4 @@ custom.aprof /src/Client/Core/wwwroot/scripts/app*.js -/src/Server/Api/Bit.AdminPanelDb.db* \ No newline at end of file +/src/Server/Api/Bit.TemplatePlaygroundDb.db* \ No newline at end of file diff --git a/Bit.AdminPanel.sln b/Bit.TemplatePlayground.sln similarity index 80% rename from Bit.AdminPanel.sln rename to Bit.TemplatePlayground.sln index c061627..697cef8 100644 --- a/Bit.AdminPanel.sln +++ b/Bit.TemplatePlayground.sln @@ -4,6 +4,7 @@ VisualStudioVersion = 17.0.31611.283 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".SolutionItems", ".SolutionItems", "{5CF43F76-BB71-4B5B-B4DF-1C753E042A8F}" ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig .gitignore = .gitignore Clean.bat = Clean.bat src\Directory.Build.props = src\Directory.Build.props @@ -17,17 +18,17 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{A97138 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Infra", "Infra", "{6271885D-B26B-49D2-AFC5-010A53B9D7BE}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.AdminPanel.Shared", "src\Shared\Bit.AdminPanel.Shared.csproj", "{26430D8C-32CB-4142-AC1A-33486A58DA01}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.TemplatePlayground.Shared", "src\Shared\Bit.TemplatePlayground.Shared.csproj", "{26430D8C-32CB-4142-AC1A-33486A58DA01}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.AdminPanel.Iac", "src\Infra\Iac\Bit.AdminPanel.Iac.csproj", "{E409C340-6F88-414A-A956-29D46B7C71C8}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.TemplatePlayground.Iac", "src\Infra\Iac\Bit.TemplatePlayground.Iac.csproj", "{E409C340-6F88-414A-A956-29D46B7C71C8}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.AdminPanel.Server.Api", "src\Server\Api\Bit.AdminPanel.Server.Api.csproj", "{8CC3E410-B716-4F4D-89C7-3392CA624439}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.TemplatePlayground.Server.Api", "src\Server\Api\Bit.TemplatePlayground.Server.Api.csproj", "{8CC3E410-B716-4F4D-89C7-3392CA624439}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.AdminPanel.Client.Core", "src\Client\Core\Bit.AdminPanel.Client.Core.csproj", "{FC60C68D-8E8D-494B-8D60-0C8D83A472E7}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.TemplatePlayground.Client.Core", "src\Client\Core\Bit.TemplatePlayground.Client.Core.csproj", "{FC60C68D-8E8D-494B-8D60-0C8D83A472E7}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.AdminPanel.Client.Web", "src\Client\Web\Bit.AdminPanel.Client.Web.csproj", "{13D6A40B-8B8B-41F0-AB62-3F5F1CB58A1B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.TemplatePlayground.Client.Web", "src\Client\Web\Bit.TemplatePlayground.Client.Web.csproj", "{13D6A40B-8B8B-41F0-AB62-3F5F1CB58A1B}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.AdminPanel.Client.App", "src\Client\App\Bit.AdminPanel.Client.App.csproj", "{22816913-64D5-4AE8-9B34-6F188B71FAD1}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bit.TemplatePlayground.Client.App", "src\Client\App\Bit.TemplatePlayground.Client.App.csproj", "{22816913-64D5-4AE8-9B34-6F188B71FAD1}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{3E577755-186F-4E63-8153-B8DE890015C9}" EndProject diff --git a/README.md b/README.md index 09d8a8d..e197c93 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@ Experience lightning-fast speeds and seamless integration as you dive into the w 2- Open new terminal in vscode and run: -`dotnet watch --project src/Server/Api/Bit.AdminPanel.Server.Api.csproj` +`dotnet watch --project src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj` 3- Open another terminal in vscode and run: -`dotnet watch --project src/Client/Web/Bit.AdminPanel.Client.Web.csproj` +`dotnet watch --project src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj` 4- Sign in using `test@bitplatform.dev` and `123456` and explorer admin panel features! diff --git a/src/Client/App/App.xaml b/src/Client/App/App.xaml index 72f85d6..0d8a740 100644 --- a/src/Client/App/App.xaml +++ b/src/Client/App/App.xaml @@ -1,8 +1,8 @@  diff --git a/src/Client/App/App.xaml.cs b/src/Client/App/App.xaml.cs index d493039..f140d2c 100644 --- a/src/Client/App/App.xaml.cs +++ b/src/Client/App/App.xaml.cs @@ -1,6 +1,6 @@ [assembly: XamlCompilation(XamlCompilationOptions.Compile)] -namespace Bit.AdminPanel.Client.App; +namespace Bit.TemplatePlayground.Client.App; public partial class App { diff --git a/src/Client/App/Bit.AdminPanel.Client.App.csproj b/src/Client/App/Bit.AdminPanel.Client.App.csproj deleted file mode 100644 index 2a58e34..0000000 --- a/src/Client/App/Bit.AdminPanel.Client.App.csproj +++ /dev/null @@ -1,108 +0,0 @@ - - - - net7.0-android;net7.0-ios;net7.0-maccatalyst - $(TargetFrameworks);net7.0-windows10.0.19041.0 - net7.0-android - - - Exe - true - true - false - - - Bit.AdminPanel - - - com.bitplatform.Bit.AdminPanel.Template - 9A9DE35E-5533-4C08-A504-7537CBE319C8 - - - 1.0 - 1 - - - True - - $(NoWarn);ClassWithoutModifierAnalyzer - enable - - - - true - apk - android-arm - false - - - - Full - true - True - all - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - diff --git a/src/Client/App/Bit.TemplatePlayground.Client.App.csproj b/src/Client/App/Bit.TemplatePlayground.Client.App.csproj new file mode 100644 index 0000000..1477f97 --- /dev/null +++ b/src/Client/App/Bit.TemplatePlayground.Client.App.csproj @@ -0,0 +1,108 @@ + + + + net7.0-android;net7.0-ios;net7.0-maccatalyst + $(TargetFrameworks);net7.0-windows10.0.19041.0 + net7.0-android + + + Exe + true + true + false + + + Bit.TemplatePlayground + + + com.bitplatform.Bit.TemplatePlayground.Template + 73E4BE29-BCCC-4018-B9DE-231918FD09B4 + + + 1.0 + 1 + + + True + + $(NoWarn);ClassWithoutModifierAnalyzer + enable + + + + true + apk + android-arm + false + + + + Full + true + True + all + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + diff --git a/src/Client/App/Extensions/IServiceCollectionExtensions.cs b/src/Client/App/Extensions/IServiceCollectionExtensions.cs index 6416d84..23a9f3e 100644 --- a/src/Client/App/Extensions/IServiceCollectionExtensions.cs +++ b/src/Client/App/Extensions/IServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -using Bit.AdminPanel.Client.App; -using Bit.AdminPanel.Client.App.Services; +using Bit.TemplatePlayground.Client.App; +using Bit.TemplatePlayground.Client.App.Services; namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/Client/App/MainPage.xaml b/src/Client/App/MainPage.xaml index c7e00cc..7ff7776 100644 --- a/src/Client/App/MainPage.xaml +++ b/src/Client/App/MainPage.xaml @@ -1,9 +1,9 @@ - + - - + + appicon.xhigh.png diff --git a/src/Client/App/Platforms/Windows/App.xaml b/src/Client/App/Platforms/Windows/App.xaml index 5849dca..b198785 100644 --- a/src/Client/App/Platforms/Windows/App.xaml +++ b/src/Client/App/Platforms/Windows/App.xaml @@ -1,5 +1,5 @@  diff --git a/src/Client/App/Platforms/Windows/App.xaml.cs b/src/Client/App/Platforms/Windows/App.xaml.cs index 5f271b4..d15fec3 100644 --- a/src/Client/App/Platforms/Windows/App.xaml.cs +++ b/src/Client/App/Platforms/Windows/App.xaml.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Client.App.Platforms.Windows; +namespace Bit.TemplatePlayground.Client.App.Platforms.Windows; public partial class App { diff --git a/src/Client/App/Platforms/Windows/app.manifest b/src/Client/App/Platforms/Windows/app.manifest index 2c041e8..a736443 100644 --- a/src/Client/App/Platforms/Windows/app.manifest +++ b/src/Client/App/Platforms/Windows/app.manifest @@ -1,6 +1,6 @@ - + diff --git a/src/Client/App/Platforms/iOS/AppDelegate.cs b/src/Client/App/Platforms/iOS/AppDelegate.cs index 6bb250e..7829a0d 100644 --- a/src/Client/App/Platforms/iOS/AppDelegate.cs +++ b/src/Client/App/Platforms/iOS/AppDelegate.cs @@ -1,6 +1,6 @@ using Foundation; -namespace Bit.AdminPanel.Client.App.Platforms.iOS; +namespace Bit.TemplatePlayground.Client.App.Platforms.iOS; [Register(nameof(AppDelegate))] public class AppDelegate : MauiUIApplicationDelegate diff --git a/src/Client/App/Platforms/iOS/LinkDesc.xml b/src/Client/App/Platforms/iOS/LinkDesc.xml index b6d8876..a4de27d 100644 --- a/src/Client/App/Platforms/iOS/LinkDesc.xml +++ b/src/Client/App/Platforms/iOS/LinkDesc.xml @@ -4,7 +4,7 @@ - + @@ -12,11 +12,11 @@ - + - + diff --git a/src/Client/App/Platforms/iOS/Program.cs b/src/Client/App/Platforms/iOS/Program.cs index d5fa556..e325020 100644 --- a/src/Client/App/Platforms/iOS/Program.cs +++ b/src/Client/App/Platforms/iOS/Program.cs @@ -1,6 +1,6 @@ using UIKit; -namespace Bit.AdminPanel.Client.App.Platforms.iOS; +namespace Bit.TemplatePlayground.Client.App.Platforms.iOS; public class Program { diff --git a/src/Client/App/Services/AppDeviceCoordinator.cs b/src/Client/App/Services/AppDeviceCoordinator.cs index 57b0c5e..4841842 100644 --- a/src/Client/App/Services/AppDeviceCoordinator.cs +++ b/src/Client/App/Services/AppDeviceCoordinator.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Client.App.Services; +namespace Bit.TemplatePlayground.Client.App.Services; /// /// More info at diff --git a/src/Client/App/wwwroot/index.html b/src/Client/App/wwwroot/index.html index 7dc952f..fd0e929 100644 --- a/src/Client/App/wwwroot/index.html +++ b/src/Client/App/wwwroot/index.html @@ -17,22 +17,8 @@ - - - - + + - }
@if (isSpa || isPwa || noPrerender) { - + } - - + + @RenderBody()
@@ -140,7 +124,7 @@ } - + @if ((isSpaPrerendered || isPwaPrerendered) && !noPrerender) { diff --git a/src/Client/Web/Program.BlazorElectron.cs b/src/Client/Web/Program.BlazorElectron.cs index 4cd24d1..a312d1f 100644 --- a/src/Client/Web/Program.BlazorElectron.cs +++ b/src/Client/Web/Program.BlazorElectron.cs @@ -1,11 +1,11 @@ -using Bit.AdminPanel.Client.Core.Shared; +using Bit.TemplatePlayground.Client.Core.Shared; #if BlazorElectron using ElectronNET.API; using ElectronNET.API.Entities; #endif -namespace Bit.AdminPanel.Client.Web; +namespace Bit.TemplatePlayground.Client.Web; public partial class Program { @@ -14,7 +14,7 @@ public static WebApplication CreateHostBuilder(string[] args) { var builder = WebApplication.CreateBuilder(args); - builder.Configuration.AddJsonStream(typeof(MainLayout).Assembly.GetManifestResourceStream("Bit.AdminPanel.Client.Core.appsettings.json")!); + builder.Configuration.AddJsonStream(typeof(MainLayout).Assembly.GetManifestResourceStream("Bit.TemplatePlayground.Client.Core.appsettings.json")!); builder.WebHost.UseElectron(args); builder.Services.AddElectron(); diff --git a/src/Client/Web/Program.BlazorServer.cs b/src/Client/Web/Program.BlazorServer.cs index 325b9aa..15902b3 100644 --- a/src/Client/Web/Program.BlazorServer.cs +++ b/src/Client/Web/Program.BlazorServer.cs @@ -1,10 +1,10 @@ -using Bit.AdminPanel.Client.Core.Shared; +using Bit.TemplatePlayground.Client.Core.Shared; #if BlazorServer using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; #endif -namespace Bit.AdminPanel.Client.Web; +namespace Bit.TemplatePlayground.Client.Web; public partial class Program { @@ -13,7 +13,7 @@ public static WebApplication CreateHostBuilder(string[] args) { var builder = WebApplication.CreateBuilder(args); - builder.Configuration.AddJsonStream(typeof(MainLayout).Assembly.GetManifestResourceStream("Bit.AdminPanel.Client.Core.appsettings.json")!); + builder.Configuration.AddJsonStream(typeof(MainLayout).Assembly.GetManifestResourceStream("Bit.TemplatePlayground.Client.Core.appsettings.json")!); #if DEBUG if (OperatingSystem.IsWindows()) diff --git a/src/Client/Web/Program.BlazorWebAssembly.cs b/src/Client/Web/Program.BlazorWebAssembly.cs index b6e9e72..c62fe64 100644 --- a/src/Client/Web/Program.BlazorWebAssembly.cs +++ b/src/Client/Web/Program.BlazorWebAssembly.cs @@ -1,10 +1,10 @@ -using Bit.AdminPanel.Client.Core.Shared; +using Bit.TemplatePlayground.Client.Core.Shared; #if BlazorWebAssembly using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.AspNetCore.Components.WebAssembly.Services; #endif -namespace Bit.AdminPanel.Client.Web; +namespace Bit.TemplatePlayground.Client.Web; public partial class Program { @@ -13,7 +13,7 @@ public static WebAssemblyHost CreateHostBuilder(string[] args) { var builder = WebAssemblyHostBuilder.CreateDefault(); - builder.Configuration.AddJsonStream(typeof(MainLayout).Assembly.GetManifestResourceStream("Bit.AdminPanel.Client.Core.appsettings.json")!); + builder.Configuration.AddJsonStream(typeof(MainLayout).Assembly.GetManifestResourceStream("Bit.TemplatePlayground.Client.Core.appsettings.json")!); var apiServerAddressConfig = builder.Configuration.GetApiServerAddress(); diff --git a/src/Client/Web/Program.cs b/src/Client/Web/Program.cs index 778284c..215ba2f 100644 --- a/src/Client/Web/Program.cs +++ b/src/Client/Web/Program.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Client.Web; +namespace Bit.TemplatePlayground.Client.Web; public partial class Program { diff --git a/src/Client/Web/Properties/launchSettings.json b/src/Client/Web/Properties/launchSettings.json index 0c70cbd..852c2bb 100644 --- a/src/Client/Web/Properties/launchSettings.json +++ b/src/Client/Web/Properties/launchSettings.json @@ -1,6 +1,6 @@ { "profiles": { - "Bit.AdminPanel.Client.Web": { + "Bit.TemplatePlayground.Client.Web": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, @@ -9,7 +9,7 @@ }, "applicationUrl": "https://localhost:4031;http://localhost:4030" }, - "Bit.AdminPanel.Client.Web.Electron": { + "Bit.TemplatePlayground.Client.Web.Electron": { "commandName": "Executable", "executablePath": "dotnet", "commandLineArgs": "electronize start", diff --git a/src/Client/Web/Services/Implementations/ServerSideAuthTokenProvider.cs b/src/Client/Web/Services/Implementations/ServerSideAuthTokenProvider.cs index 4114731..168c23c 100644 --- a/src/Client/Web/Services/Implementations/ServerSideAuthTokenProvider.cs +++ b/src/Client/Web/Services/Implementations/ServerSideAuthTokenProvider.cs @@ -2,7 +2,7 @@ using System.Reflection; #endif -namespace Bit.AdminPanel.Client.Web.Services.Implementations; +namespace Bit.TemplatePlayground.Client.Web.Services.Implementations; /// /// The reads the token from the cookie, diff --git a/src/Client/Web/Services/Implementations/WebDeviceCoordinator.cs b/src/Client/Web/Services/Implementations/WebDeviceCoordinator.cs index 471d3e5..2c0ccad 100644 --- a/src/Client/Web/Services/Implementations/WebDeviceCoordinator.cs +++ b/src/Client/Web/Services/Implementations/WebDeviceCoordinator.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Client.Web.Services.Implementations; +namespace Bit.TemplatePlayground.Client.Web.Services.Implementations; public class WebDeviceCoordinator : IBitDeviceCoordinator { diff --git a/src/Client/Web/Startup/Middlewares.cs b/src/Client/Web/Startup/Middlewares.cs index 9e96446..c421a2f 100644 --- a/src/Client/Web/Startup/Middlewares.cs +++ b/src/Client/Web/Startup/Middlewares.cs @@ -1,6 +1,6 @@ #if BlazorServer -namespace Bit.AdminPanel.Client.Web.Startup; +namespace Bit.TemplatePlayground.Client.Web.Startup; public class Middlewares { diff --git a/src/Client/Web/Startup/Services.cs b/src/Client/Web/Startup/Services.cs index 88ffb5f..791f3a7 100644 --- a/src/Client/Web/Startup/Services.cs +++ b/src/Client/Web/Startup/Services.cs @@ -1,9 +1,9 @@ #if BlazorServer using System.IO.Compression; using Microsoft.AspNetCore.ResponseCompression; -using Bit.AdminPanel.Client.Web.Services.Implementations; +using Bit.TemplatePlayground.Client.Web.Services.Implementations; -namespace Bit.AdminPanel.Client.Web.Startup; +namespace Bit.TemplatePlayground.Client.Web.Startup; public static class Services { diff --git a/src/Client/Web/electron.manifest.json b/src/Client/Web/electron.manifest.json index 0be7338..5edf63f 100644 --- a/src/Client/Web/electron.manifest.json +++ b/src/Client/Web/electron.manifest.json @@ -1,15 +1,15 @@ { - "executable": "Bit.AdminPanel.Client.Web", + "executable": "Bit.TemplatePlayground.Client.Web", "splashscreen": { "imageFile": "" }, - "name": "Bit.AdminPanel", + "name": "Bit.TemplatePlayground", "author": "", "singleInstance": true, "environment": "Production", "build": { - "appId": "com.Bit.AdminPanel.Client.Web.app", - "productName": "Bit.AdminPanel.Client.Web", + "appId": "com.Bit.TemplatePlayground.Client.Web.app", + "productName": "Bit.TemplatePlayground.Client.Web", "copyright": "Copyright © 2023", "buildVersion": "1.0.0", "compression": "maximum", diff --git a/src/Client/Web/wwwroot/manifest.json b/src/Client/Web/wwwroot/manifest.json index c080cfa..77faccb 100644 --- a/src/Client/Web/wwwroot/manifest.json +++ b/src/Client/Web/wwwroot/manifest.json @@ -4,16 +4,16 @@ "scope": "/", "start_url": "/", "orientation": "any", - "id": "bitBit.AdminPanel", + "id": "bitBit.TemplatePlayground", "display": "standalone", "theme_color": "#2EA3FF", "related_applications": [], - "name": "bit Bit.AdminPanel", + "name": "bit Bit.TemplatePlayground", "background_color": "#0D1117", - "short_name": "bit Bit.AdminPanel", + "short_name": "bit Bit.TemplatePlayground", "prefer_related_applications": false, "display_override": [ "window-controls-overlay" ], - "description": "bit Bit.AdminPanel is a project template that includes all the necessary parts to create a fully-featured admin/management website.", + "description": "bit Bit.TemplatePlayground is a project template that includes all the necessary parts to create a fully-featured admin/management website.", "features": [ "Cross Platform", "fast", diff --git a/src/Client/Web/wwwroot/service-worker.js b/src/Client/Web/wwwroot/service-worker.js index bba227b..08e013b 100644 --- a/src/Client/Web/wwwroot/service-worker.js +++ b/src/Client/Web/wwwroot/service-worker.js @@ -1,4 +1,4 @@ -// bit version: 5.5.0 +// bit version: 5.6.0 // https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup // Make sure to apply all changes you make here to the service-worker.published.js file too (if required). diff --git a/src/Client/Web/wwwroot/service-worker.published.js b/src/Client/Web/wwwroot/service-worker.published.js index 155f973..d4c289c 100644 --- a/src/Client/Web/wwwroot/service-worker.published.js +++ b/src/Client/Web/wwwroot/service-worker.published.js @@ -1,4 +1,4 @@ -// bit version: 5.5.0 +// bit version: 5.6.0 // https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup self.assetsInclude = []; diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 310fc19..01ab83c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,68 +1,68 @@ - + - + - BlazorServer - - + BlazorServer + + - Spa - - + Spa + + - true - $(DefineConstants);BlazorElectron - Spa - BlazorServer + true + $(DefineConstants);BlazorElectron + Spa + BlazorServer - $(DefineConstants);BlazorWebAssembly - $(DefineConstants);BlazorServer - $(DefineConstants);BlazorHybrid - $(DefineConstants);Spa - $(DefineConstants);Pwa - $(DefineConstants);SpaPrerendered - $(DefineConstants);PwaPrerendered - $(DefineConstants);PrerenderedOnly - $(DefineConstants);Android - $(DefineConstants);iOS - $(DefineConstants);Windows - $(DefineConstants);Mac + $(DefineConstants);BlazorWebAssembly + $(DefineConstants);BlazorServer + $(DefineConstants);BlazorHybrid + $(DefineConstants);Spa + $(DefineConstants);Pwa + $(DefineConstants);SpaPrerendered + $(DefineConstants);PwaPrerendered + $(DefineConstants);PrerenderedOnly + $(DefineConstants);Android + $(DefineConstants);iOS + $(DefineConstants);Windows + $(DefineConstants);Mac - 11.0 - enable - enable - true - $(NoWarn);CS1591 + 11.0 + enable + enable + true + $(NoWarn);CS1591 - en - true - $(DefineConstants);MultilingualEnabled + en + true + $(DefineConstants);MultilingualEnabled - 14.2 - 14.0 - 24.0 - 10.0.17763.0 - 10.0.17763.0 - 6.5 - + 14.2 + 14.0 + 24.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/src/Infra/Iac/AdStack.cs b/src/Infra/Iac/AdStack.cs index 11b11a5..6d07dcc 100644 --- a/src/Infra/Iac/AdStack.cs +++ b/src/Infra/Iac/AdStack.cs @@ -18,7 +18,7 @@ using VaultSkuName = Pulumi.AzureNative.KeyVault.SkuName; using WebAppManagedServiceIdentityArgs = Pulumi.AzureNative.Web.Inputs.ManagedServiceIdentityArgs; -namespace Bit.AdminPanel.Iac; +namespace Bit.TemplatePlayground.Iac; public class AdStack : Stack { @@ -131,7 +131,7 @@ public AdStack() NetFrameworkVersion = "v7.0", FtpsState = FtpsState.Disabled, LinuxFxVersion = "DOTNETCORE|7.0", - AppCommandLine = "dotnet Bit.AdminPanel.Server.Api.dll", + AppCommandLine = "dotnet Bit.TemplatePlayground.Server.Api.dll", AppSettings = new() { new NameValuePairArgs { Name = "ApplicationInsights__InstrumentationKey", Value = appInsights.InstrumentationKey }, @@ -268,7 +268,7 @@ public AdStack() Value = Output.Tuple(sqlServer.Name, sqlDatabase.Name, sqlDatabaseDbAdminPassword).Apply(t => { (string _sqlServer, string _sqlDatabase, string _sqlDatabasePassword) = t; - return $"Data Source=tcp:{_sqlServer}.database.windows.net;Initial Catalog={_sqlDatabase};User ID={sqlDatabaseDbAdminId};Password={_sqlDatabasePassword};Application Name=Bit.AdminPanel;Encrypt=True;"; + return $"Data Source=tcp:{_sqlServer}.database.windows.net;Initial Catalog={_sqlDatabase};User ID={sqlDatabaseDbAdminId};Password={_sqlDatabasePassword};Application Name=Bit.TemplatePlayground;Encrypt=True;"; }) } }); diff --git a/src/Infra/Iac/Bit.AdminPanel.Iac.csproj b/src/Infra/Iac/Bit.AdminPanel.Iac.csproj deleted file mode 100644 index 4487d61..0000000 --- a/src/Infra/Iac/Bit.AdminPanel.Iac.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - Exe - net7.0 - enable - enable - - - - - - - - - - - diff --git a/src/Infra/Iac/Bit.TemplatePlayground.Iac.csproj b/src/Infra/Iac/Bit.TemplatePlayground.Iac.csproj new file mode 100644 index 0000000..f664b26 --- /dev/null +++ b/src/Infra/Iac/Bit.TemplatePlayground.Iac.csproj @@ -0,0 +1,18 @@ + + + + Exe + net7.0 + enable + enable + + + + + + + + + + + diff --git a/src/Infra/Iac/Program.cs b/src/Infra/Iac/Program.cs index ce9edf3..430d40a 100644 --- a/src/Infra/Iac/Program.cs +++ b/src/Infra/Iac/Program.cs @@ -1,5 +1,5 @@ using Pulumi; -using Bit.AdminPanel.Iac; +using Bit.TemplatePlayground.Iac; public class Program { diff --git a/src/Infra/Iac/Pulumi.yaml b/src/Infra/Iac/Pulumi.yaml index 954de65..5218414 100644 --- a/src/Infra/Iac/Pulumi.yaml +++ b/src/Infra/Iac/Pulumi.yaml @@ -1,3 +1,3 @@ -name: Bit.AdminPanel.Iac +name: Bit.TemplatePlayground.Iac runtime: dotnet -description: Bit.AdminPanel infrastructure as a code +description: Bit.TemplatePlayground infrastructure as a code diff --git a/src/Infra/Iac/Readme.md b/src/Infra/Iac/Readme.md index b90a53f..5669b43 100644 --- a/src/Infra/Iac/Readme.md +++ b/src/Infra/Iac/Readme.md @@ -86,18 +86,18 @@ pulumi config set azure-native:tenantId pulumi config set azure-native:subscriptionId # Provide SQL server's admin user/pass -pulumi config set Bit.AdminPanel.Iac:sql-server-ad-db-admin-id -pulumi config set Bit.AdminPanel.Iac:sql-server-ad-db-admin-password --secret +pulumi config set Bit.TemplatePlayground.Iac:sql-server-ad-db-admin-id +pulumi config set Bit.TemplatePlayground.Iac:sql-server-ad-db-admin-password --secret # Provide SMTP server's host, port, user, pass and default email sender. -pulumi config set Bit.AdminPanel.Iac:default-email-from -pulumi config set Bit.AdminPanel.Iac:email-server-host -pulumi config set Bit.AdminPanel.Iac:email-server-port -pulumi config set Bit.AdminPanel.Iac:email-server-userName -pulumi config set Bit.AdminPanel.Iac:email-server-password --secret +pulumi config set Bit.TemplatePlayground.Iac:default-email-from +pulumi config set Bit.TemplatePlayground.Iac:email-server-host +pulumi config set Bit.TemplatePlayground.Iac:email-server-port +pulumi config set Bit.TemplatePlayground.Iac:email-server-userName +pulumi config set Bit.TemplatePlayground.Iac:email-server-password --secret # Create and provide an identity certificate password -pulumi config set Bit.AdminPanel.Iac:identity-certificate-password --secret +pulumi config set Bit.TemplatePlayground.Iac:identity-certificate-password --secret ``` 9- Create azure resources using: diff --git a/src/Server/Api/.config/dotnet-tools.json b/src/Server/Api/.config/dotnet-tools.json new file mode 100644 index 0000000..96be437 --- /dev/null +++ b/src/Server/Api/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "7.0.11", + "commands": [ + "dotnet-ef" + ] + } + } +} \ No newline at end of file diff --git a/src/Server/Api/AppSettings.cs b/src/Server/Api/AppSettings.cs index f2fa89f..c0de68f 100644 --- a/src/Server/Api/AppSettings.cs +++ b/src/Server/Api/AppSettings.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Server.Api; +namespace Bit.TemplatePlayground.Server.Api; public class AppSettings { diff --git a/src/Server/Api/Bit.AdminPanel.Server.Api.csproj b/src/Server/Api/Bit.AdminPanel.Server.Api.csproj deleted file mode 100644 index b3e3f41..0000000 --- a/src/Server/Api/Bit.AdminPanel.Server.Api.csproj +++ /dev/null @@ -1,101 +0,0 @@ - - - - net7.0 - - false - true - true - - - - - - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - True - True - $([System.String]::Copy('%(Filename)').Replace('.Designer','')).resx - - - PublicResXFileCodeGenerator - %(Filename).Designer.cs - - - - - - Always - - - - diff --git a/src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj b/src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj new file mode 100644 index 0000000..25d6b13 --- /dev/null +++ b/src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj @@ -0,0 +1,101 @@ + + + + net7.0 + + false + true + true + + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + True + $([System.String]::Copy('%(Filename)').Replace('.Designer','')).resx + + + PublicResXFileCodeGenerator + %(Filename).Designer.cs + + + + + + Always + + + + diff --git a/src/Server/Api/Controllers/AppControllerBase.cs b/src/Server/Api/Controllers/AppControllerBase.cs index 0b4a7b2..9509a85 100644 --- a/src/Server/Api/Controllers/AppControllerBase.cs +++ b/src/Server/Api/Controllers/AppControllerBase.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Server.Api.Controllers; +namespace Bit.TemplatePlayground.Server.Api.Controllers; public partial class AppControllerBase : ControllerBase { diff --git a/src/Server/Api/Controllers/AttachmentController.cs b/src/Server/Api/Controllers/AttachmentController.cs index c22d3f6..ce8bbf0 100644 --- a/src/Server/Api/Controllers/AttachmentController.cs +++ b/src/Server/Api/Controllers/AttachmentController.cs @@ -1,10 +1,10 @@ using Microsoft.Extensions.Primitives; using MimeTypes; -using Bit.AdminPanel.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Server.Api.Models.Identity; using SystemFile = System.IO.File; using ImageMagick; -namespace Bit.AdminPanel.Server.Api.Controllers; +namespace Bit.TemplatePlayground.Server.Api.Controllers; [Route("api/[controller]/[action]")] [ApiController] diff --git a/src/Server/Api/Controllers/Categories/CategoryController.cs b/src/Server/Api/Controllers/Categories/CategoryController.cs index 1295c79..5cb3313 100644 --- a/src/Server/Api/Controllers/Categories/CategoryController.cs +++ b/src/Server/Api/Controllers/Categories/CategoryController.cs @@ -1,8 +1,8 @@ -using Bit.AdminPanel.Server.Api.Models; -using Bit.AdminPanel.Server.Api.Models.Categories; -using Bit.AdminPanel.Shared.Dtos.Categories; +using Bit.TemplatePlayground.Server.Api.Models; +using Bit.TemplatePlayground.Server.Api.Models.Categories; +using Bit.TemplatePlayground.Shared.Dtos.Categories; -namespace Bit.AdminPanel.Server.Api.Controllers; +namespace Bit.TemplatePlayground.Server.Api.Controllers; [Route("api/[controller]/[action]")] [ApiController] diff --git a/src/Server/Api/Controllers/Identity/AuthController.cs b/src/Server/Api/Controllers/Identity/AuthController.cs index be5ebde..23b4632 100644 --- a/src/Server/Api/Controllers/Identity/AuthController.cs +++ b/src/Server/Api/Controllers/Identity/AuthController.cs @@ -1,11 +1,11 @@ using System.Web; using FluentEmail.Core; -using Bit.AdminPanel.Server.Api.Resources; -using Bit.AdminPanel.Server.Api.Models.Identity; -using Bit.AdminPanel.Shared.Dtos.Identity; -using Bit.AdminPanel.Server.Api.Models.Emailing; +using Bit.TemplatePlayground.Server.Api.Resources; +using Bit.TemplatePlayground.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Shared.Dtos.Identity; +using Bit.TemplatePlayground.Server.Api.Models.Emailing; -namespace Bit.AdminPanel.Server.Api.Controllers; +namespace Bit.TemplatePlayground.Server.Api.Controllers; [Route("api/[controller]/[action]")] [ApiController, AllowAnonymous] @@ -89,7 +89,7 @@ private async Task SendConfirmationEmail(SendConfirmationEmailRequestDto sendCon var result = await _fluentEmail .To(user.Email, user.DisplayName) .Subject(_emailLocalizer[EmailStrings.ConfirmationEmailSubject]) - .UsingTemplateFromEmbedded("Bit.AdminPanel.Server.Api.Resources.EmailConfirmation.cshtml", + .UsingTemplateFromEmbedded("Bit.TemplatePlayground.Server.Api.Resources.EmailConfirmation.cshtml", new EmailConfirmationModel { ConfirmationLink = confirmationLink, @@ -135,7 +135,7 @@ public async Task SendResetPasswordEmail(SendResetPasswordEmailRequestDto sendRe var result = await _fluentEmail .To(user.Email, user.DisplayName) .Subject(_emailLocalizer[EmailStrings.ResetPasswordEmailSubject]) - .UsingTemplateFromEmbedded("Bit.AdminPanel.Server.Api.Resources.ResetPassword.cshtml", + .UsingTemplateFromEmbedded("Bit.TemplatePlayground.Server.Api.Resources.ResetPassword.cshtml", new ResetPasswordModel { DisplayName = user.DisplayName, diff --git a/src/Server/Api/Controllers/Identity/UserController.cs b/src/Server/Api/Controllers/Identity/UserController.cs index 857fc1d..84020e4 100644 --- a/src/Server/Api/Controllers/Identity/UserController.cs +++ b/src/Server/Api/Controllers/Identity/UserController.cs @@ -1,7 +1,7 @@ -using Bit.AdminPanel.Server.Api.Models.Identity; -using Bit.AdminPanel.Shared.Dtos.Identity; +using Bit.TemplatePlayground.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Shared.Dtos.Identity; -namespace Bit.AdminPanel.Server.Api.Controllers.Identity; +namespace Bit.TemplatePlayground.Server.Api.Controllers.Identity; [Route("api/[controller]/[action]")] [ApiController] diff --git a/src/Server/Api/Controllers/Products/DashboardController.cs b/src/Server/Api/Controllers/Products/DashboardController.cs index 1c76f98..7388f7f 100644 --- a/src/Server/Api/Controllers/Products/DashboardController.cs +++ b/src/Server/Api/Controllers/Products/DashboardController.cs @@ -1,6 +1,6 @@ -using Bit.AdminPanel.Shared.Dtos.Dashboard; +using Bit.TemplatePlayground.Shared.Dtos.Dashboard; -namespace Bit.AdminPanel.Server.Api.Controllers; +namespace Bit.TemplatePlayground.Server.Api.Controllers; [Route("api/[controller]/[action]")] [ApiController] diff --git a/src/Server/Api/Controllers/Products/ProductController.cs b/src/Server/Api/Controllers/Products/ProductController.cs index 36de2a0..4864cb5 100644 --- a/src/Server/Api/Controllers/Products/ProductController.cs +++ b/src/Server/Api/Controllers/Products/ProductController.cs @@ -1,7 +1,7 @@ -using Bit.AdminPanel.Server.Api.Models.Products; -using Bit.AdminPanel.Shared.Dtos.Products; +using Bit.TemplatePlayground.Server.Api.Models.Products; +using Bit.TemplatePlayground.Shared.Dtos.Products; -namespace Bit.AdminPanel.Server.Api.Controllers; +namespace Bit.TemplatePlayground.Server.Api.Controllers; [Route("api/[controller]/[action]")] [ApiController] diff --git a/src/Server/Api/Data/AppDbContext.cs b/src/Server/Api/Data/AppDbContext.cs index 2aead69..a6bc95f 100644 --- a/src/Server/Api/Data/AppDbContext.cs +++ b/src/Server/Api/Data/AppDbContext.cs @@ -1,9 +1,9 @@ -using Bit.AdminPanel.Server.Api.Models.Identity; -using Bit.AdminPanel.Server.Api.Models.Categories; -using Bit.AdminPanel.Server.Api.Models.Products; +using Bit.TemplatePlayground.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Server.Api.Models.Categories; +using Bit.TemplatePlayground.Server.Api.Models.Products; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -namespace Bit.AdminPanel.Server.Api.Data; +namespace Bit.TemplatePlayground.Server.Api.Data; public class AppDbContext : IdentityDbContext { diff --git a/src/Server/Api/Data/Configurations/Category/CategoryConfiguration.cs b/src/Server/Api/Data/Configurations/Category/CategoryConfiguration.cs index 9501716..89b1deb 100644 --- a/src/Server/Api/Data/Configurations/Category/CategoryConfiguration.cs +++ b/src/Server/Api/Data/Configurations/Category/CategoryConfiguration.cs @@ -1,6 +1,6 @@ -using Bit.AdminPanel.Server.Api.Models.Categories; +using Bit.TemplatePlayground.Server.Api.Models.Categories; -namespace Bit.AdminPanel.Server.Api.Data.Configurations.Identity; +namespace Bit.TemplatePlayground.Server.Api.Data.Configurations.Identity; public class CategoryConfiguration : IEntityTypeConfiguration { diff --git a/src/Server/Api/Data/Configurations/Identity/RoleConfiguration.cs b/src/Server/Api/Data/Configurations/Identity/RoleConfiguration.cs index 2617242..ab2583a 100644 --- a/src/Server/Api/Data/Configurations/Identity/RoleConfiguration.cs +++ b/src/Server/Api/Data/Configurations/Identity/RoleConfiguration.cs @@ -1,6 +1,6 @@ -using Bit.AdminPanel.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Server.Api.Models.Identity; -namespace Bit.AdminPanel.Server.Api.Data.Configurations.Identity; +namespace Bit.TemplatePlayground.Server.Api.Data.Configurations.Identity; public class RoleConfiguration : IEntityTypeConfiguration { diff --git a/src/Server/Api/Data/Configurations/Identity/UserConfiguration.cs b/src/Server/Api/Data/Configurations/Identity/UserConfiguration.cs index 42bcf58..2e25df2 100644 --- a/src/Server/Api/Data/Configurations/Identity/UserConfiguration.cs +++ b/src/Server/Api/Data/Configurations/Identity/UserConfiguration.cs @@ -1,6 +1,6 @@ -using Bit.AdminPanel.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Server.Api.Models.Identity; -namespace Bit.AdminPanel.Server.Api.Data.Configurations.Identity; +namespace Bit.TemplatePlayground.Server.Api.Data.Configurations.Identity; public class UserConfiguration : IEntityTypeConfiguration { @@ -14,7 +14,7 @@ public void Configure(EntityTypeBuilder builder) EmailConfirmed = true, Gender = Gender.Other, BirthDate = new DateTime(2023, 1, 1), - FullName = "Bit.AdminPanel test account", + FullName = "Bit.TemplatePlayground test account", UserName = userName, Email = userName, NormalizedUserName = userName.ToUpperInvariant(), diff --git a/src/Server/Api/Data/Configurations/Product/ProductConfiguration.cs b/src/Server/Api/Data/Configurations/Product/ProductConfiguration.cs index 239e7f6..a2c197c 100644 --- a/src/Server/Api/Data/Configurations/Product/ProductConfiguration.cs +++ b/src/Server/Api/Data/Configurations/Product/ProductConfiguration.cs @@ -1,12 +1,12 @@ -using Bit.AdminPanel.Server.Api.Models.Products; +using Bit.TemplatePlayground.Server.Api.Models.Products; -namespace Bit.AdminPanel.Server.Api.Data.Configurations.Identity; +namespace Bit.TemplatePlayground.Server.Api.Data.Configurations.Identity; public class ProductConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { - DateTime baseDate = DateTime.Parse("2023-08-26"); + DateTime baseDate = DateTime.Parse("2023-09-20"); builder.HasData( new Product() { Id = 1, Name = "Mustang", Price = 27155, Description = "The Ford Mustang is ranked #1 in Sports Cars", CreatedOn = baseDate.AddDays(-10), CategoryId = 1 }, diff --git a/src/Server/Api/Extensions/IApplicationBuilderExtensions.cs b/src/Server/Api/Extensions/IApplicationBuilderExtensions.cs index 20ab32e..d6ec1f9 100644 --- a/src/Server/Api/Extensions/IApplicationBuilderExtensions.cs +++ b/src/Server/Api/Extensions/IApplicationBuilderExtensions.cs @@ -1,4 +1,4 @@ -using Bit.AdminPanel.Server.Api.Middlewares; +using Bit.TemplatePlayground.Server.Api.Middlewares; namespace Microsoft.AspNetCore.Builder; diff --git a/src/Server/Api/Extensions/IServiceCollectionExtensions.cs b/src/Server/Api/Extensions/IServiceCollectionExtensions.cs index 0e7ce13..bf93928 100644 --- a/src/Server/Api/Extensions/IServiceCollectionExtensions.cs +++ b/src/Server/Api/Extensions/IServiceCollectionExtensions.cs @@ -5,9 +5,9 @@ using Microsoft.IdentityModel.Tokens; using Microsoft.OpenApi.Models; using Swashbuckle.AspNetCore.SwaggerGen; -using Bit.AdminPanel.Server.Api; -using Bit.AdminPanel.Server.Api.Models.Identity; -using Bit.AdminPanel.Server.Api.Services.Implementations; +using Bit.TemplatePlayground.Server.Api; +using Bit.TemplatePlayground.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Server.Api.Services.Implementations; namespace Microsoft.Extensions.DependencyInjection; @@ -108,8 +108,8 @@ public static IServiceCollection AddSwaggerGen(this IServiceCollection services) { services.AddSwaggerGen(options => { - options.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, "Bit.AdminPanel.Server.Api.xml")); - options.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, "Bit.AdminPanel.Shared.xml")); + options.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, "Bit.TemplatePlayground.Server.Api.xml")); + options.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, "Bit.TemplatePlayground.Shared.xml")); options.OperationFilter(); @@ -153,7 +153,7 @@ public static IServiceCollection AddHealthChecks(this IServiceCollection service services.AddHealthChecksUI(setupSettings: setup => { - setup.AddHealthCheckEndpoint("Bit.AdminPanelHealthChecks", env.IsDevelopment() ? "https://localhost:5031/healthz" : "/healthz"); + setup.AddHealthCheckEndpoint("Bit.TemplatePlaygroundHealthChecks", env.IsDevelopment() ? "https://localhost:5031/healthz" : "/healthz"); }).AddInMemoryStorage(); var healthChecksBuilder = services.AddHealthChecks() diff --git a/src/Server/Api/Mappers/CategoriesMapper.cs b/src/Server/Api/Mappers/CategoriesMapper.cs index c609706..f10a489 100644 --- a/src/Server/Api/Mappers/CategoriesMapper.cs +++ b/src/Server/Api/Mappers/CategoriesMapper.cs @@ -1,8 +1,8 @@ -using Bit.AdminPanel.Server.Api.Models.Categories; -using Bit.AdminPanel.Shared.Dtos.Categories; +using Bit.TemplatePlayground.Server.Api.Models.Categories; +using Bit.TemplatePlayground.Shared.Dtos.Categories; using Riok.Mapperly.Abstractions; -namespace Bit.AdminPanel.Server.Api.Mappers; +namespace Bit.TemplatePlayground.Server.Api.Mappers; /// /// More info at Server/Api/Mappers/README.md diff --git a/src/Server/Api/Mappers/IdentityMapper.cs b/src/Server/Api/Mappers/IdentityMapper.cs index f9d35f6..2ca0a3f 100644 --- a/src/Server/Api/Mappers/IdentityMapper.cs +++ b/src/Server/Api/Mappers/IdentityMapper.cs @@ -1,8 +1,8 @@ -using Bit.AdminPanel.Server.Api.Models.Identity; -using Bit.AdminPanel.Shared.Dtos.Identity; +using Bit.TemplatePlayground.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Shared.Dtos.Identity; using Riok.Mapperly.Abstractions; -namespace Bit.AdminPanel.Server.Api.Mappers; +namespace Bit.TemplatePlayground.Server.Api.Mappers; /// /// More info at Server/Api/Mappers/README.md diff --git a/src/Server/Api/Mappers/ProductsMapper.cs b/src/Server/Api/Mappers/ProductsMapper.cs index f8a0765..6e475cc 100644 --- a/src/Server/Api/Mappers/ProductsMapper.cs +++ b/src/Server/Api/Mappers/ProductsMapper.cs @@ -1,8 +1,8 @@ -using Bit.AdminPanel.Server.Api.Models.Products; -using Bit.AdminPanel.Shared.Dtos.Products; +using Bit.TemplatePlayground.Server.Api.Models.Products; +using Bit.TemplatePlayground.Shared.Dtos.Products; using Riok.Mapperly.Abstractions; -namespace Bit.AdminPanel.Server.Api.Mappers; +namespace Bit.TemplatePlayground.Server.Api.Mappers; /// /// More info at Server/Api/Mappers/README.md diff --git a/src/Server/Api/Middlewares/HttpResponseExceptionHandlerMiddleware.cs b/src/Server/Api/Middlewares/HttpResponseExceptionHandlerMiddleware.cs index 5f0ca9a..e1e898f 100644 --- a/src/Server/Api/Middlewares/HttpResponseExceptionHandlerMiddleware.cs +++ b/src/Server/Api/Middlewares/HttpResponseExceptionHandlerMiddleware.cs @@ -1,7 +1,7 @@ using System.Net; using System.Reflection; -namespace Bit.AdminPanel.Server.Api.Middlewares; +namespace Bit.TemplatePlayground.Server.Api.Middlewares; public class HttpResponseExceptionHandlerMiddleware { diff --git a/src/Server/Api/Migrations/20230826212517_InitialMigration.Designer.cs b/src/Server/Api/Migrations/20230920195959_InitialMigration.Designer.cs similarity index 87% rename from src/Server/Api/Migrations/20230826212517_InitialMigration.Designer.cs rename to src/Server/Api/Migrations/20230920195959_InitialMigration.Designer.cs index 2652471..7f29f73 100644 --- a/src/Server/Api/Migrations/20230826212517_InitialMigration.Designer.cs +++ b/src/Server/Api/Migrations/20230920195959_InitialMigration.Designer.cs @@ -1,5 +1,5 @@ // -using Bit.AdminPanel.Server.Api.Data; +using Bit.TemplatePlayground.Server.Api.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; @@ -7,19 +7,19 @@ #nullable disable -namespace Bit.AdminPanel.Server.Api.Migrations +namespace Bit.TemplatePlayground.Server.Api.Migrations { [DbContext(typeof(AppDbContext))] - [Migration("20230826212517_InitialMigration")] + [Migration("20230920195959_InitialMigration")] partial class InitialMigration { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 - modelBuilder.HasAnnotation("ProductVersion", "7.0.10"); + modelBuilder.HasAnnotation("ProductVersion", "7.0.11"); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Categories.Category", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Categories.Category", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -70,7 +70,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) }); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Identity.Role", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Identity.Role", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -97,7 +97,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Roles", (string)null); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Identity.User", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Identity.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -185,23 +185,23 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) Id = 1, AccessFailedCount = 0, BirthDate = 1306790461440000060L, - ConcurrencyStamp = "645de26c-90de-4473-962b-53a45dc138a8", + ConcurrencyStamp = "2d516fa0-5d1d-4c2f-8fdf-a12901a81107", Email = "test@bitplatform.dev", EmailConfirmed = true, - FullName = "Bit.AdminPanel test account", + FullName = "Bit.TemplatePlayground test account", Gender = 2, LockoutEnabled = false, NormalizedEmail = "TEST@BITPLATFORM.DEV", NormalizedUserName = "TEST@BITPLATFORM.DEV", - PasswordHash = "AQAAAAIAAYagAAAAEEBIVA08n9vf5AfQcqzOXK1a9sFLEAtskEo6IC3A0yd9rRHREKqs91llzZpE4t1rrw==", + PasswordHash = "AQAAAAIAAYagAAAAEGOD8iNXQ7y87GUBkb86s9FlPq1zElgs0xidaW2/VIXzA5t+AUJ7UAYB24tHqbhzvw==", PhoneNumberConfirmed = false, - SecurityStamp = "c52637fe-c82f-4954-a18f-e2bd8a026144", + SecurityStamp = "8eecc946-5dd4-4086-93bc-bd804b4a7dc0", TwoFactorEnabled = false, UserName = "test@bitplatform.dev" }); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Products.Product", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Products.Product", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -236,7 +236,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 1, CategoryId = 1, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "The Ford Mustang is ranked #1 in Sports Cars", Name = "Mustang", Price = 27155m @@ -245,7 +245,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 2, CategoryId = 1, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "The Ford GT is a mid-engine two-seater sports car manufactured and marketed by American automobile manufacturer", Name = "GT", Price = 500000m @@ -254,7 +254,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 3, CategoryId = 1, - CreatedOn = 1307165589504000120L, + CreatedOn = 1307209826304000120L, Description = "Ford Ranger is a nameplate that has been used on multiple model lines of pickup trucks sold by Ford worldwide.", Name = "Ranger", Price = 25000m @@ -263,7 +263,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 4, CategoryId = 1, - CreatedOn = 1307156742144000120L, + CreatedOn = 1307200978944000120L, Description = "Raptor is a SCORE off-road trophy truck living in a asphalt world", Name = "Raptor", Price = 53205m @@ -272,7 +272,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 5, CategoryId = 1, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "The Ford Maverick is a compact pickup truck produced by Ford Motor Company.", Name = "Maverick", Price = 22470m @@ -281,7 +281,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 6, CategoryId = 2, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "A powerful convertible sports car", Name = "Roadster", Price = 42800m @@ -290,7 +290,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 7, CategoryId = 2, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "A perfectly adequate family sedan with sharp looks", Name = "Altima", Price = 24550m @@ -299,7 +299,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 8, CategoryId = 2, - CreatedOn = 1307165589504000120L, + CreatedOn = 1307209826304000120L, Description = "Legendary supercar with AWD, 4 seats, a powerful V6 engine and the latest tech", Name = "GT-R", Price = 113540m @@ -308,7 +308,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 9, CategoryId = 2, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "A new smart SUV", Name = "Juke", Price = 28100m @@ -317,7 +317,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 10, CategoryId = 3, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "", Name = "H247", Price = 54950m @@ -326,7 +326,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 11, CategoryId = 3, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "", Name = "V297", Price = 103360m @@ -335,7 +335,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 12, CategoryId = 3, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "", Name = "R50", Price = 2000000m @@ -344,7 +344,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 13, CategoryId = 4, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "", Name = "M550i", Price = 77790m @@ -353,7 +353,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 14, CategoryId = 4, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "", Name = "540i", Price = 60945m @@ -362,7 +362,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 15, CategoryId = 4, - CreatedOn = 1307174436864000120L, + CreatedOn = 1307218673664000120L, Description = "", Name = "530e", Price = 56545m @@ -371,7 +371,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 16, CategoryId = 4, - CreatedOn = 1307165589504000120L, + CreatedOn = 1307209826304000120L, Description = "", Name = "530i", Price = 55195m @@ -380,7 +380,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 17, CategoryId = 4, - CreatedOn = 1307156742144000120L, + CreatedOn = 1307200978944000120L, Description = "", Name = "M850i", Price = 100045m @@ -389,7 +389,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 18, CategoryId = 4, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "", Name = "X7", Price = 77980m @@ -398,7 +398,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 19, CategoryId = 4, - CreatedOn = 1307139047424000120L, + CreatedOn = 1307183284224000120L, Description = "", Name = "IX", Price = 87000m @@ -407,7 +407,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 20, CategoryId = 5, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "rapid acceleration and dynamic handling", Name = "Model 3", Price = 61990m @@ -416,7 +416,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 21, CategoryId = 5, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "finishes near the top of our luxury electric car rankings.", Name = "Model S", Price = 135000m @@ -425,7 +425,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 22, CategoryId = 5, - CreatedOn = 1307174436864000120L, + CreatedOn = 1307218673664000120L, Description = "Heart-pumping acceleration, long drive range", Name = "Model X", Price = 138890m @@ -434,7 +434,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = 23, CategoryId = 5, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "extensive driving range, lots of standard safety features", Name = "Model Y", Price = 67790m @@ -540,9 +540,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("UserTokens", (string)null); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Products.Product", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Products.Product", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Categories.Category", "Category") + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Categories.Category", "Category") .WithMany("Products") .HasForeignKey("CategoryId") .OnDelete(DeleteBehavior.Cascade) @@ -553,7 +553,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.Role", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.Role", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) @@ -562,7 +562,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.User", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.User", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -571,7 +571,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.User", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.User", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -580,13 +580,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.Role", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.Role", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.User", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.User", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -595,14 +595,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.User", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.User", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Categories.Category", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Categories.Category", b => { b.Navigation("Products"); }); diff --git a/src/Server/Api/Migrations/20230826212517_InitialMigration.cs b/src/Server/Api/Migrations/20230920195959_InitialMigration.cs similarity index 88% rename from src/Server/Api/Migrations/20230826212517_InitialMigration.cs rename to src/Server/Api/Migrations/20230920195959_InitialMigration.cs index 3f90be7..92b4f59 100644 --- a/src/Server/Api/Migrations/20230826212517_InitialMigration.cs +++ b/src/Server/Api/Migrations/20230920195959_InitialMigration.cs @@ -4,7 +4,7 @@ #pragma warning disable CA1814 // Prefer jagged arrays over multidimensional -namespace Bit.AdminPanel.Server.Api.Migrations +namespace Bit.TemplatePlayground.Server.Api.Migrations { /// public partial class InitialMigration : Migration @@ -217,36 +217,36 @@ protected override void Up(MigrationBuilder migrationBuilder) migrationBuilder.InsertData( table: "Users", columns: new[] { "Id", "AccessFailedCount", "BirthDate", "ConcurrencyStamp", "ConfirmationEmailRequestedOn", "Email", "EmailConfirmed", "FullName", "Gender", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "ProfileImageName", "ResetPasswordEmailRequestedOn", "SecurityStamp", "TwoFactorEnabled", "UserName" }, - values: new object[] { 1, 0, 1306790461440000060L, "645de26c-90de-4473-962b-53a45dc138a8", null, "test@bitplatform.dev", true, "Bit.AdminPanel test account", 2, false, null, "TEST@BITPLATFORM.DEV", "TEST@BITPLATFORM.DEV", "AQAAAAIAAYagAAAAEEBIVA08n9vf5AfQcqzOXK1a9sFLEAtskEo6IC3A0yd9rRHREKqs91llzZpE4t1rrw==", null, false, null, null, "c52637fe-c82f-4954-a18f-e2bd8a026144", false, "test@bitplatform.dev" }); + values: new object[] { 1, 0, 1306790461440000060L, "2d516fa0-5d1d-4c2f-8fdf-a12901a81107", null, "test@bitplatform.dev", true, "Bit.TemplatePlayground test account", 2, false, null, "TEST@BITPLATFORM.DEV", "TEST@BITPLATFORM.DEV", "AQAAAAIAAYagAAAAEGOD8iNXQ7y87GUBkb86s9FlPq1zElgs0xidaW2/VIXzA5t+AUJ7UAYB24tHqbhzvw==", null, false, null, null, "8eecc946-5dd4-4086-93bc-bd804b4a7dc0", false, "test@bitplatform.dev" }); migrationBuilder.InsertData( table: "Products", columns: new[] { "Id", "CategoryId", "CreatedOn", "Description", "Name", "Price" }, values: new object[,] { - { 1, 1, 1307192131584000120L, "The Ford Mustang is ranked #1 in Sports Cars", "Mustang", 27155m }, - { 2, 1, 1307183284224000120L, "The Ford GT is a mid-engine two-seater sports car manufactured and marketed by American automobile manufacturer", "GT", 500000m }, - { 3, 1, 1307165589504000120L, "Ford Ranger is a nameplate that has been used on multiple model lines of pickup trucks sold by Ford worldwide.", "Ranger", 25000m }, - { 4, 1, 1307156742144000120L, "Raptor is a SCORE off-road trophy truck living in a asphalt world", "Raptor", 53205m }, - { 5, 1, 1307147894784000120L, "The Ford Maverick is a compact pickup truck produced by Ford Motor Company.", "Maverick", 22470m }, - { 6, 2, 1307192131584000120L, "A powerful convertible sports car", "Roadster", 42800m }, - { 7, 2, 1307183284224000120L, "A perfectly adequate family sedan with sharp looks", "Altima", 24550m }, - { 8, 2, 1307165589504000120L, "Legendary supercar with AWD, 4 seats, a powerful V6 engine and the latest tech", "GT-R", 113540m }, - { 9, 2, 1307147894784000120L, "A new smart SUV", "Juke", 28100m }, - { 10, 3, 1307192131584000120L, "", "H247", 54950m }, - { 11, 3, 1307183284224000120L, "", "V297", 103360m }, - { 12, 3, 1307147894784000120L, "", "R50", 2000000m }, - { 13, 4, 1307192131584000120L, "", "M550i", 77790m }, - { 14, 4, 1307183284224000120L, "", "540i", 60945m }, - { 15, 4, 1307174436864000120L, "", "530e", 56545m }, - { 16, 4, 1307165589504000120L, "", "530i", 55195m }, - { 17, 4, 1307156742144000120L, "", "M850i", 100045m }, - { 18, 4, 1307147894784000120L, "", "X7", 77980m }, - { 19, 4, 1307139047424000120L, "", "IX", 87000m }, - { 20, 5, 1307192131584000120L, "rapid acceleration and dynamic handling", "Model 3", 61990m }, - { 21, 5, 1307183284224000120L, "finishes near the top of our luxury electric car rankings.", "Model S", 135000m }, - { 22, 5, 1307174436864000120L, "Heart-pumping acceleration, long drive range", "Model X", 138890m }, - { 23, 5, 1307147894784000120L, "extensive driving range, lots of standard safety features", "Model Y", 67790m } + { 1, 1, 1307236368384000120L, "The Ford Mustang is ranked #1 in Sports Cars", "Mustang", 27155m }, + { 2, 1, 1307227521024000120L, "The Ford GT is a mid-engine two-seater sports car manufactured and marketed by American automobile manufacturer", "GT", 500000m }, + { 3, 1, 1307209826304000120L, "Ford Ranger is a nameplate that has been used on multiple model lines of pickup trucks sold by Ford worldwide.", "Ranger", 25000m }, + { 4, 1, 1307200978944000120L, "Raptor is a SCORE off-road trophy truck living in a asphalt world", "Raptor", 53205m }, + { 5, 1, 1307192131584000120L, "The Ford Maverick is a compact pickup truck produced by Ford Motor Company.", "Maverick", 22470m }, + { 6, 2, 1307236368384000120L, "A powerful convertible sports car", "Roadster", 42800m }, + { 7, 2, 1307227521024000120L, "A perfectly adequate family sedan with sharp looks", "Altima", 24550m }, + { 8, 2, 1307209826304000120L, "Legendary supercar with AWD, 4 seats, a powerful V6 engine and the latest tech", "GT-R", 113540m }, + { 9, 2, 1307192131584000120L, "A new smart SUV", "Juke", 28100m }, + { 10, 3, 1307236368384000120L, "", "H247", 54950m }, + { 11, 3, 1307227521024000120L, "", "V297", 103360m }, + { 12, 3, 1307192131584000120L, "", "R50", 2000000m }, + { 13, 4, 1307236368384000120L, "", "M550i", 77790m }, + { 14, 4, 1307227521024000120L, "", "540i", 60945m }, + { 15, 4, 1307218673664000120L, "", "530e", 56545m }, + { 16, 4, 1307209826304000120L, "", "530i", 55195m }, + { 17, 4, 1307200978944000120L, "", "M850i", 100045m }, + { 18, 4, 1307192131584000120L, "", "X7", 77980m }, + { 19, 4, 1307183284224000120L, "", "IX", 87000m }, + { 20, 5, 1307236368384000120L, "rapid acceleration and dynamic handling", "Model 3", 61990m }, + { 21, 5, 1307227521024000120L, "finishes near the top of our luxury electric car rankings.", "Model S", 135000m }, + { 22, 5, 1307218673664000120L, "Heart-pumping acceleration, long drive range", "Model X", 138890m }, + { 23, 5, 1307192131584000120L, "extensive driving range, lots of standard safety features", "Model Y", 67790m } }); migrationBuilder.CreateIndex( diff --git a/src/Server/Api/Migrations/AppDbContextModelSnapshot.cs b/src/Server/Api/Migrations/AppDbContextModelSnapshot.cs index 0f2ec6e..62899bb 100644 --- a/src/Server/Api/Migrations/AppDbContextModelSnapshot.cs +++ b/src/Server/Api/Migrations/AppDbContextModelSnapshot.cs @@ -1,12 +1,12 @@ // -using Bit.AdminPanel.Server.Api.Data; +using Bit.TemplatePlayground.Server.Api.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable -namespace Bit.AdminPanel.Server.Api.Migrations +namespace Bit.TemplatePlayground.Server.Api.Migrations { [DbContext(typeof(AppDbContext))] partial class AppDbContextModelSnapshot : ModelSnapshot @@ -14,9 +14,9 @@ partial class AppDbContextModelSnapshot : ModelSnapshot protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 - modelBuilder.HasAnnotation("ProductVersion", "7.0.10"); + modelBuilder.HasAnnotation("ProductVersion", "7.0.11"); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Categories.Category", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Categories.Category", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -67,7 +67,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) }); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Identity.Role", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Identity.Role", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -94,7 +94,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("Roles", (string)null); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Identity.User", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Identity.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -182,23 +182,23 @@ protected override void BuildModel(ModelBuilder modelBuilder) Id = 1, AccessFailedCount = 0, BirthDate = 1306790461440000060L, - ConcurrencyStamp = "645de26c-90de-4473-962b-53a45dc138a8", + ConcurrencyStamp = "2d516fa0-5d1d-4c2f-8fdf-a12901a81107", Email = "test@bitplatform.dev", EmailConfirmed = true, - FullName = "Bit.AdminPanel test account", + FullName = "Bit.TemplatePlayground test account", Gender = 2, LockoutEnabled = false, NormalizedEmail = "TEST@BITPLATFORM.DEV", NormalizedUserName = "TEST@BITPLATFORM.DEV", - PasswordHash = "AQAAAAIAAYagAAAAEEBIVA08n9vf5AfQcqzOXK1a9sFLEAtskEo6IC3A0yd9rRHREKqs91llzZpE4t1rrw==", + PasswordHash = "AQAAAAIAAYagAAAAEGOD8iNXQ7y87GUBkb86s9FlPq1zElgs0xidaW2/VIXzA5t+AUJ7UAYB24tHqbhzvw==", PhoneNumberConfirmed = false, - SecurityStamp = "c52637fe-c82f-4954-a18f-e2bd8a026144", + SecurityStamp = "8eecc946-5dd4-4086-93bc-bd804b4a7dc0", TwoFactorEnabled = false, UserName = "test@bitplatform.dev" }); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Products.Product", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Products.Product", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -233,7 +233,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 1, CategoryId = 1, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "The Ford Mustang is ranked #1 in Sports Cars", Name = "Mustang", Price = 27155m @@ -242,7 +242,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 2, CategoryId = 1, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "The Ford GT is a mid-engine two-seater sports car manufactured and marketed by American automobile manufacturer", Name = "GT", Price = 500000m @@ -251,7 +251,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 3, CategoryId = 1, - CreatedOn = 1307165589504000120L, + CreatedOn = 1307209826304000120L, Description = "Ford Ranger is a nameplate that has been used on multiple model lines of pickup trucks sold by Ford worldwide.", Name = "Ranger", Price = 25000m @@ -260,7 +260,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 4, CategoryId = 1, - CreatedOn = 1307156742144000120L, + CreatedOn = 1307200978944000120L, Description = "Raptor is a SCORE off-road trophy truck living in a asphalt world", Name = "Raptor", Price = 53205m @@ -269,7 +269,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 5, CategoryId = 1, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "The Ford Maverick is a compact pickup truck produced by Ford Motor Company.", Name = "Maverick", Price = 22470m @@ -278,7 +278,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 6, CategoryId = 2, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "A powerful convertible sports car", Name = "Roadster", Price = 42800m @@ -287,7 +287,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 7, CategoryId = 2, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "A perfectly adequate family sedan with sharp looks", Name = "Altima", Price = 24550m @@ -296,7 +296,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 8, CategoryId = 2, - CreatedOn = 1307165589504000120L, + CreatedOn = 1307209826304000120L, Description = "Legendary supercar with AWD, 4 seats, a powerful V6 engine and the latest tech", Name = "GT-R", Price = 113540m @@ -305,7 +305,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 9, CategoryId = 2, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "A new smart SUV", Name = "Juke", Price = 28100m @@ -314,7 +314,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 10, CategoryId = 3, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "", Name = "H247", Price = 54950m @@ -323,7 +323,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 11, CategoryId = 3, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "", Name = "V297", Price = 103360m @@ -332,7 +332,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 12, CategoryId = 3, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "", Name = "R50", Price = 2000000m @@ -341,7 +341,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 13, CategoryId = 4, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "", Name = "M550i", Price = 77790m @@ -350,7 +350,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 14, CategoryId = 4, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "", Name = "540i", Price = 60945m @@ -359,7 +359,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 15, CategoryId = 4, - CreatedOn = 1307174436864000120L, + CreatedOn = 1307218673664000120L, Description = "", Name = "530e", Price = 56545m @@ -368,7 +368,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 16, CategoryId = 4, - CreatedOn = 1307165589504000120L, + CreatedOn = 1307209826304000120L, Description = "", Name = "530i", Price = 55195m @@ -377,7 +377,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 17, CategoryId = 4, - CreatedOn = 1307156742144000120L, + CreatedOn = 1307200978944000120L, Description = "", Name = "M850i", Price = 100045m @@ -386,7 +386,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 18, CategoryId = 4, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "", Name = "X7", Price = 77980m @@ -395,7 +395,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 19, CategoryId = 4, - CreatedOn = 1307139047424000120L, + CreatedOn = 1307183284224000120L, Description = "", Name = "IX", Price = 87000m @@ -404,7 +404,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 20, CategoryId = 5, - CreatedOn = 1307192131584000120L, + CreatedOn = 1307236368384000120L, Description = "rapid acceleration and dynamic handling", Name = "Model 3", Price = 61990m @@ -413,7 +413,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 21, CategoryId = 5, - CreatedOn = 1307183284224000120L, + CreatedOn = 1307227521024000120L, Description = "finishes near the top of our luxury electric car rankings.", Name = "Model S", Price = 135000m @@ -422,7 +422,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 22, CategoryId = 5, - CreatedOn = 1307174436864000120L, + CreatedOn = 1307218673664000120L, Description = "Heart-pumping acceleration, long drive range", Name = "Model X", Price = 138890m @@ -431,7 +431,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = 23, CategoryId = 5, - CreatedOn = 1307147894784000120L, + CreatedOn = 1307192131584000120L, Description = "extensive driving range, lots of standard safety features", Name = "Model Y", Price = 67790m @@ -537,9 +537,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("UserTokens", (string)null); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Products.Product", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Products.Product", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Categories.Category", "Category") + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Categories.Category", "Category") .WithMany("Products") .HasForeignKey("CategoryId") .OnDelete(DeleteBehavior.Cascade) @@ -550,7 +550,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.Role", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.Role", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) @@ -559,7 +559,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.User", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.User", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -568,7 +568,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.User", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.User", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -577,13 +577,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.Role", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.Role", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.User", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.User", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -592,14 +592,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { - b.HasOne("Bit.AdminPanel.Server.Api.Models.Identity.User", null) + b.HasOne("Bit.TemplatePlayground.Server.Api.Models.Identity.User", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("Bit.AdminPanel.Server.Api.Models.Categories.Category", b => + modelBuilder.Entity("Bit.TemplatePlayground.Server.Api.Models.Categories.Category", b => { b.Navigation("Products"); }); diff --git a/src/Server/Api/Models/Categories/Category.cs b/src/Server/Api/Models/Categories/Category.cs index f237d36..3e312ba 100644 --- a/src/Server/Api/Models/Categories/Category.cs +++ b/src/Server/Api/Models/Categories/Category.cs @@ -1,6 +1,6 @@ -using Bit.AdminPanel.Server.Api.Models.Products; +using Bit.TemplatePlayground.Server.Api.Models.Products; -namespace Bit.AdminPanel.Server.Api.Models.Categories; +namespace Bit.TemplatePlayground.Server.Api.Models.Categories; public class Category { diff --git a/src/Server/Api/Models/Emailing/EmailConfirmationModel.cs b/src/Server/Api/Models/Emailing/EmailConfirmationModel.cs index 55cb320..cdcb2b6 100644 --- a/src/Server/Api/Models/Emailing/EmailConfirmationModel.cs +++ b/src/Server/Api/Models/Emailing/EmailConfirmationModel.cs @@ -1,6 +1,6 @@ -using Bit.AdminPanel.Server.Api.Resources; +using Bit.TemplatePlayground.Server.Api.Resources; -namespace Bit.AdminPanel.Server.Api.Models.Emailing; +namespace Bit.TemplatePlayground.Server.Api.Models.Emailing; public class EmailConfirmationModel { diff --git a/src/Server/Api/Models/Emailing/ResetPasswordModel.cs b/src/Server/Api/Models/Emailing/ResetPasswordModel.cs index 862f3ba..e4176ee 100644 --- a/src/Server/Api/Models/Emailing/ResetPasswordModel.cs +++ b/src/Server/Api/Models/Emailing/ResetPasswordModel.cs @@ -1,6 +1,6 @@ -using Bit.AdminPanel.Server.Api.Resources; +using Bit.TemplatePlayground.Server.Api.Resources; -namespace Bit.AdminPanel.Server.Api.Models.Emailing; +namespace Bit.TemplatePlayground.Server.Api.Models.Emailing; public class ResetPasswordModel { diff --git a/src/Server/Api/Models/Identity/Role.cs b/src/Server/Api/Models/Identity/Role.cs index 2528042..dece8e8 100644 --- a/src/Server/Api/Models/Identity/Role.cs +++ b/src/Server/Api/Models/Identity/Role.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Server.Api.Models.Identity; +namespace Bit.TemplatePlayground.Server.Api.Models.Identity; public class Role : IdentityRole { diff --git a/src/Server/Api/Models/Identity/User.cs b/src/Server/Api/Models/Identity/User.cs index 1797173..62c75a1 100644 --- a/src/Server/Api/Models/Identity/User.cs +++ b/src/Server/Api/Models/Identity/User.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Server.Api.Models.Identity; +namespace Bit.TemplatePlayground.Server.Api.Models.Identity; public class User : IdentityUser { diff --git a/src/Server/Api/Models/Products/Product.cs b/src/Server/Api/Models/Products/Product.cs index 66f1f76..289a183 100644 --- a/src/Server/Api/Models/Products/Product.cs +++ b/src/Server/Api/Models/Products/Product.cs @@ -1,7 +1,7 @@ using System.Diagnostics.CodeAnalysis; -using Bit.AdminPanel.Server.Api.Models.Categories; +using Bit.TemplatePlayground.Server.Api.Models.Categories; -namespace Bit.AdminPanel.Server.Api.Models.Products; +namespace Bit.TemplatePlayground.Server.Api.Models.Products; public class Product { diff --git a/src/Server/Api/Program.cs b/src/Server/Api/Program.cs index 916ab7d..2cb10fd 100644 --- a/src/Server/Api/Program.cs +++ b/src/Server/Api/Program.cs @@ -6,12 +6,16 @@ { builder.WebHost.UseUrls("https://localhost:5031", "http://localhost:5030", "https://*:5031", "http://*:5030"); } +else +{ + builder.WebHost.UseUrls("https://localhost:5031", "http://localhost:5030"); +} #endif -Bit.AdminPanel.Server.Api.Startup.Services.Add(builder.Services, builder.Environment, builder.Configuration); +Bit.TemplatePlayground.Server.Api.Startup.Services.Add(builder.Services, builder.Environment, builder.Configuration); var app = builder.Build(); -Bit.AdminPanel.Server.Api.Startup.Middlewares.Use(app, builder.Environment, builder.Configuration); +Bit.TemplatePlayground.Server.Api.Startup.Middlewares.Use(app, builder.Environment, builder.Configuration); app.Run(); diff --git a/src/Server/Api/Properties/launchSettings.json b/src/Server/Api/Properties/launchSettings.json index d11ca74..512c850 100644 --- a/src/Server/Api/Properties/launchSettings.json +++ b/src/Server/Api/Properties/launchSettings.json @@ -1,6 +1,6 @@ { "profiles": { - "Bit.AdminPanel.Server.Api-Swagger": { + "Bit.TemplatePlayground.Server.Api-Swagger": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, @@ -11,7 +11,7 @@ } }, // This configuration allows debugging the Blazor Web Assembly - "Bit.AdminPanel.Server.Api-BlazorWebAssembly": { + "Bit.TemplatePlayground.Server.Api-BlazorWebAssembly": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, diff --git a/src/Server/Api/Resources/EmailConfirmation.cshtml b/src/Server/Api/Resources/EmailConfirmation.cshtml index 328bba8..79e360c 100644 --- a/src/Server/Api/Resources/EmailConfirmation.cshtml +++ b/src/Server/Api/Resources/EmailConfirmation.cshtml @@ -1,6 +1,6 @@ -@using Bit.AdminPanel.Server.Api.Models.Emailing +@using Bit.TemplatePlayground.Server.Api.Models.Emailing @using System -@using Bit.AdminPanel.Server.Api.Resources +@using Bit.TemplatePlayground.Server.Api.Resources @using Microsoft.Extensions.Localization @model EmailConfirmationModel diff --git a/src/Server/Api/Resources/EmailStrings.Designer.cs b/src/Server/Api/Resources/EmailStrings.Designer.cs index 1b85c38..c2c5e02 100644 --- a/src/Server/Api/Resources/EmailStrings.Designer.cs +++ b/src/Server/Api/Resources/EmailStrings.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace Bit.AdminPanel.Server.Api.Resources { +namespace Bit.TemplatePlayground.Server.Api.Resources { using System; @@ -39,7 +39,7 @@ internal EmailStrings() { public static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Bit.AdminPanel.Server.Api.Resources.EmailStrings", typeof(EmailStrings).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Bit.TemplatePlayground.Server.Api.Resources.EmailStrings", typeof(EmailStrings).Assembly); resourceMan = temp; } return resourceMan; @@ -61,7 +61,7 @@ internal EmailStrings() { } /// - /// Looks up a localized string similar to Bit.AdminPanel. + /// Looks up a localized string similar to Bit.TemplatePlayground. /// public static string AppName { get { @@ -70,7 +70,7 @@ public static string AppName { } /// - /// Looks up a localized string similar to Bit.AdminPanel - Confirm your email address. + /// Looks up a localized string similar to Bit.TemplatePlayground - Confirm your email address. /// public static string ConfirmationEmailSubject { get { @@ -97,7 +97,7 @@ public static string CopyLink { } /// - /// Looks up a localized string similar to You're receiving this message because recently you have signed up for a Bit.AdminPanel account. + /// Looks up a localized string similar to You're receiving this message because recently you have signed up for a Bit.TemplatePlayground account. /// Confirm your email address by clicking the button below.. /// public static string EmailConfirmationMessageBody { @@ -107,7 +107,7 @@ public static string EmailConfirmationMessageBody { } /// - /// Looks up a localized string similar to Bit.AdminPanel - Reset your password. + /// Looks up a localized string similar to Bit.TemplatePlayground - Reset your password. /// public static string ResetPasswordEmailSubject { get { @@ -152,7 +152,7 @@ public static string ResetYourPassword { } /// - /// Looks up a localized string similar to Welcome to Bit.AdminPanel!. + /// Looks up a localized string similar to Welcome to Bit.TemplatePlayground!. /// public static string WelcomeToApp { get { diff --git a/src/Server/Api/Resources/EmailStrings.fr.resx b/src/Server/Api/Resources/EmailStrings.fr.resx index a800d07..3710bc3 100644 --- a/src/Server/Api/Resources/EmailStrings.fr.resx +++ b/src/Server/Api/Resources/EmailStrings.fr.resx @@ -121,7 +121,7 @@ Panneau d'administration - Bit.AdminPanel - Confirmez votre adresse e-mail + Bit.TemplatePlayground - Confirmez votre adresse e-mail Confirmez votre email @@ -130,11 +130,11 @@ Ou copiez le lien ci-dessous dans la barre d'adresse de votre navigateur : - Vous recevez ce message car vous vous êtes récemment inscrit pour un compte Bit.AdminPanel. + Vous recevez ce message car vous vous êtes récemment inscrit pour un compte Bit.TemplatePlayground. Confirmez votre adresse e-mail en cliquant sur le bouton ci-dessous. - Bit.AdminPanel - Réinitialisez votre mot de passe + Bit.TemplatePlayground - Réinitialisez votre mot de passe Bonjour {0} diff --git a/src/Server/Api/Resources/EmailStrings.resx b/src/Server/Api/Resources/EmailStrings.resx index 4940ddf..958e5ff 100644 --- a/src/Server/Api/Resources/EmailStrings.resx +++ b/src/Server/Api/Resources/EmailStrings.resx @@ -118,7 +118,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Bit.AdminPanel - Confirm your email address + Bit.TemplatePlayground - Confirm your email address Confirm email @@ -127,11 +127,11 @@ Or, copy the link below to your browser address bar: - You're receiving this message because recently you have signed up for a Bit.AdminPanel account. + You're receiving this message because recently you have signed up for a Bit.TemplatePlayground account. Confirm your email address by clicking the button below. - Bit.AdminPanel - Reset your password + Bit.TemplatePlayground - Reset your password Hello {0} @@ -146,9 +146,9 @@ Reset your password - Bit.AdminPanel + Bit.TemplatePlayground - Welcome to Bit.AdminPanel! + Welcome to Bit.TemplatePlayground! \ No newline at end of file diff --git a/src/Server/Api/Resources/ResetPassword.cshtml b/src/Server/Api/Resources/ResetPassword.cshtml index 12c6c62..c53933d 100644 --- a/src/Server/Api/Resources/ResetPassword.cshtml +++ b/src/Server/Api/Resources/ResetPassword.cshtml @@ -1,6 +1,6 @@ -@using Bit.AdminPanel.Server.Api.Models.Emailing +@using Bit.TemplatePlayground.Server.Api.Models.Emailing @using System -@using Bit.AdminPanel.Server.Api.Resources +@using Bit.TemplatePlayground.Server.Api.Resources @using Microsoft.Extensions.Localization @model ResetPasswordModel diff --git a/src/Server/Api/Services/Contracts/IJwtService.cs b/src/Server/Api/Services/Contracts/IJwtService.cs index 21beaf1..6c478f8 100644 --- a/src/Server/Api/Services/Contracts/IJwtService.cs +++ b/src/Server/Api/Services/Contracts/IJwtService.cs @@ -1,7 +1,7 @@ -using Bit.AdminPanel.Server.Api.Models.Identity; -using Bit.AdminPanel.Shared.Dtos.Identity; +using Bit.TemplatePlayground.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Shared.Dtos.Identity; -namespace Bit.AdminPanel.Server.Api.Services.Contracts; +namespace Bit.TemplatePlayground.Server.Api.Services.Contracts; public interface IJwtService { diff --git a/src/Server/Api/Services/Contracts/IUserInformationProvider.cs b/src/Server/Api/Services/Contracts/IUserInformationProvider.cs index 848aa03..3b24c49 100644 --- a/src/Server/Api/Services/Contracts/IUserInformationProvider.cs +++ b/src/Server/Api/Services/Contracts/IUserInformationProvider.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Server.Api.Services.Contracts; +namespace Bit.TemplatePlayground.Server.Api.Services.Contracts; public interface IUserInformationProvider { diff --git a/src/Server/Api/Services/Implementations/JwtService.cs b/src/Server/Api/Services/Implementations/JwtService.cs index 413dc73..b6ea96d 100644 --- a/src/Server/Api/Services/Implementations/JwtService.cs +++ b/src/Server/Api/Services/Implementations/JwtService.cs @@ -2,10 +2,10 @@ using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using Microsoft.IdentityModel.Tokens; -using Bit.AdminPanel.Server.Api.Models.Identity; -using Bit.AdminPanel.Shared.Dtos.Identity; +using Bit.TemplatePlayground.Server.Api.Models.Identity; +using Bit.TemplatePlayground.Shared.Dtos.Identity; -namespace Bit.AdminPanel.Server.Api.Services.Implementations; +namespace Bit.TemplatePlayground.Server.Api.Services.Implementations; public partial class JwtService : IJwtService { diff --git a/src/Server/Api/Services/Implementations/UserInformationProvider.cs b/src/Server/Api/Services/Implementations/UserInformationProvider.cs index f67e265..00bd200 100644 --- a/src/Server/Api/Services/Implementations/UserInformationProvider.cs +++ b/src/Server/Api/Services/Implementations/UserInformationProvider.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Server.Api.Services.Implementations; +namespace Bit.TemplatePlayground.Server.Api.Services.Implementations; public partial class UserInformationProvider : IUserInformationProvider { diff --git a/src/Server/Api/Startup/Middlewares.cs b/src/Server/Api/Startup/Middlewares.cs index e96e122..ca4bc82 100644 --- a/src/Server/Api/Startup/Middlewares.cs +++ b/src/Server/Api/Startup/Middlewares.cs @@ -2,7 +2,7 @@ using Microsoft.AspNetCore.Diagnostics.HealthChecks; using Microsoft.Net.Http.Headers; -namespace Bit.AdminPanel.Server.Api.Startup; +namespace Bit.TemplatePlayground.Server.Api.Startup; public class Middlewares { diff --git a/src/Server/Api/Startup/Services.cs b/src/Server/Api/Startup/Services.cs index aeb27b6..9e0501c 100644 --- a/src/Server/Api/Startup/Services.cs +++ b/src/Server/Api/Startup/Services.cs @@ -1,17 +1,17 @@ using System.IO.Compression; using System.Net.Mail; -using Bit.AdminPanel.Server.Api.Services.Implementations; +using Bit.TemplatePlayground.Server.Api.Services.Implementations; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.OData; using Microsoft.AspNetCore.ResponseCompression; using Microsoft.Extensions.DependencyInjection; #if BlazorWebAssembly -using Bit.AdminPanel.Client.Web.Services.Implementations; -using Bit.AdminPanel.Client.Core.Services.Implementations; +using Bit.TemplatePlayground.Client.Web.Services.Implementations; +using Bit.TemplatePlayground.Client.Core.Services.Implementations; using Microsoft.AspNetCore.Components; #endif -namespace Bit.AdminPanel.Server.Api.Startup; +namespace Bit.TemplatePlayground.Server.Api.Startup; public static class Services { diff --git a/src/Server/Api/appsettings.json b/src/Server/Api/appsettings.json index 114ecff..781a11b 100644 --- a/src/Server/Api/appsettings.json +++ b/src/Server/Api/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "SqliteConnectionString": "Data Source=Bit.AdminPanelDb.db;" + "SqliteConnectionString": "Data Source=Bit.TemplatePlaygroundDb.db;" }, "Logging": { "LogLevel": { @@ -12,8 +12,8 @@ "AppSettings": { "JwtSettings": { "IdentityCertificatePassword": "P@ssw0rdP@ssw0rd", - "Issuer": "Bit.AdminPanel", - "Audience": "Bit.AdminPanel", + "Issuer": "Bit.TemplatePlayground", + "Audience": "Bit.TemplatePlayground", "NotBeforeMinutes": "0", "ExpirationMinutes": "1440" }, @@ -30,8 +30,8 @@ "EmailSettings": { "Host": "LocalFolder", // Local folder means storing emails as .eml file in bin/Debug/net7.0/sent-emails folder (Recommended for testing purposes only) instead of sending them using smtp server. "Port": "25", - "DefaultFromEmail": "info@bit.adminpanel.com", - "DefaultFromName": "Bit.AdminPanel", + "DefaultFromEmail": "info@bit.templateplayground.com", + "DefaultFromName": "Bit.TemplatePlayground", "UserName": null, "Password": null }, diff --git a/src/Shared/Attributes/DtoResourceTypeAttribute.cs b/src/Shared/Attributes/DtoResourceTypeAttribute.cs index 4722d55..5765f85 100644 --- a/src/Shared/Attributes/DtoResourceTypeAttribute.cs +++ b/src/Shared/Attributes/DtoResourceTypeAttribute.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Attributes; +namespace Bit.TemplatePlayground.Shared.Attributes; /// /// Gets or sets the resource type to use for error message and localizations lookups. diff --git a/src/Shared/Bit.AdminPanel.Shared.csproj b/src/Shared/Bit.AdminPanel.Shared.csproj deleted file mode 100644 index f8999a4..0000000 --- a/src/Shared/Bit.AdminPanel.Shared.csproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - net7.0 - en-US - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - - - - True - True - $([System.String]::Copy('%(Filename)').Replace('.Designer','')).resx - - - PublicResXFileCodeGenerator - %(Filename).Designer.cs - - - - diff --git a/src/Shared/Bit.TemplatePlayground.Shared.csproj b/src/Shared/Bit.TemplatePlayground.Shared.csproj new file mode 100644 index 0000000..3e0ed67 --- /dev/null +++ b/src/Shared/Bit.TemplatePlayground.Shared.csproj @@ -0,0 +1,42 @@ + + + + net7.0 + en-US + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + True + True + $([System.String]::Copy('%(Filename)').Replace('.Designer','')).resx + + + PublicResXFileCodeGenerator + %(Filename).Designer.cs + + + + diff --git a/src/Shared/Dtos/AppJsonContext.cs b/src/Shared/Dtos/AppJsonContext.cs index e4c23bb..5387858 100644 --- a/src/Shared/Dtos/AppJsonContext.cs +++ b/src/Shared/Dtos/AppJsonContext.cs @@ -1,9 +1,9 @@ -using Bit.AdminPanel.Shared.Dtos.Identity; -using Bit.AdminPanel.Shared.Dtos.Categories; -using Bit.AdminPanel.Shared.Dtos.Dashboard; -using Bit.AdminPanel.Shared.Dtos.Products; +using Bit.TemplatePlayground.Shared.Dtos.Identity; +using Bit.TemplatePlayground.Shared.Dtos.Categories; +using Bit.TemplatePlayground.Shared.Dtos.Dashboard; +using Bit.TemplatePlayground.Shared.Dtos.Products; -namespace Bit.AdminPanel.Shared.Dtos; +namespace Bit.TemplatePlayground.Shared.Dtos; /// /// https://devblogs.microsoft.com/dotnet/try-the-new-system-text-json-source-generator/ diff --git a/src/Shared/Dtos/Categories/CategoryDto.cs b/src/Shared/Dtos/Categories/CategoryDto.cs index 7c16332..7d7a78c 100644 --- a/src/Shared/Dtos/Categories/CategoryDto.cs +++ b/src/Shared/Dtos/Categories/CategoryDto.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Dtos.Categories; +namespace Bit.TemplatePlayground.Shared.Dtos.Categories; [DtoResourceType(typeof(AppStrings))] public class CategoryDto @@ -7,7 +7,7 @@ public class CategoryDto [Required(ErrorMessage = nameof(AppStrings.RequiredAttribute_ValidationError))] [Display(Name = nameof(AppStrings.Name))] - [MaxLength(64 , ErrorMessage = nameof(AppStrings.MaxLengthAttribute_InvalidMaxLength))] + [MaxLength(64, ErrorMessage = nameof(AppStrings.MaxLengthAttribute_InvalidMaxLength))] public string? Name { get; set; } public string? Color { get; set; } = "#FFFFFF"; diff --git a/src/Shared/Dtos/Dashboard/OverallAnalyticsStatsDataDto.cs b/src/Shared/Dtos/Dashboard/OverallAnalyticsStatsDataDto.cs index 89ef322..fc9d7cf 100644 --- a/src/Shared/Dtos/Dashboard/OverallAnalyticsStatsDataDto.cs +++ b/src/Shared/Dtos/Dashboard/OverallAnalyticsStatsDataDto.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Dtos.Dashboard; +namespace Bit.TemplatePlayground.Shared.Dtos.Dashboard; public class OverallAnalyticsStatsDataDto { diff --git a/src/Shared/Dtos/Dashboard/ProductPercentagePerCategoryDto.cs b/src/Shared/Dtos/Dashboard/ProductPercentagePerCategoryDto.cs index f8ed007..efa99a1 100644 --- a/src/Shared/Dtos/Dashboard/ProductPercentagePerCategoryDto.cs +++ b/src/Shared/Dtos/Dashboard/ProductPercentagePerCategoryDto.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Dtos.Dashboard; +namespace Bit.TemplatePlayground.Shared.Dtos.Dashboard; public class ProductPercentagePerCategoryDto { diff --git a/src/Shared/Dtos/Dashboard/ProductSaleStatDto.cs b/src/Shared/Dtos/Dashboard/ProductSaleStatDto.cs index d91d611..5dfc3c4 100644 --- a/src/Shared/Dtos/Dashboard/ProductSaleStatDto.cs +++ b/src/Shared/Dtos/Dashboard/ProductSaleStatDto.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Dtos.Dashboard; +namespace Bit.TemplatePlayground.Shared.Dtos.Dashboard; public class ProductSaleStatDto { public string? ProductName { get; set; } diff --git a/src/Shared/Dtos/Dashboard/ProductsCountPerCategoryDto.cs b/src/Shared/Dtos/Dashboard/ProductsCountPerCategoryDto.cs index 4e2a72b..5f5bfdb 100644 --- a/src/Shared/Dtos/Dashboard/ProductsCountPerCategoryDto.cs +++ b/src/Shared/Dtos/Dashboard/ProductsCountPerCategoryDto.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Dtos.Dashboard; +namespace Bit.TemplatePlayground.Shared.Dtos.Dashboard; public class ProductsCountPerCategoryDto { diff --git a/src/Shared/Dtos/Identity/EditUserDto.cs b/src/Shared/Dtos/Identity/EditUserDto.cs index 4c13369..a559a22 100644 --- a/src/Shared/Dtos/Identity/EditUserDto.cs +++ b/src/Shared/Dtos/Identity/EditUserDto.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class EditUserDto diff --git a/src/Shared/Dtos/Identity/EmailConfirmedRequestDto.cs b/src/Shared/Dtos/Identity/EmailConfirmedRequestDto.cs index 7ee478f..3985f9d 100644 --- a/src/Shared/Dtos/Identity/EmailConfirmedRequestDto.cs +++ b/src/Shared/Dtos/Identity/EmailConfirmedRequestDto.cs @@ -1,5 +1,5 @@  -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class EmailConfirmedRequestDto diff --git a/src/Shared/Dtos/Identity/ResetPasswordRequestDto.cs b/src/Shared/Dtos/Identity/ResetPasswordRequestDto.cs index d9fc53a..07c8848 100644 --- a/src/Shared/Dtos/Identity/ResetPasswordRequestDto.cs +++ b/src/Shared/Dtos/Identity/ResetPasswordRequestDto.cs @@ -1,5 +1,5 @@  -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class ResetPasswordRequestDto diff --git a/src/Shared/Dtos/Identity/RoleDto.cs b/src/Shared/Dtos/Identity/RoleDto.cs index cbceb53..58dedf9 100644 --- a/src/Shared/Dtos/Identity/RoleDto.cs +++ b/src/Shared/Dtos/Identity/RoleDto.cs @@ -1,5 +1,5 @@  -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class RoleDto diff --git a/src/Shared/Dtos/Identity/SendEmailConfirmLinkRequestDto.cs b/src/Shared/Dtos/Identity/SendEmailConfirmLinkRequestDto.cs index 5c90cc4..0dc8805 100644 --- a/src/Shared/Dtos/Identity/SendEmailConfirmLinkRequestDto.cs +++ b/src/Shared/Dtos/Identity/SendEmailConfirmLinkRequestDto.cs @@ -1,5 +1,5 @@  -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class SendConfirmationEmailRequestDto diff --git a/src/Shared/Dtos/Identity/SendEmailForgotPasswordLinkRequestDto.cs b/src/Shared/Dtos/Identity/SendEmailForgotPasswordLinkRequestDto.cs index ff66f6c..d4050f9 100644 --- a/src/Shared/Dtos/Identity/SendEmailForgotPasswordLinkRequestDto.cs +++ b/src/Shared/Dtos/Identity/SendEmailForgotPasswordLinkRequestDto.cs @@ -1,5 +1,5 @@  -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class SendResetPasswordEmailRequestDto diff --git a/src/Shared/Dtos/Identity/SignInRequestDto.cs b/src/Shared/Dtos/Identity/SignInRequestDto.cs index dbca1f5..e746269 100644 --- a/src/Shared/Dtos/Identity/SignInRequestDto.cs +++ b/src/Shared/Dtos/Identity/SignInRequestDto.cs @@ -1,5 +1,5 @@  -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class SignInRequestDto diff --git a/src/Shared/Dtos/Identity/SignInResponseDto.cs b/src/Shared/Dtos/Identity/SignInResponseDto.cs index c5f7bbe..9e9fe33 100644 --- a/src/Shared/Dtos/Identity/SignInResponseDto.cs +++ b/src/Shared/Dtos/Identity/SignInResponseDto.cs @@ -1,5 +1,5 @@  -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class SignInResponseDto diff --git a/src/Shared/Dtos/Identity/SignUpRequestDto.cs b/src/Shared/Dtos/Identity/SignUpRequestDto.cs index bdaf300..acd4d92 100644 --- a/src/Shared/Dtos/Identity/SignUpRequestDto.cs +++ b/src/Shared/Dtos/Identity/SignUpRequestDto.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class SignUpRequestDto diff --git a/src/Shared/Dtos/Identity/UserDto.cs b/src/Shared/Dtos/Identity/UserDto.cs index b2a09cd..8134cda 100644 --- a/src/Shared/Dtos/Identity/UserDto.cs +++ b/src/Shared/Dtos/Identity/UserDto.cs @@ -1,5 +1,5 @@  -namespace Bit.AdminPanel.Shared.Dtos.Identity; +namespace Bit.TemplatePlayground.Shared.Dtos.Identity; [DtoResourceType(typeof(AppStrings))] public class UserDto diff --git a/src/Shared/Dtos/PagedResultDto.cs b/src/Shared/Dtos/PagedResultDto.cs index 20ebdf1..d2d6ae8 100644 --- a/src/Shared/Dtos/PagedResultDto.cs +++ b/src/Shared/Dtos/PagedResultDto.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Dtos; +namespace Bit.TemplatePlayground.Shared.Dtos; public class PagedResult { diff --git a/src/Shared/Dtos/Products/ProductDto.cs b/src/Shared/Dtos/Products/ProductDto.cs index 7a43fb3..5fe84a3 100644 --- a/src/Shared/Dtos/Products/ProductDto.cs +++ b/src/Shared/Dtos/Products/ProductDto.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Dtos.Products; +namespace Bit.TemplatePlayground.Shared.Dtos.Products; [DtoResourceType(typeof(AppStrings))] public class ProductDto diff --git a/src/Shared/Enums/EmailTemplate.cs b/src/Shared/Enums/EmailTemplate.cs index 3ddd054..ac92548 100644 --- a/src/Shared/Enums/EmailTemplate.cs +++ b/src/Shared/Enums/EmailTemplate.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Enums; +namespace Bit.TemplatePlayground.Shared.Enums; [JsonConverter(typeof(JsonStringEnumConverter))] public enum EmailTemplate diff --git a/src/Shared/Enums/Gender.cs b/src/Shared/Enums/Gender.cs index 29bd091..e686a71 100644 --- a/src/Shared/Enums/Gender.cs +++ b/src/Shared/Enums/Gender.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Enums; +namespace Bit.TemplatePlayground.Shared.Enums; [JsonConverter(typeof(JsonStringEnumConverter))] public enum Gender diff --git a/src/Shared/Exceptions/BadRequestException.cs b/src/Shared/Exceptions/BadRequestException.cs index 01057f8..cf9dec7 100644 --- a/src/Shared/Exceptions/BadRequestException.cs +++ b/src/Shared/Exceptions/BadRequestException.cs @@ -1,7 +1,7 @@ using System.Net; using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public class BadRequestException : RestException diff --git a/src/Shared/Exceptions/ConflictException.cs b/src/Shared/Exceptions/ConflictException.cs index c3a19e7..032bc34 100644 --- a/src/Shared/Exceptions/ConflictException.cs +++ b/src/Shared/Exceptions/ConflictException.cs @@ -1,7 +1,7 @@ using System.Net; using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public class ConflictException : RestException diff --git a/src/Shared/Exceptions/DomainLogicException.cs b/src/Shared/Exceptions/DomainLogicException.cs index ed03faa..f9607cc 100644 --- a/src/Shared/Exceptions/DomainLogicException.cs +++ b/src/Shared/Exceptions/DomainLogicException.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public class DomainLogicException : KnownException diff --git a/src/Shared/Exceptions/ErrorResourcePayload.cs b/src/Shared/Exceptions/ErrorResourcePayload.cs index e544708..483842e 100644 --- a/src/Shared/Exceptions/ErrorResourcePayload.cs +++ b/src/Shared/Exceptions/ErrorResourcePayload.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; public class ErrorResourcePayload { diff --git a/src/Shared/Exceptions/ForbiddenException.cs b/src/Shared/Exceptions/ForbiddenException.cs index e39a65e..d26fd29 100644 --- a/src/Shared/Exceptions/ForbiddenException.cs +++ b/src/Shared/Exceptions/ForbiddenException.cs @@ -1,7 +1,7 @@ using System.Net; using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public class ForbiddenException : RestException diff --git a/src/Shared/Exceptions/KnownException.cs b/src/Shared/Exceptions/KnownException.cs index b2349d2..ee26358 100644 --- a/src/Shared/Exceptions/KnownException.cs +++ b/src/Shared/Exceptions/KnownException.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public abstract class KnownException : ApplicationException diff --git a/src/Shared/Exceptions/ResourceNotFoundException.cs b/src/Shared/Exceptions/ResourceNotFoundException.cs index 761aa82..52ba537 100644 --- a/src/Shared/Exceptions/ResourceNotFoundException.cs +++ b/src/Shared/Exceptions/ResourceNotFoundException.cs @@ -1,7 +1,7 @@ using System.Net; using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public class ResourceNotFoundException : RestException diff --git a/src/Shared/Exceptions/ResourceValidationException.cs b/src/Shared/Exceptions/ResourceValidationException.cs index a1759b1..b113408 100644 --- a/src/Shared/Exceptions/ResourceValidationException.cs +++ b/src/Shared/Exceptions/ResourceValidationException.cs @@ -1,7 +1,7 @@ using System.Net; using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public class ResourceValidationException : RestException diff --git a/src/Shared/Exceptions/RestErrorInfo.cs b/src/Shared/Exceptions/RestErrorInfo.cs index 2920afb..7e53889 100644 --- a/src/Shared/Exceptions/RestErrorInfo.cs +++ b/src/Shared/Exceptions/RestErrorInfo.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; public class RestErrorInfo { diff --git a/src/Shared/Exceptions/RestException.cs b/src/Shared/Exceptions/RestException.cs index bed2050..25dea68 100644 --- a/src/Shared/Exceptions/RestException.cs +++ b/src/Shared/Exceptions/RestException.cs @@ -1,7 +1,7 @@ using System.Net; using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public class RestException : KnownException diff --git a/src/Shared/Exceptions/TooManyRequestsExceptions.cs b/src/Shared/Exceptions/TooManyRequestsExceptions.cs index 7294bdd..4a7326c 100644 --- a/src/Shared/Exceptions/TooManyRequestsExceptions.cs +++ b/src/Shared/Exceptions/TooManyRequestsExceptions.cs @@ -1,7 +1,7 @@ using System.Net; using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] diff --git a/src/Shared/Exceptions/UnauthorizedException.cs b/src/Shared/Exceptions/UnauthorizedException.cs index 8b9a561..73782da 100644 --- a/src/Shared/Exceptions/UnauthorizedException.cs +++ b/src/Shared/Exceptions/UnauthorizedException.cs @@ -1,7 +1,7 @@ using System.Net; using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public class UnauthorizedException : RestException diff --git a/src/Shared/Exceptions/UnknownException.cs b/src/Shared/Exceptions/UnknownException.cs index 5b0c0d7..c0e721f 100644 --- a/src/Shared/Exceptions/UnknownException.cs +++ b/src/Shared/Exceptions/UnknownException.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Bit.AdminPanel.Shared.Exceptions; +namespace Bit.TemplatePlayground.Shared.Exceptions; [Serializable] public class UnknownException : ApplicationException diff --git a/src/Shared/Extensions/IServiceCollectionExtensions.cs b/src/Shared/Extensions/IServiceCollectionExtensions.cs index 71a4e6d..931ff53 100644 --- a/src/Shared/Extensions/IServiceCollectionExtensions.cs +++ b/src/Shared/Extensions/IServiceCollectionExtensions.cs @@ -1,4 +1,4 @@ -using Bit.AdminPanel.Shared.Services.Implementations; +using Bit.TemplatePlayground.Shared.Services.Implementations; namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/Shared/Infra/BlazorMode.cs b/src/Shared/Infra/BlazorMode.cs index 7f34948..ba49de7 100644 --- a/src/Shared/Infra/BlazorMode.cs +++ b/src/Shared/Infra/BlazorMode.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Infra; +namespace Bit.TemplatePlayground.Shared.Infra; public enum BlazorMode { diff --git a/src/Shared/Infra/BlazorModeDetector.cs b/src/Shared/Infra/BlazorModeDetector.cs index 09074a1..50804f0 100644 --- a/src/Shared/Infra/BlazorModeDetector.cs +++ b/src/Shared/Infra/BlazorModeDetector.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Infra; +namespace Bit.TemplatePlayground.Shared.Infra; /// /// https://bitplatform.dev/templates/hosting-models diff --git a/src/Shared/Infra/BuildConfigurationMode.cs b/src/Shared/Infra/BuildConfigurationMode.cs index 5b7bcce..c25f522 100644 --- a/src/Shared/Infra/BuildConfigurationMode.cs +++ b/src/Shared/Infra/BuildConfigurationMode.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Infra; +namespace Bit.TemplatePlayground.Shared.Infra; public enum BuildConfigurationMode { diff --git a/src/Shared/Infra/BuildConfigurationModeDetector.cs b/src/Shared/Infra/BuildConfigurationModeDetector.cs index 5b1ebd2..5629024 100644 --- a/src/Shared/Infra/BuildConfigurationModeDetector.cs +++ b/src/Shared/Infra/BuildConfigurationModeDetector.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Infra; +namespace Bit.TemplatePlayground.Shared.Infra; public class BuildConfigurationModeDetector { diff --git a/src/Shared/Infra/CultureInfoManager.cs b/src/Shared/Infra/CultureInfoManager.cs index 55fe8f0..1d82708 100644 --- a/src/Shared/Infra/CultureInfoManager.cs +++ b/src/Shared/Infra/CultureInfoManager.cs @@ -1,7 +1,7 @@ using System.Globalization; using System.Reflection; -namespace Bit.AdminPanel.Shared.Infra; +namespace Bit.TemplatePlayground.Shared.Infra; public class CultureInfoManager { diff --git a/src/Shared/Infra/WebAppDeploymentType.cs b/src/Shared/Infra/WebAppDeploymentType.cs index 8be7584..30b521f 100644 --- a/src/Shared/Infra/WebAppDeploymentType.cs +++ b/src/Shared/Infra/WebAppDeploymentType.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Infra; +namespace Bit.TemplatePlayground.Shared.Infra; public enum WebAppDeploymentType { diff --git a/src/Shared/Infra/WebAppDeploymentTypeDetector.cs b/src/Shared/Infra/WebAppDeploymentTypeDetector.cs index d1b1c52..27b2e96 100644 --- a/src/Shared/Infra/WebAppDeploymentTypeDetector.cs +++ b/src/Shared/Infra/WebAppDeploymentTypeDetector.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Infra; +namespace Bit.TemplatePlayground.Shared.Infra; /// /// https://bitplatform.dev/templates/hosting-models diff --git a/src/Shared/Mapper.cs b/src/Shared/Mapper.cs index 177846d..b03e3de 100644 --- a/src/Shared/Mapper.cs +++ b/src/Shared/Mapper.cs @@ -1,9 +1,9 @@ -using Bit.AdminPanel.Shared.Dtos.Categories; -using Bit.AdminPanel.Shared.Dtos.Identity; -using Bit.AdminPanel.Shared.Dtos.Products; +using Bit.TemplatePlayground.Shared.Dtos.Categories; +using Bit.TemplatePlayground.Shared.Dtos.Identity; +using Bit.TemplatePlayground.Shared.Dtos.Products; using Riok.Mapperly.Abstractions; -namespace Bit.AdminPanel.Shared; +namespace Bit.TemplatePlayground.Shared; /// /// Patching methods help you patch the DTO you have received from the server (for example, after calling an Update api) diff --git a/src/Shared/Resources/AppStrings.Designer.cs b/src/Shared/Resources/AppStrings.Designer.cs index 6278395..3a366df 100644 --- a/src/Shared/Resources/AppStrings.Designer.cs +++ b/src/Shared/Resources/AppStrings.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace Bit.AdminPanel.Shared.Resources { +namespace Bit.TemplatePlayground.Shared.Resources { using System; @@ -39,7 +39,7 @@ internal AppStrings() { public static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Bit.AdminPanel.Shared.Resources.AppStrings", typeof(AppStrings).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Bit.TemplatePlayground.Shared.Resources.AppStrings", typeof(AppStrings).Assembly); resourceMan = temp; } return resourceMan; diff --git a/src/Shared/Resources/StringLocalizerProvider.cs b/src/Shared/Resources/StringLocalizerProvider.cs index b1e8ea0..5057a94 100644 --- a/src/Shared/Resources/StringLocalizerProvider.cs +++ b/src/Shared/Resources/StringLocalizerProvider.cs @@ -1,6 +1,6 @@ using System.Reflection; -namespace Bit.AdminPanel.Shared.Resources; +namespace Bit.TemplatePlayground.Shared.Resources; public static class StringLocalizerProvider { public static IStringLocalizer ProvideLocalizer(Type dtoType, IStringLocalizerFactory factory) diff --git a/src/Shared/Services/Contracts/IAuthTokenProvider.cs b/src/Shared/Services/Contracts/IAuthTokenProvider.cs index e449423..9941319 100644 --- a/src/Shared/Services/Contracts/IAuthTokenProvider.cs +++ b/src/Shared/Services/Contracts/IAuthTokenProvider.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Services.Contracts; +namespace Bit.TemplatePlayground.Shared.Services.Contracts; public interface IAuthTokenProvider { diff --git a/src/Shared/Services/Contracts/IDateTimeProvider.cs b/src/Shared/Services/Contracts/IDateTimeProvider.cs index aa5a4c9..bf338d4 100644 --- a/src/Shared/Services/Contracts/IDateTimeProvider.cs +++ b/src/Shared/Services/Contracts/IDateTimeProvider.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Services.Contracts; +namespace Bit.TemplatePlayground.Shared.Services.Contracts; public interface IDateTimeProvider { diff --git a/src/Shared/Services/Implementations/DateTimeProvider.cs b/src/Shared/Services/Implementations/DateTimeProvider.cs index 611e9fb..7c0545f 100644 --- a/src/Shared/Services/Implementations/DateTimeProvider.cs +++ b/src/Shared/Services/Implementations/DateTimeProvider.cs @@ -1,4 +1,4 @@ -namespace Bit.AdminPanel.Shared.Services.Implementations; +namespace Bit.TemplatePlayground.Shared.Services.Implementations; public class DateTimeProvider : IDateTimeProvider {