-
Notifications
You must be signed in to change notification settings - Fork 15
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 #918 from sitkoru/net8
Sitko.Core 11 for .NET 8
- Loading branch information
Showing
408 changed files
with
4,725 additions
and
7,945 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
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
11 changes: 4 additions & 7 deletions
11
....Core.Apps.MudBlazorDemo/Forms/BarForm.cs → ...Blazor.Client/Components/Forms/BarForm.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
15 changes: 15 additions & 0 deletions
15
apps/Blazor/Sitko.Core.Apps.Blazor.Client/Components/Forms/FooForm.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,15 @@ | ||
using Sitko.Core.Apps.Blazor.Data.Entities; | ||
using Sitko.Core.Blazor.Forms; | ||
using Sitko.Core.Blazor.MudBlazorComponents; | ||
using Sitko.Core.Repository; | ||
|
||
namespace Sitko.Core.Apps.Blazor.Client.Components.Forms; | ||
|
||
public class FooForm : BaseMudRepositoryForm<FooModel, Guid, IRepository<FooModel, Guid>> | ||
{ | ||
protected override async Task<FormSaveResult> AddAsync(FooModel entity) | ||
{ | ||
await Task.Delay(2000); | ||
return await base.AddAsync(entity); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
apps/Blazor/Sitko.Core.Apps.Blazor.Client/Components/Layout/AppPageLayout.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,5 @@ | ||
using Sitko.Core.Blazor.MudBlazorComponents; | ||
|
||
namespace Sitko.Core.Apps.Blazor.Client.Components.Layout; | ||
|
||
public class AppPageLayout : BaseMudPageLayout; |
10 changes: 4 additions & 6 deletions
10
...lazorDemo/Components/BarRepositoryList.cs → ...ent/Components/Lists/BarRepositoryList.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
6 changes: 6 additions & 0 deletions
6
apps/Blazor/Sitko.Core.Apps.Blazor.Client/Components/TestComponent.razor
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,6 @@ | ||
@inherits BaseComponent | ||
<h3>TestComponent</h3> | ||
|
||
@code { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
apps/Blazor/Sitko.Core.Apps.Blazor.Client/Data/Repositories/BarModelRemoteRepository.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,7 @@ | ||
using Sitko.Core.Apps.Blazor.Data.Entities; | ||
using Sitko.Core.Repository.Remote; | ||
|
||
namespace Sitko.Core.Apps.Blazor.Client.Data.Repositories; | ||
|
||
public class BarModelRemoteRepository(RemoteRepositoryContext<BarModel, Guid> repositoryContext) | ||
: BaseRemoteRepository<BarModel, Guid>(repositoryContext); |
7 changes: 7 additions & 0 deletions
7
apps/Blazor/Sitko.Core.Apps.Blazor.Client/Data/Repositories/FooModelRemoteRepository.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,7 @@ | ||
using Sitko.Core.Apps.Blazor.Data.Entities; | ||
using Sitko.Core.Repository.Remote; | ||
|
||
namespace Sitko.Core.Apps.Blazor.Client.Data.Repositories; | ||
|
||
public class FooModelRemoteRepository(RemoteRepositoryContext<FooModel, Guid> repositoryContext) | ||
: BaseRemoteRepository<FooModel, Guid>(repositoryContext); |
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
60 changes: 60 additions & 0 deletions
60
apps/Blazor/Sitko.Core.Apps.Blazor.Client/Pages/Index.razor
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,60 @@ | ||
@page "/" | ||
@using Sitko.Core.Apps.Blazor.Data.Entities | ||
@rendermode InteractiveAuto | ||
@inherits BaseComponent | ||
|
||
<AppPageLayout Title="@LocalizationProvider["Title"]"> | ||
<MudGrid> | ||
<MudItem xs="6" sm="4"> | ||
<MudAutocomplete @ref="IdFilterAutocomplete" T="BarModel" Label="ID" SearchFunc="@SearchIdsAsync" ResetValueOnEmptyText="true" | ||
Value="FilterList.Model" | ||
ToStringFunc="@(e => e == null ? null : $"{e.Bar}")" | ||
ValueChanged="@(s => ChangeIdAsync(s == null ? null : s.Id))"/> | ||
</MudItem> | ||
|
||
<MudItem xs="6" sm="4"> | ||
<MudTextField T="string" Value="FilterList.Title" Label="Title" ValueChanged="SearchTitleAsync" Class="mt-0" Clearable="true"> | ||
</MudTextField> | ||
</MudItem> | ||
|
||
<MudItem xs="12" sm="4"> | ||
<MudDateRangePicker DateRange="FilterList.DateRange" Label="Дата" PickerVariant="PickerVariant.Dialog" DateRangeChanged="@(dateRange => ChangeDateAsync(dateRange))"/> | ||
</MudItem> | ||
</MudGrid> | ||
|
||
<BarRepositoryList @bind-RowsPerPage="rowsPerPage" OnDataLoaded="CountSummaryAsync" @ref="barList" Class="mb-10" EnableUrlNavigation="true" | ||
ConfigureQuery="ConfigureQueryAsync" AddParamsToUrl="AddParamsToUrlAsync" | ||
GetParamsFromUrl="GetParamsFromUrlAsync"> | ||
<HeaderContent> | ||
<MudTh> | ||
<MudTableSortLabel SortLabel="@nameof(BarModel.Id)" InitialDirection="SortDirection.Descending" T="BarModel">Id</MudTableSortLabel> | ||
</MudTh> | ||
<MudTh> | ||
<MudTableSortLabel SortLabel="@nameof(BarModel.Bar)" T="BarModel">Название</MudTableSortLabel> | ||
</MudTh> | ||
<MudTh> | ||
<MudTableSortLabel SortLabel="@nameof(BarModel.Date)" T="BarModel">Дата</MudTableSortLabel> | ||
</MudTh> | ||
<MudTh></MudTh> | ||
</HeaderContent> | ||
<ChildContent> | ||
<MudTd DataLabel="@nameof(BarModel.Id)"> | ||
<MudLink Href="@($"/Bars/{context.Id}/Edit")">@context.Id</MudLink> | ||
</MudTd> | ||
<MudTd DataLabel="@nameof(BarModel.Bar)"> | ||
@context.Bar | ||
</MudTd> | ||
<MudTd DataLabel="@nameof(BarModel.Date)"> | ||
@context.Date | ||
</MudTd> | ||
<MudTd> | ||
<MudButton Variant="Variant.Outlined" Color="Color.Secondary" Size="Size.Small" StartIcon="@Icons.Material.Filled.Refresh" OnClick="@(() => barList.UpdateAsync(context))">Refresh</MudButton> | ||
</MudTd> | ||
</ChildContent> | ||
<FooterContent> | ||
<MudTFootRow Class="bold-text"> | ||
<MudTd>@Summary</MudTd> | ||
</MudTFootRow> | ||
</FooterContent> | ||
</BarRepositoryList> | ||
</AppPageLayout> |
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
5 changes: 3 additions & 2 deletions
5
...pps.MudBlazorDemo/Pages/QueryString.razor → ...pps.Blazor.Client/Pages/QueryString.razor
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.