Improved explore page

This commit is contained in:
2017-11-07 17:46:39 +01:00
parent f5935ab12b
commit 3fb236de25
6 changed files with 108 additions and 37 deletions

View File

@ -1,5 +1,6 @@
export * from "./Actions/AnimeList"
export * from "./Actions/Diff"
export * from "./Actions/Explore"
export * from "./Actions/FollowUser"
export * from "./Actions/Forum"
export * from "./Actions/InfiniteScroller"

View File

@ -0,0 +1,10 @@
import { AnimeNotifier } from "../AnimeNotifier"
// Filter anime on explore page
export function filterAnime(arn: AnimeNotifier, input: HTMLInputElement) {
let year = arn.app.find("filter-year") as HTMLSelectElement
let status = arn.app.find("filter-status") as HTMLSelectElement
let type = arn.app.find("filter-type") as HTMLSelectElement
arn.app.load(`/explore/anime/${year.value}/${status.value}/${type.value}`)
}