mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 00:40:20 +00:00 
			
		
		
		
	Refactored dialogs into their own namespace
This commit is contained in:
		
							parent
							
								
									582a99c91f
								
							
						
					
					
						commit
						5faf10bd41
					
				@ -3,13 +3,13 @@ using System.Text.Json;
 | 
			
		||||
using System.Text.Json.Serialization;
 | 
			
		||||
 | 
			
		||||
using AIStudio.Chat;
 | 
			
		||||
using AIStudio.Components.CommonDialogs;
 | 
			
		||||
using AIStudio.Dialogs;
 | 
			
		||||
using AIStudio.Settings;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
using DialogOptions = AIStudio.Components.CommonDialogs.DialogOptions;
 | 
			
		||||
using DialogOptions = AIStudio.Dialogs.DialogOptions;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.Blocks;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
using AIStudio.Components.CommonDialogs;
 | 
			
		||||
using AIStudio.Dialogs;
 | 
			
		||||
using AIStudio.Settings;
 | 
			
		||||
using AIStudio.Settings.DataModel;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
@ -6,7 +6,7 @@ using AIStudio.Tools;
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
using Microsoft.AspNetCore.Components.Routing;
 | 
			
		||||
 | 
			
		||||
using DialogOptions = AIStudio.Components.CommonDialogs.DialogOptions;
 | 
			
		||||
using DialogOptions = AIStudio.Dialogs.DialogOptions;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.Layout;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using AIStudio.Chat;
 | 
			
		||||
using AIStudio.Components.Blocks;
 | 
			
		||||
using AIStudio.Components.CommonDialogs;
 | 
			
		||||
using AIStudio.Dialogs;
 | 
			
		||||
using AIStudio.Provider;
 | 
			
		||||
using AIStudio.Settings;
 | 
			
		||||
using AIStudio.Settings.DataModel;
 | 
			
		||||
@ -9,7 +9,7 @@ using AIStudio.Tools;
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
using Microsoft.AspNetCore.Components.Web;
 | 
			
		||||
 | 
			
		||||
using DialogOptions = AIStudio.Components.CommonDialogs.DialogOptions;
 | 
			
		||||
using DialogOptions = AIStudio.Dialogs.DialogOptions;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.Pages;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,11 +1,11 @@
 | 
			
		||||
using AIStudio.Components.CommonDialogs;
 | 
			
		||||
using AIStudio.Dialogs;
 | 
			
		||||
using AIStudio.Provider;
 | 
			
		||||
using AIStudio.Settings;
 | 
			
		||||
using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
using DialogOptions = AIStudio.Components.CommonDialogs.DialogOptions;
 | 
			
		||||
using DialogOptions = AIStudio.Dialogs.DialogOptions;
 | 
			
		||||
 | 
			
		||||
// ReSharper disable ClassNeverInstantiated.Global
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.CommonDialogs;
 | 
			
		||||
namespace AIStudio.Dialogs;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// A confirmation dialog that can be used to ask the user for confirmation.
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
namespace AIStudio.Components.CommonDialogs;
 | 
			
		||||
namespace AIStudio.Dialogs;
 | 
			
		||||
 | 
			
		||||
public static class DialogOptions
 | 
			
		||||
{
 | 
			
		||||
@ -2,7 +2,7 @@ using AIStudio.Settings;
 | 
			
		||||
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.CommonDialogs;
 | 
			
		||||
namespace AIStudio.Dialogs;
 | 
			
		||||
 | 
			
		||||
public partial class SingleInputDialog : ComponentBase
 | 
			
		||||
{
 | 
			
		||||
@ -1,4 +1,3 @@
 | 
			
		||||
@using AIStudio.Tools
 | 
			
		||||
<MudDialog>
 | 
			
		||||
    <DialogContent>
 | 
			
		||||
        <MudText Typo="Typo.h4" Class="d-inline-flex align-center">
 | 
			
		||||
@ -4,7 +4,7 @@ using AIStudio.Tools;
 | 
			
		||||
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.CommonDialogs;
 | 
			
		||||
namespace AIStudio.Dialogs;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// The update dialog that is used to inform the user about an available update.
 | 
			
		||||
@ -4,7 +4,7 @@ using AIStudio.Settings;
 | 
			
		||||
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace AIStudio.Components.CommonDialogs;
 | 
			
		||||
namespace AIStudio.Dialogs;
 | 
			
		||||
 | 
			
		||||
public partial class WorkspaceSelectionDialog : ComponentBase
 | 
			
		||||
{
 | 
			
		||||
							
								
								
									
										11
									
								
								app/MindWork AI Studio/Dialogs/_Imports.razor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								app/MindWork AI Studio/Dialogs/_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
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user