mirror of
https://github.com/tonytins/amtkstat.git
synced 2025-07-22 15:15:07 -04:00
Preemptive setup for UI redesign
Bumped version from v104 to v201 (which was intended to be v105)
This commit is contained in:
parent
80210156bb
commit
ebfe2d644c
7 changed files with 25 additions and 9 deletions
|
@ -13,6 +13,9 @@
|
|||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.8" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.10.0" />
|
||||
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Emoji" Version="4.6.0" />
|
||||
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.10.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,17 +1,23 @@
|
|||
@inject IJSRuntime JsRuntime
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
<button @onclick="AddrRedirect">@Name</button>
|
||||
@if (IsLink)
|
||||
{
|
||||
<a @onclick="AddrRedirect">@Name</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button @onclick="AddrRedirect">@Name</button>
|
||||
}
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter]
|
||||
[Required]
|
||||
public string? Name { get; set; }
|
||||
[Parameter] public string? Name { get; set; }
|
||||
|
||||
[Parameter] public string? Code { get; set; }
|
||||
|
||||
[Parameter]
|
||||
[Required]
|
||||
public string? Code { get; set; }
|
||||
public bool IsLink { get; set; }
|
||||
|
||||
private void AddrRedirect()
|
||||
{
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.104.2
|
||||
0.201.0
|
|
@ -1,5 +1,6 @@
|
|||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using Microsoft.FluentUI.AspNetCore.Components;
|
||||
using AmtrakStatus;
|
||||
|
||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||
|
@ -7,5 +8,6 @@ builder.RootComponents.Add<App>("#app");
|
|||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
||||
builder.Services.AddFluentUIComponents();
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
||||
@using Microsoft.AspNetCore.Components.WebAssembly.Http
|
||||
@using Microsoft.JSInterop
|
||||
@using Microsoft.FluentUI.AspNetCore.Components
|
||||
@using AmtrakStatus
|
||||
@using AmtrakStatus.Components
|
Loading…
Add table
Add a link
Reference in a new issue