Renders the home page, which shows every dump, or one category's, in the "hot", "new", "journal" and "follow" tabs.
Renders /, /:feedTab, /:categorySlug and /:categorySlug/:feedTab,
for anyone, the "follow" tab, and its /follow/playlists, for a signed-in
user only. The feed comes from
GET /api/dumps, or GET /api/dumps?category=, a page at a time,
and the "hot", "new" and "journal" tabs share it. WSContext adds the dumps
posted since, or brought into the feed by an edit, by date, the live vote
counts, and who's online. The router keys the
page by category, so switching tabs keeps the feed and switching categories
refetches it. It also opens the dump creation modal on a link shared from
Android (?share_url=).
Passed to Index by the router, from the path.
-
categorySlug: string
Without it, the feed holds every dump. An unknown slug renders 404.
-
feedTab: FeedTab
The tab the path names, or none for the viewer's default one.
-
followView: FollowView
The view of the "follow" tab the path names, the users without one.
Usage
import * as mod from "src/pages/Index.tsx";