Skip to content

Commit

Permalink
Remove unused Vue components + tweak year search
Browse files Browse the repository at this point in the history
  • Loading branch information
momijizukamori committed Jul 2, 2024
1 parent c94b07b commit b2b40db
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 601 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Api/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ protected function years(Request $request, Builder $query)
$end_year = $request->input('end_year');
$matcher = $request->input("year_matcher") ?? "OR";

if ($start_year && $end_year) {
if ($start_year && $end_year && !($start_year == 1970 && $end_year == (date('Y') + 3))) {
if ($matcher == "OR") {
$query->whereBetween('year', [$start_year, $end_year]);

} elseif ($matcher == "NOT") {
$query->whereNotBetween('year', [$start_year, $end_year]);
$query->whereNotBetween('year', [$start_year, $end_year])->orWhereNull('year');

}
}
Expand Down
23 changes: 0 additions & 23 deletions resources/js/components/ExampleComponent.vue

This file was deleted.

11 changes: 0 additions & 11 deletions resources/js/components/Filter.vue

This file was deleted.

98 changes: 0 additions & 98 deletions resources/js/components/Pagination.vue

This file was deleted.

101 changes: 0 additions & 101 deletions resources/js/components/Result.vue

This file was deleted.

Loading

0 comments on commit b2b40db

Please sign in to comment.