From 36019a2f80e1309a0ed6c05347847c27ccbfdd44 Mon Sep 17 00:00:00 2001 From: mmrbnjd Date: Mon, 18 Aug 2025 19:34:34 +0330 Subject: [PATCH] ... --- .../Components/PromptManagerComponent.razor | 1 + .../HushianWebApp/Layout/MainLayout.razor | 31 +++++++++++++------ Presentation/HushianWebApp/Pages/Chat.razor | 18 ++++++----- .../HushianWebApp/Service/PromptService.cs | 1 + 4 files changed, 33 insertions(+), 18 deletions(-) diff --git a/Presentation/HushianWebApp/Components/PromptManagerComponent.razor b/Presentation/HushianWebApp/Components/PromptManagerComponent.razor index 54a283f..f920f8d 100644 --- a/Presentation/HushianWebApp/Components/PromptManagerComponent.razor +++ b/Presentation/HushianWebApp/Components/PromptManagerComponent.razor @@ -96,3 +96,4 @@ + diff --git a/Presentation/HushianWebApp/Layout/MainLayout.razor b/Presentation/HushianWebApp/Layout/MainLayout.razor index f1c2fd1..16c985c 100644 --- a/Presentation/HushianWebApp/Layout/MainLayout.razor +++ b/Presentation/HushianWebApp/Layout/MainLayout.razor @@ -14,16 +14,23 @@
+ Href="/" + IconName="IconName.BootstrapFill" + Title="هوشــیان" + BadgeText="v1.3.1" + ImageSrc="/before/assets/images/logofilehushian.png" + DataProvider="SidebarDataProvider" + Width="200" + WidthUnit="Unit.Px" />
+ لینک گفتگو کاربر با شما + لینک گفتگو کاربر با دستیار هوش مصنوعی +

شناسه شرکت : @CompanyID

@Fullname
@TitleRole
@@ -31,7 +38,7 @@ @if (img != null && img.Length > 0) { placeholder + Style="height: 30px;cursor:pointer;margin-left:10px" /> } else @@ -41,7 +48,7 @@ @@ -70,11 +77,14 @@
@code { + public string hrefuserpanel { get { return $"UserCP/{CompanyID}"; } } + public string hrefai { get { return $"aichat/{CompanyID}"; } } private Modal modal = default!; public string Info { get; set; } = ""; private string SelectedMenu = "page2"; public string Username { get; set; } public string Fullname { get; set; } + public int CompanyID { get; set; } = 0; public byte[]? img { get; set; } public string Role { get; set; } bool isonline = false; @@ -89,6 +99,7 @@ //Roles = await localStorageService.GetItem>("Role"); Username = await localStorageService.GetItem("C/Username"); Fullname = await localStorageService.GetItem("C/Fullname"); + CompanyID = await localStorageService.GetItem("C/CompanyId"); string UserID = await localStorageService.GetItem("C/UserID"); img = await localStorageService.GetItem("C/img"); } diff --git a/Presentation/HushianWebApp/Pages/Chat.razor b/Presentation/HushianWebApp/Pages/Chat.razor index 3d35580..c93f0bf 100644 --- a/Presentation/HushianWebApp/Pages/Chat.razor +++ b/Presentation/HushianWebApp/Pages/Chat.razor @@ -236,7 +236,7 @@ مرورگر شما از پخش صدا پشتیبانی نمی‌کند. - +
} @if (!string.IsNullOrWhiteSpace(msg.text)) @@ -248,7 +248,7 @@ { @msg.text } -
+ @if (msg.Type != Common.Enums.ConversationType.UE) { if (msg.IsRead) @@ -295,11 +295,11 @@ } + @if (IsRecording) { @@ -349,17 +350,18 @@ } + } - @code { + Common.Dtos.CurrentUserInfo CurrentUser { get; set; } List _Group = new List(); //------------------------------------- diff --git a/Presentation/HushianWebApp/Service/PromptService.cs b/Presentation/HushianWebApp/Service/PromptService.cs index 3393f4c..bd98601 100644 --- a/Presentation/HushianWebApp/Service/PromptService.cs +++ b/Presentation/HushianWebApp/Service/PromptService.cs @@ -55,3 +55,4 @@ namespace HushianWebApp.Service +