mod: disable search all

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-18 15:20:00 +08:00
parent 8ca4f7c8d3
commit e27476bc32
3 changed files with 8 additions and 9 deletions

View File

@@ -102,7 +102,7 @@ class SearchHttp {
case SearchType.article:
data = SearchArticleModel.fromJson(res.data['data']);
break;
case SearchType.all:
default:
break;
}
return LoadingState.success(data);

View File

@@ -1,6 +1,6 @@
// ignore_for_file: constant_identifier_names
enum SearchType {
all,
// all,
// 视频video
video,
// 番剧media_bangumi,
@@ -25,7 +25,7 @@ enum SearchType {
extension SearchTypeExtension on SearchType {
String get label => [
'综合',
// '综合',
'视频',
'番剧',
'影视',

View File

@@ -1,5 +1,4 @@
import 'package:PiliPlus/pages/search/controller.dart';
import 'package:PiliPlus/pages/search_panel/all/view.dart';
import 'package:PiliPlus/pages/search_panel/article/view.dart';
import 'package:PiliPlus/pages/search_panel/live/view.dart';
import 'package:PiliPlus/pages/search_panel/pgc/view.dart';
@@ -154,11 +153,11 @@ class _SearchResultPageState extends State<SearchResultPage>
children: SearchType.values
.map(
(item) => switch (item) {
SearchType.all => SearchAllPanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
// SearchType.all => SearchAllPanel(
// tag: _tag,
// searchType: item,
// keyword: _searchResultController.keyword,
// ),
SearchType.video => SearchVideoPanel(
tag: _tag,
searchType: item,