Compare commits
2
Commits
+11
-2
@@ -80,8 +80,14 @@
|
||||
document.head.append(style);
|
||||
function polishSystemChrome() {
|
||||
document.querySelector('#desktop')?.removeAttribute('title');
|
||||
document.querySelectorAll('.systemline').forEach(node => { node.textContent = node.textContent.replace(/LIFE OS v0\.1/g, `LIFE OS v${APP_VERSION}`); });
|
||||
document.querySelectorAll('#content-system .settings section:last-child p').forEach(node => { node.innerHTML = node.innerHTML.replace(/Version 0\.1/g, `Version ${APP_VERSION}`).replace(/版本 0\.1/g, `版本 ${APP_VERSION}`); });
|
||||
document.querySelectorAll('.systemline').forEach(node => {
|
||||
const next = node.textContent.replace(/LIFE OS v0\.1/g, `LIFE OS v${APP_VERSION}`);
|
||||
if (next !== node.textContent) node.textContent = next;
|
||||
});
|
||||
document.querySelectorAll('#content-system .settings section:last-child p').forEach(node => {
|
||||
const next = node.innerHTML.replace(/Version 0\.1/g, `Version ${APP_VERSION}`).replace(/版本 0\.1/g, `版本 ${APP_VERSION}`);
|
||||
if (next !== node.innerHTML) node.innerHTML = next;
|
||||
});
|
||||
}
|
||||
function exportData() {
|
||||
const data = { app: 'Life OS', version: APP_VERSION, schemaVersion: 1, exportedAt: new Date().toISOString(), profile: profile(), memories: mems(), museum: museum(), settings: settings() };
|
||||
@@ -95,6 +101,9 @@
|
||||
wireLanguageControl();
|
||||
polishSystemChrome();
|
||||
document.addEventListener('click', e => { if (e.target.closest('#content-today .primary')) clearDraftAfterSave(); });
|
||||
document.addEventListener('click', e => {
|
||||
if (e.target.closest('.launchitem')) document.querySelector('#launcher')?.classList.add('hidden');
|
||||
});
|
||||
document.addEventListener('keydown', e => {
|
||||
const mod = e.ctrlKey || e.metaKey;
|
||||
if (mod && e.key.toLowerCase() === 'k') { e.preventDefault(); toggleLauncher(); }
|
||||
|
||||
Reference in new issue
Block a user