mirror of
https://github.com/tonytins/amtkstat.git
synced 2025-03-15 04:11:22 +00: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
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
Reference in a new issue