erweiterte ansicht

This commit is contained in:
2026-11-12 20:58:18 +01:00
parent 0a38884eac
commit d6f5b1672c
5 changed files with 215 additions and 37 deletions

View File

@@ -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
? `<div>Einstellungen</div><div><code>${escapeHtml(s.dataDir)}</code></div>
<div>Scan- &amp; Backup-Stand</div><div>im selben Ordner (<code>scan.json</code>, <code>backup.json</code>)</div>
@@ -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 `<button class="fchip ${quickFilter === q.key ? 'active' : ''}" data-q="${q.key}" title="${q.label}">${ic(q.icon, 'sm')}<span class="fl">${q.label}</span><span class="n">${n}</span></button>`
@@ -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 `<button type="button" class="hpill ${homeStatus === q.key ? 'active' : ''}" data-hs="${q.key}">${q.label}<span class="n">${n}</span></button>`
}).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 = `<div class="empty">${ic('search-x', 'xl')}<div>Keine Projekte gefunden.</div></div>`; 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 = `
<div class="hhead">
<div class="hicon" style="--c:${nameColor(p.name)}">${escapeHtml(initialsOf(p.name))}<img loading="lazy" src="${thumbUrl(p.name)}" alt="" onerror="this.remove()"></div>
<div style="min-width:0;flex:1">
<div class="hname" title="${escapeHtml(p.name)}">${escapeHtml(p.name)}</div>
<div class="hsub">${statusHtml(p.status)}${rootTag(p, true)}</div>
</div>
</div>
<div class="hdesc ${desc ? '' : 'none'}" title="${escapeHtml(desc)}">${desc ? escapeHtml(desc) : 'Keine Beschreibung'}</div>
<div class="hfoot">
${due ? `<span class="hdue" title="${escapeHtml(cloudInfo(p).label)}"></span>` : ''}
<span class="when" title="${escapeHtml(changeTitle(p))}">${timeAgo(lastActivity(p))}</span>
${qsGroup(p, false, true)}
</div>`
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 `<div class="card-sec"${opts.id ? ` id="${opts.id}"` : ''}><h4>${ic(icon)}${title}${opts.right ? `<span class="h4r">${opts.right}</span>` : ''}</h4>${body}</div>`
return `<div class="card-sec${opts.adv ? ' adv' : ''}"${opts.id ? ` id="${opts.id}"` : ''}><h4>${ic(icon)}${title}${opts.right ? `<span class="h4r">${opts.right}</span>` : ''}</h4>${body}</div>`
}
// "→ in Aktionen": switches the tab and scrolls to the section
const jumpLink = (id, label = 'Aktionen') => `<a href="#" class="jump" data-jump="${id}">${label}${ic('arrow-right', 'sm')}</a>`
@@ -1949,7 +2051,7 @@ function renderInfo(name, d) {
const c = cloudInfo(p)
const overview = `<div class="kv">
<div>Ordner</div><div><code>${escapeHtml(d.path)}</code></div>
<div>Status</div><div>${statusHtml(p.status)} <span class="hint">· Priorität ${PRIO_LABEL[p.priority] ?? '–'}</span></div>
<div class="adv">Status</div><div class="adv">${statusHtml(p.status)} <span class="hint">· Priorität ${PRIO_LABEL[p.priority] ?? '–'}</span></div>
<div>Geändert</div><div title="${escapeHtml(changeTitle(p))}">${fmtDate(lastActivity(p))} · ${timeAgo(lastActivity(p))}${p.lastChange?.file ? ` <span class="hint">· ${escapeHtml(p.lastChange.file)}</span>` : ''}</div>
<div>Backup</div><div title="${escapeHtml(c.label)}"><span class="bk ${c.level}">${ic('hard-drive', 'sm')}${escapeHtml(c.short)}</span>${backupDue(p) ? ' <span class="chip warn">fällig</span>' : ''}</div>
<div>Größe</div><div>${s ? `<b>${fmtMB(s.sizeMB)}</b> <span class="hint">· gescannt ${timeAgo(s.at)}${del >= 1 ? ` · ${fmtMB(del)} aufräumbar` : ''}</span>` : '<span class="hint">noch nicht gescannt</span>'}</div>
@@ -2012,14 +2114,14 @@ function renderInfo(name, d) {
el.innerHTML =
section('notebook-text', 'Beschreibung', `<div class="pdesc-view">${descBody}</div>${descEdit}`,
{ id: 'info-desc', right: `<a href="#" class="jump" id="btnDescEdit">${ic('pencil', 'sm')}${desc ? 'Ändern' : 'Schreiben'}</a>` }) +
section('info', 'Übersicht', overview, { right: del >= 1 ? jumpLink('act-clean', 'Aufräumen') : '' }) +
section('git-branch', 'Git', gitBody, { right: jumpLink('act-git', g.isRepo ? 'Push &amp; Remote' : 'Einrichten') }) +
(name === '_Tools' ? '' : section('rocket', 'itch.io', itchBody, { right: jumpLink('act-itch', ip.exists ? 'Ansehen' : 'Erzeugen') })) +
section('cpu', 'Technik', `<div class="chips">${techChips(d.tech.types) || '<span class="hint">nicht erkannt</span>'}${d.tech.needsInstall ? `<span class="chip warn">${ic('download', 'sm')}npm install nötig</span>` : ''}</div>`) +
section('info', 'Übersicht', overview, { right: del >= 1 ? `<span class="adv">${jumpLink('act-clean', 'Aufräumen')}</span>` : '' }) +
section('git-branch', 'Git', gitBody, { adv: true, right: jumpLink('act-git', g.isRepo ? 'Push &amp; Remote' : 'Einrichten') }) +
(name === '_Tools' || !itchOn() ? '' : section('rocket', 'itch.io', itchBody, { adv: true, right: jumpLink('act-itch', ip.exists ? 'Ansehen' : 'Erzeugen') })) +
section('cpu', 'Technik', `<div class="chips">${techChips(d.tech.types) || '<span class="hint">nicht erkannt</span>'}${d.tech.needsInstall ? `<span class="chip warn">${ic('download', 'sm')}npm install nötig</span>` : ''}</div>`, { adv: true }) +
`<div class="card-sec"><h4>${ic('activity')}Aktivität <span class="hint" style="font-weight:400;margin:0 0 0 auto" id="actMiniInfo"></span></h4><div id="actMini" class="hmini"><span class="hint">wird geladen…</span></div></div>` +
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('')}</div>`
: `<div class="hint" style="margin-top:0">Keine fertige exe oder HTML-Seite im Projekt gefunden.${hasBuild ? ' Unter „Bauen“ erzeugen, dann hier starten.' : ''}</div>`)
+ (prog?.missing ? `<div class="hint warn">${ic('triangle-alert', 'sm')} Festgelegte Datei fehlt: <b>${escapeHtml(prog.rel)}</b> – neu wählen oder zurücksetzen.</div>` : '')
+ `<details class="progset"${prog?.missing ? ' open' : ''}>
+ `<details class="progset adv"${prog?.missing ? ' open' : ''}>
<summary>${ic('pin', 'sm')}Für ▶ starten festlegen${prog ? `: <b>${escapeHtml(prog.rel)}</b>` : ' (automatisch)'}</summary>
<div class="pickrow">
<input type="text" id="fProgram" placeholder="z. B. release\\Spiel.exe oder game\\index.html" value="${escapeHtml(prog?.rel ?? '')}">
@@ -2187,7 +2289,7 @@ function renderActions(name, d) {
const btnGroup = (g) => groups[g]
? section(ACTION_ICON[g], g, `<div class="actgroup">${groups[g].map((a) =>
`<button class="btn act ${g === 'Starten' || g === 'Einrichten' ? 'primary' : ''}" data-id="${escapeHtml(a.id)}" ${a.detail ? `title="${escapeHtml(a.detail)}"` : ''}>${ic(ACT_ICON(a))}${escapeHtml(a.label)}</button>`).join('')}</div>`)
`<button class="btn act ${g === 'Starten' || g === 'Einrichten' ? 'primary' : ''}" data-id="${escapeHtml(a.id)}" ${a.detail ? `title="${escapeHtml(a.detail)}"` : ''}>${ic(ACT_ICON(a))}${escapeHtml(a.label)}</button>`).join('')}</div>`, { adv: !['Starten', 'Öffnen'].includes(g) })
: ''
const head = (icon, title) => `<div class="agroup-h">${ic(icon, 'sm')}${title}</div>`
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 &amp; 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', '<div id="pbackupBody"></div>', { 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') : '')
+ `<div class="hint" style="margin-top:12px">${ic('shield-check', 'sm')} Programme starten direkt, Befehle und .bat laufen sichtbar in einem eigenen Konsolenfenster. Eigenen Start-Befehl unter „Bearbeiten“ festlegen.</div>`
+ `<div class="hint adv" style="margin-top:12px">${ic('shield-check', 'sm')} Programme starten direkt, Befehle und .bat laufen sichtbar in einem eigenen Konsolenfenster. Eigenen Start-Befehl unter „Bearbeiten“ festlegen.</div>`
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/<Projekt> (opens the panel), #list/<Projekt>/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) }

