-
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.
Merge pull request #29 from Lan2Play/feature/OrganizationDataSampleUsage
Client side OrganizationData Usage
- Loading branch information
Showing
34 changed files
with
1,507 additions
and
250 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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
using Microsoft.AspNetCore.Components; | ||
using Microsoft.AspNetCore.Components; | ||
using MudBlazor.ThemeManager; | ||
|
||
namespace NetEvent.Client.Pages.Administration | ||
{ | ||
public partial class AdminMenu | ||
{ | ||
[Inject] | ||
public HttpClient HttpClient { get; set; } | ||
|
||
private ThemeManagerTheme _themeManager = new ThemeManagerTheme(); | ||
|
||
} | ||
} | ||
} |
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,20 +1,23 @@ | ||
using Microsoft.AspNetCore.Components; | ||
using Microsoft.AspNetCore.Components; | ||
using NetEvent.Client.Services; | ||
using NetEvent.Shared.Dto; | ||
|
||
namespace NetEvent.Client.Pages.Administration | ||
{ | ||
public partial class Index | ||
{ | ||
|
||
[Inject] | ||
public HttpClient HttpClient { get; set; } | ||
private IUserService UserService { get; set; } = default!; | ||
|
||
public List<CurrentUserDto>? Users { get; private set; } | ||
public List<UserDto>? Users { get; private set; } | ||
|
||
|
||
protected override async Task OnInitializedAsync() | ||
{ | ||
Users = await Utils.Get<List<CurrentUserDto>>(HttpClient, "api/users"); | ||
using var cancellationTokenSource = new CancellationTokenSource(); | ||
|
||
Users = await UserService.GetUsersAsync(cancellationTokenSource.Token).ConfigureAwait(false); | ||
} | ||
|
||
} | ||
} | ||
} |
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,15 +1,13 @@ | ||
using Microsoft.AspNetCore.Components; | ||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace NetEvent.Client.Pages.Administration | ||
{ | ||
public partial class Settings | ||
{ | ||
[Inject] | ||
public HttpClient HttpClient { get; set; } | ||
|
||
|
||
protected override async Task OnInitializedAsync() | ||
{ | ||
} | ||
|
||
} | ||
} | ||
} |
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
Oops, something went wrong.