mirror of
https://github.com/zvx-echo6/recon.git
synced 2026-05-20 06:34:40 +02:00
Add scraper dashboard UI under Kiwix tab
New /kiwix/scraper page with submit form (URL, title, language, crawl mode), stats cards, and auto-refreshing jobs table with cancel/retry actions. Kiwix section now has Library/Scraper subnav. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
45b954fccc
commit
1ce9a3731f
4 changed files with 257 additions and 1 deletions
11
lib/api.py
11
lib/api.py
|
|
@ -60,7 +60,10 @@ PEERTUBE_SUBNAV = [
|
|||
]
|
||||
|
||||
|
||||
KIWIX_SUBNAV = [] # Single-page, no subnav needed
|
||||
KIWIX_SUBNAV = [
|
||||
{'href': '/kiwix', 'label': 'Library'},
|
||||
{'href': '/kiwix/scraper', 'label': 'Scraper'},
|
||||
]
|
||||
SETTINGS_SUBNAV = [
|
||||
{'href': '/settings/keys', 'label': 'API Keys'},
|
||||
{'href': '/settings/cookies', 'label': 'YouTube Cookies'},
|
||||
|
|
@ -1956,6 +1959,12 @@ def kiwix_dashboard():
|
|||
domain='kiwix', subnav=KIWIX_SUBNAV, active_page='/kiwix')
|
||||
|
||||
|
||||
@app.route('/kiwix/scraper')
|
||||
def kiwix_scraper():
|
||||
return render_template('kiwix/scraper.html',
|
||||
domain='kiwix', subnav=KIWIX_SUBNAV, active_page='/kiwix/scraper')
|
||||
|
||||
|
||||
@app.route('/api/kiwix/sources')
|
||||
def api_kiwix_sources():
|
||||
"""Serve pre-cached Kiwix sources data (never blocks)."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue