Organization and blessing data
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
@using Web.Pages
|
||||
<Router AppAssembly="@typeof(App).Assembly" NotFoundPage="typeof(NotFound)">
|
||||
<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="new[] { typeof(Shared.Pages.Home).Assembly }" NotFoundPage="typeof(Shared.Pages.NotFound)">
|
||||
<Found Context="routeData">
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(Shared.Components.MainLayout)"/>
|
||||
<FocusOnNavigate RouteData="@routeData" Selector="h1"/>
|
||||
</Found>
|
||||
</Router>
|
||||
@@ -1,12 +0,0 @@
|
||||
@inherits LayoutComponentBase
|
||||
<div class="page">
|
||||
<div class="sidebar">
|
||||
<NavMenu/>
|
||||
</div>
|
||||
|
||||
<main>
|
||||
<article class="content px-4">
|
||||
@Body
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
@@ -1,76 +0,0 @@
|
||||
.page {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
background: #0f0f0f;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background: #141414;
|
||||
border-right: 1px solid #222;
|
||||
}
|
||||
|
||||
.top-row {
|
||||
background-color: #1a1a1a;
|
||||
border-bottom: 1px solid #2a2a2a;
|
||||
justify-content: flex-end;
|
||||
height: 3.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.top-row ::deep a, .top-row ::deep .btn-link {
|
||||
white-space: nowrap;
|
||||
margin-left: 1.5rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.top-row ::deep a:first-child {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
@media (max-width: 640.98px) {
|
||||
.top-row {
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 641px) {
|
||||
.page {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: 250px;
|
||||
height: 100vh;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.top-row {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.top-row.auth ::deep a:first-child {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.top-row, article {
|
||||
padding-left: 2rem !important;
|
||||
padding-right: 1.5rem !important;
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
<div class="top-row ps-3 navbar navbar-dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="">Web</a>
|
||||
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="@NavMenuCssClass nav-scrollable" @onclick="ToggleNavMenu">
|
||||
<nav class="nav flex-column">
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
|
||||
<span class="bi bi-house-door-fill-nav-menu" aria-hidden="true"></span> Home
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="keyboard">
|
||||
<span class="bi bi-keyboard-nav-menu" aria-hidden="true"></span> Keyboard
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="docs">
|
||||
<span class="bi bi-book-nav-menu" aria-hidden="true"></span> Docs
|
||||
</NavLink>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private bool collapseNavMenu = true;
|
||||
|
||||
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
||||
|
||||
private void ToggleNavMenu()
|
||||
{
|
||||
collapseNavMenu = !collapseNavMenu;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,86 +0,0 @@
|
||||
.navbar-toggler {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.top-row {
|
||||
min-height: 3.5rem;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-size: 1.1rem;
|
||||
color: #e0e0e0 !important;
|
||||
}
|
||||
|
||||
.bi {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
margin-right: 0.75rem;
|
||||
top: -1px;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.bi-house-door-fill-nav-menu {
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.bi-plus-square-fill-nav-menu {
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.bi-keyboard-nav-menu {
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-keyboard' viewBox='0 0 16 16'%3E%3Cpath d='M14 5a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12zM2 4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H2z'/%3E%3Cpath d='M4 8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm3 0a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm3 0a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm-6 2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm3 0a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm3 0a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm-4.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.bi-book-nav-menu {
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-book' viewBox='0 0 16 16'%3E%3Cpath d='M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811V2.828zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
font-size: 0.9rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.nav-item:first-of-type {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.nav-item:last-of-type {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.nav-item ::deep a {
|
||||
color: #b0b0b0;
|
||||
border-radius: 4px;
|
||||
height: 3rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
line-height: 3rem;
|
||||
}
|
||||
|
||||
.nav-item ::deep a.active {
|
||||
background-color: rgba(255, 255, 255, 0.08);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.nav-item ::deep a:hover {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
@media (min-width: 641px) {
|
||||
.navbar-toggler {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.collapse {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nav-scrollable {
|
||||
height: calc(100vh - 3.5rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
@@ -1,337 +0,0 @@
|
||||
@page "/docs"
|
||||
@using System.Text.RegularExpressions
|
||||
@inject IJSRuntime JS
|
||||
|
||||
<PageTitle>Fellowship Docs</PageTitle>
|
||||
|
||||
<div class="docs-page">
|
||||
<div class="docs-header">
|
||||
<h1 class="docs-title">Fellowship Reference</h1>
|
||||
<p class="docs-subtitle">@DocsData.All.Count entries across @Groups.Count() categories</p>
|
||||
<div class="docs-search">
|
||||
<span class="search-icon">🔍</span>
|
||||
<input type="text" class="search-input" placeholder="Search docs..." @bind="searchTerm" @bind:after="OnSearchChanged" />
|
||||
@if (!string.IsNullOrEmpty(searchTerm))
|
||||
{
|
||||
<button class="search-clear" @onclick="ClearSearch">×</button>
|
||||
}
|
||||
</div>
|
||||
<div class="docs-filter-bar">
|
||||
<button class="filter-btn @(activeFilter == null ? "active" : "")" @onclick="FilterAll">All</button>
|
||||
<button class="filter-btn @(activeFilter == "Skill" ? "active" : "")" @onclick="FilterSkills">Skills</button>
|
||||
<button class="filter-btn @(activeFilter == "Debuff" ? "active" : "")" @onclick="FilterDebuffs">Debuffs</button>
|
||||
<button class="filter-btn @(activeFilter == "Buff" ? "active" : "")" @onclick="FilterBuffs">Buffs</button>
|
||||
<button class="filter-btn @(activeFilter == "Key" ? "active" : "")" @onclick="FilterKeys">Keys</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="docs-body">
|
||||
<nav class="docs-sidebar">
|
||||
<div class="sidebar-inner">
|
||||
@foreach (var group in FilteredGroups)
|
||||
{
|
||||
var groupId = GetGroupId(group.Key);
|
||||
<div class="sidebar-group">
|
||||
<a class="sidebar-group-title" href="@($"#{groupId}")" @onclick:preventDefault @onclick="() => ScrollTo(groupId)">@group.Key</a>
|
||||
<div class="sidebar-items">
|
||||
@foreach (var doc in group)
|
||||
{
|
||||
var docId = GetDocId(doc);
|
||||
<a class="sidebar-item" href="@($"#{docId}")" @onclick:preventDefault @onclick="() => ScrollTo(docId)" title="@doc.FileName">
|
||||
<span class="sidebar-item-badge @GetTypeClass(doc)"></span>
|
||||
@GetDisplayName(doc)
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="docs-content">
|
||||
@if (!FilteredGroups.Any())
|
||||
{
|
||||
<div class="no-results">
|
||||
<p>No docs match "@searchTerm"</p>
|
||||
<button class="filter-btn" @onclick="ClearSearch">Clear search</button>
|
||||
</div>
|
||||
}
|
||||
|
||||
@foreach (var group in FilteredGroups)
|
||||
{
|
||||
var groupId = GetGroupId(group.Key);
|
||||
<section class="group-section">
|
||||
<div class="group-header" id="@groupId">
|
||||
<h2 class="group-title">@group.Key</h2>
|
||||
<span class="group-count">@group.Count()</span>
|
||||
</div>
|
||||
|
||||
@foreach (var doc in group)
|
||||
{
|
||||
var docId = GetDocId(doc);
|
||||
var typeName = doc.GetType().Name.Replace("Doc", "");
|
||||
<article class="doc-card" id="@docId">
|
||||
<div class="doc-card-header">
|
||||
<div class="doc-card-title-row">
|
||||
<h3 class="doc-card-title">@GetDisplayName(doc)</h3>
|
||||
<span class="doc-type-badge @GetTypeClass(doc)">@typeName</span>
|
||||
</div>
|
||||
@if (doc is SkillDoc { Key: { } key } && !string.IsNullOrEmpty(key))
|
||||
{
|
||||
<div class="doc-key-badge">
|
||||
<span class="key-icon">⌨</span>
|
||||
<span class="key-text">@key</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="doc-card-body">
|
||||
@if (doc is SkillDoc { Description: { } desc } && !string.IsNullOrEmpty(desc))
|
||||
{
|
||||
<div class="doc-description">
|
||||
@{
|
||||
var lines = desc.Split('\n');
|
||||
foreach (var line in lines)
|
||||
{
|
||||
<p>@RenderWikiLinks(line)</p>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="doc-fields">
|
||||
@foreach (var field in GetOrderedFields(doc))
|
||||
{
|
||||
<div class="doc-field">
|
||||
<span class="doc-field-label">@field.Label</span>
|
||||
<span class="doc-field-value">@field.Value</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (GetBody(doc) is { } body && !string.IsNullOrWhiteSpace(body) && (doc is not SkillDoc || string.IsNullOrWhiteSpace(((SkillDoc)doc).Description)))
|
||||
{
|
||||
<div class="doc-body">
|
||||
<pre class="doc-body-text">@body.Trim()</pre>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (doc is SkillDoc { Tags: { } tags } && tags.Count > 0)
|
||||
{
|
||||
<div class="doc-card-footer">
|
||||
@foreach (var tag in tags)
|
||||
{
|
||||
<span class="tag-badge">@tag</span>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</article>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private string? searchTerm;
|
||||
private string? activeFilter;
|
||||
private List<IGrouping<string, DocEntry>> Groups = [];
|
||||
private IEnumerable<IGrouping<string, DocEntry>> FilteredGroups => Groups
|
||||
.Where(g => g.Any(d => MatchesFilter(d)))
|
||||
.OrderBy(g => SortOrder(g.Key));
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Groups = DocsData.All
|
||||
.GroupBy(d => GetCharacterOrType(d))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
private bool MatchesFilter(DocEntry doc)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(searchTerm))
|
||||
{
|
||||
var term = searchTerm.Trim().ToLowerInvariant();
|
||||
var name = GetDisplayName(doc).ToLowerInvariant();
|
||||
if (!name.Contains(term)) return false;
|
||||
}
|
||||
if (activeFilter != null)
|
||||
{
|
||||
var type = doc.GetType().Name.Replace("Doc", "");
|
||||
if (type != activeFilter) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private static int SortOrder(string groupKey) => groupKey switch
|
||||
{
|
||||
"Xavian" => 0,
|
||||
"Rime" => 1,
|
||||
"Vigour" => 2,
|
||||
"Keys" => 3,
|
||||
_ => 99
|
||||
};
|
||||
|
||||
private void OnSearchChanged()
|
||||
{
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private void ClearSearch()
|
||||
{
|
||||
searchTerm = null;
|
||||
activeFilter = null;
|
||||
}
|
||||
|
||||
private async Task ScrollTo(string id)
|
||||
{
|
||||
await JS.InvokeVoidAsync("scrollToFragment", id);
|
||||
}
|
||||
|
||||
private void FilterAll() { activeFilter = null; }
|
||||
private void FilterSkills() { activeFilter = activeFilter == "Skill" ? null : "Skill"; }
|
||||
private void FilterDebuffs() { activeFilter = activeFilter == "Debuff" ? null : "Debuff"; }
|
||||
private void FilterBuffs() { activeFilter = activeFilter == "Buff" ? null : "Buff"; }
|
||||
private void FilterKeys() { activeFilter = activeFilter == "Key" ? null : "Key"; }
|
||||
|
||||
private static string GetCharacterOrType(DocEntry doc) => doc switch
|
||||
{
|
||||
SkillDoc s => s.Character,
|
||||
DebuffDoc d => d.Character,
|
||||
BuffDoc b => b.Character,
|
||||
CharacterDoc c => c.Character,
|
||||
KeyDoc => "Keys",
|
||||
_ => "Other"
|
||||
};
|
||||
|
||||
private static string GetDisplayName(DocEntry doc) =>
|
||||
Path.GetFileNameWithoutExtension(doc.FileName);
|
||||
|
||||
private static string GetGroupId(string group) =>
|
||||
$"group-{group.GetHashCode():x}";
|
||||
|
||||
private static string GetDocId(DocEntry doc) =>
|
||||
$"doc-{doc.FileName.GetHashCode():x}";
|
||||
|
||||
private static string GetTypeClass(DocEntry doc) => doc switch
|
||||
{
|
||||
SkillDoc => "type-skill",
|
||||
DebuffDoc => "type-debuff",
|
||||
BuffDoc => "type-buff",
|
||||
KeyDoc => "type-key",
|
||||
CharacterDoc => "type-character",
|
||||
_ => ""
|
||||
};
|
||||
|
||||
private static MarkupString RenderWikiLinks(string line)
|
||||
{
|
||||
var result = Regex.Replace(line, @"\[\[([^\]]+)\]\]", m =>
|
||||
{
|
||||
var name = m.Groups[1].Value;
|
||||
return $"<span class=\"wiki-link\">{name}</span>";
|
||||
});
|
||||
return new MarkupString(result);
|
||||
}
|
||||
|
||||
private static readonly Dictionary<string, string> FieldLabels = new()
|
||||
{
|
||||
["Character"] = "Character",
|
||||
["Cast"] = "Cast Time",
|
||||
["Key"] = "Key Bind",
|
||||
["Range"] = "Range",
|
||||
["Damage"] = "Damage",
|
||||
["DamageType"] = "Damage Type",
|
||||
["Heal"] = "Healing",
|
||||
["Shield"] = "Shield",
|
||||
["Cooldown"] = "Cooldown",
|
||||
["Mana"] = "Mana Cost",
|
||||
["OffGlobalCooldown"] = "Off GCD",
|
||||
["Gdc"] = "GDC",
|
||||
["Duration"] = "Duration",
|
||||
["DamageReduction"] = "Dmg Reduction",
|
||||
["DamageTickTime"] = "Tick Interval",
|
||||
["IsToggle"] = "Toggle",
|
||||
["ManaUpkeepTick"] = "Mana Upkeep",
|
||||
["ParryChance"] = "Parry Chance",
|
||||
["DamageRedirection"] = "Dmg Redirection",
|
||||
["SpiritCost"] = "Spirit Cost",
|
||||
["SecondEffectDuration"] = "Effect 2 Duration",
|
||||
["SecondEffectDamageReduction"] = "Effect 2 Dmg Reduction",
|
||||
["HealingDuration"] = "Healing Duration",
|
||||
["HealingTickTime"] = "Healing Tick",
|
||||
["CostSwiftReprieval"] = "Cost: Swift Reprieval",
|
||||
["GdcDuration"] = "GDC Duration",
|
||||
["Effect"] = "Effect",
|
||||
["GeneratesSpirit"] = "Generates Spirit",
|
||||
["AreaDamagePercentage"] = "Cleave %",
|
||||
["SwiftReprievalChance"] = "Swift Reprieval %",
|
||||
["MaxStacks"] = "Max Stacks",
|
||||
["Action"] = "Action",
|
||||
["ParryChanceBonus"] = "Parry Bonus",
|
||||
["ManaRestoreBase"] = "Mana Restore Base",
|
||||
["ManaRestorePerStack"] = "Mana Per Stack",
|
||||
["Order"] = "Order",
|
||||
["Priority"] = "Priority",
|
||||
["Completed"] = "Completed",
|
||||
["Raw"] = "Raw",
|
||||
};
|
||||
|
||||
private static readonly Dictionary<Type, string[]> FieldOrder = new()
|
||||
{
|
||||
[typeof(SkillDoc)] = ["Character", "Cast", "Key", "Range", "Damage", "DamageType", "Heal", "Shield", "Cooldown", "Mana", "OffGlobalCooldown", "Gdc", "Duration", "DamageReduction", "DamageTickTime", "IsToggle", "ManaUpkeepTick", "ParryChance", "DamageRedirection", "GeneratesSpirit", "AreaDamagePercentage", "SwiftReprievalChance", "Effect", "SpiritCost", "SecondEffectDuration", "SecondEffectDamageReduction", "HealingDuration", "HealingTickTime", "CostSwiftReprieval", "GdcDuration"],
|
||||
[typeof(DebuffDoc)] = ["Character", "MaxStacks", "Duration", "ParryChanceBonus", "ManaRestoreBase", "ManaRestorePerStack"],
|
||||
[typeof(BuffDoc)] = ["Character", "MaxStacks"],
|
||||
[typeof(KeyDoc)] = ["Action"],
|
||||
[typeof(CharacterDoc)] = ["Character"],
|
||||
};
|
||||
|
||||
private static List<FieldEntry> GetOrderedFields(DocEntry doc)
|
||||
{
|
||||
var result = new List<FieldEntry>();
|
||||
var type = doc.GetType();
|
||||
var order = FieldOrder.GetValueOrDefault(type, []);
|
||||
var allProps = new Dictionary<string, string>();
|
||||
|
||||
foreach (var prop in type.GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance))
|
||||
{
|
||||
var name = prop.Name;
|
||||
if (name is "FileName" or "FilePath" or "Body" or "Description") continue;
|
||||
|
||||
var value = prop.GetValue(doc);
|
||||
if (value == null) continue;
|
||||
|
||||
if (value is bool bVal && !bVal) continue;
|
||||
if (value is string s && string.IsNullOrEmpty(s)) continue;
|
||||
|
||||
var display = value switch
|
||||
{
|
||||
List<string> list => string.Join(", ", list),
|
||||
_ => value.ToString()
|
||||
};
|
||||
|
||||
if (string.IsNullOrEmpty(display)) continue;
|
||||
allProps[name] = display;
|
||||
}
|
||||
|
||||
foreach (var key in order)
|
||||
{
|
||||
if (allProps.Remove(key, out var val))
|
||||
{
|
||||
result.Add(new FieldEntry(FieldLabels.GetValueOrDefault(key, key), val));
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var (key, val) in allProps)
|
||||
{
|
||||
result.Add(new FieldEntry(FieldLabels.GetValueOrDefault(key, key), val));
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private static string? GetBody(DocEntry doc) => doc.Body;
|
||||
|
||||
private record FieldEntry(string Label, string Value);
|
||||
}
|
||||
@@ -1,433 +0,0 @@
|
||||
.docs-page {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.docs-header {
|
||||
padding: 24px 0 16px;
|
||||
border-bottom: 1px solid #2a2a2a;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.docs-title {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
|
||||
.docs-subtitle {
|
||||
color: #888;
|
||||
font-size: 13px;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
.docs-search {
|
||||
position: relative;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 14px;
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
padding: 10px 36px 10px 36px;
|
||||
border: 1px solid #333;
|
||||
border-radius: 8px;
|
||||
background: #1a1a1a;
|
||||
color: #e0e0e0;
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
border-color: #5588ff;
|
||||
box-shadow: 0 0 0 3px rgba(85, 136, 255, 0.15);
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.search-clear {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: none;
|
||||
border: none;
|
||||
color: #888;
|
||||
font-size: 20px;
|
||||
cursor: pointer;
|
||||
padding: 4px 8px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.search-clear:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.docs-filter-bar {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.filter-btn {
|
||||
padding: 6px 14px;
|
||||
border: 1px solid #333;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: #aaa;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.filter-btn:hover {
|
||||
border-color: #5588ff;
|
||||
color: #5588ff;
|
||||
background: rgba(85, 136, 255, 0.08);
|
||||
}
|
||||
|
||||
.filter-btn.active {
|
||||
border-color: #5588ff;
|
||||
color: #fff;
|
||||
background: #5588ff;
|
||||
}
|
||||
|
||||
.docs-body {
|
||||
display: flex;
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
.docs-sidebar {
|
||||
width: 220px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-inner {
|
||||
position: sticky;
|
||||
top: 16px;
|
||||
max-height: calc(100vh - 120px);
|
||||
overflow-y: auto;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.sidebar-inner::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
.sidebar-inner::-webkit-scrollbar-thumb {
|
||||
background: #333;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.sidebar-group {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.sidebar-group-title {
|
||||
display: block;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1.2px;
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
padding: 4px 8px;
|
||||
margin-bottom: 4px;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
|
||||
.sidebar-group-title:hover {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.sidebar-items {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sidebar-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 5px 8px 5px 12px;
|
||||
font-size: 13px;
|
||||
color: #999;
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
transition: all 0.15s;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.sidebar-item:hover {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.sidebar-item-badge {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-item-badge.type-skill { background: #5588ff; }
|
||||
.sidebar-item-badge.type-debuff { background: #ff5544; }
|
||||
.sidebar-item-badge.type-buff { background: #44bb66; }
|
||||
.sidebar-item-badge.type-key { background: #888; }
|
||||
.sidebar-item-badge.type-character { background: #ffaa33; }
|
||||
|
||||
.docs-content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.no-results {
|
||||
text-align: center;
|
||||
padding: 60px 20px;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.no-results p {
|
||||
font-size: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.group-section {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.group-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 2px solid #2a2a2a;
|
||||
}
|
||||
|
||||
.group-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.group-count {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
background: #1a1a1a;
|
||||
padding: 2px 10px;
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.doc-card {
|
||||
background: #161616;
|
||||
border: 1px solid #2a2a2a;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 16px;
|
||||
overflow: hidden;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.doc-card:hover {
|
||||
border-color: #3a3a3a;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.doc-card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
padding: 16px 20px 12px;
|
||||
background: linear-gradient(135deg, #1e1e1e, #181818);
|
||||
border-bottom: 1px solid #2a2a2a;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.doc-card-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.doc-card-title {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.doc-type-badge {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.8px;
|
||||
padding: 3px 10px;
|
||||
border-radius: 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.doc-type-badge.type-skill { background: rgba(85, 136, 255, 0.15); color: #7799ff; border: 1px solid rgba(85, 136, 255, 0.3); }
|
||||
.doc-type-badge.type-debuff { background: rgba(255, 85, 68, 0.15); color: #ff7766; border: 1px solid rgba(255, 85, 68, 0.3); }
|
||||
.doc-type-badge.type-buff { background: rgba(68, 187, 102, 0.15); color: #66dd88; border: 1px solid rgba(68, 187, 102, 0.3); }
|
||||
.doc-type-badge.type-key { background: rgba(136, 136, 136, 0.15); color: #aaa; border: 1px solid rgba(136, 136, 136, 0.3); }
|
||||
.doc-type-badge.type-character { background: rgba(255, 170, 51, 0.15); color: #ffbb55; border: 1px solid rgba(255, 170, 51, 0.3); }
|
||||
|
||||
.doc-key-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: #0f0f0f;
|
||||
border: 1px solid #333;
|
||||
border-radius: 6px;
|
||||
padding: 5px 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.key-icon {
|
||||
font-size: 14px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.key-text {
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
font-family: 'Courier New', monospace;
|
||||
}
|
||||
|
||||
.doc-card-body {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
|
||||
.doc-description {
|
||||
margin-bottom: 14px;
|
||||
padding: 12px 16px;
|
||||
background: #121212;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #222;
|
||||
}
|
||||
|
||||
.doc-description p {
|
||||
margin: 0 0 4px;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.doc-description p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wiki-link {
|
||||
color: #7799ff;
|
||||
font-weight: 600;
|
||||
border-bottom: 1px dashed rgba(85, 136, 255, 0.3);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.doc-fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 6px 16px;
|
||||
}
|
||||
|
||||
.doc-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 6px 10px;
|
||||
background: #131313;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #222;
|
||||
}
|
||||
|
||||
.doc-field-label {
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.6px;
|
||||
color: #666;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.doc-field-value {
|
||||
font-size: 14px;
|
||||
color: #ddd;
|
||||
font-weight: 500;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.doc-body {
|
||||
margin-top: 14px;
|
||||
padding: 12px 16px;
|
||||
background: #0f0f0f;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #1a1a1a;
|
||||
}
|
||||
|
||||
.doc-body-text {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: #888;
|
||||
white-space: pre-wrap;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.doc-card-footer {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
padding: 10px 20px 14px;
|
||||
border-top: 1px solid #222;
|
||||
}
|
||||
|
||||
.tag-badge {
|
||||
font-size: 11px;
|
||||
padding: 4px 12px;
|
||||
border-radius: 4px;
|
||||
background: rgba(85, 136, 255, 0.1);
|
||||
color: #7799ff;
|
||||
border: 1px solid rgba(85, 136, 255, 0.2);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.docs-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.docs-fields {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.doc-card-header {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.doc-fields {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
@page "/"
|
||||
|
||||
<PageTitle>Home</PageTitle>
|
||||
|
||||
<h1>Hello, world!</h1>
|
||||
|
||||
Welcome to your new app.
|
||||
@@ -1,637 +0,0 @@
|
||||
@page "/keyboard"
|
||||
|
||||
<PageTitle>Keyboard</PageTitle>
|
||||
|
||||
<div class="kb-layout">
|
||||
<div class="kb-left">
|
||||
|
||||
@if (toast != null)
|
||||
{
|
||||
<div class="toast-notification @(toast.Visible ? "toast-show" : "toast-hide")">
|
||||
<div class="toast-content">
|
||||
<span class="toast-icon">⚠</span>
|
||||
<div class="toast-text">
|
||||
<span class="toast-title">@toast.SkillName</span>
|
||||
<span class="toast-message">Cannot cast yet — @toast.Remaining seconds remaining</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="character-selector">
|
||||
<label>Character:</label>
|
||||
<select @bind="selectedCharacter" @bind:after="RebuildKeyboardData">
|
||||
@foreach (var c in Characters)
|
||||
{
|
||||
<option value="@c">@c</option>
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="keyboard-container" @onkeydown="HandleKeyDown" tabindex="0" @ref="containerRef">
|
||||
<div class="keyboard-wrapper">
|
||||
<div class="kb-row">
|
||||
@foreach (var k in Keys.Take(6))
|
||||
{
|
||||
<div class="kb-key @(k.OnCooldown ? "on-cd" : "")" @onclick="() => ActivateKey(k)" title="@k.Tooltip">
|
||||
<span class="key-label">@k.Label</span>
|
||||
@if (k.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@k.SkillName</span>
|
||||
}
|
||||
@if (k.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - k.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@k.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="kb-row kb-offset-1">
|
||||
@foreach (var k in Keys.Skip(6).Take(5))
|
||||
{
|
||||
<div class="kb-key @(k.OnCooldown ? "on-cd" : "")" @onclick="() => ActivateKey(k)" title="@k.Tooltip">
|
||||
<span class="key-label">@k.Label</span>
|
||||
@if (k.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@k.SkillName</span>
|
||||
}
|
||||
@if (k.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - k.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@k.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="kb-row kb-offset-2">
|
||||
@foreach (var k in Keys.Skip(11).Take(5))
|
||||
{
|
||||
<div class="kb-key @(k.OnCooldown ? "on-cd" : "")" @onclick="() => ActivateKey(k)" title="@k.Tooltip">
|
||||
<span class="key-label">@k.Label</span>
|
||||
@if (k.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@k.SkillName</span>
|
||||
}
|
||||
@if (k.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - k.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@k.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="kb-row kb-offset-1">
|
||||
@foreach (var k in Keys.Skip(16).Take(5))
|
||||
{
|
||||
<div class="kb-key @(k.OnCooldown ? "on-cd" : "")" @onclick="() => ActivateKey(k)" title="@k.Tooltip">
|
||||
<span class="key-label">@k.Label</span>
|
||||
@if (k.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@k.SkillName</span>
|
||||
}
|
||||
@if (k.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - k.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@k.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="kb-row kb-space-row">
|
||||
<div class="kb-key kb-space @(spaceKey.OnCooldown ? "on-cd" : "")" @onclick="() => ActivateKey(spaceKey)"
|
||||
title="@spaceKey.Tooltip">
|
||||
<span class="key-label">@spaceKey.Label</span>
|
||||
@if (spaceKey.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@spaceKey.SkillName</span>
|
||||
}
|
||||
@if (spaceKey.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - spaceKey.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@spaceKey.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="kb-divider">Shift + Key</div>
|
||||
|
||||
<div class="kb-row">
|
||||
@foreach (var k in ShiftKeys.Take(6))
|
||||
{
|
||||
<div class="kb-key kb-shift @(k.OnCooldown ? "on-cd" : "")" @onclick="() => ActivateKey(k)"
|
||||
title="@k.Tooltip">
|
||||
<span class="key-label">@k.Label</span>
|
||||
@if (k.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@k.SkillName</span>
|
||||
}
|
||||
@if (k.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - k.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@k.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="kb-row kb-offset-1">
|
||||
@foreach (var k in ShiftKeys.Skip(6).Take(5))
|
||||
{
|
||||
<div class="kb-key kb-shift @(k.OnCooldown ? "on-cd" : "")" @onclick="() => ActivateKey(k)"
|
||||
title="@k.Tooltip">
|
||||
<span class="key-label">@k.Label</span>
|
||||
@if (k.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@k.SkillName</span>
|
||||
}
|
||||
@if (k.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - k.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@k.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="kb-row kb-offset-2">
|
||||
@foreach (var k in ShiftKeys.Skip(11).Take(5))
|
||||
{
|
||||
<div class="kb-key kb-shift @(k.OnCooldown ? "on-cd" : "")" @onclick="() => ActivateKey(k)"
|
||||
title="@k.Tooltip">
|
||||
<span class="key-label">@k.Label</span>
|
||||
@if (k.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@k.SkillName</span>
|
||||
}
|
||||
@if (k.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - k.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@k.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="kb-row kb-offset-1">
|
||||
@foreach (var k in ShiftKeys.Skip(16).Take(5))
|
||||
{
|
||||
<div class="kb-key kb-shift @(k.OnCooldown ? "on-cd" : "")" @onclick="() => ActivateKey(k)"
|
||||
title="@k.Tooltip">
|
||||
<span class="key-label">@k.Label</span>
|
||||
@if (k.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@k.SkillName</span>
|
||||
}
|
||||
@if (k.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - k.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@k.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="kb-row kb-space-row">
|
||||
<div class="kb-key kb-space kb-shift @(shiftSpaceKey.OnCooldown ? "on-cd" : "")"
|
||||
@onclick="() => ActivateKey(shiftSpaceKey)" title="@shiftSpaceKey.Tooltip">
|
||||
<span class="key-label">@shiftSpaceKey.Label</span>
|
||||
@if (shiftSpaceKey.SkillName != null)
|
||||
{
|
||||
<span class="skill-name">@shiftSpaceKey.SkillName</span>
|
||||
}
|
||||
@if (shiftSpaceKey.OnCooldown)
|
||||
{
|
||||
<div class="cd-overlay">
|
||||
<svg viewBox="0 0 100 100" class="cd-svg">
|
||||
<circle cx="50" cy="50" r="45" class="cd-bg"/>
|
||||
<circle cx="50" cy="50" r="45" class="cd-progress"
|
||||
stroke-dasharray="282.74"
|
||||
stroke-dashoffset="@(282.74 * (1 - shiftSpaceKey.CooldownFraction))"/>
|
||||
</svg>
|
||||
<span class="cd-text">@shiftSpaceKey.RemainingSeconds</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="kb-right">
|
||||
@if (selectedSkill != null)
|
||||
{
|
||||
<div class="skill-detail">
|
||||
<div class="skill-detail-header">
|
||||
<h3 class="skill-detail-name">@Path.GetFileNameWithoutExtension(selectedSkill.FileName)</h3>
|
||||
<span class="skill-detail-key">@selectedSkill.Key</span>
|
||||
</div>
|
||||
|
||||
@if (!string.IsNullOrEmpty(selectedSkill.Description))
|
||||
{
|
||||
<div class="skill-detail-desc">
|
||||
@foreach (var line in selectedSkill.Description.Split('\n'))
|
||||
{
|
||||
<p>@line</p>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="skill-detail-stats">
|
||||
@if (!string.IsNullOrEmpty(selectedSkill.Cast))
|
||||
{
|
||||
<div class="stat-row">
|
||||
<span class="stat-label">Cast</span>
|
||||
<span class="stat-value">@selectedSkill.Cast</span>
|
||||
</div>
|
||||
}
|
||||
@if (ParseValue(selectedSkill.Damage) > 0)
|
||||
{
|
||||
<div class="stat-row">
|
||||
<span class="stat-label">Damage</span>
|
||||
<span class="stat-value">@FormatStat(selectedSkill.Damage)</span>
|
||||
</div>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(selectedSkill.DamageType))
|
||||
{
|
||||
<div class="stat-row">
|
||||
<span class="stat-label">Type</span>
|
||||
<span class="stat-value">@selectedSkill.DamageType</span>
|
||||
</div>
|
||||
}
|
||||
@if (ParseValue(selectedSkill.Heal) > 0)
|
||||
{
|
||||
<div class="stat-row">
|
||||
<span class="stat-label">Healing</span>
|
||||
<span class="stat-value">@FormatStat(selectedSkill.Heal)</span>
|
||||
</div>
|
||||
}
|
||||
@if (ParseValue(selectedSkill.Shield) > 0)
|
||||
{
|
||||
<div class="stat-row">
|
||||
<span class="stat-label">Shield</span>
|
||||
<span class="stat-value">@FormatStat(selectedSkill.Shield)</span>
|
||||
</div>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(selectedSkill.Cooldown) && ParseValue(selectedSkill.Cooldown) > 0)
|
||||
{
|
||||
<div class="stat-row">
|
||||
<span class="stat-label">Cooldown</span>
|
||||
<span class="stat-value">@selectedSkill.Cooldown s</span>
|
||||
</div>
|
||||
}
|
||||
@if (ParseValue(selectedSkill.Mana) > 0)
|
||||
{
|
||||
<div class="stat-row">
|
||||
<span class="stat-label">Mana</span>
|
||||
<span class="stat-value">@FormatStat(selectedSkill.Mana)</span>
|
||||
</div>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(selectedSkill.Range) && ParseValue(selectedSkill.Range) > 0)
|
||||
{
|
||||
<div class="stat-row">
|
||||
<span class="stat-label">Range</span>
|
||||
<span class="stat-value">@selectedSkill.Range</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (selectedSkill.Tags is { Count: > 0 })
|
||||
{
|
||||
<div class="skill-detail-tags">
|
||||
@foreach (var tag in selectedSkill.Tags)
|
||||
{
|
||||
<span class="tag-badge">@tag</span>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="skill-detail skill-detail-empty">
|
||||
<div class="empty-hint">
|
||||
<span class="empty-icon">⌨</span>
|
||||
<p>Press a key to view skill details</p>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private ElementReference containerRef;
|
||||
|
||||
private List<KeyData> Keys { get; set; } = new();
|
||||
private List<KeyData> ShiftKeys { get; set; } = new();
|
||||
private KeyData spaceKey = null!;
|
||||
private KeyData shiftSpaceKey = null!;
|
||||
private string selectedCharacter = "Xavian";
|
||||
private List<string> Characters = [];
|
||||
private ToastData? toast;
|
||||
private CancellationTokenSource? toastCts;
|
||||
private SkillDoc? selectedSkill;
|
||||
|
||||
public class KeyData
|
||||
{
|
||||
public string Id { get; set; } = "";
|
||||
public string Label { get; set; } = "";
|
||||
public string? SkillName { get; set; }
|
||||
public string? Character { get; set; }
|
||||
public SkillDoc? SkillDoc { get; set; }
|
||||
public double CooldownDuration { get; set; }
|
||||
public double Remaining { get; set; }
|
||||
public bool OnCooldown => Remaining > 0;
|
||||
public double RemainingSeconds => Math.Ceiling(Remaining);
|
||||
public double CooldownFraction => CooldownDuration > 0 ? Math.Min(1, Remaining / CooldownDuration) : 0;
|
||||
|
||||
public void Tick(double seconds)
|
||||
{
|
||||
if (Remaining > 0)
|
||||
Remaining = Math.Max(0, Remaining - seconds);
|
||||
}
|
||||
|
||||
public string Tooltip
|
||||
{
|
||||
get
|
||||
{
|
||||
var parts = new List<string>();
|
||||
if (Character != null) parts.Add(Character);
|
||||
if (SkillName != null) parts.Add(SkillName);
|
||||
if (CooldownDuration > 0) parts.Add($"CD: {CooldownDuration}s");
|
||||
return parts.Count > 0 ? string.Join(" - ", parts) : Label;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Characters = DocsData.All
|
||||
.OfType<SkillDoc>()
|
||||
.Where(s => s.Character != null)
|
||||
.Select(s => s.Character!)
|
||||
.Distinct()
|
||||
.Order()
|
||||
.ToList();
|
||||
|
||||
if (Characters.Count == 0) Characters.Add("Xavian");
|
||||
|
||||
RebuildKeyboardData();
|
||||
}
|
||||
|
||||
private void RebuildKeyboardData()
|
||||
{
|
||||
var skillByKey = DocsData.All
|
||||
.OfType<SkillDoc>()
|
||||
.Where(s => !string.IsNullOrEmpty(s.Key) && s.Character == selectedCharacter)
|
||||
.GroupBy(s => s.Key!)
|
||||
.ToDictionary(g => g.Key, g =>
|
||||
g.OrderBy(s => string.IsNullOrEmpty(s.CostSwiftReprieval) ? 0 : 1).First());
|
||||
|
||||
var actionByKey = DocsData.All
|
||||
.OfType<KeyDoc>()
|
||||
.Where(k => !string.IsNullOrEmpty(k.Action))
|
||||
.Select(k => new
|
||||
{
|
||||
Key = Path.GetFileNameWithoutExtension(k.FileName),
|
||||
k.Action
|
||||
})
|
||||
.GroupBy(x => x.Key)
|
||||
.ToDictionary(g => g.Key, g => g.First().Action!, StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
var keyLabels = new[] { "1", "2", "3", "4", "5", "6", "Q", "W", "E", "R", "T", "A", "S", "D", "F", "G", "Z", "X", "C", "V", "B" };
|
||||
|
||||
Keys = keyLabels.Select(label =>
|
||||
{
|
||||
var skill = skillByKey.GetValueOrDefault(label);
|
||||
var action = actionByKey.GetValueOrDefault(label);
|
||||
var skillName = skill != null ? Path.GetFileNameWithoutExtension(skill.FileName) : action;
|
||||
return new KeyData
|
||||
{
|
||||
Id = label.ToLower(),
|
||||
Label = label,
|
||||
SkillName = skillName,
|
||||
Character = skill?.Character,
|
||||
SkillDoc = skill,
|
||||
CooldownDuration = ParseCooldown(skill?.Cooldown)
|
||||
};
|
||||
}).ToList();
|
||||
|
||||
var spaceSkill = skillByKey.GetValueOrDefault(" ");
|
||||
var spaceAction = actionByKey.GetValueOrDefault("Space");
|
||||
spaceKey = new KeyData
|
||||
{
|
||||
Id = "space",
|
||||
Label = "Space",
|
||||
SkillName = spaceSkill != null ? Path.GetFileNameWithoutExtension(spaceSkill.FileName) : spaceAction,
|
||||
Character = spaceSkill?.Character,
|
||||
SkillDoc = spaceSkill,
|
||||
CooldownDuration = ParseCooldown(spaceSkill?.Cooldown)
|
||||
};
|
||||
|
||||
ShiftKeys = keyLabels.Select(label =>
|
||||
{
|
||||
var shiftKeyStr = "Shift + " + label;
|
||||
var skill = skillByKey.GetValueOrDefault(shiftKeyStr);
|
||||
var action = actionByKey.GetValueOrDefault(shiftKeyStr);
|
||||
var skillName = skill != null ? Path.GetFileNameWithoutExtension(skill.FileName) : action;
|
||||
return new KeyData
|
||||
{
|
||||
Id = "shift-" + label.ToLower(),
|
||||
Label = "Shift+" + label,
|
||||
SkillName = skillName,
|
||||
Character = skill?.Character,
|
||||
SkillDoc = skill,
|
||||
CooldownDuration = ParseCooldown(skill?.Cooldown)
|
||||
};
|
||||
}).ToList();
|
||||
|
||||
var shiftSpaceSkill = skillByKey.GetValueOrDefault("Shift + Space");
|
||||
var shiftSpaceAction = actionByKey.GetValueOrDefault("Shift + Space");
|
||||
shiftSpaceKey = new KeyData
|
||||
{
|
||||
Id = "shift-space",
|
||||
Label = "Shift+Space",
|
||||
SkillName = shiftSpaceSkill != null ? Path.GetFileNameWithoutExtension(shiftSpaceSkill.FileName) : shiftSpaceAction,
|
||||
Character = shiftSpaceSkill?.Character,
|
||||
SkillDoc = shiftSpaceSkill,
|
||||
CooldownDuration = ParseCooldown(shiftSpaceSkill?.Cooldown)
|
||||
};
|
||||
|
||||
selectedSkill = null;
|
||||
}
|
||||
|
||||
private static double ParseCooldown(string? cooldown)
|
||||
{
|
||||
if (string.IsNullOrEmpty(cooldown)) return 0;
|
||||
if (double.TryParse(cooldown, out var result)) return result;
|
||||
return 0;
|
||||
}
|
||||
|
||||
private static double ParseValue(string? value)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value)) return 0;
|
||||
var clean = value.Replace(",", "").Trim();
|
||||
if (double.TryParse(clean, out var result)) return result;
|
||||
return 0;
|
||||
}
|
||||
|
||||
private static string FormatStat(string? value)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value)) return "";
|
||||
return value;
|
||||
}
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
await containerRef.FocusAsync();
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleKeyDown(KeyboardEventArgs e)
|
||||
{
|
||||
var isShift = e.ShiftKey;
|
||||
var key = e.Key.ToLower();
|
||||
|
||||
var allKeys = new List<KeyData>();
|
||||
allKeys.AddRange(Keys);
|
||||
allKeys.Add(spaceKey);
|
||||
allKeys.AddRange(ShiftKeys);
|
||||
allKeys.Add(shiftSpaceKey);
|
||||
|
||||
KeyData? target;
|
||||
if (isShift)
|
||||
{
|
||||
if (key == "shift") return;
|
||||
var lookup = "shift-" + (key == " " ? "space" : key);
|
||||
target = allKeys.FirstOrDefault(k => k.Id == lookup);
|
||||
}
|
||||
else
|
||||
{
|
||||
var lookup = key == " " ? "space" : key;
|
||||
target = allKeys.FirstOrDefault(k => k.Id == lookup);
|
||||
}
|
||||
|
||||
if (target != null)
|
||||
{
|
||||
ActivateKey(target);
|
||||
}
|
||||
}
|
||||
|
||||
private record ToastData(string SkillName, double Remaining, bool Visible);
|
||||
|
||||
private async void ShowToast(string skillName, double remaining)
|
||||
{
|
||||
toastCts?.Cancel();
|
||||
toastCts = new CancellationTokenSource();
|
||||
var token = toastCts.Token;
|
||||
|
||||
toast = new ToastData(skillName, remaining, true);
|
||||
StateHasChanged();
|
||||
|
||||
try
|
||||
{
|
||||
await Task.Delay(2000, token);
|
||||
if (!token.IsCancellationRequested)
|
||||
{
|
||||
toast = toast with { Visible = false };
|
||||
StateHasChanged();
|
||||
await Task.Delay(300, token);
|
||||
if (!token.IsCancellationRequested)
|
||||
{
|
||||
toast = null;
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (TaskCanceledException) { }
|
||||
}
|
||||
|
||||
private void ActivateKey(KeyData key)
|
||||
{
|
||||
if (key.OnCooldown)
|
||||
{
|
||||
ShowToast(key.SkillName ?? key.Label, Math.Ceiling(key.Remaining));
|
||||
return;
|
||||
}
|
||||
if (key.Character == null) return;
|
||||
|
||||
selectedSkill = key.SkillDoc;
|
||||
|
||||
var duration = key.CooldownDuration > 0 ? key.CooldownDuration : 0.5;
|
||||
key.Remaining = duration;
|
||||
|
||||
var allKeys = new List<KeyData>();
|
||||
allKeys.AddRange(Keys);
|
||||
allKeys.Add(spaceKey);
|
||||
allKeys.AddRange(ShiftKeys);
|
||||
allKeys.Add(shiftSpaceKey);
|
||||
|
||||
foreach (var k in allKeys)
|
||||
{
|
||||
k.Tick(1.5);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,363 +0,0 @@
|
||||
.toast-notification {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 9999;
|
||||
background: #1a1a1a;
|
||||
border: 1px solid #ff4444;
|
||||
border-radius: 10px;
|
||||
padding: 14px 22px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 68, 68, 0.2);
|
||||
transition: opacity 0.3s ease, transform 0.3s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.toast-notification.toast-show {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
|
||||
.toast-notification.toast-hide {
|
||||
opacity: 0;
|
||||
transform: translateX(-50%) translateY(-12px);
|
||||
}
|
||||
|
||||
.toast-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.toast-icon {
|
||||
font-size: 20px;
|
||||
color: #ff4444;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.toast-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.toast-title {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.toast-message {
|
||||
font-size: 12px;
|
||||
color: #ff8888;
|
||||
}
|
||||
|
||||
.keyboard-container {
|
||||
outline: none;
|
||||
padding: 20px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.keyboard-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.kb-row {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.kb-offset-1 {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.kb-offset-2 {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.kb-space-row {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.kb-key {
|
||||
position: relative;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 2px solid #555;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #2a2a2a;
|
||||
color: #fff;
|
||||
font-family: 'Segoe UI', sans-serif;
|
||||
transition: background 0.15s, transform 0.1s;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.kb-key:hover {
|
||||
background: #3a3a3a;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.kb-key:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.kb-key.on-cd {
|
||||
pointer-events: none;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.kb-space {
|
||||
width: 520px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.kb-shift {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.key-label {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.skill-name {
|
||||
font-size: 10px;
|
||||
opacity: 0.8;
|
||||
text-align: center;
|
||||
line-height: 1.2;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.cd-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.cd-svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.cd-bg {
|
||||
fill: none;
|
||||
stroke: #333;
|
||||
stroke-width: 8;
|
||||
}
|
||||
|
||||
.cd-progress {
|
||||
fill: none;
|
||||
stroke: #ff4444;
|
||||
stroke-width: 8;
|
||||
stroke-linecap: round;
|
||||
transform: rotate(-90deg);
|
||||
transform-origin: center;
|
||||
transition: stroke-dashoffset 0.1s linear;
|
||||
}
|
||||
|
||||
.cd-text {
|
||||
position: absolute;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: #ff6666;
|
||||
text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
.character-selector {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 16px;
|
||||
padding: 10px 20px;
|
||||
background: #1a1a1a;
|
||||
border: 1px solid #2a2a2a;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.character-selector label {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #888;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.8px;
|
||||
}
|
||||
|
||||
.character-selector select {
|
||||
padding: 6px 12px;
|
||||
border: 1px solid #333;
|
||||
border-radius: 6px;
|
||||
background: #0f0f0f;
|
||||
color: #e0e0e0;
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.character-selector select:focus {
|
||||
border-color: #5588ff;
|
||||
box-shadow: 0 0 0 3px rgba(85, 136, 255, 0.15);
|
||||
}
|
||||
|
||||
.kb-divider {
|
||||
color: #888;
|
||||
font-size: 14px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
margin: 16px 0 8px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid #444;
|
||||
width: 80%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.kb-layout {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.kb-left {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.kb-right {
|
||||
flex: 1;
|
||||
min-width: 280px;
|
||||
position: sticky;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
.skill-detail {
|
||||
background: #1a1a1a;
|
||||
border: 1px solid #333;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.skill-detail-empty {
|
||||
border-style: dashed;
|
||||
border-color: #333;
|
||||
background: #141414;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.empty-hint {
|
||||
text-align: center;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.empty-icon {
|
||||
font-size: 32px;
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.empty-hint p {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.skill-detail-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 14px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid #2a2a2a;
|
||||
}
|
||||
|
||||
.skill-detail-name {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.skill-detail-key {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #888;
|
||||
background: #2a2a2a;
|
||||
padding: 3px 8px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #444;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.skill-detail-desc {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.skill-detail-desc p {
|
||||
margin: 0 0 6px;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.skill-detail-desc p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.skill-detail-stats {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.stat-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 4px 0;
|
||||
border-bottom: 1px solid #222;
|
||||
}
|
||||
|
||||
.stat-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #666;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #cce;
|
||||
}
|
||||
|
||||
.skill-detail-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.skill-detail-tags .tag-badge {
|
||||
font-size: 11px;
|
||||
padding: 3px 8px;
|
||||
background: #2a2a40;
|
||||
border: 1px solid #3a3a55;
|
||||
border-radius: 4px;
|
||||
color: #99b;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
@page "/not-found"
|
||||
@layout MainLayout
|
||||
|
||||
<h3>Not Found</h3>
|
||||
<p>Sorry, the content you are looking for does not exist.</p>
|
||||
@@ -13,7 +13,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Model\Model.csproj" />
|
||||
<ProjectReference Include="..\Shared\Shared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="GenerateDocs" BeforeTargets="BeforeBuild">
|
||||
|
||||
@@ -7,5 +7,7 @@
|
||||
@using Microsoft.AspNetCore.Components.WebAssembly.Http
|
||||
@using Microsoft.JSInterop
|
||||
@using Model
|
||||
@using Web
|
||||
@using Web.Layout
|
||||
@using Shared
|
||||
@using Shared.Pages
|
||||
@using Shared.Components
|
||||
@using Web
|
||||
Reference in New Issue
Block a user