View File

@@ -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 @@
</div>
</div>
<div class="seg" id="tabs">
<button data-view="board" class="active" title="Board"><svg class="i"><use href="/icons.svg#kanban"/></svg><span class="tl">Board</span></button>
<button data-view="gallery" title="Galerie"><svg class="i"><use href="/icons.svg#layout-grid"/></svg><span class="tl">Galerie</span></button>
<button data-view="list" title="Liste"><svg class="i"><use href="/icons.svg#list"/></svg><span class="tl">Liste</span></button>
<button data-view="home" class="simple-only" title="Alle Projekte als Kacheln"><svg class="i"><use href="/icons.svg#layout-grid"/></svg><span class="tl">Projekte</span></button>
<button data-view="board" class="active adv" title="Board"><svg class="i"><use href="/icons.svg#kanban"/></svg><span class="tl">Board</span></button>
<button data-view="gallery" class="adv" title="Galerie"><svg class="i"><use href="/icons.svg#layout-grid"/></svg><span class="tl">Galerie</span></button>
<button data-view="list" class="adv" title="Liste"><svg class="i"><use href="/icons.svg#list"/></svg><span class="tl">Liste</span></button>
<button data-view="tasks" title="Aufgaben"><svg class="i"><use href="/icons.svg#list-checks"/></svg><span class="tl">Aufgaben</span><span class="tabn" id="taskCount"></span></button>
<button data-view="activity" title="Woran wurde wann gearbeitet"><svg class="i"><use href="/icons.svg#activity"/></svg><span class="tl">Aktivität</span></button>
<button data-view="storage" title="Speicherplatz: wer belegt wie viel"><svg class="i"><use href="/icons.svg#hard-drive"/></svg><span class="tl">Speicher</span></button>
@@ -766,6 +796,10 @@
<button class="btn" id="btnNew" title="Neues Projekt anlegen oder ein vorhandenes klonen"><svg class="i"><use href="/icons.svg#plus"/></svg><span>Neu</span></button>
<button class="btn" id="btnBackup" title="Alle Projekte auf die MyCloud sichern"><svg class="i"><use href="/icons.svg#hard-drive-upload"/></svg><span>Backup</span><span class="bsub" id="backupSub"></span></button>
<button class="iconbtn" id="btnSettings" title="Einstellungen: Projektordner und Backup-Ziel"><svg class="i"><use href="/icons.svg#settings"/></svg></button>
<div class="seg theme" id="modeSeg" title="Ansicht: einfach (ruhig, das Wichtigste) oder erweitert (alles)">
<button data-ui="simple" title="Einfache Ansicht – nur das Wichtigste"><svg class="i"><use href="/icons.svg#square"/></svg><span>Einfach</span></button>
<button data-ui="advanced" title="Erweiterte Ansicht – alle Funktionen"><svg class="i"><use href="/icons.svg#sliders-horizontal"/></svg><span>Erweitert</span></button>
</div>
<div class="seg theme" id="themeSeg" title="Darstellung">
<button data-mode="light" title="Hell"><svg class="i"><use href="/icons.svg#sun"/></svg><span>Hell</span></button>
<button data-mode="system" title="Wie Windows"><svg class="i"><use href="/icons.svg#monitor"/></svg><span>System</span></button>
@@ -810,6 +844,10 @@
</div>
<main>
<div id="home" class="view">
<div class="homebar" id="homeBar"></div>
<div id="homeGrid"></div>
</div>
<div id="board" class="view active"></div>
<div id="gallery" class="view"><div id="galleryGrid"></div></div>
<div id="list" class="view"><div class="tablewrap"><table class="list" id="listTable"></table></div></div>
@@ -891,8 +929,8 @@
<div class="pquick">
<button class="btn" id="btnOpenFolder"><svg class="i"><use href="/icons.svg#folder-open"/></svg>Explorer</button>
<button class="btn" id="btnVsCode"><svg class="i"><use href="/icons.svg#code-xml"/></svg>VS Code</button>
<button class="btn" id="btnClone" title="Kopie dieses Projekts als neues Projekt anlegen"><svg class="i"><use href="/icons.svg#copy-plus"/></svg>Klonen</button>
<button class="btn" id="btnMove" title="Projektordner umbenennen oder in einen anderen Projektordner verschieben"><svg class="i"><use href="/icons.svg#folder-pen"/></svg>Umbenennen…</button>
<button class="btn adv" id="btnClone" title="Kopie dieses Projekts als neues Projekt anlegen"><svg class="i"><use href="/icons.svg#copy-plus"/></svg>Klonen</button>
<button class="btn adv" id="btnMove" title="Projektordner umbenennen oder in einen anderen Projektordner verschieben"><svg class="i"><use href="/icons.svg#folder-pen"/></svg>Umbenennen…</button>
</div>
<div class="seg" id="ptabs">
<button data-sec="edit" class="active"><svg class="i"><use href="/icons.svg#pencil"/></svg>Bearbeiten</button>
@@ -914,7 +952,7 @@
<option value="archived">Archiviert</option>
</select>
</div>
<div>
<div class="adv">
<label><svg class="i sm"><use href="/icons.svg#signal"/></svg>Priorität</label>
<select id="fPriority">
<option value="low">Niedrig</option>
@@ -923,15 +961,19 @@
</select>
</div>
</div>
<div class="adv" style="display:contents">
<label><svg class="i sm"><use href="/icons.svg#tags"/></svg>Tags (mit Komma getrennt)</label>
<input type="text" id="fTags" placeholder="spiel, android, tool…">
<label><svg class="i sm"><use href="/icons.svg#image"/></svg>Bild / Icon (Pfad im Projekt, optional)</label>
<input type="text" id="fThumb" placeholder="assets/icon.png">
<label><svg class="i sm"><use href="/icons.svg#square-terminal"/></svg>Eigener Start-Befehl (läuft sichtbar in einer Konsole)</label>
<input type="text" id="fStart" placeholder="npm run dev">
<label><svg class="i sm"><use href="/icons.svg#rocket"/></svg>itch.io-Seite (leer = automatisch erkennen, „-“ = nicht veröffentlicht)</label>
<input type="text" id="fItch" placeholder="https://sn09.itch.io/spielname">
<div class="hint" id="fItchHint" style="margin-top:-4px"></div>
</div>
<div class="feat-itch adv" style="display:contents">
<label><svg class="i sm"><use href="/icons.svg#rocket"/></svg>itch.io-Seite (leer = automatisch erkennen, „-“ = nicht veröffentlicht)</label>
<input type="text" id="fItch" placeholder="https://name.itch.io/spielname">
<div class="hint" id="fItchHint" style="margin-top:-4px"></div>
</div>
<label><svg class="i sm"><use href="/icons.svg#notebook-pen"/></svg>Notizen</label>
<textarea id="fNotes" placeholder="Was fehlt noch, nächste Schritte…"></textarea>
<label><svg class="i sm"><use href="/icons.svg#list-checks"/></svg>Aufgaben</label>
@@ -1055,6 +1097,10 @@
<div class="sphead"><h4>Allgemein</h4><p>Wo das Dashboard seine Daten ablegt.</p></div>
<div class="kv" id="spData"></div>
<div class="rowbtns"><button class="btn" type="button" id="spOpenData"><svg class="i"><use href="/icons.svg#folder-open"/></svg>Datenordner öffnen</button></div>
<div class="sphead" style="margin-top:8px"><h4>Funktionen</h4><p>Zusätzliches, das nicht jeder braucht. Ausgeschaltet ist davon nichts zu sehen.</p></div>
<label class="chk featrow"><input type="checkbox" id="fFeatItch">
<span><b><svg class="i sm"><use href="/icons.svg#rocket"/></svg> itch.io</b><br>
<span class="hint" style="margin:0">„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.</span></span></label>
</section>
</div>
<div class="msg err" id="spError" style="display:none"></div>