diff --git a/public/app.js b/public/app.js index 999e595..d6fe805 100644 --- a/public/app.js +++ b/public/app.js @@ -17,7 +17,7 @@ const TECH_ICON = { React: 'atom', '.NET': 'code-xml', Flutter: 'feather', Android: 'smartphone', 'C++/CMake': 'cpu', Python: 'square-terminal', Web: 'globe', Arduino: 'circuit-board', } -const GIT_ICON = { green: 'cloud-check', yellow: 'cloud-upload', red: 'cloud-off' } +const GIT_ICON = { green: 'git-branch', yellow: 'git-commit-horizontal', red: 'git-branch-minus' } // label/hint/short come from the dictionary (tier..*); here only style + icon const TIER = { Cache: { cls: 'ok', icon: 'recycle' }, @@ -276,9 +276,9 @@ function warnChips(p) { function attentionOf(p) { const T = window.I18N.t const out = [] - if (p.git?.level === 'red') out.push({ icon: 'cloud-off', label: T('quick.nobackup'), sev: 3 }) + if (p.git?.level === 'red') out.push({ icon: 'git-branch-minus', label: T('quick.nobackup'), sev: 3 }) if (backupDue(p)) out.push({ icon: 'clock-alert', label: T('quick.due'), sev: 3 }) - if (p.git?.level === 'yellow') out.push({ icon: 'cloud-upload', label: T('quick.unsaved'), sev: 2 }) + if (p.git?.level === 'yellow') out.push({ icon: 'git-commit-horizontal', label: T('quick.unsaved'), sev: 2 }) if (deletableMB(p) >= 100) out.push({ icon: 'brush-cleaning', label: fmtMB(deletableMB(p)), sev: 2 }) if (p.tech?.needsInstall) out.push({ icon: 'download', label: 'npm install', sev: 2 }) if (!p.hasIcon) out.push({ icon: 'image-off', label: T('warn.noIcon'), sev: 1 }) @@ -1384,8 +1384,8 @@ const runAction = async (name, id) => { // label is a translation key (resolved with t() at render time) const QUICK = [ { key: 'all', label: 'quick.all', icon: 'layers', test: () => true }, - { key: 'nobackup', label: 'quick.nobackup', icon: 'cloud-off', test: (p) => p.git.level === 'red' }, - { key: 'unsaved', label: 'quick.unsaved', icon: 'cloud-upload', test: (p) => p.git.level === 'yellow' }, + { key: 'nobackup', label: 'quick.nobackup', icon: 'git-branch-minus', test: (p) => p.git.level === 'red' }, + { key: 'unsaved', label: 'quick.unsaved', icon: 'git-commit-horizontal', test: (p) => p.git.level === 'yellow' }, { key: 'due', label: 'quick.due', icon: 'clock-alert', test: backupDue }, { key: 'cleanable', label: 'quick.cleanable', icon: 'brush-cleaning', test: (p) => deletableMB(p) >= 100 }, { key: 'install', label: 'quick.install', icon: 'download', test: (p) => p.tech?.needsInstall }, @@ -2632,7 +2632,7 @@ function renderInfo(name, d) { const c = cloudInfo(p) const overview = `
${t('info.folder')}
${escapeHtml(d.path)}
-
${t('panel.status')}
${statusHtml(p.status)} · ${t('prio.titled', { p: p.priority ? t('prio.' + p.priority) : '–' })}
+
${t('panel.priority')}
${p.priority ? t('prio.' + p.priority) : '–'}
${t('info.changed')}
${fmtDate(lastActivity(p))} · ${timeAgo(lastActivity(p))}${p.lastChange?.file ? ` · ${escapeHtml(p.lastChange.file)}` : ''}
${t('btn.backup')}
${ic('hard-drive', 'sm')}${escapeHtml(c.short)}${backupDue(p) ? ` ${t('info.due')}` : ''}
${t('st.size')}
${s ? `${fmtMB(s.sizeMB)} · ${t('info.scannedAgo', { ago: timeAgo(s.at) })}${del >= 1 ? ` · ${fmtMB(del)} ${t('size.cleanableWord')}` : ''}` : `${t('kpi.notScanned')}`}
@@ -2705,9 +2705,9 @@ function renderInfo(name, d) { { id: 'info-desc', right: `${ic('pencil', 'sm')}${desc ? t('desc.edit') : t('desc.write')}` }) + readmeCard + section('info', t('info.overview'), overview, { right: del >= 1 ? `${jumpLink('act-clean', t('info.cleanUp'))}` : '' }) + + section('cpu', t('info.tech'), `
${techChips(d.tech.types) || `${t('info.notDetected')}`}${d.tech.needsInstall ? `${ic('download', 'sm')}${t('info.npmNeeded')}` : ''}
`, { adv: true }) + section('git-branch', 'Git', gitBody, { adv: true, right: jumpLink('act-git', g.isRepo ? t('info.pushRemote') : t('set.setup')) }) + (name === '_Tools' || !itchOn() ? '' : section('rocket', 'itch.io', itchBody, { adv: true, right: jumpLink('act-itch', ip.exists ? t('info.view') : t('info.generate')) })) + - section('cpu', t('info.tech'), `
${techChips(d.tech.types) || `${t('info.notDetected')}`}${d.tech.needsInstall ? `${ic('download', 'sm')}${t('info.npmNeeded')}` : ''}
`, { adv: true }) + section('activity', t('tab.activity'), `
${t('info.loading')}
`, { right: `` }) + section('file-archive', t('info.releaseArchives'), arcBody, { adv: true, right: jumpLink('act-zip', t('info.makeZip')) }) + section('wand-sparkles', t('info.generator'), genBody, { adv: true }) + diff --git a/public/lang.js b/public/lang.js index 2c5ad00..70b204a 100644 --- a/public/lang.js +++ b/public/lang.js @@ -261,9 +261,9 @@ window.LANG = { 'size.unscanned': 'Folder size: not scanned yet (“Scan all” above)', 'size.scanned': 'Folder size: {size} (scanned {ago})', 'size.cleanable': '{size} of it cleanable', - 'git.green': 'Backed up', - 'git.yellow': 'Not backed up', - 'git.red': 'No remote', + 'git.green': 'Pushed', + 'git.yellow': 'Not pushed', + 'git.red': 'Local only', 'gitl.noGit': 'no Git', 'gitl.notInstalled': 'Git not installed', 'gitl.changed': '{n} changed', @@ -591,8 +591,8 @@ window.LANG = { 'kpi.scanError': 'Scan error', 'kpi.scanHint': 'Measure size & deletable folders', 'quick.all': 'All', - 'quick.nobackup': 'No remote', - 'quick.unsaved': 'Not backed up', + 'quick.nobackup': 'Local only', + 'quick.unsaved': 'Not pushed', 'quick.due': 'Backup due', 'quick.cleanable': 'Cleanable', 'quick.install': 'npm install', @@ -1065,9 +1065,9 @@ window.LANG = { 'size.unscanned': 'Ordnergröße: noch nicht gescannt („Alle scannen“ oben)', 'size.scanned': 'Ordnergröße: {size} (gescannt {ago})', 'size.cleanable': 'davon {size} aufräumbar', - 'git.green': 'Gesichert', - 'git.yellow': 'Ungesichert', - 'git.red': 'Kein Remote', + 'git.green': 'Gepusht', + 'git.yellow': 'Nicht gepusht', + 'git.red': 'Nur lokal', 'gitl.noGit': 'kein Git', 'gitl.notInstalled': 'Git nicht installiert', 'gitl.changed': '{n} geändert', @@ -1395,8 +1395,8 @@ window.LANG = { 'kpi.scanError': 'Scan-Fehler', 'kpi.scanHint': 'Größe & löschbare Ordner messen', 'quick.all': 'Alle', - 'quick.nobackup': 'Ohne Remote', - 'quick.unsaved': 'Ungesichert', + 'quick.nobackup': 'Nur lokal', + 'quick.unsaved': 'Nicht gepusht', 'quick.due': 'Backup fällig', 'quick.cleanable': 'Aufräumbar', 'quick.install': 'npm install',