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 # Change Log
## 0.201.0
- Completely redesigned the interface based on the Fluent Design System.
## 0.104.2 ## 0.104.2
- Clickable links that open the default broswer. - Clickable links that open the default broswer.

View file

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

View file

@ -13,6 +13,9 @@
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" /> <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.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> </ItemGroup>
</Project> </Project>

View file

@ -1,17 +1,23 @@
@inject IJSRuntime JsRuntime @inject IJSRuntime JsRuntime
@inject NavigationManager NavigationManager @inject NavigationManager NavigationManager
<button @onclick="AddrRedirect">@Name</button> @if (IsLink)
{
<a @onclick="AddrRedirect">@Name</a>
}
else
{
<button @onclick="AddrRedirect">@Name</button>
}
@code @code
{ {
[Parameter] [Parameter] public string? Name { get; set; }
[Required]
public string? Name { get; set; } [Parameter] public string? Code { get; set; }
[Parameter] [Parameter]
[Required] public bool IsLink { get; set; }
public string? Code { get; set; }
private void AddrRedirect() 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.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.FluentUI.AspNetCore.Components;
using AmtrakStatus; using AmtrakStatus;
var builder = WebAssemblyHostBuilder.CreateDefault(args); var builder = WebAssemblyHostBuilder.CreateDefault(args);
@ -7,5 +8,6 @@ builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after"); builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddFluentUIComponents();
await builder.Build().RunAsync(); await builder.Build().RunAsync();

View file

@ -6,5 +6,6 @@
@using Microsoft.AspNetCore.Components.Web.Virtualization @using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.AspNetCore.Components.WebAssembly.Http @using Microsoft.AspNetCore.Components.WebAssembly.Http
@using Microsoft.JSInterop @using Microsoft.JSInterop
@using Microsoft.FluentUI.AspNetCore.Components
@using AmtrakStatus @using AmtrakStatus
@using AmtrakStatus.Components @using AmtrakStatus.Components