diff --git a/Projects/Config/WebClient.Tra.Config.json b/Projects/Config/WebClient.Tra.Config.json index 03acb75..4b2e043 100644 --- a/Projects/Config/WebClient.Tra.Config.json +++ b/Projects/Config/WebClient.Tra.Config.json @@ -1,5 +1,5 @@ { - "ApplicationName": "KIP Web Tools", + "ApplicationName": "CPXV2 Web Tools", "Server": { "Address": "https://*", "Port": 11000, diff --git a/Projects/WebClient/Web.Tra/Components/App.razor b/Projects/WebClient/Web.Tra/Components/App.razor index e4025cd..2c2b0f4 100644 --- a/Projects/WebClient/Web.Tra/Components/App.razor +++ b/Projects/WebClient/Web.Tra/Components/App.razor @@ -9,6 +9,7 @@ + diff --git a/Projects/WebClient/Web.Tra/Components/Layout/MainLayout.razor b/Projects/WebClient/Web.Tra/Components/Layout/MainLayout.razor index 47b7964..78dd570 100644 --- a/Projects/WebClient/Web.Tra/Components/Layout/MainLayout.razor +++ b/Projects/WebClient/Web.Tra/Components/Layout/MainLayout.razor @@ -3,34 +3,40 @@ @inherits LayoutComponentBase @inject ConfigService configService +@inject NavigationManager NavigationManager - - - - + + + + + +
+ +
- - - - - - - - -
- @Body -
-
- - Footer - + + @Body +
@code { bool sidebarExpanded = true; + string ApplicationName = string.Empty; + string Page = string.Empty; + + protected override async Task OnInitializedAsync() + { + ApplicationName = configService?.GetConfig()?.ApplicationName; + Page = NavigationManager.ToBaseRelativePath(NavigationManager.Uri); + } + + private void OnClickMenu(MenuItemEventArgs args) + { + Page = args.Text; + } } diff --git a/Projects/WebClient/Web.Tra/Components/Pages/TRA.razor b/Projects/WebClient/Web.Tra/Components/Pages/TRA.razor index ed1e8a9..7f7877c 100644 --- a/Projects/WebClient/Web.Tra/Components/Pages/TRA.razor +++ b/Projects/WebClient/Web.Tra/Components/Pages/TRA.razor @@ -2,11 +2,36 @@ @using Web.Tra.Services @inject CPXV2LogService CPXV2LogService -

TRA

+ + + + + + + + + + + + + + + + + + + + + + @code { protected override async Task OnInitializedAsync() - { - CPXV2LogService.Test(); + { } -} + + private async Task OnSearch() + { + await CPXV2LogService.Test(); + } +} \ No newline at end of file diff --git a/Projects/WebClient/Web.Tra/wwwroot/app.css b/Projects/WebClient/Web.Tra/wwwroot/app.css index 2bd9b78..8d6ec7c 100644 --- a/Projects/WebClient/Web.Tra/wwwroot/app.css +++ b/Projects/WebClient/Web.Tra/wwwroot/app.css @@ -1,5 +1,6 @@ html, body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-size: 62.5% !important; } a, .btn-link {