feat(settings): make every Settings row real; archive settings, index backups and restore

Settings (UI-01, UI-02, UI-03, UI-09, RF-4):
- New Import, Analysis and Formats pages, in the order of Settings.html. Import holds
  the defaults of new cards (session rules, subfolders, verification, duplicates,
  after-import actions); Analysis the deep-analysis width cap, night and star-field
  thresholds and deep analysis after import or scan; Formats the decode tier of every
  format on this PC with a notice and Store install link per missing codec extension.
- Archive gains thumbnail size and rescan interval; its templates, proxy size and
  thumbnail size are the open archive's own (archive.json) and new archives' defaults.
- Rendering quality, parallelism and background priority now drive the jobs: quality
  maps to preparation size, read-ahead and default flow quality; parallelism sets the
  engine's workers live and caps per-job threads; background priority raises the UI
  thread while Titano is in front.
- Advanced gains Restore (daily backups, dry-run summary, destructive confirmation,
  staged for the next start) and Reset all.
- The naming preview's sample title is a catalog string.

Engine (ENG-03, ENG-04, ENG-06):
- ArchiveService.GetSettingsAsync/UpdateSettingsAsync rewrite archive.json atomically
  under a lease, then the index row; the server endpoint and the desktop use them, and
  the desktop creates archives with Settings › Archive. ThumbnailPolicy in archive.json
  sizes the thumbnails.
- DatabaseBackups: daily VACUUM INTO copies kept x3 on the desktop and on a server on
  SQLite (DatabaseBackupService), staged restore checked and preceded by a fresh copy.
- Maintenance vacuums the SQLite index when 10 % or more is free (dry run reports it).
- JobEngine.SetWorkers; ProcessingOptions.Tune applies host tuning per job.

Archive setup toasts say why in a localized sentence (RF-1).

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-12 10:06:34 +00:00
1 parent c11c996bc6
commit 3e146c9f9f
91 files changed
+2864 -357

No files matched your search

-6
View File
@@ -508,7 +508,6 @@
<data name="Tooltips.Settings.Adapter" xml:space="preserve"><value>找到的顯示卡與 Media Foundation 編碼器</value></data>
<data name="Tooltips.Settings.ArchiveFree" xml:space="preserve"><value>典藏庫所在磁碟機的可用空間</value></data>
<data name="Tooltips.Settings.ArchiveRoot" xml:space="preserve"><value>本機典藏庫的根目錄;檔案不會被移動 · Enter 套用,Esc 還原</value></data>
<data name="Tooltips.Settings.Background" xml:space="preserve"><value>Titano 位於前景時降低工作優先順序,讓介面保持流暢</value></data>
<data name="Tooltips.Settings.Backup" xml:space="preserve"><value>將索引複製到備份資料夾;保留最新的三份 · 需要幾秒鐘</value></data>
<data name="Tooltips.Settings.BrowseArchive" xml:space="preserve"><value>選擇典藏庫資料夾</value></data>
<data name="Tooltips.Settings.BrowseCache" xml:space="preserve"><value>選擇快取資料夾;使用高速 SSD 會有幫助</value></data>
@@ -532,22 +531,17 @@
<data name="Tooltips.Settings.MemoryAuto" xml:space="preserve"><value>自動:已安裝記憶體的四分之一</value></data>
<data name="Tooltips.Settings.MemoryReset" xml:space="preserve"><value>恢復自動:已安裝記憶體的四分之一</value></data>
<data name="Tooltips.Settings.OpenDataFolder" xml:space="preserve"><value>在檔案總管中開啟資料位置</value></data>
<data name="Tooltips.Settings.Page.Advanced" xml:space="preserve"><value>可攜式模式、記錄、診斷、資料庫備份</value></data>
<data name="Tooltips.Settings.Page.Archive" xml:space="preserve"><value>典藏庫資料夾、命名範本、代理檔大小</value></data>
<data name="Tooltips.Settings.Page.General" xml:space="preserve"><value>語言、佈景主題、使用統計</value></data>
<data name="Tooltips.Settings.Page.Rendering" xml:space="preserve"><value>品質設定檔、記憶體上限、平行處理、編碼器</value></data>
<data name="Tooltips.Settings.Page.Server" xml:space="preserve"><value>預設伺服器、算圖節點、信任的憑證</value></data>
<data name="Tooltips.Settings.Page.Storage" xml:space="preserve"><value>快取資料夾、記憶體中的縮圖、快取上限</value></data>
<data name="Tooltips.Settings.Page.Updates" xml:space="preserve"><value>啟動時檢查更新</value></data>
<data name="Tooltips.Settings.Parallelism" xml:space="preserve"><value>用於解碼與處理的工作執行緒 · Enter 套用,Esc 還原</value></data>
<data name="Tooltips.Settings.ParallelismAuto" xml:space="preserve"><value>自動:核心數減四,讓介面保持回應</value></data>
<data name="Tooltips.Settings.ParallelismReset" xml:space="preserve"><value>恢復自動:核心數減四</value></data>
<data name="Tooltips.Settings.Portable" xml:space="preserve"><value>當 portable.txt 與 Titano.exe 位於同一資料夾時開啟:所有資料都保留在其 data 資料夾中</value></data>
<data name="Tooltips.Settings.PreferHardware" xml:space="preserve"><value>預設集支援時使用硬體編碼器;否則使用軟體</value></data>
<data name="Tooltips.Settings.Preview" xml:space="preserve"><value>以這些範本進行範例匯入時的前三個名稱</value></data>
<data name="Tooltips.Settings.PreviewsOnly" xml:space="preserve"><value>預覽使用硬體,典藏預設集使用軟體</value></data>
<data name="Tooltips.Settings.Proxies" xml:space="preserve"><value>為新序列建立的 JPEG 代理檔長邊尺寸</value></data>
<data name="Tooltips.Settings.Quality" xml:space="preserve"><value>「平衡」適合大多數工作;「最佳」會將取樣加倍且永不溢出;「快速」適用於預覽</value></data>
<data name="Tooltips.Settings.Redetect" xml:space="preserve"><value>安裝驅動程式或編解碼器後,重新列出編碼器</value></data>
<data name="Tooltips.Settings.ResetSection" xml:space="preserve"><value>將此區段的所有控制項恢復為預設值</value></data>
<data name="Tooltips.Settings.Search" xml:space="preserve"><value>依名稱尋找設定</value></data>