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>Bộ điều hợp đồ họa và các bộ mã hóa Media Foundation đã tìm thấy</value></data>
<data name="Tooltips.Settings.ArchiveFree" xml:space="preserve"><value>Dung lượng trống trên ổ đĩa kho lưu trữ</value></data>
<data name="Tooltips.Settings.ArchiveRoot" xml:space="preserve"><value>Thư mục gốc của kho lưu trữ cục bộ; tệp không bị di chuyển · Enter để áp dụng, Esc để hoàn tác</value></data>
<data name="Tooltips.Settings.Background" xml:space="preserve"><value>Giảm mức ưu tiên tác vụ khi cửa sổ Titano đang ở phía trước để giao diện luôn mượt mà</value></data>
<data name="Tooltips.Settings.Backup" xml:space="preserve"><value>Sao chép chỉ mục vào thư mục sao lưu; giữ lại ba bản mới nhất · mất vài giây</value></data>
<data name="Tooltips.Settings.BrowseArchive" xml:space="preserve"><value>Chọn thư mục kho lưu trữ</value></data>
<data name="Tooltips.Settings.BrowseCache" xml:space="preserve"><value>Chọn thư mục bộ nhớ đệm; nên dùng SSD nhanh</value></data>
@@ -532,22 +531,17 @@
<data name="Tooltips.Settings.MemoryAuto" xml:space="preserve"><value>Tự động: một phần tư bộ nhớ đã lắp</value></data>
<data name="Tooltips.Settings.MemoryReset" xml:space="preserve"><value>Về Tự động: một phần tư bộ nhớ đã lắp</value></data>
<data name="Tooltips.Settings.OpenDataFolder" xml:space="preserve"><value>Mở thư mục dữ liệu trong Explorer</value></data>
<data name="Tooltips.Settings.Page.Advanced" xml:space="preserve"><value>Chế độ di động, nhật ký, chẩn đoán, sao lưu cơ sở dữ liệu</value></data>
<data name="Tooltips.Settings.Page.Archive" xml:space="preserve"><value>Thư mục kho lưu trữ, mẫu đặt tên, kích thước proxy</value></data>
<data name="Tooltips.Settings.Page.General" xml:space="preserve"><value>Ngôn ngữ, chủ đề, số liệu sử dụng</value></data>
<data name="Tooltips.Settings.Page.Rendering" xml:space="preserve"><value>Hồ sơ chất lượng, giới hạn bộ nhớ, mức song song, bộ mã hóa</value></data>
<data name="Tooltips.Settings.Page.Server" xml:space="preserve"><value>Máy chủ mặc định, nút kết xuất, chứng chỉ tin cậy</value></data>
<data name="Tooltips.Settings.Page.Storage" xml:space="preserve"><value>Thư mục bộ nhớ đệm, hình thu nhỏ trong bộ nhớ, giới hạn bộ nhớ đệm</value></data>
<data name="Tooltips.Settings.Page.Updates" xml:space="preserve"><value>Kiểm tra cập nhật khi khởi động</value></data>
<data name="Tooltips.Settings.Parallelism" xml:space="preserve"><value>Số luồng xử lý để giải mã và xử lý · Enter để áp dụng, Esc để hoàn tác</value></data>
<data name="Tooltips.Settings.ParallelismAuto" xml:space="preserve"><value>Tự động: số lõi trừ bốn để giao diện luôn phản hồi nhanh</value></data>
<data name="Tooltips.Settings.ParallelismReset" xml:space="preserve"><value>Về Tự động: số lõi trừ bốn</value></data>
<data name="Tooltips.Settings.Portable" xml:space="preserve"><value>Bật khi có portable.txt nằm cạnh Titano.exe: mọi dữ liệu nằm trong thư mục dữ liệu của nó</value></data>
<data name="Tooltips.Settings.PreferHardware" xml:space="preserve"><value>Dùng bộ mã hóa phần cứng khi có bộ hỗ trợ cài đặt sẵn; nếu không thì dùng phần mềm</value></data>
<data name="Tooltips.Settings.Preview" xml:space="preserve"><value>Ba tên đầu tiên của một lượt nhập mẫu với các mẫu này</value></data>
<data name="Tooltips.Settings.PreviewsOnly" xml:space="preserve"><value>Phần cứng cho xem trước, phần mềm cho cài đặt sẵn lưu trữ</value></data>
<data name="Tooltips.Settings.Proxies" xml:space="preserve"><value>Cạnh dài của proxy JPEG được tạo cho chuỗi ảnh mới</value></data>
<data name="Tooltips.Settings.Quality" xml:space="preserve"><value>Cân bằng phù hợp với hầu hết công việc; Tốt nhất tăng gấp đôi lấy mẫu và không bao giờ tràn ra đĩa; Nhanh dùng cho xem trước</value></data>
<data name="Tooltips.Settings.Redetect" xml:space="preserve"><value>Liệt kê lại các bộ mã hóa sau khi cài trình điều khiển hoặc codec</value></data>
<data name="Tooltips.Settings.ResetSection" xml:space="preserve"><value>Đưa mọi điều khiển trong mục này về giá trị mặc định</value></data>
<data name="Tooltips.Settings.Search" xml:space="preserve"><value>Tìm cài đặt theo tên</value></data>