Commit Graph

520 Commits

Author SHA1 Message Date
Nish Anil
54c9e4df5f Merge pull request #541 from sughosneo/feature/default-image-template
Removes the image upload functionality
2021-06-30 20:08:26 +05:30
Sumit Ghosh
1c9c491c51 Included feedback 2021-06-29 11:53:43 +05:30
Sumit Ghosh
c29001aae3 Update src/PublicApi/CatalogItemEndpoints/Create.cs
Co-authored-by: David Pine <david.pine@microsoft.com>
2021-06-28 20:12:48 +05:30
Sumit Ghosh
1f1882e320 Fixed integration test cases 2021-06-24 15:27:01 +05:30
Sumit Ghosh
c6bd0543e2 Removed image upload functionality 2021-06-24 15:01:51 +05:30
Sayed M. Hussein
9251940529 Renamed private field name (#535)
Conditional statement is to compare the file data length when it is more than a specific size, to the private filed was renamed from "ImageMinimumBytes" to "ImageMaximumBytes".
2021-05-27 12:00:58 -04:00
Steve Smith
15bd78ee5b Add default Development launch profile for Kestreal (#522) 2021-04-14 16:27:56 -04:00
Youssef Victor
3a48dfc99d Fix list items in README (#518) 2021-03-15 13:11:47 -04:00
Mykola
1131617fde #510 fixed static images behind path-based proxy (#511) 2021-02-16 11:42:37 -05:00
Youssef Victor
1dd3979d2a Remove unneeded references in Infrastructure.csproj (#509) 2021-02-13 11:18:15 -05:00
Mykola
9168f3324b Fix for #507 - right arrow image not shown (#508) 2021-02-13 10:51:33 -05:00
Shady Nagy
7a7625662e context to catalogContext (#493) 2021-02-13 10:51:03 -05:00
Steve Smith
ba9aea29bd Update to latest Endpoints package and fix breaking changes (#506) 2021-02-13 10:50:31 -05:00
Kendra Havens
5aa3993c84 Update Dockerfile and launch.json to 5.0 (#494)
* Update Docker target to 5

* change launch.json to 5.0
2020-12-16 15:23:31 -05:00
Nish Anil
a04b3a65f9 Merge pull request #492 from sudheeshv/master-readme-update
updated version informations in README file
2020-12-09 19:44:33 +05:30
Sudheesh Valathil
70bc7c3eae updated version informations in README file 2020-12-08 21:23:13 +05:30
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
Viswanatha Swamy
3463c89418 Swamy/remove unused usings and reorganize usings (#490)
* Removed and Reordered the using statements

* Removed and Reordered the usings inside Web Project

* Removed and Reordered the usings inside PublicApi project

* Removed Unused usings and reorganized usings inside Infrastructure project

* Removed unused using and reorganized the usings inside ApplicationCore Project

* Removed unused usings and reorganized usings inside BlazorAdmin project
2020-12-03 11:22:14 -05:00
Viswanatha Swamy
1598d0bbe1 Swamy/remove unused usings and reorganize usings (#489)
* Removed and Reordered the using statements

* Removed and Reordered the usings inside Web Project

* Removed and Reordered the usings inside PublicApi project

* Removed Unused usings and reorganized usings inside Infrastructure project
2020-12-03 08:05:28 -05:00
Cédric Michel
6041a1f183 Use cancellation token in repository and web fie system (http call can cancelled) (#471)
Co-authored-by: cmichel <cmichel@interparking.com>
2020-11-30 12:21:19 -05:00
Onur BIYIK
2502e01efd Fix for Nullreference exception when public api authenticate endpoint called with invalid username. (#482) 2020-11-14 14:15:08 -05:00
Tim Heuer
c2fe05dbd4 Fix favicon.ico build bug and modify CI to run on PR (#479) 2020-11-10 21:22:14 -05:00
Steve Smith
2e9ac0f6e5 Update README.md 2020-10-28 14:09:31 -04:00
Steve Smith
d32c490d73 Removing docs folder to keep repo size smaller 2020-09-14 13:07:23 -04:00
Steve Smith
01174bb677 Update eBook with v3.1 2020-09-11 17:24:41 -04: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
e520126857 Docker working without Configure ConfigureAppConfiguration (#443)
* Docker working without Configure ConfigureAppConfiguration.

* Sort modifiers
2020-07-31 12:05:37 -04:00
Steve Smith
f901db156a Removing AuthService and fixing Dockerfile for PublicApi 2020-07-31 00:19:17 -04:00
Steve Smith
e9a9dc06d7 Updating Blazor Admin (#442)
* Updating Blazor services

* Adding Settings and Refactoring Services

* WIP - Fighting with DI

* Configuring dependencies in both Web Startup and BlazorAdmin Program.cs has them working again.

* Everything works; need to optimize calls to ListBrands

* LocalStorageBrandService decorator working

* Added cache duration of 1 minute

* Refactoring to reduce token storage
Fixed issue with dropdowns binding to int

* Remove token stuff from login; moved to CustomAuthStateProvider

* Migrated CatalogTypes to separate service
Implemented cache decorator

* Ardalis/blazor refactor (#440)

* 1. Migrate CatalogItemServices -> CatalogItemService.
3. Add caching to CatalogItemService.

* change to $"Loading {key} from local storage" ?

* docker settings added. (#441)

* docker settings added.

* InDocker Removed

* InDocker removed from web startup.

* removed unused using

* no reload list if close without save

* startup patch for localhost

* file name fixed

* removed docker from launchSettings.

* Configure logging via appsettings

Co-authored-by: Shady Nagy <info@shadynagy.com>
2020-07-30 23:50:51 -04:00
Shady Nagy
98fb0ee8ce Removed WebUrl from AuthService (#438) 2020-07-29 12:21:40 -04:00
Shady Nagy
b640926a19 Shady nagy/remove newton soft (#436)
* replace NewtonSoft with System.Text.Json

* not use auth for brande and types and use GetFromJsonAsync

* fix

* fix

* Auth HttpGet more simple.

* Put, Delete and Post  more simple.

* Fixed Edit for remove image and keep image and change other fields.
Added description required in Blazor Admin.

* Removed using not used

* Refactor AuthService and introduce HttpService. add validation for price.

* return null in HttpService if not success.

* Limt Price to 1000 mximum

* DI for Blazor Services

* one blazor service.

* fix
2020-07-29 10:28:55 -04:00
Shady Nagy
24cf9be6ae Fix unit test SavePicture function (#435) 2020-07-28 17:33:21 -04:00
Steve Smith
3ee9fff14a Fix using 2020-07-28 17:02:33 -04:00
Shady Nagy
4e935df311 Image added (#434)
* Image added

* ImageMaximumBytes

* FileController remove Authorized

* ApplicationCore.Constants.AuthorizationConstants.AUTH_KEY

* SavePicture in the interface.

* IFileSystem in Core

* WebFileSystem in Infrastructure

* PictureUri removed from UpdateCatalogItemRequest

* Modal scroll fix
2020-07-28 17:00:32 -04:00
Steve Smith
b30b0c2eef Code cleanup 2020-07-28 16:12:50 -04:00
Steve Smith
2c9c7dd3d1 Code cleanup 2020-07-28 15:35:48 -04:00
Steve Smith
ec5ffefb31 Update README.md 2020-07-27 12:07:31 -04:00
Shady Nagy
40214cc6e0 image style added. (#433)
* image style added.

* JSInteropConstants added

* JSInteropConstants
2020-07-27 10:07:15 -04:00
Shady Nagy
688064199d Docker Fix (#431)
* static added to Constants

* Docker support for Blazor

* GetHttp, PostHttp, ... inside AuthService, Docker working with login, Cookies Configuration temporary disabled

* BaseAddress get web uri from Blazor Shared.

* cookie options changed to fix docker.

* Fixed returnUrl when inserting admin link and navigate without login

* Functions not used removed.

* AddPolicy using GetWebUrl

* Login link removed from NavMenu

* Change ConfigureCookieSettings, ConfigureCoreServices and ConfigureWebServices to be IServiceCollection extentions.

* GetOriginWebUrl added.

* Auto InDocker switch added.

* Removed not used using .
2020-07-27 09:06:18 -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
f4bfc81fe8 Updating README with running the sample instructions 2020-07-25 17:04:23 -04:00
Steve Smith
9eb120b81e remove usings 2020-07-25 16:56:24 -04:00
Shady Nagy
4e886183ce Shady nagy/blazor enhance (#429)
* - Using cdnjs not nuget on bootstrap and signalr.
- Bootstrap modal used for add, edit details and delete.

* EditForm inside modal-content

* Top close button action added

* Removed unused using.

* DeleteCookies moved inside AuthService

* ApplicationCore removed from BlazorAdmin dependencies

* SecureHttpClient removed

* Logout from identity manager added

* last thing to do in logout from admin is LogoutIdentityManager.

* JSRuntime used in AuthService without pass to the functions

* Link fixed when logout from MVC
2020-07-25 16:39:21 -04:00
Steve Smith
f582182698 Update README.md 2020-07-24 12:40:49 -04:00
Steve Smith
68f29a55e4 Update README.md 2020-07-24 12:39:35 -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
Youssef Victor
dec2606f8b Create dependabot.yml 2020-07-17 20:19:19 +02:00
Steve Smith
4253660bc3 Merging with remote master 2020-07-10 11:54:11 -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