mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 21:29:40 +00:00
Added second supporter (#182)
This commit is contained in:
1 parent
e419c5561b
commit
8bd54e6d61
6 files changed
+56
-9
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<MudListItem T="string" Icon="@this.Icon">
|
||||
@if (string.IsNullOrWhiteSpace(this.URL))
|
||||
{
|
||||
<MudText Typo="Typo.body1" Inline="@true">
|
||||
@this.Name
|
||||
</MudText>
|
||||
}
|
||||
else
|
||||
{
|
||||
<MudLink Href="@this.URL" Target="_blank">
|
||||
@this.Name
|
||||
</MudLink>
|
||||
}
|
||||
|
||||
<MudText Typo="Typo.body1" Class="ml-3" Inline="@true">
|
||||
@this.Acknowledgment
|
||||
</MudText>
|
||||
</MudListItem>
|
||||
@@ -0,0 +1,26 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace AIStudio.Components;
|
||||
|
||||
public partial class Supporter : ComponentBase
|
||||
{
|
||||
[Parameter]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Parameter]
|
||||
public string Acknowledgment { get; set; } = string.Empty;
|
||||
|
||||
[Parameter]
|
||||
public string? URL { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public SupporterType Type { get; set; }
|
||||
|
||||
private string Icon => this.Type switch
|
||||
{
|
||||
SupporterType.INDIVIDUAL => Icons.Material.Filled.Person,
|
||||
SupporterType.ORGANIZATION => Icons.Material.Filled.Business,
|
||||
|
||||
_ => Icons.Material.Filled.Person4,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace AIStudio.Components;
|
||||
|
||||
public enum SupporterType
|
||||
{
|
||||
UNKNOWN,
|
||||
INDIVIDUAL,
|
||||
ORGANIZATION
|
||||
}
|
||||
@@ -33,14 +33,8 @@
|
||||
The first 10 supporters who make a monthly contribution:
|
||||
</MudText>
|
||||
<MudList T="string">
|
||||
<MudListItem T="string" Icon="@Icons.Material.Filled.Person">
|
||||
<MudLink Href="https://github.com/richard-stanton" Target="_blank">
|
||||
richard-stanton
|
||||
</MudLink>
|
||||
<MudText Typo="Typo.body1" Class="ml-3" Inline="@true">
|
||||
Thank you, Richard, for being the first.
|
||||
</MudText>
|
||||
</MudListItem>
|
||||
<Supporter Name="richard-stanton" Type="SupporterType.INDIVIDUAL" URL="https://github.com/richard-stanton" Acknowledgment="Thank you, Richard, for being the first."/>
|
||||
<Supporter Name="peerschuett" Type="SupporterType.INDIVIDUAL" URL="https://github.com/peerschuett" Acknowledgment="Thank you, Peer, for your courage in being the second person to support the project financially."/>
|
||||
</MudList>
|
||||
</MudPaper>
|
||||
</MudItem>
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# v0.9.16, build 191 (2024-11-xx xx:xx UTC)
|
||||
- Added our second financial contributor: Thanks `peerschuett` for supporting AI Studio financially.
|
||||
- Improved the layout of the app window, for example, in full-screen mode on large or high-resolution monitors.
|
||||
Reference in new issue
Block a user