F1 and "?" now open the wiki page of the screen inside the application (/aiuto, mockup 011) from a copy of the wiki shipped next to the program, so help works offline and always matches the installed version. Markdown is converted in-house and fully encoded; images of the repository are served from the copy. KHAEMHAT_HELP_URL sets the online wiki behind "Apri nel wiki"; "Segnala un problema" opens a new issue of that repo. A test checks that every page and menu entry has an existing wiki page. The bell opens a notifications panel (mockup 010) with all/unread filters and mark read. Broadcast notifications are now read per user through sys_notification_reads / notification_reads instead of one shared read_at. The global search asks ISearchProvider implementations through GlobalSearchService after a short pause; the first provider finds help pages and sections, # and @ say which modules will fill them. Escape also closes a side panel when the focus fell out of it. Decisions in ADR 0023. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
77 lines
2.5 KiB
Plaintext
77 lines
2.5 KiB
Plaintext
@page "/anagrafiche/{*Rest}"
|
|
@page "/crm/{*Rest}"
|
|
@page "/vendite/{*Rest}"
|
|
@page "/acquisti/{*Rest}"
|
|
@page "/magazzino/{*Rest}"
|
|
@page "/contabilita/{*Rest}"
|
|
@page "/scadenzario/{*Rest}"
|
|
@page "/fatturazione-elettronica/{*Rest}"
|
|
@page "/cespiti/{*Rest}"
|
|
@page "/servizi/{*Rest}"
|
|
@page "/canali/{*Rest}"
|
|
@page "/report/{*Rest}"
|
|
@page "/tabelle/{*Rest}"
|
|
@page "/automazioni/{*Rest}"
|
|
@page "/amministrazione/{*Rest}"
|
|
@attribute [Authorize]
|
|
@inject ShellSession Session
|
|
@inject NavigationManager Navigation
|
|
|
|
@* The menu shows every area the licence and the permissions allow (SPEC §10.2); the areas of later milestones land
|
|
here, which says when they arrive and what they will hold. Each real page replaces its route as it is built. *@
|
|
<KhPageTitle Text="@Title" Icon="@(Area?.Icon)" />
|
|
|
|
@if (Area is null || !Session.CanSee(Area))
|
|
{
|
|
<div class="kh-message">
|
|
<KhIcon Name="lock" Class="lg" />
|
|
<h1>@T["Pages.AccessDenied.Title"]</h1>
|
|
<p class="lead">@T["Pages.AccessDenied.Lead"]</p>
|
|
<a class="btn" href="./">@T["Common.BackHome"]</a>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="kh-message">
|
|
<KhIcon Name="@Area.Icon" Class="lg" />
|
|
<h1>@Title</h1>
|
|
<p class="lead">@(Area.Milestone is { } milestone ? T.Format("Pages.ComingSoon.Lead", milestone) : T["Pages.ComingSoon.LeadUnknown"])</p>
|
|
@if (Area.Children.Count > 0)
|
|
{
|
|
<p class="muted">@T["Pages.ComingSoon.Areas"]</p>
|
|
<ul class="kh-chips">
|
|
@foreach (var child in Area.Children)
|
|
{
|
|
<li class="chip">@T[child.Key]</li>
|
|
}
|
|
</ul>
|
|
}
|
|
<div class="kh-actions">
|
|
<a class="btn" href="./">@T["Common.BackHome"]</a>
|
|
<a class="btn ghost" href="@Khaemhat.Web.Help.WikiLibrary.Href("Roadmap")">@T["Pages.ComingSoon.Roadmap"]</a>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
@code {
|
|
/// <summary>The rest of the address, after the area.</summary>
|
|
[Parameter]
|
|
public string? Rest { get; set; }
|
|
|
|
private MenuItem? Area { get; set; }
|
|
|
|
private MenuItem? Entry { get; set; }
|
|
|
|
private string Title => Entry is null ? T["Pages.ComingSoon.Title"] : T[Entry.Key];
|
|
|
|
// A tab keeps its page alive and has one address, so the address is read once.
|
|
/// <inheritdoc />
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await Session.EnsureLoadedAsync();
|
|
var path = "/" + Navigation.ToBaseRelativePath(Navigation.Uri).Split('?', '#')[0];
|
|
Area = MenuCatalog.FindArea(path);
|
|
Entry = MenuCatalog.Find(path);
|
|
}
|
|
}
|