mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 00:00:21 +00:00 
			
		
		
		
	Applied changed path class
This commit is contained in:
		
							parent
							
								
									d0a92411f5
								
							
						
					
					
						commit
						1ac39b199b
					
				@ -51,12 +51,12 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, IDis
 | 
			
		||||
    
 | 
			
		||||
    private static readonly IReadOnlyCollection<NavBarItem> NAV_ITEMS = new List<NavBarItem>
 | 
			
		||||
    {
 | 
			
		||||
        new("Home", Icons.Material.Filled.Home, Color.Default, Pages.Path.HOME, true),
 | 
			
		||||
        new("Chat", Icons.Material.Filled.Chat, Color.Default, Pages.Path.CHAT, false),
 | 
			
		||||
        new("Assistants", Icons.Material.Filled.Apps, Color.Default, Pages.Path.ASSISTANTS, false),
 | 
			
		||||
        new("Supporters", Icons.Material.Filled.Favorite, Color.Error, Pages.Path.SUPPORTERS, false),
 | 
			
		||||
        new("About", Icons.Material.Filled.Info, Color.Default, Pages.Path.ABOUT, false),
 | 
			
		||||
        new("Settings", Icons.Material.Filled.Settings, Color.Default, Pages.Path.SETTINGS, false),
 | 
			
		||||
        new("Home", Icons.Material.Filled.Home, Color.Default, PagePath.HOME, true),
 | 
			
		||||
        new("Chat", Icons.Material.Filled.Chat, Color.Default, PagePath.CHAT, false),
 | 
			
		||||
        new("Assistants", Icons.Material.Filled.Apps, Color.Default, PagePath.ASSISTANTS, false),
 | 
			
		||||
        new("Supporters", Icons.Material.Filled.Favorite, Color.Error, PagePath.SUPPORTERS, false),
 | 
			
		||||
        new("About", Icons.Material.Filled.Info, Color.Default, PagePath.ABOUT, false),
 | 
			
		||||
        new("Settings", Icons.Material.Filled.Settings, Color.Default, PagePath.SETTINGS, false),
 | 
			
		||||
    };
 | 
			
		||||
    
 | 
			
		||||
    #region Overrides of ComponentBase
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@attribute [Route(Path.ABOUT)]
 | 
			
		||||
@attribute [Route(PagePath.ABOUT)]
 | 
			
		||||
@using AIStudio.Tools
 | 
			
		||||
 | 
			
		||||
<MudText Typo="Typo.h3" Class="mb-2">About MindWork AI Studio</MudText>
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@attribute [Route(Path.ASSISTANTS)]
 | 
			
		||||
@attribute [Route(PagePath.ASSISTANTS)]
 | 
			
		||||
 | 
			
		||||
<MudText Typo="Typo.h3" Class="mb-2 mr-3">
 | 
			
		||||
    Assistants
 | 
			
		||||
@ -10,25 +10,25 @@
 | 
			
		||||
        General
 | 
			
		||||
    </MudText>
 | 
			
		||||
    <MudStack Row="@true" Wrap="@Wrap.Wrap" Class="mb-3">
 | 
			
		||||
        <AssistantBlock Name="Text Summarizer" Description="Using a LLM to summarize a given text." Icon="@Icons.Material.Filled.TextSnippet" Link="@Path.ASSISTANT_SUMMARIZER"/>
 | 
			
		||||
        <AssistantBlock Name="Translation" Description="Translate text into another language." Icon="@Icons.Material.Filled.Translate" Link="@Path.ASSISTANT_TRANSLATION"/>
 | 
			
		||||
        <AssistantBlock Name="Grammar & Spelling" Description="Check grammar and spelling of a given text." Icon="@Icons.Material.Filled.Edit" Link="@Path.ASSISTANT_GRAMMAR_SPELLING"/>
 | 
			
		||||
        <AssistantBlock Name="Rewrite & Improve" Description="Rewrite and improve a given text for a chosen style." Icon="@Icons.Material.Filled.Edit" Link="@Path.ASSISTANT_REWRITE"/>
 | 
			
		||||
        <AssistantBlock Name="Text Summarizer" Description="Using a LLM to summarize a given text." Icon="@Icons.Material.Filled.TextSnippet" Link="@PagePath.ASSISTANT_SUMMARIZER"/>
 | 
			
		||||
        <AssistantBlock Name="Translation" Description="Translate text into another language." Icon="@Icons.Material.Filled.Translate" Link="@PagePath.ASSISTANT_TRANSLATION"/>
 | 
			
		||||
        <AssistantBlock Name="Grammar & Spelling" Description="Check grammar and spelling of a given text." Icon="@Icons.Material.Filled.Edit" Link="@PagePath.ASSISTANT_GRAMMAR_SPELLING"/>
 | 
			
		||||
        <AssistantBlock Name="Rewrite & Improve" Description="Rewrite and improve a given text for a chosen style." Icon="@Icons.Material.Filled.Edit" Link="@PagePath.ASSISTANT_REWRITE"/>
 | 
			
		||||
    </MudStack>
 | 
			
		||||
 | 
			
		||||
    <MudText Typo="Typo.h4" Class="mb-2 mr-3 mt-6">
 | 
			
		||||
        Business
 | 
			
		||||
    </MudText>
 | 
			
		||||
    <MudStack Row="@true" Wrap="@Wrap.Wrap" Class="mb-3">
 | 
			
		||||
        <AssistantBlock Name="Agenda Planner" Description="Generate an agenda for a given meeting, seminar, etc." Icon="@Icons.Material.Filled.CalendarToday" Link="@Path.ASSISTANT_AGENDA"/>
 | 
			
		||||
        <AssistantBlock Name="Icon Finder" Description="Using a LLM to find an icon for a given context." Icon="@Icons.Material.Filled.FindInPage" Link="@Path.ASSISTANT_ICON_FINDER"/>
 | 
			
		||||
        <AssistantBlock Name="Agenda Planner" Description="Generate an agenda for a given meeting, seminar, etc." Icon="@Icons.Material.Filled.CalendarToday" Link="@PagePath.ASSISTANT_AGENDA"/>
 | 
			
		||||
        <AssistantBlock Name="Icon Finder" Description="Using a LLM to find an icon for a given context." Icon="@Icons.Material.Filled.FindInPage" Link="@PagePath.ASSISTANT_ICON_FINDER"/>
 | 
			
		||||
    </MudStack>
 | 
			
		||||
 | 
			
		||||
    <MudText Typo="Typo.h4" Class="mb-2 mr-3 mt-6">
 | 
			
		||||
        Software Engineering
 | 
			
		||||
    </MudText>
 | 
			
		||||
    <MudStack Row="@true" Wrap="@Wrap.Wrap" Class="mb-3">
 | 
			
		||||
        <AssistantBlock Name="Coding" Description="Get coding and debugging support from a LLM." Icon="@Icons.Material.Filled.Code" Link="@Path.ASSISTANT_CODING"/>
 | 
			
		||||
        <AssistantBlock Name="Coding" Description="Get coding and debugging support from a LLM." Icon="@Icons.Material.Filled.Code" Link="@PagePath.ASSISTANT_CODING"/>
 | 
			
		||||
    </MudStack>
 | 
			
		||||
    
 | 
			
		||||
