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

+39
View File
@@ -0,0 +1,39 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Titano.Core.Localization;
namespace Titano.Ui.Mvvm;
/// <summary>Minimal INotifyPropertyChanged base.</summary>
public abstract class ObservableObject : INotifyPropertyChanged
{
public event PropertyChangedEventHandler? PropertyChanged;
protected bool Set<T>(ref T field, T value, [CallerMemberName] string? propertyName = null)
{
if (EqualityComparer<T>.Default.Equals(field, value)) return false;
field = value;
OnPropertyChanged(propertyName);
return true;
}
protected void OnPropertyChanged([CallerMemberName] string? propertyName = null) =>
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
/// <summary>Signals that every property changed (used after a culture switch).</summary>
protected void OnAllPropertiesChanged() => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(string.Empty));
}
/// <summary>View model whose computed, localized texts refresh when the UI language changes.</summary>
public abstract class LocalizedViewModel : ObservableObject, IDisposable
{
protected LocalizedViewModel() => Loc.CultureChanged += OnCultureChanged;
public virtual void Dispose()
{
Loc.CultureChanged -= OnCultureChanged;
GC.SuppressFinalize(this);
}
private void OnCultureChanged(object? sender, EventArgs e) => OnAllPropertiesChanged();
}