From 8bd54e6d610df593ca206ad7931e09051fb763c7 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 2 Nov 2024 11:40:17 +0100 Subject: [PATCH] Added second supporter (#182) --- README.md | 2 +- .../Components/Supporter.razor | 18 +++++++++++++ .../Components/Supporter.razor.cs | 26 +++++++++++++++++++ .../Components/SupporterType.cs | 8 ++++++ app/MindWork AI Studio/Pages/Supporters.razor | 10 ++----- .../wwwroot/changelog/v0.9.16.md | 1 + 6 files changed, 56 insertions(+), 9 deletions(-) create mode 100644 app/MindWork AI Studio/Components/Supporter.razor create mode 100644 app/MindWork AI Studio/Components/Supporter.razor.cs create mode 100644 app/MindWork AI Studio/Components/SupporterType.cs diff --git a/README.md b/README.md index efba8c6..56a9b5c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Things we are currently working on: Other News: -- October 2024: We have our first financial supporter: Thank you @richard-stanton for financially supporting AI Studio. The supporter page in the app will be updated accordingly with the next update. +- October 2024: We've found the first two financial supporters. Huge thanks to `richard-stanton` and `peerschuett` for backing the project. Thanks for having the courage to be the first to support us. - October 2024: The [German Aerospace Center (DLR)](https://en.wikipedia.org/wiki/German_Aerospace_Center) ([Website](https://www.dlr.de/en)) will use AI Studio at least within the scope of one project and will also contribute to its further development. This is great news. diff --git a/app/MindWork AI Studio/Components/Supporter.razor b/app/MindWork AI Studio/Components/Supporter.razor new file mode 100644 index 0000000..d1378b6 --- /dev/null +++ b/app/MindWork AI Studio/Components/Supporter.razor @@ -0,0 +1,18 @@ + + @if (string.IsNullOrWhiteSpace(this.URL)) + { + + @this.Name + + } + else + { + + @this.Name + + } + + + @this.Acknowledgment + + \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Supporter.razor.cs b/app/MindWork AI Studio/Components/Supporter.razor.cs new file mode 100644 index 0000000..c4b9414 --- /dev/null +++ b/app/MindWork AI Studio/Components/Supporter.razor.cs @@ -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, + }; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/SupporterType.cs b/app/MindWork AI Studio/Components/SupporterType.cs new file mode 100644 index 0000000..c264762 --- /dev/null +++ b/app/MindWork AI Studio/Components/SupporterType.cs @@ -0,0 +1,8 @@ +namespace AIStudio.Components; + +public enum SupporterType +{ + UNKNOWN, + INDIVIDUAL, + ORGANIZATION +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Pages/Supporters.razor b/app/MindWork AI Studio/Pages/Supporters.razor index 7ba8131..26cd735 100644 --- a/app/MindWork AI Studio/Pages/Supporters.razor +++ b/app/MindWork AI Studio/Pages/Supporters.razor @@ -33,14 +33,8 @@ The first 10 supporters who make a monthly contribution: - - - richard-stanton - - - Thank you, Richard, for being the first. - - + + diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.16.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.16.md index 07c4e17..4b1933e 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.16.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.16.md @@ -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. \ No newline at end of file