</InnerScrolling>
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@attribute [Route(Path.CHAT)]
 | 
			
		||||
@attribute [Route(PagePath.CHAT)]
 | 
			
		||||
@using AIStudio.Chat
 | 
			
		||||
@using AIStudio.Settings.DataModel
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -268,11 +268,11 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable
 | 
			
		||||
            string chatPath;
 | 
			
		||||
            if (this.chatThread.WorkspaceId == Guid.Empty)
 | 
			
		||||
            {
 | 
			
		||||
                chatPath = System.IO.Path.Join(SettingsManager.DataDirectory, "tempChats", this.chatThread.ChatId.ToString());
 | 
			
		||||
                chatPath = Path.Join(SettingsManager.DataDirectory, "tempChats", this.chatThread.ChatId.ToString());
 | 
			
		||||
            }
 | 
			
		||||
            else
 | 
			
		||||
            {
 | 
			
		||||
                chatPath = System.IO.Path.Join(SettingsManager.DataDirectory, "workspaces", this.chatThread.WorkspaceId.ToString(), this.chatThread.ChatId.ToString());
 | 
			
		||||
                chatPath = Path.Join(SettingsManager.DataDirectory, "workspaces", this.chatThread.WorkspaceId.ToString(), this.chatThread.ChatId.ToString());
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
            await this.workspaces.DeleteChat(chatPath, askForConfirmation: false, unloadChat: true);
 | 
			
		||||
@ -345,12 +345,12 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable
 | 
			
		||||
        if (this.chatThread!.WorkspaceId == Guid.Empty)
 | 
			
		||||
        {
 | 
			
		||||
            // Case: The chat is stored in the temporary storage:
 | 
			
		||||
            await this.workspaces.DeleteChat(System.IO.Path.Join(SettingsManager.DataDirectory, "tempChats", this.chatThread.ChatId.ToString()), askForConfirmation: false, unloadChat: false);
 | 
			
		||||
            await this.workspaces.DeleteChat(Path.Join(SettingsManager.DataDirectory, "tempChats", this.chatThread.ChatId.ToString()), askForConfirmation: false, unloadChat: false);
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        {
 | 
			
		||||
            // Case: The chat is stored in a workspace.
 | 
			
		||||
            await this.workspaces.DeleteChat(System.IO.Path.Join(SettingsManager.DataDirectory, "workspaces", this.chatThread.WorkspaceId.ToString(), this.chatThread.ChatId.ToString()), askForConfirmation: false, unloadChat: false);
 | 
			
		||||
            await this.workspaces.DeleteChat(Path.Join(SettingsManager.DataDirectory, "workspaces", this.chatThread.WorkspaceId.ToString(), this.chatThread.ChatId.ToString()), askForConfirmation: false, unloadChat: false);
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        this.chatThread!.WorkspaceId = workspaceId;
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@attribute [Route(Path.HOME)]
 | 
			
		||||
@attribute [Route(PagePath.HOME)]
 | 
			
		||||
@using AIStudio.Tools
 | 
			
		||||
 | 
			
		||||
<MudImage Src="svg/banner.svg" />
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
@attribute [Route(Path.SETTINGS)]
 | 
			
		||||
@using AIStudio.Components.Pages.Coding
 | 
			
		||||
@using AIStudio.Components.Pages.TextSummarizer
 | 
			
		||||
@attribute [Route(PagePath.SETTINGS)]
 | 
			
		||||
@using AIStudio.Assistants.Coding
 | 
			
		||||
@using AIStudio.Assistants.TextSummarizer
 | 
			
		||||
@using AIStudio.Provider
 | 
			
		||||
@using AIStudio.Settings
 | 
			
		||||
@using AIStudio.Tools
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@attribute [Route(Path.SUPPORTERS)]
 | 
			
		||||
@attribute [Route(PagePath.SUPPORTERS)]
 | 
			
		||||
 | 
			
		||||
<MudText Typo="Typo.h3" Class="mb-2">Supporters</MudText>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user