Files
romrepomgr/RomRepoMgr.Blazor/Components/Pages/Home.razor

36 lines
1.7 KiB
Plaintext
Raw Normal View History

2025-07-26 17:55:02 +01:00
@page "/"
2025-07-27 04:02:17 +01:00
@using RomRepoMgr.Database
@rendermode InteractiveServer
@inject IDialogService DialogService
2025-07-27 04:02:17 +01:00
@inject Context ctx
2025-07-26 17:55:02 +01:00
2025-07-26 22:22:01 +01:00
<PageTitle>ROM Repository Manager</PageTitle>
2025-07-26 17:55:02 +01:00
2025-07-26 22:22:01 +01:00
<FluentToolbar>
<FluentButton OnClick="@ImportDatsAsync">Import DATs</FluentButton>
2025-07-26 22:22:01 +01:00
<FluentButton Disabled="true">Export DAT</FluentButton>
<FluentButton Disabled="true">Remove DAT</FluentButton>
2025-07-27 14:32:04 +01:00
<FluentButton OnClick="@ImportRomsAsync">Import ROMs</FluentButton>
2025-07-26 22:22:01 +01:00
<FluentButton Disabled="true">Export ROMs</FluentButton>
</FluentToolbar>
2025-07-27 04:02:17 +01:00
<FluentDataGrid @ref="romSetsGrid" Items="@RomSets" Style="width: 100%;" AutoFit="true" Pagination="@pagination"
AutoItemsPerPage="true" ResizableColumns="true">
<PropertyColumn Property="@(p => p.Name)" Title="Name"/>
<PropertyColumn Property="@(p => p.Version)" Title="Version"/>
<PropertyColumn Property="@(p => p.Author)" Title="Author"/>
<PropertyColumn Property="@(p => p.Category)" Title="Category"/>
<PropertyColumn Property="@(p => p.Date)" Title="Date"/>
<PropertyColumn Property="@(p => p.Description)" Title="Description"/>
<PropertyColumn Property="@(p => p.Comment)" Title="Comment"/>
<PropertyColumn Property="@(p => p.Homepage)" Title="Homepage"/>
<PropertyColumn Property="@(p => p.TotalMachines)" Title="Total machines"/>
<PropertyColumn Property="@(p => p.CompleteMachines)" Title="Complete machines"/>
<PropertyColumn Property="@(p => p.IncompleteMachines)" Title="Incomplete machines"/>
<PropertyColumn Property="@(p => p.TotalRoms)" Title="Total ROMs"/>
<PropertyColumn Property="@(p => p.HaveRoms)" Title="Have ROMs"/>
<PropertyColumn Property="@(p => p.MissRoms)" Title="Miss ROMs"/>
</FluentDataGrid>
<FluentPaginator State="@pagination"/>