Marrrrrrrrry
5121db6edc
feat: rename all config keys to snake_case with DB migration 007
...
- 20 camelCase keys (uploadSize, expireStyle, openUpload, ...) renamed across
DEFAULT_CONFIG, settings accessors, setup form fields, and ConfigService
- migrations_007 renames keys inside the existing settings KeyValue row,
preserving all values for existing deployments
- schema guard meta-test keeps future keys declared
2026-09-09 18:09:19 +08:00
Marrrrrrrrry
6587ec86be
refactor: extract setup wizard and public pages from main.py (945 -> 148 lines)
...
- apps/base/setup_wizard.py: form parsing rules, setup options, and the
two admin-facing HTML pages
- apps/base/pages.py: setup/assets/index/robots/public-config routes and
theme resolution (404 handler registered on the app in main.py)
- tests updated to import from the new modules
2026-09-09 17:25:42 +08:00
Marrrrrrrrry
832266101e
refactor: storage returns StoredDownload data; view layer builds starlette responses
2026-09-09 17:13:34 +08:00
Marrrrrrrrry
177a212c0f
test: add shared test helpers and ASGI fixtures, dedupe 10x boilerplate
...
- tests/helpers.py: SettingsOverrideMixin + init_memory_db()/close_db()
- tests/conftest.py: httpx ASGI client fixtures (db, client, initialized_client)
- enable pytest asyncio_mode=auto
- replace 6 duplicated SettingsOverrideMixin copies and 4 duplicated
Tortoise.init blocks across the legacy unittest suite
2026-09-08 17:47:21 +08:00
monlor
f2277e1649
support text direct downloads
2026-07-15 15:12:24 +08:00
Lan
8d7d856c62
fix: harden share retrieval and admin visibility ( #482 , #480 )
2026-07-10 17:39:53 +08:00