Add extra prompts, endless generation, random character default, and small fixes

- Add extra positive/negative prompt textareas to all 9 detail pages with session persistence
- Add Endless generation button to all detail pages (continuous preview generation until stopped)
- Default character selector to "Random Character" on all secondary detail pages
- Fix queue clear endpoint (remove spurious auth check)
- Refactor app.py into routes/ and services/ modules
- Update CLAUDE.md with new architecture documentation
- Various data file updates and cleanup

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Aodhan Collins
2026-03-13 02:07:16 +00:00
parent 1b8a798c31
commit 5e4348ebc1
170 changed files with 17367 additions and 9781 deletions

17
fix_quotes.py Normal file
View File

@@ -0,0 +1,17 @@
import glob
import re
files = glob.glob('templates/*/detail.html') + ['templates/detail.html']
for filepath in files:
with open(filepath, 'r') as f:
content = f.read()
# remove literal backslashes before single quotes
content = content.replace(r"\'", "'")
# remove literal backslashes before double quotes if any
content = content.replace(r'\"', '"')
with open(filepath, 'w') as f:
f.write(content)