Preemptive setup for UI redesign

Bumped version from v104 to v201 (which was intended to be v105)
This commit is contained in:
Tony Bark 2024-09-19 07:39:32 -04:00
parent 80210156bb
commit ebfe2d644c
7 changed files with 25 additions and 9 deletions

View file

@ -1,5 +1,9 @@
# Change Log
## 0.201.0
- Completely redesigned the interface based on the Fluent Design System.
## 0.104.2
- Clickable links that open the default broswer.

View file

@ -8,7 +8,7 @@
},
"package": {
"productName": "AMTK Status",
"version": "0.104.2"
"version": "0.201.0"
},
"tauri": {
"allowlist": {
@ -20,7 +20,7 @@
},
"windows": [
{
"title": "Amtrak Status Boards",
"title": "Amtrak Status",
"resizable": true,
"width": 1100,
"height": 768,

View file

@ -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>

View file

@ -1,17 +1,23 @@
@inject IJSRuntime JsRuntime
@inject NavigationManager NavigationManager
@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()
{

View file

@ -1 +1 @@
0.104.2
0.201.0

View file

@ -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();

View file

@ -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