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

+27
View File
@@ -0,0 +1,27 @@
// Strings come from /api/v1/i18n/{culture}, generated from the same .resx catalog as the desktop apps.
let strings = {};
export async function loadStrings(culture) {
try {
const res = await fetch(`/api/v1/i18n/${encodeURIComponent(culture || "en")}`);
strings = await res.json();
} catch {
strings = {};
}
document.documentElement.lang = strings.$culture || "en";
document.documentElement.dir = strings.$rtl === "true" ? "rtl" : "ltr";
}
/** Localized string for key with {0}, {1}… placeholders filled from args. */
export function t(key, ...args) {
const s = strings[key];
if (s === undefined) return `⟦${key}⟧`;
return s.replace(/\{(\d+)(?:[,:][^}]*)?\}/g, (_, i) => (args[Number(i)] ?? ""));
}
/** Fills data-i18n (text), data-i18n-title (tooltip) and data-i18n-placeholder attributes. */
export function applyStrings(root) {
root.querySelectorAll("[data-i18n]").forEach((el) => { el.textContent = t(el.dataset.i18n); });
root.querySelectorAll("[data-i18n-title]").forEach((el) => { el.title = t(el.dataset.i18nTitle); });
root.querySelectorAll("[data-i18n-placeholder]").forEach((el) => { el.placeholder = t(el.dataset.i18nPlaceholder); });
}