diff --git a/DiunaBI.UI.Mobile/MainPage.xaml b/DiunaBI.UI.Mobile/MainPage.xaml index eb099ed..48daf0c 100644 --- a/DiunaBI.UI.Mobile/MainPage.xaml +++ b/DiunaBI.UI.Mobile/MainPage.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:shared="clr-namespace:DiunaBI.UI.Shared.Components;assembly=DiunaBI.UI.Shared" x:Class="DiunaBI.UI.Mobile.MainPage" - Title="DiunaBI"> + Title="DiunaBI App"> diff --git a/DiunaBI.UI.Shared/Components/DataInboxListComponent.razor b/DiunaBI.UI.Shared/Components/DataInboxListComponent.razor index 185b2b2..78cc7ea 100644 --- a/DiunaBI.UI.Shared/Components/DataInboxListComponent.razor +++ b/DiunaBI.UI.Shared/Components/DataInboxListComponent.razor @@ -34,7 +34,7 @@ Dense="true" Hover="true" Loading="isLoading" - LoadingProgressColor="Color.Info" + LoadingProgressColor="Color.Primary" OnRowClick="@((TableRowClickEventArgs args) => OnRowClick(args.Item))" T="DataInboxDto" Style="cursor: pointer;"> @@ -43,10 +43,10 @@ Source Created At - - @context.Name - @context.Source - @context.CreatedAt.ToString("yyyy-MM-dd HH:mm:ss") + +
@row.Name
+
@row.Source
+
@row.CreatedAt.ToString("yyyy-MM-dd HH:mm:ss")
No data inbox items to display diff --git a/DiunaBI.UI.Shared/Components/DataInboxListComponent.razor.cs b/DiunaBI.UI.Shared/Components/DataInboxListComponent.razor.cs index 64ef64d..ed584e2 100644 --- a/DiunaBI.UI.Shared/Components/DataInboxListComponent.razor.cs +++ b/DiunaBI.UI.Shared/Components/DataInboxListComponent.razor.cs @@ -1,8 +1,10 @@ using DiunaBI.UI.Shared.Services; using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components.Web; using DiunaBI.Application.DTOModels; using DiunaBI.Application.DTOModels.Common; using MudBlazor; +using Microsoft.JSInterop; namespace DiunaBI.UI.Shared.Components; @@ -12,6 +14,7 @@ public partial class DataInboxListComponent : ComponentBase [Inject] private ISnackbar Snackbar { get; set; } = default!; [Inject] private NavigationManager NavigationManager { get; set; } = default!; [Inject] private DataInboxFilterStateService FilterStateService { get; set; } = default!; + [Inject] private IJSRuntime JSRuntime { get; set; } = default!; private PagedResult dataInbox = new(); @@ -66,4 +69,10 @@ public partial class DataInboxListComponent : ComponentBase { NavigationManager.NavigateTo($"/datainbox/{dataInboxItem.Id}"); } + + private async Task OnRowRightClick(MouseEventArgs e, DataInboxDto dataInboxItem) + { + var url = NavigationManager.ToAbsoluteUri($"/datainbox/{dataInboxItem.Id}").ToString(); + await JSRuntime.InvokeVoidAsync("open", url, "_blank"); + } } diff --git a/DiunaBI.UI.Shared/Components/LayerListComponent.razor b/DiunaBI.UI.Shared/Components/LayerListComponent.razor index 51d7bcf..efbf64e 100644 --- a/DiunaBI.UI.Shared/Components/LayerListComponent.razor +++ b/DiunaBI.UI.Shared/Components/LayerListComponent.razor @@ -47,7 +47,7 @@ Dense="true" Hover="true" Loading="isLoading" - LoadingProgressColor="Color.Info" + LoadingProgressColor="Color.Primary" OnRowClick="@((TableRowClickEventArgs args) => OnRowClick(args.Item))" T="LayerDto" Style="cursor: pointer;"> @@ -55,9 +55,9 @@ Name Type - - @context.Name - @context.Type + +
@row.Name
+
@row.Type
No layers to display diff --git a/DiunaBI.UI.Shared/Components/LayerListComponent.razor.cs b/DiunaBI.UI.Shared/Components/LayerListComponent.razor.cs index 28ad763..f21539c 100644 --- a/DiunaBI.UI.Shared/Components/LayerListComponent.razor.cs +++ b/DiunaBI.UI.Shared/Components/LayerListComponent.razor.cs @@ -1,8 +1,10 @@ using DiunaBI.UI.Shared.Services; using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components.Web; using DiunaBI.Application.DTOModels; using DiunaBI.Application.DTOModels.Common; using MudBlazor; +using Microsoft.JSInterop; namespace DiunaBI.UI.Shared.Components; @@ -12,6 +14,7 @@ public partial class LayerListComponent : ComponentBase [Inject] private ISnackbar Snackbar { get; set; } = default!; [Inject] private NavigationManager NavigationManager { get; set; } = default!; [Inject] private LayerFilterStateService FilterStateService { get; set; } = default!; + [Inject] private IJSRuntime JSRuntime { get; set; } = default!; private PagedResult layers = new(); @@ -80,4 +83,10 @@ public partial class LayerListComponent : ComponentBase { NavigationManager.NavigateTo($"/layers/{layer.Id}"); } + + private async Task OnRowRightClick(MouseEventArgs e, LayerDto layer) + { + var url = NavigationManager.ToAbsoluteUri($"/layers/{layer.Id}").ToString(); + await JSRuntime.InvokeVoidAsync("open", url, "_blank"); + } } \ No newline at end of file diff --git a/DiunaBI.UI.Shared/Pages/LayerDetailPage.razor b/DiunaBI.UI.Shared/Pages/LayerDetailPage.razor index 5aae0b1..cfb91c9 100644 --- a/DiunaBI.UI.Shared/Pages/LayerDetailPage.razor +++ b/DiunaBI.UI.Shared/Pages/LayerDetailPage.razor @@ -11,6 +11,7 @@ Layer Details + Back to List diff --git a/DiunaBI.UI.Web/Components/App.razor b/DiunaBI.UI.Web/Components/App.razor index 0204757..047d51f 100644 --- a/DiunaBI.UI.Web/Components/App.razor +++ b/DiunaBI.UI.Web/Components/App.razor @@ -5,6 +5,7 @@ + DiunaBI App diff --git a/DiunaBI.UI.Web/wwwroot/favicon.png b/DiunaBI.UI.Web/wwwroot/favicon.png index 8422b59..d7a51b2 100644 Binary files a/DiunaBI.UI.Web/wwwroot/favicon.png and b/DiunaBI.UI.Web/wwwroot/favicon.png differ