Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ff8d81d0f | |||
| 62c8d8a687 | |||
| 6f1cdfe125 | |||
| dedcf0231c |
@@ -46,9 +46,6 @@
|
|||||||
case "arrow-right":
|
case "arrow-right":
|
||||||
<path d="M5 12h14M12 5l7 7-7 7" />
|
<path d="M5 12h14M12 5l7 7-7 7" />
|
||||||
break;
|
break;
|
||||||
case "log-out":
|
|
||||||
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
<!-- Fallback circle -->
|
<!-- Fallback circle -->
|
||||||
<circle cx="12" cy="12" r="10" />
|
<circle cx="12" cy="12" r="10" />
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.4 KiB |
@@ -2,8 +2,6 @@
|
|||||||
@using NexusReader.Application.Abstractions.Services
|
@using NexusReader.Application.Abstractions.Services
|
||||||
@inject IFocusModeService FocusMode
|
@inject IFocusModeService FocusMode
|
||||||
@inject IKnowledgeService KnowledgeService
|
@inject IKnowledgeService KnowledgeService
|
||||||
@inject IIdentityService IdentityService
|
|
||||||
@inject NavigationManager NavigationManager
|
|
||||||
|
|
||||||
<aside class="intelligence-toolbar">
|
<aside class="intelligence-toolbar">
|
||||||
<div class="toolbar-top">
|
<div class="toolbar-top">
|
||||||
@@ -38,9 +36,6 @@
|
|||||||
<button class="toolbar-item" title="Global Settings">
|
<button class="toolbar-item" title="Global Settings">
|
||||||
<NexusIcon Name="settings" Size="20" />
|
<NexusIcon Name="settings" Size="20" />
|
||||||
</button>
|
</button>
|
||||||
<button class="toolbar-item logout-item" @onclick="HandleLogout" title="Logout">
|
|
||||||
<NexusIcon Name="log-out" Size="20" />
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
@@ -61,12 +56,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task HandleLogout()
|
|
||||||
{
|
|
||||||
await IdentityService.LogoutAsync();
|
|
||||||
NavigationManager.NavigateTo("/", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
private Task HandleUpdate() => InvokeAsync(StateHasChanged);
|
private Task HandleUpdate() => InvokeAsync(StateHasChanged);
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
.intelligence-toolbar {
|
.intelligence-toolbar {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: #0D0D0D;
|
background: #080808;
|
||||||
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
border-right: 1px solid rgba(255, 255, 255, 0.03);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -10,7 +10,6 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
box-shadow: inset -2px 0 10px rgba(0,0,0,0.5);
|
box-shadow: inset -2px 0 10px rgba(0,0,0,0.5);
|
||||||
backdrop-filter: blur(10px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -23,7 +22,7 @@
|
|||||||
.toolbar-item {
|
.toolbar-item {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
color: #555;
|
color: #444;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 34px;
|
width: 34px;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
@@ -38,15 +37,11 @@
|
|||||||
.toolbar-item:hover {
|
.toolbar-item:hover {
|
||||||
color: var(--nexus-neon);
|
color: var(--nexus-neon);
|
||||||
background: rgba(0, 255, 153, 0.05);
|
background: rgba(0, 255, 153, 0.05);
|
||||||
box-shadow: 0 0 15px rgba(0, 255, 153, 0.15);
|
|
||||||
filter: drop-shadow(0 0 5px var(--nexus-neon));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-item.active {
|
.toolbar-item.active {
|
||||||
color: var(--nexus-neon);
|
color: var(--nexus-neon);
|
||||||
background: rgba(0, 255, 153, 0.08);
|
background: rgba(0, 255, 153, 0.08);
|
||||||
box-shadow: 0 0 20px rgba(0, 255, 153, 0.25);
|
|
||||||
filter: drop-shadow(0 0 8px var(--nexus-neon));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-item.active::after {
|
.toolbar-item.active::after {
|
||||||
|
|||||||
@@ -35,7 +35,10 @@
|
|||||||
<span>Asystent AI</span>
|
<span>Asystent AI</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="user-profile">
|
||||||
|
<span class="user-email">@context.User.Identity?.Name</span>
|
||||||
|
<button class="logout-btn" @onclick="HandleLogout">Logout</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button class="close-btn">×</button>
|
<button class="close-btn">×</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -90,7 +93,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async Task HandleLogout()
|
||||||
|
{
|
||||||
|
await IdentityService.LogoutAsync();
|
||||||
|
NavigationManager.NavigateTo("/", true);
|
||||||
|
}
|
||||||
|
|
||||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user