mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: disable search all
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -102,7 +102,7 @@ class SearchHttp {
|
|||||||
case SearchType.article:
|
case SearchType.article:
|
||||||
data = SearchArticleModel.fromJson(res.data['data']);
|
data = SearchArticleModel.fromJson(res.data['data']);
|
||||||
break;
|
break;
|
||||||
case SearchType.all:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return LoadingState.success(data);
|
return LoadingState.success(data);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// ignore_for_file: constant_identifier_names
|
// ignore_for_file: constant_identifier_names
|
||||||
enum SearchType {
|
enum SearchType {
|
||||||
all,
|
// all,
|
||||||
// 视频:video
|
// 视频:video
|
||||||
video,
|
video,
|
||||||
// 番剧:media_bangumi,
|
// 番剧:media_bangumi,
|
||||||
@@ -25,7 +25,7 @@ enum SearchType {
|
|||||||
|
|
||||||
extension SearchTypeExtension on SearchType {
|
extension SearchTypeExtension on SearchType {
|
||||||
String get label => [
|
String get label => [
|
||||||
'综合',
|
// '综合',
|
||||||
'视频',
|
'视频',
|
||||||
'番剧',
|
'番剧',
|
||||||
'影视',
|
'影视',
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import 'package:PiliPlus/pages/search/controller.dart';
|
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/article/view.dart';
|
||||||
import 'package:PiliPlus/pages/search_panel/live/view.dart';
|
import 'package:PiliPlus/pages/search_panel/live/view.dart';
|
||||||
import 'package:PiliPlus/pages/search_panel/pgc/view.dart';
|
import 'package:PiliPlus/pages/search_panel/pgc/view.dart';
|
||||||
@@ -154,11 +153,11 @@ class _SearchResultPageState extends State<SearchResultPage>
|
|||||||
children: SearchType.values
|
children: SearchType.values
|
||||||
.map(
|
.map(
|
||||||
(item) => switch (item) {
|
(item) => switch (item) {
|
||||||
SearchType.all => SearchAllPanel(
|
// SearchType.all => SearchAllPanel(
|
||||||
tag: _tag,
|
// tag: _tag,
|
||||||
searchType: item,
|
// searchType: item,
|
||||||
keyword: _searchResultController.keyword,
|
// keyword: _searchResultController.keyword,
|
||||||
),
|
// ),
|
||||||
SearchType.video => SearchVideoPanel(
|
SearchType.video => SearchVideoPanel(
|
||||||
tag: _tag,
|
tag: _tag,
|
||||||
searchType: item,
|
searchType: item,
|
||||||
|
|||||||
Reference in New Issue
Block a user