feat(sync): add durable sync center and controlled updates

This commit is contained in:
Codex committed 2026-10-07 14:26:22 +08:00
1 parent c6ad0d43aa
commit f31d3933ae
11 files changed
+161 -32

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ const [rawIndexHtml, addonsJs, backupJs, bootGuardJs, localDbJs, localDbWorkerJs
readFile(new URL("../node_modules/@sqlite.org/sqlite-wasm/dist/sqlite3.wasm", import.meta.url)),
text("i18n.js"), text("tasks.js"), text("calendar.js"), text("notifications.js"), text("i18n-renderers.js"), text("desktop-personalization.js"), text("desktop-widgets.js"), text("system-navigation.js"), text("browser-app.js"), text("data-actions.js"), text("terminal-app.js"), text("db-admin.js"), text("manifest.webmanifest"), text("service-worker.js"), text("life-os-icon.svg"), readFile(new URL("../public/locales/en.json", import.meta.url), "utf8"), readFile(new URL("../public/locales/zh-CN.json", import.meta.url), "utf8")
]);
const release = "1.20.0";
const release = "1.21.0";
const localeEnJs = `window.LifeOSLocales=window.LifeOSLocales||{};window.LifeOSLocales.en=${localeEn};`;
const localeZhJs = `window.LifeOSLocales=window.LifeOSLocales||{};window.LifeOSLocales['zh-CN']=${localeZh};`;
const extraLocaleCodes = ['zh-HK', 'zh-MO', 'zh-TW', 'ar', 'fr', 'ru', 'es', 'ja'];
+5 -1
View File
@@ -18,6 +18,10 @@ assert.match(assets.addonsJs, /widgetLayout/);
assert.match(assets.i18nRenderersJs, /lifeos_widget_layout_v1/);
assert.match(assets.addonsJs, /lifeos_cloud_baseline_v3/);
assert.match(assets.addonsJs, /api\/lifeos-sync/);
assert.match(assets.addonsJs, /lifeos_sync_outbox_v1/);
assert.match(assets.addonsJs, /function openSyncCenter/);
assert.match(assets.addonsJs, /resolveSavedConflict/);
assert.match(assets.serviceWorker, /SKIP_WAITING/);
assert.match(assets.i18nRenderersJs, /dialog\.goals/);
assert.match(assets.i18nRenderersJs, /shell\.wallpaperTitle/);
assert.match(assets.i18nRenderersJs, /window\.museumApp/);
@@ -275,7 +279,7 @@ assert.ok(command('date').message.length > 8);
assert.ok(command('time').message.includes(':'));
assert.ok(command('datetime').message.length > 12);
assert.equal(command('uptime').message, 'terminal.uptime');
assert.equal(command('version').message, 'Life OS v1.20.0');
assert.equal(command('version').message, 'Life OS v1.21.0');
assert.equal(command('status').message, 'terminal.status');
assert.match(command('apps').message, /calendar/);
assert.equal(command('echo "hello Life OS"').message, 'hello Life OS');