-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update various aspects of the application for better maintaina…
…bility - Issues of navigating through different views (pages) of the application have been addressed in "AppViewModel.cs". - For the "IAuthenticationService.cs" file, functions 'Register' and 'Update' have been revamped to include an additional parameter 'roles'. - Registered "AccountViewModel.cs", "InventoryViewModel.cs", "PetViewModel.cs", "CustomerViewModel.cs", "EmployeeViewModel.cs", "GroomingServiceViewModel.cs" to IoC container. Signed-off-by: Russell Camo <[email protected]>
- Loading branch information
Showing
24 changed files
with
241 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,5 @@ namespace GroomWise.Application.Enums; | |
public enum AppViews | ||
{ | ||
Login, | ||
Main, | ||
Dashboard | ||
Main | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
// Copyright (C) 2023 Russell Camo (Russkyc).- All Rights Reserved | ||
// | ||
// | ||
// Unauthorized copying or redistribution of all files, in source and binary forms via any medium | ||
// without written, signed consent from the author is strictly prohibited. | ||
|
||
using Injectio.Attributes; | ||
using MvvmGen; | ||
|
||
namespace GroomWise.Application.ViewModels; | ||
|
||
public class EmployeeViewModel | ||
{ | ||
|
||
} | ||
[ViewModel] | ||
[RegisterSingleton] | ||
public partial class EmployeeViewModel { } |
12 changes: 7 additions & 5 deletions
12
GroomWise.Application/ViewModels/GroomingServiceViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
// Copyright (C) 2023 Russell Camo (Russkyc).- All Rights Reserved | ||
// | ||
// | ||
// Unauthorized copying or redistribution of all files, in source and binary forms via any medium | ||
// without written, signed consent from the author is strictly prohibited. | ||
|
||
using Injectio.Attributes; | ||
using MvvmGen; | ||
|
||
namespace GroomWise.Application.ViewModels; | ||
|
||
public class GroomingServiceViewModel | ||
{ | ||
|
||
} | ||
[ViewModel] | ||
[RegisterSingleton] | ||
public partial class GroomingServiceViewModel { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
// Copyright (C) 2023 Russell Camo (Russkyc).- All Rights Reserved | ||
// | ||
// | ||
// Unauthorized copying or redistribution of all files, in source and binary forms via any medium | ||
// without written, signed consent from the author is strictly prohibited. | ||
|
||
using Injectio.Attributes; | ||
using MvvmGen; | ||
|
||
namespace GroomWise.Application.ViewModels; | ||
|
||
public class InventoryViewModel | ||
{ | ||
|
||
} | ||
[ViewModel] | ||
[RegisterSingleton] | ||
public partial class InventoryViewModel { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
// Copyright (C) 2023 Russell Camo (Russkyc).- All Rights Reserved | ||
// | ||
// | ||
// Unauthorized copying or redistribution of all files, in source and binary forms via any medium | ||
// without written, signed consent from the author is strictly prohibited. | ||
|
||
using Injectio.Attributes; | ||
using MvvmGen; | ||
|
||
namespace GroomWise.Application.ViewModels; | ||
|
||
public class PetViewModel | ||
{ | ||
|
||
} | ||
[ViewModel] | ||
[RegisterSingleton] | ||
public partial class PetViewModel { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (C) 2023 Russell Camo (Russkyc).- All Rights Reserved | ||
// | ||
// Unauthorized copying or redistribution of all files, in source and binary forms via any medium | ||
// without written, signed consent from the author is strictly prohibited. | ||
|
||
using Injectio.Attributes; | ||
using MvvmGen; | ||
|
||
namespace GroomWise.Application.ViewModels; | ||
|
||
[ViewModel] | ||
[RegisterSingleton] | ||
public partial class SettingsViewModel { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,10 @@ | |
|
||
<ItemGroup> | ||
<None Remove=".env" /> | ||
|
||
|
||
|
||
|
||
</ItemGroup> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (C) 2023 Russell Camo (Russkyc).- All Rights Reserved | ||
// | ||
// Unauthorized copying or redistribution of all files, in source and binary forms via any medium | ||
// without written, signed consent from the author is strictly prohibited. | ||
|
||
using GroomWise.Infrastructure.IoC.Interfaces; | ||
using Injectio.Attributes; | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace GroomWise.Infrastructure.IoC; | ||
|
||
[RegisterSingleton<IAppServicesContainer, AppServicesContainer>] | ||
public class AppServicesContainer : IAppServicesContainer | ||
{ | ||
private IServiceProvider? _serviceProvider; | ||
|
||
public void AddContainer(IServiceProvider container) | ||
{ | ||
_serviceProvider = container; | ||
} | ||
|
||
public T? GetService<T>() | ||
{ | ||
return _serviceProvider!.GetService<T>(); | ||
} | ||
|
||
public object? GetService(Type type) | ||
{ | ||
return _serviceProvider!.GetService(type); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
GroomWise.Infrastructure/IoC/Interfaces/IAppServicesContainer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (C) 2023 Russell Camo (Russkyc).- All Rights Reserved | ||
// | ||
// Unauthorized copying or redistribution of all files, in source and binary forms via any medium | ||
// without written, signed consent from the author is strictly prohibited. | ||
|
||
namespace GroomWise.Infrastructure.IoC.Interfaces; | ||
|
||
public interface IAppServicesContainer | ||
{ | ||
void AddContainer(IServiceProvider container); | ||
T? GetService<T>(); | ||
object? GetService(Type type); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.