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:
12
server.js
12
server.js
@@ -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),
|
||||
})
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user