diff --git a/README.md b/README.md
index 859fd3b..13b4d5b 100644
--- a/README.md
+++ b/README.md
@@ -32,6 +32,16 @@ Fertig. Eine Verknüpfung auf dem Desktop legst du wie bei jedem Programm an (Re
## Was du damit machen kannst
+### Einfach oder Erweitert
+Oben rechts schaltest du zwischen zwei Ansichten um (gilt für diesen PC, bleibt gespeichert):
+- **Einfach** (Standard bei neuer Installation): ruhige Kacheln mit Icon, Name, einem Satz Beschreibung, Status,
+ „zuletzt geändert“ und den Knöpfen ▶ Starten · Ordner · VS Code. Oben nur die Status-Filter (Alle · Aktiv · Ideen
+ · Pausiert · Fertig · Archiv). Erreichbar bleiben Aufgaben, Aktivität, Speicher und Backup. Im Projekt nur das
+ Wichtigste: Status, Notizen, Aufgaben, Beschreibung, Starten, Backup, Öffnen. Ein gelber Punkt auf der Kachel
+ heißt „Backup fällig“.
+- **Erweitert:** alles, was unten beschrieben ist – Board, Galerie, Liste, Kennzahlen, Filter, Git, Aufräumen,
+ Release-ZIP, Generator und mehr.
+
### Überblick
- **Board** mit Spalten *Idee · Aktiv · Pausiert · Fertig · Archiviert* – Karten per Drag & Drop verschieben.
Umschalter *Karten | Liste* für eine kompakte Zeilen-Ansicht.
@@ -138,6 +148,10 @@ Projekt bleiben `node_modules`, Build-Ordner, `.git` und `releases` draußen. Op
danach gelöscht, um Platz zu sparen – das ZIP bleibt.
### itch.io (optional)
+Alles zu itch.io ist eine **Zusatzfunktion**: Einstellungen → Allgemein → Funktionen → **itch.io** einschalten.
+Ausgeschaltet (Standard bei einer neuen Installation) ist nichts davon zu sehen – keine Anzeige, keine Filter, kein
+Feld, keine Abschnitte – und das Dashboard ruft itch.io nie auf. Eingeschaltet gilt:
+
Trägst du in den Einstellungen dein öffentliches itch.io-Profil ein (`https://name.itch.io`), erkennt das
Dashboard, welche Projekte veröffentlicht sind (🚀), und zeigt itch-Spiele, die noch keinem Projekt zugeordnet sind.
diff --git a/lib/settings.js b/lib/settings.js
index 3cbeb19..e2e5056 100644
--- a/lib/settings.js
+++ b/lib/settings.js
@@ -87,6 +87,13 @@ function cleanAuto(a, old) {
let current = null
+// Optional features, switched in Einstellungen → Allgemein. itch.io: without a stored
+// choice it is on when an itch.io profile is set (older settings), else off.
+function featuresFrom(f, itchProfile) {
+ return { itch: typeof f?.itch === 'boolean' ? f.itch : !!(itchProfile ?? '').trim() }
+}
+const itchOn = (s = get()) => !!s.features?.itch
+
// projects in subfolders: { nested: chosen relative paths, nestedIgnored: seen, not chosen }
function nestedOf(r) {
const list = (v) => (Array.isArray(v) ? [...new Set(v.filter((x) => typeof x === 'string' && x && !x.split(/[\\/]/).includes('..')))].slice(0, 200) : [])
@@ -122,6 +129,7 @@ function load() {
roots,
activeRoots: Array.isArray(saved?.activeRoots) ? saved.activeRoots : [saved?.activeRoot],
itchProfile: typeof saved?.itchProfile === 'string' ? saved.itchProfile : d.itchProfile,
+ features: featuresFrom(saved?.features, typeof saved?.itchProfile === 'string' ? saved.itchProfile : d.itchProfile),
backup,
})
return current
@@ -258,6 +266,7 @@ function save(input) {
roots,
activeRoots: sel.activeRoots,
itchProfile,
+ features: { ...(s.features ?? featuresFrom(null, itchProfile)), ...(typeof input.features?.itch === 'boolean' ? { itch: input.features.itch } : {}) },
backup: {
targets,
excludeDirs: cleanList(input.excludeDirs, s.backup.excludeDirs),
@@ -322,4 +331,4 @@ function subfolders(dir) {
return { path: p, folders: list.slice(0, 200) }
}
-module.exports = { setNested, get, load, save, setActive, addRoots, activeRootList, subfolders, backupSubdir, configured, targetName, DATA_DIR, APP_DIR, DEFAULT_EXCLUDE_DIRS }
+module.exports = { setNested, itchOn, get, load, save, setActive, addRoots, activeRootList, subfolders, backupSubdir, configured, targetName, DATA_DIR, APP_DIR, DEFAULT_EXCLUDE_DIRS }
diff --git a/public/app.js b/public/app.js
index 6b4ab1e..fa98bdc 100644
--- a/public/app.js
+++ b/public/app.js
@@ -200,6 +200,9 @@ let rootPaths = [] // all shown projects folders
let roots = [] // registered projects folders [{ id, name, path }]
let activeRoots = [] // ids of the shown ones (several possible)
const multiRoot = () => activeRoots.length > 1
+// optional features (Einstellungen → Allgemein → Funktionen)
+let FEATURES = { itch: false }
+const itchOn = () => !!FEATURES.itch
async function load() {
const res = await fetch(`/api/projects?target=${encodeURIComponent(curTargetId())}`)
@@ -213,6 +216,8 @@ async function load() {
roots = data.roots ?? []
activeRoots = data.activeRoots ?? (data.activeRoot ? [data.activeRoot] : [])
BACKUP_FRESH_DAYS = data.remindDays ?? 7
+ FEATURES = data.features ?? { itch: false }
+ document.body.classList.toggle('no-itch', !itchOn())
renderRootPicker()
if (editing) editing = projects.find((p) => p.name === editing.name) ?? editing
render()
@@ -544,7 +549,9 @@ async function openSettings(setup) {
syncAuto()
renderAutoStatus()
document.getElementById('fItchProfile').value = s.itchProfile ?? ''
- loadItchStatus()
+ document.getElementById('fFeatItch').checked = !!s.features?.itch
+ syncFeatures()
+ if (s.features?.itch) loadItchStatus()
document.getElementById('spData').innerHTML = s.dataDir
? `
Einstellungen
${escapeHtml(s.dataDir)}
Scan- & Backup-Stand
im selben Ordner (scan.json, backup.json)
@@ -611,6 +618,7 @@ async function saveSettings() {
target: document.getElementById('fAutoTarget').value || 'all',
},
itchProfile: document.getElementById('fItchProfile').value,
+ features: { itch: document.getElementById('fFeatItch').checked },
}
const btn = document.getElementById('spSave')
btn.disabled = true
@@ -662,6 +670,18 @@ function renderAutoStatus() {
}
/* settings tabs, dirty marker, Ctrl+S */
+// the itch.io tab follows the switch right away (saved with "Speichern")
+function syncFeatures() {
+ const on = document.getElementById('fFeatItch').checked
+ const btn = document.querySelector('#spTabs button[data-stab="itch"]')
+ btn.style.display = on ? '' : 'none'
+ if (!on && btn.classList.contains('active')) setSettingsTab('general')
+}
+document.getElementById('fFeatItch').addEventListener('change', () => {
+ syncFeatures()
+ if (document.getElementById('fFeatItch').checked) loadItchStatus()
+})
+
function setSettingsTab(tab) {
for (const b of document.querySelectorAll('#spTabs button')) b.classList.toggle('active', b.dataset.stab === tab)
for (const p of document.querySelectorAll('#spanel [data-spane]')) p.hidden = p.dataset.spane !== tab
@@ -998,8 +1018,8 @@ const QUICK = [
{ key: 'install', label: 'npm install', icon: 'download', test: (p) => p.tech?.needsInstall },
{ key: 'noicon', label: 'Ohne Icon', icon: 'image-off', test: (p) => !p.hasIcon },
{ key: 'gencopy', label: 'Generator-Kopie', icon: 'copy', test: (p) => p.tools?.generators?.some((g) => g.kind === 'copy') },
- { key: 'itch', label: 'itch.io', icon: 'rocket', test: (p) => !!p.published },
- { key: 'noitch', label: 'Fertig, nicht auf itch', icon: 'circle-off', test: (p) => p.status === 'done' && !p.published },
+ { key: 'itch', label: 'itch.io', icon: 'rocket', feature: 'itch', test: (p) => !!p.published },
+ { key: 'noitch', label: 'Fertig, nicht auf itch', icon: 'circle-off', feature: 'itch', test: (p) => p.status === 'done' && !p.published },
]
function matchesSearch(p) {
@@ -1055,7 +1075,9 @@ function renderKpis() {
function renderQuickFilters() {
const base = projects.filter(matchesSearch)
- document.getElementById('chipfilters').innerHTML = QUICK.map((q) => {
+ // a filter of a switched-off feature (Einstellungen → Allgemein) is gone; if it was active: back to "Alle"
+ if (QUICK.some((q) => q.key === quickFilter && q.feature && !FEATURES[q.feature])) quickFilter = 'all'
+ document.getElementById('chipfilters').innerHTML = QUICK.filter((q) => !q.feature || FEATURES[q.feature]).map((q) => {
const n = base.filter(q.test).length
if (q.key !== 'all' && n === 0 && quickFilter !== q.key) return ''
return `${ic(q.icon, 'sm')}${q.label} ${n} `
@@ -1069,6 +1091,7 @@ function render() {
renderKpis()
renderQuickFilters()
updateToolbarForView()
+ renderHome()
renderBoard()
renderGallery()
renderList()
@@ -1314,13 +1337,92 @@ function renderList() {
// views with their own header (no project KPIs / filter toolbar)
const WIDE_VIEWS = ['storage', 'activity']
+/* ── simple / advanced view (switch in the header) ────────────────────── */
+
+// simple: calm tiles, only the essentials; advanced: everything. Stored per
+// browser (dash.mode). Default: advanced for an existing setup (a view was
+// stored before), simple for a fresh one.
+let uiMode = 'advanced'
+function lastAdvView() {
+ try { const v = localStorage.getItem('dash.advView'); if (['board', 'gallery', 'list'].includes(v)) return v } catch {}
+ return 'board'
+}
+function initUiMode() {
+ let m = null
+ try { m = localStorage.getItem('dash.mode') ?? (localStorage.getItem('dash.view') ? 'advanced' : 'simple') } catch {}
+ m = new URLSearchParams(location.search).get('ui') ?? m
+ applyUiMode(m === 'simple' ? 'simple' : 'advanced')
+}
+function applyUiMode(m) {
+ uiMode = m
+ document.body.classList.toggle('simple', m === 'simple')
+ for (const b of document.querySelectorAll('#modeSeg button')) b.classList.toggle('active', b.dataset.ui === m)
+}
+function setUiMode(m) {
+ applyUiMode(m)
+ try { localStorage.setItem('dash.mode', m) } catch {}
+ setView(m === 'simple' ? (ADV_VIEWS.includes(activeView) ? 'home' : activeView) : (activeView === 'home' ? lastAdvView() : activeView))
+ render()
+ if (editing) { openEditor(editing); }
+}
+for (const b of document.querySelectorAll('#modeSeg button')) b.onclick = () => setUiMode(b.dataset.ui)
+
+// "Projekte" page of the simple view: status pills + tiles, newest first
+let homeStatus = 'all'
+const HOME_PILLS = [
+ { key: 'all', label: 'Alle', test: (p) => p.status !== 'archived' },
+ { key: 'active', label: 'Aktiv' }, { key: 'idea', label: 'Ideen' }, { key: 'paused', label: 'Pausiert' },
+ { key: 'done', label: 'Fertig' }, { key: 'archived', label: 'Archiv' },
+]
+const pillTest = (q) => q.test ?? ((p) => p.status === q.key)
+function renderHome() {
+ const base = projects.filter(matchesSearch)
+ document.getElementById('homeBar').innerHTML = HOME_PILLS.map((q) => {
+ const n = base.filter(pillTest(q)).length
+ if (q.key !== 'all' && !n && homeStatus !== q.key) return ''
+ return `${q.label}${n} `
+ }).join('')
+ for (const b of document.querySelectorAll('#homeBar .hpill')) b.onclick = () => { homeStatus = b.dataset.hs; renderHome() }
+ const pill = HOME_PILLS.find((q) => q.key === homeStatus) ?? HOME_PILLS[0]
+ const items = base.filter(pillTest(pill)).sort((a, b) => new Date(lastActivity(b)) - new Date(lastActivity(a)))
+ const grid = document.getElementById('homeGrid')
+ if (!items.length) { grid.innerHTML = `${ic('search-x', 'xl')}
Keine Projekte gefunden.
`; return }
+ grid.innerHTML = ''
+ for (const p of items) {
+ const desc = (p.description || p.notes || '').split(/\r?\n/).map((x) => x.trim()).find(Boolean) ?? ''
+ const due = backupDue(p)
+ const tile = document.createElement('div')
+ tile.className = 'htile'
+ tile.innerHTML = `
+
+
${escapeHtml(initialsOf(p.name))}
+
+
${escapeHtml(p.name)}
+
${statusHtml(p.status)}${rootTag(p, true)}
+
+
+ ${desc ? escapeHtml(desc) : 'Keine Beschreibung'}
+ `
+ wireQuickStart(tile, p)
+ tile.onclick = () => openEditor(p)
+ grid.appendChild(tile)
+ }
+}
+
+const ADV_VIEWS = ['board', 'gallery', 'list']
function setView(view) {
+ if (uiMode === 'simple' && ADV_VIEWS.includes(view)) view = 'home'
+ if (uiMode === 'advanced' && view === 'home') view = lastAdvView()
activeView = view
for (const el of document.querySelectorAll('.view')) el.classList.toggle('active', el.id === view)
for (const btn of document.querySelectorAll('#tabs button')) btn.classList.toggle('active', btn.dataset.view === view)
document.body.classList.toggle('view-wide', WIDE_VIEWS.includes(view))
updateToolbarForView()
- try { localStorage.setItem('dash.view', view) } catch {}
+ try { localStorage.setItem('dash.view', view); if (ADV_VIEWS.includes(view)) localStorage.setItem('dash.advView', view) } catch {}
if (view === 'storage') loadStorage()
if (view === 'activity') loadActivity()
}
@@ -1928,7 +2030,7 @@ const inProject = (p, folder) => {
// opts: { id } for jump targets, { right } html at the end of the heading
function section(icon, title, body, opts = {}) {
- return `
${ic(icon)}${title}${opts.right ? `${opts.right} ` : ''} ${body}`
+ return `
${ic(icon)}${title}${opts.right ? `${opts.right} ` : ''} ${body}`
}
// "→ in Aktionen": switches the tab and scrolls to the section
const jumpLink = (id, label = 'Aktionen') => `${label}${ic('arrow-right', 'sm')} `
@@ -1949,7 +2051,7 @@ function renderInfo(name, d) {
const c = cloudInfo(p)
const overview = `
Ordner
${escapeHtml(d.path)}
-
Status
${statusHtml(p.status)} · Priorität ${PRIO_LABEL[p.priority] ?? '–'}
+
Status
${statusHtml(p.status)} · Priorität ${PRIO_LABEL[p.priority] ?? '–'}
Geändert
${fmtDate(lastActivity(p))} · ${timeAgo(lastActivity(p))}${p.lastChange?.file ? ` · ${escapeHtml(p.lastChange.file)} ` : ''}
Backup
${ic('hard-drive', 'sm')}${escapeHtml(c.short)} ${backupDue(p) ? ' fällig ' : ''}
Größe
${s ? `${fmtMB(s.sizeMB)} · gescannt ${timeAgo(s.at)}${del >= 1 ? ` · ${fmtMB(del)} aufräumbar` : ''} ` : 'noch nicht gescannt '}
@@ -2012,14 +2114,14 @@ function renderInfo(name, d) {
el.innerHTML =
section('notebook-text', 'Beschreibung', `
${descBody}
${descEdit}`,
{ id: 'info-desc', right: `
${ic('pencil', 'sm')}${desc ? 'Ändern' : 'Schreiben'} ` }) +
- section('info', 'Übersicht', overview, { right: del >= 1 ? jumpLink('act-clean', 'Aufräumen') : '' }) +
- section('git-branch', 'Git', gitBody, { right: jumpLink('act-git', g.isRepo ? 'Push & Remote' : 'Einrichten') }) +
- (name === '_Tools' ? '' : section('rocket', 'itch.io', itchBody, { right: jumpLink('act-itch', ip.exists ? 'Ansehen' : 'Erzeugen') })) +
- section('cpu', 'Technik', `
${techChips(d.tech.types) || 'nicht erkannt '}${d.tech.needsInstall ? `${ic('download', 'sm')}npm install nötig ` : ''}
`) +
+ section('info', 'Übersicht', overview, { right: del >= 1 ? `
${jumpLink('act-clean', 'Aufräumen')} ` : '' }) +
+ section('git-branch', 'Git', gitBody, { adv: true, right: jumpLink('act-git', g.isRepo ? 'Push & Remote' : 'Einrichten') }) +
+ (name === '_Tools' || !itchOn() ? '' : section('rocket', 'itch.io', itchBody, { adv: true, right: jumpLink('act-itch', ip.exists ? 'Ansehen' : 'Erzeugen') })) +
+ section('cpu', 'Technik', `
${techChips(d.tech.types) || 'nicht erkannt '}${d.tech.needsInstall ? `${ic('download', 'sm')}npm install nötig ` : ''}
`, { adv: true }) +
`
${ic('activity')}Aktivität wird geladen…
` +
- section('file-archive', 'Release-Archive', arcBody, { right: jumpLink('act-zip', 'ZIP erstellen') }) +
- section('wand-sparkles', 'Generator', genBody) +
- section('image', 'App-Icon', iconBody)
+ section('file-archive', 'Release-Archive', arcBody, { adv: true, right: jumpLink('act-zip', 'ZIP erstellen') }) +
+ section('wand-sparkles', 'Generator', genBody, { adv: true }) +
+ section('image', 'App-Icon', iconBody, { adv: true })
bindJumps(el)
bindDescription(name, d, el)
loadProjectActivity(name)
@@ -2174,7 +2276,7 @@ function renderActions(name, d) {
}).join('')}
`
: `Keine fertige exe oder HTML-Seite im Projekt gefunden.${hasBuild ? ' Unter „Bauen“ erzeugen, dann hier starten.' : ''}
`)
+ (prog?.missing ? `${ic('triangle-alert', 'sm')} Festgelegte Datei fehlt: ${escapeHtml(prog.rel)} – neu wählen oder zurücksetzen.
` : '')
- + `
+ + `
${ic('pin', 'sm')}Für ▶ starten festlegen${prog ? `: ${escapeHtml(prog.rel)} ` : ' (automatisch)'}
@@ -2187,7 +2289,7 @@ function renderActions(name, d) {
const btnGroup = (g) => groups[g]
? section(ACTION_ICON[g], g, `
${groups[g].map((a) =>
- `${ic(ACT_ICON(a))}${escapeHtml(a.label)} `).join('')}
`)
+ `
${ic(ACT_ICON(a))}${escapeHtml(a.label)} `).join('')}
`, { adv: !['Starten', 'Öffnen'].includes(g) })
: ''
const head = (icon, title) => `${ic(icon, 'sm')}${title}
`
const tools = name === '_Tools'
@@ -2200,15 +2302,15 @@ function renderActions(name, d) {
+ section('app-window', 'Programm', progHtml)
+ btnGroup('Starten') + btnGroup('Einrichten') + btnGroup('Bauen')
+ head('shield-check', 'Sichern & Versionieren')
- + section('git-branch', 'Git', gitActionsHtml(name, d), { id: 'act-git' })
+ + section('git-branch', 'Git', gitActionsHtml(name, d), { id: 'act-git', adv: true })
+ (tools ? '' : section('hard-drive-upload', 'Backup', '
', { id: 'act-backup' }))
+ head('rocket', 'Veröffentlichen')
- + section('file-archive', 'Release-ZIP', archiveHtml(name, d), { id: 'act-zip' })
- + (tools ? '' : section('rocket', 'itch.io-Seite', itchActionHtml(name, d), { id: 'act-itch' }))
+ + section('file-archive', 'Release-ZIP', archiveHtml(name, d), { id: 'act-zip', adv: true })
+ + (tools || !itchOn() ? '' : section('rocket', 'itch.io-Seite', itchActionHtml(name, d), { id: 'act-itch', adv: true }))
+ head('brush-cleaning', 'Aufräumen')
- + section('hard-drive', 'Speicher', cleanHtml(d), { id: 'act-clean' })
+ + section('hard-drive', 'Speicher', cleanHtml(d), { id: 'act-clean', adv: true })
+ (groups['Werkzeuge'] || groups['Öffnen'] ? head('wrench', 'Werkzeuge') + btnGroup('Werkzeuge') + btnGroup('Öffnen') : '')
- + `${ic('shield-check', 'sm')} Programme starten direkt, Befehle und .bat laufen sichtbar in einem eigenen Konsolenfenster. Eigenen Start-Befehl unter „Bearbeiten“ festlegen.
`
+ + `${ic('shield-check', 'sm')} Programme starten direkt, Befehle und .bat laufen sichtbar in einem eigenen Konsolenfenster. Eigenen Start-Befehl unter „Bearbeiten“ festlegen.
`
for (const btn of el.querySelectorAll('.act')) btn.onclick = () => runAction(name, btn.dataset.id)
for (const btn of el.querySelectorAll('.pin')) btn.onclick = () => setProgram(name, btn.dataset.rel)
@@ -2673,7 +2775,7 @@ function openEditor(p) {
editingTasks = (p.tasks ?? []).map((t) => ({ ...t }))
document.getElementById('pAvatar').innerHTML = avatar(p, 'lg')
document.getElementById('panelTitle').textContent = p.name
- document.getElementById('panelSub').innerHTML = `${statusHtml(p.status)}${gitHtml(p.git, true)}${techChips(p.tech?.types)}${pubChip(p)}`
+ document.getElementById('panelSub').innerHTML = uiMode === 'simple' ? `${statusHtml(p.status)}${rootTag(p)}` : `${statusHtml(p.status)}${gitHtml(p.git, true)}${techChips(p.tech?.types)}${pubChip(p)}`
document.getElementById('fStatus').value = p.status
document.getElementById('fPriority').value = p.priority
document.getElementById('fTags').value = (p.tags ?? []).join(', ')
@@ -2972,10 +3074,13 @@ document.addEventListener('keydown', (e) => {
// Deep links: #gallery, #list, #board/ (opens the panel), #list//info
const [hashView, hashProject, hashSec] = decodeURIComponent(location.hash.slice(1)).split('/')
-const VIEWS = ['board', 'gallery', 'list', 'tasks', 'storage', 'activity']
+const VIEWS = ['home', 'board', 'gallery', 'list', 'tasks', 'storage', 'activity']
initTheme()
+initUiMode()
if (VIEWS.includes(hashView)) setView(hashView)
else try { const v = localStorage.getItem('dash.view'); if (VIEWS.includes(v)) setView(v) } catch {}
+// nothing stored (first start): the simple view starts on its tile page
+if (uiMode === 'simple' && ADV_VIEWS.includes(activeView)) setView('home')
function openFromHash(project, sec) {
const p = project && projects.find((x) => x.name === project)
if (p) { openEditor(p); if (sec) setSection(sec) }
diff --git a/public/index.html b/public/index.html
index 036011d..897d5db 100644
--- a/public/index.html
+++ b/public/index.html
@@ -85,7 +85,7 @@
#search { padding: 8px 12px 8px 32px; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; width: 240px; background: var(--surface); outline: none; }
#search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg.theme button { padding: 6px 10px; }
- @media (max-width: 1300px) { .seg.theme button span { display: none; } }
+ @media (max-width: 1600px) { .seg.theme button span { display: none; } }
.iconbtn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.iconbtn:hover { color: var(--text); border-color: var(--border-strong); }
@@ -572,6 +572,35 @@
.nitem .nrel b { font-weight: 600; }
.nitem .chip { font-size: 10px; }
.card .rootline .rtag + .rtag { margin-left: 4px; }
+ body.no-itch .feat-itch { display: none !important; }
+ /* simple / advanced view (switch in the header, localStorage dash.mode) */
+ body.simple .adv { display: none !important; }
+ body:not(.simple) .simple-only { display: none !important; }
+ body.simple #kpis, body.simple .toolbar, body.simple #sec-actions .agroup-h { display: none !important; }
+ body.simple #sec-edit .grid2 { grid-template-columns: 1fr; }
+ .homebar { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; }
+ .hpill { font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
+ .hpill:hover { color: var(--text); border-color: var(--accent); }
+ .hpill.active { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; font-weight: 600; }
+ .hpill .n { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }
+ #homeGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
+ .htile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: transform .12s, border-color .12s, box-shadow .12s; min-width: 0; }
+ .htile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
+ .htile .hhead { display: flex; gap: 12px; align-items: center; min-width: 0; }
+ .htile .hicon { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 52px; overflow: hidden; position: relative; background: var(--c, var(--surface-3)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }
+ .htile .hicon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
+ .htile .hname { font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+ .htile .hsub { display: flex; gap: 6px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
+ .htile .hsub .rtag { margin-left: 0; }
+ .htile .hdesc { font-size: 13px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
+ .htile .hdesc.none { color: var(--muted); font-style: italic; }
+ .htile .hfoot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; border-top: 1px solid var(--border); padding-top: 10px; }
+ .htile .hfoot .when { font-size: 12px; color: var(--muted); }
+ .htile .hfoot .qsg { margin-left: auto; }
+ .htile .hdue { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow, #f59e0b); flex: 0 0 8px; }
+ .featrow { display: flex !important; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
+ .featrow input { margin-top: 3px; }
+ .featrow b { display: inline-flex; gap: 5px; align-items: center; }
.pdesc { font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.pdesc.muted { color: var(--muted); font-style: italic; }
.pdesc-edit textarea { width: 100%; min-height: 120px; resize: vertical; font: inherit; font-size: 13px; line-height: 1.5; }
@@ -752,9 +781,10 @@
-
Board
-
Galerie
-
Liste
+
Projekte
+
Board
+
Galerie
+
Liste
Aufgaben
Aktivität
Speicher
@@ -766,6 +796,10 @@
Neu
Backup
+
+ Einfach
+ Erweitert
+
Hell
System
@@ -810,6 +844,10 @@
+
@@ -891,8 +929,8 @@
Explorer
VS Code
- Klonen
- Umbenennen…
+ Klonen
+ Umbenennen…
Bearbeiten
@@ -914,7 +952,7 @@
Archiviert
-
+
Priorität
Niedrig
@@ -923,15 +961,19 @@
+
+
+
itch.io-Seite (leer = automatisch erkennen, „-“ = nicht veröffentlicht)
+
+
+
Notizen
Aufgaben
@@ -1055,6 +1097,10 @@
Allgemein Wo das Dashboard seine Daten ablegt.
Datenordner öffnen
+ Funktionen Zusätzliches, das nicht jeder braucht. Ausgeschaltet ist davon nichts zu sehen.
+
+ itch.io
+ „Veröffentlicht“-Anzeige auf den Karten, Filter, itch.io-Link je Projekt, itch.io-Seite erzeugen (Claude Code) und Kopier-Ansicht. Aus = nichts davon sichtbar, kein Abruf des Profils.
diff --git a/server.js b/server.js
index f954071..e3a64ae 100644
--- a/server.js
+++ b/server.js
@@ -311,12 +311,12 @@ async function describeProject(p, target) {
lastBackup: backup.lastFor(p.root.path, p.folder, target),
storage: storageSummary(p),
...meta,
- published: itch.forProject(path.basename(p.folder), meta.itch),
+ published: settings.itchOn() ? itch.forProject(path.basename(p.folder), meta.itch) : null,
}
}
async function listProjects(target) {
- await itch.ensure()
+ if (settings.itchOn()) await itch.ensure() // switched off: no request to itch.io
const list = await pool(projectList(), 8, (p) => describeProject(p, target))
return list.sort((a, b) => new Date(b.mtime) - new Date(a.mtime))
}
@@ -393,6 +393,7 @@ app.get('/api/projects', handle(async (req, res) => {
cleanAvailable: storage.cleanupAvailable(),
activityPending: activity.pending(),
// projects in subfolders found but not yet chosen/dismissed (lib/nested.js)
+ features: s.features ?? { itch: false },
nestedHint: ROOTS.length ? nested.hint(s.roots.filter((r) => fs.existsSync(r.path))) : 0,
})
}))
@@ -403,6 +404,9 @@ async function itchStatus() {
const claimed = projectList().map((p) => itch.forProject(path.basename(p.folder), readStatusFile(path.join(p.root.path, p.folder)).itch)?.url).filter(Boolean)
return { profile: s.profile, at: s.at, error: s.error, games: s.games, unmatched: itch.unmatched(claimed) }
}
+// everything itch.io only works while it is switched on (Einstellungen → Allgemein)
+const itchOnly = (req, res, next) => (settings.itchOn() ? next() : res.status(404).json({ error: 'itch.io ist in den Einstellungen ausgeschaltet' }))
+app.use(['/api/itch', '/api/projects/:name/itch'], itchOnly)
app.get('/api/itch', handle(async (req, res) => { await itch.ensure(); res.json(await itchStatus()) }))
app.post('/api/itch/refresh', handle(async (req, res) => { await itch.refresh(); res.json(await itchStatus()) }))
@@ -720,7 +724,7 @@ app.get('/api/projects/:name/details', handle(async (req, res) => {
sshKey: sshKey(),
releaseDirs: archive.findReleaseDirs(projectPath),
archives: archive.listArchives(projectPath),
- itchPack: itchpack.summary(projectPath),
+ itchPack: settings.itchOn() ? itchpack.summary(projectPath) : null,
readme: readmeIntro(projectPath),
})
}))