-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
133795c
commit fd1dc9c
Showing
28 changed files
with
2,789 additions
and
2,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@using DeBankUI.Components; | ||
@using DeBankUI.Shared.Michal | ||
@using LiveChartsCore.SkiaSharpView.Blazor | ||
@page "/michal/other-data" | ||
|
||
|
||
<MudGrid> | ||
<MudItem xs="12"> | ||
<AboutMichal /> | ||
</MudItem> | ||
<MudItem xs="12"> | ||
<MudCard Outlined Square Style="background: var(--mud-palette-background-grey)"> | ||
<MudCardHeader> | ||
<CardHeaderContent> | ||
<MudStack Justify="Justify.SpaceAround" Row=true> | ||
<MudText Typo="Typo.h6">DeBank combined data</MudText> | ||
</MudStack> | ||
</CardHeaderContent> | ||
</MudCardHeader> | ||
<MudCardContent style="height:600px"> | ||
<CombinedDataChart @ref="combinedDataChart"> | ||
|
||
</CombinedDataChart> | ||
</MudCardContent> | ||
<MudCardActions> | ||
<MudButton StartIcon="@Icons.Material.Filled.FileDownload" Class="rounded-0" Variant="Variant.Outlined" OnClick="@(async () => await DownloadChartData(combinedDataChart, "CombinedChart.csv"))" Color="Color.Primary">Get data</MudButton> | ||
</MudCardActions> | ||
</MudCard> | ||
</MudItem> | ||
</MudGrid> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using LiveChartsCore.Defaults; | ||
using LiveChartsCore.SkiaSharpView; | ||
using LiveChartsCore; | ||
using LiveChartsCore.Kernel.Sketches; | ||
using LiveChartsCore.SkiaSharpView.Painting; | ||
using static MudBlazor.Colors; | ||
using SkiaSharp; | ||
using DeBankUI.Utils; | ||
using DeBankUI.Components; | ||
using Blazor.DownloadFileFast.Interfaces; | ||
using Microsoft.AspNetCore.Components; | ||
using DeBankUI.Shared.Michal; | ||
|
||
namespace DeBankUI.Pages.Michal | ||
{ | ||
public partial class OtherDataPage | ||
{ | ||
[Inject] | ||
public IBlazorDownloadFileService BlazorDownloadFileService { get; set; } | ||
|
||
private CombinedDataChart combinedDataChart; | ||
|
||
public async Task DownloadChartData(BaseChartComponent baseComponent, string title) | ||
{ | ||
var data = baseComponent.DownloadChartData(); | ||
await BlazorDownloadFileService.DownloadFileAsync(title, data); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<MudCard Outlined Square Style="background: var(--mud-palette-background-grey)"> | ||
<MudCardHeader> | ||
<CardHeaderAvatar> | ||
<MudAvatar Size="Size.Large"><MudImage Src="Michal.png"></MudImage></MudAvatar> | ||
</CardHeaderAvatar> | ||
<CardHeaderContent> | ||
<MudText Typo="Typo.h6">Michal</MudText> | ||
</CardHeaderContent> | ||
</MudCardHeader> | ||
<MudCardContent> | ||
<MudText Typo="Typo.body2">Hi, I am Michal! Good to see you there. I hope you like charts and statistics because thats the only thing you can find here. I built this for you so feel free to give me your feedback. You can always DM me or just ping under any of my posts on DeBank</MudText> | ||
</MudCardContent> | ||
<MudCardActions> | ||
<MudStack Spacing="3" Row=true> | ||
<MudButton Class="rounded-0" Variant="Variant.Outlined" Href="https://debank.com/profile/0x33c36dd8ee2fc8b8c106e700f093c7b971eb8a70/stream" Target="_blank" Color="Color.Primary">DeBank Profile</MudButton> | ||
<MudButton Class="rounded-0" Variant="Variant.Outlined" Href="https://github.com/MeetMichal" Target="_blank" Color="Color.Primary">GitHub Profile</MudButton> | ||
</MudStack> | ||
</MudCardActions> | ||
</MudCard> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@using DeBankUI.Components; | ||
@using LiveChartsCore.SkiaSharpView.Blazor | ||
@inherits BaseChartComponent | ||
|
||
<MudStack Spacing="3" Row> | ||
<MudCheckBox @bind-Checked="@Series[0].IsVisible" /> | ||
<MudCheckBox @bind-Checked="@Series[1].IsVisible" /> | ||
<MudCheckBox @bind-Checked="@Series[2].IsVisible" /> | ||
|
||
</MudStack> | ||
|
||
<CartesianChart | ||
TooltipPosition="LiveChartsCore.Measure.TooltipPosition.Hidden" | ||
YAxes="@YAxes" | ||
XAxes="@XAxes" | ||
EasingFunction="null" | ||
DrawMarginFrame="@DrawMarginFrame" | ||
Series="@Series"> | ||
|
||
</CartesianChart> |
Oops, something went wrong.