Commit Graph

116 Commits

Author SHA1 Message Date
dependabot[bot]
f42b1ce349 Bump BuildBundlerMinifier from 2.9.406 to 3.2.449
Bumps [BuildBundlerMinifier](https://github.com/madskristensen/BundlerMinifier) from 2.9.406 to 3.2.449.
- [Release notes](https://github.com/madskristensen/BundlerMinifier/releases)
- [Changelog](https://github.com/madskristensen/BundlerMinifier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/madskristensen/BundlerMinifier/commits)

---
updated-dependencies:
- dependency-name: BuildBundlerMinifier
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 12:42:29 +00:00
dependabot[bot]
f67ca2766c Bump Microsoft.AspNetCore.Identity.EntityFrameworkCore
Bumps [Microsoft.AspNetCore.Identity.EntityFrameworkCore](https://github.com/dotnet/aspnetcore) from 5.0.0 to 5.0.10.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v5.0.0...v5.0.10)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Identity.EntityFrameworkCore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 12:42:26 +00:00
dependabot[bot]
f58cd5aa17 Bump Microsoft.AspNetCore.Authentication.JwtBearer in /src/Web
Bumps [Microsoft.AspNetCore.Authentication.JwtBearer](https://github.com/dotnet/aspnetcore) from 5.0.0 to 5.0.9.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v5.0.0...v5.0.9)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Authentication.JwtBearer
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-25 14:59:30 +00:00
Sumit Ghosh
28af1642f6 Feature/update net 5 (#487)
* Updated ApplicationCore to net 5

* Updated Infrastructure project to net 5

* Updated BlazorShared project to net 5

* Updated PublicApi project to net 5

* Updated Web mvc project to net 5

* Updated BlazorAdmin project to net-5

* Updated FunctionalTests to net 5

* Updated UnitTests project to net 5

* Updated IntegrationTests project to net 5

* Fixed CSS specific bug in BlazorAdmin project

* Updated github action worflow yaml

* Changes the name to only .NET

* Removed hardcoded minor version from github action workflow.

* Removed commneted code.

* Removed minor versions from the docker file

* Updated dotnet-ef tool version configuration to net-5

* Removed old migration plans

* Added net5 migration plans

* Updated infrastructure projecti setting.

* Removed database error page related configuration

* Removed commented package.
2020-12-03 11:23:11 -05:00
Shady Nagy
d5610aad12 Upgrade ardalis.ApiEndpoints to v2. (#451) 2020-08-07 17:19:32 -04:00
Steve Smith
754c845e9f Upgrade to use Specification 4.0.0 (#444) 2020-07-31 14:52:14 -04:00
Shady Nagy
e1f9ddd192 BlazorShared and Services (#430)
* Service to Services

* Change Shared project to BlazorShared

* change refrerances to BlazorShared
2020-07-25 17:28:21 -04:00
Steve Smith
8d3ac693d4 Add Blazor WebAssembly Admin Page (#426)
* Added Blazor Client
Configured PublicAPI CORS to allow traffic from client

* Make admin page home page; remove extra pages
Add CatalogType list endpoint

* Wired up Types and Brands in the API and the admin list page

* Adding a custom HttpClient to talk securely to API

* Ardalis/blazor (#419)

* Login added

* AuthService will handel http request secure and not secure.

* Logout added

* CatalogBrandService in it is own service

* Get token from localstorage when refresh.

* used GetAsync

* Fixed Login and Logout switch.

* CatalogItemService added

* CatalogTypeService added & Auth for CatalogType.
using not used removed.

* Made BlazorComponent and BlazorLayoutComponent for refresh.
Index now small enough to be in one file.

* Removed the service from program main and use lazy singleton.

* used OnInitialized

* Refactoring and detecting login status in login.razor

* Refactoring login to redirect if user is already logged in

* Blazor login with MVC (#420)

* Blazor login with MVC

* return back the PasswordSignInAsync in Login page

* CRUD added (#422)

* CRUD added

* Unit Test changed to meet new redirect /admin

* CreateCatalogItemRequest added.

* Action caption added.

* Validation added for name and price.

* Updated port of api
Redirect to returnUrl from login

* Add username to /admin; link to my profile

* Working on authorization of /admin

* Working on custom auth locking down /admin page

* Microsoft authorize working.Login.razor removed.Login from SignInMana… (#425)

* Microsoft authorize working.Login.razor removed.Login from SignInManager and create token from it.unit test fixed.

* GetTokenFromController function used in CustomAuthStateProvider

* Cleaned up button styles
Refactored to use codebehind for List component
Updated Not Authorized view

Co-authored-by: Shady Nagy <shadynagi@gmail.com>
2020-07-24 12:36:47 -04:00
Steve Smith
1c75f08a33 Add catalogitem update endpoint to public api (#418)
* Initial update endpoint working

* Updated CatalogItem to support more updates; added tests

* Got MediatR domain events working to check for duplicate item names

* Adding reference link

* Remove domain events spike code

* clean up usings
2020-07-10 11:50:46 -04:00
Steve Smith
dd5a435cb4 Adding Endpoints with Authorization in separate PublicApi project (#413)
* Adding tests for GetById endpoint

* Updating tests and messages

* Adding paged endpoint and also AutoMapper

* Authenticate endpoint works as bool with tests

* Got JWT token security working with Create and Delete endpoints and Swashbuckle.

* Working on getting cookie and jwt token auth working in the same app
All tests are passing

* Creating new project and moving APIs
Build succeeds; tests need updated.

* all tests passing after moving services to PublicApi project

* Fix authorize attributes

* Uncomment and update ApiCatalogControllerLists tests

Co-authored-by: Eric Fleming <eric-fleming18@hotmail.com>
2020-06-30 11:36:28 -04:00
Eric Fleming
e5e9868003 Refactor startup (#412)
* Removing unused folder

* Refactoring Startup.cs
2020-06-29 14:00:54 -04:00
Steve Smith
b4d0f07c2e Adding API Endpoints for Catalog Items (#410)
* Adding new Endpoints

* update nuget packages

* Modifying API to work well with Swagger.

* Remove Swashbuckle.Core
2020-06-25 16:23:44 -04:00
yigith
3b1339787f 401 fix (#408)
* transfer basket on login

* review page

* unit tests for TransferBasketAsync
2020-06-24 20:48:23 -04:00
Eric Fleming
70a919e145 Switching to NuGet Ardalis.Specifications (#389)
- updating to use Ardalis.Specifications package as it is maintained and has a more robust implementation
- Removing all custom specification implementation
- Updating unit tests
2020-06-08 13:31:22 -04:00
Steve Smith
3030e97af6 Migrated some tests to use System.Text.Json (#385)
* Migrated some tests to use System.Text.Json

* Added case insensitive json options to fix broken tests.
2020-05-28 15:48:24 -04:00
Eric Fleming
1176fffa83 Updating packages to their latest versions (#378) 2020-05-14 15:12:11 -04:00
Eric Fleming
e53117b952 Updating to netcore3.1 (#338)
* Updating to .NET Core 3.1

* Updating nuget packages

* Updating dockerfile for 3.1
2019-12-17 11:08:55 -05:00
Eric Fleming
29d1497a3f Mediatr example (#325)
* Updates based on documentation

* Getting the build passing

* Getting app functioning

* A few cleanups to confirm it's working as expected

* Fixing functional tests

* Updating dockerfile for 3.0

* Functional Tests now run sequentially

* Updating to latest version of moq

* Adding migration for post 3.0 upgrades

* Removing commented out lines

* Moving address and catalogitemordered configuration in to classes that own them

* Installing MediatR nuget packages

* Configure MediatR in Startup

* Creating GetMyOrders MediatR query and handler

* Adding GetOrderDetails MediatR handler

* Refactoring out default values

* Added tests for GetOrderDetails mediator handler

* Defaulting values on Models for now

* Removing some spaces

* Splitting files

* Splitting out the GetOrderDetails files

* Adding test for GetMyOrders

* restructuing folders

* Using constant
2019-11-15 13:36:51 -05:00
Eric Fleming
4442015835 Netcore3.0 (#323)
* Updates based on documentation

* Getting the build passing

* Getting app functioning

* A few cleanups to confirm it's working as expected

* Fixing functional tests

* Updating dockerfile for 3.0

* Functional Tests now run sequentially

* Updating to latest version of moq

* Adding migration for post 3.0 upgrades

* Removing commented out lines

* Moving address and catalogitemordered configuration in to classes that own them

* Minor cleanups
2019-11-06 14:17:56 -05:00
Eric Fleming
9b7dc2c1ce Reverting package version
- The new version of this package appears to have a bug or no longer compatible with .NET Core 2.2
2019-10-05 13:30:06 -04:00
Eric Fleming
e7b411cb92 Update Microsoft.VS.Web.CodeGeneration.Design 2019-10-04 20:24:24 -04:00
Eric Fleming
4418e36fc5 Updating Microsoft.Web.LibraryManager.Build 2019-10-04 20:23:17 -04:00
Eric Fleming
1ac91c5c8e Updating Microsoft.CodeAnalysis 2019-10-04 20:22:13 -04:00
Steve Smith
305be555db Updated packages; Using configuration classes for EF Core. 2019-08-18 15:16:31 -04:00
Eric Fleming
d5446de65f Adding scaffolding for Logout page
- Removing Identity route from startup
2019-06-20 20:41:00 -04:00
Bohdan Stupak
7e7c60eac4 Fixing indentation 2019-06-13 22:11:33 +03:00
Bohdan Stupak
772a65b3b3 Removing blocking calls in main 2019-06-13 22:04:29 +03:00
Vilimek, Jan
451f20b515 Fixed missing CSS on published site = adding bundling.
Justification:
When published (under Release configuration) in layout there is just app.min.css. We can either add also other minified CSS there (components, headers,...) or add one bundled and minified 8KB css.
2019-05-27 13:54:17 +02:00
Eric Fleming
794b9d7ab8 Updated NuGet Packages 2019-04-05 22:10:53 -04:00
Eric Fleming
05767d6afc Switch to using NuGet package for listing all registered services 2019-04-05 21:10:14 -04:00
Eric Fleming
5efd175a90 Removing app and app.min from ContentRemove 2019-03-23 16:04:30 -04:00
Eric Fleming
300cce7a88 Cleanup UpToDateCheckInput 2019-03-09 19:25:50 -05:00
Eric Fleming
7c044d9c57 Removing ContentIncludedByDefault section that was added 2019-03-09 19:21:10 -05:00
Eric Fleming
37631fe26f Removing BuildWebCompiler NuGet package 2019-02-23 15:25:35 -05:00
Eric Fleming
8c2e43d775 Removing old Signin.cshtml 2019-02-15 22:14:18 -05:00
Eric Fleming
fbde5dae90 Added scaffolded Login page for Identity
- Also updated the _LoginPartial to use the new page
2019-02-15 21:54:35 -05:00
Eric Fleming
f8abe0be12 Adding compilerconfig and updating variables 2019-02-09 15:18:49 -05:00
Eric Fleming
c2ecf6cb36 Getting LibMan in place 2019-02-09 14:08:53 -05:00
Eric Fleming
d4adb5c2b3 Adding libman configuration 2019-02-09 14:00:03 -05:00
Steve Smith
99c416142f Consolidate Web and WebRazorPages Projects (#192)
* Moved Privacy, Home page to Razor Pages

* Migrating Basket from RazorPages to Web.

* Removed BasketController; refactored viewmodels

* Moved BasketComponent into Pages/Shared
Added auth rules to Startup for Pages
Added notes to controllers about Pages usage.

* Fixed broken my orders test
Consolidated Functional Tests

* Fixed logo link to home page
Fixed Order Detail Total $ format
2019-01-18 13:29:00 -05:00
Steve Smith
bc328077b0 Adding slugify parameter transform (#185)
* Adding slugify parameter transform

Fixes #172

* Cleaning up code

And slugifying my orders
2019-01-11 12:39:48 -05:00
Steve Smith
6c41a1bab9 Upgrade to 2.2 (#171)
* Initial Web2 project working

* Initial WebRazorPages project working

* Adding additional sln files

* Removing old project

* Fixed integration tests

* Getting FunctionalTests working.

* Got Swagger working in Web

* Moved web2 to web
2018-12-28 10:04:35 -08:00
Rafsanul Hasan
1b5b179c7f Update ASP.NET Core Version to 2.10 to 2.1.3 (#126)
* Updated Web Applications' NuGet Packages:
- [x] Microsoft.AspNetCore.App 2.1.0->2.1.3
- [x] Microsoft.EntityFrameworkCore.Tools 2.1.0->2.1.2
- [x] Microsoft.VisualStudio.Web.CodeGeneration.Design 2.1.0->2.1.3

* Updated Infrastructure Library's BuGet Packages:
- [x] Microsoft.AspNetCore.Identity 2.1.0->2.1.3
- [x] Microsoft.AspNetCore.Identity.EntityFrameworkCore 2.1.0->2.1.3
- [x] Microsoft.EntityFrameworkCore.SqlServer 2.1.0->2.1.2
- [x] Microsoft.EntityFrameworkCore.Tools 2.1.0->2.1.2

* Updated Test projects' NuGetPackages:
- [x] Microsoft.AspNetCore.Mvc.Testing 2.1.0->2.1.2
- [x] Microsoft.NET.Test.Sdk 15.8.0-preview-20180510-03->15.8.0
- [x] Microsoft.AspNetCore.Mvc 2.1.0->2.1.3
2018-09-05 08:09:42 -04:00
Jeremy Hutchinson
f953495e38 Standardize namespaces to all be under the Microsoft.eShopOnWeb namespace and update default namespaces. (#102) 2018-06-05 08:52:54 -04:00
Steve Smith
5fb9e741dd Updated to 2.1 RTM
And updated functional tests to use CustomWebApplicationFactory.
2018-05-30 22:05:58 -04:00
Steve Smith
9075221073 Added docker support 2018-05-22 14:23:55 -04:00
Steve Smith
c5a2c86ff0 Final updates to work with 2.1RC1 2018-05-19 17:21:55 -04:00
Steve Smith
80604062d9 Updating to 2.1RC1 2018-05-19 17:13:55 -04:00
Steve Smith
4e7f3d7302 Updated runtimes to 2.1
Functional Tests are currently failing.
2018-05-18 17:42:16 -04:00
Steve Smith
108d894826 Updated to rc1-final of 2.1 2018-05-18 17:34:07 -04:00