adding scheduled view in torrents tab
This commit is contained in:
+2
-2
@@ -24,7 +24,7 @@ The app is intentionally small: one Go binary serves both the API and embedded f
|
||||
|
||||
- `main.go`: backend entrypoint. Owns the HTTP server, embedded static file serving, environment-driven Transmission RPC client configuration, session-ID handshake, connection warning page, JSON helpers, and API routes.
|
||||
- `scheduler.go`: SQLite persistence, background scheduling loop, Transmission seed-slot reconciliation, and scheduler API routes.
|
||||
- `web/index.html`: SPA shell. Defines the header, stats pills, alternative-speed controls, filter input, sort buttons, list container, empty state, error state, footer, and script/style links.
|
||||
- `web/index.html`: SPA shell. Defines the header, stats pills, alternative-speed controls, torrent search and Scheduled filter, sort buttons, list container, empty state, error state, footer, and script/style links.
|
||||
- `web/icon.svg`: editable vector source for the app icon.
|
||||
- `web/icon.png`: reusable raster app icon used by the SPA header and browser tab.
|
||||
- `web/app.js`: frontend application logic. Owns state, polling, fetch helpers, formatting, session-limit presentation and alternative-speed toggling, torrent classification, sorting, keyed DOM reconciliation, pause/resume actions, and event wiring.
|
||||
@@ -83,7 +83,7 @@ The scheduler checks every 30 seconds independently of the browser. Its active-s
|
||||
|
||||
## Frontend Architecture
|
||||
|
||||
The frontend is a single page with module-level state in `web/app.js`. It polls on a user-selectable interval, defaults to 3 seconds, and fetches torrents, stats, and session settings in parallel. The Torrents and Scheduler views are accessible tabs. The Scheduler view fetches its state every 10 seconds while visible and loads history when it changes.
|
||||
The frontend is a single page with module-level state in `web/app.js`. It polls on a user-selectable interval, defaults to 3 seconds, and fetches torrents, stats, and session settings in parallel. The Torrents and Scheduler views are accessible tabs. Scheduler state is fetched every 10 seconds while the page is visible so the Torrents view can show opt-in badges, filter to scheduled torrents, and change opt-ins on cards. The Scheduler view loads history when it changes.
|
||||
|
||||
Important patterns:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user