WIP: improve search #1

Closed
rob wants to merge 26 commits from improve-search into master
2 changed files with 6 additions and 6 deletions
Showing only changes of commit e0483329fa - Show all commits

View File

@ -28,8 +28,8 @@ const DEFAULT_SIZE: usize = 25;
enum SortKey { enum SortKey {
Name, Name,
Size, Size,
Seeders, Seeds,
Leechers, Leeches,
Scraped, Scraped,
} }
@ -163,8 +163,8 @@ fn build_order_clause(type_: &str, sort_key: SortKey, sort_dir: SortDirection) -
} }
}, },
SortKey::Size => "size_bytes", SortKey::Size => "size_bytes",
SortKey::Seeders => "seeders", SortKey::Seeds => "seeders",
SortKey::Leechers => "leechers", SortKey::Leeches => "leechers",
SortKey::Scraped => "scraped_date", SortKey::Scraped => "scraped_date",
}; };

View File

@ -161,8 +161,8 @@ export class Search extends Component<any, State> {
<tr> <tr>
<th class="search-name-col">{this.sortLink("Name")}</th> <th class="search-name-col">{this.sortLink("Name")}</th>
<th class="text-right">{this.sortLink("Size")}</th> <th class="text-right">{this.sortLink("Size")}</th>
<th class="text-right">{this.sortLink("Seeders")}</th> <th class="text-right">{this.sortLink("Seeds")}</th>
<th class="text-right d-none d-md-table-cell">{this.sortLink("Leechers")}</th> <th class="text-right d-none d-md-table-cell">{this.sortLink("Leeches")}</th>
<th class="text-right d-none d-md-table-cell">{this.sortLink("Scraped")}</th> <th class="text-right d-none d-md-table-cell">{this.sortLink("Scraped")}</th>
<th></th> <th></th>
</tr> </tr>