mirror of
https://github.com/wahyd4/heygo.git
synced 2026-08-08 21:05:48 +10:00
- LandingHero: service intro + search input for unauthenticated users - App.tsx/routing: logged-in users auto-redirect to My Links - 404 pages: styled with login prompt + alias-based redirect - Worker: getLinkById API for link detail page (LINK_BY_ID_*_QUERY) - Private redirect: pass alias to 404/login pages for redirect flow - Tests: update assertions for new 404 page text
Django Links Export Tool
Standalone Python script to export shortlinks from the old Linux/Django
links app SQLite database into JSONL format suitable for import into
the Cloudflare D1 shortlinks system.
Usage
# Export from a Django SQLite DB to stdout
python3 scripts/export-django-links.py --db /path/to/db.sqlite3
# Export to file
python3 scripts/export-django-links.py --db /path/to/db.sqlite3 --output ./export.jsonl
# Use env var instead of --db
export DJANGO_DB_PATH=/path/to/db.sqlite3
python3 scripts/export-django-links.py --output ./export.jsonl
# Filter by owner email (only when links_link has an owner FK column)
python3 scripts/export-django-links.py --db /path/to/db.sqlite3 --owner-email admin@example.com
Output format
Line-delimited JSON (JSONL). Each line:
{"alias":"claude","link_type":"redirect","target_url":"https://claude.ai","content_markdown":"","description":"","tags":["ai","tools"],"created_at":"...","updated_at":"..."}
Running tests
python3 scripts/export-django-links.test.py