Skip to content

Commit

Permalink
Switching to relative paths
Browse files Browse the repository at this point in the history
clean up that was missed in previous commit
  • Loading branch information
czf committed Jan 25, 2021
1 parent ca5fc21 commit 945c853
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private ChartColor SliceColorGenerator (int index) =>
private void OnDashboardPieChartClick(DashboardChartMouseEventArgs eventArgs)
{
int songId = CurrentDataset[eventArgs.Index].ItemId;
NavManager.NavigateTo($"/artistwork/{songId}");
NavManager.NavigateTo($"artistwork/{songId}");
}
private string DashboardPieChartComponentTitle => $"Comparison of Songs by {ArtistName}";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private ChartColor SliceColorGenerator(int indx)
}
private void OnDashboardPieChartClick()
{
NavManager.NavigateTo($"/artist/{ArtistId}/artistworks");
NavManager.NavigateTo($"artist/{ArtistId}/artistworks");
}
private static readonly ChartColor ViewedSongPieChartColor = ChartColor.FromRgba(255, 255, 255, 1);//white
private static readonly ChartColor OtherSongsPieChartColor = ChartColor.FromRgba(104, 104, 103, 1);//grey
Expand Down
6 changes: 3 additions & 3 deletions RadiocomDataViewApp/Pages/ArtistWork.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{
<h3>@ArtistWorkName </h3>
<Breadcrumb>
<BreadcrumbItem><BreadcrumbLink To='@($"/artists")'>All Artists</BreadcrumbLink></BreadcrumbItem>
<BreadcrumbItem><BreadcrumbLink To='@($"/artist/{ArtistId}")'>@ArtistName</BreadcrumbLink></BreadcrumbItem>
<BreadcrumbItem Active="true"><BreadcrumbLink To='@($"/artistwork/{ArtistWorkId}")'>@ArtistWorkName</BreadcrumbLink></BreadcrumbItem>
<BreadcrumbItem><BreadcrumbLink To='@($"artists")'>All Artists</BreadcrumbLink></BreadcrumbItem>
<BreadcrumbItem><BreadcrumbLink To='@($"artist/{ArtistId}")'>@ArtistName</BreadcrumbLink></BreadcrumbItem>
<BreadcrumbItem Active="true"><BreadcrumbLink To='@($"artistwork/{ArtistWorkId}")'>@ArtistWorkName</BreadcrumbLink></BreadcrumbItem>
</Breadcrumb>

<Row>
Expand Down
4 changes: 1 addition & 3 deletions RadiocomDataViewApp/Pages/ArtistWork.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ public partial class ArtistWork : ComponentBase

protected override Task OnParametersSetAsync()
{
//await base.OnParametersSetAsync();
//_artistWorkInfo = await RadiocomArtistWorkRepository.GetArtistWork(ArtistWorkId);


return base.OnParametersSetAsync().ContinueWith(x =>
InvokeAsync(async () => _artistWorkInfo = (await RadiocomArtistWorkRepository.GetArtistWorkAsync(ArtistWorkId)))
).Unwrap();
Expand Down
7 changes: 0 additions & 7 deletions RadiocomDataViewApp/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@inject IRadiocomDataAggregateDataClient RadiocomDataAggregateDataClient ;
@using RadiocomDataViewApp.Components.IndexCharts;

@*<div class="pb-5"><p>asdjfosadjf jfdios fjdsoapfjdsaif jdsiafjdisa pfdjsafpd jsaifodpsa jfidospafjd isop</p></div>*@
<Row>
<Column Class="col-lg-4 col-md-6 col-sm-12 pb-1 pb-sm-0">
<TopPlayedSongsChart />
Expand All @@ -15,14 +14,8 @@
<TopPlayedArtistsChart />
</Column>
<Column Class="col-lg-4 col-md-6 col-sm-12 pb-1 pb-sm-0 flex-column d-flex">
@*Style="display:flex;flex-direction:column;"*@
<TotalUniqueSongsMetric />
<TotalUniqueArtistsMetric />

</Column>
</Row>

<div>

<Tooltip Text="Hello tooltip"><p>@env.IsDevelopment</p></Tooltip>
</div>
11 changes: 2 additions & 9 deletions RadiocomDataViewApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public static async Task Main(string[] args)
builder.Services.AddBlazoredLocalStorage();

string value =string.Empty;
value = (string)builder.Configuration.GetValue<string>("version");
Console.WriteLine($"version: {value}");
Console.WriteLine($"WelcomeDate: {builder.Configuration.GetValue<DateTime>(CONFIGKEY_WELCOME_DATE)}");
var host = builder.Build();
host.Services
.UseBootstrapProviders()
Expand All @@ -65,13 +64,7 @@ public static async Task Main(string[] args)
await host.RunAsync();
}

//public static temp()
//{

// System.Security.Cryptography.SHA256Managed.
// System.Security.Cryptography.SHA256.

//}

}
public class EnvironmentService
{
Expand Down
4 changes: 2 additions & 2 deletions RadiocomDataViewApp/Shared/LayoutSiderContentNavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
<BarMenu>
<BarStart>
<BarItem>
<BarLink To="/artistworks/">
<BarLink To="artistworks/">
<BarIcon IconName="IconName.Music" />
Songs
</BarLink>
</BarItem>
<BarItem>
<BarLink To="/artists/">
<BarLink To="artists/">
<BarIcon IconName="IconName.Users" />
Artists
</BarLink>
Expand Down

0 comments on commit 945c853

Please sign in to comment.