...
This commit is contained in:
@@ -96,3 +96,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -14,16 +14,23 @@
|
||||
<Toasts class="p-3" AutoHide="true" Delay="4000" Placement="ToastsPlacement.TopRight" />
|
||||
<div class="bb-page">
|
||||
<Sidebar @ref="sidebar"
|
||||
Href="/"
|
||||
IconName="IconName.BootstrapFill"
|
||||
Title="هوشــیان"
|
||||
BadgeText="v1.3.1"
|
||||
ImageSrc="/before/assets/images/logofilehushian.png"
|
||||
DataProvider="SidebarDataProvider"
|
||||
Width="200"
|
||||
WidthUnit="Unit.Px" />
|
||||
Href="/"
|
||||
IconName="IconName.BootstrapFill"
|
||||
Title="هوشــیان"
|
||||
BadgeText="v1.3.1"
|
||||
ImageSrc="/before/assets/images/logofilehushian.png"
|
||||
DataProvider="SidebarDataProvider"
|
||||
Width="200"
|
||||
WidthUnit="Unit.Px" />
|
||||
<main>
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<NavLink href="@{
|
||||
hrefuserpanel
|
||||
}">لینک گفتگو کاربر با شما</NavLink>
|
||||
<NavLink href="@{
|
||||
hrefai
|
||||
}">لینک گفتگو کاربر با دستیار هوش مصنوعی</NavLink>
|
||||
<p>شناسه شرکت : @CompanyID</p>
|
||||
<div class="text-white text-end d-flex flex-column justify-content-center align-items-end mx-2">
|
||||
<div style="color: black;" class="fw-bold">@Fullname</div>
|
||||
<h6 style="color: black;">@TitleRole</h6>
|
||||
@@ -31,7 +38,7 @@
|
||||
@if (img != null && img.Length > 0)
|
||||
{
|
||||
<Image Src=@GetImageSource() Class="rounded" Alt="placeholder" @onclick="EditCurrentUser"
|
||||
Style="height: 30px;cursor:pointer;margin-left:10px" />
|
||||
Style="height: 30px;cursor:pointer;margin-left:10px" />
|
||||
|
||||
}
|
||||
else
|
||||
@@ -41,7 +48,7 @@
|
||||
|
||||
|
||||
<Button Color="ButtonColor.Danger" Size="ButtonSize.Small"
|
||||
@onclick=OnCliclLogout Style="margin-left:10px">
|
||||
@onclick=OnCliclLogout Style="margin-left:10px">
|
||||
<Icon Name="IconName.DoorOpen" /> خروج
|
||||
</Button>
|
||||
|
||||
@@ -70,11 +77,14 @@
|
||||
</div>
|
||||
|
||||
@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<List<string>>("Role");
|
||||
Username = await localStorageService.GetItem<string>("C/Username");
|
||||
Fullname = await localStorageService.GetItem<string>("C/Fullname");
|
||||
CompanyID = await localStorageService.GetItem<int>("C/CompanyId");
|
||||
string UserID = await localStorageService.GetItem<string>("C/UserID");
|
||||
img = await localStorageService.GetItem<byte[]?>("C/img");
|
||||
}
|
||||
|
@@ -248,7 +248,7 @@
|
||||
{
|
||||
@msg.text
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@if (msg.Type != Common.Enums.ConversationType.UE)
|
||||
{
|
||||
if (msg.IsRead)
|
||||
@@ -295,11 +295,11 @@
|
||||
|
||||
<!-- Audio Recording Button -->
|
||||
<Button Color="@(IsRecording ? ButtonColor.Danger : ButtonColor.Secondary)"
|
||||
Size=ButtonSize.Small
|
||||
Outline="true"
|
||||
@onclick="ToggleAudioRecording"
|
||||
class=@($"audio-btn {(IsRecording ? "recording" : "")}")
|
||||
title="@(IsRecording ? "توقف ضبط" : "ضبط صدا")">
|
||||
Size=ButtonSize.Small
|
||||
Outline="true"
|
||||
@onclick="ToggleAudioRecording"
|
||||
class=@($"audio-btn {(IsRecording ? "recording" : "")}")
|
||||
title="@(IsRecording ? "توقف ضبط" : "ضبط صدا")">
|
||||
@if (IsRecording)
|
||||
{
|
||||
<Icon Name="IconName.StopCircle" Class="recording-pulse" />
|
||||
@@ -338,6 +338,7 @@
|
||||
<Button Color="ButtonColor.Danger" Size=ButtonSize.ExtraSmall Outline="true" @onclick="ClearRecordedAudio">حذف صدا</Button>
|
||||
</div>
|
||||
}
|
||||
|
||||
<!-- Recording Status -->
|
||||
@if (IsRecording)
|
||||
{
|
||||
@@ -349,17 +350,18 @@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
Common.Dtos.CurrentUserInfo CurrentUser { get; set; }
|
||||
List<Read_GroupDto> _Group = new List<Read_GroupDto>();
|
||||
//-------------------------------------
|
||||
|
@@ -55,3 +55,4 @@ namespace HushianWebApp.Service
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user