From ca214998558ccd0212ab903dd1a3cb07fa70705e Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 25 May 2024 14:10:30 +0200 Subject: [PATCH] Added third-party components to the about page --- .../Blocks/ThirdPartyComponent.razor | 20 ++++++++++++++ .../Blocks/ThirdPartyComponent.razor.cs | 26 ++++++++++++++++++ .../Components/Pages/About.razor | 27 ++++++++++++++++++- 3 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 app/MindWork AI Studio/Components/Blocks/ThirdPartyComponent.razor create mode 100644 app/MindWork AI Studio/Components/Blocks/ThirdPartyComponent.razor.cs diff --git a/app/MindWork AI Studio/Components/Blocks/ThirdPartyComponent.razor b/app/MindWork AI Studio/Components/Blocks/ThirdPartyComponent.razor new file mode 100644 index 0000000..c44d2a4 --- /dev/null +++ b/app/MindWork AI Studio/Components/Blocks/ThirdPartyComponent.razor @@ -0,0 +1,20 @@ + + + + + @this.Header + + + + + + + + + @this.UseCase + + + License: @this.LicenseName + + + \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Blocks/ThirdPartyComponent.razor.cs b/app/MindWork AI Studio/Components/Blocks/ThirdPartyComponent.razor.cs new file mode 100644 index 0000000..d12399e --- /dev/null +++ b/app/MindWork AI Studio/Components/Blocks/ThirdPartyComponent.razor.cs @@ -0,0 +1,26 @@ +using Microsoft.AspNetCore.Components; + +namespace AIStudio.Components.Blocks; + +public partial class ThirdPartyComponent : ComponentBase +{ + [Parameter] + public string Name { get; set; } = string.Empty; + + [Parameter] + public string UseCase { get; set; } = string.Empty; + + [Parameter] + public string Developer { get; set; } = string.Empty; + + [Parameter] + public string LicenseName { get; set; } = string.Empty; + + [Parameter] + public string LicenseUrl { get; set; } = string.Empty; + + [Parameter] + public string RepositoryUrl { get; set; } = string.Empty; + + private string Header => $"{this.Name} ({this.Developer})"; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Pages/About.razor b/app/MindWork AI Studio/Components/Pages/About.razor index 499b849..2612749 100644 --- a/app/MindWork AI Studio/Components/Pages/About.razor +++ b/app/MindWork AI Studio/Components/Pages/About.razor @@ -22,4 +22,29 @@ - \ No newline at end of file + + + + + +
+ + Used Open Source Projects +
+
+ + + + + + + + + + + + + + +
+
\ No newline at end of file