mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 16:29:07 +00:00
Added changelog to the about and start pages
This commit is contained in:
parent
b9f08578a0
commit
40a6e6c284
@ -20,6 +20,10 @@
|
|||||||
</MudList>
|
</MudList>
|
||||||
</ExpansionPanel>
|
</ExpansionPanel>
|
||||||
|
|
||||||
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.EventNote" HeaderText="Changelog">
|
||||||
|
<Changelog/>
|
||||||
|
</ExpansionPanel>
|
||||||
|
|
||||||
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Engineering" HeaderText="Motivation">
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Engineering" HeaderText="Motivation">
|
||||||
<Motivation/>
|
<Motivation/>
|
||||||
</ExpansionPanel>
|
</ExpansionPanel>
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
</MudText>
|
</MudText>
|
||||||
</ExpansionPanel>
|
</ExpansionPanel>
|
||||||
|
|
||||||
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.EventNote" HeaderText="Last Changelog">
|
||||||
|
<MudMarkdown Value="@this.LastChangeContent" OverrideHeaderTypo="@Markdown.OverrideHeaderTypo"/>
|
||||||
|
</ExpansionPanel>
|
||||||
|
|
||||||
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Lightbulb" HeaderText="Vision">
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Lightbulb" HeaderText="Vision">
|
||||||
<Vision/>
|
<Vision/>
|
||||||
</ExpansionPanel>
|
</ExpansionPanel>
|
||||||
|
@ -6,6 +6,28 @@ namespace AIStudio.Components.Pages;
|
|||||||
|
|
||||||
public partial class Home : ComponentBase
|
public partial class Home : ComponentBase
|
||||||
{
|
{
|
||||||
|
[Inject]
|
||||||
|
private HttpClient HttpClient { get; set; } = null!;
|
||||||
|
|
||||||
|
private string LastChangeContent { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
#region Overrides of ComponentBase
|
||||||
|
|
||||||
|
protected override async Task OnInitializedAsync()
|
||||||
|
{
|
||||||
|
await this.ReadLastChangeAsync();
|
||||||
|
await base.OnInitializedAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private async Task ReadLastChangeAsync()
|
||||||
|
{
|
||||||
|
var latest = Changelog.LOGS.MaxBy(n => n.Build);
|
||||||
|
var response = await this.HttpClient.GetAsync($"changelog/{latest.Filename}");
|
||||||
|
this.LastChangeContent = await response.Content.ReadAsStringAsync();
|
||||||
|
}
|
||||||
|
|
||||||
private static readonly TextItem[] ITEMS_ADVANTAGES =
|
private static readonly TextItem[] ITEMS_ADVANTAGES =
|
||||||
[
|
[
|
||||||
new TextItem("Free of charge", "The app is free to use, both for personal and commercial purposes."),
|
new TextItem("Free of charge", "The app is free to use, both for personal and commercial purposes."),
|
||||||
|
Loading…
Reference in New Issue
Block a user