feat: Phase 0 shells, design system, server skeleton, Docker and CI

- Titano.Ui: DESIGN.md tokens (dark/light), generated 16-px icon set,
  styles for all standard controls, custom chrome window with snap
  layouts, rail, job bar, Auto/manual slider, chips, toasts.
- Titano desktop shell with sections, Settings (language, theme),
  About and a --capture screenshot mode.
- Titano Server skeleton: env/server.json configuration, self-signed
  TLS with fingerprint, /health, /server/info, i18n endpoint and the
  embedded admin panel; in-process server tests.
- Docker image (multi-arch, PUID/PGID, health check), compose file,
  Unraid template; CI, release and nightly workflows; changelog tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 09:35:03 +00:00
1 parent 800843d2ae
commit c40b6a7cd3
122 files changed
+6838 -22

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
using Titano.Ui.Controls;
using Titano.Ui.Mvvm;
namespace Titano.App.Shell;
public enum SectionKey
{
Library,
Import,
Sequence,
Archive,
Jobs,
Server,
Settings,
About,
}
/// <summary>A top-level destination of the navigation rail.</summary>
public abstract class SectionViewModel(SectionKey key, string iconKey) : LocalizedViewModel
{
private bool _isSelected;
private int _badge;
public SectionKey Key { get; } = key;
/// <summary>Resource key of the rail icon (e.g. "Icon.Library").</summary>
public string IconKey { get; } = iconKey;
public IconData? Glyph => System.Windows.Application.Current?.TryFindResource(IconKey) as IconData;
/// <summary>Rail label ("Library").</summary>
public string Label => Core.Localization.Loc.L("Shell.Nav." + Key);
/// <summary>Rail tooltip: what the section is for.</summary>
public string ToolTip => Core.Localization.Loc.L("Tooltips.Nav." + Key);
/// <summary>Window title suffix ("Titano — Import").</summary>
public virtual string Title => Label;
public bool IsSelected
{
get => _isSelected;
set
{
if (Set(ref _isSelected, value) && value) OnActivated();
}
}
/// <summary>Count of items needing attention, shown as a rail badge.</summary>
public int Badge
{
get => _badge;
protected set => Set(ref _badge, value);
}
protected virtual void OnActivated()
{
}
}