mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 06:40:20 +00:00 
			
		
		
		
	Refactored pages into their own namespace
This commit is contained in:
		
							parent
							
								
									5faf10bd41
								
							
						
					
					
						commit
						426dbf27b3
					
				@ -1,7 +1,6 @@
 | 
			
		||||
using System.Text;
 | 
			
		||||
 | 
			
		||||
using AIStudio.Chat;
 | 
			
		||||
using AIStudio.Components.Pages;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Assistants.Agenda;
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,4 @@
 | 
			
		||||
@using AIStudio.Chat
 | 
			
		||||
@using AIStudio.Components.Pages
 | 
			
		||||
 | 
			
		||||
<MudText Typo="Typo.h3" Class="mb-2 mr-3">
 | 
			
		||||
    @(this.Title)
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,4 @@
 | 
			
		||||
using AIStudio.Chat;
 | 
			
		||||
using AIStudio.Components.Pages;
 | 
			
		||||
using AIStudio.Provider;
 | 
			
		||||
using AIStudio.Settings;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,5 @@
 | 
			
		||||
using System.Text;
 | 
			
		||||
 | 
			
		||||
using AIStudio.Components.Pages;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Assistants.Coding;
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,4 @@
 | 
			
		||||
using AIStudio.Chat;
 | 
			
		||||
using AIStudio.Components.Pages;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Assistants.GrammarSpelling;
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,3 @@
 | 
			
		||||
using AIStudio.Components.Pages;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Assistants.IconFinder;
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,4 @@
 | 
			
		||||
using AIStudio.Chat;
 | 
			
		||||
using AIStudio.Components.Pages;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Assistants.RewriteImprove;
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,4 @@
 | 
			
		||||
using AIStudio.Chat;
 | 
			
		||||
using AIStudio.Components.Pages;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Assistants.TextSummarizer;
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,4 @@
 | 
			
		||||
using AIStudio.Chat;
 | 
			
		||||
using AIStudio.Components.Pages;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Assistants.Translation;
 | 
			
		||||
 | 
			
		||||
@ -1,5 +0,0 @@
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.Pages;
 | 
			
		||||
 | 
			
		||||
public partial class Assistants : ComponentBase;
 | 
			
		||||
@ -1,5 +1,4 @@
 | 
			
		||||
@attribute [Route(PagePath.ABOUT)]
 | 
			
		||||
@using AIStudio.Tools
 | 
			
		||||
 | 
			
		||||
<MudText Typo="Typo.h3" Class="mb-2">About MindWork AI Studio</MudText>
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,7 @@ using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.Pages;
 | 
			
		||||
namespace AIStudio.Pages;
 | 
			
		||||
 | 
			
		||||
public partial class About : ComponentBase
 | 
			
		||||
{
 | 
			
		||||
							
								
								
									
										5
									
								
								app/MindWork AI Studio/Pages/Assistants.razor.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								app/MindWork AI Studio/Pages/Assistants.razor.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Pages;
 | 
			
		||||
 | 
			
		||||
public partial class Assistants : ComponentBase;
 | 
			
		||||
@ -1,4 +1,5 @@
 | 
			
		||||
using AIStudio.Chat;
 | 
			
		||||
using AIStudio.Components;
 | 
			
		||||
using AIStudio.Components.Blocks;
 | 
			
		||||
using AIStudio.Dialogs;
 | 
			
		||||
using AIStudio.Provider;
 | 
			
		||||
@ -11,7 +12,7 @@ using Microsoft.AspNetCore.Components.Web;
 | 
			
		||||
 | 
			
		||||
using DialogOptions = AIStudio.Dialogs.DialogOptions;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.Pages;
 | 
			
		||||
namespace AIStudio.Pages;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// The chat page.
 | 
			
		||||
@ -1,5 +1,4 @@
 | 
			
		||||
@attribute [Route(PagePath.HOME)]
 | 
			
		||||
@using AIStudio.Tools
 | 
			
		||||
 | 
			
		||||
<MudImage Src="svg/banner.svg" />
 | 
			
		||||
<MudText Typo="Typo.h3" Class="mt-2 mb-2">Let's get started</MudText>
 | 
			
		||||
@ -2,7 +2,7 @@ using AIStudio.Components.Blocks;
 | 
			
		||||
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.Pages;
 | 
			
		||||
namespace AIStudio.Pages;
 | 
			
		||||
 | 
			
		||||
public partial class Home : ComponentBase
 | 
			
		||||
{
 | 
			
		||||
@ -3,7 +3,6 @@
 | 
			
		||||
@using AIStudio.Assistants.TextSummarizer
 | 
			
		||||
@using AIStudio.Provider
 | 
			
		||||
@using AIStudio.Settings
 | 
			
		||||
@using AIStudio.Tools
 | 
			
		||||
@using Host = AIStudio.Provider.SelfHosted.Host
 | 
			
		||||
 | 
			
		||||
<MudText Typo="Typo.h3" Class="mb-12">Settings</MudText>
 | 
			
		||||
@ -9,7 +9,7 @@ using DialogOptions = AIStudio.Dialogs.DialogOptions;
 | 
			
		||||
 | 
			
		||||
// ReSharper disable ClassNeverInstantiated.Global
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.Pages;
 | 
			
		||||
namespace AIStudio.Pages;
 | 
			
		||||
 | 
			
		||||
public partial class Settings : ComponentBase, IMessageBusReceiver, IDisposable
 | 
			
		||||
{
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.Pages;
 | 
			
		||||
namespace AIStudio.Pages;
 | 
			
		||||
 | 
			
		||||
public partial class Supporters : ComponentBase
 | 
			
		||||
{
 | 
			
		||||
							
								
								
									
										11
									
								
								app/MindWork AI Studio/Pages/_Imports.razor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								app/MindWork AI Studio/Pages/_Imports.razor
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
@using Microsoft.AspNetCore.Components.Forms
 | 
			
		||||
@using Microsoft.AspNetCore.Components.Routing
 | 
			
		||||
@using Microsoft.AspNetCore.Components.Web
 | 
			
		||||
@using static Microsoft.AspNetCore.Components.Web.RenderMode
 | 
			
		||||
@using Microsoft.AspNetCore.Components.Web.Virtualization
 | 
			
		||||
@using Microsoft.JSInterop
 | 
			
		||||
@using AIStudio
 | 
			
		||||
@using AIStudio.Tools
 | 
			
		||||
@using AIStudio.Components
 | 
			
		||||
@using AIStudio.Components.Blocks
 | 
			
		||||
@using MudBlazor
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
namespace AIStudio.Components.Pages;
 | 
			
		||||
namespace AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
public enum SendTo
 | 
			
		||||
{
 | 
			
		||||
@ -1,5 +1,3 @@
 | 
			
		||||
using AIStudio.Components.Pages;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
public readonly record struct SendToButton() : IButtonData
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
namespace AIStudio.Components.Pages;
 | 
			
		||||
namespace AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
public static class SendToExtensions
 | 
			
		||||
{
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user