Add page editor UI: PageEditor drawer, fix slug regex for _docs/ paths, proxy /pages to API

This commit is contained in:
brutsalvadi
2026-04-23 16:48:40 +02:00
parent 3632ab3e9a
commit f41e8cb40e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ pages_dir: Path = _ROOT / os.environ.get("WIKI_PAGES_DIR", "pages")
site_dir: Path = _ROOT / "site" site_dir: Path = _ROOT / "site"
_DB_PATH = _ROOT / "data" / "wiki.db" _DB_PATH = _ROOT / "data" / "wiki.db"
_SAFE_SLUG = re.compile(r"^[a-zA-Z0-9][a-zA-Z0-9_\-/]*$") _SAFE_SLUG = re.compile(r"^[a-zA-Z0-9_][a-zA-Z0-9_\-/]*$")
_SESSION_TTL = 7 * 24 * 3600 # 7 days _SESSION_TTL = 7 * 24 * 3600 # 7 days
+1 -1
Submodule site updated: 2c58500aa3...23cefe51b3