wow-politur: akzentfarbe waehlbar, sanfte ansichtswechsel, freundliche leerzustaende

- Einstellungen -> Allgemein: Akzentfarbe (8 Presets + eigener Farbwaehler),
  per color-mix theme-aware abgeleitet, in localStorage gespeichert
- sanfter Fade + einmaliges Karten-Stagger beim View-Wechsel (Guard-Flag,
  respektiert prefers-reduced-motion)
- Leerzustaende: "nichts passt zu deinen Filtern" + Filter zuruecksetzen,
  sonst "noch keine Projekte" + Neues Projekt (im Demo-Limit ausgeblendet)
  in Board/Galerie/Liste/Home
- README als Markdown im Info-Panel (server: readmeFull-Feld)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 20:36:29 +01:00
parent 685bf4cd00
commit 972248f26a
4 changed files with 271 additions and 4 deletions

View File

@@ -130,6 +130,17 @@ function readmeIntro(projectPath) {
return out.length > 800 ? out.slice(0, 797).replace(/\s+\S*$/, '') + '…' : out
}
// Raw README text (first ~20 KB) for the client's markdown view. Path-confined to the project folder.
function readmeRaw(projectPath) {
for (const f of ['README.md', 'readme.md', 'Readme.md', 'README.txt', 'README']) {
try {
const text = fs.readFileSync(path.join(projectPath, f), 'utf-8').replace(/^/, '')
return text.length > 20000 ? text.slice(0, 20000) : text
} catch {}
}
return ''
}
function readStatusFile(projectPath) {
const file = path.join(projectPath, STATUS_FILE)
try {
@@ -799,6 +810,7 @@ app.get('/api/projects/:name/details', handle(async (req, res) => {
archives: archive.listArchives(projectPath),
itchPack: settings.itchOn() ? itchpack.summary(projectPath) : null,
readme: readmeIntro(projectPath),
readmeFull: readmeRaw(projectPath),
})
}))