From a78a2ea1fee4c944fbbdcda28fb02e0dec606f12 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 4 Aug 2024 12:46:57 +0200 Subject: [PATCH] Added a process component to visualize processes --- .../Components/Blocks/ProcessComponent.razor | 11 +++++++++++ .../Components/Blocks/ProcessComponent.razor.cs | 16 ++++++++++++++++ .../Components/Blocks/ReadWebContent.razor | 7 +------ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 app/MindWork AI Studio/Components/Blocks/ProcessComponent.razor create mode 100644 app/MindWork AI Studio/Components/Blocks/ProcessComponent.razor.cs diff --git a/app/MindWork AI Studio/Components/Blocks/ProcessComponent.razor b/app/MindWork AI Studio/Components/Blocks/ProcessComponent.razor new file mode 100644 index 00000000..54d61e93 --- /dev/null +++ b/app/MindWork AI Studio/Components/Blocks/ProcessComponent.razor @@ -0,0 +1,11 @@ +@typeparam T + +@if (this.ShowProgressAnimation) +{ +
+ +
+} +
+ +
\ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Blocks/ProcessComponent.razor.cs b/app/MindWork AI Studio/Components/Blocks/ProcessComponent.razor.cs new file mode 100644 index 00000000..6d711326 --- /dev/null +++ b/app/MindWork AI Studio/Components/Blocks/ProcessComponent.razor.cs @@ -0,0 +1,16 @@ +using AIStudio.Tools; + +using Microsoft.AspNetCore.Components; + +namespace AIStudio.Components.Blocks; + +public partial class ProcessComponent : ComponentBase where T : struct, Enum +{ + [Parameter] + public bool ShowProgressAnimation { get; set; } + + [Parameter] + public ProcessStepValue StepValue { get; set; } + + private readonly Process process = Process.INSTANCE; +} \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Blocks/ReadWebContent.razor b/app/MindWork AI Studio/Components/Blocks/ReadWebContent.razor index fc716034..1d83309c 100644 --- a/app/MindWork AI Studio/Components/Blocks/ReadWebContent.razor +++ b/app/MindWork AI Studio/Components/Blocks/ReadWebContent.razor @@ -11,12 +11,7 @@ @if (this.AgentIsRunning) { -
- -
-
- -
+ } } \ No newline at end of file